/* =========================================
   1. DESIGN TOKENS
   ========================================= */
:root {
    /* Colors — Premium Palette */
    --bg-body: #fafafa;
    --bg-surface: #ffffff;
    --text-dark: #0f0f10;
    --text-mid: #3a3a3c;
    --text-gray: #6e6e73;
    --text-light: #aeaeb2;

    /* Brand Accents */
    --color-primary: #e8365d;
    --color-primary-dim: #ffeef2;
    --color-primary-hover: #d42d52;
    --color-accent: #7c8cf5;
    --color-peach: #ff9e96;
    --color-sale: #ff3b30;
    --color-success: #30d158;

    /* Glass & UI */
    --glass-surface: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.65);
    --glass-blur: 24px;

    /* Shadows — Layered & Smooth */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.08), 0 8px 16px -4px rgba(0, 0, 0, 0.04);
    --shadow-pop: 0 20px 48px -8px rgba(232, 54, 93, 0.2);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px rgba(232, 54, 93, 0.12);

    /* Shapes */
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 28px;
    --radius-pill: 9999px;

    /* Layout */
    --header-h: 70px;
    --container-px: 1440px;
    --safe-bottom: env(safe-area-inset-bottom);

    /* Animation */
    --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hand {
    font-family: 'Caveat', cursive;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.container {
    width: 92%;
    max-width: var(--container-px);
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

/* =========================================
   3. BACKGROUND & ATMOSPHERE
   ========================================= */
.bg-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(160deg, #fef5f7 0%, #f5f3ff 40%, #fafafa 100%);
}

.noise-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
    will-change: opacity;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: floatOrb 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -15%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: #ffe4e9;
    animation-delay: 0s;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #eef2ff;
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: #fff8e6;
    animation-delay: -8s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 40px) scale(1.05);
    }
}

/* =========================================
   4. NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.nav-glass {
    pointer-events: auto;
    width: 100%;
    max-width: 1200px;
    background: var(--glass-surface);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 10px 12px 10px 32px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s var(--bounce), box-shadow 0.3s;
}

.nav-glass:hover {
    box-shadow: 0 12px 48px -10px rgba(0, 0, 0, 0.1);
}

.brand {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s var(--bounce);
    letter-spacing: -0.04em;
}

.brand:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.03);
    padding: 4px;
    border-radius: var(--radius-pill);
}

.nav-link {
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-gray);
    transition: all 0.25s var(--smooth);
    position: relative;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--text-dark);
    background: rgba(255, 71, 126, 0.05);
}

.nav-link.active {
    background: white;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Mobile Bottom Bar */
.mobile-bar {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 32px;
    padding: 12px 32px;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.15);
    padding-bottom: max(12px, var(--safe-bottom));
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #c7c7cc;
    transition: all 0.3s var(--bounce);
    position: relative;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 16px;
}

.tab-btn.active {
    color: var(--color-primary);
    transform: translateY(-4px);
    background: rgba(255, 71, 126, 0.08);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    width: 5px;
    height: 5px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 71, 126, 0.5);
}

.tab-icon {
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 400;
    transition: 0.3s;
}

.tab-btn.active .tab-icon {
    font-variation-settings: 'FILL' 1, 'wght' 600;
}

.tab-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-bar {
        display: flex;
    }

    header {
        top: 12px;
        padding: 0 12px;
    }

    .nav-glass {
        padding: 12px 20px;
        border-radius: 20px;
    }

    .nav-actions {
        display: none;
    }

    #app-view {
        padding-bottom: 120px;
    }

    .scrim {
        z-index: 2000;
    }
}

/* =========================================
   5. COMPONENTS & UI
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s var(--bounce), box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    will-change: transform;
    backface-visibility: hidden;
    touch-action: manipulation;
}

.btn:hover {
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--text-dark);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--color-primary);
    box-shadow: 0 8px 24px rgba(255, 71, 126, 0.35);
}

/* Shimmer effect for buttons */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: white;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-md);
}

/* Icon Button */
.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: 0.3s var(--bounce);
    position: relative;
}

.btn-icon:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    background: #fdfdfd;
}

/* Badge */
.badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--color-primary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: 0.3s var(--bounce);
}

.badge.visible {
    transform: scale(1);
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.badge.pulse {
    animation: badgePulse 0.4s var(--bounce);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: rgba(30, 30, 35, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: 0.4s var(--bounce);
    z-index: 9999;
    pointer-events: none;
}

.toast.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* =========================================
   5b. VIEW TRANSITIONS & ANIMATIONS
   ========================================= */
.view-section {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.5s var(--smooth) forwards;
    padding-top: 130px;
}

.view-section.active {
    display: block;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered card entrance */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    opacity: 0;
    animation: cardEnter 0.5s var(--spring) forwards;
}

.card:nth-child(1) {
    animation-delay: 0.03s;
}

.card:nth-child(2) {
    animation-delay: 0.06s;
}

.card:nth-child(3) {
    animation-delay: 0.09s;
}

.card:nth-child(4) {
    animation-delay: 0.12s;
}

.card:nth-child(5) {
    animation-delay: 0.15s;
}

.card:nth-child(6) {
    animation-delay: 0.18s;
}

.card:nth-child(7) {
    animation-delay: 0.21s;
}

.card:nth-child(8) {
    animation-delay: 0.24s;
}

/* Skeleton loading */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f2 25%, #e8e8ea 50%, #f0f0f2 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-slider-section {
    position: relative;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    width: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    pointer-events: none;
    z-index: 1;
    will-change: opacity;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.4) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
}

/* Hero Dot Indicators */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--bounce);
    padding: 0;
}

.hero-dot.active {
    width: 32px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
    .hero-slider-section {
        height: 500px;
        border-radius: 20px;
    }

    .hero-slider-section h2 {
        font-size: 2rem;
    }

    .slide-overlay {
        background: linear-gradient(0deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.0) 100%);
        justify-content: flex-end;
        padding: 40px 20px 60px;
        text-align: center;
        align-items: center;
    }
}

/* =========================================
   7. SHOP & CARDS
   ========================================= */
.cat-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 4px 24px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cat-rail::-webkit-scrollbar {
    display: none;
}

.cat-chip {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s var(--smooth);
    font-size: 0.88rem;
    color: var(--text-mid);
}

.cat-chip:hover {
    background: var(--color-primary-dim);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.cat-chip.active {
    background: var(--text-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.grid-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px 16px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}

@media (min-width: 768px) {
    .grid-wrap {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 32px 24px;
    }
}

.card {
    background: transparent;
    cursor: pointer;
    position: relative;
    touch-action: manipulation;
    transition: transform 0.3s var(--smooth);
}

.card:hover {
    transform: translateY(-4px);
}

.card:hover .card-img-box {
    transform: translateY(-4px);
    box-shadow: var(--shadow-pop), var(--shadow-glow);
}

.card-img-box {
    position: relative;
    aspect-ratio: 1/1.1;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f8f8fa, #f0f0f2);
    transition: all 0.4s var(--smooth);
    will-change: transform, box-shadow;
}

.card-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s var(--smooth), opacity 0.4s;
    object-fit: cover;
    will-change: transform;
    backface-visibility: hidden;
}

.card:hover .card-img {
    transform: scale(1.06);
}

.tag-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-sale);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
    z-index: 2;
    letter-spacing: 0.3px;
}

.tag-out-of-stock {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    box-shadow: none;
}

.card.out-of-stock .card-img {
    opacity: 0.55;
    filter: grayscale(0.6);
}



.card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    line-height: 1.3;
    font-weight: 700;
}

.card p {
    font-size: 0.92rem;
    color: var(--text-gray);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.card .price-sale {
    color: var(--color-primary);
    font-weight: 700;
}

/* =========================================
   8. PDP (Product Detail)
   ========================================= */
.pdp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    background: white;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    color: var(--text-mid);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s var(--smooth);
    margin-bottom: 16px;
}

.pdp-back:hover {
    color: var(--text-dark);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateX(-3px);
}

.pdp-back .material-symbols-rounded {
    font-size: 18px;
}

.pdp-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 60px;
    align-items: start;
}

.pdp-left-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.pdp-visual {
    background: #f2f2f4;
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 3/3.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdp-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--smooth), opacity 0.25s;
}

.pdp-visual:hover img {
    transform: scale(1.03);
}

/* --- Thumbnails --- */
.pdp-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.pdp-thumb {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    cursor: pointer;
    object-fit: cover;
    border: 2.5px solid transparent;
    background: #f2f2f4;
    opacity: 0.5;
    transition: all 0.25s var(--bounce);
}

.pdp-thumb:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.pdp-thumb.selected {
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(232, 54, 93, 0.18);
}

/* --- Right Column --- */
.pdp-content {
    padding-top: 4px;
}

.pdp-content h1 {
    font-size: 3rem;
    line-height: 1.08;
    margin-bottom: 14px;
    letter-spacing: -0.035em;
}

.pdp-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pdp-tag {
    padding: 5px 14px;
    background: rgba(232, 54, 93, 0.08);
    color: var(--color-primary);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- Price --- */
.price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
}

.price-now {
    font-family: 'Sora', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.03em;
}

.price-now.sale-price {
    color: var(--color-primary);
}

.price-was {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

/* --- Description --- */
.pdp-desc {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

/* --- Option Labels --- */
.pdp-option-label {
    font-weight: 700;
    font-size: 0.92rem;
    display: block;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.pdp-option-label span {
    font-weight: 500;
    color: var(--color-primary);
}

/* --- Swatches --- */
.swatch-group {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    max-width: 100%;
}

.swatch {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    border: 3.5px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.25s var(--bounce);
    position: relative;
}

.swatch:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.swatch.selected {
    transform: scale(1.15);
    box-shadow: 0 0 0 2.5px var(--text-dark), 0 4px 18px rgba(0, 0, 0, 0.12);
}

/* --- Size Buttons --- */
.size-group {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 52px;
    height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: all 0.2s var(--smooth);
}

.size-btn:hover {
    border-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.size-btn.selected {
    background: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.size-btn:disabled {
    opacity: 0.25;
    background: #f6f6f8;
    border-color: transparent;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
    transform: none;
    box-shadow: none;
}

/* --- CTA Area --- */
.pdp-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.pdp-actions .btn {
    flex: 1;
    padding: 18px 24px;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* --- Trust Strip --- */
.pdp-trust {
    display: flex;
    gap: 20px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-gray);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.trust-item .material-symbols-rounded {
    font-size: 18px;
    color: var(--color-success);
}

/* --- Mobile PDP --- */
@media (max-width: 1024px) {
    .pdp-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pdp-left-col {
        position: static !important;
        height: auto;
    }

    .pdp-visual {
        border-radius: 24px;
        aspect-ratio: 1/1.05;
    }

    .pdp-content h1 {
        font-size: 2.2rem;
    }

    .price-now {
        font-size: 2.2rem;
    }

    .pdp-desc {
        font-size: 0.98rem;
    }

    .pdp-trust {
        gap: 14px;
    }

    .trust-item {
        font-size: 0.78rem;
    }
}

/* =========================================
   9. DRAWERS & MODALS
   ========================================= */
.scrim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.scrim.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    background: white;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.5s var(--bounce);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.12);
}

.drawer.open {
    transform: translateX(0);
}

/* Cart drawer header */
.cart-header {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.cart-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

/* Cart swipe handle (mobile) */
.drawer-handle {
    display: none;
    width: 40px;
    height: 5px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    margin: 12px auto 0;
}

.cart-item {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.015);
    transition: background 0.2s;
}

.cart-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.cart-img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #f4f4f6;
    object-fit: cover;
    flex-shrink: 0;
}

.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 6px 12px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.qty-ctrl span {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 8px;
    transition: background 0.2s;
    user-select: none;
}

.qty-ctrl span:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Cart item remove button */
.cart-item-remove {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    color: var(--color-sale);
    background: rgba(255, 59, 48, 0.08);
}

/* Cart footer */
.cart-footer {
    padding: 28px 32px;
    background: linear-gradient(to top, white 60%, rgba(255, 255, 255, 0));
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 600px) {
    .drawer {
        width: 100%;
        bottom: 0;
        top: auto;
        height: 88vh;
        border-radius: 28px 28px 0 0;
        transform: translateY(100%);
    }

    .drawer.open {
        transform: translateY(0);
    }

    .drawer-handle {
        display: block;
    }
}

/* =========================================
   10. CHECKOUT FORM
   ========================================= */
.checkout-box {
    background: white;
    padding: 40px;
    border-radius: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #f0f0f2;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.25s;
    background: #fbfbfd;
}

.form-input:focus {
    border-color: var(--color-primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 71, 126, 0.1);
}

.form-input:focus+.form-label,
.form-group:focus-within .form-label {
    color: var(--color-primary);
}



/* Custom Select */
.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    padding: 12px 16px;
    border: 2px solid #f0f0f2;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    background: #fbfbfd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s;
}

.select-trigger:after {
    content: '▼';
    font-size: 0.7em;
    color: var(--color-primary);
    transition: transform 0.2s;
}

.select-trigger.active {
    border-color: var(--color-primary);
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 0 0 4px rgba(255, 71, 126, 0.1);
}

.select-trigger.active:after {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--color-primary);
    border-top: none;
    border-radius: 0 0 16px 16px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    -webkit-overflow-scrolling: touch;
}

.select-dropdown.open {
    display: block;
}

.select-option {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.select-option:hover {
    background: var(--color-primary-dim);
    color: var(--color-primary);
    padding-left: 20px;
}

.select-option.selected {
    background: var(--color-primary-dim);
    font-weight: 700;
    color: var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-row>div {
        margin-bottom: 20px;
    }

    .checkout-box {
        padding: 28px 20px;
    }
}

.summary-box {
    background: linear-gradient(135deg, #fff5f7, #fff0f3);
    padding: 28px;
    border-radius: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(255, 71, 126, 0.08);
}

@media (max-width: 480px) {
    .summary-box div {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .summary-box div>span:first-child {
        margin-bottom: 8px;
    }
}

/* Checkout items in summary */


/* =========================================
   11. FOOTER
   ========================================= */
.footer-wrapper {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 80px 0 30px;
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand {
    font-size: 1.8rem;
    margin-bottom: 24px;
    padding-left: 0;
}

.footer-story {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 380px;
}

.footer-link-highlight {
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    transition: all 0.2s;
}

.footer-link-highlight:hover {
    transform: translateX(6px);
    color: var(--color-sale);
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
    padding: 4px 0;
}

.footer-link:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f4f4f6;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s var(--bounce);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    color: white;
    border-color: transparent;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.4);
}

.social-btn.tiktok:hover {
    background: black;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.whatsapp:hover {
    background: #25D366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 30px;
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-brand {
        justify-content: center;
    }
}

/* =========================================
   12. UNIQUE FEATURES SECTION
   ========================================= */
.unique-section {
    padding: 80px 0;
    background: white;
    margin-top: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-surface);
    border-radius: 20px;
    transition: all 0.35s var(--bounce);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.3s var(--smooth);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
    background: white;
}

.feature-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: #e0f2f1;
    color: #009688;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 24px;
    transition: 0.4s var(--bounce);
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-box span {
    font-size: 30px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-family: 'Sora', sans-serif;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .unique-section {
        padding: 60px 0;
    }
}

/* =========================================
   13. CONTENT PAGES (FAQ, Terms, etc.)
   ========================================= */
.content-page-header {
    position: relative;
    margin-bottom: 40px;
}

.content-page-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-peach));
    border-radius: 2px;
    margin-top: 16px;
}

/* FAQ Accordion */
.faq-item {
    background: white;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(255, 71, 126, 0.15);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: color 0.2s;
    user-select: none;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question .faq-arrow {
    transition: transform 0.3s var(--bounce);
    font-size: 20px;
    color: var(--text-gray);
}

.faq-item.open .faq-question .faq-arrow {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--smooth), padding 0.35s;
    padding: 0 24px;
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* =========================================
   14. THANK YOU PAGE
   ========================================= */
@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.thank-you-box .material-symbols-rounded {
    animation: checkBounce 0.6s var(--bounce);
}

/* =========================================
   15. ADMIN COLOR SWATCH (Shared)
   ========================================= */
.color-swatch-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.color-swatch-wrapper:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-swatch-wrapper .v-color-input {
    opacity: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    border: none;
    -webkit-appearance: none;
    appearance: none;
}

/* =========================================
   16. UTILITY: SECTION TITLE
   ========================================= */
.section-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    padding: 0 10px;
    position: relative;
    display: inline-block;
}

.section-title-lg {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 48px;
}

/* =========================================
   17. LOW STOCK ALERT
   ========================================= */
.low-stock-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    animation: alertSlideIn 0.4s var(--spring);
}

.low-stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    animation: stockPulse 2s ease-in-out infinite;
}

@keyframes stockPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}