/* ==========================================================
   Druksales - styles (on top of Bootstrap 5.3)
   Palette: deep maroon (header), saffron (actions), warm white.
   ========================================================== */
:root {
    --ds-maroon: #3d1210;
    --ds-maroon-2: #5a1c17;
    --ds-saffron: #ffb81c;
    --ds-saffron-dark: #f0a500;
    --ds-flame: #d9480f;
    --ds-ink: #1f1a17;
    --ds-bg: #f6f3ef;
    --ds-line: #e6dfd7;
}
body { background: var(--ds-bg); color: var(--ds-ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: #a3360c; text-decoration: none; }
a:hover { color: var(--ds-flame); text-decoration: underline; }
.text-brand { color: var(--ds-flame) !important; }

/* ---------- logo ---------- */
.brand-logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; color: #fff; text-decoration: none !important; white-space: nowrap; }
.brand-logo:hover { color: #fff; }
.brand-logo-dark, .brand-logo-dark:hover { color: var(--ds-maroon); }
.brand-mark { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .08em; border-radius: .45em; background: linear-gradient(135deg, var(--ds-saffron), var(--ds-flame)); color: var(--ds-maroon); font-size: .9em; }
.brand-logo-sm { font-size: 1.1rem; }

/* ---------- header ---------- */
.site-header { box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.topbar { background: var(--ds-maroon); color: #fff; }
.nav-pill { display: inline-block; padding: .3rem .55rem; border: 1px solid transparent; border-radius: .4rem; color: #fff; background: none; text-align: left; line-height: 1.15; text-decoration: none !important; }
.nav-pill:hover, .nav-pill:focus, .nav-pill.show { border-color: rgba(255,255,255,.6); color: #fff; }
.cart-pill { position: relative; display: inline-flex; align-items: center; gap: .25rem; }
.cart-count { position: absolute; top: -.1rem; left: 1.1rem; min-width: 1.25rem; padding: 0 .3rem; border-radius: 1rem; background: var(--ds-saffron); color: var(--ds-maroon); font-size: .75rem; font-weight: 800; text-align: center; }
.search-bar { display: flex; min-width: 0; border-radius: .5rem; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.search-bar:focus-within { box-shadow: 0 0 0 3px var(--ds-saffron); }
.search-cat { max-width: 9rem; border: 0; border-right: 1px solid var(--ds-line); background: #f1ece6; padding: 0 .5rem; font-size: .85rem; color: #444; }
.search-input { flex: 1; min-width: 0; border: 0; padding: .55rem .75rem; outline: none; }
.search-btn { border: 0; padding: 0 1rem; background: var(--ds-saffron); color: var(--ds-maroon); font-size: 1.15rem; }
.search-btn:hover { background: var(--ds-saffron-dark); }
.catbar { background: var(--ds-maroon-2); }
.catbar .container-xl { scrollbar-width: none; }
.catbar-link { padding: .45rem .6rem; color: #fff; white-space: nowrap; font-size: .9rem; border: 1px solid transparent; border-radius: .3rem; }
.catbar-link:hover, .catbar-link.active { color: #fff; border-color: rgba(255,255,255,.55); text-decoration: none; }

/* ---------- buttons ---------- */
.btn-brand { background: var(--ds-saffron); border-color: var(--ds-saffron-dark); color: var(--ds-maroon); font-weight: 600; }
.btn-brand:hover, .btn-brand:focus { background: var(--ds-saffron-dark); border-color: #d99400; color: var(--ds-maroon); }
.btn-buy { background: var(--ds-flame); border-color: #c13f0b; color: #fff; font-weight: 600; }
.btn-buy:hover { background: #c13f0b; color: #fff; }

/* ---------- home ---------- */
.hero { background: radial-gradient(1200px 400px at 80% 0%, #7a2a1c 0%, transparent 60%), linear-gradient(160deg, var(--ds-maroon-2), var(--ds-maroon)); color: #fff; padding: 3rem 0 6rem; }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hero-kicker { color: var(--ds-saffron); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .5rem; }
.hero-title { font-weight: 800; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.02em; }
.hero-sub { max-width: 34rem; opacity: .85; margin: 1rem 0 1.5rem; }
.hero-art { gap: 1rem; font-size: 4rem; color: var(--ds-saffron); }
.hero-art i { display: grid; place-items: center; width: 7rem; height: 7rem; border-radius: 1.5rem; background: rgba(255,255,255,.08); }
.hero-art i:nth-child(2) { transform: translateY(-1.5rem); }
.hero-overlap { margin-top: -4rem; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; height: 100%; padding: 1rem; border-radius: .75rem; background: #fff; color: var(--ds-ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.1); text-decoration: none; color: var(--ds-ink); }
.cat-tile i { font-size: 1.8rem; color: var(--ds-flame); margin-bottom: .25rem; }
.perks > div { background: #fff; border-radius: .5rem; padding: .75rem .5rem; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.perks i { color: var(--ds-flame); margin-right: .25rem; }
.shelf { background: #fff; border-radius: .75rem; padding: 1rem 1rem .5rem; margin-bottom: 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.shelf-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.shelf-title i { color: var(--ds-flame); }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 200px); gap: .75rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x mandatory; }
.shelf-item { scroll-snap-align: start; }

/* ---------- product card ---------- */
.product-card { display: flex; flex-direction: column; background: #fff; border-radius: .6rem; border: 1px solid var(--ds-line); color: var(--ds-ink); overflow: hidden; transition: box-shadow .15s; }
.product-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.1); text-decoration: none; color: var(--ds-ink); }
.product-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: #f9f6f2; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.product-thumb > i { font-size: 3.5rem; color: #c9b8a6; }
.deal-badge { position: absolute; top: .5rem; left: .5rem; padding: .1rem .45rem; border-radius: .3rem; background: var(--ds-flame); color: #fff; font-size: .75rem; font-weight: 700; }
.deal-badge.static { position: static; display: inline-block; vertical-align: middle; font-size: 1rem; }
.product-body { padding: .6rem .75rem .75rem; }
.product-name { font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.price { font-weight: 700; font-size: 1.1rem; }
.mrp { margin-left: .35rem; color: #8a817a; text-decoration: line-through; font-size: .85rem; }
.stars { color: #f59f00; white-space: nowrap; }

/* ---------- listing ---------- */
.filter-panel { background: #fff; border-radius: .6rem; padding: 1rem; border: 1px solid var(--ds-line); }
.filter-h { font-size: .9rem; font-weight: 700; margin-bottom: .4rem; }

/* ---------- product page ---------- */
.product-photo { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: .75rem; border: 1px solid var(--ds-line); position: sticky; top: 140px; }
.product-photo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 1rem; }
.product-photo > i { font-size: 8rem; color: #c9b8a6; }
.product-desc { white-space: normal; font-size: .95rem; }
.buy-box { background: #fff; border: 1px solid var(--ds-line); border-radius: .75rem; padding: 1rem; }
.star-pick { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-pick input { position: absolute; opacity: 0; width: 0; }
.star-pick label { font-size: 1.6rem; color: #d6cfc7; cursor: pointer; padding: 0 .1rem; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: #f59f00; }
.star-pick input:focus-visible + label { outline: 2px solid var(--ds-flame); border-radius: .2rem; }
.avatar { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #efe6dc; color: var(--ds-maroon); font-weight: 700; }

/* ---------- panels, cart, checkout ---------- */
.panel { background: #fff; border-radius: .75rem; padding: 1.25rem; border: 1px solid var(--ds-line); }
.cart-line { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--ds-line); }
.cart-thumb { flex: 0 0 auto; display: grid; place-items: center; width: 90px; height: 90px; background: #f9f6f2; border-radius: .5rem; }
.cart-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-thumb i { font-size: 2.2rem; color: #c9b8a6; }
.step { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ds-maroon); color: #fff; font-size: .85rem; margin-right: .3rem; }
.pay-option { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem; border: 1px solid var(--ds-line); border-radius: .5rem; margin-bottom: .5rem; }
.pay-option:has(input:checked) { border-color: var(--ds-saffron-dark); background: #fff9ea; }
.bank-box { padding: .75rem; border-radius: .5rem; background: #f9f6f2; }

/* ---------- orders ---------- */
.order-card { background: #fff; border: 1px solid var(--ds-line); border-radius: .75rem; overflow: hidden; }
.order-card-head { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: .75rem 1rem; background: #f3eee8; font-size: .9rem; }
.tracker { display: flex; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.tracker li { flex: 1; position: relative; text-align: center; font-size: .85rem; color: #8a817a; }
.tracker li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; margin: 0 auto .35rem; border-radius: 50%; background: #e6dfd7; color: #fff; font-weight: 700; position: relative; z-index: 1; }
.tracker li::after { content: ""; position: absolute; top: 1rem; left: -50%; width: 100%; height: 4px; background: #e6dfd7; }
.tracker li:first-child::after { display: none; }
.tracker li.done { color: var(--ds-ink); font-weight: 600; }
.tracker li.done::before { content: "\2713"; background: #2f9e44; }
.tracker li.done::after { background: #2f9e44; }

/* ---------- account ---------- */
.account-tile { display: flex; flex-direction: column; gap: .1rem; height: 100%; padding: 1rem; border: 1px solid var(--ds-line); border-radius: .75rem; background: #fff; color: var(--ds-ink); }
.account-tile:hover { background: #fffaf1; text-decoration: none; color: var(--ds-ink); }
.account-tile i { font-size: 1.6rem; color: var(--ds-flame); }
.sell-panel { background: linear-gradient(135deg, #fff9ea, #fff); border-color: #f5d68a; }
.divider-text { display: flex; align-items: center; gap: .75rem; color: #8a817a; font-size: .85rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; border-top: 1px solid var(--ds-line); }

/* ---------- seller & admin ---------- */
.admin-badge { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: .6rem; background: var(--ds-maroon); color: var(--ds-saffron); font-size: 1.2rem; }
.admin-badge.seller { background: var(--ds-flame); color: #fff; }
.sub-tabs { display: flex; gap: .25rem; overflow-x: auto; border-bottom: 2px solid var(--ds-line); }
.sub-tabs a { padding: .55rem .9rem; color: #5e5650; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 500; }
.sub-tabs a:hover { color: var(--ds-ink); text-decoration: none; }
.sub-tabs a.active { color: var(--ds-maroon); border-bottom-color: var(--ds-flame); font-weight: 700; }
.stat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ds-line); border-radius: .75rem; padding: 1rem; color: var(--ds-ink); height: 100%; }
a.stat:hover { text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.08); color: var(--ds-ink); }
.stat span { font-size: .8rem; color: #6d655f; text-transform: uppercase; letter-spacing: .03em; }
.stat b { font-size: 1.6rem; }
.stat.warn { border-color: #f5c46b; background: #fffaf0; }
.mini-thumb { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: .4rem; background: #f9f6f2; overflow: hidden; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb i { color: #b8a693; font-size: 1.3rem; }
.mini-thumb.lg { width: 80px; height: 80px; flex-basis: 80px; }
.bar-chart { display: flex; align-items: flex-end; gap: .35rem; height: 200px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem; font-size: .7rem; color: #8a817a; }
.bar { width: 100%; max-width: 28px; background: linear-gradient(180deg, var(--ds-saffron), var(--ds-flame)); border-radius: .3rem .3rem 0 0; }

/* ---------- footer ---------- */
.site-footer { background: #2a0d0b; color: #e8dcd2; margin-top: 2rem; }
.site-footer a { color: #e8dcd2; }
.back-to-top { background: var(--ds-maroon-2); color: #fff !important; font-size: .9rem; }
.back-to-top:hover { background: #6b241d; text-decoration: none; }
.footer-h { font-size: 1rem; font-weight: 700; color: #fff; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { background: #1c0807; }

@media (max-width: 767.98px) {
    .hero { padding: 2rem 0 5rem; }
    .cart-thumb { width: 64px; height: 64px; }
    .product-photo { position: static; }
}

/* ---------- payments ---------- */
.pay-option label { cursor: pointer; }
.pay-qr { width: 200px; max-width: 100%; border-radius: .5rem; background: #fff; padding: .4rem; border: 1px solid var(--ds-line); }
.pay-cards i { font-size: 1.2rem; margin-left: .2rem; }
.qr-thumb { width: 120px; border: 1px solid var(--ds-line); border-radius: .4rem; padding: .25rem; background: #fff; }
.gw-status { border-left: 4px solid var(--ds-saffron); }
.gw-status.ready { border-left-color: #2f9e44; }

/* ---------- Google button ---------- */
.btn-google { background: #fff; border: 1px solid #c9c2bb; color: #1f1a17; font-weight: 600; }
.btn-google:hover { background: #f7f4f1; border-color: #a99f96; }
.g-mark { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-right: .35rem; border-radius: 50%; background: #fff; border: 1px solid #ddd; font-weight: 800; font-size: .85rem; color: #4a6ee0; }

/* ---------- promotions ---------- */
.promo-strip { background: var(--ds-maroon); }
.promo-banner { display: flex; align-items: stretch; min-height: 220px; border-radius: .9rem; overflow: hidden; background: linear-gradient(120deg, #fff6e0, #ffe2b8); color: var(--ds-ink); text-decoration: none !important; }
.promo-banner:hover { color: var(--ds-ink); }
.promo-text { flex: 1 1 55%; padding: 1.5rem 1.75rem 2.5rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .4rem; }
.promo-badge { background: var(--ds-flame); color: #fff; font-weight: 800; font-size: .8rem; padding: .2rem .6rem; border-radius: 2rem; }
.promo-title { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.promo-sub { margin: 0; color: #5e5650; }
.promo-cta { margin-top: .4rem; font-weight: 700; color: var(--ds-flame); }
.promo-by { font-size: .8rem; color: #8a817a; }
.promo-pic { flex: 0 0 40%; display: grid; place-items: center; background: rgba(255,255,255,.55); }
.promo-pic img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; }
.promo-pic > i { font-size: 4rem; color: var(--ds-flame); }
.promo-strip .carousel-indicators { margin-bottom: .5rem; }
.promo-strip .carousel-indicators [data-bs-target] { background-color: var(--ds-maroon); }
.promo-strip .carousel-control-prev, .promo-strip .carousel-control-next { width: 6%; filter: invert(1) grayscale(1); }
.promo-row { display: flex; align-items: center; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--ds-line); }
.promo-thumb { flex: 0 0 72px; width: 72px; height: 48px; display: grid; place-items: center; border-radius: .4rem; overflow: hidden; background: #f9f6f2; color: #b8a693; }
.promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
img.promo-thumb { object-fit: cover; }
@media (max-width: 575.98px) { .promo-banner { flex-direction: column-reverse; } .promo-pic { flex-basis: 140px; } .promo-text { padding: 1rem 1.1rem 2.25rem; } }

/* ---------- logo ---------- */
.brand-mark-img { display: block; width: 40px; height: 40px; margin-right: .35rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); transition: transform .2s; }
.brand-logo:hover .brand-mark-img { transform: rotate(-6deg) scale(1.05); }
.brand-logo-sm .brand-mark-img { width: 30px; height: 30px; }
.brand-word { font-weight: 800; letter-spacing: -.03em; color: #fff; }
.brand-word > span { color: var(--ds-saffron); }
