:root { --brand: #ee4d2d; --txt: #222; --mut: #777; --line: #eee; --bg: #fafafa; }
* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; margin: 0; font-family: 'Segoe UI', Arial, sans-serif; color: var(--txt); background: #fff; font-size: 15px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; width: 100%; box-sizing: border-box; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; width: 100%; }
.head-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; width: 100%; box-sizing: border-box; }
.brand { font-weight: 800; font-size: 18px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.contact-cta { white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: none; border: 1.5px solid var(--brand); padding: 7px 14px; border-radius: 20px; }
.contact-cta:hover { background: var(--brand); color: #fff; }
.hamb { display: none; border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 7px 11px; cursor: pointer; font-size: 16px; }
.catnav { border-top: 1px solid var(--line); background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.03); width: 100%; overflow: hidden; }
.catnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catnav .wrap::-webkit-scrollbar { display: none; }
.catnav a { white-space: nowrap; font-size: 13px; font-weight: 600; color: #555; text-decoration: none; padding: 6px 14px; border-radius: 20px; background: #f5f5f7; flex-shrink: 0; transition: all .15s ease; border: 1px solid transparent; }
.catnav a:hover { background: #eaeaea; color: var(--brand); }
.catnav a.on { background: #ffe9e4; color: var(--brand); font-weight: 700; border-color: rgba(238, 77, 45, 0.3); }
/* Drawer mobile */
.drawer { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 280px; background: #fff; box-shadow: 8px 0 30px rgba(0,0,0,.18); transform: translateX(-105%); visibility: hidden; transition: transform .22s ease-out, visibility .22s; overflow-y: auto; padding: 16px; }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drawer-head button { border: none; background: none; font-size: 18px; cursor: pointer; }
.drawer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); margin: 16px 0 6px; }
.drawer nav a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--txt); text-decoration: none; font-size: 14px; }
.drawer nav a:hover { background: #f5f5f5; color: var(--brand); }
.drawer nav a small { color: var(--mut); }
.scrim { display: none; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.45); border: none; padding: 0; }
.scrim.open { display: block; }
/* Hero */
.hero { background: linear-gradient(135deg, #ee4d2d, #b71c1c); color: #fff; padding: 44px 0 36px; }
.hero h1 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 6px; color: #fff; }
.hero .lede { color: rgba(255,255,255,.9); margin: 0 0 18px; font-size: 16px; }
.hero-search { display: flex; gap: 8px; max-width: 560px; width: 100%; }
.hero-search input { flex: 1; min-width: 0; padding: 13px 16px; border: none; border-radius: 12px; font-size: 15px; }
.hero-search button { padding: 13px 24px; border: none; border-radius: 12px; background: #1a1d23; color: #fff; font-weight: 800; cursor: pointer; font-size: 15px; flex-shrink: 0; }
.hero-stats { display: flex; gap: 28px; margin-top: 20px; }
.hero-stats b { font-size: 24px; display: block; }
.hero-stats span { font-size: 12px; opacity: .85; }
/* Sections */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 30px 0 4px; }
.sec-head h2 { font-size: 20px; margin: 0; }
/* Layout toko: sidebar kiri + hasil */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 20px; margin-top: 14px; align-items: start; width: 100%; }
.shop-side { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 12px; }
.side-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.side-card h4 { margin: 0 0 8px; font-size: 14px; }
.side-list { display: flex; flex-direction: column; gap: 2px; }
.side-list.scroll { max-height: 260px; overflow-y: auto; }
.side-list a { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: #444; text-decoration: none; padding: 7px 9px; border-radius: 8px; }
.side-list a:hover { background: #f5f5f5; color: var(--brand); }
.side-list a.on { background: #ffe9e4; color: var(--brand); font-weight: 700; }
.side-list a span { color: var(--mut); font-size: 12px; }
.price-row { display: flex; gap: 6px; align-items: center; }
.price-row input { flex: 1; min-width: 0; padding: 8px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; }
.price-row button { padding: 8px 12px; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 8px; cursor: pointer; font-weight: 700; }
.mobile-cat-chips { display: none; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; width: 100%; }
.shop-toolbar label { font-size: 13px; font-weight: 700; display: flex; gap: 6px; align-items: center; margin: 0; }
.shop-toolbar select { padding: 7px 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; background: #fff; max-width: 160px; }
.btn-filter-mobile { display: none; }
.shop-side-head { display: none; }
.filter-scrim { display: none; }
.sec-head a { font-size: 13px; color: var(--brand); text-decoration: none; font-weight: 700; white-space: nowrap; }

@media (max-width: 860px) {
  .head-row { padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
  .brand { font-size: 15px; flex-shrink: 0; }
  .hamb { display: inline-block; padding: 6px 10px; font-size: 16px; flex-shrink: 0; }
  .contact-cta { display: none; }
  .search { gap: 4px; flex: 1; min-width: 0; margin-left: 0; }
  .search input { font-size: 13px; padding: 7px 10px; flex: 1; min-width: 0; width: 100%; }
  .search button { padding: 7px 12px; font-size: 13px; flex-shrink: 0; }

  .shop-layout { display: block; width: 100%; }
  .btn-filter-mobile {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
    border-radius: 20px; border: 1.5px solid var(--brand); background: #fff;
    color: var(--brand); font-weight: 700; font-size: 13px; cursor: pointer;
  }
  .btn-filter-mobile:hover { background: #ffe9e4; }

  .mobile-cat-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 4px 0 10px;
    margin-bottom: 8px;
    width: 100%;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-cat-chips::-webkit-scrollbar { display: none; }
  .mobile-cat-chips a {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 18px;
    background: #f5f5f7;
    font-size: 12.5px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s ease;
  }
  .mobile-cat-chips a.on {
    background: #ffe9e4;
    color: var(--brand);
    font-weight: 700;
    border-color: rgba(238, 77, 45, 0.3);
  }
  .mobile-cat-chips a span {
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
  }

  /* Drawer Filter Mobile (Off-canvas Bottom Sheet) */
  .shop-side {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    z-index: 100 !important;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 16px 16px max(20px, env(safe-area-inset-bottom));
    box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
    transform: translateY(105%);
    visibility: hidden !important;
    pointer-events: none !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
    max-height: 85vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .shop-side.open {
    transform: translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .filter-scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 95;
    background: rgba(0,0,0,0.45);
  }
  .filter-scrim.open {
    display: block;
  }
  .shop-side-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }
  .shop-side-head h3 {
    margin: 0;
    font-size: 16px;
    color: var(--txt);
  }
  .shop-side-head button {
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--mut);
    padding: 2px 8px;
  }
  .side-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
  }
  .side-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
  }
  .side-list a {
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
  }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 8px; }
  .card-body h3, .card-body h2 { font-size: 13px; line-height: 1.35; }
  .price b { font-size: 14px; }
  .meta { font-size: 11px; }
}
.search { display: flex; gap: 8px; flex: 1; max-width: 560px; margin-left: auto; }
.search input { flex: 1; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; }
.search button { padding: 9px 18px; background: var(--brand); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; }
main { padding: 20px 0 32px; }
h1 { font-size: 26px; margin: 8px 0 4px; }
.lede { color: var(--mut); margin-top: 0; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.filters label { font-size: 13px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.filters select { padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; min-width: 160px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }
.card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg); }
.noimg { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: #aaa; background: var(--bg); }
.card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.card-body h2 { font-size: 14px; margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body h2 a { color: var(--txt); text-decoration: none; }
.card-body h2 a:hover { color: var(--brand); }
.shop { font-size: 12px; color: var(--mut); margin: 0; }
.price { margin: 0; }
.price b { color: var(--brand); font-size: 16px; }
.price del { color: #aaa; font-size: 12px; }
.disc { background: #ffe9e4; color: var(--brand); font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.meta { font-size: 12px; color: var(--mut); margin: 0; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 24px 0; }
.pager button { padding: 8px 18px; border: 1px solid #ddd; background: #fff; border-radius: 8px; cursor: pointer; }
.pager button:disabled { opacity: .4; cursor: default; }
#pgInfo { color: var(--mut); font-size: 13px; }
.disclosure { color: var(--mut); font-size: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.site-footer { border-top: 1px solid var(--line); padding: 16px 0 28px; color: var(--mut); font-size: 13px; }
.site-footer a { color: var(--brand); }
/* Detail */
.crumbs { font-size: 13px; color: var(--mut); margin-bottom: 12px; }
.announce { background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00; padding: 10px 14px; border-radius: 10px; margin: 12px 0 0; font-size: 14px; }
.detail-meta p { margin: 4px 0; }
.crumbs a { color: var(--brand); text-decoration: none; }
.detail { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 28px; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }
.gallery img#mainImg { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.thumbs img.active { border-color: var(--brand); }
.info h1 { font-size: 22px; }
.price-hero b { color: var(--brand); font-size: 28px; }
.price-hero del { color: #aaa; }
.buy { display: inline-block; background: var(--brand); color: #fff; font-weight: 800; padding: 12px 28px; border-radius: 10px; text-decoration: none; }
.desc { white-space: pre-line; line-height: 1.7; background: var(--bg); padding: 16px; border-radius: 10px; max-height: 420px; overflow: auto; }
.specs { border-collapse: collapse; width: 100%; }
.specs th, .specs td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; font-size: 14px; }
.specs th { background: var(--bg); width: 220px; }
.detail-meta-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; background: var(--bg); padding: 14px; border-radius: 10px; border: 1px solid var(--line); }
.detail-meta-item b { color: var(--txt); display: block; font-size: 14px; }
.detail-meta-item span { color: var(--mut); font-size: 12px; }
.detail-meta-item a { color: var(--brand); }
.reviews { display: flex; flex-direction: column; gap: 12px; }
.review { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stars { color: #f5a623; }
.rvariant { font-size: 12px; color: var(--mut); }
.rmedia { display: flex; gap: 8px; flex-wrap: wrap; }
.rmedia img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
section h2 { font-size: 19px; margin: 28px 0 12px; }
label.f { font-weight: 700; display: block; margin-top: 12px; font-size: 13px; }
input.f, textarea.f { width: 100%; box-sizing: border-box; padding: 10px 12px; margin-top: 4px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: inherit; }
.btnrow { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn { padding: 10px 18px; cursor: pointer; border: 1px solid #ddd; border-radius: 8px; background: #fff; font-weight: 700; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
/* Galeri viewer + lightbox */
.gallery { position: relative; }
.viewer { position: relative; }
.viewer img#mainImg { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: #f3f4f6; }
#btnZoom { position: absolute; right: 10px; top: 10px; border: none; background: rgba(0,0,0,.55); color: #fff; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 15px; }
#galCount { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 12px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.thumbs > * { scroll-snap-align: start; flex-shrink: 0; }
.thumbs .more { width: 64px; height: 64px; border-radius: 8px; border: 1.5px dashed #bbb; background: #f8f9fb; cursor: pointer; font-weight: 800; font-size: 15px; color: #555; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.thumbs .more small { font-size: 10px; font-weight: 400; }
.media-dead { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 64px; padding: 6px 8px; font-size: 11px; color: var(--mut); background: #f1f3f5; border: 1px dashed #ccc; border-radius: 8px; text-align: center; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,12,.92); display: flex; align-items: center; justify-content: center; }
.lb-main { max-width: min(92vw, 900px); }
.lightbox > button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 20px; cursor: pointer; }
#lbClose { top: 16px; right: 16px; }
#lbPrev { left: 12px; top: 50%; transform: translateY(-50%); }
#lbNext { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #eee; font-size: 13px; display: flex; gap: 10px; justify-content: center; padding: 0 16px; }
/* Info sticky desktop + buybar mobile */
@media (min-width: 761px) {
  .detail .info { position: sticky; top: 130px; align-self: start; }
}
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 10px; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .buybar div { flex: 1; min-width: 0; }
  .buybar b { display: block; color: var(--brand); font-size: 17px; }
  .buybar small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mut); font-size: 11px; }
  .buybar a { background: var(--brand); color: #fff; font-weight: 800; padding: 11px 22px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
  body { padding-bottom: 76px; }
  .facts { grid-template-columns: 1fr 1fr; }
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.facts > div { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.facts dt { font-size: 11px; color: var(--mut); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; }
.share { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--mut); margin: 4px 0 10px; }
.share a { color: var(--brand); text-decoration: none; font-weight: 600; }
.share button { border: 1px solid #ddd; background: #fff; border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: 13px; }
