/* Oitijjo Shop storefront, v2 "khata" design
   Idea: a Bangladeshi school exercise book. Ruled paper + red margin line on section
   titles; teacher's stamp for discounts; everything else quiet. */

@font-face { font-family: "Anek Bangla"; src: url("../fonts/v2/anek-bangla-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Anek Bangla"; src: url("../fonts/v2/anek-bangla-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url("../fonts/v2/hind-siliguri-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url("../fonts/v2/hind-siliguri-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url("../fonts/v2/hind-siliguri-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Hind Siliguri"; src: url("../fonts/v2/hind-siliguri-700.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1F2937;          /* text */
  --deep: #123F3B;         /* top strip + footer */
  --ink-soft: #4B5563;
  --muted: #6B7280;
  --orange: #1E5F59;       /* buy buttons: deep green (as in the reference) */
  --orange-dark: #154A45;
  --brand: #F26922;        /* logo orange, used sparingly */
  --paper: #FFFFFF;
  --rule: #E4EBF8;         /* ruled-line blue */
  --wash: #F4F7FD;         /* image wells, page tint */
  --margin-red: #D9403A;   /* khata margin line + discounts only */
  --green: #1E8E5A;
  --radius: 8px;
  --display: "Anek Bangla", "Hind Siliguri", system-ui, sans-serif;
  --body: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { font-family: var(--body); color: var(--ink); background: #F3F4F6; font-size: 16px; line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); font-weight: 800; color: var(--ink); letter-spacing: -.005em; line-height: 1.25; }
a { color: var(--ink); }
a:hover { color: var(--orange-dark); text-decoration: none; }
:focus-visible { outline: 3px solid rgba(242,105,34,.55); outline-offset: 2px; }
button, input, select, textarea { font-family: var(--body); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.bn-num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn-buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--orange); color: #fff !important; border: 0; border-radius: 10px; font-weight: 600; font-size: 16px; padding: 10px 18px; line-height: 1.3; transition: background .15s; cursor: pointer; }
.btn-buy:hover { background: var(--orange-dark); }
.btn-buy:disabled { background: #c9cbd6; cursor: not-allowed; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--ink) !important; border: 1.5px solid var(--ink); border-radius: 10px; font-weight: 600; font-size: 16px; padding: 9px 18px; line-height: 1.3; cursor: pointer; }
.btn-line:hover { background: var(--ink); color: #fff !important; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 18px; }

/* ---------- Top strip + header ---------- */
.topstrip { background: var(--deep); color: #fff; font-size: 14px; }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topstrip a { color: #fff; opacity: .92; }
.topstrip a:hover { opacity: 1; color: #fff; text-decoration: underline; }
.topstrip .links { display: flex; gap: 18px; }
.topstrip i { margin-right: 6px; }

.site-header { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 1020; }
.site-header .bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.site-header .logo img { height: 52px; width: auto; display: block; }
.searchbox { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.searchbox input { width: 100%; height: 46px; border: 1.5px solid var(--rule); background: var(--wash); border-radius: 999px; padding: 0 52px 0 20px; font-size: 16px; color: var(--ink); }
.searchbox input::placeholder { color: var(--muted); }
.searchbox input:focus { outline: 0; border-color: var(--ink); background: #fff; }
.searchbox button { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--orange); color: #fff; }
.cartbtn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--rule); color: var(--ink); font-weight: 600; }
.cartbtn:hover { border-color: var(--ink); color: var(--ink); }
.cartbtn i { font-size: 20px; }
.cartbtn .count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--orange); color: #fff; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.catbar { border-bottom: 1px solid var(--rule); background: #fff; }
.catbar ul { list-style: none; margin: 0; padding-top: 10px; padding-bottom: 10px; padding-left: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.catbar ul::-webkit-scrollbar { display: none; }
.catbar a { display: block; white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: var(--wash); color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.catbar a:hover, .catbar a.on { background: var(--orange); color: #fff; }

@media (max-width: 767.98px) {
  .topstrip .links .hide-sm { display: none; }
  .site-header .bar { grid-template-columns: 1fr auto; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .site-header .logo img { height: 40px; }
  .searchbox { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .searchbox input { height: 42px; }
  .searchbox button { width: 32px; height: 32px; }
  .cartbtn { padding: 6px 12px; }
  .cartbtn .label { display: none; }
}

/* ---------- The khata section title (the one bold element) ---------- */
.khata {
  position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 18px 16px 6px 64px; margin: 0 0 18px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, var(--rule) 27px, var(--rule) 28px);
  background-position: 0 6px;
  border-radius: 0;
}
.khata::before { content: ""; position: absolute; left: 44px; top: 0; bottom: 0; width: 2px; background: var(--margin-red); opacity: .8; }
.khata h2 { font-size: 30px; margin: 0; line-height: 1.15; }
.khata a { font-weight: 600; color: var(--orange-dark); white-space: nowrap; font-size: 16px; padding-bottom: 4px; }
.khata a:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
  .khata { padding-left: 34px; }
  .khata::before { left: 20px; }
  .khata h2 { font-size: 23px; }
  .khata a { font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero { padding: 20px 0 8px; }
.hero .frame { border-radius: 16px; overflow: hidden; background: var(--wash); }
#home_slider .carousel-item img { width: 100%; aspect-ratio: 1110 / 400; object-fit: cover; display: block; }
#home_slider .carousel-indicators { margin-bottom: 10px; }
#home_slider .carousel-indicators li { width: 22px; height: 6px; border-radius: 3px; border: 0; background: #fff; opacity: .6; }
#home_slider .carousel-indicators li.active { opacity: 1; background: var(--orange); }

.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 8px; }
.promises div { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
.promises i { font-size: 22px; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; background: var(--wash); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.promises b { display: block; font-weight: 600; line-height: 1.3; }
.promises span { font-size: 14px; color: var(--muted); line-height: 1.3; }
.promises a { color: inherit; }
@media (max-width: 767.98px) {
  .promises { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); }
  .promises div { border: 0; border-radius: 0; padding: 10px 14px; }
  .promises div + div { border-top: 1px dashed var(--rule); }
}

.shelf { padding: 26px 0 8px; }

/* ---------- Product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1199.98px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 991.98px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.card-p { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; height: 100%; }
.card-p:hover { border-color: #c6d3ee; }
.card-p .pic { display: block; background: var(--wash); }
.card-p .pic img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.card-p .body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.card-p .name { font-size: 15px; line-height: 1.45; font-weight: 500; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-p .name a { color: var(--ink); }
.card-p .prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.card-p .now { font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--ink); }
.card-p .was { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.card-p form { margin-top: auto; }
.card-p .btn-buy { width: 100%; padding: 9px 10px; }
@media (max-width: 575.98px) {
  .card-p .body { padding: 8px 9px 10px; }
  .card-p .name { font-size: 14px; }
  .card-p .now { font-size: 18px; }
  .card-p .btn-buy { font-size: 15px; padding: 8px; }
}

/* teacher's stamp for discounts */
.stamp {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 58px; height: 58px; border-radius: 50%;
  border: 2px solid var(--margin-red); color: var(--margin-red); background: rgba(255,255,255,.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transform: rotate(-12deg); font-family: var(--display); font-weight: 800; line-height: 1;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px rgba(217,64,58,.55);
}
.stamp b { font-size: 17px; }
.stamp small { font-size: 12px; font-weight: 600; margin-top: 2px; }
@media (max-width: 575.98px) { .stamp { width: 48px; height: 48px; top: 6px; left: 6px; } .stamp b { font-size: 14px; } .stamp small { font-size: 10px; } }

.owl-carousel .card-p { margin: 2px; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; }

/* ---------- Product page ---------- */
.pd { padding: 16px 0 40px; }
.pd .layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
@media (max-width: 991.98px) { .pd .layout { grid-template-columns: 1fr; gap: 20px; } }
.gallery .main { border-radius: 16px; overflow: hidden; background: var(--wash); border: 1px solid var(--rule); }
.gallery .main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gallery .thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; }
.gallery .thumbs button { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--wash); cursor: pointer; }
.gallery .thumbs button.on { border-color: var(--ink); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd h1 { font-size: 32px; margin: 0 0 12px; }
@media (max-width: 575.98px) { .pd h1 { font-size: 24px; } }
.pd .price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.pd .price-row .now { font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--ink); line-height: 1; }
.pd .price-row .was { font-size: 20px; color: var(--muted); text-decoration: line-through; }
.pd .price-row .save { color: var(--margin-red); font-weight: 600; font-size: 16px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--wash); font-size: 14px; color: var(--ink-soft); }
.chip.ok { background: #E7F5EE; color: var(--green); }
.chip.no { background: #FCEAEA; color: var(--margin-red); }

.buybox { border: 1px solid var(--rule); border-radius: 16px; padding: 18px; }
.buybox label { font-weight: 600; font-size: 15px; margin-bottom: 6px; display: block; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 10px; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: var(--wash); color: var(--ink); font-size: 16px; cursor: pointer; }
.qty button:hover { background: var(--rule); }
.qty input { width: 56px; height: 44px; border: 0; text-align: center; font-weight: 700; font-size: 18px; color: var(--ink); outline: none; }
.buybox .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
@media (max-width: 575.98px) { .buybox .actions { grid-template-columns: 1fr; } }
.buybox select { height: 44px; border-radius: 10px; border: 1.5px solid var(--rule); }

.callbox { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--wash); }
.callbox p { margin: 0 0 8px; font-weight: 600; }
.callbox .nums { display: flex; flex-wrap: wrap; gap: 8px; }
.callbox .nums a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 17px; }
.callbox .nums a i { color: var(--green); }

.ship-list { list-style: none; padding: 0; margin: 16px 0 0; }
.ship-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: 15px; }
.ship-list li:last-child { border-bottom: 0; }
.ship-list b { font-family: var(--display); font-weight: 800; white-space: nowrap; }

.pd-section { margin-top: 36px; }
.prose { max-width: 820px; font-size: 16px; line-height: 1.75; overflow-x: auto; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose table { max-width: 100%; }

/* mobile sticky buy bar */
.buybar { display: none; }
@media (max-width: 767.98px) {
  .buybar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rule); box-shadow: 0 -6px 18px rgba(17,24,39,.08); }
  .buybar .btn-buy { flex: 1; padding: 12px; font-size: 17px; }
  .buybar .call { width: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--green); color: var(--green); font-size: 20px; }
  body.has-buybar { padding-bottom: 76px; }
}

/* ---------- Checkout ---------- */
.co { padding: 24px 0 60px; }
.co h1 { font-size: 30px; margin: 0 0 4px; }
.co .lead-note { color: var(--muted); margin-bottom: 20px; }
.co .layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; align-items: start; }
@media (max-width: 991.98px) { .co .layout { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--rule); border-radius: 16px; background: #fff; }
.panel > .hd { padding: 14px 20px; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 800; font-size: 20px; }
.panel > .bd { padding: 18px 20px; }
@media (max-width: 575.98px) { .panel > .bd { padding: 14px; } .panel > .hd { padding: 12px 14px; } }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.field label .req { color: var(--margin-red); }
.field .form-control { height: 48px; border-radius: 10px; border: 1.5px solid var(--rule); font-size: 16px; color: var(--ink); }
.field .form-control:focus { border-color: var(--ink); box-shadow: none; }
.field select.form-control { height: auto; min-height: 48px; white-space: normal; }
.ratio { margin: 6px 0 0; }
.ratio .bar { height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; }
.ratio .bar div { height: 100%; width: 0; background: var(--green); transition: width .4s; }
.ratio small { color: var(--muted); }
.warn-box { background: #FFF6EF; border: 1px solid #F8D3BC; color: #8A3A10; border-radius: 12px; padding: 10px 14px; font-size: 15px; margin-bottom: 16px; }
.extra { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px dashed var(--orange); border-radius: 12px; background: #FFF9F5; cursor: pointer; margin: 4px 0 16px; }
.extra input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--orange); flex: none; }
.extra b { display: block; }
.free-ship { color: var(--green); font-weight: 600; margin-bottom: 14px; }

.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: center; }
.lines li:first-child { padding-top: 0; }
.lines img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--wash); }
.lines .nm { font-size: 15px; line-height: 1.4; margin: 0 0 6px; }
.lines .attrs { font-size: 13px; color: var(--muted); }
.lines .ctl { display: flex; align-items: center; gap: 10px; }
.mini-qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.mini-qty a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: var(--wash); font-size: 12px; }
.mini-qty span { min-width: 32px; text-align: center; font-weight: 700; }
.lines .rm { color: var(--muted); font-size: 14px; }
.lines .rm:hover { color: var(--margin-red); }
.lines .amt { font-family: var(--display); font-weight: 800; font-size: 18px; white-space: nowrap; }
.totals { margin: 14px 0 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--ink-soft); }
.totals .grand { border-top: 2px solid var(--orange); margin-top: 8px; padding-top: 10px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; }
.co .under { display: flex; justify-content: space-between; margin-top: 14px; font-size: 14px; }
.co .under a { color: var(--muted); }
.co .under a:hover { color: var(--ink); }
.empty { text-align: center; padding: 70px 16px; }
.empty i { font-size: 54px; color: var(--rule); }
.empty h1 { font-size: 26px; margin: 16px 0 8px; }
.empty p { color: var(--muted); margin-bottom: 20px; }

/* ---------- Confirmation ---------- */
.done { padding: 36px 0 60px; }
.done .card-done { max-width: 720px; margin: 0 auto; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: #E7F5EE; color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 14px; }
.done h1 { font-size: 30px; margin-bottom: 6px; }
.done .meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.done .meta div { padding: 10px 16px; border-radius: 12px; background: var(--wash); }
.done .meta small { display: block; color: var(--muted); }
.done .meta b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.done .call-note { padding: 14px 16px; border-left: 3px solid var(--green); background: #F3FAF6; border-radius: 0 12px 12px 0; margin-bottom: 20px; }

/* ---------- Track order ---------- */
.track { padding: 28px 0 60px; }
.track h1 { font-size: 30px; }
.track form { display: flex; gap: 8px; max-width: 520px; margin: 16px 0 26px; }
.track form input { flex: 1; height: 48px; border-radius: 10px; border: 1.5px solid var(--rule); padding: 0 16px; font-size: 16px; }
.track form input:focus { outline: 0; border-color: var(--ink); }
.order-card { border: 1px solid var(--rule); border-radius: 16px; margin-bottom: 18px; overflow: hidden; }
.order-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: var(--wash); flex-wrap: wrap; }
.order-card .top b { font-family: var(--display); font-weight: 800; font-size: 18px; }
.order-card .inner { padding: 16px 18px; }
.state { padding: 3px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: #FFF3E0; color: #9A5B00; }
.state.ship { background: #E8EEFC; color: var(--ink); }
.state.ok { background: #E7F5EE; color: var(--green); }
.state.no { background: #FCEAEA; color: var(--margin-red); }
.steps { display: flex; list-style: none; padding: 0; margin: 4px 0 18px; }
.steps li { flex: 1; text-align: center; position: relative; color: var(--muted); font-size: 14px; }
.steps li::before { content: ""; display: block; width: 16px; height: 16px; margin: 0 auto 6px; border-radius: 50%; background: var(--rule); position: relative; z-index: 1; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--rule); }
.steps li::after { content: ""; position: absolute; height: 2px; background: var(--rule); top: 7px; left: -50%; width: 100%; }
.steps li:first-child::after { display: none; }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.on::before { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.steps li.on::after { background: var(--green); }
.steps li.x::before { background: var(--margin-red); box-shadow: 0 0 0 1px var(--margin-red); }
.mini-table { width: 100%; font-size: 15px; }
.mini-table td { padding: 5px 0; border-bottom: 1px dashed var(--rule); }
.mini-table tr:last-child td { border-bottom: 0; font-weight: 700; }
.mini-table td:last-child { text-align: right; white-space: nowrap; }

/* ---------- Static pages / listing ---------- */
.page { padding: 26px 0 60px; }
.listing { padding: 8px 0 50px; }
.none { text-align: center; padding: 60px 0; color: var(--muted); }
.pagination { justify-content: center; margin-top: 28px; }
.page-link { color: var(--ink); border-color: var(--rule); }
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #D6E5E3; margin-top: 40px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
@media (max-width: 767.98px) { .site-footer .cols { grid-template-columns: 1fr; gap: 22px; padding-top: 32px; padding-bottom: 18px; } }
.site-footer h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #D6E5E3; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .logo-chip { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.site-footer .logo-chip img { height: 40px; display: block; }
.socials { display: flex; gap: 8px; margin-top: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.socials a:hover { background: #fff; color: var(--ink); text-decoration: none; }
.site-footer .base { border-top: 1px solid rgba(255,255,255,.14); padding: 14px 0; font-size: 14px; color: #B9C3E3; }
.site-footer .base a { color: #fff; }

.wa-float { position: fixed; bottom: 24px; right: 20px; z-index: 1025; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(37, 211, 102, .18); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(37, 211, 102, .28); animation: wa-pulse 2.2s ease-out infinite; }
.wa-float .wa-dot { position: relative; width: 52px; height: 52px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(37, 211, 102, .4); transition: transform .15s; }
.wa-float .wa-dot i { font-size: 30px; color: #0F1B13; line-height: 1; }
.wa-float:hover .wa-dot { transform: scale(1.06); }
@keyframes wa-pulse { 0% { transform: scale(.72); opacity: .9; } 70% { transform: scale(1.12); opacity: 0; } 100% { transform: scale(1.12); opacity: 0; } }
@media (max-width: 575.98px) { .wa-float { width: 66px; height: 66px; right: 12px; bottom: 16px; } .wa-float .wa-dot { width: 46px; height: 46px; } .wa-float .wa-dot i { font-size: 26px; } }

/* modals keep the brand */
.modal-content { border-radius: 16px; border: 0; }
.modal-header { border-bottom-color: var(--rule); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- v2.1: reference look (grey page, white cards, green buttons, side categories) ---------- */
.site-header, .catbar, .topstrip { position: relative; }
.site-header { position: sticky; }
.catbar { display: none; }
@media (max-width: 991.98px) { .catbar { display: block; } }

.hero { padding: 16px 0 4px; }
.hero .split { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 991.98px) { .hero .split { grid-template-columns: 1fr; } .sidecats { display: none; } }
.sidecats { background: #fff; border-radius: 8px; border: 1px solid #E5E7EB; overflow: hidden; }
.sidecats ul { list-style: none; margin: 0; padding: 0; }
.sidecats li + li { border-top: 1px solid #EEF0F3; }
.sidecats a { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px; font-weight: 600; font-size: 15px; color: #1F2937; }
.sidecats a:hover { background: #F7F8FA; color: var(--orange); }
.sidecats a i { color: #9CA3AF; font-size: 13px; }
.hero .frame { border-radius: 8px; overflow: hidden; background: transparent; }
#home_slider .carousel-indicators li { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); background: #fff; opacity: .9; }
#home_slider .carousel-indicators li.active { background: #fff; box-shadow: inset 0 0 0 3px #6B7280; }
#home_slider .carousel-control-prev, #home_slider .carousel-control-next { width: 52px; opacity: .85; }
#home_slider .carousel-control-prev i, #home_slider .carousel-control-next i { font-size: 34px; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.35); }

.promises div { border-color: #E5E7EB; }
.promises i { color: var(--orange); background: #E8F1F0; }

/* plain section heading */
.khata { background: none; padding: 0 0 10px; margin: 0 0 16px; border-bottom: 2px solid #E5E7EB; align-items: center; }
.khata::before { display: none; }
.khata h2 { font-size: 24px; position: relative; }
.khata h2::after { content: ""; position: absolute; left: 0; bottom: -12px; width: 64px; height: 2px; background: var(--orange); }
.khata a { color: var(--orange); }
@media (max-width: 575.98px) { .khata { padding-left: 0; } .khata h2 { font-size: 20px; } }

/* product card like the reference */
.grid { gap: 14px; }
.card-p { border: 0; border-radius: 8px; box-shadow: 0 1px 3px rgba(17,24,39,.08); }
.card-p:hover { box-shadow: 0 6px 18px rgba(17,24,39,.12); }
.card-p .pic { background: #fff; padding: 8px 8px 0; }
.card-p .pic img { border-radius: 4px; }
.card-p .body { padding: 10px 10px 10px; text-align: center; }
.card-p .name { -webkit-line-clamp: 1; min-height: 0; font-size: 15px; font-weight: 500; color: #374151; margin-bottom: 6px; }
.card-p .name a { color: #374151; }
.card-p .prices { justify-content: center; margin-bottom: 12px; }
.card-p .now { font-family: var(--body); font-weight: 700; font-size: 18px; color: var(--orange); order: 2; }
.card-p .was { order: 1; font-size: 15px; color: #9CA3AF; }
.card-p .btn-buy { border-radius: 6px; padding: 9px 10px; }
.card-p .btn-buy i { font-size: 15px; }
.stamp { width: auto; height: auto; transform: none; border: 0; border-radius: 999px; box-shadow: none; background: var(--orange); color: #fff; padding: 3px 10px; top: 14px; left: 14px; font-family: var(--body); font-weight: 600; font-size: 13px; flex-direction: row; }
.stamp b { font-size: 13px; font-weight: 600; }
.stamp small { display: none; }
@media (max-width: 575.98px) { .stamp { top: 10px; left: 10px; padding: 2px 8px; } .stamp b { font-size: 12px; } .card-p .name { font-size: 14px; } .card-p .now { font-size: 16px; } }

/* panels and boxes on the grey page */
.pd .layout > div:last-child, .gallery .main { background: #fff; }
.buybox, .panel, .order-card { background: #fff; border-color: #E5E7EB; }
.callbox { background: #fff; border: 1px solid #E5E7EB; }
.pd .price-row .now { color: var(--orange); }
.extra { border-color: var(--brand); background: #FFF8F3; }
.extra input { accent-color: var(--brand); }
.chip { background: #fff; border: 1px solid #E5E7EB; }
.site-footer { margin-top: 48px; }

/* ---------- v2.2: header tools, slide-out cart, drawers, mobile bottom bar, accounts ---------- */
.head-tools { display: flex; align-items: center; gap: 18px; }
.acct { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.acct i { font-size: 22px; color: var(--ink-soft); }
.acct span { display: flex; flex-direction: column; line-height: 1.2; font-weight: 600; font-size: 15px; }
.acct small { font-weight: 400; color: var(--muted); font-size: 12px; }
.acct:hover { color: var(--orange); }
.cartbox { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 1px solid #E5E7EB; border-radius: 12px; color: var(--ink); background: #fff; }
.cartbox:hover { border-color: var(--brand); color: var(--ink); }
.cartbox .ic { position: relative; width: 44px; height: 44px; border-radius: 10px; background: #FFF1E8; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.cartbox .ic em, .bottom-nav em { position: absolute; top: -7px; left: -7px; min-width: 21px; height: 21px; border-radius: 11px; padding: 0 5px; background: var(--brand); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
.cartbox .txt { display: flex; flex-direction: column; line-height: 1.2; }
.cartbox .txt b { font-family: var(--display); font-weight: 800; font-size: 17px; }
.cartbox .txt small { color: var(--muted); font-size: 13px; }
@media (max-width: 991.98px) { .acct span { display: none; } }
@media (max-width: 767.98px) {
  .head-tools { gap: 10px; }
  .acct { display: none; }
  .cartbox { padding: 0; border: 0; }
  .cartbox .txt { display: none; }
  .cartbox .ic { width: 40px; height: 40px; }
}

/* drawers */
.drawer-dim { position: fixed; inset: 0; background: rgba(17,24,39,.45); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1060; }
.drawer-dim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; right: 0; width: 420px; max-width: 100vw; background: #fff; z-index: 1070; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 30px rgba(17,24,39,.12); }
.drawer.left { right: auto; left: 0; transform: translateX(-100%); width: 320px; }
.drawer.open { transform: none; }
body.drawer-open { overflow: hidden; }
.dr-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid #EEF0F3; }
.dr-head h2 { font-size: 24px; margin: 0; }
.dr-x { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #E5E7EB; background: #fff; font-size: 22px; line-height: 1; color: var(--ink-soft); cursor: pointer; }
.dr-x:hover { border-color: var(--ink); }
.dr-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cd-lines { list-style: none; margin: 0; padding: 0 22px; overflow-y: auto; flex: 1; }
.cd-lines li { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid #EEF0F3; }
.cd-lines img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; background: #F3F4F6; }
.cd-lines .nm { display: block; font-weight: 600; line-height: 1.4; color: var(--ink); margin-bottom: 8px; }
.cd-lines .attrs { display: block; color: var(--muted); margin: -4px 0 6px; }
.cd-lines .pill { display: inline-flex; align-items: center; border: 1px solid #E5E7EB; border-radius: 999px; height: 32px; }
.cd-lines .pill button { width: 32px; height: 30px; border: 0; background: none; font-size: 17px; cursor: pointer; color: var(--ink); border-radius: 999px; }
.cd-lines .pill button:hover { background: #F3F4F6; }
.cd-lines .pill span { min-width: 22px; text-align: center; font-weight: 700; }
.cd-lines .end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cd-lines .end b { font-family: var(--display); font-weight: 800; font-size: 17px; white-space: nowrap; }
.cd-lines .end small { color: var(--muted); white-space: nowrap; }
.cd-rm { margin-top: auto; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 22px; cursor: pointer; border-radius: 8px; }
.cd-rm:hover { color: var(--margin-red); background: #FDECEC; }
.cd-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding: 30px; }
.cd-empty i { font-size: 48px; color: #E5E7EB; }
.cd-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid #EEF0F3; display: flex; flex-direction: column; gap: 12px; }
.cd-foot .sub { display: flex; justify-content: space-between; font-size: 16px; color: var(--ink-soft); }
.cd-foot .sub b { color: var(--ink); font-family: var(--display); font-weight: 800; }
.cd-continue, .cd-checkout { display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 12px; font-weight: 700; font-size: 17px; border: 0; cursor: pointer; }
.cd-continue { background: #1C1917; color: #fff; }
.cd-continue:hover { background: #000; }
.cd-checkout { background: linear-gradient(90deg, #FF8A3D, var(--brand)); color: #fff !important; box-shadow: 0 8px 18px rgba(242,105,34,.28); }
.cd-checkout:hover { filter: brightness(.96); }
@media (max-width: 480px) { .drawer { width: 100vw; } .drawer.left { width: 86vw; } .cd-lines, .cd-foot, .dr-head { padding-left: 16px; padding-right: 16px; } }
.dr-cats { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; }
.dr-cats a { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px; font-weight: 600; color: var(--ink); border-bottom: 1px solid #F3F4F6; }
.dr-cats a i { color: var(--muted); }
.dr-cats a:hover { color: var(--orange); background: #F9FAFB; }
.dr-cats .sep { margin-top: 8px; border-top: 6px solid #F3F4F6; }
.dr-cats li:first-child a, .dr-cats .sep a, .dr-cats .sep ~ li a { justify-content: flex-start; gap: 10px; }

/* mobile bottom bar */
.bottom-nav { display: none; }
@media (max-width: 767.98px) {
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 1px solid #E5E7EB; box-shadow: 0 -4px 16px rgba(17,24,39,.06); padding-bottom: env(safe-area-inset-bottom); height: calc(60px + env(safe-area-inset-bottom)); }
  .bottom-nav > a, .bottom-nav > button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; color: var(--ink); font-size: 12px; font-weight: 600; padding: 0; cursor: pointer; }
  .bottom-nav i { font-size: 20px; line-height: 1; }
  .bottom-nav .fa-whatsapp { color: #25D366; font-size: 22px; }
  .bottom-nav em { top: 4px; left: calc(50% + 2px); }
  .bottom-nav .home { justify-content: flex-end; padding-bottom: 6px; }
  .bottom-nav .home > span:last-child { position: relative; z-index: 1; }
  .bottom-nav .ring { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px #fff, 0 6px 14px rgba(242,105,34,.35); }
  .bottom-nav .ring i { font-size: 24px; }
  .bottom-nav a.on:not(.home) { color: var(--brand); }
  body.has-bottom-nav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-bottom-nav .wa-float { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-bottom-nav.has-buybar .wa-float { bottom: calc(168px + env(safe-area-inset-bottom)); }
  body.has-bottom-nav .buybar { bottom: calc(60px + env(safe-area-inset-bottom)); padding-bottom: 36px; box-shadow: 0 -4px 12px rgba(17,24,39,.06); }
  body.has-bottom-nav.has-buybar { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
}

/* accounts */
.auth { padding: 40px 16px 60px; }
.auth-card { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid #E5E7EB; border-radius: 16px; padding: 28px 26px; }
.auth-card h1 { font-size: 28px; margin-bottom: 4px; }
.auth-card .lead-note { color: var(--muted); margin-bottom: 18px; }
.auth-card .remember { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 2px 0 16px; }
.auth-card .switch { text-align: center; margin: 18px 0 0; color: var(--muted); }
.auth-card .switch a { color: var(--orange); font-weight: 600; }
.auth-card .otp { font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 700; }
.auth-err { background: #FDECEC; color: var(--margin-red); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-weight: 600; }
.auth-note { background: #E8F1F0; color: var(--orange-dark); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.acct-page { padding: 28px 0 60px; }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.acct-head h1 { font-size: 28px; margin: 0; }
.acct-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 899.98px) { .acct-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Payment options (checkout + landing pages) ---------- */
.pay-field > label { display: block; }
.pay-field .pay-opt { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 10px; padding: 14px 16px; border: 1.5px solid #E5E7EB; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; transition: border-color .15s, background-color .15s; }
.pay-field .pay-opt:hover { border-color: #A7CDB8; }
.pay-field .pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-field .pay-opt input:focus-visible + .pay-dot { outline: 3px solid rgba(30,142,90,.35); outline-offset: 2px; }
.pay-field .pay-dot { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9CA3AF; background: #fff; position: relative; }
.pay-field .pay-opt.on { border-color: #1E7A4E; background: #EBF6EF; }
.pay-field .pay-opt.on .pay-dot { border-color: #146B43; background: #146B43; }
.pay-field .pay-opt.on .pay-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.pay-field .pay-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pay-field .pay-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 16px; color: #111827; line-height: 1.3; }
.pay-field .pay-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #1E9E5E; color: #fff; font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.6; }
.pay-field .pay-sub { font-size: 13.5px; color: #4B5563; line-height: 1.45; }
.pay-field .pay-ico { flex: 0 0 auto; color: #1E8E5A; }
.pay-field .pay-bk-mark { flex: 0 0 auto; padding: 3px 9px; border-radius: 6px; background: #E2136E; color: #fff; font-weight: 700; font-size: 12.5px; letter-spacing: .01em; }
.pay-field .pay-bkash.on { border-color: #E2136E; background: #FDF0F6; }
.pay-field .pay-bkash.on .pay-dot { border-color: #E2136E; background: #E2136E; }
.pay-field .bk-panel { margin: -4px 0 12px; padding: 14px 16px; border: 1.5px dashed #F2A3C6; border-radius: 12px; background: #FFF8FB; }
.pay-field .bk-steps { margin: 0 0 10px; padding-left: 20px; font-size: 14px; color: #374151; line-height: 1.6; }
.pay-field .bk-steps li { margin-bottom: 4px; }
.pay-field .bk-steps small { color: #6B7280; }
.pay-field .bk-no { display: inline-flex; align-items: center; gap: 8px; margin: 0 2px; }
.pay-field .bk-no b { font-size: 17px; color: #B00E57; letter-spacing: .02em; }
.pay-field .bk-copy { border: 1px solid #E2136E; background: #fff; color: #B00E57; border-radius: 6px; padding: 1px 9px; font-size: 12.5px; cursor: pointer; }
.pay-field .bk-copy:hover { background: #E2136E; color: #fff; }
.pay-field .bk-amt { color: #B00E57; font-size: 16px; }
.pay-field .bk-note { margin: 0 0 10px; font-size: 13.5px; color: #6B2142; background: #FCE4EF; border-radius: 8px; padding: 8px 10px; }
.pay-field .bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.pay-field .bk-grid label { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; display: block; }
.pay-err { display: block; color: #C62828; font-size: 13px; margin-top: 3px; }
@media (max-width: 991px) {
  .pay-field .bk-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .pay-field .pay-opt { padding: 12px 13px; gap: 11px; }
  .pay-field .pay-title { font-size: 15px; }
  .pay-field .bk-grid { grid-template-columns: 1fr; }
}

/* Product page: description / return policy tabs */
.pd-tabs { background: #fff; border-radius: 12px; border: 1px solid #E5E7EB; overflow: hidden; }
.pd-tablist { display: flex; gap: 4px; border-bottom: 1px solid #E5E7EB; padding: 0 12px; overflow-x: auto; }
.pd-tablist button { position: relative; border: 0; background: none; padding: 14px 16px 12px; font-family: var(--display); font-weight: 600; font-size: 17px; color: #1a73c9; white-space: nowrap; cursor: pointer; }
.pd-tablist button:hover { color: #0f5aa3; }
.pd-tablist button.on { color: var(--ink); }
.pd-tablist button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--orange); }
.pd-tablist button:focus-visible { outline: 3px solid rgba(30,95,89,.35); outline-offset: -3px; border-radius: 8px; }
.pd-panel { padding: 18px 20px 22px; }
@media (max-width: 575px) { .pd-tablist button { font-size: 15.5px; padding: 12px 12px 10px; } .pd-panel { padding: 14px 14px 18px; } }

/* Product cards: full name, and the discount badge always on top of the photo */
.card-p .name { display: block; -webkit-line-clamp: unset; overflow: visible; min-height: 0; line-height: 1.45; }
.card-p .stamp { z-index: 3; background: #e5484d; box-shadow: 0 2px 6px rgba(229,72,77,.35); }

/* Product cards: show the whole photo, never cropped, in a fixed square box */
.card-p .pic { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.card-p .pic img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; object-position: center; }

/* Product card titles: at most 2 lines (longer names end with …), same height on every card */
.card-p .name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.9em; max-height: 2.9em; line-height: 1.45; }

/* Product page: whole photo visible; on desktop the photo box is as tall as the details column */
.gallery .main { position: relative; display: flex; align-items: center; justify-content: center; background: #fff; }
.gallery .main img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: contain; object-position: center; }
.gallery .thumbs img { object-fit: contain; background: #fff; }
@media (min-width: 992px) {
  .pd .layout { align-items: stretch; }
  .pd .gallery { display: flex; flex-direction: column; min-height: 0; }
  .pd .gallery .main { flex: 1 1 auto; min-height: 360px; }
  .pd .gallery .main img { position: absolute; inset: 0; aspect-ratio: auto; padding: 10px; }
}

/* Product page: details column as a padded white card that matches the photo box */
.pd .layout > div:last-child { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 26px 28px; box-shadow: 0 1px 3px rgba(17,24,39,.05); }
.pd .gallery .main { box-shadow: 0 1px 3px rgba(17,24,39,.05); }
@media (max-width: 991.98px) { .pd .layout > div:last-child { padding: 18px 16px; border-radius: 14px; } }

/* Product page: the photo box fills its whole area — the empty space around the photo is filled with a
   soft, blurred copy of the same photo, so there are no white bands and the full photo stays visible. */
.gallery .main { isolation: isolate; }
.gallery .main::before { content: ""; position: absolute; inset: -30px; background: var(--main-img) center / cover no-repeat; filter: blur(22px) saturate(1.15); opacity: .85; transform: scale(1.15); z-index: -1; }
.gallery .main img { position: relative; z-index: 1; filter: drop-shadow(0 6px 18px rgba(17,24,39,.18)); }
@media (min-width: 992px) {
  .pd .layout { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .pd .gallery .main { flex: 0 0 auto; aspect-ratio: 1 / 1; min-height: 0; }
  .pd .gallery .main img { position: static; width: 100%; height: 100%; padding: 0; object-fit: contain; filter: none; }
  .pd .layout > div:last-child { display: block; }
}

/* Footer always sits at the bottom of the screen, even on short pages (login, cart, track) */
html { height: 100%; }
body { min-height: 100%; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > footer, body > .site-footer { flex-shrink: 0; }

/* =================== Header v3 =================== */
.hx-top { background: var(--deep); color: #E3EEEC; font-size: 13.5px; }
.hx-top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 38px; }
.hx-msg { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-msg i { color: #FFB27A; }
.hx-links { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.hx-links > a { color: #E3EEEC; display: inline-flex; align-items: center; gap: 6px; }
.hx-links > a:hover { color: #fff; }
.hx-links > a i { color: #9FC9C2; }
.hx-social { display: inline-flex; gap: 6px; }
.hx-social a { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; transition: transform .12s; }
.hx-social a:hover { transform: translateY(-1px); color: #fff; }
.hx-social .s-fb { background: #1877F2; }
.hx-social .s-ig { background: linear-gradient(45deg, #F58529, #DD2A7B 55%, #8134AF); }
.hx-social .s-yt { background: #E62117; }

.hx-head { box-shadow: 0 1px 0 var(--rule); border-bottom: 0; }
.hx-bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.hx-bar .logo img { height: 50px; width: auto; display: block; }
.hx-catbtn { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px; border: 0; border-radius: 12px; background: #E8F2F0; color: var(--deep); font-family: var(--display); font-weight: 600; font-size: 16px; cursor: pointer; transition: background .15s; }
.hx-catbtn:hover { background: #D6EAE6; }
.hx-catbtn .hx-caret { font-size: 15px; opacity: .7; }
.hx-search { position: relative; display: flex; align-items: center; height: 48px; border: 1.5px solid #DCE3E2; border-radius: 14px; background: #F7F9F9; padding: 4px 4px 4px 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.hx-search:focus-within { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(30,95,89,.10); }
.hx-search > i { color: #8A9A98; margin-right: 10px; }
.hx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15.5px; color: var(--ink); height: 100%; }
.hx-search input::placeholder { color: #8A9A98; }
.hx-search button { height: 100%; padding: 0 20px; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 600; font-size: 15.5px; cursor: pointer; }
.hx-search button:hover { background: #DD5A16; }
.hx-hotline { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.hx-hotline:hover { color: var(--orange); }
.hx-hotline .ic { width: 40px; height: 40px; border-radius: 50%; background: #E8F2F0; color: var(--orange); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.hx-hotline span:last-child { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--display); font-weight: 700; font-size: 16px; }
.hx-hotline small { font-family: var(--body); font-weight: 400; color: var(--muted); font-size: 12px; }
.hx-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid #E5E7EB; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); font-size: 19px; background: #fff; }
.hx-icon:hover { border-color: var(--orange); color: var(--orange); }

.hx-nav { background: #fff; border-bottom: 1px solid var(--rule); }
.hx-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hx-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.hx-navlist { overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.hx-navlist::-webkit-scrollbar { display: none; }
.hx-nav a { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 12px 12px; color: var(--ink-soft); font-size: 15px; font-weight: 500; white-space: nowrap; }
.hx-nav a:hover { color: var(--orange); }
.hx-nav a.on { color: var(--orange); font-weight: 600; }
.hx-nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.hx-navside a { color: var(--muted); font-size: 14px; }

@media (max-width: 1199.98px) { .hx-hotline { display: none; } }
@media (max-width: 991.98px) {
  .hx-top .hide-sm { display: none; }
  .hx-msg { font-size: 12.5px; }
  .hx-bar { grid-template-columns: auto 1fr auto; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .hx-bar .logo img { height: 40px; }
  .hx-catbtn { display: none; }
  .hx-search { grid-column: 1 / -1; grid-row: 2; height: 44px; }
  .hx-search button { padding: 0 14px; font-size: 14.5px; }
  .hx-bar .head-tools { justify-self: end; }
  .head-tools .hx-icon { display: none; }
  .hx-nav .hx-navside { display: none; }
  .hx-nav a { padding: 10px 10px; font-size: 14.5px; }
}
@media (max-width: 575.98px) { .hx-msg { display: none; } .hx-top .wrap { justify-content: center; } }

/* =================== Footer v3 =================== */
.fx { background: var(--deep); color: #C9DAD7; margin-top: 56px; font-size: 15px; position: relative; }
.fx::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand) 0 22%, #F7B500 22% 30%, #2BA388 30% 100%); }
.fx-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 34px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.10); }
.perk { display: flex; align-items: center; gap: 12px; }
.perk .pi { width: 46px; height: 46px; flex: none; border-radius: 14px; background: rgba(242,105,34,.14); color: #FFB27A; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; }
.perk b { display: block; color: #fff; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; }
.perk small { color: #A9C3BF; font-size: 13px; line-height: 1.35; }
.fx-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; padding-top: 34px; padding-bottom: 30px; }
.fx h3 { color: #fff; font-size: 17px; margin-bottom: 14px; position: relative; padding-bottom: 8px; }
.fx h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; border-radius: 2px; background: var(--brand); }
.fx-brand p { margin: 0 0 14px; line-height: 1.65; max-width: 360px; }
.fx ul { list-style: none; padding: 0; margin: 0; }
.fx li { margin-bottom: 9px; }
.fx a { color: #C9DAD7; }
.fx a:hover { color: #fff; text-decoration: none; }
.fx-cols ul a { display: inline-flex; align-items: center; gap: 8px; transition: transform .12s, color .12s; }
.fx-cols > div:not(.fx-contact) ul a:hover { transform: translateX(3px); }
.fx-contact i { width: 18px; color: #FFB27A; text-align: center; }
.fx-contact small { color: #8FB0AB; }
.fx-contact .addr { display: flex; gap: 8px; line-height: 1.5; }
.fx-contact .addr i { margin-top: 4px; }
.fx .logo-chip { display: inline-block; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 14px; }
.fx .logo-chip img { height: 40px; display: block; }
.fx .socials { display: flex; gap: 8px; }
.fx .socials a { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; transition: background .15s, transform .12s; }
.fx .socials a:hover { background: var(--brand); transform: translateY(-2px); }
.fx .base { border-top: 1px solid rgba(255,255,255,.10); padding: 14px 0; font-size: 13.5px; color: #A9C3BF; background: rgba(0,0,0,.12); }
.fx-base { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fx-pay { display: inline-flex; align-items: center; gap: 6px; }
.fx-pay small { color: #8FB0AB; }
.fx-pay em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: rgba(255,255,255,.10); color: #fff; }
.fx-pay em.bk { background: #E2136E; }
@media (max-width: 991.98px) {
  .fx-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
  .fx-brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .fx { margin-top: 40px; }
  .fx-perks { gap: 14px; padding-top: 26px; }
  .perk .pi { width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
  .perk b { font-size: 14.5px; }
  .perk small { font-size: 12px; }
  .fx-cols { grid-template-columns: 1fr 1fr; }
  .fx-contact { grid-column: 1 / -1; }
  .fx-base { justify-content: center; text-align: center; }
}

/* Homepage: category list is exactly as tall as the slider (rows share the height; scrolls only if there are many) */
@media (min-width: 992px) {
  .hero .split { align-items: stretch; }
  .hero .sidecats { position: relative; min-height: 0; }
  .hero .sidecats ul { position: absolute; inset: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; }
  .hero .sidecats li { flex: 1 0 38px; display: flex; }
  .hero .sidecats a { flex: 1; padding-top: 6px; padding-bottom: 6px; }
}
.hero .split.no-side { grid-template-columns: minmax(0, 1fr); }

/* Homepage category list: rows keep their normal height (no stretching when there are only a few);
   the white box ends after the last category and never grows past the slider (scrolls if there are many). */
@media (min-width: 992px) {
  .hero .sidecats { background: transparent; border: 0; overflow: visible; }
  .hero .sidecats ul { bottom: auto; max-height: 100%; display: block; background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; overflow-y: auto; }
  .hero .sidecats li { display: block; }
  .hero .sidecats a { padding-top: 12px; padding-bottom: 12px; }
}

/* Homepage category box: white and as tall as the slider; rows keep normal height at the top */
@media (min-width: 992px) {
  .hero .sidecats { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
  .hero .sidecats ul { bottom: 0; max-height: none; background: transparent; border: 0; border-radius: 0; }
  .hero .sidecats li:last-child { border-bottom: 1px solid #EEF0F3; }
}

/* =================== Order confirmed =================== */
.ok-page { padding: 32px 0 56px; background: linear-gradient(180deg, #EAF4F1 0, rgba(234,244,241,0) 340px); }
.ok-wrap { max-width: 760px; margin: 0 auto; }
.ok-hero { text-align: center; padding: 8px 0 22px; }
.ok-badge { position: relative; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 34px; box-shadow: 0 10px 26px rgba(30,142,90,.32); animation: ok-pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.ok-badge::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid rgba(30,142,90,.18); }
@keyframes ok-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ok-hero h1 { font-size: 32px; margin: 0 0 4px; }
.ok-lead { color: var(--ink-soft); font-size: 17px; margin: 0 0 16px; }
.ok-inv { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px dashed #A7CDB8; border-radius: 14px; padding: 8px 8px 8px 16px; }
.ok-inv span { color: var(--muted); font-size: 14px; }
.ok-inv b { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .02em; color: var(--ink); }
.ok-copy { border: 0; background: #E8F2F0; color: var(--orange); border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.ok-copy:hover { background: #D6EAE6; }
.ok-wa { margin: 14px auto 0; display: inline-flex; align-items: center; gap: 8px; background: #E7F8EE; color: #146B43; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.ok-wa i { font-size: 18px; color: #25D366; }

.ok-steps { list-style: none; margin: 6px 0 20px; padding: 18px 10px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--rule); border-radius: 16px; position: relative; }
.ok-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 0 4px; }
.ok-steps li + li::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: #E5E7EB; z-index: 0; }
.ok-steps li.done + li::before { background: linear-gradient(90deg, var(--green), #E5E7EB); }
.ok-steps .dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #F1F3F6; color: #9CA3AF; font-size: 15px; border: 3px solid #fff; box-shadow: 0 0 0 1px #E5E7EB; }
.ok-steps .done .dot { background: var(--green); color: #fff; box-shadow: 0 0 0 1px var(--green); }
.ok-steps .now .dot { background: #FFF1E8; color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.ok-steps b { font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--ink); margin-top: 4px; }
.ok-steps small { color: var(--muted); font-size: 12px; }

.ok-note { display: flex; gap: 12px; align-items: flex-start; background: #FFF8F1; border: 1px solid #FBD9BF; border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; }
.ok-note i { color: var(--brand); font-size: 24px; margin-top: 2px; }
.ok-note p { margin: 0; color: #5B3A1E; line-height: 1.6; }

.rcpt { background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(17,24,39,.06); }
.rcpt-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--deep); color: #fff; }
.rcpt-head img { height: 42px; background: #fff; border-radius: 10px; padding: 5px 8px; }
.rcpt-title { text-align: right; }
.rcpt-title h2 { color: #fff; font-size: 20px; margin: 0; }
.rcpt-title p { margin: 2px 0 0; color: #B9D3CF; font-size: 13.5px; }
.rcpt-info { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 1px solid var(--rule); }
.rcpt-info > div { padding: 18px 24px; }
.rcpt-info > div + div { border-left: 1px dashed var(--rule); }
.rcpt-info h3 { font-size: 13px; font-family: var(--body); font-weight: 700; color: var(--muted); letter-spacing: .02em; margin: 0 0 8px; }
.rcpt-info p { margin: 0 0 3px; color: var(--ink); line-height: 1.5; }
.rcpt-info p.muted { color: var(--muted); font-size: 13.5px; }
.rcpt-items { width: 100%; border-collapse: collapse; }
.rcpt-items th { font-size: 13px; color: var(--muted); font-weight: 600; text-align: left; padding: 12px 24px 8px; border-bottom: 1px solid var(--rule); }
.rcpt-items td { padding: 12px 24px; border-bottom: 1px solid #F1F3F6; vertical-align: middle; color: var(--ink); }
.rcpt-items .c { text-align: center; white-space: nowrap; color: var(--ink-soft); }
.rcpt-items .r { text-align: right; white-space: nowrap; font-weight: 600; }
.rcpt-prod { display: flex; align-items: center; gap: 12px; }
.rcpt-prod img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; border: 1px solid var(--rule); background: #fff; flex: none; }
.rcpt-prod span { line-height: 1.45; }
.rcpt-prod small { display: block; color: var(--muted); font-size: 12.5px; }
.rcpt-sum { padding: 14px 24px 18px; margin-left: auto; max-width: 380px; }
.rcpt-sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: var(--ink-soft); }
.rcpt-sum .tot { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 10px; color: var(--ink); font-weight: 700; }
.rcpt-sum .due { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: #EAF4F1; color: var(--deep); font-family: var(--display); font-weight: 800; font-size: 19px; }
.rcpt-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 24px; background: #F7F9F9; border-top: 1px dashed var(--rule); color: var(--muted); font-size: 13px; }
.rcpt.for-pdf { box-shadow: none; border-radius: 0; }

.ok-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.ok-actions .btn-buy, .ok-actions .btn-line { display: inline-flex; align-items: center; gap: 8px; }
.ok-wa-btn { border-color: #25D366 !important; color: #128C4B !important; }
.ok-wa-btn:hover { background: #25D366 !important; color: #fff !important; }
.ok-more { margin-left: auto; color: var(--orange); font-weight: 600; }

@media (max-width: 575.98px) {
  .ok-page { padding-top: 22px; }
  .ok-hero h1 { font-size: 25px; }
  .ok-inv b { font-size: 19px; }
  .ok-steps { padding: 14px 4px; }
  .ok-steps b { font-size: 12.5px; }
  .ok-steps small { display: none; }
  .ok-steps .dot { width: 34px; height: 34px; font-size: 13px; }
  .ok-steps li + li::before { top: 16px; }
  .rcpt-head { padding: 16px; }
  .rcpt-head img { height: 34px; }
  .rcpt-title h2 { font-size: 17px; }
  .rcpt-info { grid-template-columns: 1fr; }
  .rcpt-info > div + div { border-left: 0; border-top: 1px dashed var(--rule); }
  .rcpt-info > div, .rcpt-items th, .rcpt-items td, .rcpt-sum, .rcpt-foot { padding-left: 16px; padding-right: 16px; }
  .rcpt-items th.c, .rcpt-items td.c { display: none; }
  .rcpt-sum { max-width: none; }
  .ok-actions > * { flex: 1 1 100%; justify-content: center; }
  .ok-more { margin-left: 0; text-align: center; }
}
@media print {
  .hx-top, .site-header, .hx-nav, .site-footer, .bottom-nav, .wa-float, .ok-hero, .ok-steps, .ok-note, .ok-actions, .drawer, .drawer-dim { display: none !important; }
  .ok-page { padding: 0; background: none; }
  .rcpt { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .ok-badge { animation: none; } }
/* PDF copy: no letter-spacing (keeps Bangla letters joined in the PDF), fixed desktop layout */
.rcpt.for-pdf, .rcpt.for-pdf * { letter-spacing: 0 !important; }
.rcpt.for-pdf { border: 1px solid #E4EBF8; }
.rcpt.for-pdf .rcpt-info { grid-template-columns: 1fr 1fr; }
.rcpt.for-pdf .rcpt-items th.c, .rcpt.for-pdf .rcpt-items td.c { display: table-cell; }
.rcpt-prod .m-qty { display: none; }
@media (max-width: 575.98px) { .rcpt-prod .m-qty { display: block; color: var(--ink-soft); } }
.rcpt.for-pdf .rcpt-prod .m-qty { display: none; }

/* ===== Contact Us ===== */
.ct { padding: 28px 0 64px; }
.ct-head { max-width: 640px; margin-bottom: 22px; }
.ct-head h1 { font-size: 30px; margin: 0 0 6px; }
.ct-head p { color: var(--ink-soft); margin: 0; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 22px; align-items: start; }
.ct-ways { display: grid; gap: 10px; }
.ct-way { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; color: var(--ink); }
a.ct-way:hover { border-color: var(--orange); color: var(--ink); }
.ct-way > span:last-child { min-width: 0; }
.ct-way small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.ct-way b { display: block; font-size: 17px; line-height: 1.35; overflow-wrap: anywhere; }
.ct-way b.ct-mail { font-size: 15px; }
.ct-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: #E8F1F0; color: var(--orange); font-size: 18px; }
.ct-way.wa .ct-ico { background: #E5F7EC; color: #1DA851; }
.ct-track { display: block; padding: 10px 4px 0; font-size: 14px; color: var(--orange); font-weight: 600; }
.ct-track i { margin-right: 6px; }
.ct-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 24px; }
.ct-card h2 { font-size: 22px; margin: 0 0 16px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-field { margin-bottom: 14px; }
.ct-field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.ct-field label em { color: var(--margin-red); font-style: normal; }
.ct-field label small { color: var(--muted); font-weight: 400; }
.ct-field input, .ct-field textarea { width: 100%; border: 1.5px solid #D9E1EE; border-radius: 10px; padding: 10px 14px; font-size: 16px; background: #fff; color: var(--ink); }
.ct-field input { height: 48px; }
.ct-field textarea { resize: vertical; min-height: 130px; }
.ct-field input:focus, .ct-field textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(30,95,89,.12); }
.ct-field [aria-invalid="true"] { border-color: var(--margin-red); }
.ct-err { display: block; color: var(--margin-red); font-size: 13.5px; margin-top: 4px; }
.ct-alert { background: #FDECEC; color: #9B1C1C; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-send { width: 100%; height: 50px; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ct-done { text-align: center; padding: 26px 8px; }
.ct-done-ico { width: 64px; height: 64px; border-radius: 50%; display: inline-grid; place-items: center; background: #E5F7EC; color: var(--green); font-size: 28px; margin-bottom: 12px; }
.ct-done h2 { margin-bottom: 6px; }
.ct-done p { color: var(--ink-soft); max-width: 420px; margin: 0 auto 16px; }
.ct-again { font-weight: 600; color: var(--orange); }
@media (max-width: 767.98px) {
    .ct { padding-top: 18px; }
    .ct-head h1 { font-size: 24px; }
    .ct-grid { grid-template-columns: 1fr; }
    .ct-card { padding: 18px; }
    .ct-row { grid-template-columns: 1fr; gap: 0; }
}
.ship-list li > span { display: flex; align-items: flex-start; gap: 9px; }
.ship-list li > span > .fa-map-marker { color: var(--brand); font-size: 16px; line-height: 1.5; flex: 0 0 auto; width: 12px; text-align: center; }

/* Footer on mobile: links, social icons, copyright only */
.fx-mobile { display: none; }
@media (max-width: 767.98px) {
    .fx { margin-top: 36px; }
    .fx .fx-perks, .fx .fx-cols, .fx .base { display: none; }
    .fx-mobile { display: block; text-align: center; padding: 22px 16px 22px; }
    .fxm-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
    .fxm-links a { color: #fff; }
    .fxm-social { display: flex; justify-content: center; gap: 12px; margin: 14px 0 12px; }
    .fxm-social a { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 17px; }
    .fxm-social a:hover { color: #fff; opacity: .9; }
    .fxm-social .fb { background: #1877F2; } .fxm-social .tw { background: #5AA9E6; }
    .fxm-social .ig { background: #E1306C; } .fxm-social .yt { background: #FF0000; }
    .fx .fxm-copy { margin: 0 auto; color: #fff; font-size: 15px; max-width: calc(100% - 120px); } /* stays clear of the floating WhatsApp button */
    .fxm-copy a { color: #8BC34A; font-weight: 600; }
}

/* Phone footer: copyright link in the site's light orange */
@media (max-width: 767.98px) { .fxm-copy a { color: #FFB27A; } }
/* Phone header: menu (categories, track order, contact, login) and account icons beside the cart */
.hx-menu { display: none; cursor: pointer; }
@media (max-width: 991.98px) {
  .head-tools { display: flex; align-items: center; gap: 8px; }
  .head-tools .hx-icon { display: inline-flex; width: 42px; height: 42px; font-size: 18px; }
  .head-tools .hx-menu { color: var(--deep); background: #E8F2F0; border-color: #E8F2F0; }
}
/* The phone bottom menu and sticky order bar are retired: keep them hidden even if an old template still prints them. */
.bottom-nav, .buybar { display: none !important; }
body.has-bottom-nav, body.has-buybar { padding-bottom: 0 !important; }

/* Checkout intro: heading + note on computers, one centred instruction line on phones */
.co .co-intro { display: none; }
@media (max-width: 767.98px) {
    .co .co-head-desk .lead-note { display: none; }
    .co .co-head-desk h1 { text-align: center; margin-bottom: 4px; }
    .co .co-intro { display: block; font-family: var(--body); font-size: 16px; font-weight: 500; line-height: 1.6; text-align: center; color: var(--ink); margin: 4px auto 14px; }
    .co .co-intro em { font-style: normal; color: #E0262B; font-weight: 600; }
}
/* Phones: smaller gap between the page content and the footer */
@media (max-width: 767.98px) {
    .co { padding-bottom: 14px; }
    .fx { margin-top: 20px; }
}

/* Order receipt: price calculation */
.rcpt-calc { margin: 16px 24px 20px; padding: 16px 18px; border-radius: 14px; background: var(--wash); border: 1px solid var(--rule); }
.rc-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0; font-size: 16px; color: var(--ink-soft); }
.rc-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-op { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: #fff; border: 1px solid var(--rule); color: var(--muted); font-style: normal; font-size: 14px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.rc-row:first-child span { padding-left: 28px; }
.rc-off b { color: var(--margin-red); }
.rc-paid b { color: var(--green); }
.rc-total { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--deep); color: #fff; }
.rc-total span { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.35; }
.rc-total small { display: block; font-family: var(--body); font-weight: 400; font-size: 13px; color: rgba(255,255,255,.75); }
.rc-total b { font-family: var(--display); font-weight: 800; font-size: 26px; white-space: nowrap; }
.rc-due { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; padding: 12px 16px; border-radius: 12px; background: #fff; border: 2px solid var(--deep); color: var(--deep); font-family: var(--display); font-weight: 800; font-size: 18px; }
@media (max-width: 575.98px) {
    .rcpt-calc { margin: 12px 16px 16px; padding: 12px 14px; }
    .rc-row { font-size: 15px; }
    .rc-total b { font-size: 22px; }
    .rc-total span { font-size: 15.5px; }
}
/* Receipt: shop name as text instead of the logo image */
.rcpt-brand { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.2; color: #fff; letter-spacing: 0; white-space: nowrap; }
@media (max-width: 575.98px) { .rcpt-brand { font-size: 23px; } }

/* Text logos (Settings → Website → Logos): the website's heading font */
.logo-text { font-family: var(--display); font-weight: 800; line-height: 1.1; letter-spacing: 0; white-space: nowrap; display: inline-block; }
.hx-bar .logo { text-decoration: none; }
.hx-bar .logo .logo-text { font-size: 32px; }
.lp-head .logo .logo-text { font-size: 28px; }
.fx-logo-text { display: inline-block; margin-bottom: 14px; text-decoration: none !important; }
.fx-logo-text .logo-text { font-size: 32px; }
@media (max-width: 991.98px) { .hx-bar .logo .logo-text { font-size: 26px; } }
@media (max-width: 575.98px) { .hx-bar .logo .logo-text { font-size: 23px; } .lp-head .logo .logo-text { font-size: 22px; } }
/* Order page lock: links look plain and do nothing (see the checkout page script) */
body.co-locked a[aria-disabled="true"], body.co-locked .hx-catbtn, body.co-locked .hx-menu, body.co-locked .cartbox { cursor: default; }
body.co-locked a[aria-disabled="true"]:hover { text-decoration: none; }
body.co-locked .hx-search { opacity: .55; }
/* Phones: the top strip shows only the delivery message (no phone number / social icons) */
@media (max-width: 767.98px) {
    .hx-top .hx-msg { display: flex; justify-content: center; font-size: 13px; max-width: 100%; }
    .hx-top .hx-links { display: none; }
    .hx-top .wrap { justify-content: center; }
}
@media (max-width: 359.98px) { .hx-top .hx-msg { font-size: 11.5px; } }

/* ===== Track Order ===== */
.tk { padding: 28px 0 56px; }
.tk .wrap { max-width: 820px; }
.tk-search { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 28px 28px 22px; text-align: center; }
.tk-search-ico { width: 58px; height: 58px; border-radius: 50%; display: inline-grid; place-items: center; background: #E8F1F0; color: var(--orange); font-size: 26px; margin-bottom: 8px; }
.tk-search h1 { font-size: 28px; margin: 0 0 4px; }
.tk-search > p { color: var(--ink-soft); margin: 0 0 18px; }
.tk-search form { text-align: left; }
.tk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tk-field { display: block; margin: 0; }
.tk-field > span:first-child { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.tk-input { display: flex; align-items: center; gap: 10px; height: 52px; border: 1.5px solid #D9E1EE; border-radius: 12px; padding: 0 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.tk-input i { color: var(--muted); width: 14px; text-align: center; }
.tk-input input { flex: 1; min-width: 0; border: 0; outline: 0; height: 100%; font-size: 17px; background: transparent; color: var(--ink); }
.tk-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(30,95,89,.12); }
.tk-field.bad .tk-input { border-color: var(--margin-red); }
.tk-btn { width: 100%; height: 52px; margin-top: 14px; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.tk-hint { display: block; text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.tk-msg { margin-top: 16px; background: #FDECEC; color: #9B1C1C; border-radius: 12px; padding: 12px 14px; text-align: left; font-size: 15px; }
.tk-msg.soft { background: var(--wash); color: var(--ink-soft); }
.tk-msg a { font-weight: 700; color: inherit; text-decoration: underline; }

.tk-card { margin-top: 22px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: var(--deep); color: #fff; flex-wrap: wrap; }
.tk-head small { display: block; color: rgba(255,255,255,.7); font-size: 13px; }
.tk-head b { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0; margin-right: 10px; }
.tk-head span { color: rgba(255,255,255,.8); font-size: 13.5px; }
.tk-chip { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; background: #fff; color: var(--deep) !important; }
.tk-chip.go { background: #FFF1E6; color: #B4520E !important; }
.tk-chip.ok { background: #E5F7EC; color: #157347 !important; }
.tk-chip.no { background: #FDECEC; color: #B42318 !important; }

.tk-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 26px 18px 18px; position: relative; }
.tk-steps li { position: relative; text-align: center; }
.tk-steps li::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 4px; background: #E5E9F0; z-index: 0; }
.tk-steps li:first-child::before { display: none; }
.tk-steps li.tk-done::before, .tk-steps li.tk-now::before { background: var(--green); }
.tk-dot { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; border: 3px solid #E5E9F0; color: #A3ACBA; font-size: 16px; }
.tk-steps li.tk-done .tk-dot { background: var(--green); border-color: var(--green); color: #fff; }
.tk-steps li.tk-now .tk-dot { background: #fff; border-color: var(--green); color: var(--green); box-shadow: 0 0 0 6px rgba(34,160,90,.15); }
.tk-lbl { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.3; }
.tk-steps li.tk-done .tk-lbl, .tk-steps li.tk-now .tk-lbl { color: var(--ink); font-weight: 600; }
.tk-ended { display: flex; gap: 14px; align-items: flex-start; margin: 18px 22px 0; padding: 14px 16px; border-radius: 12px; background: #FDECEC; color: #7F1D1D; }
.tk-ended i { font-size: 24px; color: #DC2626; margin-top: 2px; }
.tk-ended b { display: block; font-size: 16px; }
.tk-ended span { font-size: 14px; }
.tk-note { margin: 0 22px; padding: 10px 14px; border-radius: 10px; background: #FFF6E6; color: #7A4B00; font-size: 14.5px; }
.tk-body { padding: 18px 22px 6px; }
.tk-info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tk-info > div { background: var(--wash); border-radius: 12px; padding: 14px 16px; }
.tk-info small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.tk-info b { display: block; font-size: 16px; color: var(--ink); }
.tk-info span { display: block; color: var(--ink-soft); font-size: 14.5px; overflow-wrap: anywhere; }
.tk-info strong { color: var(--ink); }
.tk-courier { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 700; color: var(--orange); font-size: 14.5px; }
.tk-items { list-style: none; margin: 16px 0 0; padding: 0; }
.tk-items li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.tk-items img { width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: var(--wash); flex: 0 0 auto; }
.tk-items .nm { flex: 1; min-width: 0; font-size: 15px; color: var(--ink); line-height: 1.4; }
.tk-items .nm small { display: block; color: var(--muted); font-size: 13.5px; }
.tk-items b { white-space: nowrap; font-size: 15.5px; }
.tk-sum { padding: 12px 0 10px; margin-left: auto; max-width: 340px; }
.tk-sum > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 15px; color: var(--ink-soft); }
.tk-sum b { color: var(--ink); font-weight: 600; }
.tk-sum .tot { border-top: 2px solid var(--deep); margin-top: 6px; padding-top: 10px; font-family: var(--display); font-size: 19px; color: var(--ink); }
.tk-sum .tot b { font-weight: 800; }
.tk-help { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 22px; background: var(--wash); border-top: 1px solid var(--rule); }
.tk-help > span { margin-right: auto; color: var(--ink-soft); font-size: 15px; }
.tk-hbtn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--deep); color: #fff !important; font-weight: 600; font-size: 14.5px; }
.tk-hbtn.wa { background: #1DA851; }
@media (max-width: 767.98px) {
    .tk { padding-top: 16px; }
    .tk-search { padding: 22px 16px 18px; border-radius: 16px; }
    .tk-search h1 { font-size: 23px; }
    .tk-fields { grid-template-columns: 1fr; gap: 12px; }
    .tk-head { padding: 16px; }
    .tk-head b { font-size: 21px; }
    .tk-steps { padding: 20px 6px 14px; }
    .tk-dot { width: 34px; height: 34px; font-size: 13px; }
    .tk-steps li::before { top: 15px; height: 3px; }
    .tk-lbl { font-size: 11.5px; }
    .tk-ended, .tk-note { margin-left: 16px; margin-right: 16px; }
    .tk-body { padding: 14px 16px 4px; }
    .tk-info { grid-template-columns: 1fr; gap: 10px; }
    .tk-sum { max-width: none; }
    .tk-help { padding: 12px 16px; }
    .tk-help > span { width: 100%; margin: 0 0 4px; }
    .tk-hbtn { flex: 1; justify-content: center; }
}
/* Checkout extra pen set — old website look: label above, red-bordered box, large tick box */
.extra-old { margin-bottom: 14px; }
.extra-old > label { display: block; font-weight: 600; margin-bottom: 6px; }
.extra-old-box { display: flex; align-items: flex-start; gap: 14px; padding: 10px 12px; border: 1px solid #dc3545; border-radius: 6px; background: #fff; }
.extra-old-box input { width: 16px; height: 16px; margin: 7px 2px 0 4px; transform: scale(1.5); flex: none; cursor: pointer; accent-color: #0d6efd; }
.extra-old-box label { margin: 0; font-weight: 400; line-height: 1.6; cursor: pointer; color: var(--ink); }
.extra-old-box { align-items: center; }
.extra-old-box input { margin-top: 0; }
.extra-old-box label:not(.extra-old-img) { flex: 1; }
.extra-old-img { flex: none; margin: 0 !important; line-height: 0; }
.extra-old-img img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; border: 1px solid var(--rule); background: #fff; }
@media (max-width: 575.98px) { .extra-old-img img { width: 56px; height: 56px; } }

/* Phone number format check (Order Protection) */
.phone-err { color: #d32f2f; font-size: 13px; line-height: 1.45; margin-top: 6px; }
.phone-err[hidden] { display: none; }
#customer_phone.is-invalid { border-color: #d32f2f !important; box-shadow: 0 0 0 3px rgba(211, 47, 47, .12) !important; }
