/* CSS Reset & Variables */
:root {
    --color-bg: #FFFFFF;
    --color-text: #000000;
    --color-text-light: #666666;
    --color-border: #E5E5E5;
    --color-accent: #88D4B4; /* Gold Mentha Mint */
    --color-accent-dark: #2F7C5D; /* A darker, legible mint green for text */
    --color-gold: #D4AF37;   /* Gold Mentha Gold */
    --color-sale: #E50000;   /* Typical sale color */
    
    --font-main: 'Montserrat', sans-serif;
    --transition-fast: all 0.2s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid var(--color-text);
    background-color: var(--color-bg);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-black {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-black:hover {
    background-color: var(--color-text-light);
    border-color: var(--color-text-light);
}

/* Top Bar */
.top-bar {
    background-color: var(--color-text);
    color: var(--color-bg);
    text-align: center;
    padding: 8px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Header */
.header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-left, .header-right {
    flex: 1;
}

.header-center {
    display: flex;
    justify-content: center;
    flex: 1;
    /* Removido position: relative para que el logo se guíe por el header completo */
}

.logo {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    z-index: 1010;
    width: 106px; /* 100px logo + 3px de borde por cada lado */
    height: 106px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25)); /* Sombra para todo el conjunto */
}

.logo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    /* Borde dorado con un destello blanco/amarillo que viaja */
    background: conic-gradient(from 0deg, #D4AF37 0%, #D4AF37 80%, #fffacd 90%, #D4AF37 100%);
    animation: spin-gold 3s linear infinite;
    z-index: -1;
}

@keyframes spin-gold {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo img {
    height: 100px;
    width: 100px;
    object-fit: contain;
    border-radius: 50%;
    background-color: #f5f5f5;
    padding: 5px;
    position: relative;
    z-index: 1; /* Para que quede por encima del fondo giratorio */
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.hamburger-btn {
    display: none; /* Oculto en PC */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text);
    cursor: pointer;
}

.nav-menu a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 5px;
    color: var(--color-text);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.highlight-link {
    color: var(--color-sale) !important;
}
.highlight-link::after {
    background-color: var(--color-sale) !important;
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--color-text);
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-accent);
    color: var(--color-text);
    font-size: 0.65rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero {
    margin-bottom: 60px;
    position: relative;
    width: 100%;
    height: calc(100vh - 105px); /* viewport minus header and topbar */
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: #000000; /* Pure black to blend seamlessly with the image */
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img.img-cover,
.carousel-slide video.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

/* Escala el video ligeramente para ocultar la marca de agua de las esquinas */
.carousel-slide video.img-cover {
    transform: scale(1.07);
}

.carousel-slide img.img-contain,
.carousel-slide video.img-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    color: var(--color-bg);
    z-index: 10;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.btn-hero {
    background-color: var(--color-bg);
    color: var(--color-text);
    border: none;
}

/* Catalog Section */
.catalog-section {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 1.5rem;
}

.view-all {
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Catalog Filters */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--color-text-light);
}

.filter-btn:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.filter-btn.active {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover .product-image-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(136, 212, 180, 0.5); /* Sombra verde menta (#88D4B4) */
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: var(--color-bg);
    transition: transform 0.8s ease;
}

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

.quick-add-btn {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background-color: rgba(255,255,255,0.9);
    border: none;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: bottom 0.3s ease;
}

.product-card:hover .quick-add-btn {
    bottom: 0;
}

.quick-add-btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-light);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    font-size: 1rem;
    font-weight: 600;
}

/* Size Guide Banner */
.size-guide-banner {
    background-color: #f7f7f7;
    margin-bottom: 80px;
    padding: 40px 0;
}

.size-guide-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

/* Scroll Animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-150px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.size-img-link {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.size-img-link:hover {
    transform: scale(1.05);
}

.size-text h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.size-text p {
    color: var(--color-text-light);
    max-width: 400px;
}

.size-img {
    max-height: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Footer */
.footer {
    background-color: #fcfcfc;
    border-top: 1px solid var(--color-border);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 0.85rem;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* Footer Interactive Gallery */
.footer-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-right: 20px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: grayscale(100%) contrast(1.2);
}

.gallery-item:hover img {
    transform: scale(1.15);
    filter: grayscale(0%) contrast(1);
}

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

.footer-col ul li a {
    font-size: 0.85rem;
    color: var(--color-text-light);
    transition: color 0.2s;
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icons a {
    font-size: 1.2rem;
    color: var(--color-text);
}

.newsletter p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid var(--color-text);
}

.newsletter-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    outline: none;
    font-family: var(--font-main);
}

.newsletter-form button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* 3D Flip Card Interactive Footer */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 250px;
    perspective: 1000px; /* Habilita el entorno 3D */
    margin-top: -10px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner, 
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.flip-card-front {
    background: #fdfdfd;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--color-text), #222);
    color: var(--color-bg);
    transform: rotateY(180deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
}

.map-container {
    width: 100%;
    background-color: #f5f5f5;
    position: relative;
}

.map-container iframe {
    width: 100%;
    display: block;
}

.map-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    background-color: var(--color-text);
    color: var(--color-bg);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    margin-top: -20px;
}

.map-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--color-text) transparent transparent transparent;
}

.cart-sidebar.active {
    right: 0;
}

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

.cart-header h2 {
    font-size: 1rem;
    font-weight: 500;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-item img {
    width: 80px;
    height: 100px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
}

.cart-item-remove:hover {
    color: var(--color-text);
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: auto;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    width: fit-content;
}

.qty-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.qty-display {
    font-size: 0.85rem;
    padding: 0 10px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--color-border);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    background-color: var(--color-text);
    color: var(--color-bg);
    margin-bottom: 10px;
}

.continue-shopping {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    text-decoration: underline;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .hamburger-btn {
        display: block;
    }

    /* Menú desplegable */
    .header-left .nav-menu {
        display: none; /* Oculto por defecto */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        background: var(--color-bg);
        padding: 20px;
        flex-direction: column;
        gap: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
        z-index: 999;
    }
    
    .header-left .nav-menu.active {
        display: flex; /* Se muestra al hacer click */
    }
    
    /* Ajuste del logo para móvil */
    .logo {
        width: 86px;
        height: 86px;
    }
    .logo img {
        width: 80px;
        height: 80px;
    }

    /* Grilla del catálogo (2 columnas pero con menos espacio) */
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .product-info h3 {
        font-size: 0.85rem;
    }
    .product-price {
        font-size: 0.9rem;
    }

    /* Hero section */
    .hero-content {
        bottom: 15%;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }

    /* Pie de página apilado */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-col[style*="grid-column: span 2"] {
        grid-column: span 1 !important; /* Fuerza a que ocupe solo 1 columna en móvil */
    }

    /* Guía de tallas */
    .size-guide-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Sidebar del carrito */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    /* Botón flotante más pequeño en pantallas muy pequeñas */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-accent); /* Verde menta de la marca */
    color: var(--color-text); /* Icono oscuro para mejor contraste */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 3px solid transparent; /* Preparado para el hover */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    border-color: #2c7a59; /* Borde verde más oscuro */
    box-shadow: 0 6px 15px rgba(44, 122, 89, 0.4); /* Resplandor más oscuro */
}

/* --- Image Modal & Enlarge Button --- */
.enlarge-btn {
    position: absolute;
    bottom: 60px; /* Above "Añadir a la Bolsa" */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.product-image-wrapper:hover .enlarge-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.enlarge-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-text);
}

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.image-modal-layout {
    display: flex;
    max-width: 1000px;
    width: 90%;
    height: 80vh;
    background-color: var(--color-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    /* initial state for modal is none in JS, so it won't show initially */
}

.image-modal-left {
    flex: 1;
    background-color: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-modal-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

/* Modal Right Panel Styles */
.image-modal-right {
    flex: 1;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--color-bg);
}

.modal-title-sec {
    margin-bottom: 15px;
}
.modal-title-top {
    color: var(--color-accent);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}
.modal-title-main {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #333;
    text-transform: uppercase;
}

.modal-desc {
    font-size: 0.85rem;
    color: var(--color-accent-dark);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 30px;
}

.modal-section-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Modal Swatches */
.modal-swatches {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.modal-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    user-select: none;
    cursor: default;
}

.m-swatch-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.m-swatch-circle:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--color-accent);
}
.m-swatch-name {
    font-size: 0.75rem;
    color: var(--color-accent-dark);
    font-weight: 500;
    text-align: center;
}

.modal-fit-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fit-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.fit-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.fit-text {
    font-size: 0.80rem;
    color: var(--color-accent-dark);
    font-weight: 500;
    line-height: 1.4;
}

.close-image-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close-image-modal:hover {
    color: var(--color-accent);
}

@keyframes zoomIn {
    from {transform: scale(0.95); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Slide in effect for right panel */
.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
}
.image-modal-layout.open .slide-in-right {
    animation: slideInRightAnim 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.2s;
}

@keyframes slideInRightAnim {
    to { opacity: 1; transform: translateX(0); }
}

@media only screen and (max-width: 768px){
    .image-modal-layout {
        flex-direction: column;
        height: 90vh;
        overflow-y: auto;
    }
    .image-modal-left {
        flex: none;
        height: 40vh;
    }
    .image-modal-right {
        flex: none;
        padding: 20px;
    }
    .close-image-modal {
        top: 10px;
        right: 15px;
    }
}
/ *   S u b   f i l t e r s   * /  
/* Sub filters */
.sub-filters-container {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    margin-top: -10px;
    flex-wrap: wrap;
    padding-right: 15px;
}

.sub-filter-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 6px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    color: var(--color-text-light);
}

.sub-filter-btn:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

.sub-filter-btn.active {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.view-details-btn {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: var(--color-bg);
    border: 1px solid var(--color-text);
    color: var(--color-text);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.view-details-btn:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.modal-swatch-item.selected .m-swatch-circle {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px var(--color-accent);
}

.modal-swatch-item.selected .m-swatch-name {
    color: var(--color-accent);
}

.modal-add-to-cart-btn {
    width: 100%;
    padding: 15px;
    margin-top: 25px;
    background-color: var(--color-text);
    color: var(--color-bg);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-add-to-cart-btn:hover {
    background-color: var(--color-accent);
}

/* Modal Sizes */
.modal-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.modal-size-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.modal-size-item:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.modal-size-item.selected {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    transform: scale(1.1);
}

.size-guide-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
    margin-bottom: 25px;
    padding: 8px 15px;
    font-size: 0.8rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.size-guide-btn-small:hover {
    color: var(--color-bg);
    background-color: var(--color-text);
    border-color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Size Guide Modal */
.size-guide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.size-guide-modal.open {
    display: flex;
}

.size-guide-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
}

.size-guide-modal-img {
    max-width: 100%;
    max-height: calc(90vh - 40px);
    object-fit: contain;
}

.close-size-guide {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

