/* ══════════════════════════════════════════════════════════════
   RODELA — style.css · clean & minimal
   Brand: orange #ff723b · deep green #167c47 · bright green #20b262
   Light bg #ffffff · Dark bg #191919
   ══════════════════════════════════════════════════════════════ */
@font-face {
  font-family: "SutonnyOMJ";
  src: url("fonts/SutonnyOMJ.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
:root {
  --brand: #ff723b; --brand-deep: #e85a1e;
  --green: #167c47; --green-bright: #20b262;
  --bg: #ffffff; --bg-soft: #faf7f2; --card: #ffffff;
  --text: #22201d; --muted: #7a746c; --line: #eee7dd;
  --shadow: 0 10px 30px rgba(60, 35, 10, .08);
  --radius: 16px;
  --font: "Poppins", "SutonnyOMJ", "Hind Siliguri", "Noto Sans Bengali", sans-serif;
}
[data-theme="dark"] {
  --bg: #191919; --bg-soft: #202020; --card: #232323;
  --text: #f2ede7; --muted: #a79f95; --line: #33302c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.bn { font-family: "SutonnyOMJ", "Hind Siliguri", "Noto Sans Bengali", sans-serif; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* logo swap by theme */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* ── topbar + header ── */
.topbar { background: var(--green); color: #fff; font-size: .8rem; }
.topbar-in { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.topbar svg { width: 13px; height: 13px; vertical-align: -2px; }
.topbar-dot { opacity: .6; }
.site-header { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 46px; width: auto; }
.search { position: relative; flex: 1; max-width: 460px; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: 11px 16px 11px 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); outline: none; }
.search input:focus { border-color: var(--brand); background: var(--bg); }
.search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; display: none; z-index: 70; }
.search-results.open { display: block; }
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.search-results a:last-child { border-bottom: 0; }
.search-results a:hover { background: var(--bg-soft); }
.search-results b { color: var(--brand-deep); }
.search-results .no-hit { padding: 12px 16px; color: var(--muted); }
.h-actions { margin-left: auto; display: flex; align-items: flex-start; gap: 22px; }
.h-act { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; cursor: pointer; font-size: .72rem; color: var(--text); padding: 2px; }
.h-act svg { width: 24px; height: 24px; }
.h-act:hover { color: var(--brand-deep); }
.h-act .badge { position: absolute; top: -6px; right: 2px; background: var(--brand); color: #fff; font-size: .66rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.more-menu { position: absolute; right: 20px; top: 100%; width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 8px; z-index: 80; }
.more-menu a, .more-menu .theme-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: .93rem; background: none; border: 0; cursor: pointer; text-align: left; }
.more-menu a:hover, .more-menu .theme-btn:hover { background: var(--bg-soft); }
.more-menu .theme-btn svg { width: 18px; height: 18px; }
.site-header { position: sticky; }
.header-in { position: relative; }
.more-menu { position: absolute; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 600; cursor: pointer; transition: .2s; }
.btn:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn.green { background: var(--green); } .btn.green:hover { background: #0f6539; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ── hero ── */
.hero { background: linear-gradient(120deg, var(--bg-soft), #ffefe3); padding: 72px 0; }
[data-theme="dark"] .hero { background: linear-gradient(120deg, #202020, #2b2019); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.25; font-weight: 700; }
.hero h1 .accent { color: var(--brand); }
.hero p { color: var(--muted); margin: 16px 0 26px; max-width: 480px; font-size: 1.05rem; }
.hero-art { aspect-ratio: 1/1; max-height: 380px; border-radius: 28px; background: radial-gradient(circle at 30% 30%, #ffe3c8, #ffb27a); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8a4a12; box-shadow: var(--shadow); }
.hero-art .big { font-size: 5.2rem; line-height: 1; }
.hero-art small { font-size: 1rem; letter-spacing: .04em; }

/* ── sections + category ── */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 { font-size: 1.7rem; }
.section-head p { color: var(--muted); margin-top: 6px; }
.cat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; max-width: 640px; margin: 0 auto; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 18px; text-align: center; transition: .2s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card .cat-mark { font-size: 2.4rem; display: block; margin-bottom: 8px; color: var(--green); }
.cat-card b { display: block; font-size: 1.1rem; }
.cat-card small { color: var(--muted); }

/* ── product grid + cards ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-img { position: relative; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.card-mark { font-size: 3.4rem; color: rgba(90, 45, 5, .55); }
.off-badge { position: absolute; top: 12px; left: 12px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.wish-btn { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; }
.wish-btn svg { width: 18px; height: 18px; }
.wish-btn.on { color: #e0245e; border-color: #e0245e; }
.wish-btn.on svg { fill: #e0245e; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-name { font-weight: 600; font-size: 1.02rem; line-height: 1.45; }
.card-name small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.card-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.card-var { border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; background: var(--bg); font-size: .88rem; }
.card-price b { color: var(--brand-deep); font-size: 1.08rem; }
.card-price s { color: var(--muted); font-size: .85rem; margin-left: 4px; }
.btn-add { padding: 10px 18px; font-size: .92rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; grid-column: 1/-1; }

/* ── trust points ── */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.trust { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.trust .t-ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%; background: #eafaf1; color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
[data-theme="dark"] .trust .t-ico { background: #1d2f24; }
.trust b { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.trust p { color: var(--muted); font-size: .92rem; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 34px; padding: 48px 20px 34px; }
.foot-brand img { height: 42px; margin-bottom: 12px; }
.foot-brand p { color: var(--muted); font-size: .93rem; max-width: 280px; }
.site-footer h4 { margin-bottom: 14px; font-size: 1rem; }
.site-footer a, .site-footer p { display: block; color: var(--muted); font-size: .93rem; margin-bottom: 9px; }
.site-footer a:hover { color: var(--brand-deep); }
.site-footer p svg { width: 14px; height: 14px; vertical-align: -2px; }
.foot-bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ── WhatsApp popup ── */
.wa-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; align-items: center; gap: 10px; }
.wa-label { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 9px 15px; border-radius: 999px; font-size: .9rem; opacity: 0; transform: translateX(8px); transition: .45s; pointer-events: none; }
.wa-label.show { opacity: 1; transform: none; }
.wa-btn { width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(18, 140, 60, .4); animation: waPulse 2.2s infinite; }
.wa-btn svg { width: 30px; height: 30px; }
.wa-btn:hover { animation: waBounce .6s; }
@keyframes waPulse { 0% { box-shadow: 0 8px 22px rgba(18,140,60,.4), 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 8px 22px rgba(18,140,60,.4), 0 0 0 15px rgba(37,211,102,0); } 100% { box-shadow: 0 8px 22px rgba(18,140,60,.4), 0 0 0 0 rgba(37,211,102,0); } }
@keyframes waBounce { 0%,100% { transform: translateY(0); } 30% { transform: translateY(-7px); } 60% { transform: translateY(2px); } }

/* ── toast ── */
#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #22201d; color: #fff; padding: 11px 20px; border-radius: 999px; font-size: .92rem; box-shadow: var(--shadow); opacity: 0; transition: .3s; max-width: 92vw; text-align: center; }
[data-theme="dark"] .toast { background: #f2ede7; color: #22201d; }
.toast.show { opacity: 1; }

/* ── generic pages ── */
.page-head { padding: 44px 0 8px; text-align: center; }
.page-head h1 { font-size: 1.9rem; }
.page-head p { color: var(--muted); margin-top: 6px; }
.prose { max-width: 760px; margin: 0 auto; padding: 26px 20px 60px; }
.prose h2 { margin: 30px 0 10px; font-size: 1.25rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: 10px; }
.prose ul { padding-left: 20px; }

/* forms */
.form-card { max-width: 520px; margin: 26px auto 60px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; background: var(--bg); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); }
.pay-opts { display: grid; gap: 9px; }
.pay-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; cursor: pointer; font-size: .95rem; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--bg-soft); }
.note { font-size: .85rem; color: var(--muted); }
.success-box { text-align: center; padding: 20px 0; }
.success-box .ok { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #eafaf1; color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; }
.success-box b.oid { color: var(--brand-deep); font-size: 1.15rem; }

/* cart / checkout layout */
.shop-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; padding-bottom: 60px; }
.cart-item { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.cart-thumb { width: 74px; height: 74px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: rgba(90,45,5,.55); flex-shrink: 0; }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-info b { display: block; line-height: 1.4; }
.cart-item .ci-info small { color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 30px; height: 30px; border: 0; background: var(--bg-soft); cursor: pointer; font-size: 1rem; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.ci-remove { background: none; border: 0; color: #d33; cursor: pointer; font-size: .85rem; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.summary h3 { margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; color: var(--text); font-weight: 700; font-size: 1.1rem; }

/* product page */
.pd-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 44px 0 60px; align-items: start; }
.pd-img { aspect-ratio: 1/1; border-radius: 24px; display: flex; align-items: center; justify-content: center; position: relative; }
.pd-img .card-mark { font-size: 6rem; }
.pd-info h1 { font-size: 1.8rem; line-height: 1.35; }
.pd-info h1 small { color: var(--muted); font-size: 1.05rem; font-weight: 400; }
.pd-price { margin: 16px 0; } .pd-price b { font-size: 1.7rem; color: var(--brand-deep); } .pd-price s { color: var(--muted); margin-left: 8px; }
.var-chips { display: flex; gap: 9px; margin: 8px 0 20px; flex-wrap: wrap; }
.var-chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 600; }
.var-chip.on { border-color: var(--brand); background: #fff1e8; color: var(--brand-deep); }
[data-theme="dark"] .var-chip.on { background: #3a2718; }
.pd-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pd-desc { color: var(--muted); margin-top: 22px; }

/* track / orders */
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.order-card .oc-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.status { font-size: .78rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: #fff1e8; color: var(--brand-deep); }
.status.done { background: #eafaf1; color: var(--green); }
.order-card ul { list-style: none; color: var(--muted); font-size: .93rem; }
.order-card .oc-total { margin-top: 8px; font-weight: 700; }

/* admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.admin-table input, .admin-table select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: var(--bg); max-width: 150px; }
.mini-btn { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: .85rem; }
.mini-btn.danger { color: #d33; border-color: #f0c4c4; }
.admin-wrap { max-width: 1000px; margin: 0 auto; padding: 26px 20px 70px; }
.admin-sec { margin-top: 34px; } .admin-sec h2 { margin-bottom: 14px; font-size: 1.3rem; }

/* responsive */
@media (max-width: 900px) {
  .hero-in, .pd-layout, .shop-layout { grid-template-columns: 1fr; }
  .hero-art { max-height: 260px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-in { flex-wrap: wrap; gap: 12px; }
  .logo img { height: 38px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .h-actions { gap: 14px; }
  .h-act span { display: none; }
  .h-act .badge { right: -4px; }
  .topbar-in { justify-content: center; font-size: .72rem; flex-wrap: wrap; row-gap: 0; padding-top: 4px; padding-bottom: 4px; text-align: center; }
  .section { padding: 40px 0; }
}
