/**
 * Apple Design System - TotalNex
 * 
 * VERSÃO CONSOLIDADA E OTIMIZADA
 * 
 * @package TotalNex Premium Theme
 * @version 4.0.0
 */

/* ==========================================================================
   CSS Variables - Apple Style
   ========================================================================== */

:root {
    /* Colors - Apple Palette */
    --apple-black: #1d1d1f;
    --apple-white: #fbfbfd;
    --apple-gray-1: #86868b;
    --apple-gray-2: #d2d2d7;
    --apple-gray-3: #f5f5f7;
    --apple-blue: #0071e3;
    --apple-blue-dark: #0066cc;
    --apple-green: #34c759;
    --apple-orange: #ff9500;
    --apple-red: #ff3b30;
    --apple-purple: #5856d6;
    --apple-pink: #ff2d55;
    --apple-teal: #5ac8fa;
    
    /* Premium Gradient */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #00ff88 50%, #00d4ff 100%);
    --gradient-shine: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 40px;
    --text-5xl: 48px;
    --text-6xl: 64px;
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing - 8pt Grid */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    
    /* Layout */
    --container-max: 1280px;
    --container-wide: 1440px;
    --container-narrow: 980px;
    --header-height: 72px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: 150ms var(--ease-apple);
    --transition: 300ms var(--ease-apple);
    --transition-slow: 500ms var(--ease-apple);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--apple-black);
    background: var(--apple-white);
    margin: 0;
    padding: 0;
    padding-top: var(--header-height);
}

/* ==========================================================================
   Animations - Global
   ========================================================================== */

@keyframes gradient-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes shine-sweep {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shineSlide {
    0% { background-position: 200% center; }
    40%, 100% { background-position: -50% center; }
}

.fa-spin { animation: spin 1s linear infinite; }

/* ==========================================================================
   Container
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin: 0;
    color: var(--apple-black);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-3xl); letter-spacing: -0.01em; }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin: 0 0 var(--space-4);
    color: var(--apple-gray-1);
}

a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--apple-blue-dark); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--apple-blue-dark);
    color: white;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--apple-blue);
    border: 1px solid var(--apple-blue);
}

.btn-secondary:hover {
    background: var(--apple-blue);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--apple-black);
    border: 1px solid var(--apple-gray-2);
}

.btn-outline:hover {
    background: var(--apple-gray-3);
    border-color: var(--apple-gray-1);
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-small {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   SITE HEADER - CORRIGIDO
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s var(--ease-apple);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-nav {
    height: var(--header-height);
}

/* Header Inner - LAYOUT PRINCIPAL CORRIGIDO */
.header-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

/* Logo */
.header-nav__logo {
    flex: 0 0 auto;
    min-width: 100px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.logo-text-premium {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #0051a8 0%, #0066cc 25%, #0088dd 50%, #00aacc 75%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.logo-text-premium::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, transparent 40%, rgba(255, 255, 255, 0.9) 50%, transparent 60%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 250% 100%;
    animation: shineSlide 3s ease-in-out infinite;
}

/* Menu Principal - CORRIGIDO PARA NÃO CORTAR */
.header-nav__menu {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

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

.nav-menu__item {
    flex-shrink: 0;
}

.nav-menu__link {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--apple-black);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-menu__link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--apple-blue);
}

.nav-menu__link.active {
    color: var(--apple-blue);
}

/* Dropdown */
.nav-menu__item--more {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    padding: 8px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.nav-menu__item--more:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: var(--text-sm);
    color: var(--apple-black);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.15s ease;
}

.nav-dropdown__link:hover {
    background: var(--apple-gray-3);
}

/* Header Actions - CORRIGIDO */
.header-nav__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    color: var(--apple-black);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-action:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--apple-blue);
}

.header-action i,
.header-action svg {
    font-size: 18px;
    width: 20px;
    height: 20px;
}

.header-action--menu {
    display: none;
}

/* Cart Count Badge */
.cart-count,
#header-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #00d4ff;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Header Responsive */
@media (max-width: 1200px) {
    .nav-menu__link {
        font-size: 12px;
        padding: 8px 8px;
    }
}

@media (max-width: 1100px) {
    /* Esconder últimos itens */
    .nav-menu__item:nth-last-child(1),
    .nav-menu__item:nth-last-child(2) {
        display: none;
    }
}

@media (max-width: 900px) {
    .header-nav__menu {
        display: none;
    }
    
    .header-action--menu {
        display: flex;
    }
}

@media (max-width: 768px) {
    .header-nav__inner {
        padding: 0 16px;
    }
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.search-overlay__container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay__container {
    transform: translateY(0);
}

.search-form__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    padding: 12px 20px;
    background: var(--apple-gray-3);
    border-radius: var(--radius-full);
}

.search-form__icon {
    color: var(--apple-gray-1);
    font-size: 18px;
}

.search-form__input {
    flex: 1;
    background: none;
    border: none;
    font-size: var(--text-lg);
    color: var(--apple-black);
    outline: none;
}

.search-form__input::placeholder {
    color: var(--apple-gray-1);
}

.search-form__close {
    background: none;
    border: none;
    padding: 8px;
    color: var(--apple-gray-1);
    cursor: pointer;
    transition: color 0.2s ease;
}

.search-form__close:hover {
    color: var(--apple-black);
}

.search-suggestions {
    max-width: 600px;
    margin: 24px auto 0;
}

.search-suggestions__title {
    font-size: var(--text-sm);
    color: var(--apple-gray-1);
    margin-bottom: 12px;
}

.search-suggestions__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-suggestions__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--apple-gray-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--apple-black);
    text-decoration: none;
    transition: background 0.2s ease;
}

.search-suggestions__link:hover {
    background: var(--apple-gray-2);
}

/* Search Results */
.search-results {
    max-width: 600px;
    margin: 24px auto 0;
}

.search-loading,
.search-empty {
    text-align: center;
    padding: 20px;
    color: var(--apple-gray-1);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--apple-gray-3);
}

.search-result-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-title {
    font-weight: 600;
    color: var(--apple-black);
}

.search-result-price {
    color: var(--apple-gray-1);
}

/* ==========================================================================
   CART DRAWER - UNIFICADO
   ========================================================================== */

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--apple-gray-2);
}

.cart-drawer__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 25%, #00d4ff 50%, #a855f7 75%, #00d4ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s linear infinite;
    margin: 0;
}

.cart-drawer__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--apple-gray-3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-drawer__close:hover {
    background: var(--apple-gray-2);
    transform: rotate(90deg);
}

.cart-drawer__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.cart-drawer__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--apple-gray-1);
}

.cart-drawer__empty i {
    font-size: 64px;
    color: var(--apple-gray-2);
    margin-bottom: 20px;
}

.cart-drawer__footer {
    padding: 20px 24px;
    border-top: 1px solid var(--apple-gray-2);
    background: var(--apple-gray-3);
}

.cart-drawer__total {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: 16px;
}

/* Botão Finalizar no Drawer */
.cart-drawer__footer .btn-primary,
.cart-drawer__footer a[href*="checkout"] {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-primary);
    background-size: 200% auto;
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
    animation: gradient-flow 3s linear infinite;
}

.cart-drawer__footer .btn-primary::before,
.cart-drawer__footer a[href*="checkout"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    animation: shine-sweep 2s ease-in-out infinite;
}

/* Item do Carrinho */
.cart-drawer__item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-drawer__item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--apple-gray-3);
    flex-shrink: 0;
}

.cart-drawer__item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-drawer__item-info {
    flex: 1;
    min-width: 0;
}

.cart-drawer__item-name {
    font-weight: 600;
    font-size: var(--text-sm);
    color: var(--apple-black);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-drawer__item-price {
    font-weight: 700;
    font-size: var(--text-base);
    color: var(--apple-black);
    margin-bottom: 8px;
}

.cart-drawer__item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-drawer__item-qty button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--apple-gray-2);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    transition: background 0.2s;
}

.cart-drawer__item-qty button:hover {
    background: var(--apple-gray-3);
}

.cart-drawer__item-qty span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.cart-drawer__item-remove {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--apple-gray-1);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    align-self: flex-start;
}

.cart-drawer__item-remove:hover {
    background: rgba(255, 59, 48, 0.1);
    color: var(--apple-red);
}

/* Drawer Overlay */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--apple-gray-2);
}

.mobile-menu__logo {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
}

.mobile-menu__close {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu__search {
    padding: 16px 24px;
}

.mobile-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--apple-gray-3);
    border-radius: var(--radius-full);
}

.mobile-search i {
    color: var(--apple-gray-1);
}

.mobile-search input {
    flex: 1;
    background: none;
    border: none;
    font-size: var(--text-base);
    outline: none;
}

.mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 16px;
}

.mobile-menu__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    font-size: var(--text-base);
    color: var(--apple-black);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s ease;
}

.mobile-menu__link:hover {
    background: var(--apple-gray-3);
}

.mobile-menu__link i {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

.mobile-menu__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--apple-gray-2);
    display: flex;
    justify-content: space-around;
}

.mobile-menu__footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    color: var(--apple-gray-1);
    text-decoration: none;
}

.mobile-menu__footer-link i {
    font-size: 20px;
}

/* ==========================================================================
   Products Grid
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
}

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

/* List View */
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-6);
}

.products-grid.list-view .product-card__image {
    aspect-ratio: 1;
}

/* ==========================================================================
   Product Card
   ========================================================================== */

.product-card {
    background: var(--apple-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Image */
.product-card__image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--apple-gray-3);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), opacity var(--transition);
}

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

/* Badge */
.product-card__badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    background: var(--apple-red);
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    z-index: 2;
}

.product-card__badge--new {
    background: var(--apple-blue);
}

/* Quick Actions */
.product-card__actions {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    opacity: 0;
    transform: translateX(10px);
    transition: all var(--transition);
    z-index: 2;
}

.product-card:hover .product-card__actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card__action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--apple-gray-1);
}

.product-card__action-btn:hover {
    background: var(--apple-blue);
    color: white;
    transform: scale(1.1);
}

/* Content */
.product-card__content {
    padding: var(--space-4);
}

.product-card__sector {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    color: var(--apple-green);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.product-card__title {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    color: var(--apple-black);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card__title a {
    color: inherit;
}

.product-card__title a:hover {
    color: var(--apple-blue);
}

/* Rating */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.product-card__stars {
    display: flex;
    gap: 2px;
    color: var(--apple-orange);
    font-size: var(--text-sm);
}

.product-card__rating-count {
    font-size: var(--text-xs);
    color: var(--apple-gray-1);
}

/* Price */
.product-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.product-card__price-current {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--apple-black);
}

.product-card__price-original {
    font-size: var(--text-sm);
    color: var(--apple-gray-1);
    text-decoration: line-through;
}

/* Stock */
.product-card__stock {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    margin-bottom: var(--space-3);
}

.product-card__stock i {
    font-size: 8px;
}

.product-card__stock--in { color: var(--apple-green); }
.product-card__stock--low { color: var(--apple-orange); }
.product-card__stock--out { color: var(--apple-red); }

/* ==========================================================================
   BOTÃO ADICIONAR AO CARRINHO - PREMIUM
   ========================================================================== */

.product-card__btn,
.product-card__button,
.add-to-cart-btn,
button[data-product-id] {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-primary);
    background-size: 200% auto;
    border: none;
    border-radius: var(--radius);
    color: #000;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: gradient-flow 3s linear infinite;
}

.product-card__btn::before,
.product-card__button::before,
.add-to-cart-btn::before,
button[data-product-id]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    animation: shine-sweep 2s ease-in-out infinite;
}

.product-card__btn:hover,
.product-card__button:hover,
.add-to-cart-btn:hover,
button[data-product-id]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Estado: Adicionando */
.product-card__btn.adding,
.product-card__button.adding,
.add-to-cart-btn.adding {
    pointer-events: none;
    opacity: 0.8;
}

/* Estado: Adicionado */
.product-card__btn.added,
.product-card__button.added,
.add-to-cart-btn.added {
    background: linear-gradient(135deg, #00ff88 0%, #00d4aa 100%);
    animation: none;
}

.product-card__btn.added::before,
.product-card__button.added::before,
.add-to-cart-btn.added::before {
    display: none;
}

/* Desabilitado */
.product-card__btn:disabled,
.product-card__button:disabled,
.add-to-cart-btn:disabled {
    background: var(--apple-gray-2);
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
    transform: none;
}

.product-card__btn:disabled::before,
.product-card__button:disabled::before,
.add-to-cart-btn:disabled::before {
    display: none;
}

/* ==========================================================================
   Single Product
   ========================================================================== */

.single-product {
    padding: var(--space-12) 0;
}

.single-product__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.single-product__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

@media (max-width: 968px) {
    .single-product__layout {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* Gallery */
.single-product__gallery {
    position: sticky;
    top: 100px;
}

.single-product__main-image {
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--apple-gray-3);
    margin-bottom: var(--space-4);
}

.single-product__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--transition);
}

.single-product__thumbnails {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding-bottom: var(--space-2);
}

.single-product__thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.single-product__thumbnail:hover,
.single-product__thumbnail.active {
    border-color: var(--apple-blue);
}

.single-product__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */
.single-product__info {
    padding-top: var(--space-4);
}

.single-product__sector {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--apple-gray-3);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--apple-gray-1);
    margin-bottom: var(--space-4);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.single-product__sector:hover {
    background: var(--apple-gray-2);
}

.single-product__title {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.single-product__description {
    font-size: var(--text-lg);
    color: var(--apple-gray-1);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

/* Price Box */
.single-product__price-box {
    background: var(--apple-gray-3);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
}

.single-product__price-current {
    font-size: var(--text-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--apple-black);
}

.single-product__price-original {
    font-size: var(--text-lg);
    color: var(--apple-gray-1);
    text-decoration: line-through;
    margin-left: var(--space-3);
}

.single-product__price-installments {
    font-size: var(--text-sm);
    color: var(--apple-gray-1);
    margin-top: var(--space-2);
}

/* Stock */
.single-product__stock {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-6);
}

.single-product__stock i { font-size: 8px; }

.single-product__stock--in {
    background: rgba(52, 199, 89, 0.1);
    color: var(--apple-green);
}

.single-product__stock--low {
    background: rgba(255, 149, 0, 0.1);
    color: var(--apple-orange);
}

.single-product__stock--out {
    background: rgba(255, 59, 48, 0.1);
    color: var(--apple-red);
}

/* Form */
.single-product__form {
    margin-bottom: var(--space-8);
}

/* Quantity */
.single-product__quantity {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.single-product__quantity-label {
    font-weight: var(--font-weight-medium);
}

.single-product__quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--apple-gray-2);
    border-radius: var(--radius);
    overflow: hidden;
}

.single-product__quantity-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--apple-gray-3);
    border: none;
    cursor: pointer;
    font-size: var(--text-lg);
    transition: background var(--transition-fast);
}

.single-product__quantity-btn:hover {
    background: var(--apple-gray-2);
}

.single-product__quantity-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    -moz-appearance: textfield;
}

.single-product__quantity-input::-webkit-outer-spin-button,
.single-product__quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Add to Cart Button */
.single-product__add-btn {
    width: 100%;
    padding: var(--space-5);
    background: var(--gradient-primary);
    background-size: 200% auto;
    color: #000;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    position: relative;
    overflow: hidden;
    animation: gradient-flow 3s linear infinite;
}

.single-product__add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-shine);
    animation: shine-sweep 2s ease-in-out infinite;
}

.single-product__add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.single-product__add-btn:disabled {
    background: var(--apple-gray-2);
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.single-product__add-btn:disabled::before {
    display: none;
}

/* Secondary Actions */
.single-product__secondary-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.single-product__secondary-btn {
    flex: 1;
    padding: var(--space-4);
    background: transparent;
    border: 1px solid var(--apple-gray-2);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.single-product__secondary-btn:hover {
    background: var(--apple-gray-3);
    border-color: var(--apple-gray-1);
}

/* Specs */
.single-product__specs-box {
    background: var(--apple-gray-3);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.single-product__specs-title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.single-product__specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 600px) {
    .single-product__specs-grid {
        grid-template-columns: 1fr;
    }
}

.single-product__spec {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3);
    background: white;
    border-radius: var(--radius);
}

.single-product__spec-label {
    font-size: var(--text-sm);
    color: var(--apple-gray-1);
}

.single-product__spec-value {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
}

/* ==========================================================================
   Archive
   ========================================================================== */

.archive-header {
    padding: var(--space-16) 0;
    background: var(--apple-gray-3);
    text-align: center;
}

.archive-header__icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    color: var(--apple-blue);
}

.archive-header__title {
    font-size: var(--text-5xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-3);
}

.archive-header__description {
    font-size: var(--text-xl);
    color: var(--apple-gray-1);
    max-width: 600px;
    margin: 0 auto var(--space-4);
}

.archive-header__count {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: white;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--apple-gray-1);
}

/* Filters */
.archive-filters {
    position: sticky;
    top: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--apple-gray-2);
    padding: var(--space-4) 0;
    z-index: 100;
}

.archive-filters__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.archive-filters__group {
    display: flex;
    gap: var(--space-3);
}

.archive-filters__select {
    padding: var(--space-2) var(--space-4);
    padding-right: var(--space-8);
    border: 1px solid var(--apple-gray-2);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.archive-filters__select:focus {
    outline: none;
    border-color: var(--apple-blue);
}

.archive-filters__view {
    display: flex;
    gap: var(--space-2);
}

.archive-filters__view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--apple-gray-3);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--apple-gray-1);
    transition: all var(--transition-fast);
}

.archive-filters__view-btn:hover,
.archive-filters__view-btn.active {
    background: var(--apple-black);
    color: white;
}

.archive-content {
    padding: var(--space-12) 0;
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
}

.archive-pagination a,
.archive-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-4);
    border-radius: var(--radius);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.archive-pagination a {
    background: var(--apple-gray-3);
    color: var(--apple-black);
    text-decoration: none;
}

.archive-pagination a:hover {
    background: var(--apple-blue);
    color: white;
}

.archive-pagination .current {
    background: var(--apple-blue);
    color: white;
}

/* ==========================================================================
   Sectors Grid
   ========================================================================== */

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .sectors-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.sector-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition);
}

.sector-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.sector-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sector-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
}

.sector-card__icon {
    font-size: var(--text-3xl);
    color: white;
    margin-bottom: var(--space-2);
}

.sector-card__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--space-1);
}

.sector-card__count {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.8);
}

/* ==========================================================================
   Quick View Modal
   ========================================================================== */

#quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#quick-view-modal.active {
    opacity: 1;
    visibility: visible;
}

.quick-view__content {
    background: white;
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
    .quick-view__content {
        grid-template-columns: 1fr;
    }
}

.quick-view__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--apple-gray-3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.quick-view__image {
    aspect-ratio: 1;
    background: var(--apple-gray-3);
}

.quick-view__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view__info {
    padding: var(--space-8);
}

.quick-view__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
}

.quick-view__price {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--apple-blue);
    margin-bottom: var(--space-4);
}

.quick-view__description {
    color: var(--apple-gray-1);
    margin-bottom: var(--space-6);
}

.quick-view__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.quick-view__loading,
.quick-view__error {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
    color: var(--apple-gray-1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--apple-gray-3);
    border-top: 1px solid var(--apple-gray-2);
}

/* Newsletter */
.newsletter-section {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--apple-blue), #00c7be);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.newsletter-title {
    color: white;
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 8px;
}

.newsletter-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.newsletter-form__inner {
    display: flex;
    gap: 12px;
}

.newsletter-form input[type="email"] {
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    min-width: 280px;
    outline: none;
}

.newsletter-form button {
    padding: 14px 28px;
    background: white;
    color: var(--apple-blue);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-form button:hover {
    background: var(--apple-gray-3);
}

/* Footer Main */
.footer-main {
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: var(--apple-black);
    margin-bottom: 16px;
}

.footer-description {
    color: var(--apple-gray-1);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    color: var(--apple-gray-1);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--apple-blue);
    color: white;
}

.footer-column h4 {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--apple-black);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.footer-links a {
    color: var(--apple-gray-1);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.2s ease;
}

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

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--apple-gray-1);
    font-size: var(--text-sm);
}

.footer-contact-item i {
    color: var(--apple-blue);
    margin-top: 2px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--apple-gray-2);
}

.footer-bottom__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-copyright {
    color: var(--apple-gray-1);
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--apple-gray-1);
    font-size: var(--text-sm);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--apple-blue);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form__inner {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form input[type="email"] {
        min-width: auto;
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Breadcrumb */
.breadcrumb {
    font-size: var(--text-sm);
    color: var(--apple-gray-1);
}

.breadcrumb a {
    color: var(--apple-gray-1);
}

.breadcrumb a:hover {
    color: var(--apple-blue);
}

/* Animate on Scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-apple);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-card,
.sector-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.product-card.animate-in,
.sector-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--apple-blue);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --text-5xl: 36px;
        --text-4xl: 28px;
        --text-3xl: 24px;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .archive-filters__container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .archive-filters__group {
        flex-wrap: wrap;
    }
    
    .archive-filters__select {
        flex: 1;
        min-width: 120px;
    }
    
    .archive-filters__view {
        justify-content: center;
    }
}