/* ============ HUSS E-Commerce: Light Theme UI Kit ============ */
:root{
  --bg: #f7fffb;
  --surface: #ffffff;
  --surface-2: #f2fbf6;
  --border: rgba(10, 35, 25, .10);

  --text: rgba(8, 23, 18, .92);
  --muted: rgba(8, 23, 18, .62);
  --muted-2: rgba(8, 23, 18, .45);

  --primary: #22c55e;
  --primary-2: #16a34a;
  --teal: #14b8a6;
  --blue: #2563eb;

  --danger: #ef4444;
  --warning: #f59e0b;
  --ok: #10b981;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 48px rgba(2, 18, 12, .10);
  --shadow-sm: 0 10px 24px rgba(2, 18, 12, .08);

  --container: 1160px;
  --gap: 18px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    linear-gradient(180deg,
      rgba(34,197,94,.12) 0%,
      rgba(255,255,255,0) 28%,
      rgba(20,184,166,.08) 55%,
      rgba(37,99,235,.08) 72%,
      rgba(255,255,255,0) 100%
    ),
    radial-gradient(1100px 520px at 18% -2%, rgba(34,197,94,.18), transparent 55%),
    radial-gradient(900px 520px at 88% 0%, rgba(37,99,235,.14), transparent 58%),
    radial-gradient(760px 460px at 65% 95%, rgba(20,184,166,.12), transparent 60%),
    var(--bg);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button,input,select,textarea{ font-family:inherit; }
small{ color: var(--muted); }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.grid{ display:grid; gap: var(--gap); }

/* ============ Cards ============ */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, box-shadow .20s ease, border-color .20s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(2,18,12,.12);
  border-color: rgba(34,197,94,.18);
}
.card-body{ padding: 18px; }
.card-title{ font-size: 18px; margin: 0 0 8px; }
.card-subtitle{ margin: 0; color: var(--muted); font-size: 13px; }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,35,25,.10);
  background: rgba(34,197,94,.06);
  color: rgba(8,23,18,.74);
  font-size: 13px;
  white-space: nowrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10,35,25,.10);
  font-size: 12px;
  color: rgba(8,23,18,.70);
  background: rgba(8,23,18,.03);
}
.badge.ok{ color: rgba(16,185,129,.95); border-color: rgba(16,185,129,.30); background: rgba(16,185,129,.12); }
.badge.warn{ color: rgba(245,158,11,.95); border-color: rgba(245,158,11,.32); background: rgba(245,158,11,.12); }
.badge.danger{ color: rgba(239,68,68,.95); border-color: rgba(239,68,68,.30); background: rgba(239,68,68,.10); }

/* ============ Buttons ============ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(10,35,25,.12);
  background: rgba(255,255,255,.80);
  color: var(--text);
  cursor:pointer;
  user-select:none;
  box-shadow: 0 10px 22px rgba(2,18,12,.06);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, filter .18s ease;
}

.btn-sm{
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(2,18,12,.05);
}

/* Anchor buttons should not change text color on hover (some UA styles may interfere) */
a.btn:hover{ color: inherit; }
.btn:hover:not(.btn-tech):not(.btn-primary){
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(2,18,12,.12);
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.22);
  /* Ensure text never turns white when background becomes light */
  color: var(--text) !important;
}
.btn:active{
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(2,18,12,.08);
}
.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-color: rgba(22,163,74,.22);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(34,197,94,.20);
}
.btn-primary:hover{
  filter: brightness(1.02);
  box-shadow: 0 20px 44px rgba(34,197,94,.26);
}
.btn-ghost{ background: rgba(255,255,255,.75); }
.btn-ghost:hover{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.18);
}
.btn-danger{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.28);
  color: rgba(239,68,68,.95);
}

/* ============ Inputs ============ */
.input, .select, .textarea{
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(10,35,25,.12);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus{
  border-color: rgba(34,197,94,.45);
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.select{ appearance: none; }
.textarea{ min-height: 92px; resize: vertical; }

.form-row{ display:grid; gap: 12px; }
.form-2{ grid-template-columns: 1fr 1fr; }
.form-3{ grid-template-columns: 1fr 1fr 1fr; }
.label{ font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.help{ font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.hr{ height:1px; background: rgba(10,35,25,.10); margin: 14px 0; }

/* ============ Header / Navbar (as requested) ============ */
.header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  padding: 14px 0;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(10,35,25,.10);
  box-shadow: 0 18px 45px rgba(2,18,12,.10);
  backdrop-filter: blur(14px);
}

/* Brand (keep HTML) */
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .2px;
  white-space: nowrap;
}
.brand-mark{
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 12px 26px rgba(34,197,94,.18);
}

/* Nav links as pills */
.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
}
.nav a{
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform .12s ease, background .18s ease, border-color .18s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.18);
  transform: translateY(-1px);
}
.nav .active{
  color: var(--text);
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.26);
}

/* Header actions: search + cart + login + language */
.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
  justify-content:flex-end;
}

/* Search pill like screenshot */
.search{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(10,35,25,.12);
  background: rgba(255,255,255,.92);
  min-width: 360px;
}
.search input{
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
}
.kbd{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid rgba(10,35,25,.12);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8,23,18,.03);
}

/* Cart icon button */
.cart-btn{
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 16px !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-ic{ font-size: 18px; line-height: 1; }
.cart-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(34,197,94,.28);
  border: 2px solid rgba(255,255,255,.95);
}

/* Language dropdown */
.lang-dd{ position:relative; }
.lang-trigger{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  height: 44px;
  border-radius: 16px;
  border:1px solid rgba(10,35,25,.12);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-weight:900;
}
.lang-trigger .caret{ opacity:.7; font-weight: 900; }
.lang-menu{
  position:absolute; top: calc(100% + 10px); right:0;
  min-width: 170px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(10,35,25,.12);
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 45px rgba(2,18,12,.12);
  display:none;
  z-index: 999;
}
.lang-menu a{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:12px;
  font-weight:700;
  color: rgba(8,23,18,.78);
}
.lang-menu a:hover{ background: rgba(34,197,94,.08); color: rgba(8,23,18,.92); }
.lang-dd.open .lang-menu{ display:block; }

/* ============ Hero / Sections ============ */
.hero{ padding: 34px 0 18px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: var(--gap);
  align-items: stretch;
}
.hero h1{
  margin: 0 0 10px;
  font-size: 36px;
  letter-spacing: -0.4px;
  line-height: 1.1;
}
.hero p{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 56ch;
}
.hero-cta{ display:flex; gap: 10px; flex-wrap: wrap; }

.section{ padding: 14px 0 26px; position: relative; isolation: isolate; }
.section.mint{
  position: relative;
  background: linear-gradient(180deg,
    rgba(34,197,94,.10) 0%,
    rgba(20,184,166,.06) 35%,
    rgba(37,99,235,.05) 70%,
    rgba(255,255,255,0) 100%
  );
  border-top: 0;
  border-bottom: 0;
}
.section.mint::before{
  content:"";
  position:absolute;
  inset:-40px 0 -40px 0;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.55) 18%,
    rgba(255,255,255,.55) 82%,
    rgba(255,255,255,0) 100%
  );
  pointer-events:none;
  z-index:-1;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.section-title{ margin: 0; font-size: 18px; }
.section-desc{ margin: 0; color: var(--muted); font-size: 13px; }

/* ============ Product Cards ============ */
.products-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.product-card{ overflow:hidden; display:flex; flex-direction:column; }



.product-body{ padding: 14px; display:flex; flex-direction:column; gap: 10px; }
.product-name{ margin:0; font-size: 14px; line-height:1.25; }
.product-meta{ display:flex; gap: 8px; flex-wrap: wrap; }
.price{ font-weight: 800; letter-spacing: .2px; }
.price small{ font-weight: 600; color: var(--muted); }
.product-actions{ display:flex; gap: 10px; margin-top: 2px; align-items: stretch; }
.product-actions .btn{ flex:1; height: 38px; border-radius: 14px; font-weight: 900; font-size: 13px; padding: 8px 12px; }

/* ============ Pages / Listing ============ */
.page{ padding: 18px 0 30px; }
.breadcrumb{
  display:flex;
  gap: 8px;
  align-items:center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ color: var(--text); }

.listing{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: var(--gap);
  align-items:start;
}
.filters .card-body{ padding: 16px; }
.filters h3{ margin: 0 0 10px; font-size: 15px; }
.filters .group{ margin-bottom: 14px; }
.filters .group:last-child{ margin-bottom: 0; }
.check{
  display:flex;
  align-items:center;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}
.check input{ width: 16px; height:16px; }
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.toolbar-left{ display:flex; gap: 10px; flex-wrap: wrap; }
.toolbar-right{ display:flex; gap: 10px; align-items:center; }

/* ============ Product detail ============ */
.detail{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--gap);
}
.gallery{ overflow:hidden; }
.gallery-main{
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(10,35,25,.10);
  margin: 14px;
  width: 95%!important;
  height: auto;
}
.thumbs{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 12px;
}
.thumb{
  height: 70px;
  border-radius: 12px;
  border: 1px solid rgba(10,35,25,.10);
  background-color: rgba(8,23,18,.02);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 70px;
}
.detail h2{ margin:0 0 8px; }
.detail p{ margin: 0 0 12px; color: var(--muted); }
.qty-row{ display:flex; align-items:center; gap: 10px; }
.qty{
  display:flex;
  border: 1px solid rgba(10,35,25,.12);
  border-radius: 12px;
  overflow:hidden;
  background: #fff;
}
.qty button{
  width: 40px;
  background: rgba(8,23,18,.03);
  border: 0;
  color: var(--text);
  cursor:pointer;
}
.qty input{
  width: 52px;
  text-align:center;
  border: 0;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

/* ============ Tables (cart / orders) ============ */
.table{
  width: 100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(10,35,25,.10);
  background: #ffffff;
}
.table th, .table td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(10,35,25,.08);
  text-align:left;
  vertical-align: top;
}
.table th{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  background: rgba(34,197,94,.06);
}
.table td{ font-size: 13px; color: var(--text); }
.table tr:last-child td{ border-bottom:0; }

.row-actions{ display:flex; gap: 8px; flex-wrap: wrap; }

.summary{ position: sticky; top: 110px; }
.summary .line{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}
.summary .line strong{ color: var(--text); }
.summary .total{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(10,35,25,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.summary .total span{ color: var(--muted); }
.summary .total strong{ font-size: 18px; }

/* ============ Footer ============ */
.footer{
  padding: 24px 0 30px;
  border-top: 1px solid rgba(10,35,25,.10);
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.65);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: var(--gap);
}
.footer a{ color: var(--muted); }
.footer a:hover{ color: var(--text); }

/* Store badges (App Store / Play Store) */
.store-badges{ display:flex; gap: 12px; flex-wrap: wrap; align-items:center; margin-top: 12px; }
.store-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(10,35,25,.10);
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 24px rgba(2,18,12,.06);
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease;
}
.store-badge:hover{ transform: translateY(-1px); box-shadow: 0 16px 36px rgba(2,18,12,.10); background: rgba(255,255,255,.92); }
.store-badge img{ height: 34px; width:auto; }

/* Profile page layout */
.profile-layout{ display:grid; grid-template-columns: 1.1fr .9fr; gap: var(--gap); margin-top: 18px; }
.profile-form-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 1020px){
  .profile-layout{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .profile-form-grid{ grid-template-columns: 1fr; }
}

/* ============ Responsive ============ */
@media (max-width: 1020px){
  .products-grid{ grid-template-columns: repeat(3, 1fr); }
  .listing{ grid-template-columns: 1fr; }
  .search{ min-width: 240px; }
  .detail{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .products-grid{ grid-template-columns: repeat(2, 1fr); }
  .header-inner{ flex-wrap: wrap; }
  .nav{ flex-wrap: wrap; justify-content: center; }
  .search{ width: 100%; min-width: unset; }
  .footer-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 420px){
  .products-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size: 30px; }
}

/* ===== HUSS NAVBAR FIX v2 ===== */
.brand{
  white-space: normal !important;
}
.brand > div{
  display:flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand > div small{
  display:block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--muted);
}
/* Ensure primary buttons keep green bg on hover (avoid base .btn:hover overriding) */
.btn-primary:hover{
  color:#fff !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  border-color: rgba(22,163,74,.22) !important;
  filter: brightness(1.02);
}
/* If you have .btn-primary inside product cards, keep readable */
.product-actions .btn-primary:hover{
  color:#fff !important;
}
/* ===== END HUSS NAVBAR FIX v2 ===== */

/* ===== HUSS BLEND FIX v4 ===== */
/* ===== HUSS BLEND FIX v4 ===== */

/* Goal: remove "banding/patah" by adding a blurred gradient overlay that spans above & below sections */
.section{
  position: relative;
  isolation: isolate;
  overflow: visible;
}

/* Soft glow layer behind the section content */
.section::before{
  content: "";
  position: absolute;
  left: -8vw;
  right: -8vw;
  top: -70px;
  height: 180px;
  z-index: -1;
  background:
    radial-gradient(520px 200px at 18% 40%, rgba(34,197,94,.22), transparent 70%),
    radial-gradient(560px 220px at 50% 30%, rgba(20,184,166,.16), transparent 72%),
    radial-gradient(560px 220px at 82% 45%, rgba(37,99,235,.16), transparent 72%);
  filter: blur(28px);
  opacity: .85;
  pointer-events: none;
}

/* Extra fade layer to blend the transition edge */
.section::after{
  content: "";
  position: absolute;
  left: -10vw;
  right: -10vw;
  top: -32px;
  height: 110px;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.55) 38%,
    rgba(255,255,255,0) 100%
  );
  filter: blur(10px);
  opacity: .55;
  pointer-events: none;
}

/* If section has its own background, keep it subtle (do NOT create a hard band) */
.section.mint{
  background: transparent !important;
  border: 0 !important;
}

/* Put the mint feeling on the inside container instead, with blur */
.section.mint > .container{
  position: relative;
}
.section.mint > .container::before{
  content: "";
  position: absolute;
  left: -8vw;
  right: -8vw;
  top: -28px;
  height: 120px;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(34,197,94,.10) 0%,
    rgba(20,184,166,.08) 45%,
    rgba(37,99,235,.08) 100%
  );
  filter: blur(22px);
  opacity: .7;
  pointer-events: none;
}

/* ===== END HUSS BLEND FIX v4 ===== */
/* ===== END HUSS BLEND FIX v4 ===== */



/* ============ HUSS E-Commerce v5: Tech Commerce Layer ============ */
:root{
  --huss-bg: #f7fafc;
  --huss-card: #ffffff;
  --huss-text: rgba(15,23,42,.94);
  --huss-muted: rgba(15,23,42,.60);
  --huss-primary: #14b8a6;     /* teal */
  --huss-primary-2: #0ea5e9;   /* cyan/blue */
  --huss-border: rgba(15,23,42,.10);
  --huss-shadow: 0 10px 30px rgba(2,6,23,.08);
  --huss-shadow-2: 0 18px 50px rgba(2,6,23,.12);
}

body.safe-bottom{
  background: radial-gradient(1200px 600px at 20% 0%, rgba(14,165,233,.10), transparent 55%),
              radial-gradient(900px 500px at 90% 10%, rgba(20,184,166,.10), transparent 55%),
              var(--huss-bg);
  color: var(--huss-text);
  /* Space for mobile bottom nav + footer visibility (incl. iOS safe-area) */
  padding-bottom: calc(180px + env(safe-area-inset-bottom, 0px));
}

/* Extra safety so footer never looks "ketutup" by the bottom nav (desktop + mobile) */
body.safe-bottom .footer{
  padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px));
}

.tech-surface{
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.95));
  border: 1px solid var(--huss-border);
  box-shadow: var(--huss-shadow);
  border-radius: 18px;
}
.tech-glow{ position: relative; overflow: hidden; }
.tech-glow::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(500px 220px at 10% 10%, rgba(14,165,233,.18), transparent 55%),
              radial-gradient(520px 240px at 90% 0%, rgba(20,184,166,.18), transparent 60%);
  pointer-events:none;
  filter: blur(12px);
  opacity:.9;
}

.nav-tech{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247,250,252,.75);
  border-bottom: 1px solid var(--huss-border);
}

.search-pill{
  border-radius: 999px;
  border: 1px solid var(--huss-border);
  background: rgba(255,255,255,.85);
  padding: .55rem .75rem;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}
.search-pill input{ border:0; outline:0; background:transparent; }

.btn-tech{
  /* IMPORTANT: prevent base .btn:hover from overriding background */
  background: linear-gradient(135deg, var(--huss-primary), var(--huss-primary-2)) !important;
  border: 1px solid rgba(20,184,166,.30) !important;
  color: #fff !important;
  box-shadow: 0 14px 26px rgba(14,165,233,.16);
}
.btn-tech:hover{
  background: linear-gradient(135deg, var(--huss-primary), var(--huss-primary-2)) !important;
  border-color: rgba(14,165,233,.28) !important;
  color: #fff !important;
  filter: brightness(1.03);
  box-shadow: 0 20px 44px rgba(14,165,233,.22);
}

.btn-ghost{
  border: 1px solid var(--huss-border) !important;
  background: rgba(255,255,255,.75) !important;
  color: var(--huss-text) !important;
}
.btn-ghost:hover{
  background: rgba(255,255,255,.95) !important;
  border-color: rgba(14,165,233,.22) !important;
}

/* Chips */
.chips-row{ padding-bottom: 10px; }
.chips-wrap{
  overflow-x:auto;
  white-space:nowrap;
  scrollbar-width:none;
  padding: 15px 0 2px 0;
}
.chips-wrap::-webkit-scrollbar{ display:none; }
.chip{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.5rem .85rem;
  margin-right: 8px;
  border-radius: 999px;
  border: 1px solid var(--huss-border);
  background: rgba(255,255,255,.70);
  font-weight: 700;
  color: var(--huss-text);
  text-decoration:none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.chip:hover{ transform: translateY(-1px); background: rgba(255,255,255,.95); border-color: rgba(14,165,233,.20); }
.chip.active{ background: rgba(20,184,166,.12); border-color: rgba(20,184,166,.32); }

/* Mobile helpers */
.hide-mobile{ display: inline-flex; }
.show-mobile{ display: none; }
@media (max-width: 860px){
  .hide-mobile{ display:none !important; }
  .show-mobile{ display:block !important; }
  /* Keep mobile bottom navigation horizontal.
     The .show-mobile helper sets display:block which would override flex. */
  .mobile-nav.show-mobile{ display:flex !important; }
  .nav-desktop{ display:none !important; }
  .header-inner{ gap: 10px; }
  .chips-row{ display:none; } /* chips stay on products page content if needed */
}

/* Hero v5 */
.hero-v5{ padding: 18px 0 10px 0; }
.hero-surface{ padding: 22px; }
.hero-v5-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  align-items: stretch;
}
.hero-v5-left h1{
  margin: 12px 0 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
}
.hero-v5-left p{
  color: var(--huss-muted);
  font-size: 1.04rem;
  margin: 0 0 16px;
}
.hero-badges{ display:flex; flex-wrap:wrap; gap:8px; }
.hero-kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi{
  border: 1px solid var(--huss-border);
  background: rgba(255,255,255,.75);
  border-radius: 14px;
  padding: 12px;
}
.kpi-title{ color: var(--huss-muted); font-weight: 700; font-size: .85rem; }
.kpi-value{ font-weight: 900; font-size: 1.05rem; margin-top: 2px; }
.kpi-sub{ color: var(--huss-muted); font-size: .85rem; margin-top: 2px; }

.hero-v5-right{ position: relative; }
.hero-mock{
  height: 100%;
  display:grid;
  gap: 12px;
}
.mock-card{
  border: 1px solid var(--huss-border);
  background: rgba(255,255,255,.92);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--huss-shadow);
}
.mock-title{ font-weight: 900; font-size: 1.05rem; }
.mock-sub{ color: var(--huss-muted); font-weight: 700; font-size: .9rem; margin-top:4px; }
.mock-price{ margin: 12px 0 12px; font-weight: 900; font-size: 1.25rem; }
.w-100{ width:100%; }

.mock-mini{
  border: 1px solid var(--huss-border);
  background: rgba(255,255,255,.75);
  border-radius: 18px;
  padding: 14px;
}
.mini-row{ display:flex; gap: 10px; padding: 8px 0; }
.mini-ic{ width: 34px; height: 34px; display:flex; align-items:center; justify-content:center;
  background: rgba(14,165,233,.10); border: 1px solid rgba(14,165,233,.18);
  border-radius: 12px;
}
.mini-title{ font-weight: 900; }
.mini-sub{ color: var(--huss-muted); font-weight: 700; font-size: .85rem; margin-top:2px; }
.hero-orb{
  position:absolute;
  width: 240px; height: 240px;
  right: -60px; bottom: -70px;
  background: radial-gradient(circle at 30% 30%, rgba(14,165,233,.35), transparent 55%),
              radial-gradient(circle at 70% 20%, rgba(20,184,166,.30), transparent 60%);
  filter: blur(12px);
  opacity: .8;
  pointer-events:none;
}

@media (max-width: 980px){
  .hero-v5-grid{ grid-template-columns: 1fr; }
  .hero-orb{ right: -120px; bottom: -120px; }
  .hero-kpis{ grid-template-columns: 1fr; }
}

/* Product card upgrade (keep existing markup) */
.product-card{
  border: 1px solid var(--huss-border) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.92) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--huss-shadow-2);
  border-color: rgba(14,165,233,.22) !important;
}

.product-media{
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  margin: 14px 14px 0 14px;
  overflow: hidden;

  /* fallback tech background */
  background:
    radial-gradient(220px 120px at 25% 20%, rgba(34,197,94,.16), transparent 60%),
    radial-gradient(240px 140px at 80% 10%, rgba(37,99,235,.12), transparent 60%),
    linear-gradient(180deg, rgba(2,6,23,.04), rgba(2,6,23,0)),
    rgba(8,23,18,.02);

  border: 1px solid rgba(10,35,25,.10);
  box-shadow: 0 10px 30px rgba(2,6,23,.06);

  /* image behavior (kalau kamu set background-image di inline) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-actions .btn,
.product-actions .btn-primary{
  border-radius: 14px;
}
.product-actions .btn-primary{
  color: #fff !important;
}
/* Only the non-primary buttons become white on hover; keep text readable */
.product-actions .btn:not(.btn-primary):hover{
  background: rgba(255,255,255,.95) !important;
  border-color: rgba(14,165,233,.22) !important;
  color: var(--huss-text) !important;
}

/* Mobile bottom nav */
.mobile-nav{
  position: fixed;
  left: 10px; right: 10px; bottom: 10px;
  display:flex;
  justify-content: space-around;
  gap: 6px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border: 1px solid var(--huss-border);
  border-radius: 18px;
  padding: 10px 8px;
  box-shadow: var(--huss-shadow);
}
.mobile-nav .mitem{
  flex: 1;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 3px;
  text-decoration:none;
  color: var(--huss-muted);
  font-weight: 800;
  font-size: .78rem;
  padding: 8px 6px;
  border-radius: 14px;
}
.mobile-nav .mitem:hover{
  background: rgba(14,165,233,.08);
  color: var(--huss-text);
}
.mobile-nav .mitem.active{
  background: rgba(20,184,166,.12);
  color: var(--huss-text);
  border: 1px solid rgba(20,184,166,.22);
}
.mobile-nav .mico{ font-size: 1.15rem; line-height: 1; }

/* Mobile: search + cart rapi satu baris */
@media (max-width: 768px){
  .header-actions{
    display:flex;
    align-items:center;
    gap:12px;
  }

  .mobile-searchbar{
    flex:1 1 auto;
    min-width:0;
  }

  .mobile-searchbar .search{
    width:100%;
    margin:0;               /* hilangkan gap bawah */
  }

  /* kecilkan tombol cart biar nggak makan tempat */
  .cart-btn{
    width:44px;
    height:44px;
    padding:0;
    display:grid;
    place-items:center;
    border-radius:14px;
    position:relative;
  }

  /* badge tetap nempel */
  .cart-badge{
    position:absolute;
    top:-6px;
    right:-6px;
  }
}

@media (max-width: 420px){
  .product-media { /* aspect-ratio tetap menang, jadi gak perlu height */
    /* kalau kamu memang mau lebih pendek di HP, bisa ganti aspect ratio */
    aspect-ratio: 4 / 3;
  }
}

.input-group{
  display:flex;
  gap:10px;
  align-items:stretch;
}

.ig-prefix{
  width: 140px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.ig-input{
  flex: 1 1 auto;
  border-radius: 12px;
}

/* kalau kamu mau terlihat menyatu seperti satu field */
.input-group.join{
  gap:0;
}
.input-group.join .ig-prefix{
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group.join .ig-input{
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* mobile */
@media (max-width: 520px){
  .ig-prefix{ width: 120px; }
}

.select-wrap{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap > select{
  padding-right: 34px; /* ruang untuk icon */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-wrap::after{
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  pointer-events: none;
}

/* khusus untuk prefix select agar pas */
.select-wrap.ig-prefix{
  width: 100px;
  flex: 0 0 auto;
}
.select-wrap.ig-prefix > select{
  width: 100%;
}

.alert{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  margin: 10px 0;
}
.alert-success{
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
}
.alert-danger{
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.25);
}

.product-actions{
  display:flex;
  gap: 12px;              /* jarak antar tombol */
  margin-top: 12px;       /* jarak dari harga ke tombol */
  padding-top: 10px;      /* opsi biar lebih lega */
  align-items: stretch;
}

/* Biar tombol proporsional */
.product-actions .btn{
  flex: 1;                /* bikin lebar tombol seimbang */
  height: 44px;           /* samakan tinggi */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;    /* sesuaikan style kamu */
  font-weight: 700;
}

/* Kalau form membuat tombol jadi “aneh”, paksa form ikut flex */
.product-actions form{
  flex: 1;
  margin: 0;
}
.product-actions form button{
  width: 100%;
}

.product-actions .btn-detail{ flex: 1; }
.product-actions form{ flex: 1.2; } /* Add sedikit lebih besar */

.product-card{
  overflow: visible; /* kalau sebelumnya hidden dan bikin mepet */
}

/* Tambah nafas untuk area dalam card */
.product-card .product-body{
  padding: 16px;           /* naikkan dari default kamu */
  padding-bottom: 18px;    /* khusus bawah biar lebih lega */
}

/* Area tombol: kasih padding kiri/kanan/bawah */
.product-actions{
  display:flex;
  gap: 12px;
  margin-top: 12px;
  padding: 10px;    /* kecil atas, tambah bawah via body */
}

/* Tombol jangan terlalu nempel ke pinggir */
.product-actions .btn,
.product-actions form{
  flex: 1;
}

.product-actions form{ margin: 0; }

.product-actions form button{
  width: 100%;
}

/* Tinggi tombol tetap rapi */
.product-actions .btn{
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
}

/* ===== FIX: Mobile bottom nav nempel bawah + no horizontal scroll ===== */

/* 1) stop "lebih dari 100%" (horizontal swipe) */
html, body{
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
*{ max-width: 100%; }

/* 2) bottom nav benar-benar mepet bawah + safe-area */
:root{
  --bottom-nav-gap: 0px;      /* 0 = mepet bawah */
  --bottom-nav-h: 76px;       /* sesuaikan tinggi nav */
}

.mobile-nav{
  left: 0px !important;
  right: 0px !important;
  bottom: 0 !important;
  /* margin: 0 !important; */
  border-radius: 12px 12px 0 0 !important;        /* kalau mau tetap rounded, lihat catatan di bawah */
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

/* 3) kasih ruang konten agar tidak ketutup navbar fixed */
body.safe-bottom{
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 16px) !important;
}

/* footer tidak perlu padding bawah segede itu */
body.safe-bottom .footer{
  padding-bottom: 30px !important;
}
