:root {
    --primary-bg: #f5f5f5;
    --secondary-bg: #ffffff;
    --accent-color: #ffc107;
    --accent-hover: #ffda4a;
    --text-main: #111111;
    --text-muted: #666666;
}

body {
    background-color: var(--primary-bg);
    color: var(--text-main);
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("../img/logo.PNG");
    background-repeat: no-repeat;
    background-position: center 60%;
    background-size: 420px auto;
    opacity: 0.18;
    filter: grayscale(1) brightness(0.3);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

/* Header */
.logo {
    height: 32px;
    width: auto;
}

.header-nav {
    flex-wrap: wrap;
}

.header-nav-link {
    font-size: 0.9rem;
    color: #4b5563;
    text-decoration: none;
}

.header-nav-link:hover {
    color: #111827;
}

.header-auth-btn {
    font-size: 0.85rem;
}

.mobile-header-icons .btn,
.mobile-header-icons a {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

.mobile-header-cart-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.65rem;
}

.mobile-nav-links a {
    font-weight: 600;
}

/* Hero Section */
.top-search-strip {
    background: linear-gradient(90deg, #f3f7ff 0%, #e6f0ff 100%);
    padding: 18px 0;
    border-bottom: 1px solid #dde4f2;
}

.strip-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.strip-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2933;
}

.btn-yellow {
    background-color: var(--accent-color);
    color: #000;
    border: none;
    font-weight: 700;
}

.btn-yellow:hover {
    background-color: var(--accent-hover);
    color: #000;
}

.filter-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.filter-card .form-control,
.filter-card .form-select,
.filter-card .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #eee;
}

.filter-card .input-group-text {
    border-right: none;
}

.filter-card .form-control {
    border-left: none;
    color: #6b7280;
}

.top-search-form .form-control {
    background-color: #ffffff;
    box-shadow: none;
}

.top-search-form .form-control:focus {
    box-shadow: none;
}

.category-strip {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 0;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid transparent;
    background-color: #f3f4f6;
    font-size: 0.9rem;
    color: #4b5563;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.category-toggle {
    border: none;
}

.category-toggle-icon {
    font-size: 0.85rem;
}

.category-pill:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.category-pill.active {
    background-color: #111827;
    color: #ffffff;
}

.hero-banner {
    padding: 24px 0 8px 0;
}

.hero-main-card {
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    min-height: 380px;
}

.hero-card-device {
    background: radial-gradient(circle at top right, #374151 0%, #111827 60%, #030712 100%);
}

.hero-card-liquid {
    background: radial-gradient(circle at bottom left, #f59e0b 0%, #b45309 60%, #78350f 100%);
}

.hero-card-atomizer {
    background: radial-gradient(circle at top left, #10b981 0%, #059669 60%, #064e3b 100%);
}

.hero-card-accessories {
    background: radial-gradient(circle at bottom right, #a855f7 0%, #7e22ce 60%, #581c87 100%);
}

.hero-small-card {
    color: #fff;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-small-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.25);
}

.hero-card-shipping {
    background: radial-gradient(circle at bottom right, #2563eb 0%, #1e40af 60%, #172554 100%);
}

.hero-bg-decoration {
    display: none;
}

.hero-badge {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.5em 1em;
    border-radius: 50rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hero-headline {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 4px rgba(0,0,0,0.25);
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
}

.hero-product-img {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-main-card:hover .hero-product-img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.hero-icon {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.promo-free-shipping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.6);
    color: #bbf7d0;
    font-size: 0.85rem;
    font-weight: 700;
}

.promo-free-shipping span {
    color: #4ade80;
}

.mini-banner {
    border-radius: 16px;
    padding: 18px 20px;
}

.mini-banner-liquid {
    background: linear-gradient(90deg, #eff6ff 0%, #e0f2fe 100%);
}

.mini-banner-info {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
}

.mini-banner-img {
    max-height: 80px;
    border-radius: 12px;
}

/* Cards */
.card {
    background-color: var(--secondary-bg);
    border: 1px solid #dddddd;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border-color: #444;
}

.payment-detail-card {
    background-color: #f9fafb;
    border-color: #e5e7eb;
}

.card-title {
    color: var(--text-main);
}

.card-text {
    color: var(--text-muted);
}

.text-muted {
    color: var(--text-muted) !important;
}

.price-tag {
    color: #eab308; /* Yellow-600 like the image */
    font-weight: 800;
}

.product-card {
    border-radius: 40px !important;
    border: none;
    box-shadow: none !important;
    overflow: hidden;
}

.product-card-img {
    height: 260px;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-card-img,
.product-card:active .product-card-img,
.product-card:focus-within .product-card-img {
    transform: scale(1.05);
}

/* Liquid Card Variants - Balanced Thickness and Very Rounded */
.product-card.liquid-freebase {
    border: 2px solid #f97316 !important; /* Orange-500 */
    border-bottom-width: 6px !important;
    background: #ffffff !important;
}

.product-card.liquid-saltnic {
    border: 2px solid #06b6d4 !important; /* Cyan-500 */
    border-bottom-width: 6px !important;
    background: #ffffff !important;
}

.product-card.liquid-pods-friendly {
    border: 2px solid #84cc16 !important; /* Lime-500 */
    border-bottom-width: 6px !important;
    background: #ffffff !important;
}

.product-card.liquid-mix {
    border: 2px solid #d946ef !important; /* Fuchsia-500 */
    border-bottom-width: 6px !important;
    background: #ffffff !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    font-weight: 700;
    border-radius: 6px;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #000;
}

.btn-outline-light {
    background-color: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

.payment-tab-inactive {
    color: #374151;
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.payment-tab-inactive:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
}

.payment-detail {
    color: #60a5fa !important;
}

.payment-option-item {
    background-color: #f9fafb;
    color: #111827;
    border-color: #d1d5db;
}

.payment-bank-logo {
    height: 28px;
    width: auto;
}

.qris-large {
    max-width: 320px;
    width: 100%;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 10px;
    background-color: #ffffff;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.list-group-item.bg-dark {
    border-color: #4b5563;
}

.btn-outline-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.branch-section {
    background-color: #020617;
    position: relative;
    color: #e5e7eb;
}

.branch-card {
    background: radial-gradient(circle at top left, #020617 0%, #020617 40%, #111827 100%);
    border-radius: 16px;
    padding: 16px 14px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.7);
}

.branch-card .btn {
    border-radius: 999px;
}

.branch-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.6);
    color: #e5e7eb;
}

.branch-name {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.branch-text {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: linear-gradient(90deg, #f3f7ff 0%, #e6f0ff 100%);
    border-top: 1px solid #dde4f2;
    margin-top: 50px;
    color: #1f2933;
}

.badge-category {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border-width: 1px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.badge-category-device {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.badge-category-liquid {
    background-color: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.badge-category-atomizer {
    background-color: #22c55e;
    border-color: #22c55e;
    color: #ffffff;
}

.badge-category-accessories {
    background-color: #a855f7;
    border-color: #a855f7;
    color: #ffffff;
}

.slogan {
    color: var(--accent-color);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.age-gate-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2000;
}

.age-gate-box {
    width: 100%;
    max-width: 420px;
    background-color: #020617;
    border-radius: 18px;
    border: 1px solid #4b5563;
    padding: 24px 20px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8);
    text-align: center;
    color: #f1f5f9;
}

.age-gate-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
    text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

.age-gate-text {
    font-size: 0.9rem;
    color: #f1f5f9;
    margin-bottom: 10px;
}

.age-gate-sub {
    font-size: 0.8rem;
    color: #e2e8f0;
}

body.age-gate-open {
    overflow: hidden;
}

.chat-admin-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    border-radius: 999px;
    padding: 10px 20px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.profile-avatar-wrapper {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(148, 163, 184, 0.8);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Invoice */
.invoice-page {
    max-width: 960px;
}

.invoice-card {
    border-radius: 12px;
}

/* Category Filter Cards */
.category-select-card {
    background-color: #f3f4f6;
    border: 2px solid transparent;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-select-card:hover {
    background-color: #e5e7eb;
    color: #111827;
}

/* Selected States */
.btn-check:checked + .category-select-card.card-liquid {
    background-color: #f97316;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-check:checked + .category-select-card.card-device {
    background-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-check:checked + .category-select-card.card-atomizer {
    background-color: #22c55e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.btn-check:checked + .category-select-card.card-accessories {
    background-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

@media print {
    .age-gate-backdrop {
        display: none !important;
    }

    body {
        background-color: #ffffff;
        color: #000000;
    }

    body::before {
        display: none !important;
    }
}

/* Mobile Product Card Optimizations */
@media (max-width: 576px) {
    .top-search-strip {
        padding: 16px 0;
    }

    .strip-logo {
        width: 48px;
        height: 48px;
    }

    .strip-title {
        font-size: 1.1rem;
        line-height: 1.1;
    }

    .strip-sub {
        display: block;
        font-size: 0.75rem;
        color: #6b7280;
    }

    .mobile-header-icons {
        gap: 0.75rem !important;
    }

    .mobile-header-cart {
        width: auto;
        border-radius: 999px !important;
        background-color: #fff;
        border: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    .mobile-header-cart-badge {
        /* Styles moved inline for precision, but kept here for fallback */
    }

    .mobile-header-profile {
        width: 36px;
        height: 36px;
        background-color: #fff;
        border: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .top-search-form .form-control {
        font-size: 1rem;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .btn-search-mobile {
        background-color: var(--accent-color);
        color: #000;
        border-top-right-radius: 6px;
        border-bottom-right-radius: 6px;
    }

    .product-card-img {
        height: 160px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .badge-category {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        margin-bottom: 0.5rem !important;
    }
    
    .card-text {
        display: none;
    }
    
    .price-tag {
        font-size: 1rem;
        display: block;
        margin-bottom: 0;
    }
    
    .card-body .mt-auto {
        flex-direction: column;
        align-items: flex-start !important;
        border-top: none !important;
        padding-top: 0 !important;
    }
    
    .card-body .mt-auto .btn {
        display: none !important;
    }
    
    /* Mobile Hero/Promo Card Optimizations */
    .hero-main-card {
        padding: 1.25rem 1rem;
        min-height: auto;
    }
    
    .hero-headline {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-text {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    .hero-btn {
        padding: 0.35rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-product-img {
        max-height: 90px;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
        transform: none !important;
    }
    
    .hero-bg-decoration {
        width: 150px;
        height: 150px;
        top: -20px;
        right: -20px;
        opacity: 0.5;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    .carousel-indicators {
        margin-bottom: 0.5rem;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }
}

/* Scroll Buttons */
.scroll-btn {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 90px;
    z-index: 1045;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%) translateY(20px);
    cursor: pointer;
    border: none;
}

.scroll-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.scroll-btn-up {
    background-color: var(--accent-color);
    color: #000;
}

.scroll-btn-up:hover {
    background-color: var(--accent-hover);
    transform: translateX(-50%) translateY(-3px);
}

.scroll-btn-down {
    background-color: #111827;
    color: #fff;
}

.scroll-btn-down:hover {
    background-color: #374151;
    transform: translateX(-50%) translateY(-3px);
}
