/* ==========================================================================
   Skin Creamery Theme — CSS
   Matches skincreamery.com design
   ========================================================================== */

/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-primary: #869791;
    --color-primary-light: #a0afa8;
    --color-primary-dark: #6b7d76;
    --color-accent: #869791;
    --color-accent-light: #a0afa8;
    --color-footer: #4a4252;

    /* Neutrals */
    --color-black: #2b2622;
    --color-dark: #3d362f;
    --color-body: #5a524a;
    --color-muted: #8a8279;
    --color-border: #e4ddd4;
    --color-light: #f7f4ef;
    --color-cream: #faf8f5;
    --color-white: #ffffff;

    /* Feedback */
    --color-sale: #c0392b;
    --color-success: #27ae60;
    --color-warning: #f39c12;

    /* Typography — Skin Creamery uses a wide-spaced uppercase look */
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --text-xs: 0.7rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-lg: 1.0625rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.75rem;
    --text-4xl: 2rem;
    --text-5xl: 2.5rem;
    --text-hero: clamp(1.5rem, 4vw, 2.5rem);

    /* Font Weights */
    --weight-light: 300;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: clamp(3rem, 8vw, 5rem);

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 960px;
    --nav-height: 60px;
    --announcement-height: 40px;
    --topbar-height: 44px;
    --total-header-height: calc(var(--announcement-height) + var(--topbar-height) + var(--nav-height));
    --gutter: clamp(1rem, 4vw, 2rem);

    /* Grid */
    --grid-cols-mobile: 1;
    --grid-cols-tablet: 2;
    --grid-cols-desktop: 3;
    --grid-gap: var(--space-xl);

    /* Borders */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;

    /* Cart Drawer */
    --drawer-width: 420px;
}


/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-light);
    color: var(--color-body);
    background: var(--color-white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease);
}

a:hover {
    color: var(--color-primary);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-light);
    color: var(--color-black);
    line-height: 1.3;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}


/* ==========================================================================
   UTILITIES
   ========================================================================== */

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--text-3xl);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: var(--text-base);
    color: var(--color-muted);
    font-weight: var(--weight-light);
    letter-spacing: 0.02em;
    text-transform: none;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

.section-empty {
    text-align: center;
    color: var(--color-muted);
    padding: var(--space-4xl) 0;
}


/* ==========================================================================
   BUTTONS — Skin Creamery style (outlined, uppercase, wide tracking)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.875rem 2.5rem;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all var(--duration-base) var(--ease);
    cursor: pointer;
    border: 1px solid var(--color-black);
    line-height: 1;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-primary:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: var(--color-white);
}

.btn-outline {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-xs);
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: var(--text-sm);
    text-decoration: underline;
    padding: var(--space-sm) 0;
}

.btn-link:hover {
    color: var(--color-black);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */

.sc-announcement {
    background: #000000;
    color: var(--color-white);
    text-align: center;
    padding: 0.625rem var(--gutter);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
}

.sc-announcement a {
    color: var(--color-white);
    text-decoration: underline;
}


/* ==========================================================================
   TOP BAR (search, social, account)
   ========================================================================== */

.sc-topbar {
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem var(--gutter);
}

.sc-topbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.sc-topbar-social {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.sc-topbar-social a {
    color: var(--color-body);
    font-size: var(--text-lg);
}

.sc-topbar-search {
    flex: 1;
    max-width: 300px;
}

.sc-topbar-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-body);
}

.sc-topbar-search input::placeholder {
    color: var(--color-muted);
}

.sc-topbar-account a {
    font-size: var(--text-sm);
    color: var(--color-body);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    letter-spacing: 0.05em;
}


/* ==========================================================================
   NAVIGATION — Skin Creamery style
   ========================================================================== */

.flavor-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    height: var(--nav-height);
}

.flavor-nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.flavor-nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--weight-light);
    letter-spacing: 0.3em;
    color: var(--color-black);
    text-transform: uppercase;
    line-height: 1.2;
}

.nav-logo:hover {
    color: var(--color-black);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-black);
    transition: width var(--duration-base) var(--ease);
}

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

.nav-links a:hover {
    color: var(--color-black);
}

.nav-cart-btn {
    position: relative;
    padding: var(--space-sm);
    color: var(--color-dark);
    transition: color var(--duration-fast) var(--ease);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--weight-light);
}

.nav-cart-btn:hover {
    color: var(--color-black);
}

.cart-total-display {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-normal);
    letter-spacing: 0.02em;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 10px;
    font-weight: var(--weight-bold);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu toggle — hamburger icon with wider lines */
.nav-mobile-toggle {
    display: flex;
    align-items: center;
    padding: var(--space-sm);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    position: relative;
    transition: background var(--duration-fast) var(--ease);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: transform var(--duration-base) var(--ease);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.hamburger.open {
    background: transparent;
}

.hamburger.open::before {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open::after {
    transform: translateY(-7px) rotate(-45deg);
}


/* ==========================================================================
   HERO — Full-width product feature image
   ========================================================================== */

.flavor-hero {
    position: relative;
    overflow: hidden;
    background: var(--color-light);
}

.hero-overlay {
    display: none;
}

.hero-image-wrapper {
    width: 100%;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    display: none;
}

.hero-tag {
    display: none;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: var(--weight-light);
    color: var(--color-black);
    line-height: 1.2;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.hero-content p {
    font-size: var(--text-sm);
    font-weight: var(--weight-light);
    color: var(--color-body);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.hero-actions .btn-primary:hover {
    background: var(--color-dark);
    border-color: var(--color-dark);
}

.hero-actions .btn-outline {
    color: var(--color-black);
    border-color: var(--color-black);
}

.hero-actions .btn-outline:hover {
    background: var(--color-black);
    color: var(--color-white);
}


/* ==========================================================================
   TRUST BADGES — circular icons row
   ========================================================================== */

.sc-trust-badges {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.trust-badges-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    width: 100px;
}

.trust-badge-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-body);
}

.trust-badge-label {
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--color-dark);
    line-height: 1.3;
}


/* ==========================================================================
   QUIZ CTA SECTION
   ========================================================================== */

.sc-quiz-cta {
    padding: var(--space-section) 0;
    background: var(--color-white);
    text-align: center;
}

.quiz-cta-inner {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.quiz-cta-image {
    width: 100%;
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.quiz-cta-image img {
    width: 100%;
    height: auto;
}

.quiz-cta-image-placeholder {
    aspect-ratio: 4 / 3;
    background: var(--color-light);
}

.sc-quiz-cta h2 {
    font-size: var(--text-3xl);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
}

.sc-quiz-cta p {
    font-size: var(--text-base);
    color: var(--color-body);
    font-weight: var(--weight-light);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.sc-quiz-cta p a {
    font-weight: var(--weight-semibold);
    text-decoration: underline;
}


/* ==========================================================================
   FEATURED PRODUCTS / BEST SELLERS
   ========================================================================== */

.flavor-featured {
    padding: var(--space-section) 0;
    background: var(--color-white);
}


/* ==========================================================================
   PRODUCT GRID
   ========================================================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols-desktop), 1fr);
    gap: var(--grid-gap);
}


/* ==========================================================================
   PRODUCT CARD — Skin Creamery style (centered text, outlined add-to-cart)
   ========================================================================== */

.product-card {
    position: relative;
    text-align: center;
}

.product-card-image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-light);
    margin-bottom: var(--space-lg);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease);
}

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

.product-card-quick-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-black);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    transform: translateY(100%);
    transition: transform var(--duration-base) var(--ease);
    cursor: pointer;
    border: none;
    border-top: 1px solid var(--color-border);
}

.product-card:hover .product-card-quick-add {
    transform: translateY(0);
}

.product-card-quick-add:disabled {
    opacity: 0.7;
}

.product-card-info {
    text-align: center;
}

.product-card-title {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--weight-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.product-card-price {
    font-size: var(--text-base);
    color: var(--color-dark);
    font-weight: var(--weight-normal);
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    justify-content: center;
}

.price-was {
    text-decoration: line-through;
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.price-sale {
    color: var(--color-sale);
    font-weight: var(--weight-semibold);
}

.product-card-add-btn {
    display: inline-block;
    margin-top: var(--space-md);
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease);
}

.product-card-add-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}


/* ==========================================================================
   SHOP BY CATEGORY
   ========================================================================== */

.sc-categories {
    padding: var(--space-section) 0;
    background: var(--color-white);
}

.sc-categories h2 {
    text-align: center;
    font-size: var(--text-3xl);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-3xl);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-item {
    display: block;
    text-align: center;
}

.category-item-label {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-dark);
    padding: var(--space-lg) 0;
    display: block;
}

.category-item-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.category-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-light);
}


/* ==========================================================================
   REVIEWS SECTION
   ========================================================================== */

.sc-reviews {
    padding: var(--space-section) 0;
    background: var(--color-white);
}

.sc-reviews h2 {
    text-align: center;
    font-size: var(--text-3xl);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-2xl);
}

.reviews-summary {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.reviews-rating {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--color-black);
}

.reviews-stars {
    color: #d4a843;
    font-size: var(--text-xl);
    margin-bottom: var(--space-xs);
}

.reviews-count {
    font-size: var(--text-sm);
    color: var(--color-muted);
}

.reviews-bars {
    max-width: 400px;
    margin: 0 auto var(--space-3xl);
}

.review-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
}

.review-bar-label {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 30px;
    color: var(--color-dark);
}

.review-bar-track {
    flex: 1;
    height: 8px;
    background: var(--color-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.review-bar-count {
    min-width: 40px;
    text-align: right;
    color: var(--color-muted);
    font-size: var(--text-sm);
}

.reviews-list {
    max-width: 600px;
    margin: 0 auto;
}

.review-card {
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.review-author {
    font-weight: var(--weight-semibold);
    color: var(--color-black);
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
}

.review-date {
    font-size: var(--text-sm);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.review-card .reviews-stars {
    text-align: left;
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
}

.review-text {
    font-size: var(--text-base);
    font-style: italic;
    color: var(--color-body);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.review-product {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.review-product-thumb {
    width: 40px;
    height: 40px;
    background: var(--color-light);
    border-radius: 4px;
}

.review-product-name {
    font-size: var(--text-sm);
    color: var(--color-dark);
}


/* ==========================================================================
   SHOP PAGE
   ========================================================================== */

.flavor-shop {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-section);
    min-height: 100vh;
}

.shop-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.shop-title {
    font-size: var(--text-3xl);
    letter-spacing: 0.2em;
}

.shop-count {
    color: var(--color-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
}

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-3xl);
}

/* Sidebar filters */
.shop-sidebar {
    padding-top: var(--space-md);
}

.filter-group {
    margin-bottom: var(--space-2xl);
}

.filter-group-title {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-black);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.filter-option {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-body);
    padding: var(--space-xs) 0;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease);
    background: none;
    border: none;
    text-align: left;
    width: 100%;
    font-family: var(--font-body);
}

.filter-option:hover,
.filter-option.active {
    color: var(--color-black);
    font-weight: var(--weight-medium);
}

/* Sort/filters bar */
.shop-filters {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: var(--space-xl);
    gap: var(--space-md);
}

.filter-categories {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    border: 1px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
}

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

.filter-btn.active {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.shop-sort {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-body);
    cursor: pointer;
}

.shop-empty {
    text-align: center;
    padding: var(--space-4xl) 0;
    color: var(--color-muted);
}


/* ==========================================================================
   PRODUCT DETAIL
   ========================================================================== */

.flavor-product-detail {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-section);
}

.breadcrumb {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-bottom: var(--space-2xl);
}

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

.breadcrumb span {
    margin: 0 var(--space-xs);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
}

.gallery-main {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-light);
    margin-bottom: var(--space-md);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 1px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color var(--duration-fast) var(--ease);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--color-black);
}

/* Product Info */
.product-name {
    font-size: var(--text-3xl);
    font-weight: var(--weight-light);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}

.product-price-large {
    font-size: var(--text-xl);
    color: var(--color-black);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-weight: var(--weight-normal);
}

.product-price-large .price-was {
    font-size: var(--text-lg);
}

.product-short-desc {
    color: var(--color-body);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.product-short-desc p {
    margin-bottom: var(--space-sm);
}

/* Quantity selector */
.product-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.quantity-selector button {
    width: 44px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-body);
    background: var(--color-white);
    border: none;
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease);
}

.quantity-selector button:hover {
    background: var(--color-light);
}

.qty-value {
    width: 48px;
    text-align: center;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
}

.btn-add-to-cart {
    flex: 1;
}

/* Accordion */
.product-details-accordion {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
}

.product-details-accordion summary {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: var(--space-sm) 0;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-details-accordion summary::-webkit-details-marker {
    display: none;
}

.product-details-accordion summary::after {
    content: '+';
    font-size: var(--text-xl);
    font-weight: var(--weight-light);
}

.product-details-accordion[open] summary::after {
    content: '\2212';
}

.accordion-content {
    padding: var(--space-md) 0;
    color: var(--color-body);
    line-height: 1.7;
}

.accordion-content p {
    margin-bottom: var(--space-md);
}


/* ==========================================================================
   CART DRAWER
   ========================================================================== */

.cart-drawer-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.cart-drawer-wrapper.open {
    pointer-events: all;
}

.cart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease);
}

.cart-drawer-wrapper.open .cart-backdrop {
    opacity: 1;
}

.cart-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--drawer-width);
    max-width: 90vw;
    height: 100%;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease);
    box-shadow: var(--shadow-lg);
}

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

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

.cart-drawer-header h2 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    letter-spacing: 0.15em;
}

.cart-close {
    font-size: var(--text-2xl);
    color: var(--color-muted);
    padding: var(--space-sm);
    line-height: 1;
}

.cart-close:hover {
    color: var(--color-black);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-xl);
}

.cart-loading,
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) 0;
    color: var(--color-muted);
    gap: var(--space-lg);
}

/* Cart item */
.cart-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
    transition: opacity var(--duration-fast) var(--ease);
}

.cart-item.updating {
    opacity: 0.5;
}

.cart-item-image {
    width: 72px;
    height: 90px;
    overflow: hidden;
    background: var(--color-light);
    flex-shrink: 0;
}

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

.cart-item-no-image {
    width: 100%;
    height: 100%;
    background: var(--color-light);
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: var(--weight-medium);
    font-size: var(--text-sm);
    color: var(--color-black);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.05em;
}

.cart-item-price {
    font-size: var(--text-sm);
    color: var(--color-muted);
    margin-bottom: var(--space-sm);
}

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

.cart-item-qty button {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: var(--color-body);
}

.cart-item-qty span {
    width: 28px;
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
}

.cart-item-remove {
    position: absolute;
    top: var(--space-lg);
    right: 0;
    font-size: var(--text-lg);
    color: var(--color-muted);
    padding: var(--space-xs);
}

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

/* Cart footer */
.cart-drawer-footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    color: var(--color-black);
    letter-spacing: 0.05em;
}


/* ==========================================================================
   FOOTER — Skin Creamery dark purple/slate
   ========================================================================== */

.flavor-footer {
    background: var(--color-footer);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-section) 0 var(--space-2xl);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    letter-spacing: 0.3em;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    font-weight: var(--weight-light);
}

.footer-tagline {
    font-size: var(--text-sm);
    font-weight: var(--weight-light);
    font-style: normal;
    letter-spacing: 0.02em;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
}

.footer-col a {
    display: block;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-sm);
    transition: color var(--duration-fast) var(--ease);
    font-weight: var(--weight-light);
}

.footer-col a:hover {
    color: var(--color-white);
}

.footer-col p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    font-weight: var(--weight-light);
}

.footer-newsletter {
    display: flex;
    gap: var(--space-sm);
}

.footer-newsletter input {
    flex: 1;
    padding: 0.625rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .btn-primary {
    white-space: nowrap;
    background: var(--color-white);
    color: var(--color-footer);
    border-color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    text-align: center;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
}


/* ==========================================================================
   SKELETON LOADING
   ========================================================================== */

.skeleton .skeleton-image {
    aspect-ratio: 1 / 1;
    background: linear-gradient(90deg, var(--color-light) 25%, var(--color-cream) 50%, var(--color-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton .skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, var(--color-light) 25%, var(--color-cream) 50%, var(--color-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    margin-top: var(--space-sm);
}

.skeleton .skeleton-text.short {
    width: 60%;
    margin: var(--space-sm) auto 0;
}

.skeleton .skeleton-text.wide {
    width: 80%;
    height: 20px;
    margin: 0 auto;
}

.skeleton-image.large {
    aspect-ratio: 1 / 1;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* ==========================================================================
   PAGE CONTENT
   ========================================================================== */

.flavor-page-content {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: var(--space-3xl) var(--gutter) var(--space-section);
}

.flavor-page-content h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.2em;
}

.page-body {
    line-height: 1.8;
    color: var(--color-body);
}

.page-body p {
    margin-bottom: var(--space-lg);
}


/* ==========================================================================
   FLOATING CART BUTTON
   ========================================================================== */

.sc-floating-cart {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: var(--shadow-md);
    border: none;
    transition: background var(--duration-base) var(--ease);
}

.sc-floating-cart:hover {
    background: var(--color-primary-dark);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(var(--grid-cols-tablet), 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .shop-layout {
        grid-template-columns: 200px 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .nav-links.open {
        display: flex;
    }

    .product-grid {
        grid-template-columns: repeat(var(--grid-cols-mobile), 1fr);
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .product-gallery {
        position: static;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-add-to-cart {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        display: none;
    }

    .sc-topbar {
        display: none;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-two-col,
    .about-two-col.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .gallery-thumb {
        width: 56px;
        height: 56px;
    }

    .trust-badges-grid {
        gap: var(--space-md);
    }

    .trust-badge {
        width: 80px;
    }

    .trust-badge-icon {
        width: 64px;
        height: 64px;
        font-size: 1.2rem;
    }
}
