/* Kachua POS — কাস্টমার সাইট স্টাইল */
:root { --brand: #e11d48; --ink: #0f172a; --accent: #f59e0b; --radius: 12px; }
body { font-family: 'Hind Siliguri', system-ui, sans-serif; background: #f5f6f8; color: #1e293b; }
a { color: inherit; }
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; color: #fff; }
.btn-brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-brand:hover, .btn-brand:focus { background: color-mix(in srgb, var(--brand) 85%, black); color: #fff; border-color: transparent; }
.btn-outline-brand { color: var(--brand); border-color: var(--brand); }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--brand) 18%, transparent); }
.card { border: 1px solid #e5e7eb; border-radius: var(--radius); }

.topbar { background: var(--ink); color: rgba(255,255,255,.8); }
.topbar a { color: rgba(255,255,255,.8); text-decoration: none; }
.brand-logo span { font-weight: 700; font-size: 1.35rem; color: var(--brand); white-space: nowrap; }
.search-box { max-width: 560px; }
.search-box .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.search-box .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cat-nav a { text-decoration: none; padding: .4rem .75rem; border-radius: 8px; font-weight: 500; font-size: .95rem; display: inline-block; }
.cat-nav a:hover { background: #f1f5f9; }
.dropdown-hover { position: relative; }
.dropdown-panel { display: none; position: absolute; top: 100%; left: 0; z-index: 1050; min-width: 200px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: .35rem; box-shadow: 0 10px 25px rgba(0,0,0,.08); }
.dropdown-panel a { display: block; }
.dropdown-hover:hover .dropdown-panel { display: block; }

.section-title { display: flex; justify-content: space-between; align-items: center; margin: 2rem 0 .8rem; }
.section-title h2 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.section-title a { color: var(--brand); text-decoration: none; font-weight: 500; font-size: .9rem; }

.hero-slider .carousel-item img { aspect-ratio: 16/5; object-fit: cover; width: 100%; border-radius: var(--radius); }
@media (max-width: 767px) { .hero-slider .carousel-item img { aspect-ratio: 16/7; } }

.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .8rem .4rem; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); text-decoration: none; font-size: .85rem; text-align: center; transition: .15s; height: 100%; }
.cat-tile:hover { border-color: var(--brand); color: var(--brand); }
.cat-tile img, .cat-tile .ph { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cat-tile .ph { display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, white); color: var(--brand); font-weight: 700; font-size: 1.2rem; }

.product-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 992px) { .product-grid { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); } }
.p-card { background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.p-card:hover { box-shadow: 0 8px 22px rgba(15,23,42,.08); }
.p-card .thumb { position: relative; display: block; aspect-ratio: 1; background: #f1f5f9; overflow: hidden; }
.p-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.p-card .thumb img.hover { position: absolute; inset: 0; opacity: 0; }
.p-card:hover .thumb img.hover { opacity: 1; }
.p-card:hover .thumb img.main { transform: scale(1.04); }
.p-card .off { position: absolute; top: 8px; left: 8px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; }
.p-card .oos { position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.6); color: #fff; text-align: center; font-size: .8rem; padding: 3px; }
.p-card .body { padding: .7rem; display: flex; flex-direction: column; flex: 1; }
.p-card .name { font-size: .92rem; font-weight: 500; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.p-card .name:hover { color: var(--brand); }
.p-card .short { font-size: .78rem; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { color: var(--brand); font-weight: 700; }
.price-old { color: #94a3b8; text-decoration: line-through; font-size: .82rem; }
.p-card .actions { margin-top: auto; padding-top: .6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.p-card .actions .btn { font-size: .8rem; padding: .3rem .25rem; }

.gallery-main { aspect-ratio: 1; background: #fff; border: 1px solid #e5e7eb; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: transform .08s; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .5rem; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; }
.gallery-thumbs img.active { border-color: var(--brand); }
.opt-btn { border: 1px solid #cbd5e1; background: #fff; border-radius: 8px; padding: .3rem .8rem; font-size: .9rem; }
.opt-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.opt-btn.na { opacity: .4; }
.qty-box { display: inline-flex; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; background: #fff; }
.qty-box button { border: 0; background: #fff; padding: .35rem .75rem; }
.qty-box input { width: 50px; border: 0; text-align: center; outline: 0; }
.nav-tabs .nav-link { color: #64748b; font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--brand); }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose table { width: 100%; }
.stars { color: #f59e0b; }

.steps { display: flex; align-items: center; }
.steps .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e2e8f0; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.steps .dot.on { background: var(--brand); color: #fff; }
.steps .bar { flex: 1; height: 4px; background: #e2e8f0; }
.steps .bar.on { background: var(--brand); }

.site-footer { background: var(--ink); color: rgba(255,255,255,.75); margin-top: 3rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.mobile-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: #fff; border-top: 1px solid #e5e7eb; display: grid; grid-template-columns: repeat(4, 1fr); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; font-size: .72rem; padding: .4rem 0; text-decoration: none; color: #64748b; }
.mobile-nav a i { font-size: 1.2rem; }
.mobile-nav .badge { position: absolute; top: 2px; right: 28%; font-size: .65rem; }
@media (max-width: 767px) { body.shop { padding-bottom: 60px; } }
.shop-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .6rem 1.2rem; border-radius: 999px; font-size: .9rem; z-index: 2000; display: none; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.shop-toast.show { display: block; }
