/* ============================================
   AFA Queen — Minimalist Editorial Design
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 9999px;

    /* Spacing */
    --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;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px -8px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 48px -12px rgba(0,0,0,0.15);

    /* Easing */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Durations */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;

    /* Brand */
    --color-brand: #A1151B;
    --color-brand-hover: #dc2626;
    --color-charcoal: #171717;
    --color-surface: #FCFCFB;
}

/* ---------- Reduced Motion ---------- */
@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;
    }
    .reveal { opacity: 1; transform: none; }
    .product-card:hover { transform: none; }
    body { animation: none; }
}

/* ---------- Focus Visible ---------- */
:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
:focus:not(:focus-visible) {
    outline: none;
}

/* ---------- Base ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 200;
    padding: 12px 24px;
    background: #171717;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* ---------- Base ---------- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #FCFCFB;
    color: #171717;
}
.editorial-heading {
    font-family: 'Playfair Display', serif;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #FCFCFB; }
::-webkit-scrollbar-thumb { background: #A1151B; border-radius: 2px; }

/* ---------- Nav Underline Animation ---------- */
.nav-link-underline {
    position: relative;
}
.nav-link-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1.5px;
    bottom: -3px;
    left: 0;
    background-color: var(--color-brand);
    transform-origin: bottom right;
    transition: transform var(--duration-normal) var(--ease-out);
}
.nav-link-underline:hover::after,
.nav-link-underline.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
    background: #171717;
    color: white;
    font-size: 10px;
    padding: 10px 16px;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid #262626;
}

/* ---------- Card Hover ---------- */
.product-card {
    transition: transform var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
    will-change: transform;
    border-radius: var(--radius-md);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Inquire Badge ---------- */
.inquire-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #e5e5e5;
    padding: 4px 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #A1151B;
    border-radius: 3px;
    z-index: 5;
}

/* ---------- Product Card Overlay ---------- */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    opacity: 0;
    pointer-events: none;
}
.product-card:hover .product-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.15);
    pointer-events: auto;
}

/* ---------- Filter Tabs ---------- */
.filter-tab {
    padding: 12px 20px;
    min-height: 44px;
    border-radius: var(--radius-md);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid #e5e5e5;
    background: white;
    color: #6b7280;
    cursor: pointer;
}
.filter-tab:hover {
    border-color: #171717;
    color: #171717;
}
.filter-tab.active {
    border-color: #171717;
    background: #171717;
    color: white;
}

/* ---------- Size Guide Modal ---------- */
#size-guide-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#size-guide-overlay.open { display: flex; }
.size-guide-modal {
    background: #fff;
    max-width: 640px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid #e5e5e5;
    animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.size-guide-modal table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
.size-guide-modal th,
.size-guide-modal td {
    padding: 8px 12px;
    text-align: center;
    font-size: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.size-guide-modal th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 10px;
    color: #6b7280;
    background: #FAF9F6;
}
.size-guide-modal td { color: #404040; }
.size-guide-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.size-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 1rem;
}
.size-tab {
    padding: 8px 16px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    background: none;
    color: #9ca3af;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}
.size-tab.active {
    color: #A1151B;
    border-bottom-color: #A1151B;
}
.size-panel { display: none; }
.size-panel.active { display: block; }

/* ---------- Social Contact Buttons ---------- */
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px;
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
}
.social-btn:hover { transform: translateY(-1px); }
.social-btn.messenger { background: #0084FF; color: white; }
.social-btn.messenger:hover { background: #0073E6; }
.social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.social-btn.instagram:hover { opacity: 0.9; }
.social-btn.email { background: #171717; color: white; }
.social-btn.email:hover { background: #A1151B; }
.social-btn.share { background: #171717; color: white; }
.social-btn.share:hover { background: #A1151B; }

/* ---------- Back to Top ---------- */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.35s, visibility 0.35s, transform 0.35s;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--duration-slower) var(--ease-out), transform var(--duration-slower) var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.stagger > .reveal { transition-delay: calc(var(--i, 0) * 0.1s); }
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---------- Skeleton Loading ---------- */
@keyframes shimmer {
    0% { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}
.skeleton {
    background: #f0f0f0;
    background-image: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1200px 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: 4px;
}
.skeleton-card { aspect-ratio: 3/4; }
.skeleton-text { height: 14px; width: 60%; margin-top: 8px; }
.skeleton-text-sm { height: 10px; width: 40%; margin-top: 6px; }

/* ---------- Skeleton Shimmer (inline placeholders) ---------- */
.skeleton-shimmer {
    display: inline-block;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1200px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 4px;
    min-width: 120px;
    min-height: 1em;
}
.skeleton-heading {
    min-width: 200px;
    min-height: 1.2em;
}
.skeleton-badge {
    min-width: 80px;
    min-height: 0.8em;
}
body.data-loaded .skeleton-shimmer {
    animation: none;
    opacity: 0;
    transition: opacity 0.15s;
}

/* ---------- Infinite Scroll Loader ---------- */
#infinite-loader {
    display: none;
    text-align: center;
    padding: 32px 0;
}
#infinite-loader.active { display: block; }
.loader-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #A1151B;
    margin: 0 3px;
    animation: loaderBounce 1.4s infinite ease-in-out both;
}
.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ---------- Page Load Fade ---------- */
@keyframes pageReveal {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
body { animation: pageReveal 0.5s ease-out both; }


/* ---------- Divider ---------- */
.divider-line {
    width: 32px;
    height: 1px;
    background: #A1151B;
}

/* ---------- Form Inputs ---------- */
.form-input {
    width: 100%;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 14px;
    min-height: 44px;
    color: #171717;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(161,21,27,0.08);
}
.form-input::placeholder { color: #9ca3af; }

/* ---------- Toast ---------- */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    pointer-events: none;
}
.toast {
    background: #171717;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 8px;
    animation: toastIn 0.3s ease-out;
    pointer-events: auto;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Dark Mode ---------- */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* Base */
[data-theme="dark"] body { background-color: #0a0a0a; color: #e5e5e5; }
[data-theme="dark"] a { color: inherit; }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4 { color: #f5f5f5; }

/* Backgrounds */
[data-theme="dark"] .bg-white { background-color: #171717; }
[data-theme="dark"] .bg-neutralGold-50 { background-color: #111111; }
[data-theme="dark"] .bg-zinc-50 { background-color: #111111; }
[data-theme="dark"] .bg-gray-100 { background-color: #1a1a1a; }
[data-theme="dark"] .bg-green-50 { background-color: #052e16; }

/* Borders */
[data-theme="dark"] .border-gray-100 { border-color: #262626; }
[data-theme="dark"] .border-gray-200 { border-color: #333333; }
[data-theme="dark"] .border-t { border-color: #262626; }
[data-theme="dark"] .border-b { border-color: #262626; }

/* Text colors */
[data-theme="dark"] .text-gray-900, [data-theme="dark"] .text-charcoal-900, [data-theme="dark"] .text-charcoal-950 { color: #e5e5e5; }
[data-theme="dark"] .text-gray-800 { color: #d4d4d4; }
[data-theme="dark"] .text-gray-700 { color: #d4d4d4; }
[data-theme="dark"] .text-gray-600 { color: #a1a1aa; }
[data-theme="dark"] .text-gray-500 { color: #a1a1aa; }
[data-theme="dark"] .text-gray-400 { color: #71717a; }
[data-theme="dark"] .text-red-900 { color: #f87171; }
[data-theme="dark"] .text-green-600 { color: #4ade80; }
[data-theme="dark"] .text-green-700 { color: #86efac; }

/* Headings & editorial */
[data-theme="dark"] .editorial-heading { color: #f5f5f5; }
[data-theme="dark"] blockquote p { color: #f87171; }

/* Announcement bar */
[data-theme="dark"] .announcement-bar { background: #111111; border-bottom-color: #262626; color: #d4d4d4; }

/* Cards */
[data-theme="dark"] .product-card:hover { box-shadow: 0 12px 32px -8px rgba(0,0,0,0.5); }
[data-theme="dark"] .pricing-card { background: #171717; border-color: #333; }
[data-theme="dark"] .value-card { background: #171717; border-color: #333; }
[data-theme="dark"] .testimonial-card { background: #171717; border-color: #333; }

/* Filter tabs */
[data-theme="dark"] .filter-tab { background: #171717; border-color: #333; color: #a1a1aa; }
[data-theme="dark"] .filter-tab:hover { border-color: #e5e5e5; color: #e5e5e5; }
[data-theme="dark"] .filter-tab.active { background: #e5e5e5; border-color: #e5e5e5; color: #0a0a0a; }

/* Buttons */
[data-theme="dark"] .bg-charcoal-900 { background-color: #e5e5e5; color: #0a0a0a; }
[data-theme="dark"] .bg-charcoal-900:hover { background-color: #A1151B; color: white; }
[data-theme="dark"] .bg-red-900 { background-color: #A1151B; }
[data-theme="dark"] .bg-red-900:hover { background-color: #dc2626; }
[data-theme="dark"] .hover\:bg-red-800:hover { background-color: #dc2626; }
[data-theme="dark"] .border-red-900 { border-color: #A1151B; }
[data-theme="dark"] .text-red-900:hover { color: #f87171; }

/* Forms */
[data-theme="dark"] .form-input { background: #1a1a1a; border-color: #333; color: #e5e5e5; }
[data-theme="dark"] .form-input::placeholder { color: #71717a; }
[data-theme="dark"] select { background: #1a1a1a; border-color: #333; color: #e5e5e5; }

/* Size guide */
[data-theme="dark"] .size-guide-modal { background: #171717; border-color: #333; color: #e5e5e5; }
[data-theme="dark"] .size-guide-modal th { background: #111111; color: #a1a1aa; }
[data-theme="dark"] .size-guide-modal td { color: #d4d4d4; }

/* Footer */
[data-theme="dark"] footer { background: #0a0a0a; }
[data-theme="dark"] footer h4 { color: #a1a1aa; }
[data-theme="dark"] footer a { color: #71717a; }
[data-theme="dark"] footer a:hover { color: #e5e5e5; }

/* Social buttons */
[data-theme="dark"] .social-btn.email { background: #e5e5e5; color: #0a0a0a; }
[data-theme="dark"] .social-btn.email:hover { background: #A1151B; color: white; }
[data-theme="dark"] .social-btn.share { background: #e5e5e5; color: #0a0a0a; }
[data-theme="dark"] .social-btn.share:hover { background: #A1151B; color: white; }

/* Sections */
[data-theme="dark"] section { border-color: #262626; }
[data-theme="dark"] .border-t, [data-theme="dark"] .border-b { border-color: #262626; }

/* Hero */
[data-theme="dark"] .bg-neutralGold-50 { background-color: #111111; }

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0a0a0a; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #A1151B; }

/* Modal */
[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,0.85); }
[data-theme="dark"] .modal { background: #171717; border-color: #333; }

/* Toast */
[data-theme="dark"] .toast { background: #e5e5e5; color: #0a0a0a; }

/* Header dark mode */
[data-theme="dark"] header { background-color: rgba(23, 23, 23, 0.9) !important; border-color: #262626 !important; }
[data-theme="dark"] header nav a { color: #a1a1aa; }
[data-theme="dark"] header nav a.active { color: #f87171; }
[data-theme="dark"] header nav a:hover { color: #f87171; }
[data-theme="dark"] header .flex.items-center.gap-5 a,
[data-theme="dark"] header .flex.items-center.gap-5 button { color: #d4d4d4; }
[data-theme="dark"] header .flex.items-center.gap-5 a:hover,
[data-theme="dark"] header .flex.items-center.gap-5 button:hover { color: #f87171; }
[data-theme="dark"] #mobile-menu { background: #171717 !important; border-color: #262626 !important; }
[data-theme="dark"] #mobile-menu a { color: #a1a1aa !important; }
[data-theme="dark"] #mobile-menu a.active,
[data-theme="dark"] #mobile-menu a.text-\\[\\#A1151B\\] { color: #f87171 !important; }
[data-theme="dark"] #mobile-menu .border-t { border-color: #262626 !important; }

/* Hero overlay dark */
[data-theme="dark"] .bg-white\/95,
[data-theme="dark"] [class*="bg-white/"] { background-color: rgba(23, 23, 23, 0.95) !important; }
[data-theme="dark"] [class*="border-gray-100"] { border-color: #262626 !important; }

/* Product cards in dark mode */
[data-theme="dark"] .product-card { background: #171717; border-color: #262626; }
[data-theme="dark"] .product-card h3 { color: #e5e5e5; }
[data-theme="dark"] .product-card p { color: #71717a; }
[data-theme="dark"] .inquire-badge { background: rgba(17,17,17,0.9); border-color: #333; color: #f87171; }
[data-theme="dark"] .product-overlay span { border-color: #e5e5e5; }
[data-theme="dark"] .brand-card { background: #171717; border-color: #262626; }
[data-theme="dark"] .brand-card h3 { color: #e5e5e5; }
[data-theme="dark"] .brand-card p { color: #71717a; }

/* Brand page gallery in dark mode */
[data-theme="dark"] #grid button { background: #111111; border-color: #262626; }

/* Hero section dark */
[data-theme="dark"] .bg-neutralGold-50 { background-color: #111111; }


/* Page-specific dark overrides */
[data-theme="dark"] section.py-24,
[data-theme="dark"] section.py-20,
[data-theme="dark"] section.py-16 { background-color: transparent; }
[data-theme="dark"] .bg-white { background-color: #171717; }
[data-theme="dark"] main { color: #e5e5e5; }
[data-theme="dark"] main p { color: #a1a1aa; }
[data-theme="dark"] main h1, [data-theme="dark"] main h2 { color: #f5f5f5; }
[data-theme="dark"] main strong { color: #e5e5e5; }
[data-theme="dark"] main span { color: inherit; }
[data-theme="dark"] .divider-line { background: #A1151B; }

/* ---------- Page Transitions ---------- */
body { opacity: 0; transition: opacity 0.25s ease-in-out; }
body.page-loaded { opacity: 1; }
body.page-leaving { opacity: 0; }

/* ---------- Pagination Spacing ---------- */
#pagination { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e5e5e5; }
[data-theme="dark"] #pagination { border-top-color: #262626; }

/* ---------- Body Scroll Lock ---------- */
body.menu-open { overflow: hidden; }

/* ---------- Safe Area Support ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
    #back-to-top { padding-bottom: env(safe-area-inset-bottom); }
    [aria-label="Chat on WhatsApp"] { padding-bottom: env(safe-area-inset-bottom); }
}

/* ---------- Form Input iOS Fix ---------- */
@media (max-width: 768px) {
    .form-input, input, textarea, select {
        font-size: 16px !important;
    }
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 640px) {
  #catalog-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  #catalog-grid .product-card .aspect-\\[3\\/4\\] { aspect-ratio: 1/1; }
  #catalog-grid .product-card .p-4 { padding: 8px; }
  #catalog-grid .product-card h3 { font-size: 11px; }
  #catalog-grid .product-card p { font-size: 9px; }
  #latest-grid { gap: 8px !important; }
  #latest-grid a { aspect-ratio: 1/1; }
  .inquire-badge { font-size: 8px !important; padding: 2px 6px !important; }
  #pagination { margin-top: 32px; gap: 12px; }
  #pagination button { padding: 8px 16px; font-size: 10px; }
  footer .grid { gap: 24px !important; }
}

/* ---------- Reduce Heavy Effects on Mobile ---------- */
@media (max-width: 768px) {
    .inquire-badge, header, [class*="backdrop-blur"] {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

/* ---------- Image Zoom (desktop) ---------- */
.zoom-lens {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.6);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
    display: none;
    z-index: 5;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background: rgba(255,255,255,0.1);
}
.zoom-result {
    position: absolute;
    top: 50%;
    left: calc(100% + 20px);
    width: 300px;
    height: 300px;
    border: 1px solid #e5e5e5;
    background-repeat: no-repeat;
    display: none;
    z-index: 10;
    transform: translateY(-50%);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    background-color: #FAF9F6;
}
@media (max-width: 768px) {
    .zoom-result, .zoom-lens { display: none !important; }
}

/* ---------- Product Nav Arrows ---------- */
#prod-prev, #prod-next {
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
}
#prod-prev:hover, #prod-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}
@media (max-width: 640px) {
    #prod-prev { left: 4px; transform: translateX(0) translateY(-50%); }
    #prod-next { right: 4px; transform: translateX(0) translateY(-50%); }
    #prod-prev:hover, #prod-next:hover { transform: translateX(0) translateY(-50%) scale(1.05); }
}

/* ---------- Floating WhatsApp CTA ---------- */
.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 999px;
    background: #25D366;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.wa-float svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .wa-float {
        right: 12px;
        bottom: 12px;
        padding: 12px 16px;
        font-size: 12px;
    }
}

/* ---------- Typography Refinement ---------- */
.editorial-heading {
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* More vertical breathing room */
main {
    line-height: 1.7;
}

/* Slower, smoother hovers */
.product-card {
    transition: transform 0.4s cubic-bezier(.25,.46,.45,.94), box-shadow 0.4s ease;
}

/* Softer card shadows */
.product-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Larger headings */
@media (min-width: 640px) {
    .editorial-heading {
        letter-spacing: -0.02em;
    }
}

/* ---------- Zoom Overlay ---------- */
#zoom-overlay.open {
    display: flex !important;
    animation: fadeIn 0.2s ease;
}
#zoom-overlay #zoom-img {
    animation: zoomIn 0.25s cubic-bezier(.2,.8,.2,1);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ---------- Momentum Scroll ---------- */
.product-grid, .lightbox-modal, #product-thumbs {
    -webkit-overflow-scrolling: touch;
}

/* ---------- Tap Targets ---------- */
@media (max-width: 640px) {
    .wa-float {
        min-width: 44px;
        min-height: 44px;
    }
    .social-btn {
        min-height: 44px;
    }
    #prod-prev, #prod-next {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ---------- Admin Product Select ---------- */
.product-select {
    opacity: 0.3;
    transition: opacity 0.2s;
}
.product-card:hover .product-select,
.product-select:checked {
    opacity: 1;
}
