/* ===================================================
   FILE: style.css
   ROLE: Centralized Atelier Stylesheet (Root Level)
   CONCEPT: 100% Fully Responsive Layout with Expanded Sales Notifier & AI Modal
   PALETTE: Warm Sand, Nude Camel, Terracotta Accent
   =================================================== */

:root {
    --bg-base: #fbf8f3;
    --color-sand: #f3eae0;
    --color-nude-accent: #eddccb;
    --color-terracotta: #ca7861;
    --color-terracotta-hover: #b3644e;
    --color-text-dark: #3c322b;
    --color-text-muted: #706257;
    
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --radius-main: 8px;

    /* WhatsApp Brand Theme Tokens */
    --wa-teal: #008069;
    --wa-teal-dark: #005e4d;
    --wa-bg: #efeae2;
    --wa-bubble-sent: #d9fdd3;
    --wa-bubble-received: #ffffff;
    --wa-blue-tick: #53bdeb;
}

/* SMOOTH SCROLLING AND VIEWPORT RESETS */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* KUNCI MOBIL VIEWPORT DINAMIK UNTUK TROLI WHATSAPP */
html.cart-open, body.cart-open {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
}

/* PENGECALAN WARNA LALAI PENUNJUK PAUTAN */
a {
    color: inherit;
    text-decoration: none;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===================================================
   1. INTRO PRELOADER ANIMATION
   =================================================== */
.intro-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-base);
    z-index: 1000000; /* Lapisan paling hadapan sekali */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.2s;
    overflow: hidden;
}

.intro-loader.fade-away {
    opacity: 0;
    visibility: hidden;
}

/* Bekas struktur pemasangan kek */
.cake-assembler {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    animation: slowHoverCake 3s ease-in-out infinite 1.2s;
}

@keyframes slowHoverCake {
    0%, 100% { transform: scale(0.9) translateY(0); }
    50% { transform: scale(0.9) translateY(-10px); }
}

/* Bahagian-bahagian kek yang bakal terurai */
.cake-part {
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, filter 0.8s ease;
}

/* --- FASA CANTUMAN AUTOMATIK (ASSEMBLY KEYFRAMES) --- */
@keyframes assembleCherry {
    0% { transform: translateY(-200px); opacity: 0; }
    100% { transform: translateY(12px); opacity: 1; }
}
@keyframes assembleCream {
    0% { transform: translateY(-150px) scale(0.5); opacity: 0; }
    100% { transform: translateY(5px) scale(1); opacity: 1; }
}
@keyframes assembleSpongeTop {
    0% { transform: translateX(-200px) translateY(-50px) rotate(-30deg); opacity: 0; }
    100% { transform: translateX(0) translateY(0) rotate(0); opacity: 1; }
}
@keyframes assembleFilling {
    0% { transform: translateX(200px); opacity: 0; }
    100% { transform: translateY(-2px); opacity: 1; }
}
@keyframes assembleSpongeBottom {
    0% { transform: translateY(200px); opacity: 0; }
    100% { transform: translateY(-5px); opacity: 1; }
}

/* Ceri Merah di Atas */
.cake-cherry {
    font-size: 2.2rem;
    z-index: 6;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    animation: assembleCherry 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Lapisan Krim Putih */
.cake-cream {
    width: 90px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.04);
    z-index: 5;
    animation: assembleCream 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
}

/* Sponge Atas */
.cake-sponge-top {
    width: 120px;
    height: 32px;
    background-color: var(--color-sand);
    border-radius: 6px;
    border-bottom: 4px solid var(--color-terracotta);
    z-index: 4;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    animation: assembleSpongeTop 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

/* Inti Tengah */
.cake-filling {
    width: 110px;
    height: 10px;
    background-color: #ffffff;
    border-radius: 4px;
    z-index: 3;
    animation: assembleFilling 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.3s;
}

/* Sponge Bawah */
.cake-sponge-bottom {
    width: 130px;
    height: 38px;
    background-color: var(--color-nude-accent);
    border-radius: 6px;
    border-bottom: 5px solid var(--color-text-dark);
    z-index: 2;
    box-shadow: 0 6px 12px rgba(60, 50, 43, 0.05);
    animation: assembleSpongeBottom 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

/* Brand Atelier Subtitle Loader */
.loader-brand-title {
    margin-top: 30px;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-text-dark);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInBrandTitle 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

@keyframes fadeInBrandTitle {
    to { opacity: 0.8; transform: translateY(0); }
}

/* --- FASA KEK TERURAI AUTOMATIK --- */
.intro-loader.deconstruct .cake-cherry {
    transform: translateY(-180px) rotate(45deg) scale(0.4) !important;
    opacity: 0 !important;
    filter: blur(4px);
}

.intro-loader.deconstruct .cake-cream {
    transform: translateY(-110px) scale(0.5) !important;
    opacity: 0 !important;
    filter: blur(3px);
}

.intro-loader.deconstruct .cake-sponge-top {
    transform: translateX(-160px) translateY(-30px) rotate(-22deg) scale(0.6) !important;
    opacity: 0 !important;
    filter: blur(3px);
}

.intro-loader.deconstruct .cake-filling {
    transform: translateX(160px) scale(0.3) !important;
    opacity: 0 !important;
    filter: blur(2px);
}

.intro-loader.deconstruct .cake-sponge-bottom {
    transform: translateY(160px) rotate(18deg) scale(0.6) !important;
    opacity: 0 !important;
    filter: blur(3px);
}

.intro-loader.deconstruct .loader-brand-title {
    transform: translateY(15px);
    opacity: 0 !important;
    transition: all 0.6s ease;
}

/* ===================================================
   2. STICKY GLASSMORPHIC HEADER DESIGN (FIXED SCROLL)
   =================================================== */
header {
    background-color: rgba(251, 248, 243, 0.88); /* Transparon beige sutera */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(60, 50, 43, 0.06);
    position: fixed; /* FIXED: 100% stabil melekat mengikut skrol tatalan */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(60, 50, 43, 0.02);
    transition: all 0.3s ease;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: all 0.3s ease;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text-dark);
    z-index: 1002;
}

.logo-icon { font-size: 1.4rem; }

.logo-text-wrapper {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 30px;
    transition: all 0.4s ease;
}

nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover { color: var(--color-terracotta); }

.header-utilities {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 1.1rem;
    z-index: 1002;
}

.header-utilities a {
    color: var(--color-text-dark);
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.cart-icon-btn {
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px; right: -10px;
    background-color: var(--color-terracotta);
    color: white;
    font-size: 0.65rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ===================================================
   3. HERO & PREMIUM TITLES
   =================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 520px;
    background-color: var(--color-sand);
    position: relative;
    overflow: hidden; /* Menyekat sparkle terkeluar dari zon hero */
}

.hero-image-side {
    background-image: url('images/hero_main.jpg?v=17');
    background-size: cover;
    background-position: center center; /* Memfokuskan simetri seimbang pada desktop */
    width: 100%; height: 100%;
    z-index: 2;
}

.hero-text-side {
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f5ece2;
    position: relative;
    z-index: 2;
}

.hero-text-side::before {
    content: '';
    position: absolute;
    top: 20px; bottom: 20px; left: 20px; right: 20px;
    border: 1px solid rgba(60, 50, 43, 0.05);
    pointer-events: none;
}

.hero-text-side h1 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.hero-text-side p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 35px;
}

.btn-terracotta {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--color-terracotta);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(202, 120, 97, 0.2);
    cursor: pointer;
    border: none;
}

.btn-terracotta:hover {
    background-color: var(--color-terracotta-hover);
    transform: translateY(-1px);
}

.btn-secondary-outline {
    background-color: transparent !important;
    border: 1.5px solid var(--color-terracotta) !important;
    color: var(--color-terracotta) !important;
    box-shadow: none !important;
}

.btn-secondary-outline:hover {
    background-color: var(--color-terracotta) !important;
    color: white !important;
}

.btn-text-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-terracotta);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    transition: color 0.3s;
    display: inline-block;
}
.btn-text-link:hover {
    color: var(--color-terracotta-hover);
}

/* RECONSTRUCTED PREMIUM LITERARY SECTION DIVIDER (ATELIER STYLE) */
.section-divider {
    text-align: center;
    margin: 80px 0 30px;
    position: relative;
}

.section-divider h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    padding-bottom: 16px;
    color: var(--color-text-dark);
}

/* Prestigious Gradient Line with Centered Diamond Star Symbol ✦ */
.section-divider h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-terracotta), transparent);
}

.section-divider h2::after {
    content: '✦';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--color-terracotta);
    background-color: var(--bg-base);
    padding: 0 10px;
}

.section-intro-text {
    text-align: center;
    max-width: 650px;
    margin: -10px auto 40px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 0 15px;
}

/* ===================================================
   4. STYLES FOR CORE SECTIONS
   =================================================== */
/* PRESTIGIOUS CATEGORIES SECTION DESIGN */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 0 6% 40px;
}

.category-card {
    background-color: #fcfaf7;
    border: 1px solid rgba(202, 120, 97, 0.12);
    border-radius: var(--radius-main);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: var(--color-text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(60, 50, 43, 0.02);
}

.category-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-terracotta);
    box-shadow: 0 12px 24px rgba(202, 120, 97, 0.08);
    background-color: #fff;
}

.category-icon-wrapper {
    font-size: 2.8rem;
    margin-bottom: 18px;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon-wrapper {
    transform: scale(1.15) rotate(4deg);
}

.category-card h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    flex-grow: 1;
}

/* CURATED COLLECTIONS GRID (8 CARDS TOTAL) */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 6% 40px;
}

.collection-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius-main);
    overflow: hidden;
    background-color: var(--color-sand);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.collection-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.collection-card:hover img {
    transform: scale(1.04);
}

.collection-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 65%, rgba(60, 50, 43, 0.75) 100%);
    z-index: 2;
}

.collection-name {
    position: absolute;
    bottom: 22px; left: 0; width: 100%;
    text-align: center;
    z-index: 3;
    color: white;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* OUR CONFECTIONS PRODUCT GRID (5 ITEMS FIT WELL IN 3x2 OR DYNAMIC GRID) */
.confections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 6% 40px;
}

.artisan-card {
    background-color: var(--bg-base);
    border-radius: var(--radius-main);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    border: 1px solid rgba(60, 50, 43, 0.04);
}

.artisan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(60, 50, 43, 0.05);
}

.card-image-frame {
    position: relative;
    padding-top: 105%;
    overflow: hidden;
    border-radius: var(--radius-main) var(--radius-main) 0 0;
    background-color: var(--color-sand);
}

.card-image-frame img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.card-body-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body-content h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}

.card-body-content p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    height: 54px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    margin-bottom: 15px;
}

.price-tag { font-weight: 600; font-size: 1.05rem; }

.rating-badge {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #fdede8;
    color: var(--color-terracotta);
    padding: 3px 8px;
    border-radius: 4px;
}

.btn-card-action {
    display: block;
    text-align: center;
    width: 100%;
    padding: 12px 0;
    background-color: var(--color-terracotta);
    color: white;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-card-action:hover { background-color: var(--color-terracotta-hover); }

/* SPOTLIGHT BANNER SECTION */
.spotlight-banner-section {
    background-color: #f5ece2;
    padding: 70px 10%;
    text-align: center;
    position: relative;
    margin: 60px 0;
}
.spotlight-content span {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--color-terracotta);
    text-transform: uppercase;
}
.spotlight-content h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    margin: 15px 0 20px;
    color: var(--color-text-dark);
}
.spotlight-content p {
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* MEET BALQIS CARD SECTION */
.baker-preview-section {
    padding: 60px 6%;
}
.baker-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
    align-items: center;
    background-color: white;
    border: 1px solid rgba(60,50,43,0.06);
    border-radius: var(--radius-main);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(60, 50, 43, 0.02);
}
.baker-img-frame {
    height: 480px;
    background-image: url('images/baker_balqis.jpg'); /* Balqis local placeholder image */
    background-size: cover;
    background-position: center;
    background-color: var(--color-sand);
}
.baker-bio-content {
    padding: 40px;
}
.baker-bio-content span {
    font-family: var(--font-serif);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 2px;
    color: var(--color-terracotta);
}
.baker-bio-content h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 500;
    margin-top: 5px;
}
.baker-sub {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}
.baker-bio-content p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* HOW TO ORDER STEPS SECTION */
.how-to-order-section {
    background-color: #fdfaf7;
    padding: 60px 6%;
    margin-top: 50px;
    border-top: 1px solid rgba(60,50,43,0.04);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.step-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: var(--radius-main);
    border: 1px solid rgba(202, 120, 97, 0.08);
    position: relative;
    box-shadow: 0 4px 15px rgba(60, 50, 43, 0.01);
}
.step-num {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-nude-accent);
    line-height: 1;
    margin-bottom: 15px;
}
.step-card h3 {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.step-card p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
.order-notice {
    text-align: center;
    margin-top: 35px;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.text-center { text-align: center !important; }

/* PRE-FOOTER BANNER PANEL */
.prefooter-banner {
    background-color: #eddccb; /* Rich Sand / Terracotta blend */
    padding: 60px 10%;
    text-align: center;
    margin-top: 60px;
}
.prefooter-banner h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}
.prefooter-banner p {
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--color-text-dark);
}

/* ===================================================
   5. WHATSAPP CART SIDEBAR & OVERLAYS
   =================================================== */
.cart-overlay {
    position: fixed;
    top: 0; left: 0; 
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 999990 !important; /* Di bawah drawer sahaja */
    display: none;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
}

.cart-overlay.open {
    display: block;
    background-color: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

.cart-drawer {
    position: fixed;
    top: 0 !important; 
    right: 0 !important; 
    width: 420px; 
    height: 100vh;
    height: 100dvh;
    background-color: var(--wa-bg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M10 20h2v2h-2zm15 15h2v2h-2zm-10 10h2v2h-2zM30 10h2v2h-2z' fill='%23dfdacf' fill-opacity='0.45'/></svg>");
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 999995 !important; /* Atas overlay, bawah preloader */
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    
    /* HARDWARE ACCELERATED SLIDING TRANSITIONS */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

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

.cart-header {
    background-color: var(--wa-teal);
    color: white;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    flex-shrink: 0; 
}

.wa-contact-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-avatar {
    width: 40px; height: 40px;
    background-color: var(--bg-base);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.wa-contact-info { display: flex; flex-direction: column; }
.wa-contact-info h3 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.5px; line-height: 1.2; }
.wa-status { font-size: 0.72rem; opacity: 0.85; }

.wa-header-utilities { display: flex; align-items: center; gap: 16px; font-size: 1.1rem; }
.wa-header-icon { cursor: pointer; opacity: 0.9; transition: opacity 0.2s; }
.wa-header-icon:hover { opacity: 1; }
.close-cart-btn { font-size: 1.6rem; font-weight: 300; line-height: 1; margin-left: 8px; }

.cart-items-container {
    flex: 1 1 auto; 
    min-height: 0;   
    overflow-y: auto;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    -webkit-overflow-scrolling: touch; 
}

.wa-bubble {
    max-width: 82%;
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 0.82rem;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.wa-bubble.received { background-color: var(--wa-bubble-received); align-self: flex-start; border-top-left-radius: 2px; }
.wa-bubble.sent { background-color: var(--wa-bubble-sent); align-self: flex-end; border-top-right-radius: 2px; width: 80%; }

.wa-cart-item-card { display: flex; gap: 10px; align-items: center; }
.wa-item-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; background-color: var(--bg-base); }
.wa-item-details { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.wa-item-name { font-weight: 600; font-size: 0.85rem; color: var(--color-text-dark); }
.wa-item-price-sub { font-size: 0.8rem; color: var(--color-text-muted); }

.wa-item-modifiers { display: flex; align-items: center; gap: 10px; margin-top: 8px; border-top: 1px dashed rgba(0, 0, 0, 0.06); padding-top: 8px; justify-content: flex-end; }
.wa-mod-btn { background-color: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.08); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.wa-mod-btn:hover { background-color: var(--wa-teal); color: white; border-color: var(--wa-teal); }
.wa-qty-display { font-size: 0.85rem; font-weight: 600; min-width: 14px; text-align: center; }

.wa-meta-row { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 4px; font-size: 0.65rem; color: #727272; align-self: flex-end; width: 100%; }
.wa-double-tick { color: var(--wa-blue-tick); font-size: 0.85rem; line-height: 1; }

.cart-footer {
    background-color: #f0f2f5;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    flex-shrink: 0; 
}

.wa-compose-bar {
    background-color: white;
    border-radius: 24px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 6px 14px;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wa-compose-emoji { font-size: 1.1rem; cursor: pointer; opacity: 0.7; }
.wa-compose-input-mock { flex-grow: 1; font-size: 0.88rem; color: var(--color-text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-compose-input-mock strong { color: var(--wa-teal-dark); }
.wa-compose-attachment { font-size: 1.05rem; cursor: pointer; opacity: 0.6; }

.wa-send-btn {
    background-color: #00a884;
    color: white;
    border: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0; 
}
.wa-send-btn:hover { background-color: #008f6f; transform: scale(1.03); }

/* ===================================================
   6. SWEET WHISPERS (TESTIMONIAL LIVE MARQUEE) SECTION
   =================================================== */
.marquee-section {
    padding: 50px 0 30px;
    background-color: #f4eae0; /* Champagne soft gradient nude */
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(60, 50, 43, 0.05);
    border-bottom: 1px solid rgba(60, 50, 43, 0.05);
}

/* Container Marquee utama */
.marquee-container {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    padding: 15px 0;
}

/* Trek bergerak live tanpa putus */
.marquee-track {
    display: flex;
    gap: 25px;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

/* Berhenti seketika secara live apabila jari/tetikus menyentuh */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Kerana loop penduaan dalam PHP */
}

/* Rekabentuk Kad Komen Mewah */
.testimonial-card {
    width: 320px;
    background-color: white;
    border-radius: var(--radius-main);
    padding: 24px;
    border: 1px solid rgba(202, 120, 97, 0.08);
    box-shadow: 0 4px 15px rgba(60, 50, 43, 0.03);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

.stars-row {
    color: #ffb100;
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.comment-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text-dark);
    font-weight: 400;
    font-style: italic;
}

.reviewer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(60, 50, 43, 0.05);
    padding-top: 12px;
}

.reviewer-name {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-dark);
}

.review-tag {
    font-size: 0.7rem;
    background-color: #fcede8;
    color: var(--color-terracotta);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

/* ===================================================
   7. INTERACTIVE POLICY MODALS SUITE (GLASS Backdrops)
   =================================================== */
.policy-modal {
    position: fixed;
    top: 0; left: 0; 
    width: 100vw; 
    height: 100vh;
    height: 100dvh;
    z-index: 2000000 !important; /* Above everything except preloader */
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.policy-modal.open {
    display: flex;
}

.policy-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(60, 50, 43, 0.45);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.4s ease;
    opacity: 0;
}

.policy-modal.open .policy-backdrop {
    opacity: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.policy-content-box {
    position: relative;
    background-color: white;
    width: 100%;
    max-width: 650px;
    max-height: 80vh;
    max-height: 80dvh;
    border-radius: var(--radius-main);
    padding: 30px;
    box-shadow: 0 15px 40px rgba(60, 50, 43, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 2;
    
    /* BUTTERY SMOOTH APPLE-LIKE ANIMATION */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.policy-modal.open .policy-content-box {
    transform: scale(1);
    opacity: 1;
}

.policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(60, 50, 43, 0.08);
    padding-bottom: 15px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.policy-header h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-dark);
}

.close-policy-btn {
    background: none;
    border: none;
    font-size: 1.6rem;
    font-weight: 300;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color 0.3s;
}
.close-policy-btn:hover {
    color: var(--color-terracotta);
}

.policy-body {
    overflow-y: auto;
    flex-grow: 1;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--color-text-dark);
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
}

.policy-body h4 {
    margin: 20px 0 8px;
    font-family: var(--font-serif);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-terracotta);
}

.policy-body ul {
    margin: 10px 0;
    padding-left: 20px;
}

.policy-body li {
    margin-bottom: 6px;
}

.philosophy-tagline {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-terracotta);
    font-style: italic;
    text-align: center;
    margin: 25px 0;
    padding: 15px;
    border-top: 1px dashed rgba(202, 120, 97, 0.2);
    border-bottom: 1px dashed rgba(202, 120, 97, 0.2);
}

/* PREMIUM FLOATING MUSIC WIDGET STYLING */
.music-widget-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999 !important; 
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-base);
    border: 1px solid rgba(60, 50, 43, 0.15);
    padding: 8px 15px 8px 12px;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(60, 50, 43, 0.25);
    cursor: move; 
    user-select: none;
    touch-action: none; 
}
.music-widget-container:hover {
    border-color: var(--color-terracotta);
}

.vinyl-record {
    width: 32px; height: 32px;
    background-color: #111;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    position: relative;
    box-shadow: inset 0 0 0 4px #222, 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.5s ease;
}
.vinyl-record::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    background-color: var(--bg-base);
    border-radius: 50%;
}

.vinyl-record.spinning {
    animation: spinVinyl 3.5s linear infinite;
}

@keyframes spinVinyl {
    100% { transform: rotate(360deg); }
}

.music-soundwaves { display: flex; align-items: flex-end; gap: 3px; height: 14px; width: 20px; }
.wave-bar { width: 3px; height: 3px; background-color: var(--color-terracotta); border-radius: 3px; transition: height 0.3s ease; }
.music-widget-container.playing .wave-bar-1 { animation: waveBounce 1.2s ease-in-out infinite alternate; }
.music-widget-container.playing .wave-bar-2 { animation: waveBounce 0.8s ease-in-out infinite alternate 0.2s; }
.music-widget-container.playing .wave-bar-3 { animation: waveBounce 1s ease-in-out infinite alternate 0.4s; }

@keyframes waveBounce { 0% { height: 3px; } 100% { height: 14px; } }
.music-status-text { font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-dark); }

/* FLOATING AI CHAT BOT TRIGGER BUBBLE (Bottom Left Side) */
.ai-trigger-bubble {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 999999 !important;
    background-color: var(--color-terracotta);
    color: white;
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(202,120,97,0.35);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.2s;
}
.ai-trigger-bubble:hover {
    transform: scale(1.08) rotate(5deg);
    background-color: var(--color-terracotta-hover);
}

/* ===================================================
   10. LIVE SALES POPUP NOTIFICATION (ATELIER ALERT BAR)
   =================================================== */
.sales-popup-notification {
    position: fixed;
    top: -150px; /* Di luar skrin asal */
    left: 50%;
    transform: translateX(-50%);
    width: 90%; /* Sempurna untuk peranti mudah alih */
    max-width: 360px; /* Sempurna untuk saiz telefon biasa */
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 30px; /* Reka bentuk bujur premium */
    padding: 10px 18px;
    box-shadow: 0 10px 30px rgba(60, 50, 43, 0.12);
    border: 1px solid rgba(202, 120, 97, 0.18);
    z-index: 1000002 !important; /* Di atas segalanya kecuali preloader */
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), top 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
}

/* Apabila diaktifkan kelas .show */
.sales-popup-notification.show {
    top: 90px; /* Kedudukan meluncur turun tepat di bawah header */
    opacity: 1;
}

.sales-popup-avatar {
    width: 42px;
    height: 42px;
    background-color: #fdfbf7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(202, 120, 97, 0.1);
    flex-shrink: 0;
}

.sales-popup-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex-grow: 1;
    text-align: left;
}

.sales-popup-message {
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--color-text-dark);
}

.sales-popup-message strong {
    font-weight: 600;
}

.sales-popup-location {
    color: var(--color-terracotta);
    font-style: italic;
    font-weight: 500;
}

.sales-popup-product {
    color: #3c322b;
    font-weight: 600;
}

.sales-popup-time {
    font-size: 0.65rem;
    color: var(--color-text-muted);
}

/* HIGH-FIDELITY LUXURY PACKAGES GRID IN MODAL */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.package-item-card {
    background-color: #fcfaf7;
    border: 1px solid rgba(202, 120, 97, 0.12);
    border-radius: var(--radius-main);
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.package-item-card.featured {
    border-color: var(--color-terracotta);
    background-color: #fdfaf7;
    box-shadow: 0 4px 12px rgba(202,120,97,0.06);
}
.p-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 5px;
}
.package-item-card h5 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}
.p-desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* HIGH-PERFORMANCE WORKFLOW FORM DESIGN ATELIER */
.atelier-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.form-group label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-dark);
}
.form-group input, .form-group select, .form-group textarea {
    padding: 10px 14px;
    border: 1px solid rgba(60, 50, 43, 0.15);
    border-radius: 4px;
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    background-color: #fdfbf9;
    color: var(--color-text-dark);
    transition: border-color 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-terracotta);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* --- CHATBOT ATELIER SPECIFIC DESIGN RULES --- */
.ai-chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #fdfbf7;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

.ai-chat-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ai-chat-bubble.received {
    background-color: #f3eae0;
    color: var(--color-text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.ai-chat-bubble.sent {
    background-color: var(--color-terracotta);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.ai-chat-footer {
    display: flex;
    padding: 15px;
    background-color: white;
    border-top: 1px solid rgba(60,50,43,0.06);
    gap: 10px;
    align-items: center;
}

.ai-chat-footer input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid rgba(60,50,43,0.12);
    border-radius: 20px;
    outline: none;
    font-size: 0.82rem;
}

.ai-chat-footer input:focus {
    border-color: var(--color-terracotta);
}

.ai-chat-footer button {
    background-color: var(--color-terracotta);
    color: white;
    border: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    transition: background-color 0.2s;
}

.ai-chat-footer button:hover {
    background-color: var(--color-terracotta-hover);
}

/* ===================================================
   11. RESPONSIVE MEDIA QUERIES (TABLET & MOBILE OVERRIDES)
   =================================================== */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .collections-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .confections-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; }
    .packages-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
}

@media (min-width: 768px) {
    /* NAIK TARAF IPAD/TABLET (PORTRAIT & LANDSCAPE) */
    .sales-popup-notification {
        width: 80% !important;
        max-width: 580px !important; /* Dilebarkan untuk memaparkan teks sebaris */
        padding: 12px 24px !important;
        border-radius: 40px !important;
    }
    .sales-popup-notification.show {
        top: 100px !important;
    }
    .sales-popup-message {
        font-size: 0.85rem !important; /* Teks dibesarkan sedikit agar seimbang */
    }
    .sales-popup-avatar {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.7rem !important;
    }
}

@media (min-width: 1025px) {
    /* NAIK TARAF LAPTOP, MACBOOK & DESKTOP SCREEN */
    .sales-popup-notification {
        width: 70% !important;
        max-width: 760px !important; /* Mengembang megah dari hujung ke hujung mengikut skrin komputer */
        padding: 14px 30px !important;
        border-radius: 50px !important;
    }
    .sales-popup-notification.show {
        top: 110px !important;
    }
    .sales-popup-message {
        font-size: 0.9rem !important;
    }
    .sales-popup-avatar {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.8rem !important;
    }
}

@media (max-width: 768px) {
    header { padding: 15px 5%; }
    .burger-menu { display: flex; }
    .logo-text { font-size: 1.1rem; letter-spacing: 2px; }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background-color: var(--bg-base);
        padding: 25px;
        box-shadow: 0 12px 20px rgba(0,0,0,0.06);
        border-top: 1px solid rgba(60, 50, 43, 0.05);
        gap: 20px;
        text-align: center;
    }

    nav.active { display: flex; }

    .burger-menu.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger-menu.open span:nth-child(2) { opacity: 0; }
    .burger-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .header-utilities .search-link { display: none; }
    
    .hero-section { 
        grid-template-columns: 1fr !important; 
        min-height: auto !important;
    }
    .hero-image-side { 
        height: auto !important;
        width: 100% !important;
        aspect-ratio: 1.15 / 1 !important; 
        max-height: 420px !important; 
        background-position: center center !important; 
        background-size: cover !important;
    }
    .hero-text-side {
        padding: 40px 8% !important;
    }

    /* Responsive Category Grid setup on mobile */
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 4% 30px !important;
    }

    .category-card {
        padding: 20px 10px !important;
    }

    .category-icon-wrapper {
        font-size: 2.3rem !important;
        margin-bottom: 12px !important;
    }

    .category-card h3 {
        font-size: 0.9rem !important;
        letter-spacing: 1px !important;
    }

    /* Re-established mobile responsive grid columns flawlessly */
    .collections-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 4% 30px !important;
    }
    .confections-grid {
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
        padding: 0 4% 30px !important;
    }

    /* Responsive About Us Section on Mobile */
    .baker-grid {
        grid-template-columns: 1fr !important;
    }
    .baker-img-frame {
        height: 320px !important;
    }

    /* Form Layout Column setup on mobile */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    /* Responsive Footer Centered alignment rules */
    .footer-grid-layout { 
        grid-template-columns: 1fr !important; 
        gap: 35px !important; 
        text-align: center !important;
    }
    .social-icons-row {
        justify-content: center !important;
    }
    .newsletter-box {
        margin: 15px auto 0 !important;
    }

    /* FIXED: Force override specific positioning attributes to prevent iOS viewport distortion */
    .cart-drawer { 
        width: 100% !important; 
        max-width: 100% !important;
        right: 0 !important; 
        left: auto !important;
        top: 0 !important;
        height: 100% !important;
        height: 100dvh !important;
        transform: translateX(100%); /* Start hidden offscreen dynamically */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .cart-drawer.open {
        transform: translateX(0) !important;
        right: 0 !important;
    }

    /* Adjust live pop-up positioning on smaller phones */
    .sales-popup-notification {
        width: 90%;
        max-width: 360px;
    }
    .sales-popup-notification.show {
        top: 72px; /* Shifts up slightly closer to smaller headers */
    }
}

@media (max-width: 480px) {
    .collections-grid { grid-template-columns: 1fr !important; }
    .categories-grid { grid-template-columns: 1fr !important; }
}