/* =================================================================
   PEVLO — Product card v2 (clean): image + discount, name, price,
   size / colour chips, smart cart + buy buttons.
   Loaded after main.css / mobile.css. Admin Theme Customizer card
   styles (bordered / minimal / elevated) still win where they apply.
================================================================= */
.product-card.pc2 {
  --pc-pad: 12px;
  --pc-radius: 16px;
  --pc-sale: #ef4444;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--pc-radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card.pc2:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}

html[data-theme="dark"] .product-card.pc2 {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 28px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .product-card.pc2:hover {
  border-color: rgba(6, 172, 250, .5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 0 1px rgba(6, 172, 250, .18);
}

/* ---------- Image ---------- */
.product-card.pc2 .product-card__image-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  background: #f3f5f9;
}

html[data-theme="dark"] .product-card.pc2 .product-card__image-wrap {
  background: #141c3d;
}

.product-card.pc2 .product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.product-card.pc2:hover .product-card__image {
  transform: scale(1.05);
}

.product-card.pc2.is-out .product-card__image {
  filter: grayscale(.7);
  opacity: .7;
}

/* Only the discount badge (and "out of stock" when needed) */
.pc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .01em;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}

.pc-badge--sale {
  background: linear-gradient(135deg, #f43f5e, var(--pc-sale, #ef4444));
}

.pc-badge--out {
  top: auto;
  bottom: 10px;
  background: rgba(17, 24, 39, .82);
  backdrop-filter: blur(4px);
}

.pc-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(17, 24, 39, .7);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.pc-remove:hover {
  background: var(--pc-sale, #ef4444);
}

/* ---------- Body ---------- */
.product-card.pc2 .product-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px var(--pc-pad) 2px;
}

.product-card.pc2 .product-card__category {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.product-card.pc2 .product-card__name {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.35;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card.pc2 .product-card__name a {
  color: var(--text-heading, var(--text-main));
  text-decoration: none;
}

.product-card.pc2 .product-card__name a:hover {
  color: var(--primary);
}

.product-card.pc2 .product-card__price {
  margin: 0 !important;
  min-height: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.product-card.pc2 .price-current {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -.01em;
}

.product-card.pc2 .price-original {
  font-size: .82rem;
  color: var(--text-light, var(--text-muted));
  text-decoration: line-through;
}

.pc-rating {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-main);
}

.pc-rating__star {
  color: #f5b301;
}

.pc-rating__count {
  font-weight: 500;
  color: var(--text-muted);
}

/* ---------- Size / colour chips ---------- */
.pc-vars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
  padding: 2px;
  border-radius: 10px;
}

.pc-colors,
.pc-sizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.pc-colors,
.pc-sizes {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 1px;
}

.pc-colors::-webkit-scrollbar,
.pc-sizes::-webkit-scrollbar {
  display: none;
}

.pc-size,
.pc-swatch,
.pc-more {
  flex: none;
}

.pc-swatch {
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  outline: 1px solid var(--border);
  background: var(--sw, #ccc);
  cursor: pointer;
  transition: transform .15s ease, outline-color .15s ease;
}

.pc-swatch:hover {
  transform: scale(1.12);
}

.pc-swatch.is-on {
  outline: 2px solid var(--primary);
  transform: scale(1.1);
}

.pc-size {
  min-width: 30px;
  height: 25px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pc-size:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pc-size.is-on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pc-size:disabled,
.pc-swatch:disabled {
  opacity: .3;
  cursor: not-allowed;
  transform: none;
}

.pc-size:disabled {
  text-decoration: line-through;
}

.pc-more {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0 4px;
}

.pc-more:hover {
  color: var(--primary);
}

.pc-vars.pc-need {
  animation: pcShake .45s ease;
  box-shadow: 0 0 0 2px var(--warning, #f59e0b);
}

@keyframes pcShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* ---------- Buttons ---------- */
.product-card.pc2 .product-card__footer {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding: 8px var(--pc-pad) var(--pc-pad);
}

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: 7px;
  border: 0;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}

.pc-btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.pc-btn:active {
  transform: scale(.96);
}

.pc-btn--cart {
  width: 38px;
  flex: none;
  background: var(--primary-xlight);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

.pc-btn--cart svg {
  width: 21px;
  height: 21px;
}

.pc-btn--cart:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

html[data-theme="dark"] .pc-btn--cart {
  color: #8fb0ff;
}

html[data-theme="dark"] .pc-btn--cart:hover {
  color: #fff;
}

.pc-btn--buy {
  flex: 1;
  min-width: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 30%, transparent);
}

.pc-btn--buy span {
  overflow: hidden;
  text-overflow: clip;
}

.pc-btn--buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 40%, transparent);
}

.pc-btn--ghost {
  flex: 1;
  background: var(--gray-100, #f1f5f9);
  color: var(--text-muted);
}

.pc-btn.btn-loading {
  pointer-events: none;
  opacity: .75;
}

.pc-btn:focus-visible,
.pc-size:focus-visible,
.pc-swatch:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ---------- Phones: 2 cards per row ---------- */
@media (max-width: 640px) {
  .product-card.pc2 {
    --pc-pad: 10px;
    --pc-radius: 14px;
  }

  .product-card.pc2:hover {
    transform: none;
  }

  .product-card.pc2 .product-card__body {
    gap: 5px;
    padding-top: 9px;
  }

  .product-card.pc2 .product-card__category {
    font-size: .64rem;
  }

  .product-card.pc2 .product-card__name {
    font-size: .82rem;
  }

  .product-card.pc2 .price-current {
    font-size: 1.02rem;
  }

  .product-card.pc2 .price-original {
    font-size: .74rem;
  }

  .pc-rating {
    margin-left: 0;
    font-size: .72rem;
  }

  .pc-badge {
    top: 8px;
    left: 8px;
    font-size: .7rem;
    padding: 3px 7px;
  }

  .pc-size {
    min-width: 28px;
    height: 25px;
    padding: 0 5px;
    font-size: .7rem;
  }

  .pc-swatch {
    width: 18px;
    height: 18px;
  }

  .product-card.pc2 .product-card__footer {
    gap: 6px;
    padding-top: 8px;
  }

  .pc-btn {
    height: 36px;
    border-radius: 6px;
    font-size: .78rem;
  }

  .pc-btn--cart {
    width: 36px;
  }

  .pc-btn--buy svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 360px) {
  .pc-btn--buy svg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card.pc2,
  .product-card.pc2 .product-card__image,
  .pc-btn {
    transition: none;
  }
}

/* ---------- Mobile polish: "Why Pevlo" cards 2-per-row, compact ---------- */
@media (max-width: 640px) {
  .grid.grid-4:has(> .feature-card) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .grid.grid-4 > .feature-card {
    padding: 16px 12px !important;
  }

  .grid.grid-4 > .feature-card .feature-icon-wrap {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    font-size: 1.1rem;
  }

  .grid.grid-4 > .feature-card .feature-title {
    font-size: .9rem;
    margin-bottom: 4px;
  }

  .grid.grid-4 > .feature-card .feature-desc {
    font-size: .76rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* =================================================================
   Popups always centred (a generic ".show{display:block}" rule
   was breaking the flex centring of every modal)
================================================================= */
.modal-overlay.show {
  display: flex;
}

/* Hide floating buttons (chat, WhatsApp, back-to-top) while the cart
   drawer or a popup is open, so they never cover totals / buttons */
body:has(.cart-drawer.open) .floating-chat-container,
body:has(.cart-drawer.open) #whatsappFloat,
body:has(.cart-drawer.open) #backToTop,
body:has(.modal-overlay.show) .floating-chat-container,
body:has(.modal-overlay.show) #whatsappFloat,
body:has(.modal-overlay.show) #backToTop {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Toasts never sit on top of the open cart drawer */
@media (min-width: 641px) {
  body:has(.cart-drawer.open) .toast-container {
    right: calc(min(400px, 100%) + 16px);
  }
}

@media (max-width: 640px) {
  .toast-container {
    top: auto !important;
    bottom: 84px;
    left: 12px;
    right: 12px !important;
    align-items: center;
  }

  .toast-container .toast {
    min-width: 0;
    width: 100%;
    max-width: 420px;
  }
}

/* =================================================================
   CART DRAWER — clean & smart
================================================================= */
.cart-drawer.cart-drawer {
  width: min(400px, 100%);
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 60px rgba(15, 23, 42, .18);
}

html[data-theme="dark"] .cart-drawer {
  background: linear-gradient(180deg, #0f1736 0%, #0a1029 100%);
  border-left-color: rgba(120, 150, 255, .14);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .55);
}

.cart-drawer.cart-drawer .cart-drawer__header {
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer .cart-drawer__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--success, #16a34a);
}

html[data-theme="dark"] .cart-drawer .cart-drawer__eyebrow {
  color: #34d399;
}

.cart-drawer .cart-drawer__eyebrow svg {
  width: 16px;
  height: 16px;
}

.cart-drawer .cart-drawer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-heading, var(--text-main));
}

.cd-count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: .75rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.cart-drawer.cart-drawer .cart-drawer__close {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.cart-drawer.cart-drawer .cart-drawer__close:hover {
  background: var(--primary-xlight);
  color: var(--text-main);
}

.cart-drawer.cart-drawer .cart-drawer__body {
  flex: 1;
  padding: 14px 16px;
  gap: 10px;
  scrollbar-width: thin;
}

.cd-item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-body);
  transition: opacity .2s, border-color .2s;
}

html[data-theme="dark"] .cd-item {
  background: rgba(255, 255, 255, .03);
  border-color: rgba(120, 150, 255, .12);
}

.cd-item:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.cd-item.is-busy {
  opacity: .55;
  pointer-events: none;
}

.cd-item__img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f5f9;
}

.cd-item__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cd-item__name {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-heading, var(--text-main));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cd-item__var {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-xlight);
}

html[data-theme="dark"] .cd-item__var {
  color: #8fb0ff;
}

.cd-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.cd-item__price {
  font-size: .95rem;
  font-weight: 900;
  color: var(--secondary);
  white-space: nowrap;
}

/* Shared quantity stepper (drawer + buy-now popup) */
.cd-qty,
.qc .quick-checkout__qty {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 2px;
  gap: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

html[data-theme="dark"] .cd-qty,
html[data-theme="dark"] .qc .quick-checkout__qty {
  background: #0a1029;
  border-color: rgba(120, 150, 255, .2);
}

.cd-qty button,
.qc .quick-checkout__qty button {
  width: 28px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.cd-qty button:hover:not(:disabled),
.qc .quick-checkout__qty button:hover {
  background: var(--primary);
  color: #fff;
}

.cd-qty button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.cd-qty span {
  min-width: 28px;
  text-align: center;
  font-size: .88rem;
  font-weight: 800;
  color: var(--text-heading, var(--text-main));
}

.qc .quick-checkout__qty input {
  width: 34px;
  height: 26px;
  padding: 0;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  text-align: center;
  font-size: .88rem;
  font-weight: 800;
  color: var(--text-heading, var(--text-main)) !important;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qc .quick-checkout__qty input::-webkit-outer-spin-button,
.qc .quick-checkout__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cd-item__remove,
.qc .quick-checkout__item-remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.cd-item__remove svg {
  width: 18px;
  height: 18px;
}

.cd-item__remove:hover,
.qc .quick-checkout__item-remove:hover {
  background: rgba(239, 68, 68, .12);
  color: #ef4444;
}

.cart-drawer .cart-drawer__empty {
  min-height: 300px;
  gap: 4px;
  align-content: center;
}

.cart-drawer .cart-drawer__empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--primary-xlight);
  color: var(--primary);
}

.cart-drawer .cart-drawer__empty-icon svg {
  width: 30px;
  height: 30px;
}

.cd-empty-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: .88rem;
  color: #fff !important;
  text-decoration: none;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

/* Footer: totals + buttons */
.cart-drawer.cart-drawer .cart-drawer__footer {
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

html[data-theme="dark"] .cart-drawer.cart-drawer .cart-drawer__footer {
  background: rgba(7, 11, 28, .7);
  border-top-color: rgba(120, 150, 255, .14);
}

html[data-theme="dark"] .cart-drawer .cart-drawer__progress {
  background: rgba(59, 108, 255, .08);
  border-color: rgba(120, 150, 255, .16);
}

.cart-drawer .cart-drawer__summary {
  gap: 6px;
  margin-bottom: 14px;
}

.cart-drawer .cart-drawer__summary-row {
  font-size: .88rem;
  color: var(--text-muted);
}

.cart-drawer .cart-drawer__summary-row strong {
  color: var(--text-main);
}

.cart-drawer .cart-drawer__summary-row:last-child {
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading, var(--text-main));
}

.cart-drawer .cart-drawer__summary-row:last-child strong {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--secondary);
}

.cart-drawer .cart-drawer__actions {
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.cart-drawer .cart-drawer__actions .btn {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 14px;
  font-size: .92rem;
  font-weight: 800;
}

.cart-drawer .cart-drawer__actions .btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-main);
}

.cart-drawer .cart-drawer__actions .btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cart-drawer .cart-drawer__actions .btn-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 35%, transparent);
}

.cart-drawer .cart-drawer__actions .btn-primary:hover {
  filter: brightness(1.07);
}

@media (max-width: 480px) {
  .cart-drawer.cart-drawer {
    width: 100%;
  }

  .cd-item {
    grid-template-columns: 64px minmax(0, 1fr) 32px;
    gap: 10px;
  }

  .cd-item__img {
    width: 64px;
    height: 64px;
  }
}

/* =================================================================
   BUY-NOW POPUP — item row polish
================================================================= */
.qc .quick-checkout__item {
  grid-template-columns: 52px minmax(0, 1fr) auto !important;
  align-items: center;
  padding: 8px 10px !important;
}

html[data-theme="dark"] .qc .quick-checkout__item {
  background: rgba(255, 255, 255, .03);
  border-color: rgba(120, 150, 255, .14);
}

.qc .quick-checkout__item-image {
  width: 52px !important;
  height: 52px !important;
  border-radius: 10px !important;
}

.qc .quick-checkout__item-name {
  font-weight: 700;
}

.qc .quick-checkout__item-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px !important;
}

html[data-theme="dark"] .modal-box.quick-checkout-modal.qc {
  background: linear-gradient(180deg, #0f1736 0%, #0b1230 100%);
  border: 1px solid rgba(120, 150, 255, .14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

html[data-theme="dark"] .qc .qc__field input,
html[data-theme="dark"] .qc .qc__field textarea,
html[data-theme="dark"] .qc .qc__choice,
html[data-theme="dark"] .qc .qc__pay {
  background: rgba(255, 255, 255, .03);
}

html[data-theme="dark"] .qc .qc__footer {
  background: rgba(7, 11, 28, .6);
}

/* Popup stays in the middle on phones too */
@media (max-width: 480px) {
  .modal-overlay:has(.qc) {
    align-items: center !important;
    padding: 12px !important;
  }

  .modal-box.quick-checkout-modal.qc {
    max-height: calc(100dvh - 24px) !important;
    border-radius: 18px !important;
  }
}


/* Sliders / grids: every card in a row has the same height,
   buttons always line up at the bottom */
.pv-spot__track {
  align-items: stretch;
}

.pv-spot__slide {
  display: flex;
}

.pv-spot__slide .product-card.pc2 {
  height: auto;
  flex: 1;
}

/* Cookie bar never covers the open cart / popup */
body:has(.cart-drawer.open) #cookieConsent,
body:has(.modal-overlay.show) #cookieConsent {
  display: none !important;
}

/* =================================================================
   Bangla text: crisp Noto Sans Bengali on cards, cart and popup
   (avoids the blurry fake-bold the browser makes for heavy weights)
================================================================= */
html[lang="bn"] .product-card.pc2,
html[lang="bn"] .product-card.pc2 button,
html[lang="bn"] .cart-drawer,
html[lang="bn"] .cart-drawer button,
html[lang="bn"] .cart-drawer .btn,
html[lang="bn"] .qc,
html[lang="bn"] .qc button,
html[lang="bn"] .qc input,
html[lang="bn"] .qc textarea,
html[lang="bn"] .toast {
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', var(--font-main, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[lang="bn"] .pc-btn {
  font-weight: 600;
  letter-spacing: 0;
}

html[lang="bn"] .product-card.pc2 .product-card__name {
  font-weight: 600;
  line-height: 1.45;
}

.na-track {
  align-items: stretch;
}

.na-slide {
  display: flex;
}

.na-slide > .product-card.pc2,
.grid > .product-card.pc2 {
  flex: 1;
  height: auto;
}

/* =================================================================
   Card colour + size picker v2 — one tidy line, clear selection
================================================================= */
.product-card.pc2 .pc-vars {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  padding: 0;
}

.product-card.pc2 .pc-colors,
.product-card.pc2 .pc-sizes {
  gap: 4px;
  padding: 2px;
  overflow: visible;
  -webkit-mask-image: none;
  mask-image: none;
}

.product-card.pc2 .pc-colors {
  padding: 3px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-main) 6%, transparent);
}

/* Colour dots */
.product-card.pc2 .pc-swatch {
  position: relative;
  width: 18px;
  height: 18px;
  border: 0;
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 1px color-mix(in srgb, var(--text-main) 14%, transparent);
  transition: transform .15s ease, box-shadow .15s ease;
}

.product-card.pc2 .pc-swatch:hover {
  transform: scale(1.15);
}

.product-card.pc2 .pc-swatch.is-on {
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 2px var(--bg-card), 0 0 0 3.5px var(--secondary);
}

.product-card.pc2 .pc-swatch.is-on::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, .7));
}

/* light colours get a dark tick */
.product-card.pc2 .pc-swatch.is-on[data-color="White" i]::after,
.product-card.pc2 .pc-swatch.is-on[data-color="সাদা"]::after,
.product-card.pc2 .pc-swatch.is-on[data-color="Cream" i]::after,
.product-card.pc2 .pc-swatch.is-on[data-color="Off White" i]::after,
.product-card.pc2 .pc-swatch.is-on[data-color="Yellow" i]::after {
  border-color: #111;
  filter: none;
}

/* Size pills */
.product-card.pc2 .pc-size {
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text-main) 4%, transparent);
  color: var(--text-main);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.product-card.pc2 .pc-size:hover:not(:disabled) {
  border-color: var(--secondary);
  color: var(--secondary);
}

.product-card.pc2 .pc-size.is-on {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent);
}

.product-card.pc2 .pc-size:disabled {
  opacity: .35;
  border-style: dashed;
  background: transparent;
  text-decoration: none;
}

.product-card.pc2 .pc-swatch:disabled {
  opacity: .4;
  transform: scale(.85);
}

.product-card.pc2 .pc-more {
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 7px;
  font-size: .7rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .product-card.pc2 .pc-vars {
    gap: 5px 8px;
  }

  .product-card.pc2 .pc-swatch {
    width: 16px;
    height: 16px;
  }

  .product-card.pc2 .pc-size {
    min-width: 26px;
    height: 23px;
    padding: 0 6px;
    font-size: .68rem;
  }
}

/* Site-wide line icons */
.pv-i {
  display: inline-block;
  flex: none;
  vertical-align: -0.2em;
}

.btn .pv-i,
.summary-item .pv-i,
.form-label .pv-i {
  margin-right: 4px;
}

/* Buttons often carry Bangla labels even in English mode (e.g. "এখনই কিনুন").
   Render them with one Bangla-capable font so vowel signs (ি, ে …) join correctly. */
.pc-btn,
.pd-btn,
.os__btn,
.co__submit,
.cart-drawer .btn,
.qc button,
.qc .quick-checkout__submit,
.product-card.pc2 .product-card__name,
.product-card.pc2 .product-card__category {
  font-family: 'Noto Sans Bengali', 'Hind Siliguri', var(--font-main, sans-serif) !important;
  font-feature-settings: normal;
  letter-spacing: normal;
}

.pc-btn,
.pd-btn,
.os__btn,
.co__submit,
.cart-drawer .btn,
.qc .quick-checkout__submit {
  font-weight: 700 !important;
}

/* New-arrivals slider: full container width (same as header); arrows float over the cards */
.na-carousel-wrapper {
  padding: 0 !important;
}

.na-track-viewport {
  margin-left: -10px !important;
  margin-right: -10px !important;
}

.na-nav-btn.na-prev { left: 6px !important; }
.na-nav-btn.na-next { right: 6px !important; }

.na-nav-btn {
  opacity: .9;
  backdrop-filter: blur(6px);
}

html[data-theme="dark"] .na-nav-btn {
  color: #fff;
  background: rgba(15, 23, 54, .85);
  border: 1px solid rgba(120, 150, 255, .25);
}

/* Chrome breaks Bangla vowel signs (ি, র্) inside clipped flex items —
   keep button labels unclipped. */
.pc-btn span,
.pd-btn span,
.os__btn span,
.co__submit span {
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: auto;
}

/* Scroll effect: the photo glides gently up/down inside its frame + a soft light sweep
   when the card comes into view (turned off for "reduce motion" users) */
.product-card.pc2 .product-card__image {
  --pc-par: 0px;
  --pc-zoom: 1.1;
  transform: translate3d(0, var(--pc-par), 0) scale(var(--pc-zoom));
  will-change: transform;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.product-card.pc2:hover .product-card__image {
  --pc-zoom: 1.16;
  transform: translate3d(0, var(--pc-par), 0) scale(var(--pc-zoom));
}

.product-card.pc2 .product-card__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .38) 48%, transparent 66%);
  transform: translateX(-120%);
}

.product-card.pc2.pc-shine .product-card__image-wrap::after {
  animation: pcShine 1.1s ease-out forwards;
}

@keyframes pcShine {
  to { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .product-card.pc2 .product-card__image {
    --pc-zoom: 1;
    transform: none !important;
  }

  .product-card.pc2 .product-card__image-wrap::after {
    display: none;
  }
}

/* ===== Cart count badge — small red pill, clear in light & dark ===== */
#cartBtn { position: relative; }
#cartBtn .cart-badge,
.mobile-bottom-item .mbb-badge {
  position: absolute !important;
  top: -7px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(3px);
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff4d5e, #e11d48) !important;
  color: #fff !important;
  font: 800 11px/19px "Inter", "Noto Sans Bengali", system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0 !important;
  border: 2px solid var(--bg-card, #fff) !important;
  box-shadow: 0 3px 8px rgba(225, 29, 72, .35) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}
#cartBtn .cart-badge.hidden { display: none !important; }
html[data-theme="dark"] #cartBtn .cart-badge,
html[data-theme="dark"] .mobile-bottom-item .mbb-badge {
  border-color: #0f172a !important;
  box-shadow: 0 0 0 1px rgba(255, 77, 94, .35), 0 4px 10px rgba(0, 0, 0, .45) !important;
}
.mobile-bottom-item .mbb-badge { top: 2px !important; transform: translateX(3px); font-size: 10px !important; min-width: 17px !important; height: 17px !important; line-height: 17px !important; }
#cartBtn .cart-badge.pv-bump { animation: pvBump .4s ease; }
@keyframes pvBump { 40% { transform: translateX(3px) scale(1.3); } }

/* ===== Search by photo ===== */
.search-bar form { position: relative; }
.search-cam {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: 10px; display: grid; place-items: center;
  background: transparent; color: var(--text-muted, #64748b); cursor: pointer; z-index: 2; transition: color .15s, background .15s;
}
.search-cam:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); }
.search-bar .search-input { padding-left: 46px !important; }
.mob-scan-btn svg { width: 20px; height: 20px; }
html.pvis-lock { overflow: hidden; }
.pvis { position: fixed; inset: 0; z-index: 10050; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 23, .55); backdrop-filter: blur(4px); }
.pvis.is-open { display: flex; }
.pvis__card { width: min(720px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--bg-card, #fff); color: var(--text-main); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); font-family: "Noto Sans Bengali", var(--font-en, Inter), sans-serif; }
.pvis__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: inherit; border-bottom: 1px solid var(--border); z-index: 1; }
.pvis__head b { font-size: 1.05rem; }
.pvis__x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--text-main) 8%, transparent); color: inherit; cursor: pointer; font-size: 15px; }
.pvis__drop { margin: 16px; padding: 26px 18px; border: 2px dashed color-mix(in srgb, var(--primary) 40%, var(--border)); border-radius: 18px; text-align: center; display: grid; justify-items: center; gap: 10px; transition: background .15s, border-color .15s; }
.pvis__drop.is-over { background: color-mix(in srgb, var(--primary) 8%, transparent); border-color: var(--primary); }
.pvis__drop[hidden], .pvis__result[hidden] { display: none; }
.pvis__icon { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #06acfa, #3b6cff 55%, #7c3aed); box-shadow: 0 12px 28px rgba(59, 108, 255, .35); }
.pvis__drop p { margin: 0; max-width: 440px; font-size: .9rem; line-height: 1.6; color: var(--text-muted); }
.pvis__drop small { color: var(--text-muted); font-size: .75rem; }
.pvis__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pvis__btn { display: inline-flex; align-items: center; padding: 11px 18px; border-radius: 12px; border: 1.5px solid var(--border); font-weight: 800; font-size: .88rem; cursor: pointer; background: var(--bg-card); color: var(--text-main); }
.pvis__btn--main { border: 0; color: #fff; background: linear-gradient(135deg, #06acfa, #3b6cff); }
.pvis__result { padding: 14px 16px 18px; }
.pvis__q { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.pvis__q img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); flex: none; }
.pvis__q b { display: block; font-size: .95rem; }
.pvis__q small { display: block; color: var(--text-muted); font-size: .75rem; margin: 2px 0 4px; }
.pvis__again { border: 0; background: none; padding: 0; color: var(--primary); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.pvis__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pvis__item { display: grid; gap: 6px; padding: 8px; border-radius: 14px; border: 1px solid var(--border); text-decoration: none; color: inherit; background: var(--bg-card); transition: transform .15s, box-shadow .15s; }
.pvis__item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .1); }
.pvis__img { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-body, #f8fafc); }
.pvis__img img { width: 100%; height: 100%; object-fit: cover; }
.pvis__img em { position: absolute; left: 6px; top: 6px; font-style: normal; font-size: .64rem; font-weight: 800; color: #fff; padding: 3px 8px; border-radius: 99px; background: linear-gradient(135deg, #16a34a, #059669); }
.pvis__name { font-size: .8rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pvis__price { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: .82rem; }
.pvis__price b { color: var(--primary); }
.pvis__price s { color: var(--text-muted); font-size: .72rem; }
.pvis__price i { font-style: normal; font-size: .68rem; color: #dc2626; font-weight: 700; }
.pvis__sk { aspect-ratio: .78; border-radius: 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--text-main) 6%, transparent) 25%, color-mix(in srgb, var(--text-main) 12%, transparent) 50%, color-mix(in srgb, var(--text-main) 6%, transparent) 75%); background-size: 200% 100%; animation: pvisSk 1.1s infinite linear; }
@keyframes pvisSk { to { background-position: -200% 0; } }
html[data-theme="dark"] .pvis__card { background: #0f172a; }
@media (max-width: 560px) {
  .pvis { padding: 0; align-items: flex-end; }
  .pvis__card { border-radius: 22px 22px 0 0; max-height: 92dvh; }
  .pvis__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =================================================================
   Mobile bottom navigation — floating glass app bar
   Active tab grows into a pill with its label; photo search sits in
   the middle; tapping sends a soft ripple wave.
================================================================= */
@media (max-width: 900px) {
  .mobile-bottom-bar.pvnav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    height: 58px !important;
    padding: 0 4px !important;
    padding-bottom: max(0px, env(safe-area-inset-bottom)) !important;
    box-sizing: content-box !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr !important;
    align-items: center;
    justify-items: center;
    gap: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, .15) !important;
    background: #0c122a !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .4) !important;
    z-index: 95 !important;
  }
  html[data-theme="dark"] .mobile-bottom-bar.pvnav {
    border-top-color: rgba(148, 170, 255, .16) !important;
    background: #0b112c !important;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .5) !important;
  }
  html:not([data-theme="dark"]) .mobile-bottom-bar.pvnav {
    border-top-color: rgba(0, 0, 0, .08) !important;
    background: #ffffff !important;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .08) !important;
  }
  .pvnav .pvnav__i {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    width: 46px;
    height: 44px;
    min-width: 0;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    border-radius: 8px !important;
    color: #64748b !important;
    background: transparent;
    text-decoration: none;
    transition: background .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
  }
  html[data-theme="dark"] .pvnav .pvnav__i { color: #94a3c8 !important; }
  .pvnav .pvnav__i svg { width: 22px !important; height: 22px !important; flex: none; transition: transform .25s; }
  .pvnav .pvnav__i span {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: .76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0;
    transition: max-width .35s cubic-bezier(.3, .7, .3, 1), opacity .25s;
  }
  .pvnav .pvnav__i.active {
    gap: 6px !important;
    padding: 0 14px 0 12px !important;
    color: var(--primary) !important;
    background: color-mix(in srgb, var(--primary) 13%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
  }
  html[data-theme="dark"] .pvnav .pvnav__i.active {
    color: #8fb0ff !important;
    background: rgba(99, 130, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(143, 176, 255, .22);
  }
  .pvnav .pvnav__i.active span { max-width: 90px; opacity: 1; }
  .pvnav .pvnav__i:active svg { transform: scale(.86); }

  /* photo search in the middle */
  .pvnav__scan {
    position: relative;
    flex: none;
    width: 58px;
    height: 62px;
    border: 0;
    padding: 0;
    background: none;
    display: grid;
    justify-items: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .pvnav__scan-btn {
    position: relative;
    margin-top: -20px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #06acfa, #3b6cff 55%, #7c3aed);
    box-shadow: 0 10px 22px rgba(59, 108, 255, .42), 0 0 0 4px rgba(255, 255, 255, .9);
    transition: transform .2s;
  }
  html[data-theme="dark"] .pvnav__scan-btn { box-shadow: 0 10px 24px rgba(59, 108, 255, .45), 0 0 0 4px #0b1230; }
  .pvnav__scan-btn::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 21px;
    border: 2px solid rgba(99, 140, 255, .55);
    animation: pvnavPulse 2.4s ease-out infinite;
    pointer-events: none;
  }
  .pvnav__scan-btn svg { width: 25px !important; height: 25px !important; }
  .pvnav__scan:active .pvnav__scan-btn { transform: scale(.92); }
  .pvnav__scan-lbl { font-size: .64rem; font-weight: 800; color: #64748b; margin-top: 2px; }
  html[data-theme="dark"] .pvnav__scan-lbl { color: #94a3c8; }
  @keyframes pvnavPulse { 0% { transform: scale(.92); opacity: .9; } 80%, 100% { transform: scale(1.28); opacity: 0; } }

  /* ripple wave on tap */
  .pvnav-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: currentColor;
    opacity: .22;
    transform: scale(0);
    animation: pvnavRipple .6s ease-out forwards;
  }
  @keyframes pvnavRipple { to { transform: scale(2.6); opacity: 0; } }

  .pvnav .mbb-badge {
    position: absolute !important;
    top: 4px !important;
    left: calc(50% + 2px) !important;
    transform: none !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 4px !important;
    border-radius: 99px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ef4444 !important;
    color: #fff !important;
    border: 1.5px solid var(--bg-card, #0f172a) !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, .5) !important;
    line-height: 1 !important;
    z-index: 5 !important;
  }
  .pvnav .pvnav__i.active .mbb-badge { left: calc(50% + 2px) !important; }

  /* page content and floating buttons clear the bar */
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
  .floating-chat-container, .floating-chat-menu { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
  .mob-float-nav { display: none !important; }
}
@media (max-width: 360px) {
  .pvnav .pvnav__i.active span { max-width: 56px; }
  .pvnav .pvnav__i { min-width: 40px; padding: 0 9px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .pvnav__scan-btn::after, .pvnav-ripple { animation: none; display: none; }
}
.mobile-bottom-item .mbb-badge[style*="display: none"],
.mobile-bottom-item .mbb-badge[style*="display:none"] { display: none !important; }

/* ===== Phone code (OTP) dialog ===== */
.pvotp { position: fixed; inset: 0; z-index: 10060; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 23, .55); backdrop-filter: blur(4px); }
.pvotp.is-open { display: flex; }
.pvotp__c { position: relative; width: min(400px, 100%); padding: 26px 22px 20px; border-radius: 22px; background: var(--bg-card, #fff); color: var(--text-main); text-align: center; display: grid; gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); font-family: "Noto Sans Bengali", var(--font-en, Inter), sans-serif; }
html[data-theme="dark"] .pvotp__c { background: #0f172a; }
.pvotp__x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--text-main) 8%, transparent); color: inherit; cursor: pointer; }
.pvotp__ic { width: 60px; height: 60px; margin: 0 auto; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #06acfa, #3b6cff 55%, #7c3aed); box-shadow: 0 12px 26px rgba(59, 108, 255, .35); }
.pvotp__t { font-size: 1.15rem; }
.pvotp__m { margin: -4px 0 0; color: var(--text-muted); font-size: .86rem; line-height: 1.55; }
.pvotp__phone { display: flex; gap: 8px; }
.pvotp__phone[hidden], .pvotp__codebox[hidden] { display: none; }
.pvotp__phone input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--bg-body); color: var(--text-main); font: inherit; font-size: 17px; letter-spacing: .04em; }
.pvotp__phone input:focus, .pvotp__digits input:focus { outline: 0; border-color: var(--primary); }
.pvotp__send, .pvotp__go { height: 48px; padding: 0 18px; border: 0; border-radius: 14px; font: inherit; font-weight: 800; color: #fff; background: linear-gradient(135deg, #06acfa, #3b6cff); cursor: pointer; }
.pvotp__go { width: 100%; margin-top: 10px; }
.pvotp__send:disabled, .pvotp__go:disabled { opacity: .6; }
.pvotp__digits { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pvotp__digits input { width: 100%; height: 54px; text-align: center; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-body); color: var(--text-main); font: 800 1.35rem/1 Inter, system-ui, sans-serif; }
.pvotp__again { margin-top: 8px; border: 0; background: none; color: var(--primary); font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.pvotp__again:disabled { color: var(--text-muted); cursor: default; }
.pvotp__err { margin: 0; min-height: 1em; font-size: .84rem; font-weight: 700; }

/* ===== Bottom bar v2: icons only, 8px sleek smart glass bubble ===== */
@media (max-width: 900px) {
  .pvnav .pvnav__i span { display: none !important; }
  .pvnav .pvnav__i,
  .pvnav .pvnav__i.active {
    width: 46px; min-width: 46px; height: 44px; padding: 0 !important; gap: 0 !important;
    background: transparent !important; box-shadow: none !important; border-radius: 8px !important; z-index: 1;
  }
  .pvnav .pvnav__i svg { width: 22px !important; height: 22px !important; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), color .2s; }
  .pvnav .pvnav__i.active svg { transform: translateY(-1px) scale(1.08); }
  .pvnav__glass {
    position: absolute; top: 50%; left: 0; width: 46px; height: 44px; margin-top: -22px; border-radius: 12px !important;
    background: color-mix(in srgb, #3b6cff 10%, transparent);
    border: 1px solid color-mix(in srgb, #3b6cff 20%, transparent);
    box-shadow: 0 2px 10px color-mix(in srgb, #3b6cff 12%, transparent);
    transform: translateX(var(--gx, -80px)) scale(var(--gs, 1));
    transition: transform .45s cubic-bezier(.3, 1.35, .45, 1), opacity .2s;
    opacity: 0; pointer-events: none; z-index: 0;
  }
  .pvnav__glass.is-on { opacity: 1; }
  .pvnav__glass::after { display: none !important; }
  html[data-theme="dark"] .pvnav__glass {
    background: rgba(59, 108, 255, 0.18) !important;
    border-color: rgba(96, 165, 250, 0.32) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  }
  .pvnav .pvnav__i.active { color: #2563eb !important; }
  html[data-theme="dark"] .pvnav .pvnav__i.active { color: #60a5fa !important; }
  .pvnav__scan { height: 58px; align-content: center; }
  .pvnav__scan-btn { margin-top: -22px; width: 50px; height: 50px; border-radius: 14px !important; box-shadow: 0 8px 20px rgba(59, 108, 255, .45), 0 0 0 3px var(--bg-card, #fff) !important; }
  html[data-theme="dark"] .pvnav__scan-btn { box-shadow: 0 8px 20px rgba(59, 108, 255, .45), 0 0 0 3px #0b112c !important; }
  .pvnav .mbb-badge {
    position: absolute !important;
    top: 2px !important;
    right: 4px !important;
    left: auto !important;
    transform: none !important;
    min-width: 20px !important;
    height: 18px !important;
    padding: 0 4.5px !important;
    border-radius: 99px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    font-family: system-ui, -apple-system, sans-serif !important;
    line-height: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #dc2626 !important;
    color: #ffffff !important;
    border: 1.5px solid #0b112c !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, .8) !important;
    z-index: 5 !important;
  }
  html:not([data-theme="dark"]) .pvnav .mbb-badge {
    border-color: #ffffff !important;
  }
}

/* ===== Header light/dark button (phones & tablets) ===== */
.hdr-mode { display: none; }
@media (max-width: 900px) {
  .hdr-mode {
    display: grid; place-items: center; width: 40px; height: 40px; margin-right: 2px; padding: 0; border: 0; border-radius: 8px !important; cursor: pointer;
    color: #f59e0b; background: color-mix(in srgb, #f59e0b 12%, transparent); position: relative; overflow: hidden;
    transition: background .3s, color .3s, transform .15s;
  }
  .hdr-mode:active { transform: scale(.9); }
  .hdr-mode svg { position: absolute; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .25s; }
  .hdr-mode__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
  html[data-theme="dark"] .hdr-mode { color: #c7d2fe; background: rgba(129, 140, 248, .18); }
  html[data-theme="dark"] .hdr-mode__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
  html[data-theme="dark"] .hdr-mode__moon { opacity: 1; transform: none; }
}

/* ===== Bottom bar v3: docked edge-to-edge, NO empty gaps, rounded top corners ===== */
@media (max-width: 900px) {
  .mobile-bottom-bar.pvnav {
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: 100% !important; max-width: none !important; margin: 0 !important; transform: none !important;
    height: 58px !important;
    padding: 0 4px !important;
    padding-bottom: max(0px, env(safe-area-inset-bottom)) !important;
    box-sizing: content-box !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr !important;
    align-items: center; justify-items: center; gap: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    background: #0b112c !important;
    border: 0 !important; border-top: 1px solid rgba(255, 255, 255, .15) !important;
    box-shadow: 0 -8px 28px rgba(0, 0, 0, .45) !important;
    z-index: 95 !important;
  }
  html[data-theme="dark"] .mobile-bottom-bar.pvnav {
    border-top-color: rgba(148, 170, 255, .16) !important;
    background: #0b112c !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .5) !important;
  }
  html:not([data-theme="dark"]) .mobile-bottom-bar.pvnav {
    border-top-color: rgba(0, 0, 0, .08) !important;
    background: #ffffff !important;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .08) !important;
  }
  .pvnav .pvnav__i, .pvnav .pvnav__i.active { width: 46px; min-width: 0; max-width: 100%; height: 44px; border-radius: 10px !important; }
  .pvnav__glass { width: 46px; height: 44px; margin-top: -22px; border-radius: 10px !important; }
  .pvnav__scan { width: 64px; height: 58px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
  .floating-chat-container, .floating-chat-menu { bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 359px) {
  .mobile-bottom-bar.pvnav { grid-template-columns: 1fr 1fr 56px 1fr 1fr !important; }
  .pvnav .pvnav__i, .pvnav .pvnav__i.active, .pvnav__glass { width: 38px; height: 38px; border-radius: 8px !important; }
  .pvnav__glass { margin-top: -19px; }
  .pvnav .pvnav__i svg { width: 20px !important; height: 20px !important; }
}

/* ===== Side menu header: logo always visible (no blue bar behind a blue logo) ===== */
.mobile-nav .mobile-nav-header {
  background: var(--bg-card, #fff) !important;
  color: var(--text-main) !important;
  padding: 14px 16px 14px 20px !important;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.mobile-nav .mobile-nav-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, #06acfa, #3b6cff 55%, #7c3aed);
}
html[data-theme="dark"] .mobile-nav .mobile-nav-header { background: linear-gradient(180deg, #111a3a, #0d1430) !important; }
.mobile-nav .mobile-nav-logo { filter: none !important; height: 38px !important; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.mobile-nav .mobile-nav-close {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.05rem !important; color: var(--text-main) !important;
  background: color-mix(in srgb, var(--text-main) 7%, transparent);
}

/* ===== Shop pop-up (someone bought / new arrival) — small and quiet ===== */
.pvsp {
  position: fixed; left: 16px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 4px;
  max-width: min(320px, calc(100vw - 90px));
  padding: 6px 4px 6px 6px; border-radius: 16px;
  background: color-mix(in srgb, var(--bg-card, #fff) 94%, transparent);
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(14px) scale(.97); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.3, 1.3, .5, 1);
  font-family: inherit;
}
.pvsp.is-in { opacity: 1; transform: none; pointer-events: auto; }
html[data-theme="dark"] .pvsp { background: rgba(15, 22, 48, .94); border-color: rgba(148, 170, 255, .18); box-shadow: 0 12px 30px rgba(0, 0, 0, .45); }
.pvsp__a { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text-main); text-decoration: none; }
.pvsp__img { position: relative; flex: none; width: 44px; height: 44px; }
.pvsp__img img { width: 100%; height: 100%; border-radius: 11px; object-fit: cover; background: var(--gray-100, #f1f5f9); }
.pvsp__img i { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .62rem; font-weight: 900; color: #fff; background: #16a34a; box-shadow: 0 0 0 2px var(--bg-card, #fff); }
.pvsp--new .pvsp__img i { background: linear-gradient(135deg, #06acfa, #7c3aed); }
.pvsp__t { display: grid; min-width: 0; line-height: 1.25; }
.pvsp__t small { font-size: .7rem; font-weight: 700; color: #16a34a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvsp--new .pvsp__t small { color: #3b6cff; }
html[data-theme="dark"] .pvsp__t small { color: #4ade80; }
html[data-theme="dark"] .pvsp--new .pvsp__t small { color: #8fb0ff; }
.pvsp__t b { font-size: .8rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pvsp__t em { font-style: normal; font-size: .66rem; color: var(--text-muted); }
.pvsp__x { flex: none; align-self: flex-start; width: 22px; height: 22px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.pvsp__x:hover { background: color-mix(in srgb, var(--text-main) 8%, transparent); }
@media (max-width: 900px) {
  .pvsp { left: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: calc(100vw - 86px); padding: 5px 3px 5px 5px; border-radius: 14px; }
  .pvsp__img { width: 38px; height: 38px; }
  .pvsp__t b { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) { .pvsp { transition: opacity .2s; transform: none; } }

/* Header logo: the line under the logo sits centred below it, same width */
.logo .logo-stack { display: inline-flex; flex-direction: column; align-items: center; max-width: 100%; }
.logo .logo-stack img { object-position: center !important; max-width: 100%; }
.logo .logo-stack .logo-tagline { text-align: center; width: 100%; white-space: nowrap !important; overflow: hidden; text-overflow: ellipsis; }

/* ===== Quick order popup v2: wider, centred, two columns on big screens ===== */
#buyNowPopup.modal-overlay, .modal-overlay:has(.qc) { align-items: center !important; justify-content: center !important; padding: 16px !important; }
.modal-box.quick-checkout-modal.qc { max-width: 580px !important; width: 100%; max-height: min(92dvh, 820px) !important; margin: auto !important; border-radius: 22px !important; }
.qc .qc__paytiles { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.qc .qc__ptile { position: relative; display: grid !important; justify-items: center; gap: 3px; padding: 9px 4px 8px !important; border: 1.5px solid var(--border) !important; border-radius: 14px !important; background: var(--bg-card) !important; color: var(--text-main) !important; cursor: pointer; text-align: center; height: auto !important; min-height: 0 !important; font: inherit; }
.qc .qc__ptile b { font-size: .76rem; line-height: 1.2; }
.qc .qc__ptile small { font-size: .6rem; color: var(--text-muted); line-height: 1.2; }
.qc .qc__ptile.is-active { border-color: var(--pc) !important; background: color-mix(in srgb, var(--pc) 7%, var(--bg-card)) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 16%, transparent) !important; }
.qc .qc__ptile.is-active::after { content: "✓"; position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: .66rem; font-weight: 900; color: #fff; background: var(--pc); box-shadow: 0 0 0 2px var(--bg-card); }
.qc .qc__plogo { width: 30px; height: 30px; display: block; }
.qc .qc__plogo svg { width: 100%; height: 100%; display: block; }
.qc .qc__send { margin-top: 8px; padding: 10px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--pc) 45%, transparent); background: color-mix(in srgb, var(--pc) 5%, transparent); display: grid; gap: 8px; font-size: .8rem; }
.qc .qc__send[hidden] { display: none; }
.qc .qc__send-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.qc .qc__copy { border: 0; border-radius: 999px; padding: 4px 4px 4px 10px; font: inherit; font-weight: 800; color: var(--pc); background: var(--bg-card); box-shadow: inset 0 0 0 1.5px var(--pc); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.qc .qc__copy i { font-style: normal; font-size: .66rem; padding: 2px 8px; border-radius: 999px; color: #fff; background: var(--pc); }
.qc .qc__send-amt b { color: var(--pc); }
.qc .qc__bknote { margin-top: 8px; padding: 8px 10px; border-radius: 12px; font-size: .76rem; background: rgba(226, 19, 110, .07); border: 1px dashed rgba(226, 19, 110, .35); }
.qc .qc__bknote[hidden] { display: none; }
.qc .quick-checkout__submit.is-bkash { background: linear-gradient(135deg, #e2136e, #b0105a) !important; }
@media (max-width: 480px) { .qc .qc__paytiles { grid-template-columns: repeat(min(var(--n, 4), 4), minmax(0, 1fr)); gap: 6px; } .qc .qc__ptile small { display: none; } }

.qc .qc__items { min-height: 64px; flex: none !important; max-height: 30vh; overflow-y: auto; }


/* ===== Phone header: one-tap ৳/$ and বাং/EN chips, small light/dark button; cart & account live in the bottom bar ===== */
.hdr-quick { display: none; }
@media (max-width: 900px) {
  .header .header-actions .header-action-btn { display: none !important; }
  .header .header-actions { padding-right: 10px !important; flex: 0 0 auto !important; }
  .hdr-quick { display: flex; align-items: center; gap: 6px; margin-right: 6px; }
  .hdr-quick__f { margin: 0; display: contents; }
  .hdr-chip {
    position: relative; display: inline-flex; align-items: center; height: 30px; padding: 2px; gap: 0;
    border: 1px solid color-mix(in srgb, var(--primary, #3b6cff) 25%, transparent); border-radius: 999px;
    background: color-mix(in srgb, var(--primary, #3b6cff) 7%, transparent); cursor: pointer; font: inherit;
    -webkit-tap-highlight-color: transparent; transition: transform .15s;
  }
  .hdr-chip:active { transform: scale(.93); }
  .hdr-chip b {
    display: grid; place-items: center; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 999px;
    font-size: .74rem; font-weight: 800; line-height: 1; color: var(--text-muted, #64748b); transition: background .25s, color .25s;
  }
  html[lang="bn"] .hdr-chip--lang b.l-bn, html:not([lang="bn"]) .hdr-chip--lang b.l-en,
  .hdr-chip b.on { background: linear-gradient(135deg, #06acfa, #3b6cff); color: #fff; box-shadow: 0 3px 8px rgba(59, 108, 255, .35); }
  .hdr-chip--cur b { font-size: .82rem; min-width: 24px; padding: 0 5px; }
  html[data-theme="dark"] .hdr-chip { border-color: rgba(148, 170, 255, .22); background: rgba(148, 170, 255, .08); }
  html[data-theme="dark"] .hdr-chip b { color: #94a3c8; }
  .hdr-mode { width: 32px !important; height: 32px !important; border-radius: 10px !important; margin-right: 0 !important; }
  .hdr-mode svg { width: 17px; height: 17px; }
}
@media (max-width: 374px) {
  .hdr-quick { gap: 4px; margin-right: 4px; }
  .hdr-chip b { min-width: 22px; padding: 0 4px; font-size: .68rem; }
  .hdr-mode { width: 30px !important; height: 30px !important; }
}

/* ===== Bottom bar: 5 tabs + photo search, search stays centred ===== */
@media (max-width: 900px) {
  .mobile-bottom-bar.pvnav { grid-template-columns: 1.5fr 1.5fr 64px 1fr 1fr 1fr !important; }
}
@media (max-width: 359px) {
  .mobile-bottom-bar.pvnav { grid-template-columns: 1.5fr 1.5fr 58px 1fr 1fr 1fr !important; }
}

.pc-badge--new { background: linear-gradient(135deg, #10b981, #059669) !important; color: #fff !important; }

/* ===== Bottom bar — light mode contrast: tinted bar, clear edge, coloured active bubble ===== */
@media (max-width: 900px) {
  html:not([data-theme="dark"]) .mobile-bottom-bar.pvnav {
    background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%) !important;
    border-top: 1px solid #d6e0f5 !important;
    box-shadow: 0 -6px 22px rgba(30, 58, 138, .14), inset 0 1px 0 #fff !important;
  }
  html:not([data-theme="dark"]) .pvnav .pvnav__i { color: #475569 !important; }
  html:not([data-theme="dark"]) .pvnav .pvnav__i.active { color: #2563eb !important; }
  html:not([data-theme="dark"]) .pvnav .pvnav__i:hover { color: #1e3a8a !important; }
  html:not([data-theme="dark"]) .pvnav__glass {
    background: linear-gradient(145deg, rgba(59, 108, 255, .16), rgba(6, 172, 250, .08)) !important;
    border: 1px solid rgba(59, 108, 255, .35) !important;
    box-shadow: 0 6px 16px rgba(59, 108, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .8) !important;
  }
  html:not([data-theme="dark"]) .pvnav__glass::after { background: #2563eb; }
  html:not([data-theme="dark"]) .pvnav__scan-btn { box-shadow: 0 10px 22px rgba(59, 108, 255, .4), 0 0 0 4px #eef3ff !important; }
}

/* offer bar driven by script: starts from the first word */
.top-notif-bar__track.is-js { animation: none !important; will-change: transform; }

/* Header row lines up with the top bar, menu and banner (logo and Account stay inside the page width) */
@media (min-width: 1024px) {
  .header .container.header-inner { padding-left: var(--space-4, 16px) !important; padding-right: var(--space-4, 16px) !important; box-sizing: border-box; }
}

/* ===== Quick order popup: payment choices always in view — compact tiles, shorter item list ===== */
.qc .qc__items { max-height: min(24vh, 190px) !important; }
.qc .qc__body { padding-bottom: 14px !important; }
.qc .qc__ptile { display: flex !important; flex-direction: row; align-items: center; justify-content: center; gap: 7px !important; padding: 8px 8px !important; min-height: 46px !important; text-align: left; }
.qc .qc__ptile .qc__plogo { width: 24px; height: 24px; flex: none; }
.qc .qc__ptile b { font-size: .78rem; white-space: nowrap; }
.qc .qc__ptile small { display: none !important; }
@media (max-width: 480px) {
  .qc .qc__paytiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .qc .qc__items { max-height: 20vh !important; }
}
@media (max-height: 760px) { .qc .qc__items { max-height: 17vh !important; } }
.qc .qc__payfix { margin: 0 0 10px; }
.qc .qc__payfix .qc__label { margin: 0 0 6px; font-size: .76rem; }
.qc .qc__payfix .qc__ptile { min-height: 40px !important; padding: 6px 8px !important; }
.qc .qc__payfix .qc__ptile { gap: 5px !important; padding: 6px 6px !important; min-width: 0; }
.qc .qc__payfix .qc__ptile .qc__plogo { width: 22px; height: 22px; }
.qc .qc__payfix .qc__ptile b { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .74rem; }
@media (min-width: 481px) { .qc .qc__payfix .qc__paytiles[style*="--n:4"] { grid-template-columns: 1.45fr 1fr 1fr 1fr; } }
.qc .quick-checkout__submit.is-nagad, .co .is-nagad, button.is-nagad { background: linear-gradient(135deg, #f6921e, #e0561b) !important; }
.qc .qc__bknote--nagad { background: rgba(246, 146, 30, .08); border-color: rgba(246, 146, 30, .4); }
/* free delivery progress in the order popup */
.qc .qc__fs { margin: 8px 0 4px; padding: 8px 11px; border-radius: 12px; background: linear-gradient(90deg, rgba(16, 185, 129, .1), rgba(14, 165, 233, .08)); border: 1px solid rgba(16, 185, 129, .25); }
.qc .qc__fs-t { font-size: .78rem; color: var(--text-main); }
.qc .qc__fs-t b { color: #059669; }
html[data-theme="dark"] .qc .qc__fs-t b { color: #34d399; }
.qc .qc__fs-bar { height: 6px; margin-top: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text-main) 10%, transparent); overflow: hidden; }
.qc .qc__fs-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10b981, #06acfa); transition: width .6s ease; }
.qc .qc__fs.is-done { background: rgba(16, 185, 129, .14); }
/* header logo a little smaller */
.header .logo img.logo-img-light, .header .logo img.logo-img-dark, .header .logo img.logo-img-mobile { height: auto !important; max-height: 40px !important; width: auto; }
@media (max-width: 900px) { .header .logo img.logo-img-light, .header .logo img.logo-img-dark, .header .logo img.logo-img-mobile { max-height: 34px !important; } }

/* Page scrollbar in light mode — same slim blue→purple style as dark mode */
html:not([data-theme="dark"]) ::-webkit-scrollbar { width: 10px; height: 10px; }
html:not([data-theme="dark"]) ::-webkit-scrollbar-track { background: #eef2fb; }
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb { background: linear-gradient(#265dfa, #6d28d9); border-radius: 10px; border: 2px solid #eef2fb; }
html:not([data-theme="dark"]) ::-webkit-scrollbar-thumb:hover { background: linear-gradient(#1e4fe0, #5b21b6); }
@supports (-moz-appearance: none) { html:not([data-theme="dark"]) { scrollbar-color: #4f46e5 #eef2fb; } }

/* Header: Account sits a little inside; menu "Admin" ends exactly at the banner's right edge */
@media (min-width: 1024px) {
  .header .header-actions > .header-action-btn:last-of-type { margin-right: 0; padding-right: 0 !important; padding-left: 0 !important; }
  .topbar-right > :last-child, .topbar-right form:last-child button:last-child { padding-right: 0 !important; margin-right: 0 !important; }
  .navbar .container { padding-left: var(--space-4, 16px) !important; padding-right: var(--space-4, 16px) !important; }
  .navbar .nav-list { padding-left: 0 !important; padding-right: 0 !important; }
  .navbar .nav-item--admin .nav-link { padding-right: 0 !important; }
}

/* side banner cards: soft shimmer while a picture is still loading (never a flat dark box) */
.hbg__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .08) 50%, transparent 70%); background-size: 200% 100%; animation: hbgShim 1.4s linear infinite; z-index: 0; pointer-events: none; }
.hbg__card:has(.hbg__ci.on img.is-ready)::after { display: none; }
@keyframes hbgShim { to { background-position: -200% 0; } }
.top-notif-bar__track.is-js > span { padding-right: 0 !important; }

/* Steady page on reload: the logo keeps its place while its picture is tidied up */
@media (min-width: 1024px) {
  .header .logo { flex: 0 0 auto; min-width: 200px; }
  .header .logo img.logo-img-light, .header .logo img.logo-img-dark { height: 40px !important; max-width: 220px; object-fit: contain; object-position: left center; }
}
html { scroll-behavior: auto; }

/* ===== Cart drawer: "You may also like" ===== */
.cd-sug { margin: 0 0 10px; padding: 10px 0 2px; border-bottom: 1px solid var(--border); }
.cd-sug[hidden] { display: none; }
.cd-sug__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cd-sug__h b { font-size: .92rem; font-weight: 800; position: relative; padding-bottom: 5px; }
.cd-sug__h b::after { content: ""; position: absolute; left: 0; bottom: 0; width: 38px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #06acfa, #3b6cff); }
.cd-sug__h span { display: flex; gap: 6px; }
.cd-sug__h button { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.05rem; font-weight: 800; line-height: 1; color: #fff; background: linear-gradient(135deg, #06acfa, #3b6cff); box-shadow: 0 4px 10px rgba(59, 108, 255, .3); transition: transform .15s; }
.cd-sug__h button:active { transform: scale(.9); }
.cd-sug__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.cd-sug__track::-webkit-scrollbar { display: none; }
.cd-sug__card { flex: 0 0 82%; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); }
.cd-sug__img { flex: 0 0 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--bg-body); display: block; }
.cd-sug__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-sug__info { min-width: 0; flex: 1; display: grid; gap: 3px; }
.cd-sug__name { font-size: .8rem; font-weight: 700; color: var(--text-main); text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.cd-sug__price { font-size: .8rem; }
.cd-sug__price b { color: var(--primary, #2563eb); }
html[data-theme="dark"] .cd-sug__price b { color: #60a5fa; }
.cd-sug__price s { margin-left: 6px; font-size: .72rem; color: var(--text-muted); }
.cd-sug__add { justify-self: start; display: inline-flex; align-items: center; gap: 3px; padding: 4px 12px; border: 0; border-radius: 99px; cursor: pointer; font: inherit; font-size: .72rem; font-weight: 800; color: #fff; text-decoration: none; background: linear-gradient(135deg, #06acfa, #3b6cff); }
.cd-sug__add:hover { filter: brightness(1.08); color: #fff; }
.cd-sug__add.btn-loading { opacity: .6; pointer-events: none; }
.cd-sug { padding-top: 6px; margin-bottom: 8px; }
.cd-sug__h { margin-bottom: 6px; }
.cd-sug__card { padding: 6px; gap: 8px; }
.cd-sug__img { flex-basis: 52px; height: 52px; }
.cd-sug__name { -webkit-line-clamp: 1; }
.cd-sug__add { padding: 3px 11px; }

/* ===== Mini cart tab: draggable everywhere, 8px smart radius ===== */
.pv-minicart {
  position: fixed; right: 0; top: 50%; z-index: 205; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: stretch; width: 76px; padding: 0; border: 0; cursor: grab;
  border-radius: 8px !important; overflow: hidden; font: inherit; text-align: center;
  box-shadow: -4px 8px 24px rgba(15, 23, 42, .24); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), opacity .25s, right .3s;
  touch-action: none !important; user-select: none !important; -webkit-user-select: none !important;
}
.pv-minicart.is-empty { opacity: 0; pointer-events: none; transform: translate(100%, -50%); }
.pv-minicart__top { display: grid; justify-items: center; gap: 2px; padding: 9px 4px 7px; color: #fff; background: linear-gradient(160deg, #06acfa, #3b6cff 70%, #6d28d9); }
.pv-minicart__top small { font-size: .68rem; font-weight: 600; line-height: 1.1; }
.pv-minicart__top small b { font-weight: 800; }
.pv-minicart__total { padding: 5px 4px; font-size: .74rem; font-weight: 800; color: #2563eb; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-theme="dark"] .pv-minicart__total { background: #0f172a; color: #60a5fa; }
.pv-minicart:hover:not(.is-dragged) { right: 2px; }
.pv-minicart.is-dragging { cursor: grabbing !important; opacity: .94 !important; transform: scale(1.06) !important; box-shadow: 0 16px 36px rgba(15, 23, 42, .45) !important; transition: opacity .15s, box-shadow .15s !important; }
.pv-minicart.is-dragged { transition: opacity .25s, box-shadow .25s !important; }
.pv-minicart.is-bump { animation: pvMcBump .55s ease; }
@keyframes pvMcBump { 0% { transform: translateY(-50%) scale(1); } 35% { transform: translateY(-50%) scale(1.12); } 100% { transform: translateY(-50%) scale(1); } }
body:has(.cart-drawer.open) .pv-minicart, body:has(.modal-overlay.show) .pv-minicart, body:has(.pvai.is-open) .pv-minicart { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .pv-minicart { width: 66px; top: 46%; border-radius: 8px !important; }
  .pv-minicart__top { padding: 7px 3px 5px; }
  .pv-minicart__top svg { width: 19px; height: 19px; }
  .pv-minicart__top small { font-size: .62rem; }
  .pv-minicart__total { font-size: .66rem; padding: 4px 3px; }
}

/* ===== Back to top: round button whose ring fills while scrolling ===== */
#backToTop.pv-totop {
  position: fixed; right: 26px; bottom: 96px; z-index: 210; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  display: grid !important; place-items: center; cursor: pointer; color: #fff; background: linear-gradient(135deg, #06acfa, #3b6cff);
  box-shadow: 0 8px 20px rgba(59, 108, 255, .35); opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .3s, transform .35s cubic-bezier(.3, 1.4, .5, 1), visibility .3s;
}
#backToTop.pv-totop.is-on { opacity: 1; visibility: visible; transform: none; }
#backToTop.pv-totop:hover { transform: translateY(-2px); }
.pv-totop__ring { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); transform: rotate(-90deg); pointer-events: none; }
.pv-totop__bg { fill: none; stroke: rgba(59, 108, 255, .18); stroke-width: 3; }
.pv-totop__bar { fill: none; stroke: #3b6cff; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
html[data-theme="dark"] .pv-totop__bar { stroke: #60a5fa; }
@media (max-width: 900px) {
  #backToTop.pv-totop { display: grid !important; right: 18px; bottom: calc(148px + env(safe-area-inset-bottom)); width: 42px; height: 42px; }
}
body:has(.cart-drawer.open) #backToTop.pv-totop, body:has(.modal-overlay.show) #backToTop.pv-totop { opacity: 0; visibility: hidden; }

/* ===== Phone header: ৳ and BN as small one-tap buttons, same style as the light/dark button ===== */
@media (max-width: 900px) {
  .hdr-quick { gap: 6px !important; margin-right: 6px !important; }
  .hdr-chip { display: none !important; }
  .hdr-btn {
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
    font: 800 .82rem/1 Inter, "Noto Sans Bengali", system-ui, sans-serif; color: #2563eb;
    background: color-mix(in srgb, #3b6cff 12%, transparent); -webkit-tap-highlight-color: transparent; transition: transform .15s, background .2s;
  }
  .hdr-btn:active { transform: scale(.9); }
  .hdr-btn--lang { font-size: .7rem; letter-spacing: .02em; }
  html[lang="bn"] .hdr-btn--lang .l-en, html:not([lang="bn"]) .hdr-btn--lang .l-bn { display: none; }
  html[data-theme="dark"] .hdr-btn { color: #c7d2fe; background: rgba(129, 140, 248, .18); }
}
@media (min-width: 1024px) { .hdr-btn { display: none; } }

/* ===== Logo height: separate for desktop and phones (Admin → Settings → Logo) ===== */
.header .logo img.logo-img-light, .header .logo img.logo-img-dark, .header .logo img.logo-img-mobile { height: var(--logo-h-d, 40px) !important; max-height: none !important; width: auto !important; max-width: 260px; object-fit: contain; object-position: left center; }
@media (max-width: 900px) {
  .header .logo img.logo-img-light, .header .logo img.logo-img-dark, .header .logo img.logo-img-mobile { height: var(--logo-h-m, 28px) !important; max-width: 150px; }
  .header .logo .logo-tagline { font-size: .58rem !important; margin-top: 3px !important; }
}

/* ===== Bottom bar: Home · Shop · [photo search] · Cart · Account — even spacing ===== */
@media (max-width: 900px) {
  .mobile-bottom-bar.pvnav { grid-template-columns: 1fr 1fr 72px 1fr 1fr !important; }
}
@media (max-width: 359px) {
  .mobile-bottom-bar.pvnav { grid-template-columns: 1fr 1fr 62px 1fr 1fr !important; }
}

/* ===== Cart drawer: no visible scrollbar (still scrolls), compact two-up suggestions ===== */
.cart-drawer .cart-drawer__body { scrollbar-width: none; -ms-overflow-style: none; }
.cart-drawer .cart-drawer__body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.cd-sug { padding-top: 4px !important; margin-bottom: 6px !important; }
.cd-sug__h { margin-bottom: 5px !important; }
.cd-sug__h b { font-size: .82rem !important; padding-bottom: 4px !important; }
.cd-sug__h button { width: 24px !important; height: 24px !important; font-size: .9rem !important; }
.cd-sug__track { gap: 8px !important; padding-bottom: 4px !important; }
.cd-sug__card { flex: 0 0 calc(50% - 4px) !important; display: grid !important; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 7px !important; align-items: center; padding: 6px !important; border-radius: 12px !important; }
.cd-sug__img { grid-row: 1 / 3; width: 40px !important; height: 40px !important; flex: none !important; border-radius: 8px !important; }
.cd-sug__name { -webkit-line-clamp: 1 !important; font-size: .7rem !important; line-height: 1.25 !important; }
.cd-sug__row { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-width: 0; }
.cd-sug__price { font-size: .7rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-sug__price s { margin-left: 3px !important; font-size: .62rem !important; }
.cd-sug__add { flex: none; width: 22px; height: 22px; padding: 0 !important; justify-content: center; border-radius: 50% !important; font-size: .9rem !important; line-height: 1; }
.cart-drawer .cart-drawer__progress { padding: 8px 11px !important; margin-bottom: 8px !important; border-radius: 12px !important; }
.cart-drawer .cart-drawer__progress-copy { font-size: .74rem !important; margin-bottom: 6px !important; }
.cart-drawer .cart-drawer__progress-bar { height: 6px !important; }

/* Back to top v2: small, no filled background — just a thin progress ring and arrow */
#backToTop.pv-totop {
  width: 36px !important; height: 36px !important; right: 30px; bottom: 96px;
  color: #3b6cff; background: color-mix(in srgb, var(--bg-card, #fff) 55%, transparent) !important;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: none !important;
}
#backToTop.pv-totop .pv-totop__ring { inset: 0; width: 100%; height: 100%; }
#backToTop.pv-totop .pv-totop__bg { stroke: color-mix(in srgb, #3b6cff 22%, transparent); stroke-width: 2.4; }
#backToTop.pv-totop .pv-totop__bar { stroke-width: 2.4; }
#backToTop.pv-totop .pv-totop__arrow { width: 15px; height: 15px; transition: transform .2s; }
#backToTop.pv-totop:hover .pv-totop__arrow { transform: translateY(-2px); }
html[data-theme="dark"] #backToTop.pv-totop { color: #93c5fd !important; background: rgba(7, 11, 28, .35) !important; }
@media (max-width: 900px) {
  #backToTop.pv-totop { width: 34px !important; height: 34px !important; right: 25px; bottom: calc(146px + env(safe-area-inset-bottom)); }
}
#backToTop.pv-totop, html[data-theme="dark"] #backToTop.pv-totop { background: transparent !important; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
#backToTop.pv-totop .pv-totop__arrow { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }

/* Cart drawer: scrollbar truly hidden (still scrolls by wheel / finger), soft fade at the bottom edge */
.cart-drawer.cart-drawer .cart-drawer__body { scrollbar-width: none !important; -ms-overflow-style: none !important; overscroll-behavior: contain; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent); mask-image: linear-gradient(#000 calc(100% - 22px), transparent); }
.cart-drawer.cart-drawer .cart-drawer__body::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; background: transparent !important; }

/* Cart drawer bottom: tighter and tidy */
.cart-drawer.cart-drawer .cart-drawer__footer { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)) !important; }
.cart-drawer .cart-drawer__summary { gap: 4px !important; margin-bottom: 10px !important; }
.cart-drawer .cart-drawer__summary-row { font-size: .8rem !important; }
.cart-drawer .cart-drawer__summary-row:last-child { padding-top: 6px !important; font-size: .9rem !important; }
.cart-drawer .cart-drawer__summary-row:last-child strong { font-size: 1.05rem !important; }
.cart-drawer .cart-drawer__actions { gap: 8px !important; }
.cart-drawer .cart-drawer__actions .btn { height: 42px !important; border-radius: 12px !important; font-size: .85rem !important; }
.cart-drawer .cart-drawer__progress { padding: 6px 10px !important; margin-bottom: 8px !important; }
.cart-drawer .cart-drawer__progress-copy { font-size: .7rem !important; margin-bottom: 5px !important; }
.cart-drawer .cart-drawer__progress-bar { height: 5px !important; }
.cd-sug { margin-bottom: 4px !important; padding-bottom: 6px !important; }

/* "+1" flying into the floating cart, and the cart's little bump (later add-to-cart clicks) */
.pv-fly { position: fixed; z-index: 9999; margin: -14px 0 0 -18px; min-width: 36px; height: 28px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center;
  font: 800 .82rem/1 system-ui, sans-serif; color: #fff; background: linear-gradient(135deg, #06acfa, #3b6cff); box-shadow: 0 8px 22px rgba(59, 108, 255, .45);
  pointer-events: none; transition: transform .5s cubic-bezier(.5, -0.2, .7, 1), opacity .5s ease; }
.pv-minicart.pv-bump { animation: pvBump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pvBump { 0% { transform: translateY(-50%) scale(1); } 40% { transform: translateY(-50%) scale(1.14); } 100% { transform: translateY(-50%) scale(1); } }
.pv-added { position: relative; }
.pv-added::after { content: '✓'; position: absolute; top: -8px; right: -8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 900; color: #fff; background: #16a34a; box-shadow: 0 2px 6px rgba(22, 163, 74, .45); animation: pvPop .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pvPop { from { transform: scale(0); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .pv-fly { display: none; } .pv-minicart.pv-bump { animation: none; } }

/* Product cards: how many are in the cart, on the cart button itself (stays after reload) */
.pc-btn--cart { position: relative; overflow: visible; }
[data-pc-cart][data-count]::before { content: attr(data-count); position: absolute; top: -9px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  display: grid; place-items: center; font-size: .68rem; font-weight: 800; line-height: 1; color: #fff; background: linear-gradient(135deg, #06acfa, #3b6cff);
  box-shadow: 0 2px 6px rgba(59, 108, 255, .45); pointer-events: none; animation: pvPop .25s cubic-bezier(.3, 1.6, .5, 1); }
.pc-minus { position: absolute; top: -8px; left: -8px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 900; line-height: 1; color: #fff; background: #64748b; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); cursor: pointer; z-index: 2; }
.pc-minus:hover { background: #ef4444; }
.pc-minus[hidden] { display: none; }
[data-pc-cart].is-busy { opacity: .7; pointer-events: none; }

/* ── Mini cart v3: fully visible, clear of the screen edge / scrollbar; round "×" under it hides it;
      it slides back in by itself when a product is added ── */
.pv-minicart{right:16px;overflow:visible !important;border-radius:14px !important;
  box-shadow:0 10px 28px -8px rgba(15,23,42,.45);
  transition:transform .38s cubic-bezier(.32,.72,0,1),opacity .28s ease,box-shadow .25s !important}
.pv-minicart:hover:not(.is-dragged){right:16px}
.pv-minicart__top{border-radius:14px 14px 0 0}
.pv-minicart__total{border-radius:0 0 14px 14px}
.pv-minicart.is-tucked{transform:translate(calc(100% + 40px),-50%) !important;opacity:0 !important;pointer-events:none !important}
@media (max-width:768px){.pv-minicart{right:12px}}

/* drop-to-hide bubble (shows while the mini cart is dragged) */
.pv-mc-drop{position:fixed;left:50%;bottom:calc(28px + env(safe-area-inset-bottom));z-index:204;pointer-events:none;
  transform:translate(-50%,40px) scale(.6);opacity:0;transition:transform .28s cubic-bezier(.32,.72,0,1),opacity .2s}
.pv-mc-drop.is-on{transform:translate(-50%,0) scale(1);opacity:1}
.pv-mc-drop__b{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;color:#fff;
  background:rgba(15,23,42,.78);border:2px solid rgba(255,255,255,.35);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  box-shadow:0 10px 30px rgba(0,0,0,.35);transition:transform .2s cubic-bezier(.3,1.6,.5,1),background .2s,border-color .2s}
.pv-mc-drop.is-hot .pv-mc-drop__b{transform:scale(1.25);background:#dc2626;border-color:#fecaca}
@media (max-width:768px){.pv-mc-drop{bottom:calc(96px + env(safe-area-inset-bottom))}}

/* Mini cart v4: sits flush against the right edge (no gap) like a tab; after a drag it glides back to the edge */
.pv-minicart{right:0 !important;border-radius:14px 0 0 14px !important}
.pv-minicart .pv-minicart__top{border-radius:14px 0 0 0}
.pv-minicart .pv-minicart__total{border-radius:0 0 0 14px}
.pv-minicart:hover:not(.is-dragged){right:0 !important}
.pv-minicart.is-dragging{border-radius:14px !important}
.pv-minicart.is-dragging .pv-minicart__top{border-radius:14px 14px 0 0}
.pv-minicart.is-dragging .pv-minicart__total{border-radius:0 0 14px 14px}
.pv-minicart.is-docking{transition:left .34s cubic-bezier(.32,.72,0,1),top .34s cubic-bezier(.32,.72,0,1),border-radius .3s !important}
@media (max-width:768px){.pv-minicart{right:0 !important}}
/* drop bubble: no red — it grows a little and gets a soft ring when the cart is over it */
.pv-mc-drop.is-hot .pv-mc-drop__b{transform:scale(1.22);background:rgba(15,23,42,.9);border-color:#fff;box-shadow:0 0 0 6px rgba(255,255,255,.18),0 12px 32px rgba(0,0,0,.4)}

/* ── Shop page: compact cards so two full rows (10 products) fit on one screen ── */
@media (min-width: 901px) {
  #shop-products-grid.shop-products-grid { gap: 12px 12px; }
  #shop-products-grid .product-card.pc2 { border-radius: 14px; }
  #shop-products-grid .product-card.pc2 .product-card__image-wrap { aspect-ratio: 6 / 5; }
  #shop-products-grid .product-card.pc2 .product-card__body { gap: 2px; padding: 8px var(--pc-pad) 0; }
  #shop-products-grid .product-card.pc2 .product-card__category { font-size: .64rem; letter-spacing: .04em; }
  #shop-products-grid .product-card.pc2 .product-card__name { font-size: .88rem; line-height: 1.3; -webkit-line-clamp: 1; }
  #shop-products-grid .product-card.pc2 .product-card__price { margin-top: 1px; }
  #shop-products-grid .product-card.pc2 .pc-vars { margin-top: 4px; }
  #shop-products-grid .product-card.pc2 .product-card__footer { padding-top: 8px; padding-bottom: 10px; gap: 8px; }
  #shop-products-grid .product-card.pc2 .pc-btn { min-height: 34px; height: 34px; }
}
/* Mini cart v5: rounded on all four corners */
.pv-minicart,.pv-minicart.is-dragging{border-radius:14px !important}
.pv-minicart .pv-minicart__top,.pv-minicart.is-dragging .pv-minicart__top{border-radius:14px 14px 0 0}
.pv-minicart .pv-minicart__total,.pv-minicart.is-dragging .pv-minicart__total{border-radius:0 0 14px 14px}
/* Mini cart v6: 8 px from the right edge so both sides look the same (never under the scrollbar) */
.pv-minicart,.pv-minicart:hover:not(.is-dragged){right:8px !important}
@media (max-width:768px){.pv-minicart{right:8px !important}}
/* Mini cart v7: clean round corners, shrinks into the × when dropped there, pops back on add */
.pv-minicart{overflow:hidden !important;border-radius:16px !important;box-shadow:0 12px 30px -10px rgba(15,23,42,.55),0 0 0 1px rgba(255,255,255,.08) !important}
.pv-minicart .pv-minicart__top,.pv-minicart .pv-minicart__total,.pv-minicart.is-dragging .pv-minicart__top,.pv-minicart.is-dragging .pv-minicart__total{border-radius:0 !important}
.pv-minicart.is-sucked{transition:transform .26s cubic-bezier(.5,0,.75,0),opacity .26s ease !important;opacity:0 !important;pointer-events:none}
.pv-minicart.is-popin{animation:pvMcPop .45s cubic-bezier(.3,1.5,.5,1)}
@keyframes pvMcPop{from{opacity:0;transform:translateY(-50%) scale(.4)}to{opacity:1;transform:translateY(-50%) scale(1)}}
.pv-minicart.is-dragged.is-popin{animation-name:pvMcPopFree}
@keyframes pvMcPopFree{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
/* simpler × bubble */
.pv-mc-drop__b{width:48px !important;height:48px !important;background:rgba(15,23,42,.6) !important;border:1.5px solid rgba(255,255,255,.28) !important;box-shadow:0 6px 18px rgba(0,0,0,.3) !important}
.pv-mc-drop__b svg{width:18px;height:18px}
.pv-mc-drop.is-hot .pv-mc-drop__b{transform:scale(1.3) !important;background:rgba(15,23,42,.85) !important;border-color:rgba(255,255,255,.7) !important;box-shadow:0 0 0 5px rgba(255,255,255,.12),0 8px 22px rgba(0,0,0,.35) !important}

/* ── Shop page v2 (desktop): compact top, 2 rows visible on open, filter sidebar always fully shown ── */
@media (min-width: 901px) {
  body:has(#shop-products-grid) .breadcrumb { padding-top: 8px !important; padding-bottom: 4px !important; }
  body:has(#shop-products-grid) .breadcrumb + .section-sm,
  .section-sm:has(#shop-products-grid) { padding-top: 6px !important; }
  #shopTopBar { margin-bottom: 10px !important; }
  #shopTopBar h1 { font-size: 1.2rem !important; line-height: 1.3; margin: 0; }
  #shopTopBar h1 span { font-size: .85rem !important; }
  #shopTopBar select { padding: 6px 12px !important; }

  /* cards: a little shorter */
  #shop-products-grid .product-card.pc2 .product-card__image-wrap { aspect-ratio: 4 / 3; }
  #shop-products-grid .product-card.pc2 .product-card__body { padding-top: 7px; }
  #shop-products-grid .product-card.pc2 .product-card__footer { padding-top: 6px; padding-bottom: 8px; }
  #shop-products-grid .product-card.pc2 .pc-btn { min-height: 32px; height: 32px; }
  #shop-products-grid .product-card.pc2 .pc-vars { margin-top: 2px; }

  /* filter sidebar: tighter, and never cut off — it stays in view and scrolls on its own if a screen is short */
  #filterSidebar {
    max-height: calc(100vh - var(--header-height, 78px) - 20px);
    overflow-y: auto !important; overscroll-behavior: contain;
    scrollbar-width: none;
  }
  #filterSidebar::-webkit-scrollbar { display: none; }
  #filterSidebar .filter-header { padding: 8px 12px !important; position: sticky; top: 0; z-index: 2; }
  #filterSidebar .filter-section { padding-top: 9px !important; padding-bottom: 9px !important; }
  #filterSidebar .filter-section-title { margin-bottom: 6px !important; }
  #filterSidebar .filter-item { padding-top: 5px !important; padding-bottom: 5px !important; min-height: 0 !important; }
}
@media (min-width: 901px) {
  /* two full rows on open */
  #shop-products-grid .product-card.pc2 .product-card__image-wrap { aspect-ratio: 3 / 2; }
  #shop-products-grid .product-card.pc2 .product-card__image-wrap img { object-position: center 55%; }
  #shop-products-grid .product-card.pc2 .product-card__footer { padding-top: 4px; padding-bottom: 7px; }
  #shop-products-grid .product-card.pc2 .product-card__price { line-height: 1.2; }
  /* sidebar fits: category list shows ~9 at a time (the rest scroll inside the list) */
  #filterSidebar .filter-list-scroll--categories { max-height: 214px !important; scrollbar-width: thin; }
}
/* Mini cart v8: softer corners; add-to-cart bump/pop only scales (uses `scale`, never touches its position) */
.pv-minicart,.pv-minicart.is-dragging{border-radius:10px !important}
.pv-minicart.pv-bump,.pv-minicart.is-bump{animation:pvMcScaleBump .45s cubic-bezier(.3,1.5,.5,1) !important}
.pv-minicart.is-popin,.pv-minicart.is-dragged.is-popin{animation:pvMcScalePop .45s cubic-bezier(.3,1.5,.5,1) !important}
@keyframes pvMcScaleBump{0%{scale:1}40%{scale:1.1}100%{scale:1}}
@keyframes pvMcScalePop{from{opacity:0;scale:.4}to{opacity:1;scale:1}}
@media (prefers-reduced-motion:reduce){.pv-minicart.pv-bump,.pv-minicart.is-bump,.pv-minicart.is-popin{animation:none !important}}

/* ── Shop page v3 (desktop): no top bar / menu bar / notice bar; full photos; exactly two rows fill the screen ── */
@media (min-width: 901px) {
  body:has(#shop-products-grid) .top-notif-bar,
  body:has(#shop-products-grid) .topbar,
  body:has(#shop-products-grid) .navbar { display: none !important; }
  /* photos: whole product (no 3:2 crop); height set by the page so two rows fit exactly */
  #shop-products-grid .product-card.pc2 .product-card__image-wrap { aspect-ratio: 1 / 1; }
  #shop-products-grid[data-fit] .product-card.pc2 .product-card__image-wrap { aspect-ratio: auto; height: var(--pv-img-h); }
  #shop-products-grid .product-card.pc2 .product-card__image-wrap img { object-position: center; }
  /* category list: no scrollbar */
  #filterSidebar .filter-list-scroll--categories { scrollbar-width: none !important; }
  #filterSidebar .filter-list-scroll--categories::-webkit-scrollbar { display: none !important; }
}
@media (min-width: 901px) {
  #filterSidebar .filter-list-scroll--categories { max-height: 168px !important; }
  #filterSidebar .pr__chips { margin-top: 6px !important; gap: 5px !important; }
  #filterSidebar .pr__chips > * { padding-top: 3px !important; padding-bottom: 3px !important; }
}
@media (min-width: 901px) {
  #filterSidebar .filter-section { padding-top: 7px !important; padding-bottom: 7px !important; }
  #filterSidebar .filter-section-title { margin-bottom: 4px !important; }
}
/* cart badges: their own bump that only scales (the shared "pvBump" also moved things up) */
#cartBtn .cart-badge.pv-bump, #cartBadge.pv-bump, .cart-badge.pv-bump, .mobile-cart-fab-badge.pv-bump, .mbb-badge.pv-bump { animation: pvBadgeBump .4s cubic-bezier(.3,1.6,.5,1) !important; }
@keyframes pvBadgeBump { 0% { scale: 1; } 40% { scale: 1.3; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { #cartBadge.pv-bump, .cart-badge.pv-bump { animation: none !important; } }
/* header at the very top (shop page): keep the cart badge clear of the window edge, also while it bumps */
#cartBtn .cart-badge { top: -3px !important; }

/* ── Shop filter: category list v2 — rows never squeezed, smooth scroll, softer colours ── */
#filterSidebar .filter-list-scroll--categories {
  max-height: 176px !important; overflow-y: auto !important; overscroll-behavior: contain; scroll-behavior: smooth;
  scrollbar-width: none !important; padding-right: 2px;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
          mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
}
#filterSidebar .filter-list-scroll--categories.is-end { -webkit-mask-image: none; mask-image: none; }
#filterSidebar .filter-list-scroll--categories .filter-item {
  flex-shrink: 0 !important; min-height: 26px !important; padding: 3px 4px !important; margin: 0 !important;
  line-height: 1.35 !important; border-radius: 8px; align-items: center; gap: 8px;
  color: color-mix(in srgb, var(--text-main) 78%, transparent);
  font-size: .86rem; transition: background .15s, color .15s;
}
#filterSidebar .filter-list-scroll--categories .filter-item:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--text-main); }
#filterSidebar .filter-list-scroll--categories .filter-item > span:last-child { color: var(--text-muted); font-size: .72rem; opacity: .8; }
#filterSidebar .filter-list-scroll--categories .filter-item:has(input:checked) { color: var(--primary-light); font-weight: 700; background: color-mix(in srgb, var(--primary) 12%, transparent); }
#filterSidebar .filter-list-scroll--categories input[type=checkbox] { accent-color: var(--primary); width: 14px; height: 14px; flex: none; }

/* ── Shop filter: "More filters" in a neat 2 × 3 grid (3 lines), equal pills, smart and compact ── */
#filterSidebar .qf { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px !important; }
#filterSidebar .qf__t { display: block; min-width: 0; }
#filterSidebar .qf__t span {
  display: flex !important; align-items: center; justify-content: flex-start; gap: 5px !important;
  width: 100%; height: 30px; padding: 0 9px !important; border-radius: 9px !important;
  font-size: .74rem !important; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: color-mix(in srgb, var(--text-main) 82%, transparent);
  background: color-mix(in srgb, var(--text-main) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 90%, transparent) !important;
  transition: background .15s, border-color .15s, color .15s;
}
#filterSidebar .qf__t:hover span { border-color: color-mix(in srgb, var(--primary-light) 60%, transparent) !important; color: var(--text-main); }
#filterSidebar .qf__t input:checked + span { background: color-mix(in srgb, var(--primary) 16%, transparent) !important; border-color: var(--primary-light) !important; color: var(--primary-light) !important; }

/* Laptops (901–1023 px, e.g. 13" at 125–150 % zoom): keep the desktop shop layout — filter column + grid */
@media (min-width: 901px) and (max-width: 1023px) {
  .shop-layout { grid-template-columns: 210px minmax(0, 1fr) !important; gap: 12px !important; }
  .filter-sidebar { display: block !important; position: sticky !important; }
  #filterToggle { display: none !important; }
  #shop-products-grid.product-grid-5col { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}

/* ── Home (and every other list) on computers: same compact card as the shop page ── */
@media (min-width: 901px) {
  #pvPage .product-card.pc2 { border-radius: 14px; }
  #pvPage .product-card.pc2 .product-card__body { gap: 2px; padding: 8px var(--pc-pad) 0; }
  #pvPage .product-card.pc2 .product-card__category { font-size: .64rem; letter-spacing: .04em; }
  #pvPage .product-card.pc2 .product-card__name { font-size: .88rem; line-height: 1.3; -webkit-line-clamp: 1; }
  #pvPage .product-card.pc2 .product-card__price { margin-top: 1px; line-height: 1.2; }
  #pvPage .product-card.pc2 .pc-vars { margin-top: 2px; }
  #pvPage .product-card.pc2 .product-card__footer { padding-top: 6px; padding-bottom: 8px; gap: 8px; }
  #pvPage .product-card.pc2 .pc-btn { min-height: 32px; height: 32px; }
}

/* ── Colour swatches: a bit larger, soft depth, clear pick ring, works on light and dark cards ── */
.product-card.pc2 .pc-colors { gap: 6px !important; }
.product-card.pc2 .pc-swatch {
  width: 22px !important; height: 22px !important; border-radius: 50% !important;
  background: var(--sw, #ccc) !important;
  border: 2px solid var(--bg-card) !important;
  outline: 1px solid color-mix(in srgb, var(--text-main) 22%, transparent) !important; outline-offset: 0 !important;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.18), inset 0 2px 3px rgba(255,255,255,.35) !important;
  transition: transform .15s ease, outline-color .15s ease, outline-offset .15s ease !important;
}
.product-card.pc2 .pc-swatch:hover { transform: scale(1.12); outline-color: color-mix(in srgb, var(--primary-light) 70%, transparent) !important; }
.product-card.pc2 .pc-swatch.is-on { outline: 2px solid var(--primary-light) !important; outline-offset: 1px !important; transform: scale(1.06); }
.product-card.pc2 .pc-swatch:disabled { opacity: .35; transform: none; }

/* ── Phones: shop page without the notice bar, compact top; compact product cards everywhere ── */
@media (max-width: 900px) {
  body:has(#shop-products-grid) .top-notif-bar { display: none !important; }
  body:has(#shop-products-grid) .breadcrumb { display: none !important; }
  .section-sm:has(#shop-products-grid) { padding-top: 8px !important; }
  #shopTopBar { flex-wrap: nowrap !important; gap: 8px !important; margin-bottom: 10px !important; align-items: center !important; }
  #shopTopBar .shop-products-panel { flex: 1 1 auto; min-width: 0; }
  #shopTopBar h1 { font-size: 1.05rem !important; line-height: 1.25; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #shopTopBar h1 span { font-size: .75rem !important; }
  #shopTopBar > div:last-child { gap: 6px !important; flex: none; }
  #shopTopBar #filterToggle, #shopTopBar select { height: 34px !important; padding: 0 10px !important; font-size: .8rem !important; min-width: 0 !important; border-radius: 10px !important; }
  #shopTopBar select { max-width: 132px; }

  #pvPage .product-grid-5col, #shop-products-grid { gap: 8px !important; }
  #pvPage .product-card.pc2 { border-radius: 12px; }
  #pvPage .product-card.pc2 .product-card__body { gap: 2px !important; padding: 6px 8px 0 !important; }
  #pvPage .product-card.pc2 .product-card__category { font-size: .6rem !important; letter-spacing: .03em; }
  #pvPage .product-card.pc2 .product-card__name { font-size: .82rem !important; line-height: 1.25 !important; -webkit-line-clamp: 1 !important; }
  #pvPage .product-card.pc2 .product-card__price { line-height: 1.15; margin: 0 !important; }
  #pvPage .product-card.pc2 .product-card__price .price-current { font-size: .95rem; }
  /* colours and sizes on one line */
  #pvPage .product-card.pc2 .pc-vars { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 6px !important; margin-top: 3px !important; }
  #pvPage .product-card.pc2 .pc-colors, #pvPage .product-card.pc2 .pc-sizes { gap: 4px !important; margin: 0 !important; }
  #pvPage .product-card.pc2 .pc-swatch { width: 17px !important; height: 17px !important; border-width: 1.5px !important; }
  #pvPage .product-card.pc2 .pc-size { min-width: 22px !important; height: 20px !important; padding: 0 5px !important; font-size: .64rem !important; border-radius: 6px !important; }
  #pvPage .product-card.pc2 .pc-rating { font-size: .7rem; }
  #pvPage .product-card.pc2 .product-card__footer { padding: 6px 8px 8px !important; gap: 6px !important; }
  #pvPage .product-card.pc2 .pc-btn { height: 32px !important; min-height: 32px !important; font-size: .78rem !important; border-radius: 9px !important; }
}
/* one-line product names: enough line height for Bangla letters, nothing of a second line peeks out */
#pvPage .product-card.pc2 .product-card__name { display: block !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.45 !important; }
#pvPage .product-card.pc2 .product-card__name a { display: inline; }

/* ── Quick order popup: neat payment tiles and one-line delivery options ── */
#buyNowPopup .qc__paytiles { display: grid !important; gap: 8px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#buyNowPopup .qc__paytiles[data-n="1"] { grid-template-columns: 1fr !important; }
#buyNowPopup .qc__paytiles[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
#buyNowPopup .qc__paytiles[data-n="5"], #buyNowPopup .qc__paytiles[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
#buyNowPopup .qc__ptile { min-width: 0 !important; }
#buyNowPopup .qc__ptile b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#buyNowPopup .qc__choices { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
#buyNowPopup .qc__choice { min-width: 0 !important; display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 6px !important; }
#buyNowPopup .qc__choice span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#buyNowPopup .qc__choice strong { flex: none; }
@media (max-width: 600px) {
  #buyNowPopup .qc__choice { padding: 10px 11px !important; font-size: .82rem !important; min-height: 44px !important; }
  /* three payment options: three tiles in one row — logo on top, name below */
  #buyNowPopup .qc__paytiles[data-n="3"] .qc__ptile,
  #buyNowPopup .qc__paytiles[data-n="5"] .qc__ptile,
  #buyNowPopup .qc__paytiles[data-n="6"] .qc__ptile { flex-direction: column !important; justify-content: center !important; gap: 4px !important; padding: 8px 4px !important; text-align: center; min-height: 62px; }
  #buyNowPopup .qc__ptile small { display: none !important; }
  #buyNowPopup .qc__ptile b { font-size: .76rem !important; max-width: 100%; }
  #buyNowPopup .qc__plogo { width: 24px !important; height: 24px !important; flex: none; }
  #buyNowPopup .qc__plogo svg { width: 24px; height: 24px; }
}
/* quick order popup on phones: everything on one screen (tighter rows, fields and headings) */
@media (max-width: 600px) {
  #buyNowPopup .quick-checkout__body { padding-top: 8px !important; padding-bottom: 8px !important; }
  #buyNowPopup .qc__items-head { margin-bottom: 4px !important; font-size: .78rem !important; }
  #buyNowPopup .quick-checkout__items { max-height: 116px !important; overflow-y: auto !important; gap: 6px !important; scrollbar-width: none; }
  #buyNowPopup .quick-checkout__item { padding: 6px 8px !important; min-height: 0 !important; gap: 8px !important; }
  #buyNowPopup .quick-checkout__item-image { width: 40px !important; height: 40px !important; }
  #buyNowPopup .quick-checkout__item-name { font-size: .8rem !important; line-height: 1.3 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #buyNowPopup .quick-checkout__item-meta { font-size: .7rem !important; line-height: 1.3 !important; }
  #buyNowPopup .quick-checkout__qty { height: 30px !important; }
  #buyNowPopup .quick-checkout__qty button { width: 28px !important; }
  #buyNowPopup .qc__fs { padding: 6px 10px !important; margin: 6px 0 !important; font-size: .76rem !important; }
  #buyNowPopup .qc__fs * { margin-top: 0 !important; }
  #buyNowPopup .qc__grid { gap: 8px !important; }
  #buyNowPopup .qc__field { gap: 3px !important; margin-bottom: 6px !important; }
  #buyNowPopup .qc__field > span { font-size: .74rem !important; }
  #buyNowPopup .qc__field input { height: 40px !important; padding: 0 11px !important; font-size: .85rem !important; }
  #buyNowPopup .qc__field textarea { height: 44px !important; min-height: 44px !important; padding: 10px 11px !important; font-size: .85rem !important; resize: none; }
  #buyNowPopup .qc__label { margin: 4px 0 5px !important; font-size: .76rem !important; }
  #buyNowPopup .qc__choice { min-height: 40px !important; padding: 8px 10px !important; }
  #buyNowPopup .qc__footer { padding-top: 8px !important; padding-bottom: 10px !important; gap: 6px !important; }
  #buyNowPopup .quick-checkout__submit { height: 46px !important; min-height: 46px !important; }
}
/* the floating cart steps aside while the quick order popup is open */
body:has(#buyNowPopup.show) .pv-minicart, body:has(#buyNowPopup.open) .pv-minicart, body:has(#buyNowPopup.active) .pv-minicart,
body:has(#buyNowPopup[style*="flex"]) .pv-minicart, body:has(#buyNowPopup[style*="block"]) .pv-minicart { opacity: 0 !important; pointer-events: none !important; }
