/* =========================================================
   AXL Parfum PopStore - Frontend Style
   ========================================================= */
:root {
  --gold: #b8862f;
  --gold-2: #d4a94f;
  --gold-soft: #f6eedd;
  --ink: #141414;
  --ink-2: #1f2440;
  --cream: #faf7f2;
  --line: #ece4d6;
  --muted: #7b7468;
  --radius: 12px;
  --shadow: 0 6px 22px rgba(30, 24, 10, .07);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { -webkit-tap-highlight-color: transparent; }
body { font-family: var(--sans); color: #2b2b2b; background: #fff; font-size: 14px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
.serif { font-family: var(--serif); }
.text-gold { color: var(--gold) !important; }
.bg-cream { background: var(--cream); }
.small-muted { color: var(--muted); font-size: 12.5px; }

/* buttons */
.btn-gold { background: linear-gradient(180deg, #c99a3e, #a97a26); color: #fff; border: 0; border-radius: 8px; font-weight: 600; padding: .6rem 1.25rem; box-shadow: 0 4px 12px rgba(184,134,47,.25); }
.btn-gold:hover, .btn-gold:focus { color: #fff; background: linear-gradient(180deg, #b98b31, #94681c); }
.btn-outline-gold { border: 1.5px solid var(--gold); color: var(--gold); border-radius: 8px; font-weight: 600; background: #fff; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-dark-ink { background: var(--ink); color: #fff; border-radius: 8px; }
.btn-dark-ink:hover { background: #000; color: var(--gold-2); }

/* topbar & header */
.topbar { background: var(--ink); color: #d9cdb5; font-size: 12px; }
.topbar a { color: #d9cdb5; } .topbar a:hover { color: var(--gold-2); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.brand-logo { display: flex; align-items: center; gap: 10px; line-height: 1; }
.brand-logo .brand-mark { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--ink); letter-spacing: 1px; }
.brand-logo .brand-word { font-family: var(--serif); font-size: 15px; letter-spacing: 3px; color: var(--ink); }
.brand-logo .brand-word small { display: block; font-family: var(--sans); font-size: 8px; letter-spacing: 4px; color: var(--muted); margin-top: 3px; }
.brand-logo img { height: 50px; width: auto; max-width: 160px; object-fit: contain; }
.site-footer .footer-logo img { height: 64px; filter: brightness(0) invert(1); }
.offcanvas .brand-logo img { height: 42px; }
@media (max-width: 767.98px) { .site-header .brand-logo img, header .brand-logo img { height: 40px; } }
.search-box { position: relative; }
.search-box input { border-radius: 30px; border: 1px solid #ddd; padding: .55rem 2.8rem .55rem 1.1rem; font-size: 13px; background: #fbfbfa; }
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(184,134,47,.12); }
.search-box button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #333; padding: 6px 10px; }
.head-actions a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; position: relative; color: #222; }
.head-actions .bi { font-size: 18px; }
.cart-badge { position: absolute; top: -7px; left: 10px; background: #d63a2f; color: #fff; font-size: 10px; border-radius: 10px; padding: 1px 5px; min-width: 17px; text-align: center; }
.main-nav .nav-link { color: #222; font-weight: 500; font-size: 14px; padding: .9rem .9rem; position: relative; }
.main-nav .nav-link.active::after, .main-nav .nav-link:hover::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 2px; background: var(--gold); }
.main-nav .nav-link.active { color: var(--ink); font-weight: 600; }
.btn-store { background: linear-gradient(180deg, #c99a3e, #a97a26); color: #fff; border-radius: 30px; padding: .45rem 1.1rem; font-weight: 600; font-size: 13px; border: 0; }
.btn-store:hover { color: #fff; filter: brightness(.95); }
.dropdown-menu { border-radius: 10px; border-color: var(--line); box-shadow: var(--shadow); }
.dropdown-item:active { background: var(--gold); }

/* hero: banner gambar penuh (rasio 3:2), sisi kiri-kanan diisi blur gambar yang sama */
.hero { background: #0e0e10; position: relative; overflow: hidden; }
.hero-slide { position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.hero-slide::before { content: ''; position: absolute; inset: -40px; background: var(--hero-bg) center / cover no-repeat; filter: blur(28px) brightness(.55); transform: scale(1.1); }
.hero-link { position: relative; display: block; line-height: 0; }
.hero-banner { position: relative; display: block; width: auto; max-width: 100%; height: auto; max-height: min(72vh, 640px); aspect-ratio: 3 / 2; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.hero-cta { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); z-index: 3; padding: .65rem 1.6rem; }
.hero .carousel-indicators { margin-bottom: .6rem; z-index: 4; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 8%; opacity: 1; z-index: 4; }
.hero-arrow { width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.45); border: 1px solid rgba(212,169,79,.6); color: #e2c27f; display: grid; place-items: center; font-size: 18px; transition: .2s; }
.hero .carousel-control-prev:hover .hero-arrow, .hero .carousel-control-next:hover .hero-arrow { background: var(--gold); color: #fff; }
.hero .carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; background: #c9b183; border: 0; margin: 0 4px; opacity: 1; box-sizing: border-box; }
.hero .carousel-indicators .active { background: var(--gold); width: 24px; border-radius: 6px; }
.site-footer .brand-logo .brand-word small { color: #9b8f78; }

/* section */
.section { padding: 34px 0; }
.section-title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0; color: var(--ink); }
.see-all { color: var(--gold); font-size: 13px; font-weight: 600; }

/* store card */
.store-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: center; background: #fff; height: 100%; transition: .2s; }
.store-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-2px); }
.store-card .ic { width: 46px; height: 46px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; font-size: 22px; flex: 0 0 46px; overflow: hidden; }
.store-card .ic img { width: 100%; height: 100%; object-fit: cover; }
.store-card h6 { margin: 0; font-weight: 600; font-size: 13.5px; }

/* category */
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px; text-align: center; background: #fff; display: block; height: 100%; transition: .2s; }
.cat-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.cat-card .ic { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold); font-size: 28px; overflow: hidden; }
.cat-card .ic img { width: 100%; height: 100%; object-fit: cover; }
.cat-card strong { display: block; font-size: 13px; color: #222; }
.cat-card span { font-size: 11.5px; color: var(--muted); }
.cat-card.cat-wide { display: flex; align-items: center; gap: 16px; text-align: left; padding: 18px 20px; background: linear-gradient(135deg, #fff, #fbf6ec); }
.cat-card.cat-wide .ic { margin: 0; width: 72px; height: 72px; flex: 0 0 72px; font-size: 32px; }
.cat-card.cat-wide strong { font-size: 15px; letter-spacing: .5px; }
.cat-card.cat-wide::after { content: '\F138'; font-family: 'bootstrap-icons'; margin-left: auto; color: var(--gold); font-size: 18px; }
@media (max-width: 767.98px) {
  .cat-card.cat-wide { flex-direction: column; text-align: center; gap: 8px; padding: 14px 6px; }
  .cat-card.cat-wide .ic { width: 56px; height: 56px; flex-basis: 56px; font-size: 24px; }
  .cat-card.cat-wide strong { font-size: 12px; }
  .cat-card.cat-wide::after { display: none; }
}

/* product card */
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; height: 100%; display: flex; flex-direction: column; transition: .2s; position: relative; }
.product-card:hover { box-shadow: var(--shadow); border-color: #e0cfae; }
.product-card .thumb { aspect-ratio: 1/1; background: #f4efe6; position: relative; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .wish { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 0; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.1); color: #444; z-index: 2; }
.product-card .wish.on { color: #d63a2f; }
.product-card .disc { position: absolute; top: 8px; left: 8px; background: #d63a2f; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; z-index: 2; }
.product-card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.product-card .store { font-size: 11px; color: var(--muted); }
.product-card .name { font-size: 13.5px; font-weight: 600; line-height: 1.35; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.product-card .price { font-weight: 700; font-size: 15px; color: var(--ink); }
.product-card .old { font-size: 12px; color: #999; text-decoration: line-through; }
.product-card .meta { font-size: 11.5px; color: var(--muted); }
.product-card .meta .bi-star-fill { color: #f0a500; }
.btn-cart-mini { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(180deg, #c99a3e, #a97a26); color: #fff; border: 0; display: grid; place-items: center; }
.btn-cart-mini:hover { filter: brightness(.95); color: #fff; }
.oos { position: absolute; inset: 0; background: rgba(255,255,255,.65); display: grid; place-items: center; font-weight: 700; color: #555; z-index: 1; }

/* reward panel */
.reward-card { border-radius: var(--radius); background: linear-gradient(135deg, #fbf3e2, #f2e3c2); padding: 18px; height: 100%; border: 1px solid #ecdcb8; }
.reward-card h5 { font-family: var(--serif); font-weight: 600; }
.reward-card.dark { background: linear-gradient(135deg, #fff7e7, #f6e7c9); }
.reward-card .big { font-family: var(--serif); font-size: 34px; color: var(--gold); font-weight: 700; }

/* trust bar */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust .item { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 12.5px; }
.trust .bi { font-size: 26px; color: var(--gold); }
.trust strong { display: block; font-size: 13px; color: var(--ink); }

/* footer */
.site-footer { background: #121212; color: #bfb6a6; font-size: 13px; }
.site-footer h6 { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: #bfb6a6; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer .brand-logo .brand-mark, .site-footer .brand-logo .brand-word { color: var(--gold-2); }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: #2a2a2a; display: inline-grid; place-items: center; color: var(--gold-2); margin-right: 6px; font-size: 16px; }
.socials a:hover { background: var(--gold); color: #fff; }

/* page header */
.page-hero { background: linear-gradient(105deg, #f7f3ec, #ebdfcb); padding: 30px 0; }
.page-hero h1 { font-family: var(--serif); font-size: 30px; margin: 0; }
.breadcrumb { font-size: 12.5px; margin: 6px 0 0; }
.breadcrumb a { color: var(--gold); }

/* product detail */
.gallery-main { border-radius: var(--radius); overflow: hidden; background: #f4efe6; aspect-ratio: 1/1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs img.active { border-color: var(--gold); }
.pd-title { font-family: var(--serif); font-size: 28px; }
.pd-price { font-size: 26px; font-weight: 700; color: var(--ink); }
.qty-group { display: inline-flex; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.qty-group button { border: 0; background: #f6f3ee; width: 36px; }
.qty-group input { width: 54px; border: 0; text-align: center; }
.pd-desc img { max-width: 100%; height: auto; }
.point-chip { background: var(--gold-soft); color: #8a6a2e; border-radius: 30px; padding: 4px 12px; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }

/* card generic */
.card-soft { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.form-control, .form-select { border-radius: 8px; font-size: 14px; }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(184,134,47,.12); }
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }

/* checkout */
.courier-opt { border: 1px solid #e3ddd2; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.courier-opt:hover { border-color: var(--gold); }
.courier-opt input { margin-right: 8px; }
.courier-opt.selected { border-color: var(--gold); background: #fffaf0; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; }
.summary-total { border-top: 1px dashed #ddd; margin-top: 8px; padding-top: 10px; font-size: 17px; font-weight: 700; }
.area-results { position: absolute; z-index: 20; left: 0; right: 0; background: #fff; border: 1px solid #ddd; border-radius: 8px; max-height: 260px; overflow: auto; box-shadow: var(--shadow); }
.area-results div { padding: 8px 12px; cursor: pointer; font-size: 13px; border-bottom: 1px solid #f2f2f2; }
.area-results div:hover { background: var(--gold-soft); }

/* status badge */
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.bs-warning { background: #fff3d6; color: #a46b00; } .bs-info { background: #e2f1ff; color: #1866b4; }
.bs-primary { background: #ebe6ff; color: #5b3fd6; } .bs-purple { background: #e7e3ff; color: #4b33b8; }
.bs-success { background: #ddf6e8; color: #17834b; } .bs-danger { background: #fde4e2; color: #c0392b; }
.bs-secondary { background: #eceff2; color: #59606a; }

/* account */
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; color: #333; font-size: 14px; }
.account-nav a.active, .account-nav a:hover { background: var(--gold-soft); color: #8a6a2e; }
.timeline { border-left: 2px solid var(--line); padding-left: 18px; }
.timeline .t { position: relative; margin-bottom: 14px; }
.timeline .t::before { content: ''; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* article */
.article-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; height: 100%; }
.article-card .img { aspect-ratio: 16/10; background: #f4efe6; overflow: hidden; }
.article-card .img img { width: 100%; height: 100%; object-fit: cover; }
.article-card h5 { font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.article-body { font-size: 15.5px; line-height: 1.85; }
.article-body h2, .article-body h3 { font-family: var(--serif); margin-top: 1.4em; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.prose h3 { font-family: var(--serif); font-size: 20px; margin-top: 1.2em; }
.faq .accordion-button:not(.collapsed) { background: var(--gold-soft); color: #6d5323; box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; }

/* voucher ticket */
.voucher { border: 1px dashed var(--gold); border-radius: 12px; background: #fffaf0; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; height: 100%; }
.voucher code { background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; color: var(--gold); font-weight: 700; }

/* mobile bottom nav */
.bottom-nav { display: none; }
@media (max-width: 991.98px) {
  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 1040; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; text-align: center; font-size: 10.5px; color: #555; position: relative; }
  .bottom-nav a .bi { display: block; font-size: 20px; }
  .bottom-nav a.active { color: var(--gold); }
  .bottom-nav .cart-badge { left: 55%; top: -4px; }
  body { padding-bottom: 64px; }
  .hero-banner { max-height: none; width: 100%; box-shadow: none; }
  .hero-cta { bottom: 9%; padding: .45rem 1.1rem; font-size: 13px; }
  .hero-slide { padding-bottom: 20px; }
  .hero .carousel-indicators { margin-bottom: 4px; }
  .hero .carousel-control-prev, .hero .carousel-control-next { display: none; }
  .section { padding: 24px 0; }
}
@media (max-width: 575.98px) {
  .section-title { font-size: 20px; }
  .product-card .name { font-size: 12.5px; }
  .product-card .price { font-size: 14px; }
  .brand-logo .brand-mark { font-size: 28px; }
  .brand-logo .brand-word { font-size: 12px; letter-spacing: 2px; }
  .pd-title { font-size: 22px; }
}
.toast-container { z-index: 2000; }
.scroll-x { display: flex; overflow-x: auto; gap: 12px; scrollbar-width: none; padding-bottom: 4px; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex: 0 0 auto; }

/* Sub kategori */
.subcat-chips { gap: 8px; }
.subcat-chips .chip { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; border: 1px solid #e3ddd0; background: #fff; color: inherit; text-decoration: none; white-space: nowrap; transition: .15s; }
.subcat-chips .chip:hover { border-color: var(--gold); }
.subcat-chips .chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Brand */
.product-card .brand { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-brand { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-soft); }
.pd-brand:hover { border-color: var(--gold); }

/* Pencarian langsung */
.live-search-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid #eee; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); z-index: 1060; max-height: 70vh; overflow-y: auto; padding: 6px; }
.live-search-drop .ls-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; }
.live-search-drop .ls-item:hover, .live-search-drop .ls-item.active { background: var(--gold-soft); }
.live-search-drop .ls-item img { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; flex: 0 0 46px; background: #f4f4f4; }
.live-search-drop .ls-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.live-search-drop .ls-brand { font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--gold); text-transform: uppercase; }
.live-search-drop .ls-name { font-size: 13px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.live-search-drop .ls-price { font-size: 12px; font-weight: 600; }
.live-search-drop .ls-price s { color: #999; font-weight: 400; }
.live-search-drop .ls-price em { color: #dc3545; font-style: normal; font-weight: 500; }
.live-search-drop .ls-all { display: block; text-align: center; font-size: 12px; font-weight: 600; padding: 10px; color: var(--gold); border-top: 1px solid #f0f0f0; margin-top: 4px; text-decoration: none; }
.live-search-drop .ls-empty { padding: 14px; font-size: 13px; color: #888; text-align: center; }
#productResults.is-loading { opacity: .45; pointer-events: none; transition: opacity .15s; }
