:root {
  --green: #196534;
  --green-dark: #114a26;
  --green-light: #e6f2eb;
  --red: #ee1e2d;
  --gold: #f4b400;
  --ink: #1d2420;
  --muted: #5f6b64;
  --line: #e3e7e4;
  --bg: #f7f6f2;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.bn { font-family: "Hind Siliguri", sans-serif; }

/* Banner + header */
.proto-banner {
  background: var(--gold); color: #3a2c00; text-align: center;
  font-size: 13px; font-weight: 600; padding: 6px 16px;
}
.site-header { background: #fff; color: var(--ink); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.header-row { display: flex; align-items: center; gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.logo { display: block; flex-shrink: 0; }
.logo img { display: block; height: 64px; width: auto; }
.search { flex: 1; display: flex; background: #fff; border: 2px solid var(--green); border-radius: 999px; overflow: hidden; min-width: 0; }
.search input { flex: 1; border: 0; padding: 11px 16px; font-size: 15px; min-width: 0; outline: none; }
.search button { border: 0; background: transparent; padding: 0 14px; font-size: 16px; }
.cart-btn {
  display: flex; align-items: center; gap: 6px; background: var(--green); color: #fff;
  padding: 9px 14px; border-radius: 999px; font-weight: 600; flex-shrink: 0;
}
.cart-count { background: var(--red); border-radius: 999px; min-width: 22px; padding: 1px 6px; font-size: 13px; text-align: center; }
.cart-total { font-size: 14px; opacity: .9; }

.cat-nav { background: var(--green); color: #fff; }
.cat-nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-row::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; padding: 10px 12px; font-size: 14px; font-weight: 500; opacity: .9; border-bottom: 3px solid transparent; }
.cat-nav a:hover, .cat-nav a.active { opacity: 1; border-bottom-color: var(--red); }

main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 28px;
}
.hero-main {
  background: linear-gradient(120deg, #114a26 0%, var(--green) 55%, #1d7a40 100%);
  color: #fff; border-radius: var(--radius); padding: 32px; position: relative; overflow: hidden;
}
/* Red sun (Bangladesh) with the logo's kangaroo and the Southern Cross (Australia) */
.hero-main::after {
  content: ""; position: absolute; top: -6%; right: -3%; bottom: -16%; width: 54%;
  background: url("assets/hero-art.png") right bottom / contain no-repeat;
}
.hero-main > * { position: relative; z-index: 1; max-width: 56%; }
.hero-main h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.1; letter-spacing: -.5px; }
.hero-main p { margin: 0 0 20px; opacity: .92; }
.hero-side { display: grid; gap: 16px; }
.promo { border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.promo h3 { margin: 0 0 4px; font-size: 18px; }
.promo p { margin: 0; font-size: 14px; color: var(--muted); }
.promo.gold { background: #fff4d1; }
.promo.pink { background: #fde4e7; }

.btn {
  display: inline-block; border: 0; border-radius: 999px; padding: 11px 22px;
  font-weight: 700; font-size: 15px; transition: transform .05s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-light { background: #fff; color: var(--green); }
.btn-outline { background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.section-head a { color: var(--green); font-weight: 600; font-size: 14px; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.cat-tile {
  border-radius: var(--radius); padding: 16px 10px; text-align: center; box-shadow: var(--shadow);
  transition: transform .15s;
}
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile .ico { font-size: 34px; display: block; margin-bottom: 6px; }
.cat-tile .nm { font-weight: 600; font-size: 14px; display: block; }
.cat-tile .bn { font-size: 13px; color: var(--muted); }

/* Product grid + cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.card-img {
  aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 60px;
}
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
}
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.price { font-size: 22px; font-weight: 800; }
.price .was { font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: line-through; margin-left: 6px; }
.price.special { color: var(--red); }
.card-name { font-weight: 600; font-size: 15px; margin: 4px 0 2px; }
.card-name:hover { text-decoration: underline; }
.card-size { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.card-actions { margin-top: auto; }

.qty {
  display: flex; align-items: center; justify-content: space-between;
  border: 2px solid var(--green); border-radius: 999px; overflow: hidden;
}
.qty button { background: var(--green); color: #fff; border: 0; width: 38px; height: 38px; font-size: 18px; font-weight: 700; }
.qty span { font-weight: 700; }
.qty.small button { width: 30px; height: 30px; font-size: 16px; }
.qty.small { min-width: 104px; }

/* Category page */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--green); }
.page-title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 28px; letter-spacing: -.5px; }
.page-title .bn { color: var(--muted); font-size: 18px; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select, .toolbar label { font-size: 14px; }
.toolbar select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.sidebar { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 130px; }
.sidebar h4 { margin: 4px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.sidebar a { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 8px; font-size: 14px; }
.sidebar a:hover { background: var(--green-light); }
.sidebar a.active { background: var(--green-light); color: var(--green); font-weight: 700; }
.sidebar a small { color: var(--muted); }

/* Product detail */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.pdp-img { border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; font-size: 140px; }
.pdp h1 { margin: 0 0 6px; font-size: 28px; }
.pdp .size { color: var(--muted); margin-bottom: 16px; }
.pdp .price { font-size: 32px; margin-bottom: 4px; }
.unit { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.pdp-actions { display: flex; gap: 12px; align-items: center; max-width: 340px; }
.pdp-actions .qty { flex: 1; }
.pdp-info { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
.pdp-info li { margin-bottom: 6px; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.thumb { width: 64px; height: 64px; border-radius: 10px; display: grid; place-items: center; font-size: 32px; }
.cart-line .nm { font-weight: 600; }
.cart-line .sz { color: var(--muted); font-size: 13px; }
.line-total { font-weight: 700; min-width: 70px; text-align: right; }
.remove { background: none; border: 0; color: var(--red); font-size: 13px; padding: 0; margin-top: 4px; }
.summary-row { display: flex; justify-content: space-between; margin: 8px 0; }
.summary-row.total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.note { font-size: 13px; color: var(--muted); }
.progress { height: 8px; background: var(--green-light); border-radius: 999px; overflow: hidden; margin: 6px 0 14px; }
.progress div { height: 100%; background: var(--green); }
.empty { text-align: center; padding: 60px 20px; }
.empty .big { font-size: 64px; }

/* Checkout */
.steps { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.steps span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.steps span.on { background: var(--green); color: #fff; border-color: var(--green); }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 700; font-size: 17px; margin-bottom: 10px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { border: 2px solid var(--line); border-radius: 10px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--green); background: var(--green-light); }
.choice input { margin-top: 3px; accent-color: var(--green); }
.choice small { display: block; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfd6d1; border-radius: 8px; font: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); border-color: transparent; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.slot { border: 2px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; font-size: 13px; cursor: pointer; background: #fff; }
.slot:has(input:checked) { border-color: var(--green); background: var(--green-light); font-weight: 700; }
.slot input { display: none; }
.slot.full { opacity: .4; pointer-events: none; text-decoration: line-through; }
.demo-pay { background: #fff8e1; border: 1px dashed #d4a300; border-radius: 10px; padding: 12px; font-size: 14px; }

.confirm { text-align: center; max-width: 560px; margin: 20px auto; }
.confirm .tick { width: 80px; height: 80px; border-radius: 50%; background: var(--green); color: #fff; font-size: 44px; display: grid; place-items: center; margin: 0 auto 16px; }
.confirm h1 { margin: 0 0 8px; }
.order-no { font-size: 20px; font-weight: 800; color: var(--green); }

/* Services strip */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.service { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.service .ico { font-size: 30px; }
.service b { display: block; }
.service span { font-size: 13px; color: var(--muted); }

/* Footer + toast */
.site-footer { background: #13231a; color: #cfd8d2; padding: 28px 0 16px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.site-footer h4 { color: #fff; margin: 0 0 8px; }
.site-footer p { margin: 2px 0; }
.fine { font-size: 12px; opacity: .7; margin-top: 18px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 14px; text-align: center;
  transition: transform .25s; z-index: 50; max-width: calc(100% - 32px);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-row { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .logo { margin-right: auto; }
  .logo img { height: 46px; }
  .cart-label, .cart-total { display: none; }
  .hero-main { padding: 150px 24px 24px; }
  .hero-main::after { left: 0; width: auto; height: 150px; bottom: auto; background-position: center top; }
  .hero-main > * { max-width: 100%; }
  .hero-main h1 { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-img { font-size: 44px; }
  .price { font-size: 18px; }
  .card-name { font-size: 14px; }
  .form-grid, .choice-row { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 52px 1fr auto; }
  .cart-line .line-total { grid-column: 2 / 4; text-align: left; }
  .thumb { width: 52px; height: 52px; font-size: 26px; }
  .sidebar { position: static; }
}

/* ---------- Two shop views ---------- */
.view-toggle {
  display: flex; background: #eef3ef; border-radius: 999px; padding: 3px; flex-shrink: 0;
  border: 1px solid var(--line);
}
.view-toggle button {
  border: 0; background: transparent; border-radius: 999px; padding: 7px 14px;
  font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap;
}
.view-toggle button[aria-pressed="true"] { background: var(--green); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.view-bd .view-toggle button[aria-pressed="true"] { background: var(--red); }
.view-toggle .bn { font-size: 15px; }

.switch-hint {
  display: block; width: 100%; text-align: left; border: 1px dashed #b9c7bd; background: #fff;
  border-radius: var(--radius); padding: 12px 16px; margin: -12px 0 8px; font-weight: 600; color: var(--green);
}
.view-bd .switch-hint { color: var(--muted); }

.kicker { margin: 0 0 6px; opacity: .9; font-weight: 600; }
.section-head h2 small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.page-title .sub { color: var(--muted); font-size: 16px; }
.intro { margin: -6px 0 16px; color: var(--muted); }
.cat-tile .sub { display: block; font-size: 12px; color: var(--muted); }
.cat-tile .nm.bn { font-size: 16px; }

/* Product photos */
.card-img { background: #fff; aspect-ratio: 1; border-bottom: 1px solid var(--line); }
.pimg { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-img .pimg { padding: 10px; }
.pimg.emoji { display: grid; place-items: center; font-size: 64px; }
.card-bn { font-size: 14px; color: var(--muted); margin-bottom: 2px; }
.pdp-img { background: #fff; border: 1px solid var(--line); overflow: hidden; font-size: inherit; }
.pdp-img .pimg.emoji { font-size: 140px; }
.pdp-bn { font-size: 20px; color: var(--muted); margin: -2px 0 6px; }
.thumb { background: #fff; border: 1px solid var(--line); overflow: hidden; }
.thumb .pimg.emoji { font-size: 30px; }

/* Discover block in the Everyday view */
.discover {
  margin-top: 32px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: center;
  border-left: 6px solid var(--red);
}
.discover h2 { margin: 0 0 6px; }
.discover p { margin: 0; color: var(--muted); }
.cat-grid.small { grid-template-columns: repeat(4, 1fr); }

/* Bangladeshi view theme: red-and-green, Bengali type first */
.view-bd .hero-main h1 { font-family: "Hind Siliguri", Inter, sans-serif; font-size: 40px; }
.view-bd .cat-nav a.bn { font-size: 15px; }
.view-bd .section-head h2.bn { font-family: "Hind Siliguri", Inter, sans-serif; font-size: 24px; }
.view-bd .cat-nav a:hover, .view-bd .cat-nav a.active { border-bottom-color: #ffd76a; }

@media (max-width: 900px) {
  .discover { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .view-toggle { order: 4; flex-basis: 100%; }
  .view-toggle button { flex: 1; padding: 7px 10px; }
  .cat-grid.small { grid-template-columns: repeat(2, 1fr); }
  .view-bd .hero-main h1 { font-size: 30px; }
  .card-img .pimg { padding: 6px; }
}

/* Price ranges and per-kg pricing */
.price.range { font-size: 19px; }
.price .per { font-size: 14px; font-weight: 600; color: var(--muted); }
.range-note { font-size: 12px; color: var(--muted); margin-top: -2px; }
.pdp .price.range { font-size: 28px; }
.staff-link { color: #cfd8d2; text-decoration: underline; opacity: .8; }
@media (max-width: 640px) { .price.range { font-size: 15px; } }
