/* ============================================================
   Prime1mg Pharmacy - Design System & Frontend Styles
   Version: 3.0 | BEM Naming Convention
   ============================================================ */

/* ─── Body scroll lock ─── */
body.bw-no-scroll { overflow: hidden; }

/* ─── 0. Prime1mg Watermark Overlay ────────────────── */
.bw-product-img,
.bw-pd-main-img,
.bw-blog-img,
.bw-pd-thumb {
  position: relative;
}

.bw-product-img::after,
.bw-pd-main-img::after,
.bw-blog-img::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='200'%3E%3Ctext x='150' y='110' text-anchor='middle' font-family='system-ui,-apple-system,sans-serif' font-size='38' font-weight='800' fill='%23000' opacity='0.06' transform='rotate(-30 150 100)'%3EPrime1mg%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80%;
}

/* ─── 1. CSS Variables & Reset ─────────────────────── */
:root {
  --bw-primary: #2563eb;
  --bw-primary-dark: #1d4ed8;
  --bw-secondary: #059669;
  --bw-secondary-dark: #047857;
  --bw-accent: #f43f5e;
  --bw-text: #1e293b;
  --bw-muted: #64748b;
  --bw-muted-light: #94a3b8;
  --bw-border: #e2e8f0;
  --bw-border-light: #f1f5f9;
  --bw-bg: #ffffff;
  --bw-bg-secondary: #f8fafc;
  --bw-heading: #0f172a;
  --bw-success: #22c55e;
  --bw-warning: #f59e0b;
  --bw-danger: #ef4444;
  --bw-info: #0ea5e9;
  --bw-radius: 12px;
  --bw-radius-sm: 8px;
  --bw-radius-pill: 50px;
  --bw-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --bw-shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --bw-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bw-navbar-height: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--bw-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--bw-text);
  background-color: var(--bw-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

::selection {
  background-color: var(--bw-primary);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--bw-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--bw-primary-dark);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--bw-heading);
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.625rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.1rem;
}

h5 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

h6 {
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}


/* ─── 2. Container ─────────────────────────────────── */
.bw-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ─── 3. Top Bar ───────────────────────────────────── */
.bw-topbar {
  background: var(--bw-heading);
  color: #cbd5e1;
  font-size: 13px;
  padding: 6px 0;
}

.bw-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bw-topbar__left,
.bw-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bw-topbar__link {
  color: #cbd5e1;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.bw-topbar__link:hover {
  color: #fff;
}

.bw-topbar__link i {
  font-size: 12px;
}


/* ─── 4. Navbar ────────────────────────────────────── */
.bw-navbar {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: var(--bw-shadow);
  z-index: 1000;
}

.bw-navbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--bw-navbar-height);
}

.bw-navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bw-navbar__logo img {
  height: 38px;
  width: auto;
}

.bw-navbar__logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--bw-primary);
  letter-spacing: -0.5px;
}

/* Search */
.bw-navbar__search {
  flex-grow: 1;
  max-width: 520px;
}

.bw-search-form {
  position: relative;
  width: 100%;
}

.bw-search-form__input {
  width: 100%;
  padding: 12px 48px 12px 20px;
  background: var(--bw-border-light);
  border: 1px solid transparent;
  border-radius: var(--bw-radius-pill);
  font-size: 14px;
  color: var(--bw-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bw-search-form__input:focus {
  border-color: var(--bw-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #fff;
}

.bw-search-form__input::placeholder {
  color: var(--bw-muted);
}

.bw-search-form__btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  background: var(--bw-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.bw-search-form__btn:hover {
  background: var(--bw-primary-dark);
}

.bw-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--bw-radius);
  box-shadow: var(--bw-shadow-lg);
  z-index: 1001;
  margin-top: 4px;
  display: none;
  max-height: 360px;
  overflow-y: auto;
}

.bw-search-suggestions.open {
  display: block;
}

/* Navbar Actions (Desktop) */
.bw-navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: auto;
}

.bw-navbar__action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 2px;
  color: var(--bw-text);
  font-size: 20px;
  position: relative;
  text-decoration: none;
  transition: color 0.2s;
}

.bw-navbar__action-item:hover {
  color: var(--bw-primary);
}

.bw-navbar__action-label {
  font-size: 11px;
  color: var(--bw-muted);
  font-weight: 500;
}

.bw-navbar__cart {
  position: relative;
}

.bw-navbar__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--bw-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile Actions */
.bw-navbar__mobile-actions {
  display: none;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.bw-navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  cursor: pointer;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.bw-navbar__hamburger-line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--bw-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Search */
.bw-navbar__mobile-search {
  display: none;
  padding: 8px 16px 12px;
  background: #fff;
  border-top: 1px solid var(--bw-border-light);
}


/* ─── 5. User Dropdown ─────────────────────────────── */
.bw-dropdown {
  position: relative;
}

.bw-dropdown__trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bw-text);
  font-size: 20px;
  transition: color 0.2s;
}

.bw-dropdown__trigger:hover {
  color: var(--bw-primary);
}

.bw-dropdown__arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.bw-dropdown.open .bw-dropdown__arrow {
  transform: rotate(180deg);
}

.bw-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  box-shadow: var(--bw-shadow-lg);
  border-radius: var(--bw-radius);
  min-width: 200px;
  display: none;
  z-index: 1002;
  border: 1px solid var(--bw-border-light);
  padding: 6px 0;
  overflow: hidden;
}

.bw-dropdown.open .bw-dropdown__menu {
  display: block;
}

.bw-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--bw-text);
  font-size: 14px;
  transition: background 0.15s;
}

.bw-dropdown__item:hover {
  background: var(--bw-bg-secondary);
  color: var(--bw-text);
}

.bw-dropdown__item i {
  width: 18px;
  text-align: center;
  color: var(--bw-muted);
}

.bw-dropdown__item--danger {
  color: var(--bw-danger);
}

.bw-dropdown__item--danger i {
  color: var(--bw-danger);
}

.bw-dropdown__divider {
  border-top: 1px solid var(--bw-border-light);
  margin: 4px 0;
}


/* ─── 6. Mobile Drawer ─────────────────────────────── */
.bw-mobile-drawer {
  display: none;
}

.bw-mobile-drawer.open {
  display: block;
}

.bw-mobile-drawer__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.bw-mobile-drawer__panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.bw-mobile-drawer.open .bw-mobile-drawer__panel {
  transform: translateX(0);
}

.bw-mobile-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bw-border);
}

.bw-mobile-drawer__title {
  font-weight: 600;
  font-size: 16px;
  color: var(--bw-heading);
}

.bw-mobile-drawer__close {
  font-size: 24px;
  color: var(--bw-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.bw-mobile-drawer__close:hover {
  color: var(--bw-text);
}

.bw-mobile-drawer__user {
  padding: 16px 20px;
  background: var(--bw-bg-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bw-text);
}

.bw-mobile-drawer__user i {
  font-size: 24px;
  color: var(--bw-primary);
}

.bw-mobile-drawer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bw-mobile-drawer__nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--bw-text);
  font-size: 14px;
  border-bottom: 1px solid var(--bw-border-light);
  transition: background 0.15s;
}

.bw-mobile-drawer__nav li a:hover {
  background: var(--bw-bg-secondary);
}

.bw-mobile-drawer__nav li a i {
  width: 20px;
  text-align: center;
  color: var(--bw-muted);
  font-size: 16px;
}

.bw-mobile-drawer__divider {
  height: 8px;
  background: var(--bw-border-light);
  list-style: none;
}

.bw-mobile-drawer__heading {
  padding: 12px 20px 6px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--bw-muted);
  letter-spacing: 0.5px;
  list-style: none;
}


/* ─── 6b. Mobile Bottom Nav ────────────────────────── */
.bw-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: #fff;
  border-top: 1px solid var(--bw-border);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  padding: 6px 0;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.bw-mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 0;
  color: var(--bw-muted);
  font-size: 18px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s;
}

.bw-mobile-bottom-nav__item:hover,
.bw-mobile-bottom-nav__item.active {
  color: var(--bw-primary);
}

.bw-mobile-bottom-nav__label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}

.bw-mobile-bottom-nav__item .bw-navbar__badge {
  position: absolute;
  top: 0;
  right: 50%;
  transform: translateX(14px);
}


/* ─── 7. Category Nav Bar ──────────────────────────── */
.bw-catnav {
  background: #fff;
  border-bottom: 1px solid var(--bw-border);
  position: sticky;
  top: var(--bw-navbar-height);
  z-index: 999;
}

.bw-catnav__inner {
  position: relative;
}

.bw-catnav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bw-catnav__item {
  position: relative;
}

.bw-catnav__item--mega {
  position: static;
}

.bw-catnav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 14px;
  color: #4b5563;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
}

.bw-catnav__link:hover {
  color: var(--bw-primary);
}

.bw-catnav__link--toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bw-catnav__link--offers {
  color: var(--bw-accent);
  font-weight: 600;
}

.bw-catnav__link--offers:hover {
  color: var(--bw-accent);
  opacity: 0.8;
}

.bw-catnav__chevron {
  font-size: 10px;
  transition: transform 0.2s;
}


/* ─── 8. Mega Menu ─────────────────────────────────── */
.bw-mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: #fff;
  box-shadow: var(--bw-shadow-lg);
  padding: 16px;
  z-index: 998;
  display: none;
  border-top: 1px solid var(--bw-border);
  max-height: 70vh;
  overflow-y: auto;
}

.bw-mega-menu.open,
.bw-mega-menu.bw-open {
  display: block;
}

.bw-catnav__item--mega:hover .bw-mega-menu {
  display: block;
}

.bw-mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bw-mega-menu__col {
  min-width: 0;
}

.bw-mega-menu__heading {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.bw-mega-menu__heading a {
  color: var(--bw-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.bw-mega-menu__heading a:hover {
  color: var(--bw-primary);
}

.bw-mega-menu__heading i {
  color: var(--bw-primary);
  width: 20px;
  text-align: center;
}

.bw-mega-menu__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bw-mega-menu__links li a {
  color: var(--bw-muted);
  padding: 2px 0;
  display: block;
  font-size: 13px;
  line-height: 1.4;
  transition: color 0.2s;
}

.bw-mega-menu__links li a:hover {
  color: var(--bw-primary);
}


/* ─── 9. Hero Carousel ─────────────────────────────── */
.bw-hero {
  overflow: hidden;
}

.bw-carousel {
  position: relative;
}

.bw-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.bw-carousel-slide {
  min-width: 100%;
  position: relative;
  display: none;
}

.bw-carousel-slide.bw-active {
  display: block;
}

.bw-carousel-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--bw-radius);
}

.bw-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
  color: #fff;
  border-radius: 0 0 var(--bw-radius) var(--bw-radius);
}

.bw-carousel-title {
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.bw-carousel-subtitle {
  font-size: 16px;
  margin-top: 8px;
  opacity: 0.9;
}

.bw-carousel-btn {
  margin-top: 16px;
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: var(--bw-primary);
  border-radius: var(--bw-radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bw-carousel-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--bw-shadow-lg);
  color: var(--bw-primary-dark);
}

.bw-carousel-prev,
.bw-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bw-text);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 14px;
  box-shadow: var(--bw-shadow);
  transition: background 0.2s;
}

.bw-carousel-prev:hover,
.bw-carousel-next:hover {
  background: #fff;
}

.bw-carousel-prev {
  left: 16px;
}

.bw-carousel-next {
  right: 16px;
}

.bw-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.bw-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--bw-radius-pill);
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.bw-dot.bw-active {
  background: #fff;
  width: 28px;
}


/* ─── 10. Section Wrappers ─────────────────────────── */
.bw-section {
  padding: 48px 0;
}

.bw-section-alt {
  padding: 48px 0;
  background: var(--bw-bg-secondary);
}

.bw-section--grey {
  background: var(--bw-bg-secondary);
}

.bw-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.bw-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bw-heading);
}

.bw-section-header a {
  color: var(--bw-primary);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bw-view-all {
  color: var(--bw-primary);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}

.bw-view-all:hover {
  gap: 8px;
  color: var(--bw-primary-dark);
}

/* SEO Heading */
.bw-seo-heading {
  padding: 16px 0 0;
}

.bw-main-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bw-heading);
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}


/* ─── 11. Category Grid ────────────────────────────── */
.bw-category-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.bw-category-scroll::-webkit-scrollbar {
  height: 4px;
}

.bw-category-scroll::-webkit-scrollbar-thumb {
  background: var(--bw-border);
  border-radius: 4px;
}

.bw-category-circle {
  flex: 0 0 auto;
  text-align: center;
  width: 110px;
  cursor: pointer;
  scroll-snap-align: start;
  text-decoration: none;
}

.bw-category-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bw-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 28px;
  color: var(--bw-primary);
  transition: all 0.2s;
  border: 2px solid var(--bw-border);
}

.bw-category-icon-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.bw-category-circle:hover .bw-category-icon-wrap {
  background: var(--bw-primary);
  color: #fff;
  border-color: var(--bw-primary);
  transform: scale(1.05);
}

.bw-category-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--bw-text);
  display: block;
  line-height: 1.3;
}

/* Legacy category card classes (alias support) */
.bw-category-card {
  flex: 0 0 auto;
  text-align: center;
  width: 110px;
  cursor: pointer;
}

.bw-category-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bw-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 28px;
  color: var(--bw-primary);
  transition: all 0.2s;
  border: 2px solid var(--bw-border);
}

.bw-category-card:hover .bw-category-card__icon {
  background: var(--bw-primary);
  color: #fff;
  border-color: var(--bw-primary);
  transform: scale(1.05);
}

.bw-category-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--bw-text);
}


/* ─── 12. Product Cards ────────────────────────────── */
.bw-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bw-scroll-mobile {
  /* enables horizontal scroll on mobile via responsive.css */
}

.bw-product-card {
  background: #fff;
  border-radius: var(--bw-radius);
  border: 1px solid var(--bw-border-light);
  padding: 16px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.bw-product-card:hover {
  box-shadow: var(--bw-shadow-lg);
  transform: translateY(-2px);
  border-color: var(--bw-border);
}

.bw-badge {
  position: absolute;
  z-index: 2;
  padding: 3px 10px;
  border-radius: var(--bw-radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

.bw-badge-discount {
  top: 12px;
  left: 12px;
  background: var(--bw-accent);
}

.bw-badge-rx {
  top: 12px;
  right: 44px;
  background: var(--bw-warning);
}

.bw-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--bw-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  font-size: 14px;
}

.bw-wishlist-btn:hover,
.bw-wishlist-btn.active {
  color: var(--bw-accent);
}

.bw-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  margin-bottom: 12px;
  overflow: hidden;
}

.bw-product-img img {
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto;
}

.bw-product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bw-product-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bw-muted);
  font-weight: 600;
}

.bw-product-name-wrap {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

.bw-product-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--bw-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  transition: color 0.2s;
}

.bw-product-name:hover {
  color: var(--bw-primary);
}

.bw-product-pack {
  font-size: 12px;
  color: var(--bw-muted-light);
}

.bw-variant-selector {
  margin: 2px 0;
}

.bw-variant-select {
  width: 100%;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid var(--bw-border-light);
  border-radius: var(--bw-radius-sm, 4px);
  background: #f8fafc;
  color: var(--bw-heading);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: auto;
  appearance: auto;
}

.bw-variant-select:focus {
  border-color: var(--bw-primary);
}

.bw-product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bw-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bw-secondary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.bw-rating-badge i {
  font-size: 10px;
}

.bw-rating-text {
  font-size: 12px;
  color: var(--bw-muted);
}

.bw-product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}

.bw-price {
  font-size: 17px;
  font-weight: 700;
  color: var(--bw-heading);
}

.bw-mrp {
  font-size: 13px;
  color: var(--bw-muted-light);
  text-decoration: line-through;
}

.bw-discount-text {
  font-size: 12px;
  color: var(--bw-secondary);
  font-weight: 600;
}

.bw-product-action {
  margin-top: 12px;
}

.bw-btn-cart {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--bw-primary);
  color: var(--bw-primary);
  border-radius: var(--bw-radius-sm);
  font-weight: 600;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.bw-btn-disabled {
  width: 100%;
  padding: 10px;
  background: var(--bw-border-light);
  color: var(--bw-muted-light);
  border-radius: var(--bw-radius-sm);
  border: none;
  cursor: not-allowed;
  font-size: 14px;
  font-weight: 500;
}


/* ─── 13. Trust Section ────────────────────────────── */
.bw-trust-section {
  background: var(--bw-bg-secondary);
}

.bw-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.bw-trust-card {
  text-align: center;
  padding: 28px 16px;
}

.bw-trust-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: var(--bw-primary);
}

.bw-trust-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--bw-heading);
}

.bw-trust-text {
  font-size: 13px;
  color: var(--bw-muted);
  line-height: 1.5;
}

/* BEM alias for trust card */
.bw-trust-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: var(--bw-primary);
}

.bw-trust-card__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.bw-trust-card__text {
  font-size: 13px;
  color: var(--bw-muted);
}


/* ─── 14. Footer ───────────────────────────────────── */
.bw-footer {
  background: #0f172a;
  color: var(--bw-muted-light);
  padding-top: 0;
}

.bw-footer__main {
  padding: 48px 0 32px;
}

.bw-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.bw-footer__col {
  min-width: 0;
}

.bw-footer__brand {
  margin-bottom: 4px;
}

.bw-footer__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 12px;
}

.bw-footer__desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--bw-muted-light);
}

.bw-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bw-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #e2e8f0;
}

.bw-footer__badge i {
  color: var(--bw-primary);
}

.bw-footer__heading {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.bw-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bw-footer__links li {
  margin-bottom: 8px;
}

.bw-footer__links a {
  color: var(--bw-muted-light);
  font-size: 14px;
  transition: color 0.2s;
}

.bw-footer__links a:hover {
  color: #fff;
}

.bw-footer__contact p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.bw-footer__contact i {
  color: var(--bw-primary);
  margin-top: 3px;
  width: 16px;
  flex-shrink: 0;
}

.bw-footer__contact a {
  color: var(--bw-muted-light);
  transition: color 0.2s;
}

.bw-footer__contact a:hover {
  color: #fff;
}

.bw-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.bw-footer__social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bw-muted-light);
  transition: all 0.2s;
  font-size: 16px;
}

.bw-footer__social-icon:hover {
  background: var(--bw-primary);
  color: #fff;
}

.bw-footer__newsletter {
  margin-top: 20px;
}

.bw-footer__newsletter-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.bw-footer__newsletter-form {
  margin-top: 4px;
}

.bw-footer__newsletter-group {
  display: flex;
}

.bw-footer__newsletter-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--bw-radius-sm) 0 0 var(--bw-radius-sm);
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 14px;
  outline: none;
}

.bw-footer__newsletter-input::placeholder {
  color: var(--bw-muted);
}

.bw-footer__newsletter-input:focus {
  background: rgba(255, 255, 255, 0.15);
}

.bw-footer__newsletter-btn {
  padding: 10px 16px;
  background: var(--bw-primary);
  color: #fff;
  border-radius: 0 var(--bw-radius-sm) var(--bw-radius-sm) 0;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
}

.bw-footer__newsletter-btn:hover {
  background: var(--bw-primary-dark);
}

/* Footer Bottom */
.bw-footer__bottom {
  background: #020617;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bw-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bw-footer__copyright {
  font-size: 13px;
  color: var(--bw-muted);
}

.bw-footer__payments {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bw-footer__payment-icon {
  font-size: 24px;
  color: var(--bw-muted);
}

.bw-footer__payment-badge {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bw-muted-light);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}


/* ─── 15. Alerts / Flash Messages ──────────────────── */
.bw-flash-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  max-width: 420px;
  width: 90%;
}

.bw-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  box-shadow: var(--bw-shadow-lg);
  animation: bw-slideIn 0.3s ease;
}

.bw-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.bw-alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.bw-alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.bw-alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.bw-alert-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.6;
  color: inherit;
  line-height: 1;
  padding: 0;
}

.bw-alert-close:hover {
  opacity: 1;
}


/* ─── 16. Buttons ──────────────────────────────────── */
.bw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--bw-radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1.4;
}

.bw-btn-primary {
  background: var(--bw-primary);
  color: #fff;
}

.bw-btn-primary:hover {
  background: var(--bw-primary-dark);
  color: #fff;
}

.bw-btn-secondary {
  background: var(--bw-secondary);
  color: #fff;
}

.bw-btn-secondary:hover {
  background: var(--bw-secondary-dark);
  color: #fff;
}

.bw-btn-accent {
  background: var(--bw-accent);
  color: #fff;
}

.bw-btn-accent:hover {
  opacity: 0.9;
  color: #fff;
}

.bw-btn-outline {
  background: transparent;
  border: 2px solid var(--bw-primary);
  color: var(--bw-primary);
}

.bw-btn-outline:hover {
  background: var(--bw-primary);
  color: #fff;
}

.bw-btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.bw-btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}


/* ─── 17. Forms ────────────────────────────────────── */
.bw-form-group {
  margin-bottom: 16px;
}

.bw-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--bw-heading);
}

.bw-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  color: var(--bw-text);
}

.bw-input:focus {
  border-color: var(--bw-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bw-input::placeholder {
  color: var(--bw-muted-light);
}


/* ─── 17b. Searchable Country Select ───────────────── */
.bw-country-select {
  position: relative;
  width: 100%;
}

.bw-country-select__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  color: var(--bw-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}

.bw-country-select__trigger:focus,
.bw-country-select__trigger:focus-within {
  border-color: var(--bw-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.bw-country-select__value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bw-country-select__placeholder {
  flex: 1;
  color: var(--bw-muted-light);
}

.bw-country-select__arrow {
  font-size: 12px;
  color: var(--bw-muted);
  margin-left: 8px;
  transition: transform 0.2s;
}

.bw-country-select__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1050;
  max-height: 280px;
  overflow: hidden;
  flex-direction: column;
}

.bw-country-select__dropdown.bw-open {
  display: flex;
}

.bw-country-select__search-wrap {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--bw-border);
  gap: 8px;
}

.bw-country-select__search-wrap i {
  color: var(--bw-muted);
  font-size: 13px;
}

.bw-country-select__search {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--bw-text);
  background: transparent;
}

.bw-country-select__search::placeholder {
  color: var(--bw-muted-light);
}

.bw-country-select__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  max-height: 230px;
}

.bw-country-select__item {
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--bw-text);
  transition: background 0.15s;
}

.bw-country-select__item:hover {
  background: var(--bw-light);
}

.bw-country-select__item--active {
  background: rgba(37, 99, 235, 0.08);
  color: var(--bw-primary);
  font-weight: 500;
}

.bw-country-select__empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--bw-muted);
  text-align: center;
}

/* ─── 18. Breadcrumbs ──────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--bw-muted);
  padding: 8px 0;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: var(--bw-muted);
  transition: color 0.2s;
}

.breadcrumb-item a:hover {
  color: var(--bw-primary);
}

.breadcrumb-item.active {
  color: var(--bw-text);
}

.breadcrumb-item+.breadcrumb-item::before {
  content: "\203A";
  margin-right: 8px;
  color: #cbd5e1;
}


/* ─── 19. Stars ────────────────────────────────────── */
.bw-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--bw-warning);
  font-size: 14px;
}

.bw-rating-count {
  color: var(--bw-muted);
  font-size: 13px;
  margin-left: 6px;
}


/* ─── 20. Status Badges ────────────────────────────── */
.bw-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--bw-radius-pill);
  font-size: 12px;
  font-weight: 600;
}


/* ─── 21. Pagination ───────────────────────────────── */
.bw-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.bw-page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--bw-radius-sm);
  border: 1px solid var(--bw-border);
  color: var(--bw-text);
  font-weight: 500;
  transition: all 0.2s;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

.bw-page-btn:hover {
  border-color: var(--bw-primary);
  color: var(--bw-primary);
}

.bw-page-btn.active {
  background: var(--bw-primary);
  color: #fff;
  border-color: var(--bw-primary);
}

.bw-page-dots {
  display: flex;
  align-items: center;
  color: var(--bw-muted);
  padding: 0 4px;
}


/* ─── 22. Toast ────────────────────────────────────── */
.bw-toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.bw-toast {
  padding: 14px 28px;
  background: #1e293b;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
}
.bw-toast-visible {
  opacity: 1;
  transform: scale(1);
}
.bw-toast-success { background: #15803d; }
.bw-toast-error { background: #dc2626; }


/* ─── 23. Back to Top ──────────────────────────────── */
.bw-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bw-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bw-shadow-lg);
  z-index: 99;
  font-size: 16px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.bw-back-to-top.visible {
  display: flex;
}

.bw-back-to-top:hover {
  background: var(--bw-primary-dark);
  transform: translateY(-2px);
}


/* ─── 24. Blog Cards ───────────────────────────────── */
.bw-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bw-blog-card {
  background: #fff;
  border-radius: var(--bw-radius);
  overflow: hidden;
  border: 1px solid var(--bw-border-light);
  transition: box-shadow 0.2s, transform 0.2s;
}

.bw-blog-card:hover {
  box-shadow: var(--bw-shadow-lg);
  transform: translateY(-2px);
}

.bw-blog-img {
  display: block;
  height: 200px;
  overflow: hidden;
}

.bw-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bw-blog-card:hover .bw-blog-img img {
  transform: scale(1.05);
}

.bw-blog-body {
  padding: 20px;
}

.bw-blog-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bw-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.bw-blog-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.bw-blog-title a {
  color: var(--bw-heading);
  transition: color 0.2s;
}

.bw-blog-title a:hover {
  color: var(--bw-primary);
}

.bw-blog-excerpt {
  font-size: 14px;
  color: var(--bw-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.bw-blog-meta {
  font-size: 12px;
  color: var(--bw-muted-light);
  display: flex;
  gap: 12px;
}

.bw-blog-meta i {
  margin-right: 4px;
}

/* BEM alias for blog cards */
.bw-blog-card__image {
  height: 200px;
  overflow: hidden;
}

.bw-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bw-blog-card:hover .bw-blog-card__image img {
  transform: scale(1.05);
}

.bw-blog-card__body {
  padding: 20px;
}

.bw-blog-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--bw-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.bw-blog-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bw-blog-card__title a {
  color: var(--bw-heading);
  transition: color 0.2s;
}

.bw-blog-card__title a:hover {
  color: var(--bw-primary);
}

.bw-blog-card__excerpt {
  font-size: 14px;
  color: var(--bw-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bw-blog-card__meta {
  font-size: 12px;
  color: var(--bw-muted-light);
  display: flex;
  gap: 12px;
}


/* ─── 25. Promo Banners ────────────────────────────── */
.bw-promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bw-promo-card {
  border-radius: 12px;
  overflow: hidden;
  display: block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.bw-promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.bw-promo-card a {
  display: block;
}

.bw-promo-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 280;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .bw-promo-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .bw-promo-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Alias */
.bw-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


/* ─── 26. Brand Row ────────────────────────────────── */
.bw-brands-row {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 0;
  -webkit-overflow-scrolling: touch;
}

.bw-brands-row::-webkit-scrollbar {
  height: 4px;
}

.bw-brands-row::-webkit-scrollbar-thumb {
  background: var(--bw-border);
  border-radius: 4px;
}

.bw-brand-card {
  flex: 0 0 auto;
  padding: 16px 24px;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  text-align: center;
  min-width: 140px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.bw-brand-card:hover {
  border-color: var(--bw-primary);
  box-shadow: var(--bw-shadow);
}

.bw-brand-card img {
  height: 48px;
  object-fit: contain;
  margin: 0 auto;
}

.bw-brand-name-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--bw-heading);
}

.bw-brand-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--bw-text);
}

/* BEM alias */
.bw-brand-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 16px 0;
}

.bw-brand-item {
  flex: 0 0 auto;
  padding: 16px 24px;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  text-align: center;
  min-width: 140px;
  transition: all 0.2s;
}

.bw-brand-item:hover {
  border-color: var(--bw-primary);
  box-shadow: var(--bw-shadow);
}

.bw-brand-item__logo img {
  height: 48px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.bw-brand-item__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--bw-text);
}


/* ─── 27. Main Area ────────────────────────────────── */
.bw-main {
  min-height: 60vh;
}


/* ─── 28. Loading Skeleton ─────────────────────────── */
.bw-skeleton {
  background: var(--bw-border-light);
  border-radius: var(--bw-radius-sm);
  animation: bw-pulse 1.5s ease infinite;
}

@keyframes bw-pulse {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
}


/* ─── 29. Product Detail Page ──────────────────────── */
.bw-product-detail {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 40px;
  padding: 32px 0;
}

.bw-pd-gallery {
  position: sticky;
  top: 20px;
  align-self: start;
}

.bw-pd-gallery--multi {
  display: flex;
  gap: 12px;
}

/* Vertical thumbnails column (desktop) */
.bw-pd-thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  max-height: 460px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.bw-pd-thumbs-col::-webkit-scrollbar {
  width: 3px;
}

.bw-pd-thumbs-col::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.bw-pd-thumb {
  width: 68px;
  height: 68px;
  border: 2px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  cursor: pointer;
  overflow: hidden;
  padding: 4px;
  transition: all 0.2s;
  background: #fff;
  flex-shrink: 0;
}

.bw-pd-thumb:hover {
  border-color: #93c5fd;
}

.bw-pd-thumb.bw-active {
  border-color: var(--bw-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.bw-pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Main image */
.bw-pd-main-img {
  border: 1px solid var(--bw-border-light);
  border-radius: var(--bw-radius);
  padding: 20px;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  position: relative;
  flex: 1;
  overflow: hidden;
}

.bw-pd-main-img img {
  max-height: 400px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.bw-pd-main-img:has(.bw-pd-zoomable),
.bw-pd-main-img img.bw-pd-zoomable {
  cursor: zoom-in;
}

.bw-pd-main-img.bw-zoomed img.bw-pd-zoomable {
  cursor: zoom-out;
}

/* Image navigation arrows */
.bw-pd-img-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
  padding: 0 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.bw-pd-main-img:hover .bw-pd-img-nav {
  opacity: 1;
}

.bw-pd-img-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  font-size: 14px;
  cursor: pointer;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.2s;
}

.bw-pd-img-nav-btn:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* Image counter */
.bw-pd-img-counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* Zoom button */
.bw-pd-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: all 0.2s;
}

.bw-pd-main-img:hover .bw-pd-zoom-btn {
  opacity: 1;
}

.bw-pd-zoom-btn:hover {
  background: #fff;
  color: #2563eb;
}

/* Lightbox */
.bw-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.bw-lightbox.bw-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bw-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.bw-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}

.bw-lightbox__img {
  max-height: 70vh;
  max-width: 85vw;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
}

.bw-lightbox__close {
  position: fixed;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.bw-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.bw-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.bw-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.bw-lightbox__prev {
  left: 20px;
}

.bw-lightbox__next {
  right: 20px;
}

.bw-lightbox__counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 12px;
}

.bw-lightbox__thumbs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  justify-content: center;
  overflow-x: auto;
  max-width: 85vw;
  padding: 4px 0;
}

.bw-lightbox__thumb {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.bw-lightbox__thumb.bw-active {
  border-color: #fff;
}

.bw-lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bw-pd-info {
  padding-top: 0;
}

.bw-pd-brand {
  font-size: 13px;
  color: var(--bw-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.bw-pd-name {
  font-size: 24px;
  margin: 8px 0 12px;
  color: var(--bw-heading);
  line-height: 1.3;
}

.bw-pd-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.bw-pd-price-block {
  background: var(--bw-bg-secondary);
  padding: 20px;
  border-radius: var(--bw-radius);
  margin-bottom: 20px;
}

.bw-pd-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bw-pd-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--bw-heading);
}

.bw-pd-mrp {
  font-size: 16px;
  color: var(--bw-muted);
  text-decoration: line-through;
}

.bw-pd-discount {
  background: #dcfce7;
  color: #166534;
  padding: 4px 12px;
  border-radius: var(--bw-radius-pill);
  font-size: 13px;
  font-weight: 600;
}

.bw-pd-savings {
  font-size: 13px;
  color: var(--bw-secondary);
  margin-top: 8px;
}

.bw-pd-meta {
  margin-bottom: 16px;
}

.bw-pd-meta-item {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.bw-pd-meta-label {
  color: var(--bw-muted);
  min-width: 100px;
}

.bw-pd-rx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  padding: 8px 16px;
  border-radius: var(--bw-radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.bw-pd-qty {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.bw-qty-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--bw-border);
  background: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.bw-qty-btn:hover {
  background: var(--bw-bg-secondary);
}

.bw-qty-btn:first-child {
  border-radius: var(--bw-radius-sm) 0 0 var(--bw-radius-sm);
}

.bw-qty-btn:last-child {
  border-radius: 0 var(--bw-radius-sm) var(--bw-radius-sm) 0;
}

.bw-qty-input {
  width: 60px;
  height: 40px;
  border-top: 1px solid var(--bw-border);
  border-bottom: 1px solid var(--bw-border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}

.bw-pd-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.bw-pd-delivery {
  border-top: 1px solid var(--bw-border);
  padding-top: 16px;
}

.bw-pd-delivery-item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.bw-pd-delivery-item i {
  color: var(--bw-primary);
  width: 20px;
  text-align: center;
}


/* ─── 30. Tabs ─────────────────────────────────────── */
.bw-tabs {
  margin-top: 40px;
}

.bw-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--bw-border);
  overflow-x: auto;
}

.bw-tab-nav::-webkit-scrollbar {
  display: none;
}

.bw-tab-btn {
  padding: 14px 24px;
  font-weight: 500;
  font-size: 14px;
  color: var(--bw-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
}

.bw-tab-btn.active,
.bw-tab-btn.bw-active {
  color: var(--bw-primary);
  border-bottom-color: var(--bw-primary);
}

.bw-tab-btn:hover {
  color: var(--bw-text);
}

.bw-tab-panel {
  display: none;
  padding: 24px 0;
}

.bw-tab-panel.active,
.bw-tab-panel.bw-active {
  display: block;
}

.bw-tab-panel h3,
.bw-tab-panel h4 {
  margin: 20px 0 10px;
}

.bw-tab-panel ul,
.bw-tab-panel ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.bw-tab-panel ul {
  list-style: disc;
}

.bw-tab-panel ol {
  list-style: decimal;
}

.bw-tab-panel li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.bw-tab-panel p {
  margin-bottom: 14px;
  line-height: 1.8;
}


/* ─── 31. Reviews ──────────────────────────────────── */
.bw-reviews {
  margin-top: 16px;
}

.bw-review-summary {
  display: flex;
  gap: 24px;
  padding: 20px;
  background: var(--bw-bg-secondary);
  border-radius: var(--bw-radius);
  margin-bottom: 24px;
}

.bw-review-avg {
  text-align: center;
  min-width: 120px;
}

.bw-review-avg-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--bw-heading);
  line-height: 1;
}

.bw-review-bars {
  flex: 1;
}

.bw-review-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}

.bw-review-bar {
  flex: 1;
  height: 8px;
  background: var(--bw-border);
  border-radius: 4px;
  overflow: hidden;
}

.bw-review-bar-fill {
  height: 100%;
  background: var(--bw-warning);
  border-radius: 4px;
}

.bw-review-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--bw-border-light);
}

.bw-review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.bw-review-author {
  font-weight: 600;
  color: var(--bw-heading);
}

.bw-review-date {
  font-size: 13px;
  color: var(--bw-muted);
}

.bw-review-verified {
  color: var(--bw-secondary);
  font-size: 12px;
}


/* ─── 32. Cart Page ────────────────────────────────── */
.bw-cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding: 32px 0;
}

.bw-cart-items {
  min-width: 0;
}

.bw-cart-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--bw-border-light);
  border-radius: var(--bw-radius);
  margin-bottom: 12px;
  align-items: center;
}

.bw-cart-item__img {
  width: 80px;
  height: 80px;
  border-radius: var(--bw-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bw-bg-secondary);
}

.bw-cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bw-cart-item__info {
  flex: 1;
  min-width: 0;
}

.bw-cart-item__name {
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--bw-heading);
}

.bw-cart-item__price {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bw-cart-item__qty {
  display: flex;
  align-items: center;
}

.bw-cart-item__total {
  font-weight: 700;
  font-size: 16px;
  min-width: 80px;
  text-align: right;
  color: var(--bw-heading);
}

.bw-cart-item__remove {
  color: var(--bw-muted-light);
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.bw-cart-item__remove:hover {
  color: var(--bw-accent);
}

.bw-cart-summary {
  background: #fff;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  padding: 24px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.bw-cart-summary__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bw-border-light);
  color: var(--bw-heading);
}

.bw-cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.bw-cart-summary__row--total {
  font-size: 18px;
  font-weight: 700;
  border-top: 2px solid var(--bw-border);
  padding-top: 12px;
  margin-top: 8px;
  color: var(--bw-heading);
}

.bw-cart-summary__savings {
  color: var(--bw-secondary);
}

.bw-cart-summary__free {
  color: var(--bw-secondary);
  font-size: 12px;
}

.bw-cart-coupon {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bw-border-light);
}

.bw-cart-coupon__form {
  display: flex;
  gap: 8px;
}

.bw-cart-coupon__input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  font-size: 14px;
  outline: none;
}

.bw-cart-coupon__input:focus {
  border-color: var(--bw-primary);
}

.bw-cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.bw-cart-empty__icon {
  font-size: 64px;
  color: var(--bw-border);
  margin-bottom: 16px;
}


/* ─── 33. Auth Pages ───────────────────────────────── */
.bw-auth {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 40px 20px;
}

.bw-auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--bw-shadow-lg);
}

.bw-auth-card__header {
  text-align: center;
  margin-bottom: 32px;
}

.bw-auth-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--bw-primary);
}

.bw-auth-card__title {
  font-size: 22px;
  margin-bottom: 4px;
  color: var(--bw-heading);
}

.bw-auth-card__subtitle {
  font-size: 14px;
  color: var(--bw-muted);
}

.bw-auth-form .bw-input-icon {
  position: relative;
}

.bw-auth-form .bw-input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bw-muted-light);
}

.bw-auth-form .bw-input-icon .bw-input {
  padding-left: 42px;
}

.bw-auth-form .bw-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-top: 16px;
}


/* ─── 34. Miscellaneous ────────────────────────────── */
.bw-divider {
  border: none;
  border-top: 1px solid var(--bw-border);
  margin: 24px 0;
}

.bw-card {
  background: #fff;
  border-radius: var(--bw-radius);
  border: 1px solid var(--bw-border-light);
  padding: 24px;
  margin-bottom: 16px;
}

.bw-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--bw-muted);
}

.bw-empty-state__icon i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--bw-border);
  display: block;
}

.bw-text-danger {
  color: var(--bw-danger);
}

.bw-text-success {
  color: var(--bw-success);
}

.bw-text-muted {
  color: var(--bw-muted);
}

/* Utility: active class for JS toggles */
.bw-active {
  /* Generic active state - specific uses defined per component */
}

/* Add to cart animation */
.add-to-cart {
  transition: all 0.2s;
}

.add-to-cart:active {
  transform: scale(0.95);
}


/* ─── 35. Utility Classes ─────────────────────────── */
.bw-py-md {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.bw-py-lg {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bw-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bw-heading);
  margin-bottom: 0.5rem;
}

.bw-page-subtitle {
  font-size: 0.95rem;
  color: var(--bw-muted);
  margin-bottom: 1.5rem;
}


/* ─── 36. Category / Listing Page ─────────────────── */
.bw-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bw-product-count {
  font-size: 0.9rem;
  color: var(--bw-muted);
  font-weight: 500;
}

.bw-filter-toggle {
  display: none;
  width: 100%;
  padding: 0.75rem;
  background: var(--bw-primary);
  color: #fff;
  border: none;
  border-radius: var(--bw-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.bw-listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.bw-sidebar {
  background: #fff;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  padding: 1.25rem;
  position: sticky;
  top: calc(var(--bw-navbar-height) + 1rem);
}

.bw-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.bw-sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bw-heading);
  margin: 0;
}

.bw-sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--bw-muted);
  cursor: pointer;
}

.bw-filter-group {
  padding: 1rem 0;
  border-bottom: 1px solid var(--bw-border-light);
}

.bw-filter-group:last-child {
  border-bottom: none;
}

.bw-filter-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bw-heading);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bw-select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  font-size: 0.85rem;
  color: var(--bw-text);
  background: #fff;
  outline: none;
  cursor: pointer;
}

.bw-select:focus {
  border-color: var(--bw-primary);
}

.bw-select-sm {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  width: auto;
  min-width: 160px;
}

.bw-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  color: var(--bw-text);
  cursor: pointer;
}

.bw-checkbox input[type="radio"],
.bw-checkbox input[type="checkbox"] {
  accent-color: var(--bw-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.bw-checkmark {
  /* Custom checkmark span - can be used for custom styled checkboxes */
}

.bw-filter-scroll {
  max-height: 180px;
  overflow-y: auto;
}

.bw-filter-scroll::-webkit-scrollbar {
  width: 4px;
}

.bw-filter-scroll::-webkit-scrollbar-thumb {
  background: var(--bw-border);
  border-radius: 4px;
}

.bw-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
}

.bw-listing-main {
  min-width: 0;
}

.bw-sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid var(--bw-border-light);
  border-radius: var(--bw-radius-sm);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bw-sort-info {
  font-size: 0.85rem;
  color: var(--bw-muted);
}

.bw-sort-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bw-sort-label {
  font-size: 0.85rem;
  color: var(--bw-muted);
  font-weight: 500;
}

.bw-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.bw-seo-content {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bw-border-light);
}

.bw-seo-block {
  font-size: 0.9rem;
  color: var(--bw-muted);
  line-height: 1.8;
}

.bw-seo-block h2,
.bw-seo-block h3 {
  color: var(--bw-heading);
  margin: 1.25rem 0 0.5rem;
}

.bw-seo-block p {
  margin-bottom: 0.75rem;
}

.bw-seo-block ul,
.bw-seo-block ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  list-style: disc;
}


/* ─── 37. Product Detail - Additional ─────────────── */

.bw-pd-generic {
  font-size: 0.85rem;
  color: var(--bw-muted);
  margin-bottom: 0.75rem;
}

.bw-pd-generic-link {
  color: var(--bw-primary);
  font-weight: 600;
  text-decoration: none;
}

.bw-pd-generic-link:hover {
  text-decoration: underline;
}

.bw-pd-short-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.bw-rating-badge-lg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bw-secondary);
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--bw-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.bw-rating-badge-lg i {
  font-size: 0.8rem;
}

.bw-pd-tax-note {
  font-size: 0.78rem;
  color: var(--bw-muted-light);
  margin-top: 0.5rem;
}

.bw-pd-meta-value {
  font-size: 0.9rem;
  color: var(--bw-text);
  font-weight: 500;
}

.bw-pd-rx-notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1rem;
  border-radius: var(--bw-radius-sm);
  margin: 1rem 0;
  font-size: 0.85rem;
  color: #92400e;
}

.bw-pd-rx-notice i {
  font-size: 1.25rem;
  margin-top: 2px;
}

.bw-pd-rx-notice strong {
  display: block;
  margin-bottom: 2px;
}

.bw-pd-rx-notice p {
  margin: 0;
  font-size: 0.8rem;
}

.bw-pd-cart-section {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
  flex-wrap: wrap;
  align-items: center;
}

.bw-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  overflow: hidden;
}

.bw-qty-selector .bw-qty-btn {
  border: none;
  border-radius: 0;
}

.bw-qty-selector .bw-qty-input {
  border-top: none;
  border-bottom: none;
  border-left: 1px solid var(--bw-border);
  border-right: 1px solid var(--bw-border);
  width: 50px;
  height: 40px;
}

.bw-btn-cart-main {
  flex: 1;
  min-width: 140px;
}

.bw-btn-buy {
  flex: 1;
  min-width: 120px;
}

.bw-pd-out-of-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #fef2f2;
  color: var(--bw-danger);
  padding: 1rem;
  border-radius: var(--bw-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}


/* ─── 38. Tabs (Product Detail) ───────────────────── */
/* ─── Product Info Sections (Sticky Nav + Content) ─── */
.bw-info-sections {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.bw-info-nav {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--bw-white);
  border: 1px solid var(--bw-border);
  border-radius: 12px;
  padding: 12px 0;
  scrollbar-width: thin;
}

.bw-info-nav::-webkit-scrollbar {
  width: 4px;
}

.bw-info-nav::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.bw-info-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bw-info-nav-list li {
  margin: 0;
}

.bw-info-nav-link {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--bw-muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  line-height: 1.4;
}

.bw-info-nav-link:hover {
  color: var(--bw-text);
  background: #f8fafc;
  text-decoration: none;
}

.bw-info-nav-link.bw-active {
  color: var(--bw-primary);
  border-left-color: var(--bw-primary);
  background: #eff6ff;
  font-weight: 600;
}

.bw-info-content {
  min-width: 0;
}

.bw-info-block {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--bw-border);
}

.bw-info-block:first-child {
  padding-top: 0;
}

.bw-info-block:last-child {
  border-bottom: none;
}

.bw-info-block-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bw-heading);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bw-primary);
  display: inline-block;
}

/* Mobile: nav becomes horizontal sticky bar */
@media (max-width: 768px) {
  .bw-info-sections {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bw-info-nav {
    position: sticky;
    top: 60px;
    z-index: 50;
    max-height: none;
    overflow-y: visible;
    overflow-x: auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0;
    margin: 0 -16px;
    scrollbar-width: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }

  .bw-info-nav::-webkit-scrollbar {
    display: none;
  }

  .bw-info-nav-list {
    display: flex;
    white-space: nowrap;
  }

  .bw-info-nav-link {
    padding: 12px 16px;
    border-left: none;
    border-bottom: 3px solid transparent;
    font-size: 0.8rem;
  }

  .bw-info-nav-link.bw-active {
    border-left-color: transparent;
    border-bottom-color: var(--bw-primary);
    background: transparent;
  }

  .bw-info-nav-link:hover {
    background: transparent;
  }
}

.bw-tab-body {
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--bw-text);
  letter-spacing: -0.006em;
}

.bw-tab-body h2,
.bw-tab-body h3,
.bw-tab-body h4 {
  margin: 1.25rem 0 0.5rem;
  color: var(--bw-heading);
}

.bw-tab-body p {
  margin-bottom: 0.75rem;
}

.bw-tab-body ul,
.bw-tab-body ol {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.bw-tab-body ul {
  list-style: disc;
}

.bw-tab-body ol {
  list-style: decimal;
}

.bw-tab-body li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}


/* ─── 39. Reviews (Product Detail) ────────────────── */
.bw-reviews-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bw-border-light);
}

.bw-review-total {
  font-size: 0.85rem;
  color: var(--bw-muted);
  margin-top: 4px;
}

.bw-bar-label {
  font-size: 0.8rem;
  color: var(--bw-muted);
  min-width: 36px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.bw-bar-label i {
  color: var(--bw-warning);
  font-size: 0.7rem;
}

.bw-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bw-border);
  border-radius: 4px;
  overflow: hidden;
}

.bw-bar-fill {
  height: 100%;
  background: var(--bw-warning);
  border-radius: 4px;
  transition: width 0.3s;
}

.bw-bar-count {
  font-size: 0.8rem;
  color: var(--bw-muted);
  min-width: 24px;
  text-align: right;
}

.bw-review-list {
  margin-top: 1.5rem;
}

.bw-review-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bw-review-title {
  font-size: 0.95rem;
  color: var(--bw-heading);
}

.bw-verified-badge {
  font-size: 0.78rem;
  color: var(--bw-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.bw-review-text {
  font-size: 0.9rem;
  color: var(--bw-text);
  line-height: 1.7;
  margin: 0.5rem 0;
}

.bw-review-pros {
  font-size: 0.85rem;
  color: var(--bw-secondary);
  margin: 0.25rem 0;
}

.bw-review-pros i,
.bw-review-cons i {
  margin-right: 4px;
}

.bw-review-cons {
  font-size: 0.85rem;
  color: var(--bw-danger);
  margin: 0.25rem 0;
}

.bw-review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.bw-no-reviews {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--bw-muted);
  font-size: 0.9rem;
}

.bw-review-form-wrap {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bw-bg-secondary);
  border-radius: var(--bw-radius);
}

.bw-review-form-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bw-heading);
  margin: 0 0 1rem;
}

.bw-review-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bw-star-picker {
  display: flex;
  gap: 4px;
}

.bw-star-pick {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--bw-border);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.bw-star-pick:hover,
.bw-star-pick.active {
  color: var(--bw-warning);
}

.bw-star-pick i.fas {
  color: var(--bw-warning);
}

.bw-review-notice {
  text-align: center;
  padding: 1.5rem;
  color: var(--bw-muted);
  font-size: 0.9rem;
  background: var(--bw-bg-secondary);
  border-radius: var(--bw-radius-sm);
  margin-top: 1.5rem;
}

.bw-related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bw-border-light);
}

.bw-badge-lg {
  font-size: 0.8rem !important;
  padding: 5px 12px !important;
}


/* ─── 40. Blog Pages ──────────────────────────────── */
.bw-blog-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.bw-pill {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: var(--bw-radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bw-muted);
  background: var(--bw-bg-secondary);
  border: 1px solid var(--bw-border-light);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.bw-pill:hover {
  border-color: var(--bw-primary);
  color: var(--bw-primary);
}

.bw-pill.bw-active {
  background: var(--bw-primary);
  color: #fff;
  border-color: var(--bw-primary);
}

.bw-blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.bw-blog-main {
  min-width: 0;
}

.bw-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bw-blog-card {
  background: #fff;
  border: 1px solid var(--bw-border-light);
  border-radius: var(--bw-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.bw-blog-card:hover {
  box-shadow: var(--bw-shadow-lg);
  transform: translateY(-2px);
}

.bw-blog-img {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--bw-bg-secondary);
}

.bw-blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bw-blog-card:hover .bw-blog-img img {
  transform: scale(1.05);
}

.bw-blog-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--bw-border);
  background: var(--bw-bg-secondary);
}

.bw-blog-body {
  padding: 1.25rem;
}

.bw-blog-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bw-primary);
  margin-bottom: 0.4rem;
  text-decoration: none;
}

.bw-blog-category:hover {
  text-decoration: underline;
}

.bw-blog-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

.bw-blog-title a {
  color: var(--bw-heading);
  text-decoration: none;
}

.bw-blog-title a:hover {
  color: var(--bw-primary);
}

.bw-blog-excerpt {
  font-size: 0.85rem;
  color: var(--bw-muted);
  line-height: 1.6;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bw-blog-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--bw-muted-light);
}

.bw-blog-meta i {
  margin-right: 3px;
}

/* Blog Sidebar */
.bw-blog-sidebar {
  position: sticky;
  top: calc(var(--bw-navbar-height) + 1rem);
}

.bw-sidebar-widget {
  background: #fff;
  border: 1px solid var(--bw-border-light);
  border-radius: var(--bw-radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.bw-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bw-heading);
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bw-primary);
}

.bw-widget-list {
  list-style: none;
}

.bw-widget-list li {
  margin-bottom: 0;
}

.bw-widget-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--bw-text);
  text-decoration: none;
  border-bottom: 1px solid var(--bw-border-light);
  transition: color 0.2s;
}

.bw-widget-list a:hover,
.bw-widget-list a.bw-active {
  color: var(--bw-primary);
}

.bw-widget-count {
  font-size: 0.75rem;
  background: var(--bw-bg-secondary);
  color: var(--bw-muted);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.bw-widget-posts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bw-widget-post {
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  align-items: flex-start;
}

.bw-widget-post img {
  width: 60px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.bw-widget-post h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bw-heading);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bw-widget-post:hover h4 {
  color: var(--bw-primary);
}

.bw-widget-post span {
  font-size: 0.72rem;
  color: var(--bw-muted-light);
}


/* ─── 41. Blog Detail / Article ───────────────────── */
.bw-article-layout {
  max-width: 800px;
}

.bw-article-header {
  margin-bottom: 1.5rem;
}

.bw-article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--bw-heading);
  margin: 0.5rem 0 1rem;
}

.bw-article-meta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--bw-muted);
}

.bw-article-meta i {
  margin-right: 4px;
}

.bw-article-author {
  font-weight: 600;
  color: var(--bw-text);
}

.bw-article-featured-img {
  margin-bottom: 2rem;
  border-radius: var(--bw-radius);
  overflow: hidden;
}

.bw-article-featured-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.bw-article-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--bw-text);
  letter-spacing: -0.006em;
  word-spacing: 0.02em;
}

.bw-article-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

.bw-article-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.5rem;
}

.bw-article-content p {
  margin-bottom: 1rem;
}

.bw-article-content ul,
.bw-article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.bw-article-content ul {
  list-style: disc;
}

.bw-article-content ol {
  list-style: decimal;
}

.bw-article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.bw-article-content img {
  border-radius: var(--bw-radius-sm);
  margin: 1.5rem 0;
}

.bw-article-content blockquote {
  border-left: 4px solid var(--bw-primary);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bw-bg-secondary);
  border-radius: 0 var(--bw-radius-sm) var(--bw-radius-sm) 0;
  font-style: italic;
  color: var(--bw-muted);
}

/* Tags */
.bw-article-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bw-border-light);
}

.bw-tags-label {
  font-size: 0.85rem;
  color: var(--bw-muted);
  font-weight: 600;
}

.bw-tags-label i {
  margin-right: 4px;
}

.bw-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: var(--bw-radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bw-primary);
  background: #eff6ff;
  text-decoration: none;
  transition: all 0.2s;
}

.bw-tag:hover {
  background: var(--bw-primary);
  color: #fff;
}

/* Share */
.bw-share-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bw-bg-secondary);
  border-radius: var(--bw-radius);
}

.bw-share-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bw-heading);
  margin-bottom: 0.75rem;
  display: block;
}

.bw-share-buttons {
  display: flex;
  gap: 0.5rem;
}

.bw-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.2s, opacity 0.2s;
  border: none;
  cursor: pointer;
}

.bw-share-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

.bw-share-facebook {
  background: #1877f2;
}

.bw-share-twitter {
  background: #1da1f2;
}

.bw-share-whatsapp {
  background: #25d366;
}

.bw-share-linkedin {
  background: #0077b5;
}

.bw-share-copy {
  background: var(--bw-muted);
}

.bw-related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bw-border-light);
}


/* ─── 42. Search Page ─────────────────────────────── */
.bw-search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bw-search-form-wrap {
  margin-bottom: 1.5rem;
}

.bw-search-inline {
  display: flex;
  gap: 0;
  max-width: 700px;
}

.bw-search-inline .bw-input {
  flex: 1;
  border-radius: var(--bw-radius-sm) 0 0 var(--bw-radius-sm);
  border-right: none;
}

.bw-search-inline .bw-btn {
  border-radius: 0 var(--bw-radius-sm) var(--bw-radius-sm) 0;
}

.bw-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  font-size: 0.9rem;
  color: var(--bw-text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.bw-input:focus {
  border-color: var(--bw-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bw-input-lg {
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

.bw-search-tips {
  text-align: left;
  max-width: 500px;
  margin: 1.5rem auto 0;
  background: var(--bw-bg-secondary);
  padding: 1.25rem;
  border-radius: var(--bw-radius-sm);
}

.bw-search-tips h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.bw-search-tips ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.bw-search-tips li {
  font-size: 0.85rem;
  color: var(--bw-muted);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}


/* ─── 43. Static / Contact Pages ──────────────────── */
.bw-static-page {
  max-width: 900px;
}

.bw-page-content {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--bw-text);
}

.bw-page-content h2 {
  font-size: 1.4rem;
  margin: 2rem 0 0.75rem;
}

.bw-page-content h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
}

.bw-page-content p {
  margin-bottom: 1rem;
}

.bw-page-content ul,
.bw-page-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.bw-page-content ul {
  list-style: disc;
}

.bw-page-content ol {
  list-style: decimal;
}

.bw-page-content li {
  margin-bottom: 0.4rem;
}

.bw-contact-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bw-border-light);
}

.bw-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.bw-contact-info {
  font-size: 0.9rem;
  color: var(--bw-text);
}

.bw-contact-heading {
  font-size: 1.25rem;
  color: var(--bw-heading);
  margin: 0 0 0.75rem;
}

.bw-contact-details {
  margin-top: 1.5rem;
}

.bw-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.bw-contact-item i {
  color: var(--bw-primary);
  font-size: 1.1rem;
  margin-top: 3px;
  width: 20px;
  text-align: center;
}

.bw-contact-item strong {
  display: block;
  color: var(--bw-heading);
  margin-bottom: 2px;
}

.bw-contact-item a,
.bw-contact-item p {
  font-size: 0.85rem;
  color: var(--bw-muted);
  margin: 0;
}

.bw-contact-form-wrap {
  background: #fff;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  padding: 1.5rem;
}

.bw-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bw-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  display: block;
  margin-bottom: 0.3rem;
}

.bw-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  font-size: 0.9rem;
  color: var(--bw-text);
  background: #fff;
  outline: none;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.bw-textarea:focus {
  border-color: var(--bw-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.bw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bw-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Alerts */
.bw-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--bw-radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.bw-alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.bw-alert-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.bw-alert-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.bw-alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.bw-alert i {
  margin-top: 2px;
  font-size: 1.1rem;
}

.bw-required {
  color: var(--bw-danger);
}

/* Medical Disclaimer */
.bw-medical-disclaimer {
  margin: 2rem 0 1rem;
  padding: 1rem 1.25rem;
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.6;
}
.bw-medical-disclaimer p { margin: 0; }
.bw-medical-disclaimer strong { color: #78350f; }

/* Index listing pages */
.bw-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.bw-listing-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: var(--bw-heading);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.bw-listing-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--bw-primary);
  color: var(--bw-primary);
}
.bw-listing-card i {
  font-size: 1.5rem;
  color: var(--bw-primary);
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.bw-listing-card-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.bw-listing-card-body {
  flex: 1;
  min-width: 0;
}
.bw-listing-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bw-listing-card-count {
  font-size: 0.8rem;
  color: var(--bw-muted-light);
}
.bw-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.bw-alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--bw-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.bw-alpha-nav a:hover, .bw-alpha-nav a.active {
  background: var(--bw-primary);
  color: #fff;
}

/* ─── Variant Table (Product Detail) ─────────────── */
.bw-vt {
  margin: 1.25rem 0;
}
.bw-vt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.bw-vt-table thead th {
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bw-muted);
  border-bottom: 2px solid var(--bw-border);
  text-align: left;
  white-space: nowrap;
}
.bw-vt-row {
  border-bottom: 1px solid var(--bw-border-light);
  transition: background 0.15s;
}
.bw-vt-row:hover {
  background: var(--bw-bg-secondary);
}
.bw-vt-row td {
  padding: 0.65rem 0.75rem;
  vertical-align: middle;
}
.bw-vt-pack strong {
  font-size: 0.9rem;
  color: var(--bw-heading);
}
.bw-vt-sale {
  font-weight: 700;
  font-size: 1rem;
  color: var(--bw-heading);
}
.bw-vt-mrp {
  font-size: 0.8rem;
  color: var(--bw-muted-light);
  margin-left: 0.35rem;
}
.bw-vt-off {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bw-secondary);
  background: rgba(5, 150, 105, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: var(--bw-radius-pill);
  margin-left: 0.35rem;
}
.bw-vt-perunit {
  font-size: 0.82rem;
  color: var(--bw-muted);
  white-space: nowrap;
}
.bw-vt-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius-sm);
  overflow: hidden;
}
.bw-vt-qty-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--bw-bg-secondary);
  font-size: 1rem;
  font-weight: 600;
  color: var(--bw-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.bw-vt-qty-btn:hover {
  background: var(--bw-border);
}
.bw-vt-qty-input {
  width: 36px;
  height: 30px;
  border: none;
  border-left: 1px solid var(--bw-border);
  border-right: 1px solid var(--bw-border);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  -moz-appearance: textfield;
}
.bw-vt-qty-input::-webkit-inner-spin-button,
.bw-vt-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bw-vt-action .bw-btn {
  white-space: nowrap;
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
}
.bw-vt-oos {
  font-size: 0.8rem;
  color: var(--bw-danger);
  font-weight: 600;
}

/* Variant table responsive */
@media (max-width: 600px) {
  .bw-vt-table thead {
    display: none;
  }
  .bw-vt-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bw-border-light);
  }
  .bw-vt-row td {
    padding: 0;
    border: none;
  }
  .bw-vt-pack {
    width: 100%;
    margin-bottom: 0.15rem;
  }
  .bw-vt-price {
    flex: 1;
  }
  .bw-vt-perunit {
    display: none;
  }
  .bw-vt-qty {
    order: 3;
  }
  .bw-vt-action {
    order: 4;
  }
  .bw-vt-btn-text {
    display: none;
  }
}