@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700;900&family=Inter:wght@400;500;600;700;800&display=swap');

/* =====================
   VARIABLES - CHINA THEME
   ===================== */
:root {
    --primary: #c8102e;        /* Merah China */
    --primary-dark: #a00d24;
    --primary-glow: rgba(200, 16, 46, 0.35);
    --gold: #d4a017;           /* Emas */
    --gold-light: #f0c040;
    --gold-dark: #a07810;
    --dark: #0f0a08;           /* Hitam kecoklatan */
    --dark-card: #1a1008;
    --dark-elevated: #221508;
    --border: #3a2510;
    --border-gold: rgba(212, 160, 23, 0.3);
    --text-primary: #fdf6e3;   /* Krem hangat */
    --text-secondary: #a08060;
    --text-muted: #6a4a30;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --gradient-red: linear-gradient(135deg, #c8102e 0%, #8b0000 100%);
    --gradient-gold: linear-gradient(135deg, #f0c040 0%, #d4a017 50%, #a07810 100%);
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-top: 62px; /* tinggi navbar */
}

/* Chinese pattern overlay on body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(200,16,46,0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212,160,23,0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Corner ornaments - hanya di hero section via inline img */

/* =====================
   NAVBAR
   ===================== */
.navbar {
    background: rgba(15, 10, 8, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    padding: 12px 0;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    overflow: visible !important;
}

/* Background image di navbar */
.navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/header.jpg') center/cover no-repeat;
    filter: blur(4px) brightness(0.25);
    transform: scale(1.05);
    z-index: 0;
}

/* Semua konten navbar harus di atas pseudo-element */
.navbar .container { position: relative; z-index: 1; }
.navbar .navbar-brand { position: relative; z-index: 1; }
.navbar .navbar-toggler { position: relative; z-index: 1; }
.navbar .navbar-collapse { position: relative; z-index: 1; }

/* Cart badge fix */
.cart-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    background: var(--gold);
    color: #1a0a00;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid var(--dark);
    z-index: 10;
}

/* Gold line top of navbar */
.navbar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gradient-gold);
}

.navbar-brand {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light) !important;
    letter-spacing: 0.02em;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 16px !important;
    border-radius: 6px;
    transition: all 0.2s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--gold-light) !important;
    background: rgba(212,160,23,0.08);
}

/* =====================
   LOGO COIN
   ===================== */
.logo-coin {
    height: 38px;
    width: 38px;
    object-fit: contain;
    animation: coinSpin 6s ease-in-out infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 0 8px rgba(212,160,23,0.5));
}

@keyframes coinSpin {
    0%   { transform: rotateY(0deg); }
    35%  { transform: rotateY(180deg); }
    65%  { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* =====================
   BUTTONS
   ===================== */
.btn-primary {
    background: var(--gradient-red);
    border: 1px solid rgba(212,160,23,0.4);
    border-radius: var(--radius-sm);
    padding: 11px 24px;
    font-weight: 600;
    font-size: 14px;
    color: var(--gold-light) !important;
    box-shadow: 0 4px 16px var(--primary-glow), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--primary-glow);
    border-color: var(--gold);
    filter: brightness(1.1);
}

.btn-outline-dark {
    border: 1px solid var(--border-gold);
    background: transparent;
    color: var(--gold) !important;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-outline-dark:hover {
    background: rgba(212,160,23,0.08);
    border-color: var(--gold-light);
    color: var(--gold-light) !important;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(34,197,94,0.3);
    transition: all 0.25s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,197,94,0.4);
}

/* =====================
   CART BADGE
   ===================== */
.cart-badge {
    position: absolute;
    top: -7px; right: -7px;
    background: var(--gold);
    color: #1a0a00;
    border-radius: 50%;
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid var(--dark);
}

/* =====================
   HERO
   ===================== */
.hero-section {
    min-height: 88vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(rgba(15,10,8,0.78) 0%, rgba(15,10,8,0.94) 100%),
        url('../images/tokorini.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

/* Decorative lantern lines */
.hero-section::before {
    content: '❋ ✦ ❋ ✦ ❋ ✦ ❋ ✦ ❋ ✦ ❋';
    position: absolute;
    top: 20px;
    left: 0; right: 0;
    text-align: center;
    font-size: 14px;
    color: rgba(212,160,23,0.25);
    letter-spacing: 8px;
    pointer-events: none;
}

.hero-section::after {
    content: '❋ ✦ ❋ ✦ ❋ ✦ ❋ ✦ ❋ ✦ ❋';
    position: absolute;
    bottom: 20px;
    left: 0; right: 0;
    text-align: center;
    font-size: 14px;
    color: rgba(212,160,23,0.25);
    letter-spacing: 8px;
    pointer-events: none;
}

.hero-section .container { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,16,46,0.12);
    border: 1px solid rgba(200,16,46,0.3);
    color: #ff6b6b;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 980px;
    margin-bottom: 24px;
}

.hero-section h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(38px, 7vw, 68px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 50%, #c8102e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .hero-sub {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-gold);
}

.hero-stat-num {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* =====================
   SECTION TITLES
   ===================== */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.section-title-modern {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.section-sub {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* Gold divider */
.gold-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    margin: 12px 0 32px;
}

/* =====================
   PRODUCT CARDS
   ===================== */
.product-card-hover {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-hover img.card-img-top {
    width: 100%;
    height: 190px !important;
    object-fit: cover !important;
    display: block;
}

.product-card-hover:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,160,23,0.2);
}

.product-card-hover img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-hover:hover img { transform: scale(1.06); }

.product-card-hover .card-body {
    background: var(--dark-card);
    padding: 14px;
}

.product-card-hover .card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =====================
   INFO CARDS
   ===================== */
.info-card-modern {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.info-card-modern::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.info-card-modern:hover::before { transform: scaleX(1); }

.info-card-modern:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.4);
}

.info-card-modern i {
    font-size: 36px;
    margin-bottom: 16px;
    display: block;
}

.info-card-modern h5 {
    font-family: 'Noto Serif SC', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.info-card-modern p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* =====================
   CONTACT
   ===================== */
.contact-item {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    background: var(--dark-elevated);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.2s;
}

.contact-item:hover {
    border-color: var(--border-gold);
    transform: translateY(-3px);
}

/* =====================
   WHATSAPP BUTTON
   ===================== */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    color: #fff !important;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 13px 28px;
    font-size: 15px;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    transition: all 0.25s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.45);
    color: #fff !important;
}

/* =====================
   BACKGROUNDS
   ===================== */
.bg-dark-section  { background: var(--dark); }
.bg-darker-section { background: #080503; }

/* =====================
   FORMS
   ===================== */
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(212,160,23,0.12) !important;
}

/* =====================
   LIST GROUP
   ===================== */
.list-group-item {
    transition: all 0.2s;
    padding: 11px 14px;
    font-weight: 500;
    font-size: 14px;
}

.list-group-item:hover {
    background: rgba(212,160,23,0.06) !important;
    transform: translateX(3px);
}

.list-group-item.active {
    border-left: 3px solid var(--gold) !important;
}

/* =====================
   CART DRAWER
   ===================== */
#cartItems::-webkit-scrollbar { width: 4px; }
#cartItems::-webkit-scrollbar-track { background: transparent; }
#cartItems::-webkit-scrollbar-thumb { background: #2a1a08; border-radius: 4px; }

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) both; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.2s; }

/* =====================
   MOBILE SCROLL HIDE
   ===================== */
.scroll-x-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scroll-x-hide::-webkit-scrollbar { display: none; }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 70px 0 50px; }
    .hero-stats { gap: 20px; }
    .hero-stat-num { font-size: 22px; }
    .info-card-modern { padding: 24px 18px; }
}

@media (max-width: 576px) {
    .hero-stats { gap: 14px; }
    .hero-stat-num { font-size: 20px; }
}

/* Fix dropdown menu z-index */
.navbar .dropdown-menu {
    z-index: 1060 !important;
    margin-top: 8px;
    background: #1a1008 !important;
    border: 1px solid rgba(212,160,23,0.2) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 180px;
    position: absolute !important;
}

.navbar .dropdown-menu.show {
    z-index: 9999 !important;
}

.navbar .dropdown-item {
    color: #fdf6e3 !important;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 14px;
    transition: background 0.2s;
}

.navbar .dropdown-item:hover {
    background: rgba(212,160,23,0.1) !important;
    color: #f0c040 !important;
}

.navbar .dropdown-divider {
    border-color: rgba(212,160,23,0.15) !important;
}
