/* ============================================================
   Mahall E-boutique — Design System
   Collection Aid 2026 — Warm beige & cream palette
   ============================================================ */

/* --- Google Fonts loaded via <link> in HTML <head> --- */

/* --- Design Tokens --- */
:root {
    /* Brand */
    --brand: #8b7355;
    --brand-dark: #6b5740;
    --brand-light: #f5f0ea;
    --brand-glow: rgba(139, 115, 85, 0.12);
    --brand-gradient: linear-gradient(135deg, #8b7355 0%, #c4a882 50%, #8b7355 100%);

    /* Surfaces */
    --bg: #f0ebe4;
    --surface: rgba(250, 247, 242, 0.7);
    --surface-solid: #faf7f2;
    --surface-raised: #ffffff;
    --surface-hover: #f5f0ea;
    --surface-glass: rgba(255, 255, 255, 0.55);

    /* Text */
    --text: #1a1a1a;
    --text-secondary: #5a5247;
    --text-tertiary: #9a8e80;
    --text-inverse: #ffffff;

    /* Accent */
    --accent: #1a1a1a;
    --accent-hover: #333333;
    --link: #8b7355;
    --link-hover: #6b5740;
    --danger: #c45c4a;

    /* Borders */
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Motion */
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration: 0.25s;
    --duration-slow: 0.4s;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 48px;
    --banner-height: 40px;
    --section-gap: 6rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-glow) transparent;
}

html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: rgba(139, 115, 85, 0.2);
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 115, 85, 0.35);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

::selection {
    background: var(--brand);
    color: white;
}

/* Subtle grain texture overlay for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--text);
}

.font-display {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

/* --- Layout --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   ANNOUNCEMENT BANNER
   ============================================================ */
.announcement-bar {
    background: linear-gradient(135deg, #8b7355 0%, #a68b6b 100%);
    color: white;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.4;
    position: relative;
    z-index: 1001;
}

.announcement-bar a {
    color: white;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.announcement-bar a:hover {
    opacity: 0.85;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-weight: 700;
    font-size: 1.0625rem;
    letter-spacing: -0.025em;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo a {
    color: var(--text);
    transition: opacity var(--duration) var(--ease);
}

.logo a:hover { opacity: 0.6; }

.logo .logo-accent {
    color: var(--brand);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
    white-space: nowrap;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--brand);
    border-radius: 1px;
    transition: width var(--duration-slow) var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Cart */
.cart-btn {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
    border: none;
    background: rgba(139, 115, 85, 0.08);
    padding: 8px 12px;
    border-radius: var(--radius-full);
}

.cart-btn:hover {
    background: rgba(139, 115, 85, 0.14);
}

.cart-icon {
    position: relative;
    width: 20px;
    height: 20px;
    color: var(--text);
}

.cart-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--brand);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.cart-price {
    display: none;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 4px;
    color: var(--text);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

/* Homepage hero */
.hero-home {
    padding: 5rem 24px 4rem;
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

/* Ambient glow orb behind hero */
.hero-home::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.1) 0%, transparent 70%);
    top: -80px;
    right: -100px;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.hero-text h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-text h1 .text-brand {
    color: #8b7355;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-text .hero-subtitle {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--brand);
    margin-bottom: 1rem;
    padding: 6px 14px;
    background: rgba(139, 115, 85, 0.08);
    border-radius: var(--radius-full);
    border: 1px solid rgba(139, 115, 85, 0.12);
}

.hero-text .hero-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    max-width: 480px;
}

.hero-text .hero-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--brand);
    font-style: italic;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Hero image */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Decorative shape behind image */
.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: linear-gradient(135deg, rgba(139, 115, 85, 0.06) 0%, rgba(196, 168, 130, 0.08) 50%, rgba(139, 115, 85, 0.04) 100%);
    border-radius: var(--radius-2xl);
    transform: rotate(-2deg);
    z-index: -1;
}

.hero-image::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 12%;
    right: 12%;
    height: 32px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.1) 0%, transparent 70%);
    filter: blur(12px);
    border-radius: 50%;
}

.hero-image img {
    border-radius: var(--radius-2xl);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255,255,255,0.4);
    max-height: 480px;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.7s ease;
    position: relative;
    z-index: 1;
}

.hero-image img:hover {
    transform: scale(1.03) rotate(0.5deg);
    box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255,255,255,0.5);
}

/* Feature cards (right side of hero) */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-card {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.6);
    transform: translateY(-4px) scale(1.01);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.feature-icon--gift { background: #f5eede; color: #8b7355; }
.feature-icon--heart { background: #fce7f3; color: #c45c6a; }
.feature-icon--users { background: #e8e0d6; color: #6b5740; }

.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Page hero (products, about, faq) */
.page-hero {
    text-align: center;
    padding: 4rem 24px 3rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.page-hero h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--brand-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.section {
    padding: var(--section-gap) 0;
}

.section--alt {
    background: var(--surface-solid);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

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

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.6);
    border-color: rgba(255, 255, 255, 0.7);
}

.step-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.step-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.step-card p {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    line-height: 1.55;
}

/* ============================================================
   BLESSING / DUA SECTION
   ============================================================ */
.blessing-section {
    background: linear-gradient(135deg, #6b5740 0%, #8b7355 30%, #c4a882 60%, #a68b6b 100%);
    background-size: 300% 300%;
    animation: blessing-gradient 10s ease infinite;
    color: white;
    text-align: center;
    padding: 6rem 24px;
    margin: 2rem 0 0;
    position: relative;
    overflow: hidden;
}

.blessing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

@keyframes blessing-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.blessing-section h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: white;
    font-weight: 700;
    max-width: 600px;
    margin: 0 auto 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.blessing-section p {
    font-size: 0.9375rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(26, 26, 26, 0.25), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.btn--primary:hover::before {
    opacity: 1;
}

.btn--primary:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.btn--brand {
    background: var(--brand);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn--brand:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(139, 115, 85, 0.4), 0 0 0 1px rgba(255,255,255,0.15) inset;
}

.btn--brand:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn--outline:hover {
    border-color: var(--text);
    background: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.08);
}

.btn--outline:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.btn--white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-dark);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn--white:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255,255,255,0.8) inset;
}

.btn--white:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.btn--lg {
    padding: 14px 36px;
    font-size: 1rem;
}

.btn--sm {
    padding: 8px 20px;
    font-size: 0.8125rem;
}

.btn--full {
    width: 100%;
}

/* Buy button */
.btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 13px 24px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.btn-buy:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-buy:active {
    transform: translateY(0);
}

.btn-buy:disabled,
.btn-buy.out-of-stock {
    background: #d5cec4;
    color: #9a8e80;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Inline options on product cards */
.card-options {
    margin-bottom: 0.75rem;
}
.card-option-field {
    margin-bottom: 0.5rem;
}
.card-option-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}
.card-option-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-solid);
    font-family: inherit;
    font-size: 0.8125rem;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s;
}
.card-option-select:focus {
    outline: none;
    border-color: var(--brand);
}

/* Inline quantity widget */
.inline-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--accent);
}
.inline-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.inline-qty-btn:hover {
    background: var(--accent-hover);
}
.inline-qty-btn:active {
    opacity: 0.8;
}
.inline-qty-val {
    flex: 1;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 44px;
    background: white;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255,255,255,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--brand-light);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

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

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    letter-spacing: -0.015em;
}

.product-title a {
    transition: color var(--duration) var(--ease);
}

.product-title a:hover {
    color: var(--brand);
}

.product-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--brand-dark);
}

/* Out of stock */
.out-of-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(196, 92, 74, 0.9);
    color: white;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.product-card.out-of-stock {
    opacity: 0.65;
}

.product-card.out-of-stock .product-image {
    filter: grayscale(30%) brightness(0.95);
}

/* Category badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(139, 115, 85, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.trust-badge {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: var(--radius-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trust-badge svg {
    flex-shrink: 0;
    color: var(--brand);
}

.trust-badge strong {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.trust-badge span {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 6px;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: var(--radius-full);
    width: fit-content;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
    color: var(--text);
    background: rgba(0,0,0,0.04);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Filter animation */
.product-card.filter-hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.product-card.filter-visible {
    opacity: 1;
    transform: scale(1);
    position: relative;
    visibility: visible;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .trust-badges {
        grid-template-columns: 1fr 1fr;
    }
    .filter-bar {
        width: 100%;
        justify-content: center;
    }
}

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

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    margin-top: 1rem;
}

.gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: var(--radius-lg);
}

.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-grid img {
    flex: 0 0 100%;
    width: 100%;
    border-radius: var(--radius-lg);
    scroll-snap-align: center;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.carousel-video-slide {
    flex: 0 0 100%;
    width: 100%;
    border-radius: var(--radius-lg);
    scroll-snap-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light);
    aspect-ratio: 1/1;
    padding: 1.5rem;
}

.carousel-wrapper {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration) var(--ease);
    z-index: 2;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.08);
    box-shadow: var(--shadow-lg);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.purchase-box {
    padding: 0.5rem 0;
}

.purchase-box .product-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.purchase-box h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.purchase-box .price {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--brand-dark);
}

.purchase-box .product-note {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    line-height: 1.5;
}

.product-details {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.product-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-details p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.product-details ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.product-details li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* ============================================================
   DONATION CARD
   ============================================================ */
.donation-card {
    margin-top: 3rem;
    background: linear-gradient(135deg, rgba(245, 240, 234, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 115, 85, 0.12);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.3), transparent);
}

.donation-card:hover {
    box-shadow: 0 16px 32px -8px rgba(139, 115, 85, 0.12);
    transform: translateY(-4px);
    border-color: rgba(139, 115, 85, 0.2);
}

.donation-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--brand-dark);
}

.donation-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.donation-card a {
    color: var(--brand);
    font-weight: 600;
    transition: opacity var(--duration) var(--ease);
}

.donation-card a:hover { opacity: 0.7; }

/* ============================================================
   ABOUT / PROCEDURE PAGE
   ============================================================ */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.option-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--duration-slow) var(--ease);
}

.option-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.steps-grid--about {
    grid-template-columns: repeat(4, 1fr);
    max-width: var(--container-narrow);
}

.option-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.option-icon--personal { background: #e8e0d6; color: #6b5740; }
.option-icon--charity { background: #fce7f3; color: #c45c6a; }

.option-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.option-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About page: options */
.about-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-option-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--duration-slow) var(--ease);
}

.about-option-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.about-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-option-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.about-option-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* About page: steps timeline */
.about-steps {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.about-steps::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.about-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1rem 0;
    position: relative;
}

.about-step-num {
    position: absolute;
    left: -3rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--surface-raised);
    border: 2px solid var(--brand);
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.about-step-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    letter-spacing: -0.01em;
}

.about-step-content p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.about-step-content a {
    color: var(--brand);
    font-weight: 500;
}

/* About page: tip */
.about-tip {
    text-align: center;
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: var(--brand-light);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--duration) var(--ease);
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--brand);
}

.faq-arrow {
    transition: transform var(--duration) var(--ease);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--brand);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease);
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer-content {
    padding: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-answer-content a {
    color: var(--brand);
    font-weight: 500;
}

/* Contact/help section */
.help-section {
    text-align: center;
    padding: 4rem 0 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

.help-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(245, 240, 234, 0.95) 100%);
    border-top: 1px solid rgba(255,255,255,0.5);
    margin-top: var(--section-gap);
    padding: 4rem 0 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-glow), transparent);
}

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

.footer-brand h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.footer-brand p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: color var(--duration) var(--ease);
}

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

.footer-bottom {
    max-width: var(--container-max);
    margin: 2.5rem auto 0;
    padding: 1.5rem 24px 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.footer-bottom a {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    transition: color var(--duration) var(--ease);
}

.footer-bottom a:hover {
    color: var(--text-secondary);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(250, 247, 242, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all var(--duration) var(--ease);
}

.back-to-top:hover {
    background: var(--surface-raised);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   ANIMATIONS — Powered by Motion.dev
   ============================================================ */

/* Hidden state applied by JS only when Motion.dev is loaded */
.motion-ready .product-card, .motion-ready .feature-card,
.motion-ready .step-card, .motion-ready .option-card,
.motion-ready .procedure-step, .motion-ready .faq-item,
.motion-ready .donation-card, .motion-ready .about-option-card,
.motion-ready .checkout-layout, .motion-ready .section-header,
.motion-ready .hero-text h1, .motion-ready .hero-text .hero-subtitle,
.motion-ready .hero-text .hero-description, .motion-ready .hero-text .hero-note,
.motion-ready .hero-text .hero-cta,
.motion-ready .hero-image,
.motion-ready .page-hero h1, .motion-ready .page-hero p,
.motion-ready .step-card .step-icon-wrap,
.motion-ready .blessing-section {
    opacity: 0;
}

/* Product cards: hover shadow (transform handled by Motion.dev) */
.product-card {
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12), 0 8px 20px -8px rgba(0, 0, 0, 0.06);
}

/* Image zoom on hover — smoother */
.product-image {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Buy button: press effect */
.btn-buy {
    transition:
        all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.btn-buy::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-buy:hover::after {
    opacity: 1;
}

.btn-buy:active {
    transform: scale(0.96);
    transition-duration: 0.1s;
}

/* Cart badge pop — handled by Motion.dev spring animation */

/* Announcement bar shimmer */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.announcement-bar {
    background: linear-gradient(135deg, #8b7355 0%, #a68b6b 25%, #c4a882 50%, #a68b6b 75%, #8b7355 100%);
    background-size: 200% 100%;
    animation: shimmer 8s ease-in-out infinite;
}

/* Feature cards: tilt on hover */
.feature-card {
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}

/* Donation card: gentle float (starts after reveal) */
@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.donation-card.is-revealed {
    animation: gentle-float 4s ease-in-out infinite 1s;
}

/* Cart panel: smoother slide */
.cart-panel {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-overlay {
    transition: opacity 0.35s ease;
}

/* Hero image — entrance + parallax handled by Motion.dev */

/* Step icon entrance — spring animation handled by Motion.dev */

/* Blessing section — scroll-linked reveal handled by Motion.dev */

/* Reduce motion: never hide elements, disable animations */
@media (prefers-reduced-motion: reduce) {
    .motion-ready .product-card, .motion-ready .feature-card,
    .motion-ready .step-card, .motion-ready .option-card,
    .motion-ready .procedure-step, .motion-ready .faq-item,
    .motion-ready .donation-card, .motion-ready .about-option-card,
    .motion-ready .checkout-layout, .motion-ready .section-header,
    .motion-ready .hero-text h1, .motion-ready .hero-text .hero-subtitle,
    .motion-ready .hero-text .hero-description, .motion-ready .hero-text .hero-note,
    .motion-ready .hero-text .hero-cta, .motion-ready .hero-image,
    .motion-ready .page-hero h1, .motion-ready .page-hero p,
    .motion-ready .step-card .step-icon-wrap,
    .motion-ready .blessing-section {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }

/* ============================================================
   CART SIDEBAR PANEL
   ============================================================ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    background: var(--surface-raised);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-panel-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.cart-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color var(--duration) var(--ease);
}

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

.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-empty p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

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

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.cart-item-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.cart-item-option {
    margin-bottom: 0.375rem;
}

.cart-item-option label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    margin-bottom: 0.125rem;
}

.cart-item-option select,
.cart-item-option textarea {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.8125rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--duration) var(--ease);
}

.cart-item-option select:focus,
.cart-item-option textarea:focus {
    outline: none;
    border-color: var(--brand);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.cart-item-qty span {
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    line-height: 1;
}

.qty-btn:hover {
    border-color: var(--text);
    background: var(--surface-hover);
}

.cart-item-remove {
    position: absolute;
    top: 1rem;
    right: 0;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color var(--duration) var(--ease);
}

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

.cart-panel-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-checkout-btn {
    text-align: center;
}

/* Buy button "added" feedback */
.btn-buy.added {
    background: var(--brand);
}

/* ============================================================
   PRODUCT OPTIONS (detail pages)
   ============================================================ */
.product-options {
    margin-bottom: 1.25rem;
}

.product-option-field {
    margin-bottom: 0.75rem;
}

.product-option-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.product-option-select,
.product-option-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--duration) var(--ease);
}

.product-option-select:focus,
.product-option-textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.checkout-layout h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.checkout-cart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.checkout-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.checkout-item-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.checkout-item-price {
    font-weight: 700;
    color: var(--brand-dark);
    white-space: nowrap;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 700;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border);
}

.checkout-form-wrapper h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--duration) var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow);
}

.checkout-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.checkout-secure-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 1rem;
    justify-content: center;
}

.checkout-empty {
    text-align: center;
    padding: 4rem 0;
}

.checkout-empty h2 {
    margin-bottom: 0.75rem;
}

.checkout-empty p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-home {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 24px;
    }

    .hero-home::before {
        display: none;
    }

    .hero-features {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 4rem;
    }

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

    .about-steps {
        padding-left: 2.5rem;
    }

    .about-step-num {
        left: -2.5rem;
        width: 26px;
        height: 26px;
        font-size: 0.6875rem;
    }

    .about-steps::before {
        left: 12px;
    }

    .hero-home {
        padding: 2.5rem 20px;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step-card {
        text-align: center;
        padding: 1.5rem 1.25rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .filter-bar {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 0.375rem;
        padding: 4px;
        border-radius: var(--radius-lg);
        scrollbar-width: none;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .product-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 3rem 20px 2rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Mobile nav */
    .nav-menu {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(250, 247, 242, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem 24px;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-link {
        padding: 12px 0;
        font-size: 0.9375rem;
        border-bottom: 1px solid var(--border);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .blessing-section {
        padding: 3rem 20px;
    }

    .cart-panel {
        width: 100vw;
    }

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

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container,
    .container--narrow {
        padding: 0 16px;
    }

    .product-card {
        border-radius: var(--radius-lg);
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .btn--lg {
        padding: 12px 28px;
        font-size: 0.9375rem;
    }
}

/* --- Homepage Sections --- */
.section {
    padding: 4rem 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* "Pour qui offrir?" cards */
.about-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.about-option-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: box-shadow 0.2s;
}
.about-option-card:hover {
    box-shadow: var(--shadow-md);
}
.about-option-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-glow);
    border-radius: var(--radius-md);
    color: var(--brand);
}
.about-option-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.about-option-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Catalog carousel — Coverflow 3D */
.carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    user-select: none;
    -webkit-user-select: none;
    perspective: 1000px;
    overflow: hidden;
    padding: 2rem 0;
}
.carousel-viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 700px;
}
.carousel-slide {
    position: absolute;
    width: 480px;
    will-change: transform, opacity;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
    cursor: pointer;
}
.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.2);
    pointer-events: none;
}
@media (max-width: 768px) {
    .carousel-viewport { height: 420px; }
    .carousel-slide { width: 280px; }
}
@media (max-width: 480px) {
    .carousel-viewport { height: 340px; }
    .carousel-slide { width: 240px; }
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: opacity 0.2s, transform 0.2s;
    color: var(--text);
}
.carousel-nav:hover {
    transform: translateY(-50%) scale(1.08);
    background: white;
}
.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}
.carousel-nav.prev { left: 0.5rem; }
.carousel-nav.next { right: 0.5rem; }
.carousel-nav:disabled {
    opacity: 0;
    pointer-events: none;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
    background: var(--brand);
    transform: scale(1.3);
}
.carousel-counter {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.03em;
}
@media (max-width: 768px) {
    .carousel-nav { display: none; }
    .carousel-slide { padding: 0 1rem; }
}

/* Animated gradient text sweep */
.color-cycle {
    background: linear-gradient(
        90deg,
        var(--brand) 0%,
        var(--brand-light) 20%,
        var(--brand-dark) 40%,
        var(--text-tertiary) 60%,
        var(--brand) 80%,
        var(--brand-dark) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientSweep 4s ease-in-out infinite;
}
@keyframes gradientSweep {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Countdown section */
.countdown-section {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #faf8f5;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.countdown-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2rem;
}
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
    min-width: 60px;
    padding: 0.75rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.countdown-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    font-weight: 500;
}
.countdown-sub {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .countdown {
        gap: 0.75rem;
    }
    .countdown-number {
        font-size: 1.75rem;
        min-width: 48px;
        padding: 0.5rem;
    }
}

/* Blessing / CTA section */
.blessing-section {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #6b5740 0%, #8b7355 30%, #c4a882 60%, #a68b6b 100%);
    background-size: 300% 300%;
    animation: blessing-gradient 10s ease infinite;
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}
.blessing-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}
@keyframes blessing-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.blessing-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.blessing-section p {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .about-options {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 3rem 1rem;
    }
}
