/* Toko Kebersihan SBC - semua gaya dibatasi di bawah .toko-sbc */
.toko-sbc {
  --tk-accent: #fd7e14;
  --tk-accent-dark: #e36d08;
  --tk-text: #1a1f24;
  --tk-head: #485664;
  --tk-bg: #f6f7f9;
  --tk-border: #e3e6ea;
  --tk-top: 70px;
  color: var(--tk-text);
  background: #fff;
  font-family: "Roboto", "Source Sans Pro", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.toko-sbc *, .toko-sbc *::before, .toko-sbc *::after { box-sizing: border-box; }
.toko-sbc h1, .toko-sbc h2, .toko-sbc h3 { color: var(--tk-head); font-weight: 700; margin: 0; }
.toko-sbc a { color: var(--tk-accent-dark); text-decoration: none; }
.toko-sbc ul { list-style: none; margin: 0; padding: 0; }
.toko-sbc :focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* Buttons */
.toko-sbc .tk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.2; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.toko-sbc .tk-btn-primary { background: var(--tk-accent); color: #fff; }
.toko-sbc .tk-btn-primary:hover { background: var(--tk-accent-dark); color: #fff; }
.toko-sbc .tk-btn-light { background: #fff; color: var(--tk-head); }
.toko-sbc .tk-btn-light:hover { background: #fff3e8; color: var(--tk-accent-dark); }
.toko-sbc .tk-btn-outline { background: #fff; color: var(--tk-head); border-color: var(--tk-border); }
.toko-sbc .tk-btn-outline:hover { border-color: var(--tk-accent); color: var(--tk-accent-dark); }
.toko-sbc .tk-btn-cart { background: var(--tk-head); color: #fff; position: relative; }
.toko-sbc .tk-btn-cart:hover { background: #38434f; color: #fff; }
.toko-sbc .tk-btn-wa { background: #1fa855; color: #fff; padding: 11px 16px; }
.toko-sbc .tk-btn-wa:hover { background: #178a45; color: #fff; }
.toko-sbc .tk-btn-link { background: none; color: #6b7682; font-weight: 500; margin-top: 6px; }
.toko-sbc .tk-btn-link:hover { color: #c0392b; }
.toko-sbc .tk-cart-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--tk-accent); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center;
}

/* Shop bar */
.toko-sbc .tk-shopbar {
  position: sticky; top: var(--tk-top); z-index: 990; background: #fff;
  border-bottom: 1px solid var(--tk-border); padding: 10px 0; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.toko-sbc .tk-shopbar-row { display: flex; gap: 10px; align-items: center; }
.toko-sbc .tk-search { position: relative; flex: 1 1 auto; min-width: 0; }
.toko-sbc .tk-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8a949e; font-size: 17px; }
.toko-sbc .tk-search input {
  width: 100%; height: 46px; border: 2px solid var(--tk-border); border-radius: 10px;
  padding: 0 14px 0 42px; font-size: 15px; background: var(--tk-bg); color: var(--tk-text);
}
.toko-sbc .tk-search input:focus { border-color: var(--tk-accent); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(253,126,20,.25); }
.toko-sbc .tk-cat-select select, .toko-sbc .tk-sort select {
  height: 46px; border: 2px solid var(--tk-border); border-radius: 10px; padding: 0 10px;
  background: #fff; color: var(--tk-text); font-size: 14px; max-width: 200px; width: 100%;
}
.toko-sbc .tk-sort select { height: 40px; max-width: none; }
.toko-sbc .tk-shopbar .tk-btn { height: 46px; }

/* Category bar */
.toko-sbc .tk-catbar { background: var(--tk-head); }
.toko-sbc .tk-catbar ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.toko-sbc .tk-catbar a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; color: #fff;
  font-size: 13px; white-space: nowrap; border-radius: 4px;
}
.toko-sbc .tk-catbar a:hover, .toko-sbc .tk-catbar a.active { background: var(--tk-accent); color: #fff; }

/* Hero */
.toko-sbc .tk-hero { background: var(--tk-bg); padding: 20px 0; }
.toko-sbc .tk-banner {
  position: relative; overflow: hidden; height: 100%; min-height: 300px; padding: 36px;
  border-radius: 14px; color: #fff; background: linear-gradient(135deg, #d9480f 0%, #bf3f0b 100%);
}
.toko-sbc .tk-banner h1 { color: #fff; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2; margin: 10px 0 12px; max-width: 520px; }
.toko-sbc .tk-banner p { max-width: 480px; color: #fff; opacity: 1; margin-bottom: 20px; }
.toko-sbc .tk-eyebrow { display: inline-block; background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: .5px; }
.toko-sbc .tk-banner-cta { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.toko-sbc .tk-banner .tk-btn-primary { background: #1a1f24; }
.toko-sbc .tk-banner .tk-btn-primary:hover { background: #000; }
.toko-sbc .tk-banner-deco { position: absolute; right: -10px; bottom: -30px; font-size: 190px; opacity: .13; line-height: 1; }
.toko-sbc .tk-featured { background: #fff; border-radius: 14px; padding: 18px; height: 100%; border: 1px solid var(--tk-border); }
.toko-sbc .tk-featured h2 { font-size: 17px; margin-bottom: 12px; }
.toko-sbc .tk-featured-row { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.toko-sbc .tk-featured-item { position: relative; display: flex; flex-direction: column; gap: 4px; color: var(--tk-text); }
.toko-sbc .tk-featured-item:hover .tk-featured-name { color: var(--tk-accent-dark); }
.toko-sbc .tk-featured-name { font-size: 13px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toko-sbc .tk-featured-price { font-size: 13px; font-weight: 700; color: var(--tk-accent-dark); }
.toko-sbc .tk-featured-item .tk-badge { top: 6px; left: 6px; }

/* Thumbs and badges */
.toko-sbc .tk-thumb {
  aspect-ratio: 1 / 1; border-radius: 10px; background: linear-gradient(135deg, #fff1e5, #ffe0c7);
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--tk-accent);
}
.toko-sbc .tk-thumb i { font-size: 44px; }
.toko-sbc .tk-thumb-sm i { font-size: 34px; }
.toko-sbc .tk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.toko-sbc .tk-badge {
  position: absolute; top: 8px; left: 8px; background: var(--tk-head); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; z-index: 1;
}
.toko-sbc .tk-badge[data-badge="Terlaris"] { background: #d63384; }
.toko-sbc .tk-badge[data-badge="Baru"] { background: #198754; }
.toko-sbc .tk-badge[data-badge="Hemat"] { background: #0d6efd; }
.toko-sbc .tk-featured-item .tk-badge { background: #d63384; }

/* Benefits */
.toko-sbc .tk-benefits { background: #fff; border-bottom: 1px solid var(--tk-border); padding: 18px 0; }
.toko-sbc .tk-benefits ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.toko-sbc .tk-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.toko-sbc .tk-benefits li > i { font-size: 26px; color: var(--tk-accent); flex-shrink: 0; }
.toko-sbc .tk-benefits strong { display: block; font-size: 14px; color: var(--tk-head); line-height: 1.3; }
.toko-sbc .tk-benefits span { font-size: 12.5px; color: #6b7682; }

/* Sections */
.toko-sbc .tk-section { padding: 44px 0; scroll-margin-top: 150px; }
.toko-sbc .tk-section-alt { background: var(--tk-bg); }
.toko-sbc .tk-title { font-size: 24px; margin-bottom: 22px; }
.toko-sbc .tk-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.toko-sbc .tk-cat-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: #fff; border: 1px solid var(--tk-border); border-radius: 12px; padding: 20px 10px; color: var(--tk-text);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.toko-sbc .tk-cat-tile i { font-size: 34px; color: var(--tk-accent); }
.toko-sbc .tk-cat-tile strong { font-size: 14.5px; color: var(--tk-head); }
.toko-sbc .tk-cat-tile span { font-size: 12.5px; color: #6b7682; }
.toko-sbc .tk-cat-tile:hover { transform: translateY(-3px); border-color: var(--tk-accent); box-shadow: 0 8px 20px rgba(0,0,0,.08); }

/* Catalog */
.toko-sbc .tk-catalog-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toko-sbc .tk-catalog-head .tk-title { margin: 0; }
.toko-sbc .tk-result-count { color: #6b7682; font-size: 14px; flex: 1; }
.toko-sbc .tk-filter-toggle { display: none; align-self: center; }
.toko-sbc .tk-filters { background: #fff; border: 1px solid var(--tk-border); border-radius: 12px; padding: 16px; }
.toko-sbc .tk-filters fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.toko-sbc .tk-filters legend, .toko-sbc .tk-sort label { font-size: 14px; font-weight: 700; color: var(--tk-head); margin-bottom: 8px; float: none; width: auto; padding: 0; display: block; }
.toko-sbc .tk-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.toko-sbc .tk-check input { width: 17px; height: 17px; accent-color: var(--tk-accent); flex-shrink: 0; }
.toko-sbc .tk-check label { font-size: 14px; cursor: pointer; }
.toko-sbc .tk-check small { color: #8a949e; }
.toko-sbc .tk-sort { margin-bottom: 14px; }
.toko-sbc .tk-reset { width: 100%; }
@media (min-width: 992px) {
  .toko-sbc .tk-filters.collapse:not(.show) { display: block; }
  .toko-sbc aside .tk-filters { position: sticky; top: calc(var(--tk-top) + 70px); }
}
.toko-sbc .tk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.toko-sbc .tk-card {
  position: relative; background: #fff; border: 1px solid var(--tk-border); border-radius: 12px;
  padding: 10px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s;
}
.toko-sbc .tk-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.toko-sbc .tk-card-name { font-size: 14px; font-weight: 600; color: var(--tk-text); line-height: 1.3; min-height: 36px; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toko-sbc .tk-card-unit { font-size: 12.5px; color: #6b7682; }
.toko-sbc .tk-card-price { font-size: 17px; font-weight: 700; color: var(--tk-accent-dark); }
.toko-sbc .tk-card-actions { display: flex; gap: 6px; margin-top: auto; align-items: center; }
.toko-sbc .tk-card-actions .tk-btn { flex: 1; padding: 8px 6px; font-size: 13px; }
.toko-sbc .tk-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--tk-border); border-radius: 8px; overflow: hidden; background: #fff; }
.toko-sbc .tk-qty button { width: 28px; height: 34px; border: 0; background: var(--tk-bg); color: var(--tk-head); font-size: 16px; cursor: pointer; line-height: 1; }
.toko-sbc .tk-qty button:hover { background: #ffe8d1; }
.toko-sbc .tk-qty input { width: 34px; height: 34px; border: 0; text-align: center; font-size: 14px; font-weight: 600; padding: 0; -moz-appearance: textfield; background: #fff; color: var(--tk-text); }
.toko-sbc .tk-qty input::-webkit-outer-spin-button, .toko-sbc .tk-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.toko-sbc .tk-empty { text-align: center; padding: 50px 20px; background: #fff; border: 1px dashed var(--tk-border); border-radius: 12px; color: #6b7682; }
.toko-sbc .tk-empty[hidden] { display: none; }
.toko-sbc .tk-empty i { font-size: 40px; color: var(--tk-accent); }

/* Why */
.toko-sbc .tk-why { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.toko-sbc .tk-why p { color: #4a545e; }
.toko-sbc .tk-why-list li { display: flex; gap: 8px; padding: 4px 0; }
.toko-sbc .tk-why-list i { color: var(--tk-accent); }
.toko-sbc .tk-why-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toko-sbc .tk-why-card {
  display: flex; flex-direction: column; gap: 4px; background: var(--tk-bg); border: 1px solid var(--tk-border);
  border-radius: 12px; padding: 20px; color: var(--tk-text); transition: border-color .15s, transform .15s;
}
.toko-sbc .tk-why-card i { font-size: 30px; color: var(--tk-accent); }
.toko-sbc .tk-why-card strong { color: var(--tk-head); }
.toko-sbc .tk-why-card span { font-size: 13px; color: #6b7682; }
.toko-sbc .tk-why-card:hover { border-color: var(--tk-accent); transform: translateY(-3px); }

/* Cart (offcanvas is inside .toko-sbc in DOM) */
.toko-sbc .tk-cart { width: 420px; max-width: 100%; }
.toko-sbc .tk-cart .offcanvas-title { font-size: 19px; }
.toko-sbc .tk-cart-empty { text-align: center; color: #6b7682; padding: 40px 0; }
.toko-sbc .tk-cart-empty i { font-size: 48px; color: #c4cad1; }
.toko-sbc .tk-cart-empty[hidden] { display: none; }
.toko-sbc .tk-cart-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--tk-border); align-items: center; }
.toko-sbc .tk-cart-item .tk-thumb { width: 52px; border-radius: 8px; }
.toko-sbc .tk-cart-item .tk-thumb i { font-size: 22px; }
.toko-sbc .tk-cart-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.toko-sbc .tk-cart-meta { font-size: 12px; color: #6b7682; }
.toko-sbc .tk-cart-line { font-weight: 700; font-size: 13.5px; text-align: right; }
.toko-sbc .tk-cart-row2 { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.toko-sbc .tk-cart-row2 .tk-qty button { height: 28px; width: 26px; }
.toko-sbc .tk-cart-row2 .tk-qty input { height: 28px; width: 32px; }
.toko-sbc .tk-remove { border: 0; background: none; color: #b0413e; cursor: pointer; font-size: 17px; padding: 4px; }
.toko-sbc .tk-cart-subtotal { display: flex; justify-content: space-between; font-size: 17px; padding: 14px 0 4px; }
.toko-sbc .tk-cart-subtotal strong { color: var(--tk-accent-dark); }
.toko-sbc .tk-note { font-size: 12.5px; color: #6b7682; }
.toko-sbc #tk-checkout-form h3 { font-size: 16px; margin: 14px 0 10px; }
.toko-sbc .form-label { font-size: 13px; font-weight: 600; margin-bottom: 3px; color: var(--tk-head); }
.toko-sbc .form-control:focus { border-color: var(--tk-accent); box-shadow: 0 0 0 3px rgba(253,126,20,.25); }
.toko-sbc .form-control.is-invalid { border-color: #dc3545; }
.toko-sbc .tk-form-error { background: #fdecea; color: #a12622; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }
.toko-sbc .tk-form-error[hidden] { display: none; }
.toko-sbc .modal-title { font-size: 19px; }
.toko-sbc .tk-modal .modal-footer { gap: 8px; }

/* Toast */
.toko-sbc .tk-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1a1f24; color: #fff;
  padding: 10px 18px; border-radius: 24px; font-size: 14px; z-index: 2000; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.toko-sbc .tk-toast[hidden] { display: none; }

/* Responsive */
@media (max-width: 991.98px) {
  .toko-sbc .tk-grid { grid-template-columns: repeat(3, 1fr); }
  .toko-sbc .tk-benefits ul { grid-template-columns: repeat(2, 1fr); }
  .toko-sbc .tk-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .toko-sbc .tk-filter-toggle { display: inline-flex; }
  .toko-sbc .tk-filters { margin-bottom: 4px; }
  .toko-sbc .tk-why { grid-template-columns: 1fr; }
  .toko-sbc .tk-banner { min-height: 0; }
}
@media (max-width: 767.98px) {
  .toko-sbc .tk-shopbar-row { flex-wrap: wrap; }
  .toko-sbc .tk-search { flex: 1 1 100%; }
  .toko-sbc .tk-cat-select { flex: 1 1 0; }
  .toko-sbc .tk-cat-select select { max-width: none; }
  .toko-sbc .tk-shopbar .tk-btn span:not(.tk-cart-count) { display: none; }
  .toko-sbc .tk-shopbar .tk-btn { padding: 0 14px; }
  .toko-sbc .tk-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .toko-sbc .tk-banner { padding: 24px; }
  .toko-sbc .tk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .toko-sbc .tk-card-actions { flex-direction: column; align-items: stretch; }
  .toko-sbc .tk-qty { justify-content: center; }
  .toko-sbc .tk-qty input { flex: 1; width: auto; }
  .toko-sbc .tk-why-links { grid-template-columns: 1fr; }
  .toko-sbc .tk-title { font-size: 20px; }
}
@media (max-width: 479.98px) {
  .toko-sbc .tk-benefits ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .toko-sbc * { transition: none !important; }
}
