/* ===== CSS VARIABLES & LAYERS ===== */
@layer base, components, utilities, animations;

:root {
    /* Colors - Only black and white as specified */
    --color-primary: #111;
    --color-accent: #FF5A5F;
    --color-white: #FFFFFF;
    --color-neutral: #F6F6F6;
    --color-text: #111;
    --color-text-secondary: #666;
    --color-border: #E0E0E0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-hover: rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --font-size-3xl: clamp(2rem, 1.7rem + 1.5vw, 3rem);
    --font-size-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px var(--color-shadow);
    --shadow-md: 0 4px 6px var(--color-shadow);
    --shadow-lg: 0 10px 25px var(--color-shadow);
    --shadow-xl: 0 20px 40px var(--color-shadow);
    
    /* Transitions */
    --transition-fast: 120ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-normal: 180ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 280ms cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Container queries */
    --container-padding: clamp(1rem, 4vw, 2rem);
    --container-max-width: 1440px;
}

/* ===== BASE LAYER ===== */
@layer base {
    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }
    
    html {
        scroll-behavior: smooth;
        scroll-padding-top: 80px; /* Account for sticky header */
    }
    
    body {
        margin: 0;
        font-family: var(--font-family);
        font-size: var(--font-size-base);
        line-height: 1.6;
        color: var(--color-text);
        background-color: var(--color-white);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Respect reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
    
    /* Skip link for accessibility */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: var(--color-primary);
        color: var(--color-white);
        padding: 8px;
        text-decoration: none;
        border-radius: var(--radius-sm);
        z-index: 1000;
        transition: top var(--transition-normal);
    }
    
    .skip-link:focus {
        top: 6px;
    }
    
    /* Container */
    .container {
        max-width: var(--container-max-width);
        margin: 0 auto;
        padding: 0 var(--container-padding);
    }
    
    /* Section titles */
    .section-title {
        font-size: var(--font-size-3xl);
        font-weight: 700;
        text-align: center;
        margin-bottom: var(--space-2xl);
        color: var(--color-primary);
    }
    
    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 24px;
        font-size: var(--font-size-base);
        font-weight: 600;
        text-decoration: none;
        border: none;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-normal);
        min-height: 44px;
        min-width: 44px;
        position: relative;
        overflow: hidden;
    }
    
    .btn:focus-visible {
        outline: 2px solid var(--color-accent);
        outline-offset: 2px;
    }
    
    .btn--primary {
        background: var(--color-accent);
        color: var(--color-white);
        box-shadow: var(--shadow-sm);
    }
    
    .btn--primary:hover {
        background: #e64a4e;
        transform: translateY(-2px);
        box-shadow: var(--shadow-md);
    }
    
    .btn--outline {
        background: transparent;
        color: var(--color-primary);
        border: 2px solid var(--color-primary);
    }
    
    .btn--outline:hover {
        background: var(--color-primary);
        color: var(--color-white);
        transform: translateY(-2px);
    }
}

/* ===== COMPONENTS LAYER ===== */
@layer components {
    /* Header */
    .header {
        position: sticky;
        top: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        z-index: 1000;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .header__content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--space-md) 0;
        gap: var(--space-lg);
    }
    
    .header__logo {
        text-decoration: none;
        color: var(--color-primary);
        font-weight: 700;
        font-size: var(--font-size-xl);
        display: flex;
        flex-direction: column;
        line-height: 1;
    }
    
    .header__logo-text {
        color: var(--color-primary);
    }
    
    .header__logo-store {
        color: var(--color-accent);
        font-size: var(--font-size-sm);
    }
    
    .header__nav {
        display: none;
    }
    
    .header__nav-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: var(--space-xl);
    }
    
    .header__nav-link {
        text-decoration: none;
        color: var(--color-text);
        font-weight: 500;
        transition: color var(--transition-normal);
        position: relative;
    }
    
    .header__nav-link:hover {
        color: var(--color-accent);
    }
    
    .header__nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--color-accent);
        transition: width var(--transition-normal);
    }
    
    .header__nav-link:hover::after {
        width: 100%;
    }
    
    .header__language {
        display: flex;
        gap: var(--space-xs);
    }
    
    .language-btn {
        background: transparent;
        border: 1px solid var(--color-border);
        color: var(--color-text);
        padding: 8px 12px;
        border-radius: var(--radius-sm);
        cursor: pointer;
        transition: all var(--transition-normal);
        font-weight: 600;
        min-height: 44px;
        min-width: 44px;
    }
    
    .language-btn:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
    }
    
    .language-btn[aria-pressed="true"] {
        background: var(--color-accent);
        color: var(--color-white);
        border-color: var(--color-accent);
    }
    
    .header__mobile-menu {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .header__mobile-menu span {
        width: 24px;
        height: 3px;
        background: var(--color-primary);
        border-radius: 2px;
        transition: all var(--transition-normal);
    }
    
    .header__mobile-menu[aria-expanded="true"] span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .header__mobile-menu[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    
    .header__mobile-menu[aria-expanded="true"] span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: var(--space-3xl) 0;
        background: linear-gradient(135deg, var(--color-neutral) 0%, var(--color-white) 100%);
        overflow: hidden;
    }
    
    .hero__content {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        align-items: center;
    }
    
    .hero__title {
        font-size: var(--font-size-4xl);
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: var(--space-lg);
        color: var(--color-primary);
    }
    
    .hero__title-line {
        display: block;
        opacity: 0;
        transform: translateY(30px);
        animation: slideInUp 0.8s ease-out forwards;
    }
    
    .hero__title-line:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .hero__description {
        font-size: var(--font-size-lg);
        color: var(--color-text-secondary);
        margin-bottom: var(--space-xl);
        opacity: 0;
        transform: translateY(20px);
        animation: slideInUp 0.8s ease-out 0.4s forwards;
    }
    
    .hero__cta {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        opacity: 0;
        transform: translateY(20px);
        animation: slideInUp 0.8s ease-out 0.6s forwards;
    }
    
    .hero__image {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .hero__image img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        opacity: 0;
        transform: scale(0.9);
        animation: zoomIn 1s ease-out 0.8s forwards;
    }
    
    .hero__accent-shapes {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
    }
    
    .accent-shape {
        position: absolute;
        opacity: 0.1;
        animation: float 6s ease-in-out infinite;
    }
    
    .accent-shape--1 {
        top: 10%;
        right: 10%;
        animation-delay: 0s;
    }
    
    .accent-shape--2 {
        bottom: 20%;
        left: 5%;
        animation-delay: 3s;
    }
    
    /* AI Helpers Section */
    .ai-helpers {
        padding: var(--space-2xl) 0;
        background: var(--color-neutral);
    }
    
    .ai-helpers__content {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .ai-helper {
        background: var(--color-white);
        padding: var(--space-xl);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--color-border);
    }
    
    .ai-helper__title {
        font-size: var(--font-size-xl);
        font-weight: 700;
        margin-bottom: var(--space-sm);
        color: var(--color-primary);
    }
    
    .ai-helper__description {
        color: var(--color-text-secondary);
        margin-bottom: var(--space-lg);
    }
    
    .ai-helper__form {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .ai-input,
    .ai-select {
        padding: 12px 16px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        font-size: var(--font-size-base);
        transition: border-color var(--transition-normal);
        min-height: 44px;
    }
    
    .ai-input:focus,
    .ai-select:focus {
        outline: none;
        border-color: var(--color-accent);
        box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
    }
    
    .ai-helper__result {
        margin-top: var(--space-md);
        padding: var(--space-md);
        background: var(--color-neutral);
        border-radius: var(--radius-md);
        font-weight: 600;
    }
    
    /* Filters Section */
    .filters {
        padding: var(--space-2xl) 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
    }
    
    .filters__content {
        display: flex;
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .filters__categories {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
        justify-content: center;
    }
    
    .category-chip {
        background: transparent;
        border: 2px solid var(--color-border);
        color: var(--color-text);
        padding: 8px 16px;
        border-radius: var(--radius-md);
        cursor: pointer;
        transition: all var(--transition-normal);
        font-weight: 600;
        min-height: 44px;
    }
    
    .category-chip:hover {
        border-color: var(--color-accent);
        color: var(--color-accent);
    }
    
    .category-chip.active {
        background: var(--color-accent);
        color: var(--color-white);
        border-color: var(--color-accent);
    }
    
    .filters__controls {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        align-items: center;
    }
    
    .search-box {
        position: relative;
        width: 100%;
        max-width: 400px;
    }
    
    .search-input {
        width: 100%;
        padding: 12px 16px 12px 48px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        font-size: var(--font-size-base);
        transition: border-color var(--transition-normal);
        min-height: 44px;
    }
    
    .search-input:focus {
        outline: none;
        border-color: var(--color-accent);
        box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
    }
    
    .search-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        stroke: var(--color-text-secondary);
        fill: none;
        stroke-width: 2;
    }
    
    .filter-select {
        padding: 12px 16px;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        font-size: var(--font-size-base);
        background: var(--color-white);
        cursor: pointer;
        min-height: 44px;
        min-width: 120px;
    }
    
    .filter-select:focus {
        outline: none;
        border-color: var(--color-accent);
        box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.1);
    }
    
    .filters__results {
        text-align: center;
        color: var(--color-text-secondary);
        font-weight: 600;
    }
    
    /* Catalog Grid */
    .catalog {
        padding: var(--space-2xl) 0;
        background: var(--color-neutral);
    }
    
    .catalog__grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--space-xl);
    }
    
    .product-card {
        background: var(--color-white);
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-md);
        transition: all var(--transition-normal);
        position: relative;
    }
    
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-xl);
    }
    
    .product-card__image {
        position: relative;
        aspect-ratio: 1;
        overflow: hidden;
    }
    
    .product-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform var(--transition-normal);
    }
    
    .product-card:hover .product-card__image img {
        transform: scale(1.05);
    }
    
    .product-card__badges {
        position: absolute;
        top: var(--space-md);
        left: var(--space-md);
        display: flex;
        gap: var(--space-sm);
    }
    
    .badge {
        padding: 4px 8px;
        border-radius: var(--radius-sm);
        font-size: var(--font-size-xs);
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .badge--new {
        background: var(--color-accent);
        color: var(--color-white);
    }
    
    .badge--sale {
        background: var(--color-primary);
        color: var(--color-white);
    }
    
    .product-card__content {
        padding: var(--space-lg);
    }
    
    .product-card__title {
        font-size: var(--font-size-lg);
        font-weight: 700;
        margin-bottom: var(--space-sm);
        color: var(--color-primary);
    }
    
    .product-card__price {
        font-size: var(--font-size-xl);
        font-weight: 800;
        color: var(--color-accent);
        margin-bottom: var(--space-md);
    }
    
    .product-card__options {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }
    
    .option-group {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .option-label {
        font-size: var(--font-size-sm);
        font-weight: 600;
        color: var(--color-text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .size-pills {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
    
    .size-pill {
        padding: 4px 8px;
        background: var(--color-neutral);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        font-size: var(--font-size-xs);
        font-weight: 600;
        color: var(--color-text);
        cursor: pointer;
        transition: all var(--transition-normal);
        min-height: 28px;
        min-width: 28px;
    }
    
    .size-pill:hover {
        background: var(--color-accent);
        color: var(--color-white);
        border-color: var(--color-accent);
    }
    
    .color-chips {
        display: flex;
        gap: var(--space-sm);
    }
    
    .color-chip {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        border: 2px solid var(--color-white);
        box-shadow: var(--shadow-sm);
        cursor: pointer;
        transition: all var(--transition-normal);
        position: relative;
    }
    
    .color-chip--black {
        background: var(--color-primary);
    }
    
    .color-chip--white {
        background: var(--color-white);
        border-color: #CCC;
    }
    
    .color-chip:hover {
        transform: scale(1.2);
        box-shadow: var(--shadow-md);
    }
    
    .product-card__actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    /* Size Guide */
    .size-guide {
        padding: var(--space-2xl) 0;
        background: var(--color-white);
    }
    
    .size-guide__content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .size-table-container {
        overflow-x: auto;
        margin-bottom: var(--space-lg);
    }
    
    .size-table {
        width: 100%;
        border-collapse: collapse;
        background: var(--color-white);
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }
    
    .size-table th,
    .size-table td {
        padding: var(--space-md);
        text-align: center;
        border-bottom: 1px solid var(--color-border);
    }
    
    .size-table th {
        background: var(--color-neutral);
        font-weight: 700;
        color: var(--color-primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: var(--font-size-sm);
    }
    
    .size-table tr:hover {
        background: var(--color-neutral);
    }
    
    .size-guide__tips {
        text-align: center;
        color: var(--color-text-secondary);
        font-style: italic;
    }
    
    /* Delivery Section */
    .delivery {
        padding: var(--space-2xl) 0;
        background: var(--color-neutral);
    }
    
    .delivery__content {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-xl);
    }
    
    .delivery__item {
        background: var(--color-white);
        padding: var(--space-xl);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        text-align: center;
        transition: all var(--transition-normal);
        border: 1px solid var(--color-border);
    }
    
    .delivery__item:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }
    
    .delivery__icon {
        width: 64px;
        height: 64px;
        margin: 0 auto var(--space-lg);
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-neutral);
        border-radius: 50%;
        transition: all var(--transition-normal);
    }
    
    .delivery__icon svg {
        width: 32px;
        height: 32px;
        stroke: var(--color-accent);
        fill: none;
        stroke-width: 2;
        transition: all var(--transition-normal);
    }
    
    .delivery__item:hover .delivery__icon {
        background: var(--color-accent);
        transform: scale(1.1);
    }
    
    .delivery__item:hover .delivery__icon svg {
        stroke: var(--color-white);
    }
    
    .delivery__text h3 {
        font-size: var(--font-size-lg);
        font-weight: 700;
        margin-bottom: var(--space-sm);
        color: var(--color-primary);
    }
    
    .delivery__text p {
        color: var(--color-text-secondary);
        font-weight: 500;
    }
    
    /* Contacts Section */
    .contacts {
        padding: var(--space-2xl) 0;
        background: var(--color-white);
    }
    
    .contacts__content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .contacts__info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-xl);
    }
    
    .contact-item {
        display: flex;
        align-items: center;
        gap: var(--space-lg);
        padding: var(--space-lg);
        background: var(--color-neutral);
        border-radius: var(--radius-lg);
        transition: all var(--transition-normal);
    }
    
    .contact-item:hover {
        background: var(--color-white);
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        background: var(--color-accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }
    
    .contact-icon svg {
        width: 24px;
        height: 24px;
        stroke: var(--color-white);
        fill: none;
        stroke-width: 2;
    }
    
    .contact-text h3 {
        font-size: var(--font-size-base);
        font-weight: 700;
        margin-bottom: var(--space-xs);
        color: var(--color-primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .contact-text a {
        color: var(--color-accent);
        text-decoration: none;
        font-weight: 600;
        transition: color var(--transition-normal);
    }
    
    .contact-text a:hover {
        color: var(--color-primary);
    }
    
    /* Footer */
    .footer {
        background: var(--color-primary);
        color: var(--color-white);
        padding: var(--space-xl) 0;
        text-align: center;
    }
    
    .footer__copyright {
        margin: 0;
        opacity: 0.8;
    }
    
    /* WhatsApp Float Button */
    .whatsapp-float {
        position: fixed;
        bottom: var(--space-xl);
        right: var(--space-xl);
        width: 60px;
        height: 60px;
        background: #25D366;
        color: var(--color-white);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-lg);
        transition: all var(--transition-normal);
        z-index: 1000;
        text-decoration: none;
    }
    
    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: var(--shadow-xl);
    }
    
    .whatsapp-float svg {
        width: 32px;
        height: 32px;
        fill: var(--color-white);
    }
    
    /* Modal */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--space-md);
    }
    
    .modal[hidden] {
        display: none;
    }
    
    .modal__overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
    }
    
    .modal__content {
        position: relative;
        background: var(--color-white);
        border-radius: var(--radius-lg);
        max-width: 90vw;
        max-height: 90vh;
        overflow: hidden;
        box-shadow: var(--shadow-xl);
        animation: modalSlideIn 0.3s ease-out;
    }
    
    .modal__close {
        position: absolute;
        top: var(--space-md);
        right: var(--space-md);
        background: var(--color-white);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-md);
        z-index: 10;
        transition: all var(--transition-normal);
    }
    
    .modal__close:hover {
        background: var(--color-neutral);
        transform: scale(1.1);
    }
    
    .modal__close svg {
        width: 20px;
        height: 20px;
        stroke: var(--color-primary);
        fill: none;
        stroke-width: 2;
    }
    
    .modal__body {
        display: grid;
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-xl);
    }
    
    .product-gallery {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .gallery__main {
        position: relative;
        aspect-ratio: 1;
        border-radius: var(--radius-md);
        overflow: hidden;
        background: var(--color-neutral);
    }
    
    .gallery__main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .gallery__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.9);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition-normal);
        backdrop-filter: blur(10px);
    }
    
    .gallery__nav:hover {
        background: var(--color-white);
        transform: translateY(-50%) scale(1.1);
    }
    
    .gallery__nav--prev {
        left: var(--space-md);
    }
    
    .gallery__nav--next {
        right: var(--space-md);
    }
    
    .gallery__nav svg {
        width: 20px;
        height: 20px;
        stroke: var(--color-primary);
        fill: none;
        stroke-width: 2;
    }
    
    .gallery__thumbnails {
        display: flex;
        gap: var(--space-sm);
        overflow-x: auto;
        padding: var(--space-sm) 0;
    }
    
    .gallery__thumbnail {
        width: 80px;
        height: 80px;
        border-radius: var(--radius-sm);
        overflow: hidden;
        cursor: pointer;
        transition: all var(--transition-normal);
        flex-shrink: 0;
        border: 2px solid transparent;
    }
    
    .gallery__thumbnail:hover {
        border-color: var(--color-accent);
    }
    
    .gallery__thumbnail.active {
        border-color: var(--color-accent);
    }
    
    .gallery__thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-details {
        display: flex;
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .modal__title {
        font-size: var(--font-size-2xl);
        font-weight: 700;
        color: var(--color-primary);
        margin: 0;
    }
    
    .modal__description {
        color: var(--color-text-secondary);
        line-height: 1.6;
        margin: 0;
    }
    
    .product-actions {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* ===== UTILITIES LAYER ===== */
@layer utilities {
    .hidden {
        display: none !important;
    }
    
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* ===== ANIMATIONS LAYER ===== */
@layer animations {
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    @keyframes zoomIn {
        from {
            opacity: 0;
            transform: scale(0.9);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
    
    @keyframes float {
        0%, 100% {
            transform: translateY(0px);
        }
        50% {
            transform: translateY(-20px);
        }
    }
    
    @keyframes modalSlideIn {
        from {
            opacity: 0;
            transform: scale(0.9) translateY(20px);
        }
        to {
            opacity: 1;
            transform: scale(1) translateY(0);
        }
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 768px) {
    .hero__content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
    
    .ai-helpers__content {
        grid-template-columns: 1fr 1fr;
    }
    
    .filters__controls {
        flex-direction: row;
        justify-content: center;
    }
    
    .modal__body {
        grid-template-columns: 1fr 1fr;
    }
    
    .header__nav {
        display: block;
    }
    
    .header__mobile-menu {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hero__title {
        font-size: var(--font-size-4xl);
    }
    
    .catalog__grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
    
    .delivery__content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contacts__info {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .hero__title {
        font-size: var(--font-size-4xl);
    }
    
    .catalog__grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* ===== CONTAINER QUERIES ===== */
@container (min-width: 400px) {
    .ai-helper__form {
        flex-direction: row;
        align-items: flex-end;
    }
    
    .product-actions {
        flex-direction: row;
    }
}

@container (min-width: 600px) {
    .modal__body {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== SCROLL-DRIVEN ANIMATIONS (if supported) ===== */
@supports (animation-timeline: scroll()) {
    .hero__image {
        animation: parallax linear;
        animation-timeline: scroll();
    }
    
    @keyframes parallax {
        to {
            transform: translateY(calc(var(--scroll) * 0.5px));
        }
    }
}

/* ===== VIEW TRANSITIONS API (if supported) ===== */
@supports (view-transition-name: none) {
    .product-card {
        view-transition-name: product-card;
    }
    
    .modal__content {
        view-transition-name: modal;
    }
}

/* ===== FOCUS VISIBLE STYLES ===== */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .filters,
    .whatsapp-float,
    .modal {
        display: none !important;
    }
    
    .hero,
    .catalog,
    .size-guide,
    .delivery,
    .contacts {
        page-break-inside: avoid;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--color-border);
    }
}
