/* SAJID STORE — storefront styles. Colours come from Admin → Settings → Colors & Style. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font, system-ui, sans-serif); font-size: 15px; line-height: 1.55;
    color: var(--text, #16161d); background: var(--bg, #fff);
}
img { max-width: 100%; display: block; }
a { color: var(--primary, #5b3df5); text-decoration: none; }
a:hover { color: var(--primary-dark, #4527d6); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted, #6b6b80); }
.small { font-size: 13px; }
.desktop-only { display: block; }
.mobile-only { display: none; }

/* announcement */
.announce { background: var(--primary); color: #fff; text-align: center; padding: 8px 12px; font-size: 13px; }
.announce a { color: #fff; text-decoration: underline; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { font-weight: 700; font-size: 20px; color: var(--text); letter-spacing: .3px; display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }
.logo.small { font-size: 18px; margin-bottom: 8px; }
.menu { display: flex; gap: 18px; flex: 1; }
.menu a { color: var(--text); font-weight: 500; }
.menu a:hover { color: var(--primary); }
.search input { width: 220px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; background: none; border: 0; font-size: 20px; cursor: pointer; padding: 6px 8px; color: var(--text); }
.count { position: absolute; top: -2px; right: -2px; background: var(--accent); color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font); }
.burger { display: none; }

/* buttons */
.btn { display: inline-block; border: 1px solid var(--border); background: var(--bg); color: var(--text); padding: 10px 18px; border-radius: calc(var(--radius) - 4px); font: inherit; font-weight: 600; cursor: pointer; text-align: center; transition: .15s; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { color: var(--primary-dark); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* layout bits */
.main { padding: 24px 0 56px; min-height: 60vh; }
.page-title { font-size: 26px; margin-bottom: 18px; }
.block { margin-top: 44px; }
.block-title { font-size: 22px; margin-bottom: 16px; }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.card.pad, .pad { padding: 20px; }
.card.pad { margin-bottom: 18px; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* hero */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px; border-radius: calc(var(--radius) + 6px); color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.hero h1 { font-size: clamp(26px, 4vw, 42px); }
.hero p { max-width: 520px; opacity: .92; margin: 0 0 22px; }
.hero-img { max-height: 240px; width: auto; border-radius: var(--radius); }

/* banners */
.banners { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 22px; padding-bottom: 6px; }
.banner { position: relative; flex: 0 0 min(560px, 88%); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); display: block; }
.banner img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.banner-text { position: absolute; inset: auto 0 0 0; padding: 14px 18px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

/* categories / chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-weight: 500; background: var(--bg); }
.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chip:hover, .chip.active { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--bg)); }
.filters { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
select, input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], textarea {
    font: inherit; color: var(--text); background: var(--bg);
}
.sort select { padding: 8px 12px; border: 1px solid var(--border); border-radius: calc(var(--radius) - 6px); }

/* products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-card { display: flex; flex-direction: column; transition: .15s; }
.product-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.thumb { position: relative; display: block; background: #f6f6fa; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag.inline { position: static; display: inline-block; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body form { margin-top: auto; }
.p-name { color: var(--text); font-weight: 600; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 18px; font-weight: 700; color: var(--primary); }
.old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.price-row.big .price { font-size: 28px; }

/* product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pd-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pd-info h1 { font-size: 28px; margin: 4px 0 10px; }
.note { background: color-mix(in srgb, var(--primary) 7%, var(--bg)); border: 1px solid var(--border); padding: 12px 14px; border-radius: calc(var(--radius) - 4px); margin: 14px 0; font-size: 14px; }
.buy-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.qty { width: 80px; padding: 10px; border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); }
.prose { line-height: 1.75; }

/* features / faq */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.feature { padding: 20px; text-align: center; }
.f-icon { font-size: 30px; margin-bottom: 6px; }
.faq { border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); padding: 14px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* tables / forms */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.row-product { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 500; }
.row-product img { width: 54px; height: 42px; object-fit: cover; border-radius: 8px; }
.link-danger { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 16px; }
.cart-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.cart-total { display: flex; align-items: center; gap: 14px; font-size: 18px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); }
.form-row input:focus, .search input:focus, .qty:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); border-color: var(--primary); }
.check { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; font-size: 14px; }

/* checkout / orders */
.checkout-grid, .order-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.gateway { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: calc(var(--radius) - 4px); margin-bottom: 10px; cursor: pointer; }
.gateway:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--bg)); }
.gateway img { height: 28px; width: auto; }
.gateway small { display: block; }
.summary { position: sticky; top: 84px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.sum-line.total { font-weight: 700; font-size: 18px; border-bottom: 0; margin-bottom: 12px; }
.rules { margin-bottom: 10px; color: var(--muted); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) - 4px); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-file { width: 100%; border-radius: calc(var(--radius) - 4px); }
.status-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eee; color: #444; }
.badge-pending, .pay-unpaid { background: #fff3cd; color: #8a6d00; }
.badge-processing, .pay-submitted { background: #dbeafe; color: #1e55b3; }
.badge-completed, .pay-paid { background: #d9f7e3; color: #11683a; }
.badge-cancelled, .pay-failed { background: #fde0e0; color: #a12020; }
.delivery { margin-top: 18px; padding: 16px; border: 1px dashed var(--primary); border-radius: calc(var(--radius) - 4px); background: color-mix(in srgb, var(--primary) 5%, var(--bg)); }
.delivery pre { white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, Menlo, monospace; margin: 0; }

/* auth */
.auth-box { max-width: 440px; margin: 20px auto; }

/* alerts */
.alert { padding: 12px 16px; border-radius: calc(var(--radius) - 4px); margin-bottom: 16px; font-size: 14px; }
.alert-ok { background: #e7f8ee; color: #11683a; border: 1px solid #bfe9cf; }
.alert-err { background: #fdecec; color: #a12020; border: 1px solid #f5c2c2; }

/* pagination */
.pager { display: flex; gap: 6px; justify-content: center; margin: 26px 0 0; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text); padding: 0 8px; }
.pager .active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .disabled { opacity: .45; }

/* footer */
.site-footer { background: color-mix(in srgb, var(--text) 4%, var(--bg)); border-top: 1px solid var(--border); padding-top: 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.footer-grid a { display: block; color: var(--text); margin-bottom: 6px; }
.footer-grid a:hover { color: var(--primary); }
.copyright { text-align: center; padding: 22px 0 26px; color: var(--muted); font-size: 13px; }

/* responsive */
@media (max-width: 860px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block; }
    .burger { display: block; }
    .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
    .menu.open { display: flex; }
    .menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .menu .search { margin-top: 12px; }
    .menu .search input { width: 100%; }
    .nav { gap: 8px; }
    .logo { flex: 1; }
    .hero { padding: 28px 22px; flex-direction: column; align-items: flex-start; }
    .product-detail, .checkout-grid, .order-grid, .footer-grid { grid-template-columns: 1fr; }
    .summary { position: static; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-body { padding: 10px; }
}
@media (max-width: 420px) {
    .nav-actions .btn-sm { padding: 6px 10px; }
}

/* =====================================================================
   NEW MOBILE-FIRST DESIGN (soft gradient page, rounded cards, floating tab bar)
   ===================================================================== */
:root { --page1: #e4f0fb; --page2: #f4f1fb; --page3: #fdece0; --card: #ffffff; --glass: rgba(255,255,255,.78); --shadow: 0 8px 28px rgba(31,41,55,.10); }
html[data-theme="dark"] {
    --bg: #1a1f2b; --card: #1a1f2b; --text: #eef0f6; --muted: #98a2b5; --border: #2b3345;
    --page1: #0e1219; --page2: #121722; --page3: #17141a; --glass: rgba(26,31,43,.85); --shadow: 0 8px 28px rgba(0,0,0,.45);
    color-scheme: dark;
}
html { scroll-behavior: smooth; }
body {
    background: linear-gradient(160deg, var(--page1) 0%, var(--page2) 48%, var(--page3) 100%) fixed;
    min-height: 100vh; padding-bottom: 96px;
    -webkit-tap-highlight-color: transparent;
}
.card, .pcard, .chip, .gateway, .faq { background: var(--card); }
.container { width: min(1180px, 100% - 28px); }
.main { padding: 14px 0 40px; }
.page-title { font-size: 24px; font-weight: 700; }
.block-title { font-size: 20px; font-weight: 700; }

/* ---- header ---- */
.site-header { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.nav { height: 62px; gap: 14px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -.2px; flex: 0 0 auto; }
.logo img { height: 34px; }
.menu { gap: 22px; flex: 1; justify-content: center; }
.menu a { font-weight: 500; font-size: 14px; }
.nav-actions { gap: 6px; margin-left: auto; }
.nav-actions .sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.hbtn { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; padding: 6px 8px; border-radius: 10px; }
.hbtn svg { width: 20px; height: 20px; }
.hbtn:hover { color: var(--primary); }
.user-btn { width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1.6px solid var(--primary); color: var(--primary); }
.user-btn svg { width: 18px; height: 18px; }
.cart-link { position: relative; }
.cart-link .count { top: -1px; right: -3px; }
.search { position: relative; }
.search input { width: 230px; padding: 9px 14px; background: var(--card); }

/* ---- slider ---- */
.slider { position: relative; margin-top: 4px; }
.slides { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; box-shadow: var(--shadow); }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; display: block; background: var(--card); }
.slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.slide-text { position: absolute; inset: auto 0 0 0; padding: 36px 18px 30px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.slide-text strong { font-size: 18px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 45%, transparent); transition: .25s; cursor: pointer; }
.dots i.on { width: 26px; background: var(--primary); }
.hero { border-radius: 22px; box-shadow: var(--shadow); }

/* ---- hero banner slider (YouTube size 16:9) ---- */
.hero-banner { max-width: 980px; margin-inline: auto; }
.hero-banner .slide img { aspect-ratio: 16 / 9; }
.hero-banner .slide-text strong { font-size: clamp(18px, 4vw, 30px); }

/* ---- category chips (single scroll row) ---- */
.chip-row { display: flex; gap: 10px; overflow-x: auto; padding: 14px 2px 4px; margin: 0 -14px; padding-inline: 14px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chip { flex: 0 0 auto; white-space: nowrap; padding: 10px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 2px 8px rgba(31,41,55,.05); }
.chip { color: var(--text); }
.chip img { width: 20px; height: 20px; border-radius: 6px; }

/* ---- search box ---- */
.search-big { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 6px 6px 6px 14px; margin-top: 14px; box-shadow: 0 2px 10px rgba(31,41,55,.05); }
.search-big svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.search-big input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 8px 0; }
.search-big button { border: 0; cursor: pointer; font: inherit; font-weight: 600; color: var(--primary-dark); padding: 9px 16px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 22%, #fff); }
html[data-theme="dark"] .search-big button { background: color-mix(in srgb, var(--primary) 30%, transparent); color: #fff; }

/* ---- heading area ---- */
.intro { margin-top: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.intro .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #2563eb; }
.intro h1 { font-size: clamp(22px, 5.4vw, 32px); font-weight: 700; margin: 4px 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 12px; }
.section-head h2 { margin: 0; font-size: 19px; font-weight: 700; }
.section-head span { color: var(--muted); font-size: 13px; }

/* ---- product cards ---- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 2px 10px rgba(31,41,55,.05); transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pc-media { position: relative; display: block; background: linear-gradient(135deg, #eef2ff, #fdf2f8); }
.pc-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.badge-top { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; background: rgba(31,41,55,.88); color: #fff; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 10px; max-width: 70%; }
.badge-top.hot { background: var(--primary); }
.heart { position: absolute; top: 9px; right: 9px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--glass); color: var(--muted); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); }
.heart svg { width: 17px; height: 17px; }
.heart.on { color: #ef4444; }
.heart.on svg { fill: #ef4444; }
.pc-pills { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--glass); backdrop-filter: blur(6px); color: var(--text); font-size: 10.5px; font-weight: 600; padding: 4px 8px; border-radius: 99px; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; display: inline-block; }
.pill.out i { background: #ef4444; }
.pill svg { width: 11px; height: 11px; color: #f59e0b; fill: #f59e0b; }
.pc-body { display: flex; flex-direction: column; gap: 5px; padding: 12px 12px 14px; color: var(--text); flex: 1; }
.pc-body:hover { color: var(--text); }
.pc-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.pc-meta em { font-style: normal; color: var(--muted); font-weight: 500; text-transform: none; white-space: nowrap; }
.pc-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-desc { color: var(--muted); font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.pc-cur { font-size: 10.5px; color: var(--muted); }
.pc-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.pc-price .price { font-size: 19px; font-weight: 800; color: var(--text); }
.pc-price .old { font-size: 12px; margin-left: 6px; }
.off { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary-dark); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.tag { background: var(--primary); }

/* ---- Cart / Buy Now buttons under every product ---- */
.pc-actions { display: flex; gap: 8px; padding: 0 12px 12px; margin: 0; }
.pc-btn { flex: 1 1 0; min-width: 0; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; padding: 10px 6px; font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap; transition: .15s; }
.pc-btn svg { width: 17px; height: 17px; flex: 0 0 auto; }
.pc-cart { background: #eff6ff; border: 1.5px solid #bfdbfe; color: #1e293b; }
.pc-cart:hover { border-color: #60a5fa; background: #dbeafe; }
.pc-buy { background: var(--primary); border: 1.5px solid var(--primary); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent); }
.pc-buy:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.pc-btn:active { transform: scale(.97); }
.pc-btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
html[data-theme="dark"] .pc-cart { background: color-mix(in srgb, #3b82f6 16%, transparent); border-color: color-mix(in srgb, #60a5fa 45%, transparent); color: var(--text); }
@media (max-width: 480px) {
    .pc-actions { gap: 6px; padding: 0 8px 10px; }
    .pc-btn { font-size: 12px; gap: 4px; padding: 10px 4px; border-radius: 11px; }
    .pc-btn svg { width: 14px; height: 14px; }
    .pc-btn span { overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 400px) { .pc-buy svg { display: none; } }

/* ---- package popup ---- */
.pkg-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pkg-overlay[hidden] { display: none; }
body.pkg-open { overflow: hidden; }
.pkg-sheet { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); color: var(--text); border-radius: 24px; padding: 20px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.35); animation: pkgIn .2s ease-out; }
@keyframes pkgIn { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.pkg-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--text); cursor: pointer; font-size: 14px; }
.pkg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-right: 38px; }
.pkg-head img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; background: #f1f1f5; }
.pkg-head strong { display: block; font-size: 16px; line-height: 1.25; }
.pkg-head span { color: var(--muted); font-size: 12.5px; }
.pkg-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; }
.pkg-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: .15s; }
.pkg-opt:hover, .pkg-opt:focus-visible { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--card)); outline: 0; }
.pkg-name { font-weight: 700; font-size: 15px; }
.pkg-price { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pkg-price b { color: var(--primary); font-size: 16px; font-weight: 800; }
.pkg-price s { color: var(--muted); font-size: 12px; }
.pkg-options { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; }
.pkg-radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; }
.pkg-radio input { accent-color: var(--primary); }
.pkg-radio .pkg-name { flex: 1; }
.pkg-radio:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--card)); }

/* ---- floating bottom tab bar ---- */
.tabbar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(420px, 100% - 24px); z-index: 60; display: flex; justify-content: space-around; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid color-mix(in srgb, var(--border) 70%, transparent); border-radius: 26px; box-shadow: 0 12px 34px rgba(31,41,55,.18); padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); }
.tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 500; padding: 4px 2px; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--primary); font-weight: 700; }
.tab:hover { color: var(--primary); }
.tab .count { top: -2px; right: 50%; margin-right: -22px; }

/* ---- product page / misc polish ---- */
.product-detail { gap: 22px; }
.pd-image { border-radius: 22px; }
.pd-info h1 { font-weight: 700; }
.btn { border-radius: 14px; }
.btn-primary { box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 35%, transparent); }
.note { border-radius: 14px; }
.card { border-radius: 20px; }
.site-footer { background: transparent; border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent); margin-top: 8px; }

/* ---- desktop ---- */
@media (min-width: 861px) {
    body { padding-bottom: 0; }
    .tabbar { display: none; }
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
    .main { padding-top: 22px; }
    .slide img { aspect-ratio: 21 / 8; }
    .chip-row { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 0; }
    .search-big { max-width: 640px; }
}
@media (max-width: 860px) {
    .desktop-only { display: none !important; }
    .menu { display: none !important; }
    .nav { gap: 8px; }
    .logo { flex: 1; font-size: 18px; }
    .nav-actions { margin-left: 0; }
}
@media (max-width: 380px) { .pc-title { font-size: 13.5px; } .pc-price .price { font-size: 17px; } }


/* =====================================================================
   PRODUCT PAGE (price row, Product Details box, Duration chips, buttons, tabs)
   ===================================================================== */
.pd-info h1 { font-size: 22px; margin: 2px 0 8px; }
.pd-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.pd-price { color: var(--primary); font-size: 22px; font-weight: 800; letter-spacing: -.2px; }
.pd-old { color: var(--muted); font-size: 15px; }
.pd-stock { background: color-mix(in srgb, var(--primary) 14%, var(--card)); color: var(--primary); font-weight: 600; font-size: 14px; padding: 4px 14px; border-radius: 10px; }
.pd-stock.out { background: color-mix(in srgb, #ef4444 14%, var(--card)); color: #dc2626; }

.pd-details { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1.5px dotted var(--border); }
.pd-details-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pd-ico { font-size: 38px; line-height: 1; }
.pd-details-head h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.3px; }
.pd-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.5; }
.pd-points li { display: flex; align-items: flex-start; gap: 8px; }
.pd-points .dia { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 7px; background: #3b82f6; transform: rotate(45deg); border-radius: 1px; }
.pd-points b { font-weight: 700; }
.pd-plain { margin: 0; color: var(--muted); }

.pd-form { display: block; margin-top: 4px; }
.pd-duration h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.pd-warn { color: #dc2626; font-size: 13px; margin: 8px 0 0; }
.pd-warn[hidden] { display: none; }

.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qty-step { display: inline-flex; align-items: stretch; border: 1.5px solid color-mix(in srgb, var(--primary) 35%, var(--border)); border-radius: 10px; overflow: hidden; background: var(--card); }
.qty-step button { width: 40px; border: 0; background: color-mix(in srgb, var(--primary) 10%, var(--card)); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; }
.qty-step button:active { background: color-mix(in srgb, var(--primary) 22%, var(--card)); }
.qty-step input { width: 52px; border: 0; text-align: center; font: inherit; font-weight: 600; background: transparent; color: var(--text); -moz-appearance: textfield; padding: 0; }
.qty-step input::-webkit-outer-spin-button, .qty-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-step input:focus { outline: 0; }
.pd-btn { border: 0; border-radius: 10px; padding: 13px 18px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: .15s; }
.pd-btn:active { transform: scale(.985); }
.pd-cart { flex: 1 1 0; min-width: 140px; background: var(--primary); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 32%, transparent); }
.pd-cart:hover { background: var(--primary-dark); }
.pd-buy { flex: 1 1 100%; background: var(--text); color: var(--bg); }
.pd-buy:hover { opacity: .88; }

.pd-tabs { padding: 0; }
.pd-tabbar { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--border); overflow-x: auto; }
.pd-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.pd-tab:hover { color: var(--primary); }
.pd-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
span.pd-tab { cursor: default; }
.pd-pane { padding: 18px 20px 22px; }
.pd-pane[hidden] { display: none; }
.rich h1, .rich h2, .rich h3, .rich h4 { margin: 1.1em 0 .4em; }
.rich h2 { font-size: 20px; } .rich h3 { font-size: 17px; }
.rich p { margin: 0 0 .9em; }
.rich ul, .rich ol { padding-left: 1.3em; margin: 0 0 .9em; }
.rich li { margin-bottom: .3em; }
.rich img { border-radius: 12px; margin: 10px 0; }
.rich a { text-decoration: underline; }
.rich hr { border: 0; border-top: 1px dotted var(--border); margin: 1.2em 0; }

/* ---- plan list (Duration → price rows) ---- */
.pd-duration h3 { font-size: 16px; font-weight: 700; letter-spacing: .2px; margin: 0 0 12px; }
.pd-plans { display: flex; flex-direction: column; gap: 10px; }
.pd-plan { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 16px; background: var(--card); cursor: pointer; transition: .18s; box-shadow: 0 2px 8px rgba(31,41,55,.04); }
.pd-plan:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(31,41,55,.08); }
.pd-plan input { position: absolute; opacity: 0; pointer-events: none; }
.pd-radio { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--muted) 55%, var(--border)); display: grid; place-items: center; transition: .18s; }
.pd-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: .18s; }
.pd-plan-name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.pd-plan-name em { font-style: normal; font-size: 11px; font-weight: 700; color: #16a34a; background: color-mix(in srgb, #16a34a 13%, var(--card)); padding: 2px 8px; border-radius: 99px; }
.pd-plan-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; white-space: nowrap; }
.pd-plan-price b { font-size: 18px; font-weight: 800; color: var(--text); }
.pd-plan-price s { font-size: 12px; color: var(--muted); }
.pd-plan:has(input:checked) { border-color: var(--primary); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 11%, var(--card)), var(--card)); box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 22%, transparent); }
.pd-plan:has(input:checked) .pd-radio { background: var(--primary); border-color: var(--primary); }
.pd-plan:has(input:checked) .pd-radio::after { transform: scale(1); }
.pd-plan:has(input:checked) .pd-plan-price b { color: var(--primary); }
.pd-plan:has(input:focus-visible) { outline: 2px solid color-mix(in srgb, var(--primary) 50%, transparent); outline-offset: 2px; }

/* ---- WhatsApp / Telegram buttons (animated) ---- */
.pd-contact { margin-top: 20px; padding-top: 16px; border-top: 1.5px dotted var(--border); }
.pd-contact-title { margin: 0 0 12px; font-weight: 600; font-size: 14.5px; color: var(--muted); text-align: center; }
.pd-contact-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ct-btn { position: relative; flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: 14px; color: #fff !important; font-weight: 700; font-size: 15.5px; overflow: hidden; isolation: isolate; transition: transform .18s, box-shadow .18s; animation: ctFloat 3.2s ease-in-out infinite; }
.ct-btn svg { width: 24px; height: 24px; flex: 0 0 auto; animation: ctWiggle 2.6s ease-in-out infinite; transform-origin: 50% 60%; }
.ct-wa { background: linear-gradient(135deg, #25d366, #128c7e); --ring: 37, 211, 102; animation: ctFloat 3.2s ease-in-out infinite, ctPulse 2s ease-out infinite; }
.ct-tg { background: linear-gradient(135deg, #2aabee, #1c80c9); --ring: 42, 171, 238; animation: ctFloat 3.2s ease-in-out .5s infinite, ctPulse 2s ease-out .6s infinite; }
.ct-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: ctShine 3.4s ease-in-out infinite; z-index: -1; }
.ct-tg::after { animation-delay: 1.2s; }
.ct-btn:hover { transform: translateY(-3px) scale(1.03); animation-play-state: paused; color: #fff; }
.ct-btn:active { transform: scale(.97); }
@keyframes ctPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--ring), .55); } 70% { box-shadow: 0 0 0 14px rgba(var(--ring), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--ring), 0); } }
@keyframes ctFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes ctWiggle { 0%, 60%, 100% { transform: rotate(0); } 66% { transform: rotate(-14deg) scale(1.1); } 74% { transform: rotate(12deg) scale(1.1); } 82% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }
@keyframes ctShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .ct-btn, .ct-btn svg, .ct-btn::after { animation: none !important; } }

/* ---- Live Orders box ---- */
.live-box { margin-top: 30px; padding: 16px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border)); border-top: 3px solid var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--card)); box-shadow: var(--shadow); }
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.live-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.live-head h2 svg { width: 16px; height: 16px; color: var(--primary); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, #16a34a 14%, var(--card)); color: var(--text); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.6); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }
.live-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.live-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; animation: liveIn .4s ease-out both; }
@keyframes liveIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.live-top { display: flex; align-items: center; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.live-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.live-who { flex: 1; min-width: 0; line-height: 1.25; }
.live-who strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-who small { color: var(--muted); font-size: 11px; }
.live-status { font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 16%, var(--card)); color: var(--text); }
.live-status.st-completed { background: color-mix(in srgb, #16a34a 15%, var(--card)); color: #166534; }
.live-status.st-processing { background: color-mix(in srgb, #f59e0b 18%, var(--card)); color: #92400e; }
html[data-theme="dark"] .live-status.st-completed { color: #86efac; }
html[data-theme="dark"] .live-status.st-processing { color: #fcd34d; }
.live-item { display: flex; align-items: center; gap: 10px; padding-top: 9px; }
.live-item img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: #f1f1f5; }
.live-prod { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.live-prod b { font-size: 12px; text-transform: uppercase; line-height: 1.25; overflow-wrap: anywhere; }
.live-chip { font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: color-mix(in srgb, var(--primary) 12%, var(--card)); color: var(--primary); }
.live-gw { font-size: 11px; font-weight: 700; color: #fff; padding: 3px 11px; border-radius: 99px; background: #16a34a; white-space: nowrap; }
.live-gw.gw-nagad { background: linear-gradient(90deg, #ef3c24, #f7931e); }
.live-gw.gw-bkash { background: linear-gradient(90deg, #e2136e, #b50f58); }
.live-gw.gw-rocket { background: linear-gradient(90deg, #8e24aa, #6a1b9a); }
.live-price { font-weight: 800; font-size: 14px; white-space: nowrap; }
.live-comment { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed var(--border); text-align: center; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
@media (max-width: 700px) { .live-grid { grid-template-columns: 1fr; } .live-box { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .live-card, .live-pill i { animation: none; } }
