/* Katalog ringkas: kartu produk 3 kolom di HP, tombol "+", harga tebal, chip ukuran, spasi dan ukuran font rapat.
 * Dimuat PALING AKHIR agar menimpa aturan lama. Hapus berkas ini dan tautannya untuk kembali ke tampilan sebelumnya. */
:root{--cc-accent:#2e713c;--cc-accent-soft:#e8f3e6;--cc-ink:#1b2a20;--cc-muted:#6c7a70;--cc-tile:#f5f6f2;--cc-red:#d92d20;--cc-red-soft:#fdecea;--cc-radius:16px}

/* ===== Kartu produk ===== */
html body article.product-card,html body .catalog-section #productGrid>article.product-card,html body .showcase-grid.product-carousel>article.product-card{display:flex;flex-direction:column;min-width:0;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;transform:none!important}
html body article.product-card:hover{transform:none!important;box-shadow:none!important}
.product-card .product-media{position:relative}
.product-card .product-image-link{display:block}
.product-card .product-image-wrap{position:relative;height:auto!important;aspect-ratio:1/1;border-radius:var(--cc-radius);background:var(--cc-tile);overflow:hidden}
.product-card .product-image-placeholder{background:var(--cc-tile)}
.product-card .product-image{position:relative;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;padding:4%}
.product-card .product-tags{position:absolute;left:0;top:0;z-index:3;display:flex;flex-direction:column;align-items:flex-start;gap:3px;pointer-events:none}
.product-card .card-flag{display:inline-block;padding:3px 8px 3px 7px;border-radius:0 0 10px 0;background:var(--cc-accent-soft);color:var(--cc-accent);font:700 10.5px/1.2 Inter,sans-serif}
.product-card .product-tag{position:static;display:block;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:0}
.product-card .stock-pill{display:none}
.product-card .stock-pill.low,.product-card .stock-pill.none{display:inline-block;padding:3px 8px 3px 7px;border-radius:0 0 10px 0;background:var(--cc-red-soft);color:var(--cc-red);font:700 10.5px/1.2 Inter,sans-serif;border:0}
.product-card .promo-badge{display:none!important}
html body article.product-card .product-media>button.add-button{position:absolute!important;right:8px!important;bottom:8px!important;left:auto!important;top:auto!important;z-index:4;display:grid!important;place-items:center;width:34px!important;height:34px!important;min-width:0!important;min-height:0!important;max-width:34px!important;margin:0!important;padding:0!important;border-radius:9px!important;border:2px solid var(--cc-accent)!important;background:#fff!important;color:var(--cc-accent)!important;font:500 22px/1 Inter,sans-serif!important;letter-spacing:0!important;box-shadow:none!important;text-transform:none!important;transition:background .12s,color .12s,transform .12s}
html body article.product-card .product-media>button.add-button::after{content:"";position:absolute;inset:-9px}
html body article.product-card .product-media>button.add-button:active{transform:scale(.92)}
html body article.product-card .product-media>button.add-button.is-added{background:var(--cc-accent)!important;color:#fff!important;font-size:16px!important;font-weight:800!important}
html body article.product-card .product-media>button.add-button:disabled{border-color:#cfd5d0!important;background:#f1f2f0!important;color:#b3bab5!important}
.product-card .product-content{display:flex;flex-direction:column;gap:0;padding:11px 0 0!important}
.product-card .product-content>*{margin-top:0}
html body .product-card .price-row{display:flex;flex-direction:column!important;align-items:flex-start;justify-content:flex-start;gap:3px;min-height:0;margin:0}
html body .product-card .price-row>.price-main{order:1}
html body .product-card .price-row>.price-was{order:2}
.product-card .price-main{margin:0;color:var(--cc-ink);font:800 17px/1.1 Inter,sans-serif;letter-spacing:-.01em}
.product-card .price-main small{margin-right:1px;font-size:12px;font-weight:700;letter-spacing:0}
.product-card .price-main.is-promo{color:var(--cc-ink)}
.product-card .price-was{display:flex;align-items:center;gap:5px;margin:0;color:#8a948d;font:400 11.5px/1.2 Inter,sans-serif;text-decoration:none}
.product-card .price-was s{text-decoration:line-through}
.product-card .price-was[hidden]{display:none}
.product-card .off-pill{padding:1px 5px;border-radius:5px;background:var(--cc-red-soft);color:var(--cc-red);font:700 10.5px/1.3 Inter,sans-serif;font-style:normal}
.product-card .product-content h3{margin:6px 0 3px;min-height:0;color:var(--cc-ink);font:500 13.5px/1.25 Inter,sans-serif;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.product-card .product-content h3 a{color:inherit;text-decoration:none}
.product-card .product-meta{display:flex;flex-wrap:wrap;align-items:center;gap:3px 7px;min-height:15px;margin:0;color:var(--cc-muted);font:400 12px/1.25 Inter,sans-serif}
.product-card .price-unit{margin:0;color:var(--cc-muted);font-size:12px;line-height:1.25}
.product-card .rating-line{margin:0;display:inline-flex;align-items:center}
.product-card .rv-chip{display:inline-flex;align-items:center;gap:3px;margin:0;padding:0;background:none;border:0;color:var(--cc-muted);font:400 12px/1 Inter,sans-serif}
.product-card .rv-chip b{color:var(--cc-muted);font-weight:500}
.product-card .rv-chip>span{display:none}
.product-card .rv-chip-empty{display:none}
.product-card .unit-choices{display:flex;flex-wrap:wrap;gap:4px;margin:2px 0 0}
.product-card .unit-choices[hidden]{display:none}
.product-card .unit-choice{min-height:0;height:24px;padding:0 6px;border-radius:7px;border:1px solid transparent;background:#eef0ec;color:#2c3a30;font:500 11px/1 Inter,sans-serif;box-shadow:none;white-space:nowrap}
html body .product-card .unit-choice{min-height:0!important;height:32px!important;padding:0 8px!important;font-size:12px!important;border-radius:8px}
.product-card .unit-choice.is-active{background:#fff;border-color:var(--cc-accent);color:var(--cc-accent);font-weight:700}
.product-card .unit-choice .unit-off{display:none}
.product-card .promo-meta{margin:5px 0 0;font-size:10.5px;line-height:1.3}
.product-card .promo-meta:empty{display:none}
.product-card .card-legacy{display:none!important}

/* ===== Susunan: HP (3 kolom), carousel beranda, judul bagian ===== */
@media(max-width:680px){
  .catalog-toolbar{display:none}.catalog-toolbar.is-open{display:grid}
  html body article.product-card .product-media>button.add-button{right:6px!important;bottom:6px!important}
  .catalog-section.container,.showcase-section.container,.categories-section.container{width:calc(100% - 22px)}
  .catalog-section #productGrid,.catalog-section #productGrid.product-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px 11px!important;overflow:visible!important;padding:2px 0 6px!important;scroll-snap-type:none!important;cursor:auto}
  .catalog-section #productGrid>.product-card{flex:none!important;width:auto!important}
  #catalogCarouselToolbar,.catalog-carousel-toolbar{display:none!important}
  html body .showcase-grid.product-carousel{gap:11px!important;padding:2px 0 8px!important;grid-auto-columns:calc((100% - 22px)/3)!important}
  .showcase-grid.product-carousel .product-image-wrap{height:auto!important}
  .product-card .price-main{font-size:16px}
}
@media(min-width:681px){
  html body .showcase-grid.product-carousel{gap:14px!important;grid-auto-columns:calc((100% - 42px)/4)!important}
  .showcase-grid.product-carousel .product-image-wrap{height:auto!important}
}
.catalog-section .section-heading h2,.showcase-section .section-heading h2{font:800 20px/1.2 Inter,sans-serif;letter-spacing:-.01em}
.catalog-section .section-heading,.showcase-section .section-heading{margin-bottom:10px}
.catalog-section .section-heading .eyebrow,.showcase-section .section-heading .eyebrow{display:none}
.catalog-section .section-heading p.muted,.showcase-section .section-heading p{margin:3px 0 0;font-size:12.5px;line-height:1.4}
.catalog-section .result-count{font-size:12px;color:var(--cc-muted)}

/* ===== Chip kategori & filter ===== */
.catalog-filter-row{display:flex;align-items:center;gap:8px;margin:0 0 6px}
.catalog-filter-row .category-chips{flex:1 1 auto;min-width:0;margin:0}
.filter-toggle{position:relative;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;border:1.5px solid #d6dbd5;background:#fff;color:#2c3a30;font:500 13px/1 Inter,sans-serif;cursor:pointer}
.filter-toggle.is-open{background:var(--cc-accent-soft);border-color:var(--cc-accent);color:var(--cc-accent)}
.filter-toggle .filter-dot{position:absolute;right:-1px;top:-1px;width:9px;height:9px;border-radius:50%;background:var(--cc-accent);border:2px solid #fff}
.category-chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;margin:0 0 6px;scrollbar-width:none}
.category-chips::-webkit-scrollbar{display:none}
.category-chips .chip{flex:0 0 auto;height:30px;min-height:0;padding:0 14px;border-radius:999px;border:1.5px solid #d6dbd5;background:#fff;color:#2c3a30;font:500 13px/1 Inter,sans-serif;box-shadow:none;white-space:nowrap}
.category-chips .chip.active{background:var(--cc-accent-soft);border-color:var(--cc-accent);color:var(--cc-accent);font-weight:700}
.catalog-toolbar{gap:8px 10px;padding:10px;margin:0 0 12px;border-radius:12px;background:#fafbf8;border:1px solid #e6eae3;box-shadow:none}
.catalog-toolbar>label{gap:4px;font-size:11.5px;font-weight:600;color:#56655a}
.catalog-toolbar input[type=number],.catalog-toolbar select{min-height:36px;padding:6px 10px;border-radius:9px;font-size:13px}
.catalog-toolbar .featured-filter{min-height:36px;font-size:12.5px}

/* ===== Galeri kategori: strip geser ===== */
.categories-section .section-heading{margin-bottom:10px}
.categories-section .section-title{font:800 20px/1.2 Inter,sans-serif}
.categories-section .section-heading .eyebrow,.categories-section .section-heading p.muted{display:none}
@media(max-width:680px){
  .category-gallery{display:flex!important;gap:10px!important;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 0 8px;scrollbar-width:none}
  .category-gallery::-webkit-scrollbar{display:none}
  .category-gallery .category-tile{flex:0 0 calc((100% - 30px)/3.4);scroll-snap-align:start;border-radius:14px}
}

@media(min-width:681px){.filter-toggle{display:none}}
@media(min-width:1100px){html body .showcase-grid.product-carousel{grid-auto-columns:calc((100% - 56px)/5)!important}}

/* Teks kartu: aturan lama (carousel/katalog) lebih spesifik, jadi dikunci di sini agar ukuran sama di mana pun */
html body article.product-card .product-content h3{margin:6px 0 3px!important;min-height:0!important;font:500 13.5px/1.25 Inter,sans-serif!important;letter-spacing:0!important;color:var(--cc-ink)!important}
html body article.product-card .product-content h3 a{font:inherit!important;color:inherit!important}
html body article.product-card .product-content{padding:11px 0 0!important}
html body article.product-card .price-main{font-size:17px!important;font-weight:800!important;line-height:1.1!important}
html body article.product-card .price-main small{font-size:12px!important;font-weight:700!important}
html body article.product-card .price-unit,html body article.product-card .product-meta{font-size:12px!important;line-height:1.25!important}
@media(max-width:680px){html body article.product-card .price-main{font-size:16px!important}}
/* Desktop/tablet: katalog satu baris yang lebih padat (kartu tidak raksasa) */
@media(min-width:681px){html body .catalog-section #productGrid>article.product-card{flex:0 0 calc((100% - 42px)/4)!important;width:auto!important}}
@media(min-width:1100px){html body .catalog-section #productGrid>article.product-card{flex:0 0 calc((100% - 70px)/6)!important}}

/* ===== Beli per nominal rupiah (tombol "Rp" di pojok kiri bawah gambar) ===== */
html body article.product-card .product-media>button.nominal-open{position:absolute!important;left:8px!important;bottom:8px!important;z-index:4;display:grid!important;place-items:center;min-width:34px;height:34px;padding:0 6px;border:2px solid var(--cc-accent);border-radius:9px;background:#fff;color:var(--cc-accent);font:800 12px/1 Inter,sans-serif;cursor:pointer}
html body article.product-card .product-media>button.nominal-open::after{content:"";position:absolute;inset:-8px}
html body article.product-card .product-media>button.nominal-open[hidden]{display:none!important}
@media(max-width:680px){html body article.product-card .product-media>button.nominal-open{left:6px!important;bottom:6px!important}}
.nominal-sheet{position:fixed;inset:0;z-index:2000;display:flex;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.4)}
.nominal-sheet[hidden]{display:none}
.nominal-sheet .ns-box{width:100%;max-width:440px;padding:18px 16px calc(18px + env(safe-area-inset-bottom,0px));border-radius:18px 18px 0 0;background:#fff;color:var(--cc-ink);font-family:Inter,sans-serif}
@media(min-width:681px){.nominal-sheet{align-items:center}.nominal-sheet .ns-box{border-radius:18px}}
.nominal-sheet h4{margin:0 0 4px;font:800 16px/1.3 Inter,sans-serif}
.nominal-sheet .ns-sub{margin:0 0 2px;color:var(--cc-muted);font-size:13px;line-height:1.4}
.nominal-sheet .ns-min{margin:0 0 12px;color:var(--cc-muted);font-size:13px;font-weight:600}
.nominal-sheet input{width:100%;box-sizing:border-box;padding:12px;border:1.5px solid #cfd5d0;border-radius:12px;font:600 16px Inter,sans-serif}
.nominal-sheet .ns-info{min-height:18px;margin:8px 0 0;color:var(--cc-accent);font-size:13px;font-weight:600}
.nominal-sheet .ns-err{min-height:16px;margin:4px 0 0;color:var(--cc-red);font-size:12.5px}
.nominal-sheet .ns-actions{display:flex;gap:8px;margin-top:12px}
.nominal-sheet .ns-actions button{flex:1;padding:12px;border-radius:12px;font:700 14px Inter,sans-serif;cursor:pointer}
.nominal-sheet .ns-cancel{border:1.5px solid #cfd5d0;background:#fff;color:var(--cc-ink)}
.nominal-sheet .ns-ok{border:0;background:var(--cc-accent);color:#fff}

/* ===== Penyesuaian terhadap polish.css (Rev 44) ===== */
html body .product-card .product-image-wrap{border-bottom:0!important}
html body .product-card .product-image-wrap{aspect-ratio:1/1!important}

/* ===== Produk habis / tidak tersedia: jelas terlihat, tidak bisa dibeli ===== */
html body .product-card:has(.add-button:disabled) .product-image{opacity:.38;filter:grayscale(1)}
html body .product-card:has(.add-button:disabled) .price-main,html body .product-card:has(.add-button:disabled) h3,html body .product-card:has(.add-button:disabled) h3 a{color:#8a948c!important}
html body .product-card:has(.add-button:disabled) .stock-pill.none,html body .product-card:has(.add-button:disabled) .stock-pill.low{background:#4b5a4f;color:#fff;font-size:12px}
html body .product-card:has(.add-button:disabled) .unit-choices{opacity:.5;pointer-events:none}
html body article.product-card .product-media>button.add-button:disabled{border-color:#b8c0ba!important;background:#eef0ee!important;color:#8a948c!important;cursor:not-allowed}

/* ===== Bar promo "Terjual": teks terbaca di atas warna bar ===== */
html body .product-card .promo-progress{background:#fdeae4}
html body .product-card .promo-progress span{background:linear-gradient(90deg,#f6a28f,#f8c3a8)}
html body .product-card .promo-progress em{color:#6b1a0d;font-size:12px}
