/* ===== রং ও সেটিং (এক জায়গায় বদলালে সব জায়গায় বদলে যাবে) ===== */
:root {
  --black: #0b0b0c;
  --ink: #1b1b1f;
  --gold: #f5c518;
  --gold-dark: #d9a900;
  --bg: #f6f5f1;
  --card: #ffffff;
  --muted: #6b7280;
  --line: #e7e5df;
  --red: #dc2626;
  --green: #16a34a;
  --wa: #25d366;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }
a { color: inherit; }

/* ===== বাটন ===== */
.btn-gold, .btn-dark, .btn-wa {
  display: inline-block; border: none; cursor: pointer; text-align: center; text-decoration: none;
  padding: 12px 24px; border-radius: 10px; font-size: 16px; font-weight: 700; transition: .2s;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2b2b30; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.93); }
.full { width: 100%; }
.btn-gold.big, .btn-wa.big { padding: 15px 28px; font-size: 18px; }

/* ===== Header (কালো লাইন) ===== */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 10; }
.nav {
  max-width: 1150px; margin: auto; padding: 10px 16px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  grid-template-areas: "brand ship right";
}
.nav.simple { display: flex; justify-content: space-between; }
.brand { grid-area: brand; display: flex; align-items: center; text-decoration: none; }
.logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.ship { grid-area: ship; text-align: center; color: var(--gold); font-weight: 600; font-size: 17px; letter-spacing: .3px; }
.nav-right { grid-area: right; display: flex; align-items: center; gap: 12px; }
.cart-btn {
  background: var(--gold); color: var(--black); border: none; padding: 9px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap;
}
.badge { background: var(--black); color: var(--gold); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 13px; }

/* সার্চ বার */
.searchbar {
  max-width: 1150px; margin: 0 auto; padding: 0 16px 12px; display: flex; gap: 0;
}
.searchbar input {
  flex: 1; min-width: 0; padding: 11px 16px; font-size: 16px; font-family: inherit;
  border: 2px solid transparent; border-radius: 10px 0 0 10px; background: #fff; color: var(--ink);
}
.searchbar input:focus { outline: none; border-color: var(--gold); }
.searchbar button {
  border: none; background: var(--gold); color: var(--black); padding: 0 20px; font-size: 18px; cursor: pointer; border-radius: 0 10px 10px 0;
}

/* ===== সোশ্যাল আইকন ===== */
.social { display: flex; align-items: center; gap: 8px; }
.soc {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  text-decoration: none; transition: transform .2s; flex: none;
}
.soc svg { width: 17px; height: 17px; }
.soc:hover { transform: translateY(-2px) scale(1.08); }
.soc.whatsapp { background: #25d366; }
.soc.facebook { background: #1877f2; }
.soc.instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.soc.tiktok { background: #161618; border: 1.5px solid rgba(255,255,255,.55); }
.big-social .soc { width: 42px; height: 42px; }
.big-social .soc svg { width: 22px; height: 22px; }
.big-social { margin-top: 10px; }

/* ===== Hero ===== */
.hero { background: radial-gradient(circle at 80% 20%, #2a2a31, var(--black) 60%); color: #fff; }
.hero-inner {
  max-width: 1150px; margin: auto; padding: 40px 16px 44px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center;
}
.pill { display: inline-block; background: rgba(245,197,24,.15); color: var(--gold); border: 1px solid rgba(245,197,24,.4); padding: 4px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 14px; }
.hero h1 { font-size: 42px; line-height: 1.25; margin-bottom: 12px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: #cfcfd6; margin-bottom: 22px; font-size: 17px; }
.hero-img { width: 100%; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.5); aspect-ratio: 1; object-fit: cover; }

/* ===== পণ্য ===== */
main { max-width: 1150px; margin: auto; padding: 36px 16px; }
.section-title { font-size: 28px; margin-bottom: 16px; scroll-margin-top: 150px; }
.section-title::after { content: ""; display: block; width: 56px; height: 4px; background: var(--gold); border-radius: 4px; margin-top: 6px; }

/* ট্যাব */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.tab {
  border: 1px solid #d6d3c9; background: #fff; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.tab:hover { border-color: var(--black); }
.tab.active { background: var(--black); color: var(--gold); border-color: var(--black); }
.dropdown { position: relative; }
.menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 170px; background: #fff;
  border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 6px; z-index: 20;
}
.menu.show { display: block; }
.menu button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 10px 14px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.menu button:hover { background: #f3f2ed; }
.menu button.on { background: var(--black); color: var(--gold); }

.result-info { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.no-result { grid-column: 1 / -1; text-align: center; padding: 50px 10px; font-size: 18px; color: var(--muted); line-height: 1.8; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.06); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.card-img { position: relative; aspect-ratio: 3/4; background: #eee; overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.card-img .alt { opacity: 0; }
.card:hover .card-img .alt { opacity: 1; }
.off { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; z-index: 2; }
.card-info { padding: 14px; }
.card-info h3 { font-size: 16px; margin-bottom: 6px; min-height: 48px; line-height: 1.5; }
.prices { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.now { font-size: 22px; font-weight: 800; color: var(--black); }
.old { color: var(--muted); font-size: 15px; }
.prices.big .now { font-size: 30px; }
.save { background: #dcfce7; color: var(--green); font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }

/* কার্ডের সাইজ বাটন */
.card-sizes { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.card-sizes span { margin-right: 2px; }
.card-sizes button {
  min-width: 38px; height: 32px; padding: 0 8px; border: 1.5px solid #cfcdc4; background: #fff; border-radius: 8px;
  font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.card-sizes button:hover { border-color: var(--black); }
.card-sizes button.on { background: var(--black); color: var(--gold); border-color: var(--black); }

/* ===== পপআপ ===== */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; z-index: 50; padding: 16px; overflow-y: auto; }
.modal.show { display: block; }
.modal-box {
  position: relative; background: #fff; max-width: 880px; margin: 20px auto; border-radius: 16px; padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.modal-close { position: absolute; top: 10px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--black); color: #fff; font-size: 22px; cursor: pointer; }
.main-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; background: #eee; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs img { width: 62px; height: 78px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; opacity: .7; }
.thumbs img.on { border-color: var(--gold-dark); opacity: 1; }
.detail h2 { font-size: 24px; margin: 4px 36px 8px 0; line-height: 1.35; }
.desc { color: #4b5563; margin-bottom: 12px; }
.feat-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-bottom: 14px; font-size: 14px; color: #374151; }
.label { font-weight: 700; margin: 12px 0 6px; }
.sizes { display: flex; gap: 10px; }
.sizes button { width: 54px; height: 44px; border: 1.5px solid #cfcdc4; background: #fff; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; }
.sizes button.on { background: var(--black); color: var(--gold); border-color: var(--black); }
.qty-box { display: inline-flex; align-items: center; border: 1.5px solid #cfcdc4; border-radius: 10px; overflow: hidden; }
.qty-box button { width: 42px; height: 42px; border: none; background: #f3f2ed; font-size: 20px; cursor: pointer; }
.qty-box span { min-width: 46px; text-align: center; font-weight: 700; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

/* ===== কার্ট প্যানেল ===== */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; z-index: 60; }
.overlay.show { display: block; }
.cart { position: fixed; top: 0; right: -420px; width: 100%; max-width: 390px; height: 100%; background: #fff; z-index: 70; transition: right .3s; display: flex; flex-direction: column; }
.cart.show { right: 0; }
.cart-head { padding: 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.cart-head button { background: none; border: none; font-size: 28px; cursor: pointer; }
.cart-items { flex: 1; overflow: auto; padding: 16px; }
.cart-foot { padding: 16px; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 4px; }
.hint { font-size: 13px; color: var(--muted); margin-bottom: 12px; }

.item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.item img { width: 64px; height: 82px; object-fit: cover; border-radius: 8px; background: #eee; }
.item .meta { flex: 1; font-size: 14px; }
.item .meta b { display: block; line-height: 1.35; }
.item .meta > span { color: var(--muted); }
.item .line { font-weight: 700; }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; }
.qty .remove { width: auto; border: none; color: var(--red); background: none; font-size: 13px; margin-left: 6px; }
.empty { text-align: center; color: var(--muted); margin-top: 50px; font-size: 18px; }

/* ===== Footer ===== */
.site-footer { background: var(--black); color: #cfcfd6; margin-top: 30px; padding: 36px 16px 0; }
.footer-top {
  max-width: 1150px; margin: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.footer-brand .logo { width: 72px; height: 72px; margin-bottom: 8px; }
.footer-brand p { margin-bottom: 12px; color: var(--gold); font-size: 14px; letter-spacing: .5px; }
.footer-col h4 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.footer-col a { display: block; color: #cfcfd6; text-decoration: none; margin-bottom: 8px; font-size: 15px; }
.footer-col a:hover { color: var(--gold); }
.site-footer .copy { max-width: 1150px; margin: 28px auto 0; padding: 16px 0 20px; border-top: 1px solid #2c2c33; text-align: center; font-size: 13px; color: #8b8b94; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(90px); background: var(--black); color: #fff; padding: 10px 22px; border-radius: 999px; transition: transform .3s, opacity .3s; z-index: 100; font-size: 15px; opacity: 0; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== তথ্য পেজ (info.html) ===== */
.info-wrap { max-width: 800px; display: grid; gap: 18px; }
.info-wrap .panel { scroll-margin-top: 90px; }
.info-wrap p { margin-bottom: 10px; color: #374151; }
.info-wrap ul { padding-left: 20px; color: #374151; }
.info-wrap li { margin-bottom: 8px; }
.info-wrap details { border-top: 1px solid var(--line); padding: 12px 0; margin: 0; }
.info-wrap details p { margin: 8px 0 0; }

/* ===== অর্ডার পেজ ===== */
.order-wrap { max-width: 1000px; }
.order-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; align-items: start; }
.panel { background: var(--card); border-radius: 14px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
.panel.center { text-align: center; max-width: 560px; margin: 20px auto; }
.panel.center p { margin-bottom: 12px; color: #4b5563; }
.big-emoji { font-size: 56px; }

form label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: 15px; }
input[type=text], input[type=tel], textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d6d3c9; border-radius: 10px; font-size: 16px; font-family: inherit; background: #fff;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
.bad { border-color: var(--red) !important; }
.err { color: var(--red); font-size: 13px; min-height: 4px; margin-top: 4px; }

.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio { display: flex !important; flex-direction: column; gap: 2px; padding: 12px; border: 1.5px solid #d6d3c9; border-radius: 10px; cursor: pointer; margin: 0 !important; }
.radio input { display: none; }
.radio.on { border-color: var(--black); background: #fffbe6; box-shadow: inset 0 0 0 1px var(--black); }
.radio b { color: var(--muted); font-size: 14px; }
.pay-note { background: #f3f2ed; padding: 12px 14px; border-radius: 10px; margin: 18px 0; font-size: 15px; }
form .btn-gold { margin-top: 4px; }

.summary { position: sticky; top: 80px; }
.summary .item img { width: 56px; height: 72px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px dashed var(--line); }
.sum-row.total { font-size: 20px; font-weight: 800; border-top: 2px solid var(--black); margin-top: 6px; padding-top: 12px; }

.warn { background: #fef3c7; border: 1px solid #fcd34d; padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 12px 0; text-align: left; }
details { text-align: left; margin: 16px 0; }
summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
#msgBox { margin-bottom: 10px; font-size: 14px; }
.link { color: var(--muted); }

/* ===== মোবাইল ===== */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 28px 16px; }
  .hero h1 { font-size: 32px; }
  .hero-img { max-height: 340px; }
  .modal { padding: 0; }
  .modal-box { grid-template-columns: 1fr; margin: 0; border-radius: 0; min-height: 100%; padding: 16px; }
  .order-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  /* মোবাইলে: ওপরে লোগো + কার্ট + আইকন, নিচে ডেলিভারি লেখা */
  .nav { grid-template-columns: auto 1fr; grid-template-areas: "brand right" "ship ship"; gap: 4px 10px; padding: 8px 12px; }
  .nav.simple { display: flex; }
  .nav-right { justify-content: flex-end; gap: 8px; }
  .logo { width: 46px; height: 46px; }
  .cart-btn { padding: 8px 12px; font-size: 14px; }
  .social { gap: 5px; }
  .soc { width: 28px; height: 28px; }
  .soc svg { width: 15px; height: 15px; }
  .ship { font-size: 14px; padding: 2px 0 4px; border-top: 1px solid #26262c; padding-top: 6px; }
  .searchbar { padding: 0 12px 10px; }
  .section-title { scroll-margin-top: 190px; }
  .tabs { gap: 6px; }
  .tab { padding: 8px 12px; font-size: 14px; }
  .menu { left: auto; right: 0; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-info { padding: 10px; }
  .card-info h3 { font-size: 14px; min-height: 42px; }
  .now { font-size: 18px; }
  .card-sizes { flex-wrap: wrap; gap: 4px; }
  .card-sizes span { display: none; }
  .card-sizes button { min-width: 32px; height: 30px; padding: 0 4px; }
  .actions { grid-template-columns: 1fr; }
  .btn-dark.full { padding: 10px; font-size: 14px; }
}
