/* ==========================================================================
   46 COFFEE — Premium Specialty Coffee Brand
   Design Identity & Theme System
   Colors:
     --cream:    #F4EFE6
     --beige:    #B8987A
     --espresso: #3A2921
     --sage:     #9AA58D
   ========================================================================== */

:root {
    /* Brand Official Palette */
    --color-cream: #F4EFE6;
    --color-cream-soft: #FAF7F2;
    --color-cream-card: #FFFFFF;
    --color-cream-dark: #E6DECF;
    
    --color-beige: #B8987A;
    --color-beige-light: #CFB499;
    --color-beige-dark: #9A7758;
    --color-beige-glow: rgba(184, 152, 122, 0.25);
    
    --color-espresso: #3A2921;
    --color-espresso-light: #523D33;
    --color-espresso-deep: #221813;
    --color-espresso-soft: rgba(58, 41, 33, 0.08);
    
    --color-sage: #9AA58D;
    --color-sage-light: #B4BFAB;
    --color-sage-dark: #7B876E;
    --color-sage-soft: rgba(154, 165, 141, 0.18);

    /* Functional Colors */
    --bg-main: var(--color-cream);
    --text-primary: var(--color-espresso);
    --text-secondary: #6A5B53;
    --text-muted: #8E8178;
    --border-color: rgba(58, 41, 33, 0.12);
    --border-light: rgba(184, 152, 122, 0.25);
    
    /* Typography */
    --font-arabic: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
    --font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 4px 20px rgba(58, 41, 33, 0.05);
    --shadow-card: 0 12px 36px rgba(58, 41, 33, 0.08);
    --shadow-elevated: 0 20px 48px rgba(58, 41, 33, 0.14);
    --shadow-gold: 0 8px 24px rgba(184, 152, 122, 0.35);

    /* Transitions */
    --transition: all 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Global Typography
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    direction: rtl; /* Arabic-first by default as in design */
}

body {
    font-family: var(--font-arabic);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

html[lang="en"],
html[dir="ltr"] {
    direction: ltr;
    font-family: var(--font-latin);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    transition: var(--transition);
}

/* Subtle background marble & noise texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 15%, rgba(255,255,255,0.7) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(184, 152, 122, 0.07) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================================================
   1. CINEMATIC SPLASH SCREEN (شاشة البداية)
   ========================================================================== */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #FAF7F2;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    padding: 2rem;
    position: relative;
}

/* Logo in Splash */
.splash-logo-wrap {
    position: relative;
    margin-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.splash-logo-img {
    width: 140px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transform: scale(0.9);
    animation: splashLogoPop 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animated Steam effect above logo */
.splash-steam {
    position: absolute;
    top: -25px;
    display: flex;
    gap: 8px;
}

.steam-particle {
    width: 6px;
    height: 18px;
    background: linear-gradient(to top, rgba(184, 152, 122, 0.5), transparent);
    border-radius: 10px;
    animation: steamRise 2s infinite ease-in-out;
}

.steam-particle:nth-child(2) {
    animation-delay: 0.3s;
    height: 24px;
}

.steam-particle:nth-child(3) {
    animation-delay: 0.6s;
    height: 16px;
}

.splash-slogan {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--color-espresso);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(12px);
    animation: splashFadeUp 0.8s ease 0.4s forwards;
}

.splash-sub {
    font-size: 1.05rem;
    color: var(--color-beige-dark);
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(12px);
    animation: splashFadeUp 0.8s ease 0.6s forwards;
}

.splash-progress-track {
    width: 180px;
    height: 3px;
    background: rgba(58, 41, 33, 0.1);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.splash-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-beige), var(--color-espresso));
    border-radius: 99px;
    transition: width 0.1s linear;
}

.splash-skip-btn {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.splash-skip-btn:hover {
    color: var(--color-espresso);
    border-color: var(--color-beige);
    background: #FFF;
}

@keyframes splashLogoPop {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes splashFadeUp {
    0% { opacity: 0; transform: translateY(14px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes steamRise {
    0% { opacity: 0; transform: translateY(0) scaleX(0.8); }
    50% { opacity: 0.6; transform: translateY(-10px) scaleX(1.2); }
    100% { opacity: 0; transform: translateY(-22px) scaleX(1.5); }
}

/* ==========================================================================
   2. HEADER & NAVIGATION (مطابق للتصميم)
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(244, 239, 230, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(58, 41, 33, 0.08);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(244, 239, 230, 0.96);
    box-shadow: var(--shadow-subtle);
}

.header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 1.15rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo styling */
.brand-logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-family: var(--font-latin);
    text-decoration: none;
}

.brand-logo-num {
    font-size: 2.15rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--color-espresso);
}

.brand-logo-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    color: var(--color-espresso);
    text-transform: uppercase;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-espresso);
    position: relative;
    padding: 0.35rem 0;
    transition: var(--transition);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--color-beige);
    border-radius: 99px;
    transition: width 0.3s ease;
}

html[dir="ltr"] .nav-link::after {
    right: auto;
    left: 0;
}

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

.nav-link:hover {
    color: var(--color-beige-dark);
}

/* Header Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-espresso);
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(58, 41, 33, 0.08);
    position: relative;
    transition: var(--transition);
}

.action-icon-btn:hover {
    background: #FFF;
    border-color: var(--color-beige);
    color: var(--color-beige-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.cart-counter {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--color-espresso);
    color: #FFF;
    font-size: 0.72rem;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--color-cream);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html[dir="ltr"] .cart-counter {
    left: auto;
    right: -4px;
}

.cart-counter.bump {
    transform: scale(1.4);
}

/* Language toggle button */
.lang-toggle-btn {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(58, 41, 33, 0.06);
    color: var(--color-espresso);
    border: 1px solid rgba(58, 41, 33, 0.1);
}

.lang-toggle-btn:hover {
    background: var(--color-espresso);
    color: var(--color-cream);
}

/* Replay intro small icon button */
.replay-btn {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px dashed var(--border-color);
}
.replay-btn:hover {
    color: var(--color-espresso);
    border-color: var(--color-beige);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-espresso);
    transition: var(--transition);
}

/* ==========================================================================
   3. HERO SECTION (مطابق بنسبة 100% للصور التخيلية)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 3rem 2rem 5rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 85px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

/* Hero Typography (Left side in LTR, Right side in RTL Arabic) */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 1rem;
    background: rgba(184, 152, 122, 0.15);
    border: 1px solid rgba(184, 152, 122, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-espresso);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-beige-dark);
    box-shadow: 0 0 10px var(--color-beige);
    animation: pulseGlow 2s infinite ease-in-out;
}

.hero-title {
    font-size: clamp(2.8rem, 5.2vw, 4.4rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: var(--color-espresso);
    margin-bottom: 1.25rem;
}

.hero-title .title-break {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.95rem 2.25rem;
    background: var(--color-espresso);
    color: #FAF7F2;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--color-espresso-deep);
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.92rem 2rem;
    background: transparent;
    color: var(--color-espresso);
    border: 1.5px solid var(--color-beige);
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-secondary:hover {
    background: rgba(184, 152, 122, 0.12);
    border-color: var(--color-espresso);
    transform: translateY(-2px);
}

/* Feature tags */
.hero-features {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(58, 41, 33, 0.08);
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-feature-item svg {
    color: var(--color-sage-dark);
}

/* ==========================================================================
   HERO VISUAL STAGE & INTERACTIVE 3D HOTSPOTS
   ========================================================================== */
.hero-visual-stage {
    position: relative;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-stage-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(58, 41, 33, 0.18), 0 0 0 1px rgba(184, 152, 122, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out, box-shadow 0.3s ease;
    background: #FAF7F2;
    cursor: default;
}

.hero-mockup-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Floating Hotspots on Products */
.hotspot {
    position: absolute;
    z-index: 10;
    transform: translate(-50%, -50%);
}

.hotspot-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(244, 239, 230, 0.9);
    border: 2px solid var(--color-espresso);
    color: var(--color-espresso);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(58, 41, 33, 0.3);
    position: relative;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.25s;
}

.hotspot-btn::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--color-beige);
    opacity: 0.7;
    animation: pulseRing 2.2s infinite ease-out;
}

.hotspot:hover .hotspot-btn {
    transform: scale(1.2);
    background: var(--color-espresso);
    color: var(--color-cream);
}

/* Hotspot Card Tooltip */
.hotspot-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #FFF;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(58, 41, 33, 0.16);
    border: 1px solid rgba(184, 152, 122, 0.25);
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 20;
    text-align: right;
}

html[dir="ltr"] .hotspot-tooltip {
    text-align: left;
}

.hotspot:hover .hotspot-tooltip,
.hotspot.active .hotspot-tooltip {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.hotspot-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-sage-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    display: block;
}

.hotspot-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-espresso);
    margin-bottom: 0.35rem;
}

.hotspot-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.hotspot-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.hotspot-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-espresso);
}

.hotspot-add-btn {
    padding: 0.35rem 0.85rem;
    background: var(--color-espresso);
    color: var(--color-cream);
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.hotspot-add-btn:hover {
    background: var(--color-beige-dark);
}

/* Individual Hotspot Positions based on the Mockup image */
.hotspot-pouch {
    top: 48%;
    left: 50%;
}

.hotspot-cup {
    top: 59%;
    left: 71%;
}

.hotspot-box-gift {
    top: 56%;
    left: 88%;
}

.hotspot-box-slim {
    top: 61%;
    left: 23%;
}

.hotspot-beans-bowl {
    top: 74%;
    left: 17%;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.9; }
    100% { transform: scale(1.65); opacity: 0; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   FLOATING COFFEE BEAN PARTICLES
   ========================================================================== */
.floating-beans-container {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.floating-bean {
    position: absolute;
    background: #3A2921;
    border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%;
    opacity: 0.35;
    box-shadow: 0 4px 8px rgba(34, 24, 19, 0.25);
    animation: floatBean 6s infinite ease-in-out;
}

.floating-bean::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 45%;
    width: 10%;
    height: 70%;
    background: rgba(244, 239, 230, 0.25);
    border-radius: 50%;
    transform: rotate(5deg);
}

.bean-1 { width: 18px; height: 26px; top: 18%; left: 8%; animation-duration: 5.5s; }
.bean-2 { width: 14px; height: 20px; top: 82%; left: 35%; animation-duration: 7s; animation-delay: 1s; }
.bean-3 { width: 22px; height: 32px; top: 25%; left: 85%; animation-duration: 6.2s; animation-delay: 2s; }
.bean-4 { width: 12px; height: 16px; top: 75%; left: 92%; animation-duration: 4.8s; animation-delay: 1.5s; }

@keyframes floatBean {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(14deg); }
}

/* ==========================================================================
   HERO FOOTER BAR (مطابق للألوان وشارة 2025 في التصميم)
   ========================================================================== */
.hero-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(58, 41, 33, 0.1);
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Palette Swatches */
.palette-swatches-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.palette-swatch-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.palette-swatch-item:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.swatch-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(58, 41, 33, 0.15);
    box-shadow: 0 2px 6px rgba(58, 41, 33, 0.08);
}

.swatch-circle.cream { background: #F4EFE6; }
.swatch-circle.beige { background: #B8987A; }
.swatch-circle.espresso { background: #3A2921; }
.swatch-circle.sage { background: #9AA58D; }

.swatch-meta {
    display: flex;
    flex-direction: column;
}

.swatch-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--color-espresso);
    line-height: 1.1;
}

.swatch-hex {
    font-size: 0.68rem;
    font-family: var(--font-latin);
    color: var(--text-muted);
}

/* Heritage Badge (منذ 2025) */
.heritage-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-weight: 600;
    color: var(--color-espresso);
}

html[dir="ltr"] .heritage-badge {
    align-items: flex-start;
}

.heritage-ar {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.heritage-en {
    font-size: 0.72rem;
    font-family: var(--font-latin);
    letter-spacing: 0.22em;
    color: var(--text-muted);
}

/* ==========================================================================
   4. PRODUCT SHOWCASE & 3D ANIMATIONS (انيميشن المنتجات)
   ========================================================================== */
.section-products {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-beige-dark);
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(184, 152, 122, 0.12);
}

.section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    color: var(--color-espresso);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Product Tabs */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.tab-btn {
    padding: 0.65rem 1.6rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.tab-btn:hover {
    background: #FFF;
    color: var(--color-espresso);
    border-color: var(--color-beige);
}

.tab-btn.active {
    background: var(--color-espresso);
    color: var(--color-cream);
    border-color: var(--color-espresso);
    box-shadow: var(--shadow-card);
}

/* Product Cards Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.25rem;
}

/* 3D Tilt Card */
.product-card-3d {
    position: relative;
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(58, 41, 33, 0.08);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

.product-card-3d:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 50px rgba(58, 41, 33, 0.12);
    border-color: rgba(184, 152, 122, 0.4);
}

/* Specular Glare light on card */
.product-card-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.product-card-3d:hover .product-card-glare {
    opacity: 1;
}

/* Card Visual / Thumbnail */
.card-media {
    position: relative;
    height: 260px;
    background: linear-gradient(135deg, #FAF7F2 0%, #EFE8DD 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.card-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--color-espresso);
    color: var(--color-cream);
    z-index: 2;
}

html[dir="ltr"] .card-badge {
    right: auto;
    left: 1.25rem;
}

.card-badge.gold {
    background: var(--color-beige-dark);
}

.card-badge.sage {
    background: var(--color-sage-dark);
}

/* Product SVG/Illustration or Photo */
.card-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-3d:hover .card-img-wrap {
    transform: scale(1.08) translateY(-4px);
}

/* Stylized Package visual */
.package-mockup-svg {
    filter: drop-shadow(0 14px 22px rgba(58, 41, 33, 0.15));
}

/* Quick View Overlay Button */
.quick-view-btn {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-espresso);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-card-3d:hover .quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-view-btn:hover {
    background: var(--color-espresso);
    color: #FFF;
}

/* Card Body */
.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-origin {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-beige-dark);
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-espresso);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Taste Profile Radar / Sliders */
.taste-profile-bars {
    background: var(--color-cream-soft);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(58, 41, 33, 0.05);
}

.taste-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.taste-bar-row:last-child {
    margin-bottom: 0;
}

.taste-bar-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-espresso);
    width: 60px;
}

.taste-bar-track {
    flex-grow: 1;
    height: 4px;
    background: rgba(58, 41, 33, 0.1);
    border-radius: 99px;
    margin: 0 0.75rem;
    overflow: hidden;
}

.taste-bar-fill {
    height: 100%;
    background: var(--color-beige);
    border-radius: 99px;
    transition: width 1s ease-out;
}

.taste-bar-fill.acidity { background: var(--color-sage-dark); }
.taste-bar-fill.body { background: var(--color-espresso); }

.taste-bar-val {
    font-size: 0.75rem;
    font-family: var(--font-latin);
    font-weight: 700;
    color: var(--text-muted);
    width: 24px;
    text-align: left;
}

html[dir="ltr"] .taste-bar-val {
    text-align: right;
}

/* Card Price & Action */
.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(58, 41, 33, 0.06);
}

.product-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-espresso);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-price small {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.add-cart-action-btn {
    padding: 0.7rem 1.4rem;
    background: var(--color-espresso);
    color: var(--color-cream);
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(58, 41, 33, 0.15);
    position: relative;
}

.add-cart-action-btn:hover {
    background: var(--color-beige-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(184, 152, 122, 0.35);
}

/* ==========================================================================
   5. THE 4:6 BREWING METHOD INTERACTIVE EXPERIENCE
   ========================================================================== */
.section-method {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(184, 152, 122, 0.08) 50%, transparent 100%);
    position: relative;
}

.method-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.method-content {
    display: flex;
    flex-direction: column;
}

.formula-split-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.formula-card {
    background: #FFF;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(58, 41, 33, 0.08);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.formula-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--color-beige);
}

html[dir="ltr"] .formula-card::before {
    right: auto;
    left: 0;
}

.formula-percent {
    font-size: 2.4rem;
    font-weight: 800;
    font-family: var(--font-latin);
    color: var(--color-espresso);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.formula-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-espresso);
    margin-bottom: 0.5rem;
}

.formula-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Interactive Pour-over Timer Card */
.brew-timer-card {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(184, 152, 122, 0.2);
    position: relative;
}

.brew-timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(58, 41, 33, 0.08);
}

.brew-timer-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-espresso);
}

.timer-display {
    font-family: var(--font-latin);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--color-espresso);
    text-align: center;
    letter-spacing: 0.05em;
    margin: 1rem 0;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-timer {
    padding: 0.65rem 1.8rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
}

.btn-timer.primary {
    background: var(--color-espresso);
    color: var(--color-cream);
}

.btn-timer.reset {
    background: rgba(58, 41, 33, 0.08);
    color: var(--color-espresso);
}

.timer-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timer-step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    background: var(--color-cream-soft);
    border-right: 3px solid transparent;
    transition: var(--transition);
}

html[dir="ltr"] .timer-step-item {
    border-right: none;
    border-left: 3px solid transparent;
}

.timer-step-item.active {
    background: #FFF;
    border-color: var(--color-beige);
    box-shadow: 0 4px 14px rgba(184, 152, 122, 0.2);
}

.step-time-badge {
    font-family: var(--font-latin);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    background: var(--color-espresso);
    color: #FFF;
    border-radius: var(--radius-sm);
}

.step-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--color-espresso);
    margin-bottom: 0.2rem;
}

.step-info p {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   6. BRAND HERITAGE & PHILOSOPHY (عن 46)
   ========================================================================== */
.section-about {
    padding: 6rem 2rem;
    max-width: 1360px;
    margin: 0 auto;
}

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

.about-card {
    background: #FFF;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(58, 41, 33, 0.08);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--color-beige);
}

.about-card-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: rgba(184, 152, 122, 0.15);
    color: var(--color-espresso);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-espresso);
    margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   7. INTERACTIVE CART DRAWER (السلة الجانبية الفاخرة)
   ========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(34, 24, 19, 0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background: #FAF7F2;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[dir="ltr"] .cart-drawer {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

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

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(58, 41, 33, 0.08);
}

.cart-header-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-espresso);
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-cart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(58, 41, 33, 0.06);
    color: var(--color-espresso);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.close-cart-btn:hover {
    background: var(--color-espresso);
    color: #FFF;
}

/* Free shipping threshold */
.free-shipping-box {
    padding: 1rem 2rem;
    background: rgba(184, 152, 122, 0.12);
    border-bottom: 1px solid rgba(184, 152, 122, 0.2);
}

.shipping-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-espresso);
    margin-bottom: 0.5rem;
}

.shipping-bar-track {
    height: 5px;
    background: rgba(58, 41, 33, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.shipping-bar-fill {
    height: 100%;
    background: var(--color-beige-dark);
    width: 0%;
    transition: width 0.4s ease;
}

/* Items List */
.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
}

.cart-empty-state svg {
    margin-bottom: 1rem;
    color: var(--color-beige);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #FFF;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(58, 41, 33, 0.06);
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-espresso);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--color-espresso);
    margin-bottom: 0.2rem;
}

.cart-item-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-beige-dark);
    margin-bottom: 0.4rem;
}

.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    background: rgba(58, 41, 33, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.qty-val {
    font-size: 0.88rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    color: #C2410C;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* Cart Footer */
.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(58, 41, 33, 0.08);
    background: #FFF;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.total-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-espresso);
}

.total-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-espresso);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-espresso);
    color: var(--color-cream);
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-card);
}

.checkout-btn:hover {
    background: var(--color-beige-dark);
}

/* ==========================================================================
   8. FLY-TO-CART ANIMATION PARTICLE
   ========================================================================== */
.flying-particle {
    position: fixed;
    width: 24px;
    height: 24px;
    background: var(--color-beige-dark);
    border: 2px solid #FFF;
    border-radius: 50%;
    z-index: 999999;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(184, 152, 122, 0.5);
    transition: all 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ==========================================================================
   9. QUICK VIEW MODAL
   ========================================================================== */
.quick-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(34, 24, 19, 0.65);
    backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quick-view-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.quick-view-modal {
    background: #FAF7F2;
    max-width: 800px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
}

.quick-view-overlay.active .quick-view-modal {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFF;
    color: var(--color-espresso);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

html[dir="ltr"] .modal-close-btn {
    left: auto;
    right: 1rem;
}

.modal-media {
    background: linear-gradient(135deg, #F0E9DF, #E5DCce);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content-body {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   10. SITE TOAST FEEDBACK
   ========================================================================== */
#site-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-espresso);
    color: var(--color-cream);
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(34, 24, 19, 0.3);
    border: 1px solid var(--color-beige);
    z-index: 100000;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.35s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

#site-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   11. FOOTER (فاخر ومطابق للهوية)
   ========================================================================== */
footer {
    background: #EDE6D8;
    border-top: 1px solid rgba(58, 41, 33, 0.08);
    padding: 5rem 2rem 2.5rem;
}

.footer-container {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 320px;
    line-height: 1.6;
}

.footer-col-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-espresso);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--color-espresso);
    transform: translateX(-4px);
}

html[dir="ltr"] .footer-links a:hover {
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1360px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(58, 41, 33, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .method-container {
        grid-template-columns: 1fr;
    }
    .about-features-grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-section {
        padding: 2rem 1rem 3rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .palette-swatches-wrap {
        gap: 0.8rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .quick-view-modal {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   13. FULL CART & CHECKOUT PAGE (cart.html)
   ========================================================================== */
.cart-page-wrap {
    max-width: 1360px;
    margin: 2.5rem auto 6rem;
    padding: 0 2rem;
}

.cart-page-header {
    margin-bottom: 2.5rem;
}

.cart-page-header h1 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--color-espresso);
    margin-bottom: 0.5rem;
}

.cart-page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.cart-page-grid {
    display: grid;
    grid-template-columns: 1.75fr 1.15fr;
    gap: 2.75rem;
    align-items: flex-start;
}

/* Cart Table & Items Card */
.cart-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(58, 41, 33, 0.08);
    box-shadow: var(--shadow-card);
    padding: 2rem;
    margin-bottom: 2rem;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: right;
    padding-bottom: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid rgba(58, 41, 33, 0.08);
}

html[dir="ltr"] .cart-table th {
    text-align: left;
}

.cart-table td {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(58, 41, 33, 0.06);
    vertical-align: middle;
}

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

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.cart-page-thumb {
    width: 75px;
    height: 75px;
    border-radius: var(--radius-md);
    background: var(--color-cream-soft);
    border: 1px solid rgba(184, 152, 122, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: var(--font-latin);
    color: var(--color-espresso);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.cart-page-prod-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-espresso);
    margin-bottom: 0.25rem;
}

.cart-page-prod-info span {
    font-size: 0.82rem;
    color: var(--color-beige-dark);
    display: block;
}

.qty-counter-box {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid rgba(58, 41, 33, 0.12);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.5rem;
    background: #FAF7F2;
}

.qty-counter-box button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-espresso);
}

.qty-counter-box button:hover {
    background: rgba(58, 41, 33, 0.08);
}

.qty-counter-box span {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-price-num {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-espresso);
}

.cart-del-btn {
    color: #991B1B;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: var(--transition);
}

.cart-del-btn:hover {
    background: #FEE2E2;
}

/* Shipping Progress in Cart Page */
.cart-progress-box {
    background: rgba(184, 152, 122, 0.12);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(184, 152, 122, 0.25);
}

.cart-progress-info {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-espresso);
    margin-bottom: 0.6rem;
}

.cart-progress-track {
    height: 7px;
    background: rgba(58, 41, 33, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.cart-progress-bar {
    height: 100%;
    background: var(--color-beige-dark);
    border-radius: 99px;
    transition: width 0.5s ease;
}

/* Checkout Form Sections */
.checkout-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-espresso);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-espresso);
}

.form-control {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(58, 41, 33, 0.12);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-espresso);
    background: #FFF;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-beige);
    box-shadow: 0 0 0 3px rgba(184, 152, 122, 0.18);
}

/* Payment Selector Cards */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.payment-method-card {
    border: 2px solid rgba(58, 41, 33, 0.1);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    background: #FAF7F2;
    transition: var(--transition);
    text-align: center;
}

.payment-method-card:hover {
    border-color: var(--color-beige);
    background: #FFF;
}

.payment-method-card.active {
    border-color: var(--color-espresso);
    background: #FFF;
    box-shadow: 0 4px 14px rgba(58, 41, 33, 0.08);
}

.pay-logo-badge {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--color-espresso);
    letter-spacing: -0.02em;
}

.pay-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Order Summary Box (Sticky) */
.summary-sticky-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(58, 41, 33, 0.08);
    box-shadow: var(--shadow-card);
    padding: 2.25rem;
    position: sticky;
    top: 100px;
}

.summary-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-espresso);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(58, 41, 33, 0.08);
    margin-bottom: 1.5rem;
}

/* Promo Code Box */
.promo-wrap {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.promo-input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(58, 41, 33, 0.12);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}

.promo-btn {
    padding: 0.75rem 1.4rem;
    background: var(--color-espresso);
    color: var(--color-cream);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.88rem;
}

.promo-btn:hover {
    background: var(--color-beige-dark);
}

.summary-rows {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(58, 41, 33, 0.08);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.summary-row.discount {
    color: #15803D;
    font-weight: 700;
}

.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.summary-total-label {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-espresso);
}

.summary-total-val {
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--color-espresso);
}

.place-order-btn {
    width: 100%;
    padding: 1.1rem;
    border-radius: var(--radius-full);
    background: var(--color-espresso);
    color: #FAF7F2;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(58, 41, 33, 0.2);
}

.place-order-btn:hover {
    background: var(--color-beige-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(184, 152, 122, 0.35);
}

/* ==========================================================================
   14. USER REGISTRATION & LIVE 3D MEMBERSHIP CARD (register.html)
   ========================================================================== */
.auth-page-container {
    max-width: 1280px;
    margin: 3.5rem auto 7rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 4.5rem;
    align-items: center;
}

/* 3D Interactive Membership Card Showcase */
.membership-showcase-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.membership-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-beige-dark);
    margin-bottom: 0.5rem;
}

.membership-heading {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--color-espresso);
    margin-bottom: 2rem;
}

/* The Live 3D Metallic Member Card */
.member-card-3d {
    width: 100%;
    max-width: 420px;
    height: 255px;
    border-radius: 20px;
    background: linear-gradient(135deg, #241A14 0%, #3A2921 50%, #1A130F 100%);
    box-shadow: 0 25px 50px -10px rgba(34, 24, 19, 0.4), 0 0 0 1px rgba(184, 152, 122, 0.3);
    padding: 1.75rem 2rem;
    position: relative;
    overflow: hidden;
    color: #FAF7F2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease-out;
    transform-style: preserve-3d;
    cursor: grab;
}

/* Metallic gold wave overlay on card */
.member-card-3d::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(184, 152, 122, 0.25) 0%, transparent 60%),
                linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.08) 50%, transparent 60%);
    pointer-events: none;
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.card-brand-logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.card-brand-logo strong {
    font-size: 1.75rem;
    font-family: var(--font-latin);
    font-weight: 800;
    color: var(--color-beige-light);
}

.card-brand-logo small {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #FFF;
}

.card-tier-pill {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(184, 152, 122, 0.25);
    border: 1px solid var(--color-beige);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-beige-light);
    letter-spacing: 0.05em;
}

.card-chip-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 2;
    margin: 1rem 0;
}

.smart-chip {
    width: 44px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
    border: 1px solid #FFDF73;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.smart-chip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.3);
}

.card-num-display {
    font-family: var(--font-latin);
    font-size: 1.15rem;
    letter-spacing: 0.18em;
    color: rgba(250, 247, 242, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.card-holder-info {
    text-align: right;
}

html[dir="ltr"] .card-holder-info {
    text-align: left;
}

.card-holder-info small {
    display: block;
    font-size: 0.65rem;
    color: var(--color-beige-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-holder-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFFFFF;
    min-height: 24px;
}

.card-expiry {
    text-align: left;
}

html[dir="ltr"] .card-expiry {
    text-align: right;
}

.card-expiry small {
    display: block;
    font-size: 0.65rem;
    color: var(--color-beige-light);
    letter-spacing: 0.08em;
}

.card-expiry strong {
    font-family: var(--font-latin);
    font-size: 0.95rem;
    color: #FFF;
}

/* Membership perks list */
.membership-perks-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: right;
    width: 100%;
    max-width: 420px;
}

html[dir="ltr"] .membership-perks-list {
    text-align: left;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.perk-item svg {
    color: var(--color-beige-dark);
    flex-shrink: 0;
}

/* Auth Card & Tabs */
.auth-box {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(58, 41, 33, 0.08);
    box-shadow: var(--shadow-elevated);
    padding: 2.75rem 2.5rem;
}

.auth-nav-tabs {
    display: flex;
    background: #FAF7F2;
    border-radius: var(--radius-full);
    padding: 0.35rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(58, 41, 33, 0.08);
}

.auth-tab-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    transition: var(--transition);
}

.auth-tab-btn.active {
    background: var(--color-espresso);
    color: #FAF7F2;
    box-shadow: var(--shadow-card);
}

/* Password Strength Meter */
.password-meter-wrap {
    margin-top: 0.4rem;
}

.password-meter-bars {
    display: flex;
    gap: 4px;
    height: 4px;
    margin-bottom: 0.35rem;
}

.meter-bar {
    flex: 1;
    background: rgba(58, 41, 33, 0.1);
    border-radius: 99px;
    transition: background 0.3s ease;
}

.meter-bar.active-weak { background: #EF4444; }
.meter-bar.active-medium { background: #F59E0B; }
.meter-bar.active-strong { background: #10B981; }

.password-hint-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Interactive Coffee Preferences Chips */
.coffee-pref-wrap {
    margin: 1.5rem 0;
}

.coffee-pref-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-espresso);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pref-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.pref-chip {
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(58, 41, 33, 0.12);
    background: #FAF7F2;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pref-chip:hover {
    border-color: var(--color-beige);
    color: var(--color-espresso);
}

.pref-chip.selected {
    background: var(--color-espresso);
    color: var(--color-cream);
    border-color: var(--color-espresso);
}

.auth-submit-btn {
    width: 100%;
    padding: 1.05rem;
    border-radius: var(--radius-full);
    background: var(--color-espresso);
    color: var(--color-cream);
    font-size: 1.05rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-card);
    margin-top: 1.5rem;
}

.auth-submit-btn:hover {
    background: var(--color-beige-dark);
}

/* Social Buttons */
.social-auth-wrap {
    margin-top: 1.75rem;
    text-align: center;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.social-divider::before,
.social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(58, 41, 33, 0.1);
}

.social-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-btn {
    padding: 0.75rem;
    border-radius: var(--radius-full);
    border: 1.5px solid rgba(58, 41, 33, 0.12);
    background: #FFF;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-espresso);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    background: #FAF7F2;
    border-color: var(--color-beige);
}

/* Responsive for cart & auth */
@media (max-width: 1024px) {
    .cart-page-grid {
        grid-template-columns: 1fr;
    }
    .auth-page-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   11. AI BARISTA CHAT WIDGET
   ========================================== */
.ai-barista-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9000;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
}

.ai-barista-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A2921 0%, #6B3D2E 100%);
    color: #F4EFE6;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(58,41,33,0.35), 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-barista-toggle:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 16px 40px rgba(58,41,33,0.45);
}

.ai-badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    border: 2px solid #F4EFE6;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

.ai-chat-panel {
    position: absolute;
    bottom: 76px;
    left: 0;
    width: 360px;
    max-height: 520px;
    background: #FAF7F2;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(58,41,33,0.2), 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(184,152,122,0.2);
    flex-direction: column;
    overflow: hidden;
}

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

.ai-chat-header {
    background: linear-gradient(135deg, #3A2921 0%, #5C3525 100%);
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: rgba(244,239,230,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 2px solid rgba(184,152,122,0.4);
}

.ai-header-name {
    color: #F4EFE6;
    font-weight: 800;
    font-size: 0.95rem;
}

.ai-header-status {
    color: #9AA58D;
    font-size: 0.75rem;
    margin-top: 2px;
}

.ai-close-btn {
    background: rgba(244,239,230,0.1);
    border: none;
    color: #F4EFE6;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.ai-close-btn:hover {
    background: rgba(244,239,230,0.2);
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    scroll-behavior: smooth;
}

.ai-messages::-webkit-scrollbar { width: 4px; }
.ai-messages::-webkit-scrollbar-track { background: transparent; }
.ai-messages::-webkit-scrollbar-thumb { background: rgba(184,152,122,0.3); border-radius: 2px; }

.ai-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.ai-msg.user {
    align-self: flex-start;
    align-items: flex-start;
}

.ai-msg.bot {
    align-self: flex-end;
    align-items: flex-end;
}

.ai-msg-bubble {
    padding: 0.7rem 1rem;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    word-break: break-word;
}

.ai-msg.user .ai-msg-bubble {
    background: #3A2921;
    color: #F4EFE6;
    border-bottom-right-radius: 4px;
}

.ai-msg.bot .ai-msg-bubble {
    background: #FFF;
    color: #3A2921;
    border: 1px solid rgba(184,152,122,0.2);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(58,41,33,0.06);
}

.ai-msg-time {
    font-size: 0.7rem;
    color: #B8987A;
    margin-top: 3px;
    padding: 0 4px;
}

/* Typing indicator */
.ai-typing-indicator .ai-msg-bubble {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.8rem 1rem;
}

.typing-dot {
    width: 7px;
    height: 7px;
    background: #B8987A;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-5px); opacity: 1; }
}

.ai-quick-chips {
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-top: 1px solid rgba(184,152,122,0.15);
    flex-shrink: 0;
    background: rgba(244,239,230,0.5);
}

.ai-chip {
    background: #FFF;
    border: 1px solid rgba(184,152,122,0.35);
    color: #3A2921;
    font-size: 0.75rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-chip:hover {
    background: #3A2921;
    color: #F4EFE6;
    border-color: #3A2921;
    transform: translateY(-1px);
}

.ai-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(184,152,122,0.15);
    background: #FFF;
    flex-shrink: 0;
}

.ai-input {
    flex: 1;
    border: 1.5px solid rgba(184,152,122,0.3);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    outline: none;
    background: #FAF7F2;
    color: #3A2921;
    direction: rtl;
    transition: border-color 0.2s;
}

.ai-input:focus {
    border-color: #B8987A;
}

.ai-send-btn {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3A2921, #6B3D2E);
    color: #F4EFE6;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.ai-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(58,41,33,0.3);
}

/* ==========================================
   12. COFFEE POUR ANIMATION SECTION
   ========================================== */
.section-pour-anim {
    padding: 5rem 1.5rem;
    background: linear-gradient(160deg, #FAF7F2 0%, #F0E9E0 40%, #EAD9C8 100%);
    position: relative;
    overflow: hidden;
}

.section-pour-anim::before {
    content: '☕';
    position: absolute;
    font-size: 18rem;
    opacity: 0.04;
    top: 50%;
    right: -4rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.pour-anim-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pour-anim-content {
    text-align: right;
}

.cup-features-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.5rem 0;
    justify-content: flex-end;
}

.cup-chip {
    background: rgba(255,255,255,0.8);
    border: 1.5px solid rgba(184,152,122,0.35);
    color: #3A2921;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: 99px;
    backdrop-filter: blur(4px);
    transition: all 0.25s;
}

.cup-chip:hover {
    background: #3A2921;
    color: #F4EFE6;
    border-color: #3A2921;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58,41,33,0.2);
}

.cup-price-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.cup-price-tag {
    font-size: 2.5rem;
    font-weight: 900;
    color: #3A2921;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.cup-price-tag small {
    font-size: 1.1rem;
    font-weight: 600;
    color: #B8987A;
    margin-right: 4px;
}

/* Pour Visual */
.pour-anim-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pour-scene {
    position: relative;
    width: 220px;
    height: 340px;
    margin: 0 auto;
}

.pour-stream-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 160px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.pour-stream-svg {
    width: 100%;
    height: 100%;
}

.stream-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: none;
}

@keyframes streamFall {
    from { stroke-dashoffset: 400; }
    to { stroke-dashoffset: 0; }
}

.pour-stream-wrap[style*="opacity: 1"] .stream-path,
.pour-stream-wrap.active .stream-path {
    animation: streamFall 0.5s ease-out forwards;
}

.pour-steam-container {
    position: absolute;
    top: 155px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 60px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 4;
    pointer-events: none;
}

.pour-steam-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(244,239,230,0.8);
    border-radius: 50%;
    animation: steamRise 2.5s ease-in-out infinite;
    filter: blur(3px);
}

.pour-steam-particle:nth-child(1) { left: 10px; animation-delay: 0s; }
.pour-steam-particle:nth-child(2) { left: 28px; animation-delay: 0.4s; }
.pour-steam-particle:nth-child(3) { left: 46px; animation-delay: 0.8s; }
.pour-steam-particle:nth-child(4) { left: 62px; animation-delay: 1.2s; }

@keyframes steamRise {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-25px) scale(1.5); opacity: 0.4; }
    100% { transform: translateY(-50px) scale(2); opacity: 0; }
}

.pour-cup-wrap {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 220px;
    z-index: 2;
}

.pour-cup-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 30px rgba(58,41,33,0.25));
    transition: transform 0.3s ease;
}

.pour-cup-wrap:hover .pour-cup-img {
    transform: scale(1.04);
}

.cup-fill-overlay {
    position: absolute;
    bottom: 20px;
    left: 18%;
    width: 64%;
    height: 0%;
    background: linear-gradient(180deg, rgba(107,61,46,0.6) 0%, rgba(58,41,33,0.75) 100%);
    border-radius: 0 0 8px 8px;
    transition: height 0.05s linear;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.cup-ripple {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(184,152,122,0.4);
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: all 0.1s;
}

.cup-ripple.active {
    animation: rippleExpand 0.8s ease-out;
}

@keyframes rippleExpand {
    0% { width: 10px; height: 10px; opacity: 0.7; transform: translateX(-50%) scale(1); }
    100% { width: 80px; height: 20px; opacity: 0; transform: translateX(-50%) scale(1); }
}

.pour-trigger-btn {
    background: linear-gradient(135deg, #3A2921 0%, #6B3D2E 100%);
    color: #F4EFE6;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 99px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(58,41,33,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pour-trigger-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244,239,230,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.pour-trigger-btn:hover:not(:disabled)::before { opacity: 1; }

.pour-trigger-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(58,41,33,0.4);
}

.pour-trigger-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pour-trigger-btn.poured {
    background: linear-gradient(135deg, #2E7D32, #4CAF50);
}

/* Section entrance animation */
#cup-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#cup-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   13. CURRENCY TOGGLE & EGP STYLES
   ========================================== */
.currency-toggle-btn {
    background: rgba(58,41,33,0.08);
    border: 1.5px solid rgba(184,152,122,0.4);
    color: #3A2921;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 0.3rem 0.7rem;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.25s;
    letter-spacing: 0.5px;
}

.currency-toggle-btn:hover {
    background: #3A2921;
    color: #F4EFE6;
}

.currency-toggle-btn.egp-active {
    background: #1a5276;
    color: #FFF;
    border-color: #1a5276;
}

/* Egyptian payment cards special styling */
.payment-method-card.egyptian-pay {
    border-top: 2px solid rgba(107,61,46,0.3);
    position: relative;
}

.pay-egp-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #1a5276;
    color: #FFF;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ==========================================
   RESPONSIVE: Pour animation
   ========================================== */
@media (max-width: 768px) {
    .pour-anim-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .pour-anim-content {
        text-align: center;
    }
    .cup-features-chips {
        justify-content: center;
    }
    .cup-price-row {
        justify-content: center;
    }
    .ai-chat-panel {
        width: 300px;
    }
    .ai-barista-widget {
        bottom: 1.5rem;
        left: 1rem;
    }
}
