[hidden]{display:none!important}

:root{
  --bg:#f7f5ef;
  --surface:#fff;
  --text:#171717;
  --muted:#6f6b63;
  --line:#e7e0d5;
  --gold:#d99a24;
  --gold-soft:#fff2ce;
  --shadow:0 8px 22px rgba(17,17,17,.06);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
}
a{text-decoration:none;color:inherit}
.topbar{
  position:sticky;top:0;z-index:10;
  display:flex;align-items:center;justify-content:space-between;
  min-height:60px;padding:8px 14px;
  background:rgba(250,248,242,.97);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:9px;font-weight:850;font-size:18px}
.brand-logo{width:36px;height:36px;object-fit:contain}
.admin-mini{font-size:13px;color:#6c4b08;font-weight:800}

.hero-simple{padding:12px 14px 6px}
.hero-simple-box{
  min-height:155px;border-radius:17px;padding:20px;
  background:
    linear-gradient(135deg,rgba(8,8,8,.80),rgba(35,24,8,.60)),
    url('hero-bg.jpg') center/cover no-repeat;
  color:#fff;
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
  gap:15px;
}
.hero-simple-box h1{
  margin:0;
  font-size:30px;
  line-height:1.05;
  letter-spacing:-.035em;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 15px;border-radius:10px;
  font-weight:800;font-size:13px
}
.btn.primary{color:#1b1407;background:#efb73e}

.section{padding:20px 14px 38px;max-width:960px;margin:auto}
.simple-head{margin-bottom:13px}
.section-head h2{margin:0;font-size:27px;letter-spacing:-.03em}

.product-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.product-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow)
}

/* Foto swipe seperti marketplace */
.product-gallery{
  position:relative;
  background:#eee9df;
}
.product-slides{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
}
.product-slides::-webkit-scrollbar{display:none}
.product-slide{
  flex:0 0 100%;
  aspect-ratio:1/1;
  scroll-snap-align:start;
  background:#eee9df;
  display:grid;
  place-items:center;
  overflow:hidden
}
.product-slide img{
  width:100%;height:100%;object-fit:cover;display:block
}
.product-image-fallback{
  width:100%;height:100%;
  display:grid;place-items:center;background:#171717
}
.product-image-fallback img{width:76px;height:76px;object-fit:contain}
.gallery-dots{
  position:absolute;left:0;right:0;bottom:9px;
  display:flex;justify-content:center;gap:5px;
  pointer-events:none
}
.gallery-dot{
  width:6px;height:6px;border-radius:50%;
  background:rgba(255,255,255,.65);
  box-shadow:0 1px 4px rgba(0,0,0,.22)
}
.gallery-dot.active{background:#fff;width:16px;border-radius:999px}
.discount-badge{
  position:absolute;top:10px;left:10px;
  padding:6px 9px;border-radius:999px;
  background:#c62828;color:#fff;font-size:11px;font-weight:900;
  z-index:2
}

.product-content{padding:15px}
.product-name{margin:0 0 8px;font-size:19px;line-height:1.25}

/* Harga sebelum deskripsi */
.price-row{
  display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;
  margin:0 0 10px
}
.price-current{font-size:23px;font-weight:900;color:#e05a00}
.price-old{color:#9a938a;text-decoration:line-through;font-size:13px}
.product-description{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.55;
  font-size:13.5px
}
.product-meta{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}
.product-meta span{
  padding:6px 9px;border-radius:9px;
  background:#f4f0e8;color:#5b544a;
  font-size:11.5px;font-weight:750
}
.stock-out{background:#fce8e6!important;color:#9b1c1c!important}
.stock-pre{background:#fff2cc!important;color:#795600!important}
.wa-button{
  min-height:44px;width:100%;
  display:flex;align-items:center;justify-content:center;gap:8px;
  border-radius:10px;
  background:#1f8f4e;color:#fff;font-weight:850;font-size:14px
}
.wa-icon{
  width:22px;height:22px;border-radius:50%;
  display:grid;place-items:center;
  background:#fff;color:#1f8f4e;font-size:8px;font-weight:950
}

.loading-state{
  min-height:100px;
  display:flex;flex-direction:column;gap:9px;
  align-items:center;justify-content:center;color:var(--muted)
}
.loader{
  width:30px;height:30px;border-radius:50%;
  border:3px solid #e7e0d5;border-top-color:#d99a24;
  animation:spin .8s linear infinite
}
@keyframes spin{to{transform:rotate(360deg)}}
.simple-note{
  background:#fff;border:1px solid var(--line);
  border-radius:12px;padding:16px;
  color:var(--muted)
}
.simple-footer{
  padding:12px 14px 24px;
  text-align:center;color:#7a746b;font-size:12px
}

@media(min-width:900px){
  .topbar{padding:8px 24px}
  .hero-simple{padding:18px 24px 6px}
  .hero-simple-box{min-height:180px;padding:25px}
  .hero-simple-box h1{font-size:36px}
  .section{padding:24px 24px 44px}
}


/* V1.6 — full photo viewer */
.product-gallery{cursor:zoom-in}
.photo-viewer{
  position:fixed;inset:0;z-index:1000;
  background:rgba(0,0,0,.94);
  display:flex;align-items:center;justify-content:center;
}
.photo-close{
  position:absolute;top:max(14px,env(safe-area-inset-top));right:14px;z-index:1002;
  width:42px;height:42px;border:0;border-radius:50%;
  background:rgba(255,255,255,.16);color:#fff;font-size:28px;line-height:1;
}
.photo-viewer-slides{
  width:100%;height:100%;
  display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;
}
.photo-viewer-slides::-webkit-scrollbar{display:none}
.photo-viewer-slide{
  flex:0 0 100%;height:100%;scroll-snap-align:start;
  display:flex;align-items:center;justify-content:center;padding:58px 12px 50px;
}
.photo-viewer-slide img{
  max-width:100%;max-height:100%;object-fit:contain;display:block;
}
.photo-viewer-dots{
  position:absolute;left:0;right:0;bottom:max(18px,env(safe-area-inset-bottom));
  display:flex;justify-content:center;gap:6px;z-index:1002;
}
.photo-viewer-dot{
  width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.5)
}
.photo-viewer-dot.active{width:18px;border-radius:999px;background:#fff}


/* V1.6.1 — simpler pricing + WhatsApp above description */
.discount-badge{display:none!important}
.product-meta{margin-bottom:10px}
.wa-button{
  margin-bottom:12px;
  min-height:46px;
  border-radius:12px;
  background:#20a05a;
  box-shadow:0 6px 16px rgba(32,160,90,.16);
}
.wa-button:active{transform:scale(.99)}
.wa-icon{
  width:28px;height:28px;
  background:#fff;color:#20a05a;
  display:grid;place-items:center;
}
.wa-icon svg{display:block}
.description-wrap{border-top:1px solid #eee7db;padding-top:11px}
.product-description{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:13.5px;
  white-space:pre-line;
}
.product-description.is-collapsed{
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.description-more{
  margin:7px 0 0;
  border:0;
  padding:0;
  background:transparent;
  color:#8a5d0a;
  font-size:12.5px;
  font-weight:800;
  cursor:pointer;
}


/* V1.7 — single store video + install button */
.top-actions{display:flex;align-items:center;gap:10px}
.install-mini{
  border:0;border-radius:9px;padding:8px 10px;
  background:#171717;color:#fff;font-size:12px;font-weight:800;
}
.install-mini[hidden]{display:none!important}

.store-video-section{
  padding:10px 14px 0;
  max-width:960px;
  margin:auto;
}
.store-video-box{
  width:100%;
  background:#111;
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.store-video-box video,
.store-video-box iframe{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  border:0;
  background:#000;
}
@media(min-width:900px){
  .store-video-section{padding:14px 24px 0}
}


/* V1.8.2 — Shopee-like Specification & Description */
.product-section{
  border-top:1px solid #eee7db;
  margin-top:12px;
  padding-top:12px;
}
.product-section-title{
  margin:0 0 10px;
  font-size:16px;
  line-height:1.2;
  color:#222;
  font-weight:800;
}
.spec-list{
  display:grid;
  gap:8px;
}
.spec-row{
  display:grid;
  grid-template-columns:110px 1fr;
  gap:12px;
  align-items:start;
  font-size:13px;
  line-height:1.45;
}
.spec-label{
  color:#8b847b;
}
.spec-value{
  color:#333;
  font-weight:700;
}
.description-wrap{
  padding-top:12px;
}
.description-wrap .product-description{
  margin-top:0;
}


/* V1.8.3 — balanced mobile typography */
.product-name{
  font-size:22px;
  line-height:1.25;
  margin-bottom:9px;
}
.price-current{
  font-size:26px;
  line-height:1.15;
}
.price-old{
  font-size:15px;
}
.wa-button{
  font-size:16px;
  min-height:48px;
}
.product-section-title{
  font-size:18px;
  line-height:1.25;
  margin-bottom:12px;
}
.spec-row{
  grid-template-columns:120px 1fr;
  gap:14px;
  font-size:15.5px;
  line-height:1.5;
}
.spec-label{
  font-size:15.5px;
}
.spec-value{
  font-size:15.5px;
}
.product-description{
  font-size:15.5px;
  line-height:1.65;
}
.description-more{
  font-size:14px;
  margin-top:9px;
}
@media (max-width:420px){
  .product-name{font-size:21px}
  .price-current{font-size:25px}
  .product-section-title{font-size:17.5px}
  .spec-row,
  .spec-label,
  .spec-value,
  .product-description{font-size:15px}
}


/* V1.9 — performance: kurangi pekerjaan render di luar layar */
.product-card{
  content-visibility:auto;
  contain-intrinsic-size:620px;
}
.product-slide img{
  background:#eee9df;
}

/* LokaRagam V3: domain utama, katalog berdiri sendiri */
.top-actions{display:flex;align-items:center;gap:14px;font-size:12px;font-weight:750}
.top-actions a{color:#453b2d}
.top-actions a:hover{text-decoration:underline}
.catalog-status{margin-bottom:14px;background:#fff7de;border-color:#e6ca87;color:#6b510e}
.simple-footer a{color:#544027;text-decoration:underline}
@media(max-width:380px){.top-actions{gap:9px;font-size:11px}.brand{font-size:16px}}
