/* ==========================================================================
   Wholesale Price BD — Bootstrap 5.3.8 theme layer
   Palette + component styles ported 1:1 from the original design canvas.
   ========================================================================== */

:root {
  /* Brand palette */
  --wp-primary: #D9531E;
  --wp-primary-dark: #B23F13;
  --wp-ink: #211C18;
  --wp-muted: #5B534C;
  --wp-muted-2: #8A8078;
  --wp-muted-3: #9C918A;
  --wp-line: #EDE4DB;
  --wp-line-2: #E0D5CA;
  --wp-bg: #FAF7F4;
  --wp-bg-soft: #FBF9F7;
  --wp-tint: #FFF3EC;
  --wp-tint-line: #F6DFD1;
  --wp-tint-line-2: #F3C7AF;
  --wp-chip: #F4EEE8;
  --wp-green: #1FA855;
  --wp-green-soft: #EAF7EF;
  --wp-ph: repeating-linear-gradient(135deg, #F0EAE4 0 10px, #E7DFD7 10px 20px);
  --wp-ph-lg: repeating-linear-gradient(135deg, #F0EAE4 0 12px, #E7DFD7 12px 24px);
  --wp-ph-sm: repeating-linear-gradient(135deg, #F0EAE4 0 8px, #E7DFD7 8px 16px);
  --wp-num: Manrope, sans-serif;

  /* Bootstrap overrides */
  --bs-primary: #D9531E;
  --bs-primary-rgb: 217, 83, 30;
  --bs-body-bg: #FAF7F4;
  --bs-body-color: #211C18;
  --bs-body-font-family: 'Hind Siliguri', system-ui, sans-serif;
  --bs-body-font-size: 15px;
  --bs-border-color: #EDE4DB;
  --bs-border-radius: 0.625rem;      /* 10px */
  --bs-border-radius-sm: 0.5rem;     /* 8px  */
  --bs-border-radius-lg: 0.75rem;    /* 12px */
  --bs-border-radius-xl: 0.875rem;   /* 14px */
  --bs-border-radius-xxl: 1rem;      /* 16px */
  --bs-link-color: #D9531E;
  --bs-link-color-rgb: 217, 83, 30;
  --bs-link-hover-color: #B23F13;
  --bs-link-hover-color-rgb: 178, 63, 19;
  --bs-link-decoration: none;
  --bs-emphasis-color: #211C18;
  --bs-secondary-color: #5B534C;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

body {
  background: var(--wp-bg);
  color: var(--wp-ink);
  font-family: 'Hind Siliguri', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a:hover { color: var(--wp-primary-dark); }
button { font-family: inherit; }

/* 1240px content rail, 16px side padding — matches the original layout. */
.container { max-width: 1240px; --bs-gutter-x: 2rem; }
.wp-narrow { max-width: 1000px; }
.wp-tight { max-width: 460px; }

.wp-num { font-family: var(--wp-num); }
.min-w-0 { min-width: 0; }

/* Navigation targets are real links across the multi-page site; these keep the
   anchors looking exactly like the buttons they replaced. */
a.wp-brand, a.wp-cat-card, a.wp-p-name, a.wp-card-media, a.wp-menu-link, a.wp-link-btn { text-decoration: none; }
a.wp-cat-card { display: block; }
a.wp-p-name { display: block; }
a.wp-brand, a.wp-brand:hover { color: inherit; }
a.wp-p-name:hover { color: var(--wp-ink); }
a.wp-menu-link:hover { color: var(--wp-ink); }
a.wp-menu-link.is-active, a.wp-menu-link.is-active:hover { color: #fff; }
a.wp-link-btn:hover { color: var(--wp-primary-dark); }

/* Bootstrap button re-skin */
.btn {
  --bs-btn-font-family: 'Hind Siliguri', system-ui, sans-serif;
  --bs-btn-border-radius: 0.75rem;
}
.btn-primary {
  --bs-btn-bg: #D9531E;
  --bs-btn-border-color: #D9531E;
  --bs-btn-hover-bg: #B23F13;
  --bs-btn-hover-border-color: #B23F13;
  --bs-btn-active-bg: #B23F13;
  --bs-btn-active-border-color: #B23F13;
  --bs-btn-disabled-bg: #D9531E;
  --bs-btn-disabled-border-color: #D9531E;
}
.btn-outline-primary {
  --bs-btn-color: #D9531E;
  --bs-btn-border-color: #D9531E;
  --bs-btn-hover-bg: #FFF3EC;
  --bs-btn-hover-color: #D9531E;
  --bs-btn-hover-border-color: #D9531E;
  --bs-btn-active-bg: #FFF3EC;
  --bs-btn-active-color: #D9531E;
  --bs-btn-active-border-color: #D9531E;
}
.btn-light-line {
  --bs-btn-color: #211C18;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #EDE4DB;
  --bs-btn-hover-bg: #FBF9F7;
  --bs-btn-hover-color: #211C18;
  --bs-btn-hover-border-color: #EDE4DB;
  --bs-btn-active-bg: #F4EEE8;
  --bs-btn-active-color: #211C18;
  --bs-btn-active-border-color: #EDE4DB;
}
.btn-whatsapp {
  --bs-btn-color: #fff;
  --bs-btn-bg: #1FA855;
  --bs-btn-border-color: #1FA855;
  --bs-btn-hover-bg: #198e47;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: #198e47;
}
.wp-btn-sm  { padding: 10px; font-size: 14px; font-weight: 600; --bs-btn-border-radius: 0.625rem; }
.wp-btn-md  { padding: 13px; font-size: 15px; font-weight: 600; }
.wp-btn-lg  { padding: 15px; font-size: 17px; font-weight: 700; }
.wp-btn-cta { padding: 12px 26px; font-size: 15px; font-weight: 700; }

/* Bootstrap form re-skin */
.form-control {
  border: 1px solid var(--wp-line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  background: var(--wp-bg-soft);
  color: var(--wp-ink);
}
.form-control:focus {
  background: var(--wp-bg-soft);
  border-color: var(--wp-primary);
  box-shadow: 0 0 0 0.2rem rgba(217, 83, 30, 0.12);
}
.form-control::placeholder { color: var(--wp-muted-3); }
.form-label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.wp-req { color: var(--wp-primary); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.wp-header { z-index: 50; }
.wp-header-bar {
  padding-top: 12px; padding-bottom: 12px;
  gap: 20px !important; flex-wrap: wrap;
}

/* Left group: menu + brand */
.wp-icon-btn {
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--wp-line); background: #fff;
  border-radius: 12px; color: var(--wp-primary); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.wp-icon-btn:hover { background: var(--wp-bg-soft); border-color: var(--wp-primary); }

.wp-brand { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; cursor: pointer; flex: none; margin-right: 8px; }
.wp-logo {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--wp-primary);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.wp-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.wp-brand-name { font-weight: 700; font-size: 17px; color: var(--wp-ink); white-space: nowrap; }
.wp-brand-sub  { font-size: 11px; color: var(--wp-muted-2); letter-spacing: 0.06em; white-space: nowrap; }

/* Center: search */
.wp-search {
  flex: 1 1 320px; min-width: 0; display: flex; align-items: center;
  border: 1.5px solid var(--wp-line); border-radius: 12px; height: 44px;
  overflow: hidden; background: var(--wp-bg-soft); max-width: 600px;
  margin: 0 auto; transition: border-color .15s, box-shadow .15s;
}
.wp-search:focus-within { border-color: var(--wp-primary); box-shadow: 0 0 0 3px rgba(217, 83, 30, .16); background: #fff; }
.wp-search-input {
  flex: 1; min-width: 0; border: 0; background: transparent; height: 100%;
  padding: 0 16px; font-size: 15px; outline: none; color: var(--wp-ink);
}
.wp-search-btn { border: 0; background: var(--wp-primary); color: #fff; height: 100%; padding: 0 20px; font-size: 15px; font-weight: 600; cursor: pointer; flex: none; }
.wp-search-btn:hover { filter: brightness(.94); }

/* Right group: cart + user */
.wp-cart-btn {
  position: relative; display: flex; align-items: center; gap: 10px; flex: none;
  height: 44px; border: 1px solid var(--wp-line); background: #fff; border-radius: 12px;
  padding: 0 14px 0 16px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--wp-ink);
  margin-left: auto; transition: background .15s, border-color .15s;
}
.wp-cart-btn:hover { background: var(--wp-bg-soft); border-color: var(--wp-primary); }
.wp-cart-count {
  min-width: 24px; height: 24px; border-radius: 99px; background: var(--wp-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wp-num); font-weight: 700; font-size: 13px; padding: 0 7px;
}
.wp-user-btn {
  width: 44px; height: 44px; flex: none;
  border: 1px solid var(--wp-line); background: #fff;
  border-radius: 12px; cursor: pointer; color: var(--wp-muted);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.wp-user-btn svg { stroke: var(--wp-primary); }
.wp-user-btn:hover { background: var(--wp-bg-soft); border-color: var(--wp-primary); }

/* Tablet: tighter but same row */
@media (max-width: 991.98px) {
  .wp-header-bar { gap: 12px !important; }
  .wp-brand { margin-right: 0; }
  .wp-brand-sub { display: none; }
  .wp-search { flex-basis: 220px; }
}

/* Mobile: search drops to its own full-width row */
@media (max-width: 767.98px) {
  .wp-header-bar { padding-top: 10px; padding-bottom: 10px; gap: 10px !important; }
  .wp-brand-name { font-size: 16px; }
  .wp-search { order: 10; flex: 1 1 100%; max-width: none; height: 42px; }
  .wp-cart-btn { padding: 0 12px; }
  .wp-cart-btn svg, .wp-user-btn svg { width: 20px; height: 20px; }
}
@media (max-width: 400px) {
  .wp-brand-text { display: none; }
}

/* Headline marquee */
.wp-marquee { background: var(--wp-tint); border-top: 1px solid var(--wp-tint-line); display: flex; align-items: center; overflow: hidden; max-height: 60px; transition: max-height .25s ease, opacity .2s ease, border-color .25s ease; }
.wp-header.is-scrolled .wp-marquee { max-height: 0; opacity: 0; border-top-color: transparent; }
.wp-marquee-tag { flex: none; background: var(--wp-primary); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 14px; }
.wp-marquee-view { flex: 1; overflow: hidden; white-space: nowrap; }
.wp-marquee-track {
  display: inline-flex; gap: 60px; padding-left: 24px;
  animation: wp-marquee 26s linear infinite; font-size: 13px; color: #8A4A24;
}
@keyframes wp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Offcanvas (menu + cart drawer) & modal
   -------------------------------------------------------------------------- */

#wpMenu  { --bs-offcanvas-width: 300px; max-width: 82vw; border-right: 1px solid var(--wp-line); }
#wpCart  { --bs-offcanvas-width: 380px; max-width: 88vw; border-left: 1px solid var(--wp-line); }
.offcanvas { --bs-offcanvas-bg: #fff; }
.offcanvas-backdrop.show { opacity: 0.45; --bs-backdrop-bg: #211C18; }

.wp-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--wp-line);
  font-weight: 700; font-size: 16px;
}
.wp-close-btn {
  width: 32px; height: 32px; border: 0; background: var(--wp-chip);
  border-radius: 9px; color: var(--wp-muted); font-size: 15px; cursor: pointer;
}
.wp-menu-nav { display: flex; flex-direction: column; padding: 6px 0; }
.wp-menu-link {
  display: flex; align-items: center; gap: 12px; border: 0; background: none;
  text-align: left; padding: 12px 18px; font-size: 15px; color: var(--wp-ink); cursor: pointer; width: 100%;
}
.wp-menu-link:hover { background: var(--wp-tint); }
.wp-menu-link.is-bold { font-weight: 600; }
.wp-menu-link.is-sub { padding-left: 48px; }
.wp-menu-link.is-active { background: var(--wp-primary); color: #fff; font-weight: 600; padding: 13px 18px; }
.wp-menu-link.is-active:hover { background: var(--wp-primary-dark); }
.wp-menu-ico { width: 18px; flex: none; }
.wp-menu-ico.is-primary { color: var(--wp-primary); }
.wp-menu-ico.is-muted { color: var(--wp-muted); }
.wp-menu-sep { height: 1px; background: var(--wp-line); margin: 10px 18px; }
.wp-menu-foot {
  margin-top: auto; padding: 16px 18px; border-top: 1px solid var(--wp-line);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.wp-menu-phone { font-family: var(--wp-num); font-weight: 700; font-size: 17px; }
.wp-menu-x { width: 40px; height: 36px; border: 0; border-radius: 8px; background: var(--wp-primary); color: #fff; font-size: 15px; cursor: pointer; }

.wp-drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.wp-drawer-foot { border-top: 1px solid var(--wp-line); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.wp-drawer-item { display: flex; gap: 12px; border: 1px solid var(--wp-line); border-radius: 12px; padding: 10px; }
.wp-drawer-empty { text-align: center; color: var(--wp-muted-2); font-size: 14px; padding: 40px 0; }

.wp-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.wp-modal .modal-dialog { max-width: 560px; }
.wp-modal .modal-header { padding: 18px 20px; border-bottom: 1px solid var(--wp-line); align-items: flex-start; gap: 12px; }
.wp-modal .modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.wp-modal .modal-footer { padding: 14px 20px; border-top: 1px solid var(--wp-line); }
.wp-variant-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--wp-bg-soft); border: 1px solid var(--wp-line); border-radius: 12px; padding: 14px 16px;
}
.wp-variant-label { flex: 1; min-width: 160px; font-size: 15px; }
.wp-variant-price { font-family: var(--wp-num); font-weight: 800; font-size: 19px; color: var(--wp-ink); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.wp-sec { padding-top: 36px; }
.wp-sec-first { padding-top: 20px; }
.wp-sec-first.wp-banner-full { padding-top: 0; }
.wp-sec-wide { padding-top: 40px; }
.wp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.wp-sec-title { margin: 0; font-size: 22px; font-weight: 700; }
.wp-link-btn { border: 0; background: none; color: var(--wp-primary); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }
.wp-page-title { margin: 0; font-size: 26px; font-weight: 700; }
.wp-crumb { font-size: 13px; color: var(--wp-muted-2); }

/* --------------------------------------------------------------------------
   Banner slider
   -------------------------------------------------------------------------- */

.wp-banner-full { width: 100%; }
.wp-banner {
  position: relative; overflow: hidden;
  border: 0; background: #F0EAE4; aspect-ratio: 4 / 1; max-height: 62svh;
}
.wp-banner-full .wp-banner { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.wp-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--wp-ph-lg); }
.wp-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; -webkit-user-drag: none; }
.wp-banner-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 99px;
  background: rgba(255, 255, 255, 0.9); color: var(--wp-ink); font-size: 18px; cursor: pointer;
}
.wp-banner-nav.is-prev { left: 12px; }
.wp-banner-nav.is-next { right: 12px; }
.wp-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 7px; }
.wp-dot { width: 9px; height: 9px; border-radius: 99px; border: 0; cursor: pointer; background: rgba(33, 28, 24, 0.25); transition: all 300ms ease; }
.wp-dot.is-on { width: 26px; background: var(--wp-primary); }

/* Slider: mobile — 2:1 image box, arrows shrink */
@media (max-width: 767.98px) {
  .wp-banner, .wp-banner-full .wp-banner { aspect-ratio: 4 / 1; max-height: 34svh; }
  .wp-banner-nav { width: 28px; height: 28px; font-size: 15px; background: rgba(255, 255, 255, 0.8); }
  .wp-banner-nav.is-prev { left: 8px; }
  .wp-banner-nav.is-next { right: 8px; }
  .wp-dots { bottom: 6px; }
  .wp-dot { width: 6px; height: 6px; }
  .wp-dot.is-on { width: 18px; }
}

/* --------------------------------------------------------------------------
   Category rail + cards
   -------------------------------------------------------------------------- */

.wp-rail { overflow: hidden; }
.wp-rail-track { display: flex; gap: 14px; width: max-content; }
.wp-cat-card {
  width: 160px; flex: none; border: 1px solid var(--wp-line); background: #fff;
  border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; text-align: left;
}
.wp-cat-card:hover { border-color: var(--wp-primary); }
.wp-cat-name { padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--wp-ink); }

/* Mobile: 4 categories per screen, swipe for more, auto-scroll off, duplicates hidden */
@media (max-width: 767.98px) {
  .wp-rail { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
  .wp-rail::-webkit-scrollbar { display: none; }
  .wp-rail-track { gap: 10px; width: max-content; transform: none !important; transition: none !important; }
  .wp-cat-card { width: calc((100vw - 32px - 30px) / 4); border: 0; border-radius: 8px; background: none; scroll-snap-align: start; }
  .wp-cat-card.is-dup { display: none; }
  .wp-cat-card .wp-ph { border-radius: 8px; overflow: hidden; border: 1px solid var(--wp-line); }
  .wp-cat-name { padding: 6px 2px 0; font-size: 12.5px; line-height: 1.3; text-align: center; font-weight: 500; }
}

/* Image placeholder frame — the gradient shows through while an image loads or is missing. */
.wp-ph { aspect-ratio: 1 / 1; background: var(--wp-ph); display: flex; align-items: center; justify-content: center; }
.wp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 576px)  { .wp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .wp-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .wp-grid { grid-template-columns: repeat(6, 1fr); } }
.wp-grid-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.wp-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }

.wp-card { border: 1px solid var(--wp-line); background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.wp-card-lift { transition: transform 260ms cubic-bezier(.16,1,.3,1), box-shadow 260ms ease, border-color 260ms ease; }
.wp-card-lift:hover { border-color: var(--wp-primary); transform: translateY(-6px); box-shadow: 0 14px 30px rgba(33, 28, 24, 0.14); }
.wp-card-media { position: relative; border: 0; padding: 0; background: none; cursor: pointer; display: block; }
.wp-card-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wp-p-name {
  border: 0; background: none; padding: 0; text-align: left;
  font-size: 14px; line-height: 1.35; color: var(--wp-ink); cursor: pointer; min-height: 38px;
}
.wp-p-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.wp-price-old { font-family: var(--wp-num); font-size: 12px; color: var(--wp-muted-3); text-decoration: line-through; }
.wp-price { font-family: var(--wp-num); font-weight: 800; font-size: 20px; color: var(--wp-primary); }
.wp-price-sm { font-family: var(--wp-num); font-weight: 800; font-size: 18px; color: var(--wp-primary); margin-top: auto; }

.wp-badge-disc {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 99px;
  background: var(--wp-primary); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--wp-num); font-weight: 700; font-size: 13px; line-height: 1;
}
.wp-badge-disc.is-ink { background: var(--wp-ink); }
.wp-badge-disc small { font-family: 'Hind Siliguri', sans-serif; font-size: 10px; font-weight: 500; }
.wp-badge-top {
  position: absolute; top: 8px; left: 8px; background: var(--wp-ink); color: #fff;
  font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 99px;
}

/* --------------------------------------------------------------------------
   Stats + perks
   -------------------------------------------------------------------------- */

.wp-stats {
  background: #fff; border: 1px solid var(--wp-line); border-radius: 16px;
  padding: 28px 20px; text-align: center;
}
.wp-stat-num { font-family: var(--wp-num); font-weight: 800; font-size: 32px; color: var(--wp-primary); }
.wp-stat-lbl { font-size: 14px; color: var(--wp-muted); }

.wp-perks { padding: 32px 0 48px; overflow: hidden; }
.wp-perks-track { display: flex; width: max-content; }
.wp-perk { width: 260px; flex: none; padding: 0 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wp-perk-ico { width: 56px; height: 56px; border-radius: 99px; background: var(--wp-tint); display: flex; align-items: center; justify-content: center; }
.wp-perk-dot { width: 26px; height: 26px; background: #F0A421; display: block; }
.wp-perk-title { font-weight: 600; font-size: 15px; color: var(--wp-ink); }
.wp-perk-body { font-size: 13px; color: var(--wp-muted); line-height: 1.6; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   Category page
   -------------------------------------------------------------------------- */

.wp-filter-pill {
  border: 1px solid var(--wp-line); background: #fff; border-radius: 99px;
  padding: 8px 16px; font-size: 14px; cursor: pointer; color: var(--wp-muted);
}
.wp-filter-pill.is-on { border-color: var(--wp-primary); background: var(--wp-tint); color: var(--wp-primary); }

/* --------------------------------------------------------------------------
   Product page
   -------------------------------------------------------------------------- */

.wp-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: start; }
.wp-gallery-main {
  aspect-ratio: 1 / 1; border: 1px solid var(--wp-line); border-radius: 16px;
  background: var(--wp-ph-lg); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.wp-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.wp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wp-thumb { aspect-ratio: 1 / 1; border: 1px solid var(--wp-line); border-radius: 10px; overflow: hidden; background: var(--wp-ph); }
.wp-thumb.is-on { border: 1.5px solid var(--wp-primary); }
.wp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wp-detail-title { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.3; }
.wp-price-lg { font-family: var(--wp-num); font-weight: 800; font-size: 34px; color: var(--wp-primary); }
.wp-price-old-lg { font-family: var(--wp-num); font-size: 17px; color: var(--wp-muted-3); text-decoration: line-through; }
.wp-disc-pill { background: var(--wp-tint); color: var(--wp-primary-dark); font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.wp-meta { font-size: 14px; color: var(--wp-muted); }
.wp-meta-ids { display: grid; gap: 4px; color: var(--wp-ink); }
.wp-meta-ids strong { font-weight: 700; }

.wp-qty { display: flex; align-items: center; border: 1px solid var(--wp-line); border-radius: 12px; overflow: hidden; background: #fff; }
.wp-qty-btn { width: 46px; height: 46px; border: 0; background: #fff; font-size: 20px; cursor: pointer; color: var(--wp-muted); }
.wp-qty-val { width: 52px; text-align: center; font-family: var(--wp-num); font-weight: 700; font-size: 17px; }
.wp-qty-sm { display: flex; align-items: center; border: 1px solid var(--wp-line); border-radius: 10px; overflow: hidden; }
.wp-qty-sm button { width: 36px; height: 36px; border: 0; background: #fff; cursor: pointer; font-size: 17px; color: var(--wp-muted); }
.wp-qty-sm span { width: 38px; text-align: center; font-family: var(--wp-num); font-weight: 700; }
.wp-qty-xs { display: flex; align-items: center; border: 1px solid var(--wp-line); border-radius: 9px; overflow: hidden; }
.wp-qty-xs button { width: 30px; height: 30px; border: 0; background: #fff; cursor: pointer; color: var(--wp-muted); }
.wp-qty-xs span { width: 32px; text-align: center; font-family: var(--wp-num); font-weight: 700; font-size: 14px; }

.wp-spec { border: 1px solid var(--wp-line); border-radius: 14px; background: #fff; overflow: hidden; }
.wp-spec-head { padding: 14px 16px; font-weight: 600; border-bottom: 1px solid var(--wp-line); }
.wp-spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; font-size: 14px; }
.wp-spec-row:nth-child(odd) { background: var(--wp-bg-soft); }
.wp-spec-row span:first-child { color: var(--wp-muted); }
.wp-ship-note { border: 1px solid var(--wp-line); border-radius: 12px; background: #fff; padding: 14px; font-size: 14px; }

.wp-promo {
  border: 1px solid var(--wp-tint-line-2); border-radius: 14px; background: #fff;
  box-shadow: 0 0 14px rgba(217, 83, 30, 0.08); padding: 34px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.wp-promo-title { font-size: 17px; font-weight: 600; }
.wp-promo-ico { width: 44px; height: 44px; border-radius: 99px; display: flex; align-items: center; justify-content: center; }
.wp-promo-ico.is-ring { border: 1.5px solid var(--wp-green); }
.wp-promo-ico.is-soft { background: var(--wp-green-soft); }
.wp-promo-dot { border-radius: 4px 10px 4px 10px; background: var(--wp-green); }
.wp-policy {
  border: 1px solid var(--wp-tint-line-2); border-radius: 14px; background: #fff;
  box-shadow: 0 0 14px rgba(217, 83, 30, 0.08); padding: 30px 26px;
}
.wp-policy ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; line-height: 1.7; color: var(--wp-ink); }

/* --------------------------------------------------------------------------
   Cart / checkout
   -------------------------------------------------------------------------- */

.wp-cart-empty { border: 1px dashed var(--wp-line-2); border-radius: 16px; background: #fff; padding: 56px 20px; text-align: center; }
.wp-cart-item { display: flex; gap: 14px; border: 1px solid var(--wp-line); background: #fff; border-radius: 14px; padding: 12px; }
.wp-thumb-sq { width: 84px; height: 84px; flex: none; border-radius: 10px; background: var(--wp-ph-sm); overflow: hidden; }
.wp-thumb-md { width: 64px; height: 64px; flex: none; border-radius: 9px; background: var(--wp-ph-sm); overflow: hidden; }
.wp-thumb-xs { width: 52px; height: 52px; flex: none; border-radius: 8px; background: var(--wp-ph-sm); overflow: hidden; }
.wp-thumb-sq img, .wp-thumb-md img, .wp-thumb-xs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-remove { align-self: flex-start; border: 0; background: none; color: var(--wp-muted-3); font-size: 18px; cursor: pointer; padding: 4px; }

.wp-panel { border: 1px solid var(--wp-line); background: #fff; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.wp-panel-lg { border: 1px solid var(--wp-line); background: #fff; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.wp-panel-title { font-weight: 700; font-size: 17px; }
.wp-sum-row { display: flex; justify-content: space-between; font-size: 15px; }
.wp-sum-row span:first-child { color: var(--wp-muted); }
.wp-sum-row b { font-family: var(--wp-num); font-weight: 700; }
.wp-hr { height: 1px; background: var(--wp-line); }
.wp-total-row { display: flex; justify-content: space-between; align-items: baseline; }
.wp-total-label { font-weight: 700; font-size: 16px; }
.wp-total { font-family: var(--wp-num); font-weight: 800; font-size: 24px; color: var(--wp-primary); }

.wp-ship-opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1.5px solid var(--wp-line); background: var(--wp-bg-soft);
  border-radius: 12px; padding: 13px 14px; cursor: pointer; font-size: 15px; width: 100%; margin: 0;
}
.wp-ring { width: 18px; height: 18px; flex: none; border-radius: 99px; border: 2px solid var(--wp-primary); display: flex; align-items: center; justify-content: center; }
.wp-ring-dot { width: 9px; height: 9px; border-radius: 99px; background: transparent; }
.wp-ship-opt input:checked ~ .wp-ring .wp-ring-dot { background: var(--wp-primary); }
.wp-ship-opt input:focus-visible ~ .wp-ring { box-shadow: 0 0 0 3px rgba(217, 83, 30, 0.25); }
.wp-order-item { display: flex; gap: 12px; align-items: center; }
.wp-order-item-name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.wp-order-item-meta { color: var(--wp-muted-2); font-size: 13px; }
.wp-note { font-size: 13px; color: var(--wp-muted-2); line-height: 1.6; }
.wp-success { background: var(--wp-green-soft); border: 1px solid #BFE3CE; color: #1B6B3A; border-radius: 12px; padding: 14px; font-size: 14px; }

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.wp-login-card { border: 1px solid var(--wp-line); background: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.wp-login-title { font-size: 20px; font-weight: 700; text-align: center; }
.wp-or { text-align: center; font-size: 13px; color: var(--wp-muted-2); }
.wp-captcha { font-family: var(--wp-num); font-weight: 700; font-size: 17px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.wp-footer { background: #fff; border-top: 1px solid var(--wp-line); margin-top: auto; }
.wp-foot-top { padding: 40px 16px 28px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.wp-foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 56px; }
.wp-foot-phone { display: flex; align-items: center; gap: 10px; font-family: var(--wp-num); font-weight: 700; font-size: 30px; color: var(--wp-primary); }
.wp-foot-mail { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; color: var(--wp-primary); word-break: break-all; }
.wp-foot-addr { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 15px; color: var(--wp-primary); font-weight: 500; text-wrap: pretty; }
.wp-social { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.wp-soc { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--wp-muted); text-decoration: none; }
.wp-soc:hover { color: var(--wp-ink); }
.wp-soc-ico {
  width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 16px rgba(33, 28, 24, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 220ms cubic-bezier(.34,1.4,.64,1), box-shadow 220ms ease;
}
.wp-soc:hover .wp-soc-ico { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 22px rgba(33, 28, 24, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.wp-soc-ico svg { width: 30px; height: 30px; fill: #fff; display: block; }
.wp-soc.is-fb .wp-soc-ico { background: linear-gradient(180deg, #2E8EFF 0%, #1877F2 100%); }
.wp-soc.is-yt .wp-soc-ico { background: linear-gradient(180deg, #FF3B30 0%, #E60000 100%); }
.wp-soc.is-wa .wp-soc-ico { background: linear-gradient(180deg, #3EE07F 0%, #25D366 100%); }
.wp-soc.is-ms .wp-soc-ico { background: linear-gradient(135deg, #00B2FF 0%, #006AFF 50%, #A033FF 100%); }
@media (max-width: 400px) {
  .wp-social { gap: 12px; }
  .wp-soc-ico { width: 52px; height: 52px; border-radius: 14px; }
  .wp-soc-ico svg { width: 27px; height: 27px; }
}
.wp-foot-bottom { border-top: 1px solid var(--wp-line); padding: 16px; text-align: center; font-size: 13px; color: var(--wp-muted-2); display: flex; flex-direction: column; gap: 4px; }

/* --------------------------------------------------------------------------
   Mobile bottom tab bar (≤767px) — raised cart button in the middle
   -------------------------------------------------------------------------- */

.wp-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: flex; align-items: stretch; height: 62px;
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--wp-line);
  box-shadow: 0 -6px 20px rgba(33, 28, 24, 0.08);
}
.wp-tab {
  flex: 1 1 0; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: none; padding: 6px 2px 0;
  font-size: 11.5px; font-weight: 600; color: var(--wp-muted-2); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wp-tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wp-tab.is-active { color: var(--wp-primary); }
.wp-tab.is-active::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--wp-primary);
}
.wp-tab-cart { color: var(--wp-primary); padding-top: 0; justify-content: flex-end; padding-bottom: 6px; }
.wp-tab-cart::before { display: none; }
.wp-tab-fab {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wp-primary); color: #fff; border: 4px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(217, 83, 30, 0.38);
}
.wp-tab-fab svg { width: 26px; height: 26px; stroke: #fff; }
.wp-tab-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px; background: var(--wp-ink); color: #fff; border: 2px solid #fff;
  font-family: var(--wp-num); font-size: 11px; font-weight: 700; line-height: 16px; text-align: center;
}
@media (max-width: 767.98px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .wp-marquee-track, .wp-perks-track, .wp-rail-track, .wp-slide, .wp-card-lift { animation: none !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Login — split card (storefront variant of the admin login)
   -------------------------------------------------------------------------- */

.wp-auth-wrap { max-width: 920px; }
.wp-auth {
  display: flex; min-height: 520px; border-radius: 20px; overflow: hidden;
  background: #fff; border: 1px solid var(--wp-line);
  box-shadow: 0 24px 60px rgba(33, 28, 24, 0.10);
}
.wp-auth-side {
  position: relative; overflow: hidden; width: 45%; padding: 50px 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #17203b, #243154, #0d1428); color: #fff;
}
.wp-auth-side::before, .wp-auth-side::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.04);
}
.wp-auth-side::before { width: 300px; height: 300px; top: -80px; left: -80px; }
.wp-auth-side::after { width: 200px; height: 200px; bottom: -50px; right: -50px; }
.wp-auth-logo {
  width: 80px; height: 80px; margin-bottom: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(255, 255, 255, 0.2);
}
.wp-auth-logo img { max-width: 54px; max-height: 54px; object-fit: contain; }
.wp-auth-brand { font-family: var(--wp-num); font-size: 26px; font-weight: 800; letter-spacing: 1px; text-align: center; line-height: 1.2; }
.wp-auth-tag { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, 0.6); text-align: center; }
.wp-auth-line { width: 50px; height: 2px; margin: 24px auto; border-radius: 2px; background: rgba(255, 255, 255, 0.3); }
.wp-auth-feats { position: relative; z-index: 1; width: 100%; margin: 0; padding: 0; list-style: none; }
.wp-auth-feats li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.wp-auth-feats svg { flex: none; color: #f5811f; }

.wp-auth-main { width: 55%; padding: 46px 50px; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
/* The panels carry Bootstrap's .d-flex (display:flex !important), which beats the
   [hidden] attribute the OTP/password toggle sets — without this both forms show. */
.wp-auth-main [data-login-panel][hidden] { display: none !important; }
.wp-auth-title { font-size: 26px; font-weight: 700; color: var(--wp-ink); line-height: 1.25; }
.wp-auth-sub { margin-top: -10px; font-size: 14px; color: var(--wp-muted-2); }
.wp-auth-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--wp-muted); }
.wp-auth-field { position: relative; }
.wp-auth-field > .wp-auth-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--wp-muted-3); pointer-events: none;
}
.wp-auth-field .form-control { padding: 12px 14px 12px 42px; }
.wp-auth-field.pw-wrap .form-control { padding-right: 46px; }
.wp-auth .wp-or { display: flex; align-items: center; gap: 12px; }
.wp-auth .wp-or::before, .wp-auth .wp-or::after { content: ''; flex: 1; height: 1px; background: var(--wp-line); }
.wp-auth-back { text-align: center; font-size: 13px; }
.wp-auth-back a { color: var(--wp-muted-2); text-decoration: none; }
.wp-auth-back a:hover { color: var(--wp-primary); }

@media (max-width: 767.98px) {
  .wp-auth { flex-direction: column; min-height: 0; }
  .wp-auth-side, .wp-auth-main { width: 100%; }
  .wp-auth-side { padding: 32px 24px; }
  .wp-auth-logo { width: 64px; height: 64px; margin-bottom: 14px; }
  .wp-auth-logo img { max-width: 42px; max-height: 42px; }
  .wp-auth-brand { font-size: 21px; }
  .wp-auth-line, .wp-auth-feats { display: none; }
  .wp-auth-main { padding: 28px 20px; }
  .wp-auth-title { font-size: 22px; }
}
