:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --border: #eaeaea;
  --accent: #0b5fff;
}
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
/* Layout: push footer to bottom of viewport */
body { min-height: 100vh; display: flex; flex-direction: column; }
/* Homepage: optional remove scroll */
body.no-scroll { overflow: hidden; }
/* Homepage: hide scrollbar but allow scrolling */
body.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
body.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Header */
.announcement { position: sticky; top: 0; z-index: 51; display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 12px; background: #fff; color: var(--muted); border-bottom: 1px solid var(--border); font-size: 12px; letter-spacing: 1.2px; transition: transform .2s ease, opacity .2s ease, height .2s ease, padding .2s ease, border-width .2s ease; }
.announcement__text { transition: opacity .25s ease; }
.announcement__text.hide { opacity: 0; }
.announcement--hidden { transform: translateY(-100%); opacity: 0; height: 0; padding: 0; border-width: 0; }
.announcement:not(.announcement--hidden) + .header { top: 32px; }
.header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; height: 72px; padding: 0 16px; backdrop-filter: saturate(180%) blur(8px); background: rgba(255,255,255,0.7); border-bottom: 1px solid var(--border); }
.header__left { display: flex; align-items: center; gap: 8px; }
.header__center { display: flex; align-items: center; justify-content: center; }
.logo { font-weight: 700; letter-spacing: 2px; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; }
.logo-img { height: 55px; display: inline-block; vertical-align: middle; }
.logo-text { margin-left: 10px; font-weight: 800; letter-spacing: 2px; font-size: 22px; color: var(--text); line-height: 1; }
.icon-btn { border: none; background: transparent; font-size: 20px; cursor: pointer; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; }
.icon-img { width: 22px; height: 22px; display: inline-block; object-fit: contain; vertical-align: middle; }
.header__right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
/* Allow badges on right-side header icons */
.header__right .icon-btn { position: relative; }
/* Cart item count badge */
.cart-badge { position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; line-height: 16px; display: none; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.cart-badge.show { display: inline-flex; }

/* --- Mobile header tweaks (logo + THEGODEG text) --- */
@media (max-width: 600px) {
  .announcement { height: 28px; font-size: 11px; }
  .announcement:not(.announcement--hidden) + .header { top: 28px; }
  .header { grid-template-columns: 56px 1fr 112px; height: 60px; padding: 0 12px; }
  .header__center { min-width: 0; }
  .logo { letter-spacing: 1.2px; display: inline-flex; align-items: center; }
  .logo-img { height: 50px; }
  .logo-text { margin-left: 8px; font-size: 18px; letter-spacing: 1.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
  .icon-img { width: 20px; height: 20px; }
  .cart-badge { transform: scale(0.92); top: -6px; right: -8px; }
}

/* Ultra-compact phones: hide brand text to prevent overlap */
@media (max-width: 380px) {
  .logo-text { display: none; }
  .header { grid-template-columns: 56px 1fr 100px; }
}

/* Drawer */
.drawer { position: fixed; left: -320px; top: 0; width: 320px; height: 100vh; background: #fff; border-right: 1px solid var(--border); z-index: 60; transition: left .25s ease; display: flex; flex-direction: column; }
.drawer.open { left: 0; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 55; }
.drawer-overlay.show { opacity: 1; pointer-events: auto; }
.drawer__header { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer__nav ul { list-style: none; margin: 0; padding: 8px 16px; }
.drawer__nav li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.drawer__nav a { color: var(--text); text-decoration: none; display: flex; justify-content: space-between; }

/* Hero */
.hero { position: relative; height: 480px; background-image: url('https://images.unsplash.com/photo-1512436991641-6745cdb1723f?q=80&w=1600&auto=format&fit=crop'); background-size: cover; background-position: center; border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; overflow: hidden; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0)); }
.hero__content { position: absolute; bottom: 24px; left: 24px; color: #fff; }
.hero__content h1 { margin: 0 0 8px 0; font-size: 32px; }
.hero__content p { margin: 0; opacity: .9; }

/* Banner rotator sections */
.banner { position: relative; height: 720px; border-radius: 16px; overflow: hidden; background: #000; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.banner img.show { opacity: 1; }
.banner__controls { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 8px; z-index: 2; }
.banner__controls .btn { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.8); background: rgba(0,0,0,0.4); color: #fff; }

/* Larger rotator banners for T-Shirts and T Bag */
.banner.rotator { height: 900px; }

/* Sections */
.grid-section { padding: 24px; max-width: none; margin: 0; }
/* Full-bleed variant: no side padding */
.grid-section.fullbleed { padding: 0; }
.grid-section.fullbleed .section-title { margin: 8px 0 16px 4px; display: block; }
.section-title { font-size: 22px; margin: 8px 0 16px 4px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { position: relative; display: block; border-radius: 16px; overflow: hidden; background: transparent; border: none; text-decoration: none; color: inherit; box-shadow: none; transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); }
.card__image { height: 340px; background-size: cover; background-position: center; filter: saturate(92%); position: relative; border-radius: 16px; overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 16px; }
.pill { position: absolute; bottom: 12px; left: 12px; padding: 6px 10px; border-radius: 12px; font-size: 12px; background: #222; color: #fff; }
.pill--blue { background: var(--accent); }
.card__meta { padding: 12px; text-align: center; }
.card__name { font-weight: 600; margin-bottom: 6px; }
.card__price { color: var(--text); }
.price--strike { text-decoration: line-through; margin-right: 8px; opacity: .8; color: var(--muted); }
/* Glow style for discounted price */
.price--glow { color: var(--text); font-weight: 800; text-shadow: 0 0 10px rgba(0,0,0,0.18); }

/* Categories */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.category { position: relative; height: 400px; display: block; border-radius: 14px; overflow: hidden; background-size: cover; background-position: center; }
.category img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Ensure caption stays visible over image */
.category::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 40%, rgba(0,0,0,0) 70%); z-index: 1; }
.category span { position: absolute; bottom: 10px; left: 12px; color: #fff; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.6); z-index: 2; background: rgba(0,0,0,0.45); padding: 6px 10px; border-radius: 8px; }
/* Explore tiles */
.explore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.explore .category { height: 520px; }

/* Page header */
.page-header { padding: 24px; max-width: min(1400px, 96vw); margin: 0 auto; }
.page-header h1 { margin: 0; }
.muted { color: var(--muted); }

/* -------- About Page -------- */
.about-hero { position: relative; padding: 48px 24px; background: radial-gradient(120% 120% at 0% 0%, #f7f7f7 0%, #ffffff 60%); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
.about-hero__content { max-width: 1000px; margin: 0 auto; text-align: center; }
.about-hero__content h1 { margin: 0 0 6px 0; font-size: 28px; }
.about-hero__content p { margin: 0 0 12px 0; color: var(--muted); }

.about-card { max-width: 900px; margin: -28px auto 0; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 18px 40px rgba(0,0,0,0.10); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 12px 0 16px; }
.feature { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; align-items: start; padding: 10px; border: 1px dashed var(--border); border-radius: 12px; background: rgba(17,17,17,0.03); }
.feature svg { grid-row: span 2; color: var(--text); }
.feature__title { font-weight: 600; }

.social { display: flex; align-items: center; gap: 18px; margin-top: 8px; }
.social .social-link { color: var(--text); opacity: .85; text-decoration: none; display: inline-flex; align-items: center; }
.social .social-link:hover { opacity: 1; color: var(--accent); transform: translateY(-1px); }
.social svg { width: 36px; height: 36px; }

/* About page: mobile tweaks */
@media (max-width: 600px) {
.grid-section { padding: 16px; }
  .about-hero { padding: 28px 16px; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
  .about-hero__content h1 { font-size: 24px; }
  .about-hero__content p { font-size: 14px; }
  .about-card { margin: 8px auto 0; padding: 16px; border-radius: 12px; }
  .features { grid-template-columns: 1fr; gap: 10px; }
  .feature { grid-template-columns: 24px 1fr; padding: 10px 12px; }
  .social { gap: 14px; }
  .social svg { width: 28px; height: 28px; }
}

/* -------- Auth Pages -------- */
.auth { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 24px; background: rgba(17,17,17,0.06); }
.auth-card { width: 560px; max-width: 100%; border-radius: 16px; padding: 24px; background: #ffffff; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(0,0,0,0.12); position: relative; }
.auth-card--modal { width: 420px; }
.auth-header h2 { margin: 0 0 6px 0; font-size: 28px; }
.auth-header p { margin: 0 0 16px 0; }
.alert { padding: 10px 12px; border: 1px solid #ffb3b3; color: #b00000; background: #fff5f5; border-radius: 10px; margin-bottom: 12px; }
.actions-inline { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.btn--full { width: 100%; justify-self: stretch; text-align: center; }
.btn.btn--outline { background: transparent; color: var(--text); border-color: var(--border); }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); margin: 12px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-wrap { display: flex; justify-content: center; }
.google-oauth-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:12px; border-radius:12px; border:1px solid var(--border); background:#fff; color:#111; text-decoration:none; font-weight:700; }
.google-oauth-btn:hover { background:#f7f7f7; }
.field label { font-weight: 600; font-size: 14px; }
.field input { border-radius: 12px; border: 1px solid var(--border); padding: 12px; font-size: 16px; background: #fff; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,95,255,0.12); }
/* Compact forms: smaller inputs for tighter UI (used on Account page) */
.form--compact .field label { font-size: 13px; }
.form--compact .field input,
.form--compact .field textarea { padding: 8px 10px; font-size: 14px; border-radius: 8px; line-height: 1.2; height: 36px; }

/* Fancy form variant: subtle glassy card, soft shadows, accent focus */
.form--fancy { 
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92)); 
  border: 1px solid var(--border); 
  border-radius: 14px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.form--fancy .field label { color: var(--muted); font-weight: 700; letter-spacing: .2px; }
.form--fancy .field input,
.form--fancy .field textarea { 
  background: #fff; 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.form--fancy .field input:focus,
.form--fancy .field textarea:focus { 
  outline: none; 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px rgba(11,95,255,0.12);
}

/* Two-column grid for wider screens */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.form-grid .field { margin: 0; }
.form-grid .field--full { grid-column: 1 / -1; }

@media (max-width: 800px){
  .form-grid { grid-template-columns: 1fr; }
}
/* Input suffix button (eye icon) */
.input-wrap { position: relative; }
.input-wrap input { width: 100%; padding-right: 40px; }
.toggle-visibility { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: transparent; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 6px; }
.toggle-visibility:hover { color: var(--text); background: rgba(0,0,0,0.04); }
.helper-links { text-align: right; margin: 6px 0 12px; }
.helper-links .link { color: var(--text); text-decoration: underline; font-weight: 600; }
.auth-bottom .link { color: var(--text); text-decoration: underline; font-weight: 700; }
.modal-close { position: absolute; right: 10px; top: 8px; text-decoration: none; color: #333; font-size: 26px; line-height: 1; padding: 2px 8px; border-radius: 8px; }
.modal-close:hover { background: rgba(0,0,0,0.06); }
.stay-connected { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--muted); margin: 4px 0 10px; }
.stay-connected input { margin-top: 3px; }
@media (max-width: 700px){
  .auth { padding: 24px 16px; }
  .auth-card { box-shadow: 0 12px 30px rgba(0,0,0,0.10); width: 92vw; }
}

/* Account Tabs */
.tabs { display: flex; gap: 8px; padding: 0 4px 12px 4px; align-items: center; }
.tab { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; }
.tab.active { background: var(--text); color: #fff; border-color: var(--text); }
.tab-content { display: none; }
.tab-content.show { display: block; }
.results .order-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-row .status { font-weight: 600; }
.order-row .total { font-weight: 700; }
.order-row .date { color: var(--muted); }

/* Order status labels (minimal) */
.order-row .status { font-size: 12px; line-height: 1; display: inline-block; color: var(--muted); }
.order-row .status--pending_payment { color: #b76e00; }
.order-row .status--paid { color: #0d7a3a; }
.order-row .status--shipped { color: #084c99; }
.order-row .status--processing { color: #333; }

/* Mobile: compact list style for order rows */
@media (max-width: 700px){
  .results { gap: 0; }
  .results .order-row { 
    display: block; 
    padding: 12px 4px; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid var(--border); 
  }
  .order-row__top { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .order-row__bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:4px; }
  .order-row .status { padding: 0; border: 0; border-radius: 0; }
  .order-row .total, .order-row .date { font-size: 13px; color: var(--muted); }
  .order-row .actions { display: flex; gap: 12px; }
  .order-row .actions .btn { 
    padding: 0; 
    border: none; 
    background: none; 
    text-decoration: underline; 
    color: var(--text);
    font-size: 13px;
  }
}

/* Account orders: mobile-friendly card layout */
@media (max-width: 700px){
  .results { gap: 10px; }
  .results .order-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "id total"
      "status date";
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
  }
  .results .order-row > div:nth-child(1) { grid-area: id; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace; font-size: 13px; }
  .results .order-row .status { grid-area: status; font-size: 13px; color: var(--muted); font-weight: 700; }
  .results .order-row .total { grid-area: total; justify-self: end; font-weight: 800; }
  .results .order-row .date { grid-area: date; justify-self: end; font-size: 12px; color: var(--muted); }
}

/* Account tabs: compact on phones */
@media (max-width: 600px){
  .tabs { padding: 0 4px 8px 4px; gap: 6px; }
  .tab { padding: 6px 10px; font-size: 13px; }
}

/* Product */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; max-width: 1100px; margin: 0 auto; }
.product__image { position: relative; height: 520px; border-radius: 12px; background-size: cover; background-position: center; background: transparent; border: none; }
.product__image img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 12px; }
.product__controls { position: absolute; bottom: 12px; right: 12px; display: flex; gap: 8px; z-index: 2; }
.product__controls .icon-btn { background: rgba(0,0,0,0.35); color: #fff; border: 1px solid rgba(255,255,255,0.8); border-radius: 999px; padding: 6px 10px; }
.product__thumbs { grid-column: 1; display: flex; gap: 12px; margin: 12px 0; overflow-x: auto; padding-bottom: 4px; }
.product__thumbs::-webkit-scrollbar { height: 8px; }
.product__thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.thumb { flex: 0 0 auto; width: 120px; border: none; border-radius: 10px; padding: 0; background: transparent; cursor: pointer; box-shadow: none; }
.thumb img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; display: block; }
.thumb.active img { outline: 2px solid var(--accent); outline-offset: 2px; }
.size-group{ display:flex; flex-wrap:wrap; gap:8px; }
.size-btn{ appearance:none; background:transparent; border:1px solid rgba(0,0,0,0.15); border-radius:8px; padding:8px 12px; cursor:pointer; font:inherit; }
.size-btn:hover{ border-color: rgba(0,0,0,0.4); }
.size-btn.active{ border-color: rgba(0,0,0,0.8); background: rgba(0,0,0,0.06); }
.size-btn:focus{ outline:2px solid rgba(0,0,0,0.3); outline-offset:2px; }
.color-btn{ appearance:none; width:22px; height:22px; border-radius:50%; border:1px solid rgba(0,0,0,0.15); padding:0; cursor:pointer; background:transparent; }
.color-btn:hover{ border-color: rgba(0,0,0,0.4); }
.color-btn.active{ outline:2px solid rgba(0,0,0,0.7); outline-offset:2px; }
.product__info { padding: 8px; font-size: 18px; }
.product__info .muted { font-size: 16px; }
.product__info .small { font-size: 15px; }
.product__title { font-size: 44px; margin: 12px 0; }
.product__price .price { font-size: 24px; font-weight: 700; }
.product__price .pill { position: static; display: inline-block; margin-left: 10px; }
.small { font-size: 13px; }
.btn { display: inline-block; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--text); background: transparent; color: var(--text); text-decoration: none; cursor: pointer; }
.btn--ghost { background: transparent; color: var(--text); }
.product__actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.product__actions .btn { width: 100%; min-height: 44px; text-align: center; padding: 10px 14px; }
.note { margin-top: 12px; color: var(--muted); font-size: 18px; line-height: 1.8; }
.note p { margin: 0 0 10px; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; place-items: center; z-index: 100; }
.modal__content { width: 100%; max-width: 520px; background: transparent; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.form .field { display: grid; gap: 6px; margin-bottom: 10px; }
.form .field label { font-weight: 700; }
.form input, .form textarea, .form select { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text); }

/* -------- Payment Page (mobile-focused polish) -------- */
.payment-page .a-card.card { background:#fff; border:1px solid var(--border); border-radius:14px; box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
.payment-page .form h3 { margin: 12px 0 6px; font-size: 16px; }
.payment-page .field label { font-size: 13px; }
.payment-page .field input { min-height: 36px; padding: 8px 10px; font-size: 14px; border-radius: 10px; }
.payment-page .chip { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid var(--border); border-radius: 999px; background:#fff; font-size: 13px; }
.payment-page .chip input { margin-right: 6px; }
.payment-page .chip--bkash { border-color: #ff3c8f; color:#b0004e; }
.payment-page .chip--nagad { border-color: #ff8a00; color:#9a4d00; }
.payment-page .btn { min-height: 36px; padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.payment-page .btn--full { width: 100%; }

/* Sticky bottom CTA bar (mobile) */
.payment-cta-bar { position: fixed; left:0; right:0; bottom:0; background: rgba(255,255,255,0.92); border-top:1px solid var(--border); box-shadow: 0 -8px 24px rgba(0,0,0,0.10); z-index: 80; padding: 8px 12px; display: none; }
.payment-cta-bar__content { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.payment-cta-bar__amount { font-weight: 800; font-size: 16px; }
@media (max-width: 600px){
  .payment-cta-bar { display: block; }
}

/* --- Payment page: transparent template overrides --- */
.payment-page .a-card.card { background: transparent !important; border: none !important; box-shadow: none !important; }
.payment-page .form--fancy { background: transparent !important; border: none !important; box-shadow: none !important; }
.payment-page .chip { background: transparent !important; }
.payment-page .form input, .payment-page .form textarea { background: transparent !important; }
.payment-cta-bar { background: transparent !important; border-top: none !important; box-shadow: none !important; }

/* Payment page: disable motion and provide clear non-animated selection states */
.payment-page * { transition: none !important; animation: none !important; }
.payment-page .btn:hover { filter: none !important; transform: none !important; }
.payment-page .btn:focus { outline: none !important; box-shadow: none !important; }
.payment-page .chip { border-color: var(--border); }
.payment-page .chip.selected { border-width: 2px; }
.payment-page .chip--bkash.selected { border-color: #ff3c8f; color: #b0004e; }
.payment-page .chip--nagad.selected { border-color: #ff8a00; color: #9a4d00; }
.payment-page .chip--option { border:1px solid var(--border); }
.payment-page .chip--option.selected { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.payment-page .chip:hover { background: transparent !important; }
.payment-page .chip:focus-within, .payment-page .chip--option:focus-within { outline: none !important; box-shadow: none !important; }

/* Payment page: hide radios inside chips (text-only pills) */
.payment-page input[type="radio"] { appearance: none; -webkit-appearance: none; -moz-appearance: none; width: 0; height: 0; position: absolute; opacity: 0; pointer-events: none; margin: 0; padding: 0; border: 0; }
.payment-page input[type="radio"]::before { content: none !important; }
.payment-page .chip input { margin-right: 0; display: none; }
.payment-page .chip--option input { display: none; }

/* Payment page: compact sizing and centered header */
.payment-page .page-header { justify-content: center; text-align: center; }
.payment-page .btn { padding: 6px 10px !important; min-height: 30px !important; border-radius: 8px !important; font-size: 13px !important; }
.payment-page .btn--primary { padding: 6px 10px !important; min-height: 30px !important; }
.payment-page .chip { padding: 4px 8px !important; font-size: 12px !important; }
.payment-page .chip--option { padding: 6px 10px !important; font-size: 12px !important; }
.payment-page .form input, .payment-page .form select { min-height: 30px !important; border-radius: 8px !important; font-size: 13px !important; }
.payment-page .form .field { margin-bottom: 8px !important; }
.payment-cta-bar__amount { font-size: 14px !important; }

/* Cart */
.cart { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding: 24px; max-width: 1100px; margin: 0 auto; }
.cart__items { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.cart-item { display: grid; grid-template-columns: 80px 1fr 80px 24px; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); padding: 10px 0; }
.cart-item:last-child { border-bottom: none; }
.cart-thumb { width: 80px; height: 80px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--border); }
.cart-thumb img, img.cart-thumb { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); display:block; }
.summary__row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary__row.total { font-weight: 700; }
.checkout { margin-top: 12px; display: grid; gap: 10px; }
.field { display: grid; gap: 6px; }
.field input, .field textarea { padding: 10px; border-radius: 8px; border: 1px solid var(--border); }
.payment-info { margin-top: 12px; }

/* Footer (Monochrome black & white) */
.footer { 
  margin-top: auto; 
  border-top: none; 
  background: linear-gradient(180deg, #111 0%, #000 100%);
  color: #ffffff;
}
.footer__content { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 40px 24px; 
  display: grid; 
  grid-template-columns: 280px repeat(4, 1fr);
  gap: 24px;
}
.footer__brand { display: grid; gap: 16px; align-content: start; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 1.2px; color: #fff; text-decoration: none; }
.footer__logo svg { width: 36px; height: 36px; }
/* Ensure footer brand image renders at same size as icon */
.footer__logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
/* Make footer brand text larger */
.footer__logo span { font-size: 22px; }
.footer__language { display: grid; gap: 6px; }
.footer__language label { font-size: 13px; opacity: .8; }
.footer__lang-select { 
  display: inline-flex; align-items: center; justify-content: space-between; 
  width: 220px; padding: 10px 12px; border-radius: 12px; 
  background: rgba(255,255,255,0.06); color: #fff; border: 1px solid rgba(255,255,255,0.2);
}
.footer__social { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.footer__social a { color: #fff; opacity: .9; text-decoration: none; }
.footer__social a:hover { opacity: 1; }
.footer__social svg { width: 28px; height: 28px; }
.footer__social { gap: 18px; }

.footer__heading { font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; opacity: .8; margin-bottom: 10px; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { padding: 6px 0; }
.footer__links a { color: #fff; text-decoration: none; opacity: .9; }
.footer__links a:hover { text-decoration: underline; opacity: 1; }
/* Support plain text items should match footer link color */
.footer__links span { color: #fff; opacity: .9; }
.footer__links span:hover { opacity: 1; }

.footer__bottom { grid-column: 1 / -1; margin-top: 24px; color: rgba(255,255,255,0.7); }

/* Watermark at bottom of footer */
.footer__watermark {
  grid-column: 1 / -1;
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1.1px;
  color: rgba(255,255,255,0.85);
}

/* Floating Back button (FAB) */
.back-fab { position: fixed; bottom: 20px; left: 20px; width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--text); color: #fff; border: 1px solid var(--text); box-shadow: 0 8px 20px rgba(0,0,0,0.25); z-index: 80; }
.back-fab:hover { transform: translateY(-1px); }
.back-fab:active { transform: translateY(0); }

@media (max-width: 700px) { .back-fab { bottom: 16px; left: 16px; width: 40px; height: 40px; } }

/* Responsive */
@media (max-width: 900px) {
  .footer__content { grid-template-columns: 1fr 1fr; }
  .footer__bottom { grid-column: 1 / -1; }
  .product { grid-template-columns: 1fr; }
  .cart { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { height: 300px; }
.card__image { height: 240px; }
  .category { height: 320px; }
  .explore-grid { grid-template-columns: 1fr; }
  .explore .category { height: 380px; }
  .banner { height: 600px; }
  .banner.rotator { height: 720px; }
}

/* Product grid responsiveness */
@media (max-width: 1200px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .footer__content { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  /* Mobile-only: make category grid a horizontal scroller */
  .category-grid { 
    display: grid; 
    grid-auto-flow: column; 
    grid-auto-columns: 80%; 
    overflow-x: auto; 
    gap: 12px; 
    padding: 0 12px; 
    scroll-snap-type: x mandatory; 
    -webkit-overflow-scrolling: touch; 
  }
  .category-grid::-webkit-scrollbar { display: none; }
  /* Mobile-only: round category tiles fully (top and bottom) */
  .category { border-radius: 16px; overflow: hidden; }
  .category { scroll-snap-align: start; }
  .category img { border-radius: inherit; }
  .category::after { border-radius: inherit; }
  .banner { height: 520px; }
  .banner.rotator { height: 600px; }
}

/* Search Overlay */
.search-overlay { position: fixed; inset: 0; z-index: 70; display: none; }
.search-overlay.show { display: block; }
.search__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.search__bar { position: relative; z-index: 71; display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--border); }
.search__bar input { flex: 1; font-size: 18px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
.search__content { position: relative; z-index: 71; display: grid; grid-template-columns: 360px 1fr; gap: 24px; background: #fff; max-height: calc(100vh - 120px); overflow: auto; }
.search__left { padding: 16px 24px; border-right: 1px solid var(--border); }
.search__right { padding: 16px 24px; }
.subheading { font-size: 12px; color: var(--muted); letter-spacing: 1.5px; margin-bottom: 8px; }
.list { list-style: none; padding: 0; margin: 0 0 16px 0; }
.list li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.list a { color: var(--text); text-decoration: none; }
.drawer__nav .drawer-menu { list-style: none; padding: 0; margin: 0; }
.drawer__nav .drawer-menu li { padding: 12px 0; border-bottom: 1px dashed var(--border); }
.color-row{ display:flex; gap:6px; margin-top:4px; }
.color-dot{ width:14px; height:14px; border-radius:50%; border:1px solid rgba(0,0,0,0.2); display:inline-block; }

/* Drawer panels */
.drawer__nav .drawer-panels { width: 100%; }
.drawer__nav .drawer-panel { display: none; }
.drawer__nav .drawer-panel.active { display: block; }
.drawer__nav .panel-header { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f5f5f5; border-bottom: 1px solid var(--border); }
.drawer__nav .panel-back { background: transparent; border: none; font-size: 18px; cursor: pointer; }
.drawer__nav .panel-title { font-weight: 600; }

/* Slight right indent for drawer item text */
.drawer__nav .drawer-panel .drawer-menu a { padding-left: 14px; }
.results { display: grid; gap: 12px; }
.result-item { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.result-thumb { width: 60px; height: 60px; border-radius: 8px; background-size: cover; background-position: center; border: 1px solid var(--border); }
.result-thumb img, img.result-thumb { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); display:block; }
.result-meta { color: var(--muted); font-size: 13px; }
.search__footer { position: relative; z-index: 71; background: #fff; border-top: 1px solid var(--border); padding: 12px 16px; }
.search-submit { text-decoration: none; color: var(--text); }

/* View all link under sections */
.view-all { text-align: center; margin-top: 12px; }
.view-all a { color: var(--muted); text-decoration: underline; font-weight: 600; }
.view-all a:hover { color: var(--text); }

/* Collection page helpers */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.crumb-current { color: var(--text); font-weight: 600; }
.empty-state { display:flex; align-items:center; justify-content:center; flex-direction:column; text-align: center; padding: 24px 16px; border: none; border-radius: 0; width: 100%; min-height: 40vh; margin: 0; background: transparent; box-shadow: none; animation: floatIn .35s ease-out; }
.cart--empty .cart__items { border: none; padding: 0; }
.empty-title { font-weight: 600; margin-bottom: 12px; }
.empty-icon { width: 40px; height: 40px; opacity: 0.85; margin-bottom: 8px; }
.empty-actions .btn { display: inline-block; padding: 10px 14px; border: 1px solid #111; border-radius: 8px; text-decoration: none; color: #111; background: transparent; transition: transform .18s ease, box-shadow .18s ease; }
.empty-actions .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.12); }

/* Collection-specific empty state styles (centered + transparent) */
.empty-state--collection { 
  border: none; 
  border-radius: 12px; 
  padding: 28px 18px; 
  background: transparent; 
  /* Center in the grid */
  grid-column: 1 / -1; 
  max-width: 360px; 
  margin: 0 auto; 
}
.empty-state--collection .empty-title { font-size: 18px; color: #111; letter-spacing: 0.2px; }
.empty-state--collection .empty-actions .btn { background: #111; color: #fff; border-color: #111; padding: 10px 16px; }
.empty-state--collection .empty-actions .btn:hover { box-shadow: 0 10px 22px rgba(0,0,0,.18); transform: translateY(-2px); }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Cart badge micro-animation */
.cart-badge { transition: transform .18s ease, background-color .18s ease; }
.cart-badge--pop { transform: scale(1.12); background-color: #000; }
.payment-page .a-card.card { padding: 12px; border-radius: 14px; box-shadow: 0 10px 26px rgba(0,0,0,0.08); }
.payment-page .form .field { margin-bottom: 10px; }
.payment-page .form input, .payment-page .form select { min-height: 36px; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.payment-page .chip { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border:1px solid var(--border); border-radius: 999px; background:#fff; font-size: 13px; }
.payment-page .chip input { margin-right: 6px; }
.payment-page .btn { min-height: 36px; padding: 8px 12px; border-radius: 10px; }
.payment-page .btn--full { width: 100%; }
.payment-page .page-header { padding: 12px 16px; }
@media (max-width: 480px){
  .payment-page .grid-section { padding: 12px; }
  .payment-page .a-card.card { padding: 10px; }
  .payment-page .form input, .payment-page .form select { font-size: 13px; min-height: 34px; }
  .payment-page h3 { font-size: 16px; margin: 8px 0; }
}

/* Fancy options and CTA enhancements */
.payment-page .chip-group { display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; }
.payment-page .chip--option { padding:8px 12px; border-radius: 14px; }
.payment-page .chip--option .chip__sub { display:block; font-size:12px; color: var(--muted); margin-left: 22px; }
.payment-page .amount-due { font-size: 20px; font-weight: 800; }
.payment-page .btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.payment-page .btn--primary:hover { filter: brightness(0.95); }
.payment-cta-bar__amount { font-weight: 800; font-size: 16px; }
.filters { padding: 12px; border: none; border-radius: 12px; background: transparent; box-shadow: none; display: grid; gap: 10px; position: sticky; top: 100px; align-self: start; }
.filters__header { font-weight: 800; }
.filters__group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filters__group input[type="number"] { width: 120px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.filters .range-row { display:grid; grid-template-columns: 1fr; gap: 6px; width: 100%; }
.filters input[type="range"] { width: 100%; appearance: none; height: 6px; border-radius: 999px; background: rgba(0,0,0,0.08); outline: none; }
.filters input[type="range"]::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 999px; background: var(--accent); cursor: pointer; border: 1px solid rgba(0,0,0,0.15); }
.filters .range-labels { display:flex; gap:8px; align-items:center; font-weight: 700; }

.collection-layout { max-width: min(1600px, 96vw); margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px){ .collection-layout { grid-template-columns: 1fr; } .filters { position: static; } }