/* =====================================================================
   PB SHOP BD — shared storefront styles (header, footer, product cards,
   slider, categories, side ads, tracking timeline, account pages).
   Everything is prefixed "pb-" so it never clashes with page styles.
===================================================================== */
:root {
    --pb-navy: #071b33;
    --pb-navy-2: #12283d;
    --pb-blue: #0b5cab;
    --pb-sky: #b5f1f1;
    --pb-orange: #f28c18;
    --pb-orange-d: #d97706;
    --pb-green: #16a34a;
    --pb-red: #dc2626;
    --pb-ink: #0f172a;
    --pb-text: #334155;
    --pb-muted: #64748b;
    --pb-line: #e2e8f0;
    --pb-bg: #f5f7fb;
    --pb-radius: 14px;
    --pb-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --pb-font: 'Poppins', 'Segoe UI', Arial, Helvetica, sans-serif;
}

.pb-wrap { width: 92%; max-width: 1250px; margin: 0 auto; }
.pb-font, .pb-header, .pb-footer, .pb-page { font-family: var(--pb-font); }
.pb-page { background: var(--pb-bg); color: var(--pb-text); min-height: 50vh; padding: 28px 0 60px; }
.pb-page a { text-decoration: none; }

/* ---------- buttons ---------- */
.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 18px; font: 600 14px/1.2 var(--pb-font); cursor: pointer; text-decoration: none; transition: .18s; white-space: nowrap; }
.pb-btn:disabled { opacity: .55; cursor: not-allowed; }
.pb-btn-cart { background: #fff; color: var(--pb-navy); border: 2px solid var(--pb-navy); }
.pb-btn-cart:hover:not(:disabled) { background: var(--pb-navy); color: #fff; }
.pb-btn-buy { background: var(--pb-orange); color: #fff; border: 2px solid var(--pb-orange); }
.pb-btn-buy:hover:not(:disabled) { background: var(--pb-orange-d); border-color: var(--pb-orange-d); }
.pb-btn-dark { background: var(--pb-navy); color: #fff; }
.pb-btn-dark:hover { background: #0e2f56; }
.pb-btn-light { background: #eef2f7; color: var(--pb-ink); }
.pb-btn-light:hover { background: #e2e8f0; }
.pb-btn-green { background: var(--pb-green); color: #fff; }
.pb-btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 8px; }

/* =====================================================================
   HEADER
===================================================================== */
.pb-header a { text-decoration: none; }
.pb-utility { background: var(--pb-navy); color: #cbd5e1; font-size: 13px; }
.pb-utility .pb-wrap { max-width: 1450px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; flex-wrap: wrap; }
.pb-utility a { color: #e2e8f0; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.pb-utility a:hover { color: #fff; }
.pb-utility-right { display: flex; align-items: center; gap: 18px; }
.pb-social { display: flex; align-items: center; gap: 8px; }
.pb-social a { display: inline-flex; transition: transform .18s; border-radius: 50%; }
.pb-social a:hover { transform: translateY(-2px) scale(1.08); }

.pb-main-header { background: var(--pb-navy-2); border-bottom: 1px solid rgba(255,255,255,.08); }
.pb-main-header .pb-wrap { max-width: 1450px; display: flex; align-items: center; gap: 18px; min-height: 86px; }
.pb-logo img { height: 62px; width: auto; display: block; }
.pb-search { flex: 1; min-width: 220px; display: flex; height: 48px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.pb-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; font: 15px var(--pb-font); color: #111; }
.pb-search button { width: 60px; border: 0; background: var(--pb-orange); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pb-search button:hover { background: var(--pb-orange-d); }
.pb-actions { display: flex; align-items: center; gap: 10px; }
.pb-action { display: flex; align-items: center; gap: 9px; color: #fff; padding: 7px 12px; border-radius: 10px; transition: .18s; line-height: 1.15; }
.pb-action:hover { background: rgba(255,255,255,.08); }
.pb-action small { display: block; font-size: 11px; color: #9fb3c8; font-weight: 500; }
.pb-action strong { display: block; font-size: 14px; font-weight: 700; }
.pb-action-icon { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; }
.pb-ic-call { background: #2878e8; }
.pb-ic-cart, .pb-ic-user { background: rgba(255,255,255,.12); }
.pb-count { position: absolute; top: -4px; right: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 20px; background: var(--pb-orange); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--pb-navy-2); }

.pb-account { position: relative; }
.pb-account-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); width: 230px; background: #fff; border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: 8px; z-index: 80; }
.pb-account.open .pb-account-menu { display: block; }
.pb-account-menu a, .pb-account-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--pb-ink); font: 500 14px var(--pb-font); background: none; border: 0; cursor: pointer; text-align: left; }
.pb-account-menu a:hover, .pb-account-menu button:hover { background: #f1f5f9; }
.pb-account-menu .pb-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--pb-line); margin-bottom: 6px; font-size: 13px; color: var(--pb-muted); }
.pb-account-menu .pb-menu-head strong { display: block; color: var(--pb-ink); font-size: 15px; }

.pb-nav { background: var(--pb-sky); border-bottom: 1px solid #9ddddd; }
.pb-nav .pb-wrap { display: flex; align-items: center; gap: 26px; min-height: 52px; }
.pb-nav-link { color: #0b2545; font-weight: 600; font-size: 14px; padding: 15px 0; position: relative; white-space: nowrap; }
.pb-nav-link::after { content: ""; position: absolute; left: 0; bottom: 10px; height: 2px; width: 0; background: var(--pb-blue); transition: .2s; }
.pb-nav-link:hover { color: var(--pb-blue); }
.pb-nav-link:hover::after { width: 100%; }
.pb-nav-link.hot { color: #c2410c; }
.pb-cat-drop { position: relative; }
.pb-cat-btn { display: flex; align-items: center; gap: 8px; background: var(--pb-navy); color: #fff; border: 0; height: 52px; padding: 0 18px; font: 600 14px var(--pb-font); cursor: pointer; }
.pb-cat-menu { display: none; position: absolute; left: 0; top: 100%; width: 300px; max-height: 70vh; overflow-y: auto; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 18px 40px rgba(0,0,0,.18); z-index: 70; padding: 6px; }
.pb-cat-drop.open .pb-cat-menu { display: block; }
.pb-cat-menu a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--pb-ink); font-weight: 500; font-size: 14px; }
.pb-cat-menu a:hover { background: #f0f7ff; color: var(--pb-blue); }
.pb-cat-menu img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: #f1f5f9; }
.pb-cat-menu .pb-cat-all { justify-content: center; font-weight: 700; color: var(--pb-blue); border-top: 1px solid var(--pb-line); margin-top: 4px; border-radius: 0; }

/* admin quick bar (only for admins) */
.pb-adminbar { background: #111827; color: #e5e7eb; font: 500 13px var(--pb-font); }
.pb-adminbar .pb-wrap { max-width: 1450px; display: flex; align-items: center; gap: 16px; min-height: 34px; flex-wrap: wrap; }
.pb-adminbar a { color: #fbbf24; font-weight: 600; text-decoration: none; }
.pb-adminbar .pb-badge-new { background: #dc2626; color: #fff; border-radius: 20px; padding: 1px 8px; font-size: 11px; margin-left: 4px; }

/* flash toast */
.pb-toast { position: fixed; z-index: 9999; left: 50%; top: 18px; transform: translateX(-50%); max-width: 92vw; display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-radius: 12px; font: 600 14px var(--pb-font); box-shadow: 0 16px 40px rgba(0,0,0,.18); animation: pbToastIn .35s ease; }
.pb-toast.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pb-toast.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.pb-toast a { color: inherit; text-decoration: underline; }
.pb-toast button { background: none; border: 0; cursor: pointer; color: inherit; font-size: 18px; line-height: 1; }
@keyframes pbToastIn { from { opacity: 0; transform: translate(-50%, -12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* mobile header */
.pb-mobile { display: none; }
@media (max-width: 1150px) {
    .pb-action-text { display: none; }
    .pb-action { padding: 6px; }
    .pb-nav .pb-wrap { gap: 18px; }
    .pb-nav-link { font-size: 13px; }
}
@media (max-width: 860px) {
    .pb-utility, .pb-main-header, .pb-nav { display: none; }
    .pb-mobile { display: block; background: var(--pb-navy-2); position: sticky; top: 0; z-index: 60; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
    .pb-m-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
    .pb-m-logo { flex: 1; min-width: 0; }
    .pb-m-logo img { height: 40px; width: auto; max-width: 100%; display: block; }
    .pb-m-ic { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; background: rgba(255,255,255,.1); flex-shrink: 0; }
    .pb-m-ic.call { background: #2878e8; }
    .pb-m-ic.wa { background: transparent; }
    .pb-m-search { display: flex; gap: 8px; padding: 0 10px 10px; }
    .pb-m-search form { flex: 1; display: flex; height: 44px; background: #fff; border-radius: 10px; overflow: hidden; }
    .pb-m-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 12px; font: 14px var(--pb-font); }
    .pb-m-search form button { width: 48px; border: 0; background: var(--pb-orange); color: #fff; }
    .pb-m-menu-btn { width: 48px; height: 44px; border: 0; border-radius: 10px; background: var(--pb-sky); color: var(--pb-navy); display: flex; align-items: center; justify-content: center; }
    .pb-m-nav { display: none; background: #fff; max-height: 70vh; overflow-y: auto; }
    .pb-m-nav.open { display: block; }
    .pb-m-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #eef2f7; color: var(--pb-ink); font: 600 14px var(--pb-font); }
    .pb-m-nav img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
    .pb-m-nav .pb-m-label { padding: 12px 16px 6px; font: 700 11px var(--pb-font); letter-spacing: .08em; text-transform: uppercase; color: var(--pb-muted); background: #f8fafc; }
}

/* =====================================================================
   SIDE ADVERTISEMENT RAILS (use the empty space on wide screens)
===================================================================== */
.pb-rail { display: none; position: fixed; top: 50%; transform: translateY(-38%); width: 158px; z-index: 40; font-family: var(--pb-font); transition: opacity .25s; }
.pb-rail.left { left: max(10px, calc((100vw - 1250px) / 2 - 178px)); }
.pb-rail.right { right: max(10px, calc((100vw - 1250px) / 2 - 178px)); }
.pb-rail.hide { opacity: 0; pointer-events: none; }
.pb-rail-card { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(15,23,42,.14); border: 1px solid #e8edf3; text-align: center; }
.pb-rail-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.pb-rail-tag { position: absolute; top: 8px; left: 8px; background: var(--pb-orange); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; }
.pb-rail-body { padding: 12px 12px 14px; }
.pb-rail-body strong { display: block; color: var(--pb-ink); font-size: 15px; line-height: 1.25; }
.pb-rail-body p { margin: 6px 0 10px; font-size: 12px; color: var(--pb-muted); line-height: 1.45; }
.pb-rail-body .pb-btn { width: 100%; padding: 9px 10px; font-size: 13px; }
.pb-rail-call { margin-top: 10px; background: linear-gradient(135deg, var(--pb-navy), #0e4c8a); color: #fff; border-radius: 16px; padding: 14px 12px; text-align: center; box-shadow: 0 14px 34px rgba(15,23,42,.14); }
.pb-rail-call small { display: block; font-size: 11px; color: #a5c8ee; }
.pb-rail-call a { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; display: block; margin-top: 3px; }
.pb-rail-close { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15,23,42,.55); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
@media (min-width: 1590px) { .pb-rail { display: block; } }

/* =====================================================================
   SECTION HEADINGS
===================================================================== */
.pb-section { padding: 46px 0 10px; font-family: var(--pb-font); }
.pb-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.pb-section-head h2 { font-size: 28px; color: #12385f; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.pb-section-head p { color: var(--pb-muted); margin: 5px 0 0; font-size: 15px; }
.pb-link { color: var(--pb-blue); font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.pb-link:hover { color: var(--pb-orange); }

/* =====================================================================
   HERO SLIDER
===================================================================== */
.pb-hero { padding-top: 18px; }
.pb-slider { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(15,23,42,.14); background: #e2e8f0; aspect-ratio: 1600 / 560; }
.pb-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: block; }
.pb-slide.active { opacity: 1; z-index: 1; }
.pb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--pb-navy); font-size: 26px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.18); display: flex; align-items: center; justify-content: center; opacity: 0; transition: .2s; }
.pb-slider:hover .pb-slider-arrow { opacity: 1; }
.pb-slider-arrow.prev { left: 16px; } .pb-slider-arrow.next { right: 16px; }
.pb-dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.pb-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; transition: .25s; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.pb-dots button.active { width: 30px; background: var(--pb-orange); }
.pb-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.pb-trust div { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e8edf3; border-radius: 14px; padding: 14px 16px; box-shadow: 0 4px 14px rgba(15,23,42,.04); }
.pb-trust .ic { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.pb-trust strong { display: block; color: var(--pb-ink); font-size: 15px; }
.pb-trust span { font-size: 13px; color: var(--pb-muted); }
@media (max-width: 760px) {
    .pb-slider { aspect-ratio: 800 / 820; border-radius: 16px; }
    .pb-slider-arrow { display: none; }
    .pb-trust { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pb-trust div { padding: 10px; }
    .pb-trust .ic { width: 38px; height: 38px; }
    .pb-trust strong { font-size: 13px; } .pb-trust span { font-size: 11px; }
}

/* =====================================================================
   CATEGORY CARDS
===================================================================== */
.pb-cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.pb-cat-grid.all { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.pb-cat-card { position: relative; display: block; background: #fff; border: 1px solid #e6ebf2; border-radius: 18px; overflow: hidden; text-align: center; transition: .22s; box-shadow: 0 4px 14px rgba(15,23,42,.05); text-decoration: none; }
.pb-cat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15,23,42,.13); border-color: #bfdbfe; }
.pb-cat-card .img { aspect-ratio: 1 / 1; overflow: hidden; background: #f1f5f9; }
.pb-cat-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.pb-cat-card:hover .img img { transform: scale(1.06); }
.pb-cat-card .txt { padding: 12px 10px 14px; }
.pb-cat-card strong { display: block; color: #0b3a66; font-size: 15px; font-weight: 700; line-height: 1.25; }
.pb-cat-card span { display: block; color: var(--pb-muted); font-size: 12.5px; margin-top: 3px; }
.pb-cat-card .count { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--pb-blue); background: #eff6ff; padding: 3px 10px; border-radius: 20px; }
.pb-cat-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--pb-navy), #0e4c8a); color: #fff; border-radius: 18px; text-decoration: none; min-height: 100%; padding: 20px; transition: .22s; }
.pb-cat-more:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(15,23,42,.2); }
.pb-cat-more b { font-size: 36px; line-height: 1; }
.pb-cat-more span { font-weight: 600; font-size: 14px; }
/* admin controls on category cards */
.pb-admin-tools { position: absolute; top: 8px; right: 8px; z-index: 5; display: flex; gap: 6px; }
.pb-admin-tools form { margin: 0; }
.pb-admin-tools button, .pb-admin-tools a { width: 32px; height: 32px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.pb-admin-tools .del { background: #dc2626; }
.pb-admin-tools .hide { background: #475569; }
.pb-admin-tools .edit { background: #2563eb; font-size: 14px; }
@media (max-width: 1100px) { .pb-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
    .pb-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pb-cat-grid.all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pb-cat-card strong { font-size: 13.5px; }
}

/* =====================================================================
   PRODUCT CARD (used on home, all products, category & product pages)
===================================================================== */
.pb-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pb-product-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 14px; }
.pb-product-row::-webkit-scrollbar { display: none; }
.pb-product-row > * { scroll-snap-align: start; }
.pb-row-wrap { position: relative; }
.pb-row-arrow { position: absolute; top: 38%; z-index: 4; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e2e8f0; background: #fff; color: var(--pb-navy); font-size: 24px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; }
.pb-row-arrow.l { left: -18px; } .pb-row-arrow.r { right: -18px; }

.pb-card { background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: .22s; box-shadow: 0 4px 14px rgba(15,23,42,.05); font-family: var(--pb-font); }
.pb-card:hover { box-shadow: 0 16px 34px rgba(15,23,42,.12); transform: translateY(-4px); }
.pb-card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: #f8fafc; overflow: hidden; }
.pb-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.pb-card:hover .pb-card-img img { transform: scale(1.05); }
.pb-card-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; }
.pb-off { position: absolute; top: 10px; left: 10px; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; z-index: 2; }
.pb-stock { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: rgba(255,255,255,.95); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.pb-stock.in { color: #15803d; } .pb-stock.out { color: #b91c1c; }
.pb-card-body { padding: 14px 14px 0; flex: 1; display: flex; flex-direction: column; }
.pb-card-cat { font-size: 11.5px; color: var(--pb-blue); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; margin-bottom: 5px; }
.pb-card-name { color: var(--pb-ink); font-size: 14.5px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; text-decoration: none; }
.pb-card-name:hover { color: var(--pb-blue); }
.pb-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.pb-price b { color: #c2410c; font-size: 20px; font-weight: 700; }
.pb-price s { color: #94a3b8; font-size: 14px; }
.pb-save { display: inline-block; margin-top: 6px; color: #15803d; background: #dcfce7; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; align-self: flex-start; }
.pb-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.pb-card-actions form { margin: 0; }
.pb-card-actions .pb-btn { width: 100%; padding: 10px 6px; font-size: 13px; }
@media (max-width: 1100px) { .pb-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pb-product-row { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (max-width: 760px) {
    .pb-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .pb-product-row { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
    .pb-row-arrow { display: none; }
    .pb-card-actions { grid-template-columns: 1fr; padding: 10px; gap: 6px; }
    .pb-card-body { padding: 10px 10px 0; }
    .pb-card-name { font-size: 13px; }
    .pb-price b { font-size: 17px; }
}

/* =====================================================================
   PROMO / WHY / NEWSLETTER (home)
===================================================================== */
.pb-promo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.pb-promo-box { position: relative; border-radius: 20px; overflow: hidden; padding: 34px; color: #fff; min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.pb-promo-box h3 { font-size: 26px; margin: 6px 0 8px; line-height: 1.2; }
.pb-promo-box p { color: rgba(255,255,255,.85); margin: 0 0 16px; max-width: 420px; font-size: 14.5px; }
.pb-promo-box small { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: #fde68a; }
.pb-promo-box img { position: absolute; right: -10px; bottom: -10px; width: 46%; max-width: 260px; border-radius: 16px; transform: rotate(-4deg); box-shadow: 0 16px 30px rgba(0,0,0,.3); }
.pb-promo-box .pb-btn { align-self: flex-start; position: relative; z-index: 2; }
.pb-promo-box > *:not(img) { position: relative; z-index: 2; max-width: 60%; }
.pb-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pb-why div { background: #fff; border: 1px solid #e6ebf2; border-radius: 18px; padding: 24px 20px; text-align: center; box-shadow: 0 4px 14px rgba(15,23,42,.04); }
.pb-why .ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: #fff; }
.pb-why h3 { margin: 0 0 6px; color: var(--pb-ink); font-size: 17px; }
.pb-why p { margin: 0; color: var(--pb-muted); font-size: 14px; line-height: 1.55; }
.pb-news { background: linear-gradient(120deg, var(--pb-navy), #0e4c8a); border-radius: 22px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; flex-wrap: wrap; }
.pb-news h2 { margin: 0 0 6px; font-size: 26px; }
.pb-news p { margin: 0; color: #c7d8ee; }
.pb-news form { display: flex; gap: 10px; flex: 1; max-width: 520px; min-width: 260px; }
.pb-news input { flex: 1; min-width: 0; height: 50px; border-radius: 12px; border: 0; padding: 0 16px; font: 15px var(--pb-font); }
@media (max-width: 900px) { .pb-promo { grid-template-columns: 1fr; } .pb-why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pb-why { grid-template-columns: 1fr 1fr; gap: 10px; } .pb-why div { padding: 16px 10px; } .pb-promo-box > *:not(img) { max-width: 100%; } .pb-promo-box img { opacity: .25; } .pb-news form { flex-direction: column; } }

/* =====================================================================
   ORDER TRACKING TIMELINE (Pathao style)
===================================================================== */
.pb-track { background: #fff; border: 1px solid #e6ebf2; border-radius: 18px; padding: 26px; box-shadow: var(--pb-shadow); font-family: var(--pb-font); }
.pb-track-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 26px; }
.pb-track-top h2 { margin: 0; color: var(--pb-ink); font-size: 22px; }
.pb-track-top p { margin: 4px 0 0; color: var(--pb-muted); font-size: 14px; }
.pb-status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px; font-weight: 700; font-size: 14px; }
.pb-status-pill i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; display: inline-block; animation: pbPulse 1.6s infinite; }
@keyframes pbPulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.st-pending { background: #fef3c7; color: #92400e; } .st-confirmed { background: #dbeafe; color: #1e40af; }
.st-processing { background: #e0e7ff; color: #3730a3; } .st-shipped { background: #cffafe; color: #155e75; }
.st-delivered { background: #dcfce7; color: #166534; } .st-cancelled { background: #fee2e2; color: #991b1b; }

/* horizontal stepper */
.pb-steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin: 6px 0 30px; }
.pb-steps::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 6px; background: #e5e7eb; border-radius: 6px; }
.pb-steps .bar { position: absolute; top: 27px; left: 10%; height: 6px; background: linear-gradient(90deg, #16a34a, #22c55e); border-radius: 6px; transition: width .8s ease; }
.pb-step { position: relative; text-align: center; z-index: 1; }
.pb-step .dot { width: 60px; height: 60px; margin: 0 auto; border-radius: 50%; background: #fff; border: 4px solid #e5e7eb; display: flex; align-items: center; justify-content: center; color: #94a3b8; transition: .3s; }
.pb-step.done .dot { background: #16a34a; border-color: #16a34a; color: #fff; }
.pb-step.current .dot { background: #fff; border-color: #16a34a; color: #16a34a; box-shadow: 0 0 0 7px rgba(22,163,74,.15); }
.pb-step.current.cancel .dot { border-color: #dc2626; color: #dc2626; box-shadow: 0 0 0 7px rgba(220,38,38,.12); }
.pb-step b { display: block; margin-top: 10px; color: var(--pb-ink); font-size: 14px; }
.pb-step small { display: block; color: var(--pb-muted); font-size: 12px; margin-top: 2px; }
.pb-step:not(.done):not(.current) b { color: #94a3b8; }

/* vertical history */
.pb-history { position: relative; margin: 0; padding: 0 0 0 8px; list-style: none; }
.pb-history li { position: relative; padding: 0 0 22px 34px; }
.pb-history li::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: -4px; width: 3px; background: #e2e8f0; }
.pb-history li:last-child::before { display: none; }
.pb-history li .d { position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px #dcfce7; }
.pb-history li:first-child .d { background: #f28c18; box-shadow: 0 0 0 4px #ffedd5; }
.pb-history li.cancel .d { background: #dc2626; box-shadow: 0 0 0 4px #fee2e2; }
.pb-history b { color: var(--pb-ink); font-size: 15px; }
.pb-history time { display: block; color: var(--pb-muted); font-size: 12.5px; margin-top: 2px; }
.pb-history p { margin: 4px 0 0; color: var(--pb-text); font-size: 13.5px; }
@media (max-width: 640px) {
    .pb-steps { grid-template-columns: 1fr; gap: 0; margin-left: 4px; }
    .pb-steps::before { top: 30px; bottom: 30px; left: 28px; right: auto; width: 6px; height: auto; }
    .pb-steps .bar { left: 28px; top: 30px; width: 6px !important; height: var(--pb-progress-v, 0); }
    .pb-step { display: flex; align-items: center; gap: 14px; text-align: left; padding: 6px 0; }
    .pb-step .dot { margin: 0; width: 60px; height: 60px; flex-shrink: 0; }
    .pb-step b { margin-top: 0; }
    .pb-track { padding: 18px; }
}

/* =====================================================================
   GENERIC CARDS / ACCOUNT / AUTH
===================================================================== */
.pb-box { background: #fff; border: 1px solid #e6ebf2; border-radius: 18px; padding: 24px; box-shadow: 0 4px 14px rgba(15,23,42,.05); }
.pb-box h3 { margin: 0 0 14px; color: var(--pb-ink); font-size: 18px; }
.pb-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pb-grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 860px) { .pb-grid-2, .pb-grid-3 { grid-template-columns: 1fr; } }
.pb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.pb-field label { font-weight: 600; font-size: 14px; color: var(--pb-ink); }
.pb-field input, .pb-field select, .pb-field textarea { height: 48px; border: 1.5px solid #d6deea; border-radius: 10px; padding: 0 14px; font: 15px var(--pb-font); color: var(--pb-ink); background: #fff; outline: 0; transition: .15s; }
.pb-field textarea { height: auto; padding: 12px 14px; }
.pb-field input:focus, .pb-field select:focus, .pb-field textarea:focus { border-color: var(--pb-blue); box-shadow: 0 0 0 4px rgba(11,92,171,.12); }
.pb-field .err { color: #b91c1c; font-size: 13px; }
.pb-field .hint { color: var(--pb-muted); font-size: 12.5px; }

.pb-auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 980px; margin: 10px auto; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.12); }
.pb-auth-side { background: linear-gradient(150deg, var(--pb-navy), #0e4c8a); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.pb-auth-side h2 { font-size: 30px; line-height: 1.2; margin: 18px 0 10px; }
.pb-auth-side p { color: #c7d8ee; line-height: 1.6; }
.pb-auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; }
.pb-auth-side li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-weight: 500; }
.pb-auth-side li span { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: #86efac; }
.pb-auth-side img.art { width: 100%; max-width: 280px; border-radius: 16px; margin-top: 20px; align-self: center; box-shadow: 0 16px 30px rgba(0,0,0,.25); }
.pb-auth-form { padding: 40px; }
.pb-auth-form h1 { font-size: 26px; color: var(--pb-ink); margin: 0 0 6px; }
.pb-auth-form .sub { color: var(--pb-muted); margin: 0 0 24px; }
.pb-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f5f9; padding: 5px; border-radius: 12px; margin-bottom: 24px; }
.pb-tabs a { text-align: center; padding: 10px; border-radius: 9px; color: var(--pb-muted); font-weight: 600; }
.pb-tabs a.active { background: #fff; color: var(--pb-navy); box-shadow: 0 3px 8px rgba(0,0,0,.08); }
.pb-auth-form .pb-btn { width: 100%; height: 50px; font-size: 15px; }
.pb-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--pb-text); }
.pb-alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.pb-alert.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pb-alert.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
@media (max-width: 820px) { .pb-auth { grid-template-columns: 1fr; } .pb-auth-side { display: none; } .pb-auth-form { padding: 26px 20px; } }

.pb-dash-hero { background: linear-gradient(120deg, var(--pb-navy), #0e4c8a); color: #fff; border-radius: 22px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.pb-dash-hero h1 { margin: 0; font-size: 26px; }
.pb-dash-hero p { margin: 6px 0 0; color: #c7d8ee; }
.pb-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--pb-orange); color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.pb-stat { background: #fff; border: 1px solid #e6ebf2; border-radius: 16px; padding: 18px; display: flex; gap: 14px; align-items: center; }
.pb-stat .ic { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.pb-stat b { display: block; font-size: 22px; color: var(--pb-ink); }
.pb-stat span { color: var(--pb-muted); font-size: 13px; }
@media (max-width: 860px) { .pb-stats { grid-template-columns: 1fr 1fr; } }
.pb-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pb-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--pb-muted); padding: 10px 12px; background: #f8fafc; }
.pb-table td { padding: 13px 12px; border-top: 1px solid #eef2f7; vertical-align: middle; }
.pb-table-wrap { overflow-x: auto; }
.pb-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pb-quick a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7; color: var(--pb-ink); font-weight: 600; font-size: 14px; }
.pb-quick a:hover { background: #eff6ff; border-color: #bfdbfe; }

/* =====================================================================
   FOOTER
===================================================================== */
.pb-footer { background: #061629; color: #9aa8ba; padding: 54px 0 0; margin-top: 50px; }
.pb-footer a { color: #b6c3d4; text-decoration: none; }
.pb-footer a:hover { color: #fff; }
.pb-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 34px; }
.pb-footer h3 { color: #fff; font-size: 17px; margin: 0 0 16px; }
.pb-footer ul { list-style: none; padding: 0; margin: 0; }
.pb-footer li { margin-bottom: 10px; font-size: 14px; }
.pb-footer-logo img { height: 58px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; }
.pb-footer-about { font-size: 14px; line-height: 1.7; margin: 16px 0; }
.pb-footer .pb-social a { width: auto; }
.pb-contact-row { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14px; line-height: 1.5; }
.pb-contact-row .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; color: var(--pb-orange); flex-shrink: 0; }
.pb-contact-row strong { color: #fff; display: block; font-size: 13px; }
.pb-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding: 18px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.pb-footer-bottom div { display: flex; gap: 18px; flex-wrap: wrap; }
.pb-pay-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pb-pay-row span { background: #fff; color: #0f172a; font-weight: 700; font-size: 12px; border-radius: 6px; padding: 5px 9px; }
@media (max-width: 900px) { .pb-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pb-footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* floating WhatsApp */
.pb-float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 10px 26px rgba(37,211,102,.45); display: flex; animation: pbBob 3s ease-in-out infinite; }
@keyframes pbBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.pb-breadcrumb { font: 13px var(--pb-font); color: var(--pb-muted); margin-bottom: 12px; }
.pb-breadcrumb a { color: var(--pb-blue); }
.pb-empty { text-align: center; padding: 50px 20px; background: #fff; border-radius: 18px; border: 1px dashed #cbd5e1; }
.pb-empty h3 { color: var(--pb-ink); margin: 0 0 8px; }
.pb-empty p { color: var(--pb-muted); margin: 0 0 18px; }

/* fixes */
.pb-cat-grid > div > .pb-cat-card { height: 100%; }
.pb-rail-call a { font-size: 13px; white-space: nowrap; }
.pb-promo-box > *:not(img) { max-width: 56%; }
.pb-promo-box img { width: 40%; max-width: 230px; }
@media (max-width: 520px) { .pb-promo-box > *:not(img) { max-width: 100%; } }
.pb-card-actions { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); }
.pb-card-actions .pb-btn { gap: 5px; }
.pb-product-grid > div > .pb-card { height: 100%; }
