/* =========================================================
   SURIPANDA.ID - Rumah Desain & Kerajinan Tangan Menyulam
   Bogor (Kota Hujan)
   Design System: Organic Artisan Meets Precision Glassmorphism
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,400;1,600&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* Palette Hujan Sore di Bogor (Warm Artisan Light Mode) */
    --bg-primary: #fbf8f3;
    --bg-secondary: #f4ede4;
    --bg-card: rgba(255, 255, 255, 0.82);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(184, 168, 150, 0.28);
    --glass-shadow: 0 12px 36px -8px rgba(118, 92, 70, 0.09);
    
    --text-primary: #292421;
    --text-secondary: #685e58;
    --text-muted: #9e938c;
    
    --accent-sage: #5b7358;
    --accent-sage-light: #e6ece4;
    --accent-terracotta: #c25e40;
    --accent-terracotta-light: #faece7;
    --accent-rose: #be7579;
    --accent-rose-light: #fceeed;
    --accent-gold: #c7923e;
    
    --nav-bg: rgba(251, 248, 243, 0.88);
    --drawer-bg: #fffdfa;
    --modal-overlay: rgba(35, 27, 22, 0.65);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Glassmorphism Mode (Malam Studio Berkabut) */
[data-theme="dark"] {
    --bg-primary: #0e0e11;
    --bg-secondary: #16161c;
    --bg-card: rgba(26, 26, 34, 0.72);
    --bg-card-hover: rgba(36, 36, 48, 0.85);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
    
    --text-primary: #f5f2ed;
    --text-secondary: #beb4ab;
    --text-muted: #79736c;
    
    --accent-sage: #7da579;
    --accent-sage-light: rgba(125, 165, 121, 0.15);
    --accent-terracotta: #e27555;
    --accent-terracotta-light: rgba(226, 117, 85, 0.15);
    --accent-rose: #d68b8f;
    --accent-rose-light: rgba(214, 139, 143, 0.15);
    
    --nav-bg: rgba(14, 14, 17, 0.85);
    --drawer-bg: #141419;
    --modal-overlay: rgba(0, 0, 0, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Rain Particle Canvas */
#rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.35;
}

/* Glowing Atmospheric Diffusion (Inspired by blackskinglass.html) */
.bg-ambient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    transition: transform 12s ease-in-out infinite alternate;
}

.orb-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, #ecd8c6 0%, transparent 70%);
    top: -10%;
    right: -5%;
}

[data-theme="dark"] .orb-1 {
    background: radial-gradient(circle, #3d2b27 0%, transparent 70%);
    opacity: 0.5;
}

.orb-2 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #d6e2d4 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
}

[data-theme="dark"] .orb-2 {
    background: radial-gradient(circle, #1d3126 0%, transparent 70%);
    opacity: 0.45;
}

/* Typography Helpers */
.font-serif { font-family: var(--font-heading); }
.font-mono { font-family: var(--font-mono); }

/* Glassmorphic Components */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(194, 94, 64, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 18px 45px -8px rgba(118, 92, 70, 0.16);
}

.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

/* Header & Nav */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: var(--transition-smooth);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.site-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-terracotta), #963f25);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(194, 94, 64, 0.35);
    position: relative;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.site-logo:hover .site-logo-icon {
    transform: scale(1.08);
    box-shadow: 0 12px 28px rgba(194, 94, 64, 0.5);
}

.site-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transform: scale(1.6);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    pointer-events: none;
    user-select: none;
}

/* Nav Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
    padding: 8px 0;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    padding: 10px;
    background: var(--bg-card);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--accent-terracotta);
    transform: translateX(4px);
}

/* Rain sound button & Theme toggle button */
.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: var(--bg-card);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-icon:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: scale(1.05);
}

.btn-icon.active {
    background: var(--accent-sage);
    color: #fff;
    border-color: var(--accent-sage);
}

/* Cart Button */
.btn-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cart-badge {
    background: var(--accent-terracotta);
    color: #fff;
    font-size: 11px;
    font-family: var(--font-mono);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Hero Section */
.hero-container {
    position: relative;
    z-index: 10;
    padding-top: 40px;
    padding-bottom: 70px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--accent-sage-light);
    color: var(--accent-sage);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(91, 115, 88, 0.2);
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.12;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    background: var(--accent-terracotta);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(194, 94, 64, 0.28);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: #a94b30;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(194, 94, 64, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Showcase Hero Image Grid */
.hero-media-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    position: relative;
}

.hero-media-item-1 {
    grid-column: span 7;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.hero-media-item-2 {
    grid-column: span 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    margin-top: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-media-item-1:hover .hero-media-img,
.hero-media-item-2:hover .hero-media-img {
    transform: scale(1.06);
}

.hero-media-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 12px 18px;
    background: rgba(20, 18, 16, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: #fff;
}

/* Category Filter Bar */
.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.filter-tab:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.filter-tab.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    font-weight: 600;
}

/* Product Card */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.product-img-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #eae3d9;
    border-radius: calc(var(--radius-md) - 2px) calc(var(--radius-md) - 2px) 0 0;
    cursor: pointer;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--accent-terracotta);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.product-category-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(14, 14, 17, 0.65);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 10px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
}

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.35;
    color: var(--text-primary);
}

.product-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.color-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 14px;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.color-dot:hover {
    transform: scale(1.25);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

.price-container {
    display: flex;
    flex-direction: column;
}

.price-original {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-family: var(--font-mono);
}

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-terracotta);
    font-family: var(--font-mono);
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-add-cart:hover {
    background: var(--accent-terracotta);
    color: #fff;
    transform: scale(1.04);
}

/* Feature Badges */
.feature-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--accent-sage-light);
    color: var(--accent-sage);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

/* Cart Slide-over Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(8px);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 100%;
    max-width: 460px;
    height: 100vh;
    background: var(--drawer-bg);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 95;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    right: 0;
}

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

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-card);
}

.cart-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--glass-border);
}

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

.cart-qty-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.cart-qty-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-box {
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    /* Sembunyikan scrollbar visual (Firefox, IE/Edge) tapi fungsi scroll tetap aktif */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Sembunyikan scrollbar di Chrome, Safari, Edge baru */
.modal-box::-webkit-scrollbar,
#checkout-modal .modal-box::-webkit-scrollbar,
#checkout-items-list::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

#checkout-modal .modal-box,
#checkout-items-list {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.2s;
}

.modal-close:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Bank Account Card */
.bank-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 235, 227, 0.7));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .bank-card {
    background: linear-gradient(135deg, rgba(35, 35, 45, 0.9), rgba(25, 25, 32, 0.7));
}

.bank-card:hover {
    border-color: var(--accent-terracotta);
    transform: translateY(-2px);
}

.btn-copy {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    font-size: 11px;
    font-family: var(--font-mono);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: 0.2s;
}

.btn-copy:hover {
    background: var(--accent-terracotta);
    color: #fff;
}

/* QRIS Container */
.qris-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    border-radius: var(--radius-md);
    background: #fff;
    color: #111;
    border: 2px solid #e2ded7;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.qris-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid #111;
}

.qris-code-box {
    padding: 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 12px 0;
    display: inline-block;
}

/* Chatbot Floating Widget */
.chatbot-bubble {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 80;
}

.chatbot-trigger {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-terracotta), #963f25);
    color: #fff;
    border: none;
    box-shadow: 0 12px 30px rgba(194, 94, 64, 0.4);
    cursor: pointer;
    transition: var(--transition-smooth);
    animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 12px 30px rgba(194, 94, 64, 0.4); }
    50% { box-shadow: 0 16px 40px rgba(194, 94, 64, 0.65); transform: translateY(-2px); }
}

.chatbot-trigger:hover {
    transform: scale(1.08);
}

.chatbot-icon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transform: scale(1.6);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
    pointer-events: none;
    user-select: none;
}

/* Tooltip "Tanya Bubun" */
.chatbot-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(8px);
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-sans);
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.chatbot-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--glass-border);
}

.chatbot-trigger:hover .chatbot-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.chatbot-window {
    position: fixed;
    bottom: 95px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 560px;
    max-height: calc(100vh - 120px);
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    z-index: 85;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--accent-terracotta), #8d371d);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 88%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.6;
    word-break: break-word;
}

.chat-msg-bot {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-msg-user {
    align-self: flex-end;
    background: var(--accent-terracotta);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.chat-chip {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
}

.chat-chip:hover {
    background: var(--accent-terracotta);
    color: #fff;
    border-color: var(--accent-terracotta);
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-card);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-input {
    flex-grow: 1;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

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

.chat-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--accent-terracotta);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.chat-send-btn:hover {
    background: #a4482f;
    transform: scale(1.05);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-full);
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

@keyframes toastSlide {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Product Modal Responsive Layout */
.product-modal-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .product-modal-layout {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

/* =========================================================
   COMPREHENSIVE RESPONSIVE SYSTEM (Mobile, Tablet, Desktop)
   ========================================================= */

/* Prevent any accidental horizontal scrollbar / page shift */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Touch Device Smoothness */
@media (hover: none) and (pointer: coarse) {
    .btn-icon, .filter-tab, .btn-primary, .btn-secondary, .cart-qty-btn, .btn-copy {
        touch-action: manipulation;
    }
}

/* Large Screens & Ultrawide Monitors (min-width: 1280px) */
@media (min-width: 1280px) {
    .hero-title {
        font-size: 3.8rem;
    }
    .modal-box {
        max-width: 760px;
    }
}

/* Tablets and Below (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        padding-top: 30px;
        padding-bottom: 50px;
    }
    .hero-title {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
    }
    #products-grid {
        gap: 24px;
    }
}

/* Tablets & Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
    .hero-media-item-1 { 
        grid-column: span 12; 
        aspect-ratio: 16/11;
    }
    .hero-media-item-2 { 
        display: none; 
    }
    .hero-title {
        font-size: clamp(2rem, 6.5vw, 2.8rem);
        margin-bottom: 16px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    .modal-box {
        max-height: 92vh;
        border-radius: var(--radius-md);
    }
    .chatbot-window {
        right: 12px;
        left: 12px;
        bottom: 80px;
        width: auto;
        max-width: none;
        height: 72vh;
        max-height: 560px;
        border-radius: 20px;
    }
    .chatbot-tooltip {
        display: none; /* Avoid obstructing mobile touches */
    }
}

/* Standard Mobile Devices: iPhone 13/14/15/16, Android (max-width: 640px) */
@media (max-width: 640px) {
    /* Header & Navigation */
    .header-wrapper .max-w-7xl {
        padding-left: 12px;
        padding-right: 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .site-logo {
        gap: 8px;
    }
    .site-logo-icon {
        width: 38px;
        height: 38px;
    }
    .site-logo-img {
        width: 26px;
        height: 26px;
    }
    .site-logo .text-xl {
        font-size: 1.12rem;
    }
    .btn-icon {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .btn-cart {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }

    /* Hero Section */
    .hero-container {
        padding-top: 18px;
        padding-bottom: 36px;
    }
    .hero-pill {
        font-size: 11px;
        padding: 4px 12px;
        margin-bottom: 14px;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
    }

    /* Category Filter Tabs - Smooth Mobile Swipe */
    .filter-tabs {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        gap: 8px;
    }
    .filter-tab {
        scroll-snap-align: start;
        padding: 8px 16px;
        font-size: 12px;
    }

    /* Product Cards */
    #products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-content {
        padding: 16px;
    }
    .product-title {
        font-size: 1.05rem;
    }
    .price-current {
        font-size: 1rem;
    }

    /* Cart Drawer Mobile Fullscreen Feel */
    .cart-drawer {
        width: 100%;
        max-width: 100%;
        border-left: none;
    }
    .drawer-header {
        padding: 16px 18px;
    }
    .drawer-body {
        padding: 14px 16px;
    }
    .drawer-footer {
        padding: 16px 18px;
    }
    .cart-item-img {
        width: 62px;
        height: 62px;
    }

    /* Modals Mobile Adaptation */
    .modal-overlay {
        padding: 8px;
    }
    .modal-box {
        width: 100%;
        max-height: 94vh;
        border-radius: 16px;
    }
    .modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    /* Toast Notification Mobile Centering */
    .toast-container {
        top: 12px;
        right: 12px;
        left: 12px;
        align-items: center;
    }
    .toast {
        max-width: 94vw;
        padding: 10px 18px;
        font-size: 12px;
        text-align: center;
        justify-content: center;
    }

    /* Chatbot Trigger */
    .chatbot-bubble {
        bottom: 16px;
        right: 16px;
    }
    .chatbot-trigger {
        width: 50px;
        height: 50px;
    }
    .chatbot-icon-img {
        width: 32px;
        height: 32px;
    }

    /* Bank Account Cards & Buttons */
    .bank-card {
        padding: 12px 14px;
        gap: 8px;
    }
    .btn-copy {
        padding: 5px 10px;
        font-size: 10.5px;
    }
}

/* Extra Small Phones: iPhone SE (1st & 2nd gen), Galaxy Fold outer (max-width: 380px) */
@media (max-width: 380px) {
    .site-logo div p {
        display: none; /* Sembunyikan sub-judul mikro di HP paling ramping agar header rapi */
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .btn-icon {
        width: 33px;
        height: 33px;
    }
    .btn-cart {
        padding: 7px 10px;
        font-size: 11px;
    }
    .filter-tab {
        padding: 7px 12px;
        font-size: 11px;
    }
}

/* Heartbeat pulsing animation */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.32);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.32);
    }
    70% {
        transform: scale(1);
    }
}

.heartbeat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: heartbeat 1.3s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    transform-origin: center;
    vertical-align: middle;
}

/* =========================================================
   VISITOR ONBOARDING & LOGIN GATE MODAL
   ========================================================= */
.login-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 16, 13, 0.78);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.35s ease;
}

.login-gate-box {
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.45);
    position: relative;
    animation: modalPop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.login-gate-box::-webkit-scrollbar { display: none; }

.voucher-digit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 56px;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-terracotta);
    box-shadow: 0 6px 16px rgba(194, 94, 64, 0.22);
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-terracotta);
    animation: digitPulse 1.6s infinite alternate;
}

@media (max-width: 480px) {
    .voucher-digit-badge {
        width: 38px;
        height: 48px;
        font-size: 22px;
        border-radius: 10px;
    }
}

@keyframes digitPulse {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); box-shadow: 0 12px 22px rgba(194, 94, 64, 0.38); }
}

/* User Profile Badge */
.user-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-align: center;
}

/* ==========================================================================
   Chatbot Shipping Calculator & Interactive Courier Table
   ========================================================================== */
.chat-msg-wide {
    max-width: 96% !important;
    width: 100%;
}

.shipping-table-wrap {
    margin-top: 10px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.shipping-table-header {
    background: var(--bg-secondary);
    padding: 10px 12px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.shipping-origin-badge {
    color: var(--accent-sage);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shipping-dest-badge {
    color: var(--accent-terracotta);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shipping-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.shipping-table {
    width: 100%;
    min-width: 320px;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: left;
}

.shipping-table th {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

.shipping-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.shipping-table tr:last-child td {
    border-bottom: none;
}

.shipping-table tr:hover {
    background: rgba(199, 107, 75, 0.04);
}

.shipping-table tr.selected-courier-row {
    background: rgba(82, 107, 85, 0.12);
    border-left: 3px solid var(--accent-sage);
}

.courier-vendor-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 11.5px;
}

.courier-service-tag {
    font-size: 10.5px;
    color: var(--text-muted);
}

.shipping-price-tag {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-terracotta);
    font-size: 11.5px;
    white-space: nowrap;
}

.shipping-price-free {
    color: #2e7d32 !important;
    font-weight: 800;
}

.btn-select-courier {
    padding: 4px 10px;
    background: var(--accent-terracotta);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-select-courier:hover {
    background: #a24b2f;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(199, 107, 75, 0.3);
}

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

.btn-select-courier.active-courier {
    background: var(--accent-sage);
    cursor: default;
    transform: none;
    box-shadow: none;
}

.shipping-table-footer {
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
}
