/* =============================================
   WGStore - Weldco Group
   Paleta de Colores:
   - Primary: #4988C4
   - White: #ffffff
   - Light: #BDE8F5
   - Dark: #0F2854
   - Navy: #1C4D8D
   - Accent: #F5B800
============================================= */

:root {
    --primary: #4988C4;
    --white: #ffffff;
    --light: #BDE8F5;
    --dark: #0F2854;
    --navy: #1C4D8D;
    --accent: #F5B800;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--navy);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

.container-fluid {
    width: 100%;
    padding: 0 30px;
}

/* =============================================
   HEADER
============================================= */
.top-bar {
    background-color: var(--dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 12px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--light);
    margin-left: 15px;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar .top-social {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.top-bar .top-social a {
    color: var(--light);
    font-size: 14px;
    margin-left: 0;
    transition: color 0.3s, transform 0.3s;
}

.top-bar .top-social a:hover {
    color: var(--accent);
    transform: scale(1.2);
}

.header-main {
    background-color: var(--navy);
    padding: 20px 0;
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 60px;
}

.logo h1 {
    color: var(--white);
    font-size: 26px;
    font-weight: 700;
}

.logo span {
    color: var(--light);
}

.search-box {
    flex: 1;
    max-width: 600px;
    margin: 0 40px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background: var(--white);
    transition: box-shadow 0.3s;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--primary);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--dark);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon {
    position: relative;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.header-icon:hover {
    color: var(--light);
}

.header-icon .badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent);
    color: var(--dark);
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 10px;
    font-weight: 600;
}

.cart-total {
    font-size: 14px;
    color: var(--white);
    margin-left: 5px;
    font-weight: 500;
}

/* Navigation */
.main-nav {
    background-color: var(--primary);
    position: relative;
    z-index: 1000;
}

.main-nav > ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    color: var(--white);
    padding: 15px 25px;
    font-weight: 500;
    transition: background 0.3s;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
    background-color: var(--navy);
}

.main-nav .dropdown {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
    display: flex;
    flex-wrap: wrap;
    padding: 12px 4%;
    border-radius: 0;
}

.main-nav > ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.main-nav .dropdown li {
    width: 12.5%;
    list-style: none;
    padding: 3px;
}

.main-nav .dropdown a {
    color: var(--dark);
    padding: 8px 5px;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    background: var(--gray-light);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    height: auto;
    min-height: 85px;
    text-align: center;
}

.main-nav .dropdown a:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.main-nav .dropdown a img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 5px;
    border-radius: 4px;
    background: var(--white);
    padding: 3px;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.main-nav .dropdown a:hover img {
    border-color: var(--primary);
}

.main-nav .dropdown a span {
    line-height: 1.2;
    font-size: 10px;
    word-break: break-word;
}

/* Menu Marcas - 10 items por renglon */
#menuMarcas li {
    width: 10%;
}

#menuMarcas a {
    padding: 6px 4px;
    min-height: 75px;
}

#menuMarcas a img {
    width: 35px;
    height: 35px;
    margin-bottom: 4px;
}

#menuMarcas a span {
    font-size: 9px;
}

/* =============================================
   HERO / SLIDER
============================================= */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--gray-light);
    width: 100%;
}

.slide {
    display: none;
    position: relative;
    min-height: 450px;
    background-size: cover;
    background-position: center;
}

.slide.active {
    display: block;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 600px;
}

.slide-content h2 {
    font-size: 48px;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.slide-content p {
    font-size: 20px;
    color: var(--dark);
    margin-bottom: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: var(--accent);
}

/* =============================================
   BUTTONS
============================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-secondary {
    background: var(--navy);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 12px;
}

.btn[disabled],
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

/* =============================================
   SECTIONS
============================================= */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    color: var(--navy);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--accent);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(93, 127, 161, 0.2);
    transform: translateY(-5px);
}

.category-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 14px;
    color: var(--dark);
}

/* =============================================
   PRODUCTS
============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
}

.badge-new {
    background: var(--success);
    color: var(--white);
}

.product-brand-logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 50px;
    height: 35px;
    background: var(--white);
    border-radius: 5px;
    padding: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-brand-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.product-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.9);
    transition: bottom 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-actions button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    transition: background 0.3s;
}

.product-actions button:hover {
    background: var(--navy);
}

.product-info {
    padding: 15px;
}

.product-category {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 3px;
}

.product-code {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
    font-family: 'Consolas', monospace;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.product-name a {
    color: var(--dark);
}

.product-name a:hover {
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent);
}

.price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-rating {
    color: var(--warning);
    font-size: 12px;
    margin-top: 8px;
}

/* =============================================
   SIDEBAR / FILTERS
============================================= */
.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.sidebar {
    background: var(--white);
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray);
}

.filter-section h3.filter-header {
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    padding: 5px 0;
    transition: color 0.3s;
}

.filter-section h3.filter-header:hover {
    color: var(--primary);
}

.filter-section .filter-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.filter-section .filter-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.filter-section.collapsed .filter-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.filter-section ul {
    list-style: none;
}

.filter-section ul li {
    margin-bottom: 10px;
}

.filter-section ul li a {
    color: var(--dark);
    display: flex;
    justify-content: space-between;
}

.filter-section ul li a:hover {
    color: var(--primary);
}

.filter-section ul li a .count {
    color: #999;
    font-size: 12px;
}

.price-range {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.price-range input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--gray);
    border-radius: 5px;
}

/* =============================================
   CART
============================================= */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    background: var(--gray-light);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--navy);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--gray);
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--gray-light);
    border-radius: 5px;
}

.cart-product-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-product-info p {
    font-size: 12px;
    color: #999;
}

.qty-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.qty-input button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gray);
    background: var(--white);
    cursor: pointer;
    border-radius: 5px;
}

.qty-input input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid var(--gray);
    border-radius: 5px;
}

.cart-summary {
    background: var(--gray-light);
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.cart-summary h3 {
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray);
}

/* =============================================
   FORMS
============================================= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check input {
    width: auto;
}

/* =============================================
   FOOTER
============================================= */
.footer {
    background: var(--navy);
    color: var(--light);
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--light);
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-col p {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
}

.newsletter-form button {
    padding: 10px 25px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
}

.footer-bottom {
    border-top: 1px solid var(--dark);
    padding: 20px 0;
    text-align: center;
}

/* =============================================
   UTILITIES
============================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--gray);
    border-radius: 5px;
    color: var(--dark);
}

.pagination a:hover,
.pagination span.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background: var(--gray-light);
    position: relative;
    z-index: 1;
}

.breadcrumb ul {
    list-style: none;
    display: flex;
    gap: 10px;
}

.breadcrumb ul li::after {
    content: '/';
    margin-left: 10px;
    color: #999;
}

.breadcrumb ul li:last-child::after {
    content: '';
}

.breadcrumb ul li a {
    color: var(--dark);
}

.breadcrumb ul li:last-child a {
    color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--navy);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gray);
    text-align: right;
}

/* Quick View */
.quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quick-view-image {
    background: var(--gray-light);
    padding: 20px;
    border-radius: 5px;
}

.quick-view-image img {
    max-width: 100%;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-nav .dropdown li {
        width: 16.666%;
    }

    #menuMarcas li {
        width: 12.5%;
    }
}

@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .header-main .container {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        margin: 15px 0 0;
        width: 100%;
    }

    .slide-content h2 {
        font-size: 36px;
    }

    .slide {
        min-height: 350px;
    }

    .main-nav .dropdown {
        padding: 10px 3%;
        max-height: 80vh;
        overflow-y: auto;
    }

    .main-nav .dropdown li {
        width: 20%;
    }

    .main-nav .dropdown a {
        min-height: 80px;
        padding: 8px 5px;
    }

    .main-nav .dropdown a img {
        width: 38px;
        height: 38px;
    }

    #menuMarcas li {
        width: 16.666%;
    }

    #menuMarcas a {
        min-height: 70px;
    }

    #menuMarcas a img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .main-nav ul {
        flex-wrap: wrap;
    }

    .main-nav ul li a {
        padding: 12px 15px;
        font-size: 13px;
    }

    .slide-content h2 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .main-nav .dropdown {
        padding: 10px 3%;
        max-height: 70vh;
        overflow-y: auto;
    }

    .main-nav .dropdown li {
        width: 25%;
    }

    .main-nav .dropdown a {
        padding: 6px 4px;
        font-size: 10px;
        min-height: 75px;
    }

    .main-nav .dropdown a img {
        width: 35px;
        height: 35px;
        margin-bottom: 5px;
    }

    #menuMarcas li {
        width: 20%;
    }

    #menuMarcas a {
        min-height: 70px;
    }

    #menuMarcas a img {
        width: 30px;
        height: 30px;
    }

    .cart-table {
        font-size: 12px;
    }

    .cart-product img {
        width: 50px;
        height: 50px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .quick-view-content {
        grid-template-columns: 1fr;
    }

    .header-icon {
        font-size: 20px;
    }

    .logo img {
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .header-icons {
        gap: 15px;
    }

    .cart-total {
        display: none;
    }

    .main-nav .dropdown {
        padding: 8px 2%;
        max-height: 60vh;
    }

    .main-nav .dropdown li {
        width: 50%;
        padding: 3px;
    }

    .main-nav .dropdown a {
        flex-direction: row;
        padding: 8px;
        min-height: auto;
        text-align: left;
    }

    .main-nav .dropdown a img {
        width: 32px;
        height: 32px;
        margin-bottom: 0;
        margin-right: 8px;
    }

    .main-nav .dropdown a span {
        font-size: 11px;
    }

    #menuMarcas li {
        width: 50%;
    }

    #menuMarcas a {
        min-height: auto;
    }

    #menuMarcas a img {
        width: 28px;
        height: 28px;
    }
}

/* =============================================
   BRANDS CAROUSEL
============================================= */
.brands-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.brands-carousel-wrapper.full-width {
    width: 100%;
    padding: 0 20px;
}

.brands-carousel {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.brands-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    padding: 10px 0;
}

.brand-item {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 3px solid var(--primary);
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

.brand-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

.brands-nav {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.brands-nav:hover {
    background: var(--accent);
    color: var(--dark);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .brands-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .brand-item {
        flex: 0 0 90px;
        width: 90px;
        height: 90px;
        padding: 10px;
        border-width: 2px;
    }

    .brand-item img {
        max-width: 75%;
        max-height: 75%;
    }
}
