/* ================================================================
   LUBY NAIRA — tema mengikuti heylocal.id
   Ubah warna utama di bawah ini bila perlu.
   ================================================================ */
:root {
  --brand: #b09d8c;        /* beige utama (sama seperti heylocal) */
  --brand-dark: #8f7d6c;
  --brand-light: #f2ede7;
  --ink: #222;
  --muted: #808080;
  --line: #e7e7e7;
  --danger: #b3261e;
  --font: "Jost", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
svg.i { width: 21px; height: 21px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Announcement bar (marquee) ---------- */
.announce {
  background: var(--brand); color: #fff; font-size: 13px; letter-spacing: .4px;
  overflow: hidden; white-space: nowrap; padding: 8px 0;
}
.announce span { display: inline-block; padding-left: 100%; animation: marquee 25s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-in {
  max-width: 1520px; margin: auto; display: flex; align-items: center;
  gap: 20px; padding: 15px 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.logo img { height: 34px; width: auto; }
.logo .logo-text { font-size: 17px; letter-spacing: 5px; font-weight: 500; }
.logo .logo-text small { display: block; font-size: 8px; letter-spacing: 3px; color: var(--muted); font-weight: 400; }
nav.main { display: flex; gap: 4px; margin: auto; font-size: 13px; letter-spacing: 1px; }
nav.main > div > a { padding: 9px 14px; display: inline-block; border-radius: 18px; }
nav.main > div > a:hover, nav.main .dropdown:hover > a { background: #ececec; }
.dropdown { position: relative; }
.dropdown > a::after { content: " ⌄"; font-size: 11px; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.09);
  min-width: 200px; padding: 6px 0; z-index: 60; border-radius: 4px;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 18px; font-size: 12.5px; letter-spacing: 1px; }
.dropdown-menu a:hover { background: var(--brand-light); }
.header-icons { display: flex; align-items: center; gap: 14px; }
.currency { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.flag { width: 18px; height: 12px; border-radius: 2px; background: linear-gradient(to bottom, #ce1126 50%, #fff 50%); border: 1px solid #ddd; display: inline-block; }
.icon-btn { background: none; border: none; position: relative; line-height: 1; padding: 2px; }
.icon-btn .badge {
  position: absolute; top: -7px; right: -8px; background: var(--brand-dark); color: #fff;
  font-size: 10px; border-radius: 50%; min-width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.hamburger { display: none; font-size: 20px; }

/* ---------- Hero banner (gambar full-width) ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center; color: #fff;
  padding: 70px 24px; overflow: hidden;
  background: linear-gradient(120deg, #3a332c, #6b5d4f 60%, #8f7d6c);
}
.hero.light { background: linear-gradient(120deg, #cfc4b6, #b09d8c 60%, #8f7d6c); }
.hero .hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero .hero-content { position: relative; z-index: 1; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero h2 { font-size: clamp(44px, 7vw, 92px); font-weight: 500; letter-spacing: 10px; }
.hero p { max-width: 680px; margin: 18px auto 0; font-size: clamp(15px, 2vw, 21px); opacity: .95; }
.hero .btn { margin-top: 28px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-block; padding: 12px 36px; font-size: 14px; letter-spacing: .5px;
  border-radius: 26px; border: 1px solid var(--brand); background: var(--brand);
  color: #fff; transition: .2s; text-align: center;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.outline { background: #fff; color: var(--muted); border-color: #cfcfcf; }
.btn.outline:hover { border-color: var(--brand-dark); color: var(--brand-dark); background: #fff; }
.btn.block { display: block; width: 100%; }
.btn.white { background: #fff; color: var(--ink); border-color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Section & carousel ---------- */
.section { max-width: 1520px; margin: auto; padding: 44px 24px; }
.section h3 { font-size: 15px; letter-spacing: 2px; margin-bottom: 22px; font-weight: 600; }
.carousel { position: relative; }
.carousel .track {
  display: flex; gap: 20px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; padding-bottom: 6px;
}
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .nav-arrow {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(250,250,250,.95);
  box-shadow: 0 2px 12px rgba(0,0,0,.18); font-size: 17px; color: #444;
}
.carousel .nav-arrow.prev { left: -6px; }
.carousel .nav-arrow.next { right: -6px; }

/* ---------- Kartu produk ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card { min-width: 250px; flex: 0 0 250px; position: relative; }
.grid .card, .grid-2 .card { min-width: 0; flex: none; }
.card .thumb {
  position: relative; aspect-ratio: 4/5; border-radius: 4px; overflow: hidden;
  background: #f4f2ef; display: flex; align-items: center; justify-content: center;
}
.card .thumb img.pimg { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .thumb img.pimg { transform: scale(1.04); }
.ph-fill { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.ph-fill .ph-label {
  color: rgba(255,255,255,.9); font-size: 28px; letter-spacing: 4px; font-weight: 300;
  text-align: center; padding: 12px; text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
.ci-img .ph-fill .ph-label { font-size: 13px; letter-spacing: 1px; }
.thumb .wish {
  position: absolute; bottom: 12px; right: 12px; z-index: 3; background: rgba(255,255,255,.9);
  border: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.thumb .wish svg { width: 17px; height: 17px; stroke: #555; fill: none; stroke-width: 1.8; }
.thumb .wish.active svg { fill: var(--danger); stroke: var(--danger); }
.thumb .wish:hover { background: #fff; }
.stock-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3; font-size: 10px; letter-spacing: 1px;
  padding: 4px 9px; color: #fff; border-radius: 2px;
}
.stock-badge.low { background: #9c9c9c; }
.stock-badge.out { background: #2f2f2f; }
.card h4 { font-size: 13px; letter-spacing: .5px; margin-top: 12px; font-weight: 600; text-transform: uppercase; }
.card .price { font-size: 13px; color: #555; margin-top: 5px; }
.card .rating { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Halaman kategori ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.page-head h1 { font-size: 26px; letter-spacing: 3px; font-weight: 500; text-transform: uppercase; }
.filters { display: flex; gap: 10px; }
.filters select {
  padding: 9px 14px; border: 1px solid #cfcfcf; border-radius: 20px; font-family: inherit;
  font-size: 13px; background: #fff; color: #444;
}

/* ---------- Halaman produk ---------- */
.product-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 52px; align-items: start; }
.gallery .main-img {
  position: relative; aspect-ratio: 4/5; border-radius: 6px; overflow: hidden;
  background: #f4f2ef; display: flex; align-items: center; justify-content: center;
}
.gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main-img .ph-label { color: rgba(255,255,255,.92); font-size: 44px; letter-spacing: 6px; font-weight: 300; text-align: center; padding: 20px; text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery .thumbs .t {
  width: 76px; height: 95px; border-radius: 4px; overflow: hidden; border: 2px solid transparent;
  background: #f4f2ef; cursor: pointer; flex: none;
}
.gallery .thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs .t.active { border-color: var(--brand-dark); }

.pbadges { display: flex; gap: 8px; margin-bottom: 12px; }
.pbadge { font-size: 11px; letter-spacing: 1px; padding: 5px 11px; background: #6d6d6d; color: #fff; border-radius: 3px; }
.pbadge.cat { background: #8a8a8a; }
.pbadge.out { background: #2f2f2f; }
.pd { position: relative; }
.pd h1 { font-size: 27px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.pd .rating { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.pd .rating .stars { color: #caa63d; letter-spacing: 2px; }
.pd .price { font-size: 21px; font-weight: 600; margin-bottom: 20px; }
.pd .wish-top { position: absolute; top: 62px; right: 0; background: none; border: none; }
.pd .wish-top svg { width: 24px; height: 24px; stroke: #777; fill: none; stroke-width: 1.6; }
.pd .wish-top.active svg { fill: var(--danger); stroke: var(--danger); }

.coupon {
  display: flex; align-items: center; gap: 12px; background: #f7f4f0; border-radius: 8px;
  padding: 14px 18px; font-size: 13px; margin-bottom: 24px; cursor: pointer;
}
.coupon b { color: var(--brand-dark); }
.coupon .arr { margin-left: auto; color: #999; }

.opt-group { margin-bottom: 20px; }
.opt-group .label { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  border: 1px solid #d5d5d5; background: #fff; padding: 9px 18px; font-size: 13px;
  border-radius: 4px; letter-spacing: .5px;
}
.chip.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.size-card { text-align: center; cursor: pointer; }
.size-card .img {
  width: 64px; height: 64px; border-radius: 4px; border: 2px solid transparent;
  overflow: hidden; background: #f4f2ef; margin: auto;
}
.size-card .img img { width: 100%; height: 100%; object-fit: cover; }
.size-card.active .img { border-color: var(--ink); }
.size-card .cap { font-size: 11px; letter-spacing: 1px; margin-top: 6px; color: #555; text-transform: uppercase; }

.qty { display: inline-flex; align-items: center; border: 1px solid #d5d5d5; border-radius: 6px; margin: 4px 0 20px; }
.qty button { width: 40px; height: 40px; border: none; background: none; font-size: 17px; color: #777; }
.qty input { width: 50px; text-align: center; border: none; font-size: 14px; font-family: inherit; }
.pd .actions { display: flex; flex-direction: column; gap: 10px; max-width: 500px; }
.desc { margin-top: 30px; font-size: 14px; line-height: 1.75; color: #444; white-space: pre-line; max-width: 560px; }
.ship-box {
  border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-top: 28px;
  font-size: 13px; color: #555; max-width: 500px;
}
.ship-box .row { display: flex; justify-content: space-between; padding: 4px 0; }
.ship-box .note { color: #999; font-size: 12px; margin-top: 6px; }
.chat-btn {
  margin-top: 14px; width: 100%; max-width: 500px; padding: 13px; border: 1px solid #cfcfcf;
  border-radius: 26px; background: #fff; font-size: 13px; color: #666;
}
.chat-btn:hover { border-color: var(--brand-dark); color: var(--brand-dark); }

/* Sticky add-to-cart bar (seperti heylocal) */
.sticky-add {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 70;
  width: min(560px, 92vw);
}
.sticky-add button {
  width: 100%; padding: 14px; border: none; border-radius: 28px;
  background: rgba(176,157,140,.95); color: #fff; font-size: 14px; letter-spacing: .5px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2); backdrop-filter: blur(4px);
}

/* ---------- Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 90;
  opacity: 0; pointer-events: none; transition: .25s;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: -440px; width: min(410px, 94vw); height: 100%;
  background: #fff; z-index: 100; transition: right .3s; display: flex; flex-direction: column;
}
.drawer.open { right: 0; }
.drawer .head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.drawer .head b { font-size: 17px; letter-spacing: .5px; }
.drawer .items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-item { display: flex; gap: 14px; margin-bottom: 20px; }
.cart-item .ci-img { width: 72px; height: 90px; border-radius: 4px; flex: none; overflow: hidden; background: #f4f2ef; position: relative; }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h5 { font-size: 13px; text-transform: uppercase; }
.cart-item .meta { font-size: 12px; color: var(--muted); margin: 3px 0; }
.cart-item .ci-qty { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; }
.cart-item .ci-qty button { width: 25px; height: 25px; border: 1px solid #d5d5d5; background: #fff; border-radius: 4px; }
.cart-item .rm { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 12px; text-decoration: underline; }
.drawer .foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.drawer .foot .total { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.empty-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 40px; grid-column: 1/-1; }

/* ---------- Search ---------- */
.search-panel {
  position: fixed; top: 0; left: 0; right: 0; background: #fff; z-index: 100;
  padding: 28px 24px; transform: translateY(-110%); transition: .3s; box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.search-panel.open { transform: translateY(0); }
.search-panel input {
  width: 100%; max-width: 720px; margin: auto; display: block; padding: 14px 20px;
  font-size: 15px; border: 1px solid #d5d5d5; border-radius: 28px; font-family: inherit; outline: none;
}
.search-results { max-width: 720px; margin: 14px auto 0; max-height: 55vh; overflow-y: auto; }
.sr-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 6px; }
.sr-item:hover { background: var(--brand-light); }
.sr-item .ci-img { width: 46px; height: 58px; border-radius: 4px; flex: none; overflow: hidden; background: #f4f2ef; position: relative; }
.sr-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.sr-item .p { font-size: 12px; color: var(--muted); }

/* ---------- Footer (beige, seperti heylocal) ---------- */
footer.site { background: var(--brand); color: #fff; margin-top: 64px; padding: 46px 24px 90px; }
.footer-in { max-width: 1520px; margin: auto; }
footer.site h6 { font-size: 15px; letter-spacing: .5px; margin: 26px 0 14px; font-weight: 600; }
footer.site h6:first-child { margin-top: 0; }
footer.site a.f-link { display: block; font-size: 13.5px; margin-bottom: 10px; text-decoration: underline; opacity: .95; width: fit-content; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-badges span {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4);
  font-size: 11px; padding: 5px 12px; border-radius: 3px; letter-spacing: .5px; font-weight: 600;
}
.pay-badges img { height: 22px; width: auto; }
.copyright { max-width: 1520px; margin: 40px auto 0; font-size: 12px; opacity: .75; }

/* ---------- Halaman kebijakan ---------- */
.policy { max-width: 860px; margin: auto; padding: 48px 24px; }
.policy h1 { font-size: 26px; letter-spacing: 3px; font-weight: 500; margin-bottom: 34px; text-transform: uppercase; }
.policy section { margin-bottom: 40px; scroll-margin-top: 110px; }
.policy h2 { font-size: 17px; letter-spacing: 1px; margin-bottom: 12px; font-weight: 600; }
.policy p, .policy li { font-size: 14px; line-height: 1.8; color: #444; margin-bottom: 10px; }
.policy ul { padding-left: 20px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; left: 18px; bottom: 18px; z-index: 80; width: 48px; height: 48px;
  border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 26px;
  font-size: 13px; z-index: 120; transition: .3s; opacity: 0; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 10px 24px 20px; border-bottom: 1px solid var(--line);
  }
  nav.main.open { display: flex; }
  .dropdown-menu { position: static; display: block; border: none; box-shadow: none; padding-left: 14px; }
  .hamburger { display: block; }
  .product-layout { grid-template-columns: 1fr; gap: 30px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .card { min-width: 200px; flex-basis: 200px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .currency { display: none; }
}
