body.store {
  --st-brand: #ce071e;
  --st-brand-dark: #8d0414;
  --st-brand-soft: #fdecee;
  --st-ink: #1b1d20;
  --st-text: #2b2e33;
  --st-muted: #6b7078;
  --st-line: #e4e3df;
  --st-canvas: #fbfaf8;
  --st-surface: #ffffff;
  --st-img: #efeeeb;

  --st-slate-bg: #eceef1;  --st-slate-fg: #4a5058;
  --st-blue-bg: #e3eefb;   --st-blue-fg: #1e5aa8;
  --st-amber-bg: #fdf0d0;  --st-amber-fg: #8a5a00;
  --st-green-bg: #dff3e6;  --st-green-fg: #1a6b3a;
  --st-red-bg: #fde4e6;    --st-red-fg: #a3101f;

  --st-radius: 14px;

  --bs-body-color: var(--st-text);
  --bs-body-color-rgb: 43, 46, 51;
  --bs-link-color: var(--st-ink);
  --bs-primary: var(--st-brand);
  --bs-red: var(--st-brand);

  font-family: "Inter", Roboto, sans-serif;
  color: var(--st-text);
  background: var(--st-canvas) !important;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

body.store h1, body.store h2, body.store h3, body.store h4, body.store h5, body.store h6 {
  color: var(--st-ink); letter-spacing: -.015em;
}
body.store a { color: var(--st-ink); }
body.store a:hover { color: var(--st-brand); }
body.store .text-muted { color: var(--st-muted) !important; }
body.store .text-danger { color: var(--st-brand) !important; }
body.store hr { border-color: var(--st-line); opacity: 1; }
body.store :focus-visible { outline: 2px solid var(--st-ink); outline-offset: 2px; }

/* ---------- Judul seksi ---------- */
body.store .section-title,
body.store .section-title.text-uppercase {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.025em;
  text-transform: none !important; line-height: 1.15; color: var(--st-ink);
}
.st-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.st-head .section-title { margin: 0 !important; }
.st-head a { font-weight: 600; font-size: .95rem; white-space: nowrap; }
.st-head a:hover { text-decoration: underline; }

/* ---------- Tombol ---------- */
body.store .btn { font-weight: 600; border-radius: 10px; }
body.store .btn.text-uppercase { text-transform: none !important; }
body.store .btn.btn-medium { padding: .75rem 1.7rem; font-size: 1rem; letter-spacing: 0; }
body.store .btn-lg { padding: .8rem 1.5rem; font-size: 1.05rem; }
body.store .btn.btn-black,
body.store .btn.btn-dark { background: var(--st-ink); color: #fff; border: 1px solid var(--st-ink); }
body.store .btn.btn-black:hover,
body.store .btn.btn-dark:hover { color: #fff; border-color: var(--st-brand); background: var(--st-brand); }
body.store .hvr-sweep-to-right:before { background: var(--st-brand); }
body.store .btn-outline-dark { background: #fff; color: var(--st-ink); border: 1px solid #cfcdc8; }
body.store .btn-outline-dark:hover, body.store .btn-outline-dark:focus { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }
body.store .btn-outline-danger { background: #fff; color: var(--st-red-fg); border: 1px solid #f0b9bf; }
body.store .btn-outline-danger:hover { background: var(--st-brand); border-color: var(--st-brand); color: #fff; }
body.store .btn-outline-secondary { background: #fff; color: var(--st-slate-fg); border: 1px solid #cfcdc8; }
body.store .btn-outline-secondary:hover { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }
body.store .btn-light { background: #fff; color: var(--st-ink); border: 1px solid transparent; }
body.store .btn-light:hover { background: var(--st-brand); color: #fff; }
body.store .btn-warning { background: var(--st-amber-bg); color: var(--st-amber-fg); border: 1px solid #ecce85; }
body.store .btn-secondary, body.store .btn-secondary:disabled { background: #e4e3df; color: #8a8e94; border-color: #e4e3df; opacity: 1; }
body.store .btn-link { color: inherit; text-decoration: none; font-weight: inherit; }
body.store .btn-link:hover { color: var(--st-brand); }

/* ---------- Form ---------- */
body.store .form-label { font-weight: 600; font-size: .88rem; color: var(--st-ink); margin-bottom: .35rem; }
body.store .form-control, body.store .form-select {
  border: 1px solid #d5d3ce; border-radius: 10px; color: var(--st-ink); background-color: #fff;
}
/* Fokus input: netral (ink), BUKAN merah, supaya tidak terbaca sebagai error */
body.store .form-control:focus, body.store .form-select:focus {
  border-color: var(--st-ink); box-shadow: 0 0 0 3px rgba(27,29,32,.10); outline: none;
}
body.store .form-check-input:checked { background-color: var(--st-ink); border-color: var(--st-ink); }
body.store .form-check-input:focus { border-color: var(--st-ink); box-shadow: 0 0 0 3px rgba(27,29,32,.10); }
/* State error: satu-satunya yang merah */
body.store .form-control.is-invalid, body.store .form-select.is-invalid { border-color: var(--st-brand); }
body.store .form-control.is-invalid:focus, body.store .form-select.is-invalid:focus {
  border-color: var(--st-brand); box-shadow: 0 0 0 3px rgba(206,7,30,.14);
}
body.store .invalid-feedback { color: var(--st-red-fg); }

/* ---------- Alert ---------- */
body.store .alert {
  border: 1px solid var(--st-line); border-left-width: 4px; border-radius: 10px; background: #fff; color: var(--st-ink); font-weight: 500;
}
body.store .alert-success { border-left-color: #2e9e5b; background: #f3fbf6; }
body.store .alert-danger  { border-left-color: var(--st-brand); background: var(--st-brand-soft); }
body.store .alert-warning { border-left-color: #e0a100; background: #fffaf0; }
body.store .alert-info    { border-left-color: #2f7bd0; background: #f3f8fe; }
body.store .alert-light   { background: #fff; }

/* ---------- Pengingat ukuran (keranjang): kotak kuning lembut yang tipis ---------- */
body.store .size-reminder {
  display: flex; align-items: center; gap: .6rem;
  margin: 0 0 1rem; padding: .5rem .85rem;
  background: #fff8db; border: 1px solid #f1dd8f; border-radius: 8px;
  color: #6b5300; font-size: .9rem; line-height: 1.4;
}
body.store .size-reminder-icon { flex: 0 0 auto; width: 18px; height: 18px; }

/* ---------- Badge: dipetakan ke palet status ---------- */
body.store .badge { font-weight: 600; font-size: .74rem; padding: .35em .75em; border-radius: 999px; letter-spacing: 0; }
body.store .badge.bg-secondary { background: var(--st-slate-bg) !important; color: var(--st-slate-fg) !important; }
body.store .badge.bg-info      { background: var(--st-blue-bg)  !important; color: var(--st-blue-fg)  !important; }
body.store .badge.bg-warning   { background: var(--st-amber-bg) !important; color: var(--st-amber-fg) !important; }
body.store .badge.bg-success   { background: var(--st-green-bg) !important; color: var(--st-green-fg) !important; }
body.store .badge.bg-danger    { background: var(--st-red-bg)   !important; color: var(--st-red-fg)   !important; }
body.store .badge.bg-dark      { background: var(--st-ink)      !important; color: #fff !important; }
/* badge di atas foto produk: solid supaya terbaca */
body.store .product-card .badge.bg-danger { background: var(--st-brand) !important; color: #fff !important; }
body.store .product-card .badge.bg-dark   { background: rgba(27,29,32,.88) !important; color: #fff !important; }
body.store .low-stock-badge { background: #f59f00 !important; color: #fff !important; }
body.store .low-stock-badge.is-critical { background: var(--st-brand) !important; }
/* badge jumlah keranjang di header */
body.store #header-nav .badge.bg-dark { background: var(--st-brand) !important; color: #fff !important; }

/* ---------- Tabel & kotak ---------- */
body.store section .table-responsive {
  background: var(--st-surface); border: 1px solid var(--st-line); border-radius: var(--st-radius); padding: .5rem;
}
body.store .table { --bs-table-bg: transparent; --bs-table-color: var(--st-text); margin-bottom: 0; }
body.store .table > :not(caption) > * > * { padding: .85rem .9rem; border-bottom: 1px solid var(--st-line); background: transparent; color: var(--st-text); }
body.store .table thead th { font-size: .82rem; font-weight: 600; color: var(--st-muted); background: #faf9f7; white-space: nowrap; }
body.store .table thead th:first-child { border-top-left-radius: 8px; }
body.store .table thead th:last-child { border-top-right-radius: 8px; }
body.store .table tbody tr:last-child > td { border-bottom: 0; }
body.store .table tr.table-warning > td { background: var(--st-amber-bg) !important; }
body.store .table tr.table-danger > td { background: var(--st-red-bg) !important; }

body.store .border.rounded,
body.store .border.rounded-3,
body.store .border.rounded-4 {
  background: var(--st-surface); border-color: var(--st-line) !important; border-radius: var(--st-radius) !important;
}
body.store .shadow-sm { box-shadow: 0 1px 2px rgba(27,29,32,.05), 0 8px 24px rgba(27,29,32,.05) !important; }
body.store .list-group-item { border-color: var(--st-line); }

body.store .nav-pills .nav-link { color: var(--st-muted); font-weight: 600; border-radius: 10px; }
body.store .nav-pills .nav-link.active { background: var(--st-ink); color: #fff; }

/* ---------- Pagination ---------- */
body.store .pagination .page-link {
  border: 1px solid #d5d3ce !important; border-radius: 10px !important; background: #fff; color: var(--st-ink) !important; font-weight: 600;
}
body.store .pagination .page-link:hover { background: var(--st-ink); border-color: var(--st-ink) !important; color: #fff !important; }
body.store .pagination .disabled .page-link { background: #f6f5f3; color: #a3a6ab !important; }

/* ---------- Modal ---------- */
body.store .modal-content { border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(27,29,32,.25); }
body.store #modaltoggle .image-holder { border-radius: 14px; background: var(--st-img); }

/* ==========================================================================
   Header
   ========================================================================== */
body.store .site-header { position: sticky; top: -37px; z-index: 1030; background: #fff; border-bottom: 1px solid var(--st-line); }
body.store .header-top {
  height: 37px; padding: 0 !important; display: flex; align-items: center;
  background: var(--st-ink); border: 0 !important; color: #d6d8dc; font-size: .84rem;
}
body.store .header-top .container-lg { width: 100%; }
body.store .header-top p { font-size: .84rem; color: #d6d8dc !important; margin: 0; }
body.store .header-top strong { color: #fff; }
body.store .header-top a, body.store .header-top .btn-link { color: #d6d8dc; font-size: .84rem; }
body.store .header-top a:hover, body.store .header-top .btn-link:hover { color: #fff; }
body.store .header-top ul { gap: 1.25rem !important; align-items: center; }

body.store #header-nav { padding: .7rem 0; background: #fff; }
body.store #header-nav .logo { max-height: 38px; width: auto; }
body.store #navbar .nav-item a.nav-link {
  position: relative; color: var(--st-ink); font-weight: 600; font-size: .95rem; padding: .35rem 0;
}
body.store #navbar .nav-item a.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--st-brand);
  transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
body.store #navbar .nav-item a.nav-link:hover { color: var(--st-brand); }
body.store #navbar .nav-item a.nav-link:hover::after,
body.store #navbar .nav-item a.nav-link.active::after { transform: scaleX(1); }
body.store #navbar .nav-item a.nav-link.active { color: var(--st-brand); }
body.store #header-nav .user-items a { display: inline-flex; padding: .35rem; border-radius: 8px; }
body.store #header-nav .user-items a:hover { background: var(--st-canvas); }

/* ==========================================================================
   Hero & kartu eksplorasi
   ========================================================================== */
body.store .hero-welcome {
  min-height: 560px; justify-content: flex-start; text-align: left;
}
body.store .hero-welcome::before {
  background: linear-gradient(90deg, rgba(20,21,23,.82) 0%, rgba(20,21,23,.5) 48%, rgba(20,21,23,.12) 100%);
}
body.store .hero-welcome .hero-inner { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
body.store .hero-welcome .hero-inner > * { max-width: 620px; }
body.store .hero-welcome h1 {
  font-weight: 800; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(2.4rem, 5.2vw, 4rem);
  text-shadow: none;
}
body.store .hero-welcome .hero-inner p { text-shadow: none; opacity: .92; line-height: 1.6; }
body.store .hero-welcome .btn { border-radius: 999px; padding: .85rem 2rem; }

body.store .explore-card {
  min-height: 0; aspect-ratio: 4 / 5; border-radius: 18px;
  transition: transform .25s ease, box-shadow .25s ease;
}
body.store .explore-card::before {
  background: linear-gradient(0deg, rgba(20,21,23,.78) 0%, rgba(20,21,23,.05) 55%);
}
body.store .explore-card:hover::before { background: linear-gradient(0deg, rgba(141,4,20,.82) 0%, rgba(20,21,23,.08) 60%); }
body.store .explore-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27,29,32,.18); }
body.store .explore-card span {
  text-transform: none; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em;
}

/* strip keunggulan */
.st-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.st-benefit {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--st-line); border-radius: var(--st-radius); padding: 1.25rem 1.35rem;
}
.st-benefit-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--st-brand-soft); color: var(--st-brand);
  display: grid; place-items: center;
}
.st-benefit-ico svg { width: 22px; height: 22px; }
.st-benefit h3 { font-size: 1rem !important; font-weight: 700; margin: 0 0 .2rem; line-height: 1.3; }
.st-benefit p { margin: 0; color: var(--st-muted); font-size: .9rem; line-height: 1.5; }
@media (max-width: 767.98px) { .st-benefits { grid-template-columns: 1fr; } }

/* ==========================================================================
   Kartu produk
   ========================================================================== */
body.store .product-card .card-img { border-radius: 16px; background: var(--st-img); }
body.store .product-card .card-img img.product-image { transition: transform .5s ease; }
body.store .product-card:hover .card-img img.product-image { transform: scale(1.04); }
body.store .product-card .card-title { line-height: 1.35; }
body.store .product-card .card-title a { color: var(--st-ink); font-weight: 600; }
body.store .product-card .card-title a:hover { color: var(--st-brand); }
body.store .product-card .card-price { font-size: .98rem; color: var(--st-ink); }
body.store .product-card .cart-button .btn {
  width: 44px; height: 44px; background: #fff; box-shadow: 0 6px 18px rgba(27,29,32,.18); border: 0;
}
body.store .product-card .cart-button .btn:hover { background: var(--st-brand); }
body.store .product-card .cart-button .btn:hover svg { fill: #fff; }
body.store .product-card > .mt-auto .btn { border-radius: 10px; padding: .55rem; font-size: .9rem; }
body.store .product-card .btn.rounded-circle { box-shadow: 0 4px 12px rgba(27,29,32,.15); border: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.st-footer { background: var(--st-ink); color: #b5b9bf; margin-top: 4rem; padding: 3.5rem 0 1.5rem; }
.st-footer a { color: #b5b9bf; }
.st-footer a:hover { color: #fff; }
.st-footer .st-brand { display: flex; align-items: center; gap: .65rem; color: #fff; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin-bottom: .75rem; }
.st-footer .st-brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--st-brand); display: grid; place-items: center; color: #fff; font-weight: 800; }
.st-footer p { margin: 0; line-height: 1.65; max-width: 34ch; font-size: .92rem; }
.st-footer h5 { color: #fff !important; font-size: .98rem; font-weight: 700; margin-bottom: .9rem; letter-spacing: 0; }
.st-footer ul { list-style: none; margin: 0; padding: 0; }
.st-footer li { margin-bottom: .55rem; font-size: .92rem; }
.st-footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8b9098;
}
.st-footer-bottom a { color: #8b9098; text-decoration: underline; }

/* bar maintenance untuk admin */
.st-maint-bar {
  background: var(--st-brand); color: #fff; text-align: center; font-size: .86rem; font-weight: 600; padding: .5rem 1rem;
}
.st-maint-bar a { color: #fff; text-decoration: underline; margin-left: .5rem; }

/* ==========================================================================
   Login / daftar (layout guest)
   ========================================================================== */
body.store .auth-card { border: 1px solid var(--st-line) !important; border-radius: 22px !important; background: #fff; }
body.store .auth-card .bg-white { background: #fff !important; }
body.store .auth-tabs .nav-link { background: #f2f1ee; color: var(--st-muted); border-radius: 10px; }
body.store .auth-tabs .nav-link.active { background: var(--st-ink); color: #fff; }

@media (max-width: 991.98px) {
  body.store .site-header { top: 0; }
  body.store .hero-welcome { min-height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  body.store .explore-card, body.store .product-card .card-img img.product-image, body.store #navbar .nav-item a.nav-link::after { transition: none; }
}
