/* ORIOLA Denim - Lovely Denim Style */
:root {
    --primary-black: #000000;
    --secondary-gray: #666666;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --accent: #ff6b6b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--primary-black);
    line-height: 1.6;
}

/* Header Styles */
.header-container {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-black);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: var(--primary-black);
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 0;
}

.search-bar {
    position: relative;
    width: 250px;
    transition: all 0.3s ease;
}

/* Search bar hidden on desktop by default */
@media (min-width: 769px) {
    .search-bar {
        display: none;
    }
}

/* Search toggle button - hidden on desktop */
.search-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-toggle:hover {
    color: var(--secondary-gray);
}

/* Show search toggle on mobile */
@media (max-width: 768px) {
    .search-toggle {
        display: block;
    }
    
    .search-bar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        margin-top: 10px;
    }
    
    .search-bar.active {
        display: block;
    }
    
    .search-bar .search-input {
        border: none;
        border-radius: 0;
        background: transparent;
        padding: 15px;
        width: 100%;
    }
}

.search-input {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-black);
    background-color: var(--white);
}

.search-input::placeholder {
    color: var(--secondary-gray);
}

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

.header-icon {
    color: var(--primary-black);
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navigation Styles - Integrated in Header */
.header-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-left: auto;
    margin-right: 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menú para PC - Mostrar solo en pantallas grandes */
.nav-menu-desktop {
    display: flex;
}

/* Menú para Móvil - Ocultar en pantallas grandes */
.nav-menu-mobile {
    display: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.nav-link:hover {
    color: var(--secondary-gray);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-black);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '';
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-60%) translateY(-10px);
    background: white;
    width: 900px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding: 40px 60px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    display: block;
    margin-top: 10px;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-60%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 100%;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
}

.dropdown-column-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

.dropdown-item {
    display: block;
    padding: 8px 0;
    color: var(--primary-black);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: none;
}

.dropdown-item:hover {
    color: var(--secondary-gray);
    padding-left: 8px;
    background: none;
}

.dropdown-item.special {
    font-weight: 600;
    color: var(--secondary-gray);
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}

/* Debug styles */
.dropdown.active .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-60%) translateY(0) !important;
}

/* Hero Section */
.hero-section {
    background-color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--secondary-gray);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-black);
    margin-bottom: 60px;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

/* Catalog Title */
.catalog-title-section {
    padding: 40px 0;
    background-color: var(--white);
    text-align: center;
}

.catalog-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-black);
    letter-spacing: 2px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

/* Products Section */
.products-section {
    padding: 40px 0 80px 0;
    background-color: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

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

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-black);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 5px;
}

.product-price-original {
    font-size: 14px;
    color: var(--secondary-gray);
    text-decoration: line-through;
    margin-right: 8px;
}

.product-discount {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    background-color: #ffe6e6;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-colors {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section {
    margin-bottom: 40px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #cccccc;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .product-image-container {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
        position: relative;
    }
    
    .nav-menu {
        gap: 15px;
        flex-wrap: wrap;
        padding: 8px 0;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image-container {
        height: 200px;
    }
    
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-black);
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle:hover {
    color: var(--secondary-gray);
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: nowrap;
        gap: 15px;
        position: relative;
        align-items: center;
    }
    
    .header-nav {
        order: 1;
        flex-shrink: 0;
    }
    
    .logo {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .header-actions {
        gap: 10px;
        order: 3;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }
    
    .search-bar {
        width: 200px;
        flex: 1;
        max-width: 300px;
    }
    
    /* En móvil: Ocultar menú de PC y mostrar menú de móvil */
    .nav-menu-desktop {
        display: none !important;
    }
    
    .nav-menu-mobile {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 80%;
        max-width: 400px;
        background: white;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: translateX(-100%);
        transition: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav-menu-mobile.active {
        display: flex !important;
        transform: translateX(0);
    }
    
    /* Overlay para el menú móvil */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
        opacity: 0;
        transition: none;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }
    
    .dropdown {
        position: relative;
        width: 100%;
        overflow: visible;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        width: 100%;
        text-align: left;
        font-size: 14px;
    }
    
    /* Estilos para móvil - submenú deslizante */
    .dropdown-menu {
        position: fixed;
        top: 0;
        left: 100%;
        width: 100vw;
        height: 100vh;
        background: #fff;
        transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
        padding: 16px;
        z-index: 1002;
        overflow-y: auto;
        overflow-x: hidden;
        display: block;
    }
    
    .dropdown.active .dropdown-menu {
        left: 0;
    }
    
    .dropdown-menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu::before {
        opacity: 1;
    }
    
    /* Estilos para PC - dropdown horizontal centrado */
    @media (min-width: 769px) {
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            width: auto;
            min-width: 600px;
            max-width: 800px;
            height: auto;
            background: #fff;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            border-radius: 8px;
            padding: 20px;
            z-index: 1000;
            overflow: hidden;
            display: none;
            border: 1px solid #e0e0e0;
        }
        
        .dropdown.active .dropdown-menu {
            display: block;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .dropdown-menu::before {
            display: none;
        }
        
        .submenu-header {
            display: none;
        }
        
        .dropdown-content {
            width: 100%;
        }
        
        .dropdown-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            width: 100%;
        }
        
        .dropdown-item {
            padding: 15px 20px;
            text-align: center;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            background: #fff;
            transition: all 0.3s ease;
            font-family: 'Inter', sans-serif;
            font-size: 14px;
            font-weight: 500;
            color: #333;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .dropdown-item:hover {
            background: #f8f9fa;
            border-color: #007bff;
            color: #007bff;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
        }
        
        .dropdown-item:last-child {
            grid-column: 1 / -1;
            background: #007bff;
            color: white;
            border-color: #007bff;
        }
        
        .dropdown-item:last-child:hover {
            background: #0056b3;
            border-color: #0056b3;
            color: white;
        }
    }
    
    .submenu-header {
        position: relative;
        font-family: Montserrat;
        font-size: 16px;
        font-weight: 600;
        line-height: 19.5px;
        text-align: left;
        color: #000;
        text-transform: uppercase;
        background: none;
        outline: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        border: none;
        border-bottom: 1px solid #d1d1d1;
        padding: 0 0 22px;
        width: 100%;
        margin-bottom: 18px;
    }
    
    .submenu-title {
        font-family: Montserrat;
        font-size: 16px;
        font-weight: 600;
        line-height: 19.5px;
        text-align: left;
        color: #000;
        text-transform: uppercase;
    }
    
    .submenu-close {
        background: none;
        border: none;
        outline: none;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
        color: #000;
        transform: rotate(180deg);
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .submenu-close:hover {
        color: var(--primary-color);
    }
    
    .submenu-close svg {
        width: 16px;
        height: 16px;
    }
    
    .dropdown-item {
        display: flex;
        align-items: center;
        padding: 12px 0;
        text-decoration: none;
        width: 100%;
        margin-bottom: 12px;
        transition: background 0.3s ease-in-out;
        font-family: Montserrat;
        font-size: 14px;
        font-weight: 400;
        line-height: 17.07px;
        text-align: left;
        color: #000;
        text-decoration: none;
        text-transform: uppercase;
    }
    
    .dropdown-item:last-child {
        margin-bottom: 0;
    }
    
    .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-toggle::after {
        content: '+';
        border: none;
        font-size: 16px;
        font-weight: bold;
    }
    
    .dropdown.active .dropdown-toggle::after {
        content: '-';
    }
    
    .mobile-menu-toggle {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 20px;
        flex-shrink: 0;
    }
    
    .search-bar {
        width: 150px;
    }
    
    .header-icons {
        gap: 10px;
    }
    
    .header-icon {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-name {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 14px;
    }
}