/* ==========================================================================
   WellShelfRx Official Design System (v3.0.0)
   60% White / 25% Deep Healthcare Teal / 10% Warm Amber / 5% Soft Mint
   ========================================================================== */

:root {
  --ws-teal: #005B60;
  --ws-teal-dark: #004549;
  --ws-orange: #E68008;
  --ws-orange-dark: #C96D04;
  --ws-green: #54A66B;
  --ws-blue: #4294A7;
  --ws-gold: #F4B400;
  --ws-mint: #EAF5F1;
  --ws-charcoal: #23353B;
  --ws-muted: #4A5E65;
  --ws-white: #FFFFFF;
  --ws-surface: #F7FAF9;
  --ws-border: #D9E6E3;
  --ws-danger: #C53030;
  --ws-danger-bg: #FFF5F5;

  --ws-font-heading: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ws-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ws-radius-sm: 8px;
  --ws-radius: 12px;
  --ws-radius-lg: 16px;
  --ws-shadow-sm: 0 2px 8px rgba(0, 91, 96, 0.06);
  --ws-shadow: 0 12px 32px rgba(35, 53, 59, 0.10);
  --ws-max-w: 1240px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  margin: 0;
  font-family: var(--ws-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ws-charcoal);
  background: var(--ws-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ws-font-heading);
  color: var(--ws-teal);
  line-height: 1.18;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 3.8vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 2.5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--ws-charcoal); }

p { margin: 0 0 1rem; color: var(--ws-charcoal); }
a { color: var(--ws-teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.ws-container {
  width: 100%;
  max-width: var(--ws-max-w);
  margin: 0 auto;
  padding: 0 20px;
}

.ws-section { padding: 64px 0; }
.ws-section--mint { background: var(--ws-mint); }
.ws-section--surface { background: var(--ws-surface); }
.ws-section--teal { background: var(--ws-teal); color: var(--ws-white); }
.ws-section--teal h2, .ws-section--teal h3 { color: var(--ws-white); }
.ws-section--teal p { color: #E2F1EE; }

.ws-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 32px;
}

.ws-section-head p { margin: 0; color: var(--ws-muted); }

/* Buttons (Inter 600, 16-18px, 8-12px radius) */
.ws-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--ws-radius-sm);
  font-family: var(--ws-font-body);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
  text-decoration: none !important;
  line-height: 1.25;
}

.ws-btn--primary,
.woocommerce button.button.alt,
.woocommerce a.button.alt {
  background: var(--ws-teal) !important;
  color: var(--ws-white) !important;
}

.ws-btn--primary:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
  background: var(--ws-teal-dark) !important;
  transform: translateY(-1px);
}

.ws-btn--orange {
  background: var(--ws-orange);
  color: var(--ws-white);
}

.ws-btn--orange:hover {
  background: var(--ws-orange-dark);
  transform: translateY(-1px);
}

.ws-btn--outline {
  background: var(--ws-white);
  color: var(--ws-teal);
  border-color: var(--ws-teal);
}

.ws-btn--outline:hover {
  background: var(--ws-mint);
}

.ws-btn--sm { padding: 9px 16px; font-size: 0.92rem; }
.ws-btn--full { width: 100%; }

/* Top Announcement & Utility Bar */
.ws-top-bar {
  background: var(--ws-teal);
  color: var(--ws-white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 0;
}

.ws-top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ws-top-bar a { color: var(--ws-white); text-decoration: underline; }

/* Sticky Header */
.ws-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--ws-white);
  border-bottom: 1px solid var(--ws-border);
  box-shadow: 0 2px 10px rgba(0, 91, 96, 0.04);
}

.ws-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.ws-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.ws-logo img { height: 48px; width: auto; object-fit: contain; }

/* Search */
.ws-search-wrap { position: relative; flex: 1; max-width: 460px; }

.ws-search-form {
  display: flex;
  align-items: center;
  border: 2px solid var(--ws-border);
  border-radius: var(--ws-radius);
  background: var(--ws-surface);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.ws-search-form:focus-within { border-color: var(--ws-teal); background: var(--ws-white); }

.ws-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 1rem;
  font-family: var(--ws-font-body);
  color: var(--ws-charcoal);
  outline: none;
}

.ws-search-btn {
  background: var(--ws-teal);
  color: var(--ws-white);
  border: none;
  padding: 11px 18px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ws-search-btn:hover { background: var(--ws-teal-dark); }

.ws-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  box-shadow: var(--ws-shadow);
  z-index: 220;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.ws-search-dropdown.is-open { display: block; }

.ws-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--ws-border);
  color: var(--ws-charcoal);
  text-decoration: none !important;
}

.ws-search-item:hover { background: var(--ws-mint); }
.ws-search-item img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: var(--ws-surface); }

/* Header Nav & Actions */
.ws-nav-bar {
  border-top: 1px solid var(--ws-border);
  background: var(--ws-white);
}

.ws-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  overflow-x: auto;
}

.ws-nav-list a {
  display: block;
  padding: 11px 0;
  color: var(--ws-charcoal);
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.ws-nav-list a:hover {
  color: var(--ws-teal);
  border-bottom-color: var(--ws-teal);
  text-decoration: none;
}

.ws-header-actions { display: flex; align-items: center; gap: 10px; }

.ws-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--ws-radius-sm);
  border: 1px solid var(--ws-border);
  background: var(--ws-white);
  color: var(--ws-teal);
  cursor: pointer;
}

.ws-icon-btn:hover { background: var(--ws-mint); }

.ws-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--ws-orange);
  color: var(--ws-white);
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.ws-badge-count[hidden] { display: none; }

.ws-mobile-toggle {
  display: none;
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  padding: 9px 14px;
  font-weight: 600;
  color: var(--ws-teal);
  cursor: pointer;
}

/* Hero Section */
.ws-hero {
  background: var(--ws-mint);
  padding: 52px 0;
  border-bottom: 1px solid var(--ws-border);
}

.ws-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.ws-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ws-teal);
  background: var(--ws-white);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ws-border);
  margin-bottom: 16px;
}

.ws-hero-lead {
  font-size: 1.125rem;
  color: var(--ws-charcoal);
  max-width: 560px;
  margin-bottom: 24px;
}

.ws-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }

.ws-spotlight-stack { display: grid; gap: 14px; }

.ws-spotlight-card {
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-left: 5px solid var(--ws-teal);
  border-radius: var(--ws-radius);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: var(--ws-shadow-sm);
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ws-spotlight-card:hover { transform: translateY(-2px); box-shadow: var(--ws-shadow); }
.ws-spotlight-card--green { border-left-color: var(--ws-green); }
.ws-spotlight-card--blue { border-left-color: var(--ws-blue); }
.ws-spotlight-card--orange { border-left-color: var(--ws-orange); }

/* Trust Strip */
.ws-trust-bar {
  background: var(--ws-white);
  border-bottom: 1px solid var(--ws-border);
  padding: 22px 0;
}

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

.ws-trust-item { display: flex; align-items: flex-start; gap: 12px; }
.ws-trust-dot {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ws-mint);
  color: var(--ws-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.ws-trust-item strong { display: block; color: var(--ws-teal); font-size: 0.98rem; }
.ws-trust-item span { font-size: 0.88rem; color: var(--ws-muted); }

/* Product Grid & Cards */
.ws-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ws-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.ws-product-card {
  position: relative;
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.ws-product-card:hover { box-shadow: var(--ws-shadow); transform: translateY(-2px); }

.ws-card-tools {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 4;
}

.ws-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ws-border);
  background: var(--ws-white);
  color: var(--ws-charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--ws-shadow-sm);
}

.ws-tool-btn:hover, .ws-tool-btn[aria-pressed="true"] {
  color: var(--ws-orange);
  border-color: var(--ws-orange);
}

.ws-product-thumb {
  aspect-ratio: 4 / 3;
  background: var(--ws-surface);
  border-radius: var(--ws-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 16px;
  overflow: hidden;
}

.ws-product-thumb img { max-height: 100%; width: auto; object-fit: contain; }

.ws-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ws-mint);
  color: var(--ws-teal);
  margin-bottom: 8px;
  align-self: flex-start;
}

.ws-pill--orange { background: #FEF3E2; color: #9C5300; }

.ws-product-title {
  font-family: var(--ws-font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ws-charcoal);
  margin-bottom: 6px;
}

.ws-product-meta { font-size: 0.9rem; color: var(--ws-muted); margin-bottom: 14px; }

.ws-product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ws-border);
}

.ws-price-stack strong { display: block; font-size: 1.35rem; font-weight: 700; color: var(--ws-teal); }
.ws-price-stack span { font-size: 0.85rem; color: var(--ws-muted); font-weight: 500; }

/* Category Tiles */
.ws-cat-tile {
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 20px;
  display: block;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-cat-tile:hover { border-color: var(--ws-teal); box-shadow: var(--ws-shadow-sm); }
.ws-cat-tile h3 { font-size: 1.08rem; color: var(--ws-teal); margin-bottom: 4px; }
.ws-cat-tile p { font-size: 0.9rem; color: var(--ws-muted); margin: 0; }

/* Tables & Boxes */
.ws-card-box {
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 24px;
}

.ws-table-wrap { overflow-x: auto; border: 1px solid var(--ws-border); border-radius: var(--ws-radius); background: var(--ws-white); }
.ws-table { width: 100%; border-collapse: collapse; text-align: left; }
.ws-table th, .ws-table td { padding: 14px 18px; border-bottom: 1px solid var(--ws-border); font-size: 0.98rem; }
.ws-table th { background: var(--ws-teal); color: var(--ws-white); font-weight: 600; }
.ws-table tr:nth-child(even) td { background: var(--ws-surface); }
.ws-table tr:last-child td { border-bottom: none; }

/* FAQ Accordion */
.ws-faq-list { display: grid; gap: 12px; max-width: 880px; }
.ws-faq-item {
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  overflow: hidden;
}
.ws-faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: var(--ws-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ws-teal);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.ws-faq-panel { padding: 0 20px 18px; display: none; color: var(--ws-charcoal); }
.ws-faq-item.is-open .ws-faq-panel { display: block; }

/* Single Product Page */
.ws-pdp-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.ws-pdp-gallery {
  position: sticky;
  top: 96px;
  background: var(--ws-surface);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-lg);
  padding: 28px;
  text-align: center;
}

.ws-shipping-meter {
  background: var(--ws-mint);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  padding: 14px 16px;
  margin: 16px 0;
}

.ws-meter-bar { height: 8px; background: #D0E3DF; border-radius: 999px; overflow: hidden; margin-top: 8px; }
.ws-meter-fill { height: 100%; background: var(--ws-teal); transition: width 0.25s ease; }

/* Cart & Checkout */
.ws-cart-grid, .ws-checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: start;
}

.ws-checkout-grid .col2-set { display: grid; gap: 20px; }
.ws-checkout-grid input[type="text"],
.ws-checkout-grid input[type="email"],
.ws-checkout-grid input[type="tel"],
.ws-checkout-grid select,
.ws-checkout-grid textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  font-size: 1rem;
  font-family: var(--ws-font-body);
}

/* Slide-Out Cart Drawer & Quick View Modal */
.ws-drawer-backdrop, .ws-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35, 53, 59, 0.52);
  z-index: 900;
  display: none;
}

.ws-drawer-backdrop.is-open, .ws-modal-backdrop.is-open { display: block; }

.ws-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--ws-white);
  z-index: 910;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -8px 0 32px rgba(0,0,0,0.14);
}

.ws-cart-drawer.is-open { transform: translateX(0); }

.ws-qv-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  background: var(--ws-white);
  border-radius: var(--ws-radius-lg);
  padding: 28px;
  z-index: 920;
  display: none;
  box-shadow: var(--ws-shadow);
}

.ws-qv-modal.is-open { display: block; }

/* Mobile Bottom Tab Bar */
.ws-mobile-tabs {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--ws-white);
  border-top: 1px solid var(--ws-border);
  z-index: 150;
  justify-content: space-around;
  align-items: center;
}

.ws-mobile-tabs a, .ws-mobile-tabs button {
  background: none;
  border: none;
  color: var(--ws-charcoal);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

/* Footer */
.ws-footer {
  background: var(--ws-charcoal);
  color: #E2ECEA;
  padding: 56px 0 28px;
}

.ws-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.ws-footer h4 { color: var(--ws-white); font-size: 1.05rem; margin-bottom: 14px; }
.ws-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ws-footer a { color: #CFE0DD; font-size: 0.95rem; }
.ws-footer a:hover { color: var(--ws-white); }

.ws-pay-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ws-pay-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ws-white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
}

.ws-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: #B4C8C4;
}

@media (max-width: 1024px) {
  .ws-nav-bar { display: none; }
  .ws-mobile-toggle { display: inline-flex; }
  .ws-hero-grid, .ws-pdp-grid, .ws-cart-grid, .ws-checkout-grid { grid-template-columns: 1fr; }
  .ws-pdp-gallery { position: static; }
  .ws-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .ws-grid-4, .ws-trust-grid, .ws-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  body.woocommerce-checkout { padding-bottom: 0; }
  body.woocommerce-checkout .ws-mobile-tabs { display: none !important; }
  .ws-mobile-tabs { display: flex; }
  .ws-header-main { flex-wrap: wrap; }
  .ws-search-wrap { order: 3; max-width: 100%; flex-basis: 100%; }
  .ws-grid-3, .ws-grid-4, .ws-trust-grid, .ws-footer-grid { grid-template-columns: 1fr; }
}

/* Clickable Pack-Size Cards (PDP) */
.ws-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.ws-pack-card {
  position: relative;
  border: 2px solid var(--ws-border);
  border-radius: var(--ws-radius-sm);
  padding: 12px 14px;
  background: var(--ws-white);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

.ws-pack-card:hover { border-color: var(--ws-teal); }

.ws-pack-card.is-selected {
  border-color: var(--ws-teal);
  background: var(--ws-mint);
  box-shadow: 0 0 0 1px var(--ws-teal);
}

.ws-pack-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  background: var(--ws-orange);
  color: var(--ws-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ws-pack-qty { font-weight: 700; color: var(--ws-charcoal); font-size: 1rem; display: block; }
.ws-pack-price { font-weight: 700; color: var(--ws-teal); font-size: 1.1rem; }
.ws-pack-unit { font-size: 0.82rem; color: var(--ws-muted); display: block; margin-top: 2px; }

/* Kit Upsell Box */
.ws-kit-box {
  border: 2px solid var(--ws-teal);
  background: var(--ws-mint);
  border-radius: var(--ws-radius);
  padding: 16px 18px;
  margin-top: 16px;
}

.ws-kit-box-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

/* X Social Proof Cards */
.ws-x-card {
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-x-head { display: flex; justify-content: space-between; align-items: center; }
.ws-x-author strong { display: block; color: var(--ws-charcoal); font-size: 0.98rem; }
.ws-x-author span { font-size: 0.85rem; color: var(--ws-muted); }
.ws-x-quote { font-size: 0.96rem; color: var(--ws-charcoal); margin: 0; }

/* Hide native Woo variation table when pack cards are active */
.ws-has-pack-cards table.variations { display: none !important; }

@media (max-width: 640px) {
  .ws-pack-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GenericRX-Inspired Layout Polish (WellShelfRx Brand Palette)
   ========================================================================== */

/* Top Utility Bar with Pill Links */
.ws-pill-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ws-white);
  color: var(--ws-teal) !important;
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none !important;
}
.ws-pill-link:hover { background: var(--ws-mint); }

/* Header Category-Select + Search + Orange Button */
.ws-search-cat {
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--ws-charcoal);
  border-right: 1px solid var(--ws-border);
  outline: none;
  max-width: 150px;
}

.ws-search-btn--orange {
  background: var(--ws-orange);
  color: var(--ws-white);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ws-search-btn--orange:hover { background: var(--ws-orange-dark); }

/* Shop By Categories Icon Carousel Band */
.ws-cat-carousel-band {
  background: linear-gradient(180deg, #EAF5F1 0%, #F4FAF8 100%);
  padding: 48px 0;
  border-bottom: 1px solid var(--ws-border);
}

.ws-cat-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-cat-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 75px) / 6);
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px;
  flex: 1;
}
.ws-cat-track::-webkit-scrollbar { display: none; }

.ws-cat-icon-card {
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  box-shadow: var(--ws-shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.ws-cat-icon-card:hover { transform: translateY(-3px); border-color: var(--ws-teal); }
.ws-cat-icon-card svg { width: 42px; height: 42px; color: var(--ws-teal); }
.ws-cat-icon-card span { font-weight: 600; font-size: 0.92rem; color: var(--ws-charcoal); }

.ws-carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--ws-border);
  background: var(--ws-white);
  color: var(--ws-teal);
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--ws-shadow-sm);
}

/* Archive Layout: Left Sidebar + 4-Col Grid */
.ws-archive-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}

.ws-sidebar-box {
  background: var(--ws-white);
  border: 1px solid var(--ws-border);
  border-radius: var(--ws-radius);
  padding: 18px;
  margin-bottom: 18px;
}

.ws-sidebar-box h3 { font-size: 1.02rem; margin-bottom: 12px; color: var(--ws-teal); }
.ws-sidebar-cats { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ws-sidebar-cats a { color: var(--ws-charcoal); font-size: 0.92rem; }
.ws-sidebar-cats a:hover { color: var(--ws-teal); font-weight: 600; }

.ws-archive-banner {
  background: var(--ws-mint);
  border: 1px solid #B7DDD5;
  border-radius: var(--ws-radius);
  padding: 20px 24px;
  text-align: center;
  margin-bottom: 22px;
}
.ws-archive-banner h1 { margin: 0; font-size: 1.75rem; color: var(--ws-teal); }

.ws-grid-4-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ws-btn-soft {
  background: var(--ws-mint);
  color: var(--ws-teal) !important;
  border: 1px solid #CBE4DE;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
}
.ws-btn-soft:hover { background: var(--ws-teal); color: var(--ws-white) !important; }

/* 3-Column PDP with "Your Order, Our Promise" Sidebar */
.ws-pdp-3col {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr 0.72fr;
  gap: 28px;
  align-items: start;
}

.ws-promise-card {
  position: sticky;
  top: 96px;
  background: var(--ws-white);
  border: 2px solid var(--ws-teal);
  border-radius: var(--ws-radius);
  padding: 20px;
  box-shadow: var(--ws-shadow-sm);
}

.ws-promise-badge {
  background: var(--ws-teal);
  color: var(--ws-white);
  border-radius: var(--ws-radius-sm);
  padding: 12px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin: 12px 0;
}

.ws-promise-list { display: grid; gap: 12px; margin-top: 14px; }
.ws-promise-item { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; }
.ws-promise-item strong { display: block; color: var(--ws-teal); font-size: 0.88rem; }

/* Teal Footer with White Pill Logo */
.ws-footer--teal { background: var(--ws-teal); color: #E2F1EE; }
.ws-footer-logo-pill {
  background: var(--ws-white);
  border-radius: 999px;
  padding: 10px 20px;
  display: inline-block;
  margin-bottom: 16px;
}
.ws-footer-logo-pill img { height: 38px; width: auto; }

@media (max-width: 1120px) {
  .ws-pdp-3col { grid-template-columns: 1fr 1fr; }
  .ws-promise-card { grid-column: 1 / -1; position: static; }
  .ws-grid-4-products { grid-template-columns: repeat(3, 1fr); }
  .ws-cat-track { grid-auto-columns: calc((100% - 30px) / 3); }
}

@media (max-width: 860px) {
  .ws-archive-layout { grid-template-columns: 1fr; }
  .ws-pdp-3col { grid-template-columns: 1fr; }
  .ws-grid-4-products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ws-search-cat { display: none; }
  .ws-grid-4-products { grid-template-columns: 1fr; }
  .ws-cat-track { grid-auto-columns: calc((100% - 15px) / 2); }
}

/* ==========================================================================
   Live-Audit Fixes: Uniform Card Thumbnails, Clean Price Stack, Mobile/Tablet Hero
   ========================================================================== */

.ws-product-thumb {
  height: 200px !important;
  aspect-ratio: auto !important;
  width: 100%;
}

.ws-product-thumb img {
  max-height: 172px !important;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ws-card-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 12px;
}

.ws-card-price-block strong {
  font-size: 1.15rem;
  color: var(--ws-teal);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ws-hero { padding: 28px 0 32px !important; }
  .ws-hero-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .ws-hero-media { order: -1; text-align: center; }
  .ws-hero-media img { max-height: 220px; width: auto !important; margin: 0 auto; object-fit: contain; }
}

@media (max-width: 640px) {
  .ws-top-bar-actions { display: none !important; }
  .ws-top-bar { font-size: 0.82rem; padding: 7px 0; text-align: center; }
  .ws-top-bar-inner { justify-content: center; }
  .ws-hero { padding: 20px 0 26px !important; }
  .ws-hero h1 { font-size: 1.85rem !important; margin-bottom: 10px; }
  .ws-hero-lead { font-size: 0.98rem !important; margin-bottom: 16px; }
  .ws-hero-media img { max-height: 175px; }
  .ws-hero-actions .ws-btn { padding: 10px 15px; font-size: 0.9rem; }
}

/* ==========================================================================
   Tablet (768px) & Mobile (375px) Polish Fixes
   ========================================================================== */

.ws-tablet-cart-btn { display: none; }

@media (max-width: 1024px) {
  .ws-tablet-cart-btn { display: inline-flex; }
}

@media (max-width: 860px) {
  .ws-archive-main { order: -1; }
  .ws-archive-sidebar { order: 2; }
  .ws-archive-banner { padding: 14px 16px; margin-bottom: 14px; }
  .ws-archive-banner h1 { font-size: 1.45rem; }
}

@media (max-width: 640px) {
  .ws-header { position: relative; }
  .ws-eyebrow { font-size: 0.75rem; padding: 5px 12px; white-space: nowrap; }
}
