/* ══════════════════════════════════════════════════════════
   LGW RESELLER PORTAL — Warm Cream Theme
   Matches main site: bg #faf7f2, brown #6b4c2a, gold #b8860b
══════════════════════════════════════════════════════════ */
:root {
  --lgw-bg:        #faf7f2;
  --lgw-card:      #ffffff;
  --lgw-border:    rgba(107,76,42,0.13);
  --lgw-text:      #3d2b1a;
  --lgw-muted:     #8a7060;
  --lgw-gold:      #b8860b;
  --lgw-gold-dk:   #8a6508;
  --lgw-brown:     #6b4c2a;
  --lgw-header-bg: rgba(250,247,242,0.97);
}
/* ═══════════════════════════════════════════════
   LGW Reseller Portal — v5.0 Frontend CSS
   Fully responsive · Professional · Gold/Dark
═══════════════════════════════════════════════ */

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

.lgwp {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: #3d2b1a;
  background: #faf7f2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px 40px;
}

/* ── GATE (Login / Register) ─────────────────── */
.lgwp-gate { display: flex; justify-content: center; padding: 2rem 1rem; }
.lgwp-gate-box {
  background: #ffffff;
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 8px 32px rgba(107,76,42,0.15);
}
.lgwp-brand { font-size: 10px; letter-spacing: 2px; color: #8a6508; text-transform: uppercase; margin-bottom: 1rem; }
.lgwp-gate-box h2 { font-size: 22px; font-weight: 700; color: #b8860b; margin: 0 0 4px; }
.lgwp-gate-box p { font-size: 13px; color: #8a7060; margin: 0 0 1.25rem; line-height: 1.6; }
.lgwp-two-field { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media(max-width:480px){ .lgwp-two-field { grid-template-columns: 1fr; } }
.lgwp-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.lgwp-field label { font-size: 11px; font-weight: 600; color: #7a6050; }
.lgwp-field label small { font-weight: 400; color: #9a8070; }
.lgwp-field input,
.lgwp-field textarea,
.lgwp-select {
  background: #faf7f2;
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: #3d2b1a;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s;
}
.lgwp-field input:focus,
.lgwp-field textarea:focus { outline: none; border-color: rgba(212,175,55,0.5); }
.lgwp-btn-primary {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #b8860b, #8a6508);
  color: #111;
  border: none;
  border-radius: 9px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 10px;
  transition: opacity 0.2s, transform 0.1s;
}
.lgwp-btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.lgwp-btn-primary:active { transform: translateY(0); }
.lgwp-btn-secondary {
  background: transparent;
  color: #b8860b;
  border: 1px solid rgba(184,134,11,0.4);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s;
}
.lgwp-btn-secondary:hover { background: rgba(184,134,11,0.1); }
.lgwp-links { text-align: center; font-size: 12px; color: #9a8070; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.lgwp-links a { color: #b8860b; text-decoration: none; }
.lgwp-error   { background: rgba(226,75,74,0.12); border: 1px solid rgba(226,75,74,0.3); color: #f09595; font-size: 12px; padding: 9px 12px; border-radius: 6px; margin-bottom: 12px; }
.lgwp-success { background: rgba(29,158,117,0.10); border: 1px solid rgba(29,158,117,0.3); color: #1d9e75; font-size: 12px; padding: 9px 12px; border-radius: 6px; margin-bottom: 12px; }

/* ── STICKY HEADER ───────────────────────────── */
.lgwp-sticky-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184,134,11,0.25);
  padding: 10px 0;
  margin-bottom: 0;
  gap: 8px;
}
.lgwp-sh-brand { display: flex; align-items: center; gap: 10px; }
.lgwp-sh-logo  { background: #b8860b; color: #111; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 5px; letter-spacing: 1px; }
.lgwp-sh-title { font-size: 14px; font-weight: 600; color: #b8860b; }
.lgwp-sh-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ── WELCOME STRIP ───────────────────────────── */
.lgwp-welcome-strip {
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(184,134,11,0.12);
  margin-bottom: 0;
}
.lgwp-ws-greeting { font-size: 15px; color: #3d2b1a; }
.lgwp-ws-ref { font-size: 12px; color: #8a7060; margin-top: 3px; }
.lgwp-min-pill {
  background: rgba(184,134,11,0.12);
  color: #8a6508;
  border: 1px solid rgba(184,134,11,0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ── ACCOUNT STRIP ───────────────────────────── */
.lgwp-account-strip {
  display: flex;
  gap: 0;
  background: #ffffff;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
}
.lgwp-as-stat {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid rgba(184,134,11,0.12);
  min-width: 0;
}
.lgwp-as-stat:last-child { border-right: none; }
.lgwp-as-num { font-size: 15px; font-weight: 700; color: #b8860b; word-break: break-all; }
.lgwp-as-lbl { font-size: 10px; color: #8a7060; margin-top: 2px; }

/* ── NAV ─────────────────────────────────────── */
.lgwp-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(184,134,11,0.15);
  margin-bottom: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lgwp-nav::-webkit-scrollbar { display: none; }
.lgwp-nav-item {
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #8a7060;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color 0.2s;
}
.lgwp-nav-item.active { color: #b8860b; border-bottom-color: #b8860b; }
.lgwp-nav-item:hover  { color: #3d2b1a; }

/* ── CATEGORY CHIPS ──────────────────────────── */
.lgwp-cat-scroller {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lgwp-cat-scroller::-webkit-scrollbar { display: none; }
.lgwp-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid rgba(184,134,11,0.3);
  color: #7a6050;
  background: rgba(184,134,11,0.07);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.lgwp-cat-chip.active,
.lgwp-cat-chip:hover {
  background: var(--chip-color, #b8860b);
  color: #111;
  border-color: var(--chip-color, #b8860b);
}

/* ── FILTERS ─────────────────────────────────── */
.lgwp-filter-form { margin-bottom: 1rem; }
.lgwp-filter-inner { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lgwp-search-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 8px;
  padding: 0 12px;
  flex: 1;
  min-width: 180px;
}
.lgwp-search-icon { font-size: 14px; margin-right: 6px; opacity: 0.5; }
.lgwp-search-inp {
  background: transparent;
  border: none;
  padding: 9px 0;
  font-size: 13px;
  color: #3d2b1a;
  font-family: inherit;
  width: 100%;
  outline: none;
}
.lgwp-select {
  background: #ffffff;
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #3d2b1a;
  font-family: inherit;
}
.lgwp-btn-filter {
  background: rgba(184,134,11,0.15);
  color: #b8860b;
  border: 1px solid rgba(184,134,11,0.35);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.lgwp-btn-clear { background: transparent; color: #8a7060; border-color: rgba(107,76,42,0.12); }
.lgwp-active-filter {
  font-size: 12px;
  color: #7a6050;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lgwp-active-filter strong { color: #b8860b; }
.lgwp-remove-filter { color: #8a7060; text-decoration: none; font-size: 11px; }
.lgwp-remove-filter:hover { color: #e24a4a; }

/* ── PRODUCT GRID ────────────────────────────── */
.lgwp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 14px;
  margin-bottom: 2rem;
}
@media(max-width:400px){ .lgwp-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:900px){ .lgwp-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); } }

/* ── PRODUCT CARD ────────────────────────────── */
.lgwp-card {
  background: #ffffff;
  border: 1px solid rgba(107,76,42,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.lgwp-card:not(.lgwp-card-unavail):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
  border-color: rgba(184,134,11,0.4);
}
.lgwp-card-unavail {
  opacity: 0.55;
  cursor: default;
}

.lgwp-card-img {
  position: relative;
  height: 160px;
  background: #faf7f2;
  overflow: hidden;
  flex-shrink: 0;
}
.lgwp-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.lgwp-card:not(.lgwp-card-unavail):hover .lgwp-card-img img { transform: scale(1.05); }
.lgwp-img-ph {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  opacity: 0.3;
}

.lgwp-card-badges { position: absolute; top: 0; left: 0; right: 0; display: flex; flex-wrap: wrap; gap: 4px; padding: 7px; pointer-events: none; }
.lgwp-disc        { background: linear-gradient(135deg,#b8860b,#8a6508); color: #111; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.lgwp-badge-feat  { background: rgba(184,134,11,0.9); color: #111; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.lgwp-badge-new   { background: #1677ff; color: #fff; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.lgwp-badge-unavail { background: rgba(0,0,0,0.75); color: #ff4d4f; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }

.lgwp-card-body { padding: 11px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

.lgwp-card-cat {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #8a6508;
}
.lgwp-pname { font-size: 13px; font-weight: 600; color: #3d2b1a; line-height: 1.35; transition: color 0.2s; }
.lgwp-card:not(.lgwp-card-unavail):hover .lgwp-pname { color: #b8860b; }
.lgwp-sku   { font-size: 10px; color: #9a8070; }
.lgwp-mrp   { font-size: 11px; color: #9a8070; text-decoration: line-through; }
.lgwp-price { font-size: 19px; font-weight: 800; color: #b8860b; margin: 2px 0; }
.lgwp-price-unit { font-size: 11px; font-weight: 400; color: #8a7060; }
.lgwp-moq-badge {
  font-size: 10px;
  color: #8a6508;
  background: rgba(184,134,11,0.1);
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-block;
  width: fit-content;
}

/* ── TIER PRICING SLABS ──────────────────────── */
.lgwp-tiers-wrap { margin: 6px 0 8px; }
.lgwp-tiers-label {
  font-size: 10px;
  font-weight: 700;
  color: #8a7060;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}
.lgwp-tiers-table { display: flex; flex-direction: column; gap: 3px; }
.lgwp-tier-row {
  display: flex;
  align-items: center;
  background: rgba(184,134,11,0.06);
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: 6px;
  padding: 5px 9px;
  gap: 0;
}
.lgwp-tier-range {
  font-size: 11px;
  color: #7a6050;
  flex: 1;
  white-space: nowrap;
}
.lgwp-tier-sep {
  font-size: 10px;
  color: #c8b090;
  padding: 0 6px;
}
.lgwp-tier-price {
  font-size: 13px;
  font-weight: 700;
  color: #b8860b;
  white-space: nowrap;
}
.lgwp-tier-price span {
  font-size: 10px;
  font-weight: 400;
  color: #8a7060;
}

/* ── ADD TO CART ─────────────────────────────── */
.lgwp-atc {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #b8860b, #8a6508);
  color: #111;
  border: none;
  border-radius: 7px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: auto;
  transition: opacity 0.2s;
}
.lgwp-atc:hover { opacity: 0.88; color: #111; }
.lgwp-unavail-btn {
  display: block;
  width: 100%;
  background: rgba(107,76,42,0.05);
  color: #9a8070;
  border: 1px solid rgba(107,76,42,0.08);
  border-radius: 7px;
  padding: 9px;
  font-size: 11px;
  text-align: center;
  margin-top: auto;
}

/* ── BULK ORDER ──────────────────────────────── */
.lgwp-bulk-section { margin-bottom: 2rem; }
.lgwp-bulk-section h3 { font-size: 17px; font-weight: 700; color: #b8860b; margin: 0 0 4px; }
.lgwp-bulk-section p  { font-size: 13px; color: #8a7060; margin: 0 0 1rem; }
.lgwp-bulk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lgwp-bulk-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 1rem; min-width: 480px; }
.lgwp-bulk-table th {
  background: #ffffff;
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #7a6050;
  border-bottom: 1px solid rgba(184,134,11,0.12);
  white-space: nowrap;
}
.lgwp-bulk-table td { padding: 8px 12px; border-bottom: 1px solid rgba(107,76,42,0.06); color: #3d2b1a; vertical-align: middle; }
.lgwp-sku-sm  { font-size: 11px; color: #9a8070; }
.lgwp-bulk-cat { font-size: 11px; color: #8a7060; }
.lgwp-qty-inp {
  background: #faf7f2;
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: #3d2b1a;
  font-family: inherit;
  text-align: center;
  width: 80px;
}
.lgwp-bulk-footer {
  position: sticky;
  bottom: 0;
  background: rgba(250,247,242,0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid rgba(184,134,11,0.12);
}
.lgwp-bulk-total { font-size: 16px; color: #3d2b1a; }
.lgwp-bulk-total strong { color: #b8860b; font-size: 22px; }
.lgwp-bulk-msg { font-size: 12px; color: #faac14; }
.lgwp-bulk-footer .lgwp-btn-primary { max-width: 200px; margin-bottom: 0; }

/* ── MY ORDERS ───────────────────────────────── */
.lgwp-account h3 { font-size: 17px; font-weight: 700; color: #b8860b; margin: 0 0 1rem; }
.lgwp-order-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lgwp-order-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 400px; }
.lgwp-order-table th { background: #ffffff; padding: 10px 12px; text-align: left; font-size: 11px; font-weight: 600; color: #7a6050; border-bottom: 1px solid rgba(184,134,11,0.12); }
.lgwp-order-table td { padding: 10px 12px; border-bottom: 1px solid rgba(107,76,42,0.06); color: #3d2b1a; }
.lgwp-status-pill { display: inline-block; border-radius: 20px; padding: 3px 10px; font-size: 11px; font-weight: 600; }
.lgwp-s-completed  { background: rgba(29,158,117,0.12); color: #1d9e75; }
.lgwp-s-processing { background: rgba(22,119,255,0.12); color: #1677ff; }
.lgwp-s-pending,
.lgwp-s-on-hold    { background: rgba(250,172,20,0.12); color: #faac14; }
.lgwp-s-cancelled,
.lgwp-s-refunded   { background: rgba(226,74,74,0.12); color: #e24a4a; }

/* ── QUOTE FORM ──────────────────────────────── */
.lgwp-quote {
  background: #ffffff;
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 12px;
  padding: 1.5rem;
}
.lgwp-quote h3 { font-size: 17px; font-weight: 700; color: #b8860b; margin: 0 0 4px; }
.lgwp-quote p  { font-size: 13px; color: #8a7060; margin: 0 0 1.25rem; }
.lgwp-qform .lgwp-field input,
.lgwp-qform .lgwp-field textarea { background: #faf7f2; }

/* ── MISC ────────────────────────────────────── */
.lgwp-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #8a7060;
  font-size: 14px;
}
.lgwp-empty a { color: #b8860b; }

/* WooCommerce notices — hide on portal */
.woocommerce-notices-wrapper .woocommerce-notice { display: none; }

/* ── RESPONSIVE ADJUSTMENTS ──────────────────── */
@media(max-width:600px) {
  .lgwp { padding: 0 8px 30px; }
  .lgwp-account-strip { flex-wrap: wrap; }
  .lgwp-as-stat { flex: 1 1 45%; }
  .lgwp-bulk-footer { gap: 10px; }
  .lgwp-bulk-footer .lgwp-btn-primary { width: 100%; max-width: 100%; }
  .lgwp-quote { padding: 1rem; }
}

@media(max-width:380px) {
  .lgwp-sh-title { display: none; }
  .lgwp-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── VIEW DETAILS BUTTON (replaces inline ATC on card) ──── */
.lgwp-view-btn {
  display: block;
  width: 100%;
  background: transparent;
  color: #b8860b;
  border: 1.5px solid rgba(184,134,11,0.45);
  border-radius: 7px;
  padding: 9px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  margin-top: auto;
  transition: all 0.2s;
}
.lgwp-view-btn:hover {
  background: rgba(184,134,11,0.12);
  border-color: #b8860b;
}

/* ── BULK DEALS BADGE (on card, replacing tier table) ───── */
.lgwp-badge-tiers {
  background: rgba(22,119,255,0.18);
  color: #5a9fff;
  border: 1px solid rgba(22,119,255,0.25);
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  letter-spacing: 0.3px;
}

/* ── PRODUCT DETAIL MODAL ─────────────────────────────── */

/* ══════════════════════════════════════════════════════════
   PRODUCT DETAIL MODAL — v6 Clean Layout
══════════════════════════════════════════════════════════ */

/* Overlay */
.lgwpm-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(50,30,10,0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 12px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modal box — single column, natural height */
.lgwpm-box {
  background: #ffffff;
  border: 1px solid rgba(184,134,11,0.35);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  position: relative;
  box-shadow: 0 28px 60px rgba(107,76,42,0.2);
  animation: lgwpmIn 0.22s cubic-bezier(.22,1,.36,1);
  /* NO max-height, NO overflow — let content flow naturally */
}
@keyframes lgwpmIn {
  from { opacity:0; transform:translateY(20px) scale(0.96); }
  to   { opacity:1; transform:translateY(0)    scale(1); }
}

/* Close button */
.lgwpm-close {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(107,76,42,0.1);
  border: 1px solid rgba(107,76,42,0.15);
  border-radius: 8px;
  color: #7a6050;
  font-size: 16px;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: all 0.15s;
  line-height: 1;
}
.lgwpm-close:hover { background: rgba(226,74,74,0.18); color: #e24a4a; border-color: rgba(226,74,74,0.3); }

/* Inner: image on top, details below — single column always */
.lgwpm-inner {
  display: flex;
  flex-direction: column;
}

/* Product image — fixed height banner */
.lgwpm-img-wrap {
  width: 100%;
  height: 220px;
  background: rgba(107,76,42,0.06);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(184,134,11,0.12);
  flex-shrink: 0;
}
.lgwpm-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Details section */
.lgwpm-details {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Category label */
.lgwpm-cat {
  font-size: 9px;
  font-weight: 700;
  color: #8a6508;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* Product name */
.lgwpm-name {
  font-size: 18px;
  font-weight: 700;
  color: #3d2b1a;
  line-height: 1.3;
  margin: 0;
  padding-right: 32px; /* avoid overlap with close btn */
}

/* SKU */
.lgwpm-sku { font-size: 11px; color: #9a8070; }

/* Price row */
.lgwpm-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.lgwpm-price {
  font-size: 28px;
  font-weight: 800;
  color: #b8860b;
  line-height: 1;
}
.lgwpm-price span { font-size: 14px; font-weight: 400; color: #8a7060; }
.lgwpm-mrp { font-size: 12px; color: #9a8070; text-decoration: line-through; }

/* Description */
.lgwpm-desc {
  font-size: 13px;
  color: #8a7060;
  line-height: 1.65;
  padding: 10px 13px;
  background: rgba(107,76,42,0.04);
  border-radius: 8px;
  border-left: 2px solid rgba(212,175,55,0.22);
}

/* Tier slabs */
.lgwpm-tiers {
  background: rgba(184,134,11,0.05);
  border: 1px solid rgba(184,134,11,0.18);
  border-radius: 10px;
  padding: 12px 14px;
}
.lgwpm-tiers-title {
  font-size: 10px;
  font-weight: 700;
  color: #8a7060;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.lgwpm-tiers-list { display: flex; flex-direction: column; gap: 6px; }
.lgwpm-tier-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(184,134,11,0.06);
  border: 1px solid rgba(184,134,11,0.12);
  border-radius: 7px;
}
.lgwpm-tier-range { flex: 1; font-size: 13px; color: #7a6050; }
.lgwpm-tier-arrow { font-size: 11px; color: #c8b090; padding: 0 10px; }
.lgwpm-tier-price { font-size: 15px; font-weight: 700; color: #b8860b; white-space: nowrap; }
.lgwpm-tier-price em { font-size: 11px; font-weight: 400; color: #8a7060; font-style: normal; }

/* ── QTY STEPPER + ADD TO CART ─────────────────────────── */
.lgwpm-atc-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.lgwpm-moq-hint {
  font-size: 11px;
  color: #8a6508;
  font-weight: 600;
  min-height: 14px;
}
.lgwpm-qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lgwpm-qty-btn {
  width: 40px;
  height: 44px;
  background: rgba(184,134,11,0.1);
  border: 1.5px solid rgba(184,134,11,0.35);
  border-radius: 10px;
  color: #b8860b;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  font-family: inherit;
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}
.lgwpm-qty-btn:hover { background: rgba(184,134,11,0.2); border-color: #b8860b; }
.lgwpm-qty-btn:active { transform: scale(0.93); }
.lgwpm-qty-inp {
  width: 72px;
  height: 44px;
  background: rgba(107,76,42,0.08);
  border: 1.5px solid rgba(184,134,11,0.35);
  border-radius: 10px;
  color: #3d2b1a;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  font-family: inherit;
  -moz-appearance: textfield;
}
.lgwpm-qty-inp::-webkit-outer-spin-button,
.lgwpm-qty-inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lgwpm-qty-inp:focus { outline: none; border-color: rgba(184,134,11,0.65); }
.lgwpm-atc-btn {
  flex: 1;
  height: 44px;
  background: linear-gradient(135deg, #b8860b 0%, #8a6508 100%);
  color: #111;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.18s, transform 0.1s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.lgwpm-atc-btn:hover:not(:disabled) { opacity: 0.88; transform: translateY(-1px); }
.lgwpm-atc-btn:active:not(:disabled) { transform: translateY(0); opacity: 1; }
.lgwpm-atc-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Error message */
.lgwpm-atc-msg {
  font-size: 12px;
  color: #e24a4a;
  padding: 7px 11px;
  background: rgba(226,74,74,0.1);
  border-radius: 7px;
  border: 1px solid rgba(226,74,74,0.22);
}
/* Success message */
.lgwpm-atc-success {
  font-size: 13px;
  color: #1d9e75;
  padding: 10px 13px;
  background: rgba(29,158,117,0.1);
  border-radius: 7px;
  border: 1px solid rgba(29,158,117,0.22);
  line-height: 1.5;
}
.lgwpm-atc-success a { color: #b8860b; text-decoration: none; font-weight: 600; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media(max-width:480px) {
  .lgwpm-overlay { padding: 0; align-items: flex-end; }
  .lgwpm-box {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lgwpm-img-wrap { height: 180px; border-radius: 20px 20px 0 0; }
  .lgwpm-details { padding: 16px 16px 28px; }
  .lgwpm-name { font-size: 16px; }
  .lgwpm-price { font-size: 24px; }
}

/* ATC section visibility — class-controlled to preserve display:flex */
.lgwpm-atc-hidden { display: none !important; }

/* ── CART BUTTON IN STICKY HEADER ─────────────────────── */
.lgwp-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(184,134,11,0.12);
  color: #b8860b;
  border: 1.5px solid rgba(184,134,11,0.35);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
  position: relative;
}
.lgwp-cart-btn:hover {
  background: rgba(184,134,11,0.2);
  border-color: #b8860b;
  color: #b8860b;
}
.lgwp-cart-has-items {
  background: linear-gradient(135deg, rgba(184,134,11,0.3), rgba(184,134,11,0.15));
  border-color: rgba(184,134,11,0.6);
  box-shadow: 0 0 0 2px rgba(184,134,11,0.12);
}
.lgwp-cart-count {
  background: #b8860b;
  color: #111;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  line-height: 16px;
}
.lgwp-cart-label { font-size: 12px; }

/* ── CART PROGRESS STRIP ──────────────────────────────── */
.lgwp-cart-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(184,134,11,0.08);
  border: 1px solid rgba(184,134,11,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.lgwp-cs-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3d2b1a;
}
.lgwp-cs-icon { font-size: 16px; }
.lgwp-cs-info strong { color: #b8860b; }
.lgwp-cs-need { color: #8a6508; font-size: 12px; }
.lgwp-cs-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lgwp-cs-checkout {
  background: linear-gradient(135deg, #b8860b, #8a6508);
  color: #111;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.lgwp-cs-checkout:hover { opacity: 0.88; color: #111; }
.lgwp-cs-view {
  color: #b8860b;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(184,134,11,0.35);
  border-radius: 7px;
  padding: 5px 12px;
  white-space: nowrap;
  transition: background 0.2s;
}
.lgwp-cs-view:hover { background: rgba(184,134,11,0.12); color: #b8860b; }
.lgwp-cs-bar {
  width: 80px;
  height: 4px;
  background: rgba(107,76,42,0.1);
  border-radius: 2px;
  overflow: hidden;
}
.lgwp-cs-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #8a6508, #b8860b);
  border-radius: 2px;
  transition: width 0.4s ease;
  min-width: 4px;
}
@media(max-width:480px) {
  .lgwp-cart-strip { padding: 8px 10px; }
  .lgwp-cs-bar { display: none; }
}

/* ══════════════════════════════════════════════════════════
   WARM CREAM THEME — Targeted Overrides
══════════════════════════════════════════════════════════ */

/* Base page */
.lgwp { background: #faf7f2 !important; color: #3d2b1a !important; }

/* Sticky header */
.lgwp-sticky-header {
  background: rgba(250,247,242,0.97) !important;
  border-bottom: 1px solid rgba(107,76,42,0.15) !important;
  box-shadow: 0 1px 8px rgba(107,76,42,0.08);
}
.lgwp-sh-title { color: #6b4c2a !important; }
.lgwp-sh-logo  { background: #b8860b !important; color: #fff !important; }
.lgwp-min-pill {
  background: rgba(184,134,11,0.1) !important;
  color: #7a5c0a !important;
  border-color: rgba(184,134,11,0.3) !important;
}
.lgwp-btn-secondary {
  color: #6b4c2a !important;
  border-color: rgba(107,76,42,0.3) !important;
}
.lgwp-btn-secondary:hover { background: rgba(107,76,42,0.07) !important; }

/* Welcome strip */
.lgwp-welcome-strip { border-bottom-color: rgba(107,76,42,0.12) !important; }
.lgwp-ws-greeting { color: #3d2b1a !important; }
.lgwp-ws-ref { color: #8a7060 !important; }

/* Stats strip */
.lgwp-account-strip {
  background: #fff !important;
  border: 1px solid rgba(107,76,42,0.13) !important;
  box-shadow: 0 2px 8px rgba(107,76,42,0.06);
}
.lgwp-as-num { color: #b8860b !important; }
.lgwp-as-lbl { color: #8a7060 !important; }
.lgwp-as-stat { border-right-color: rgba(107,76,42,0.1) !important; }

/* Nav tabs */
.lgwp-nav { border-bottom-color: rgba(107,76,42,0.15) !important; }
.lgwp-nav-item { color: #8a7060 !important; }
.lgwp-nav-item.active { color: #b8860b !important; border-bottom-color: #b8860b !important; }
.lgwp-nav-item:hover  { color: #6b4c2a !important; }

/* Category chips */
.lgwp-cat-chip {
  border-color: rgba(107,76,42,0.2) !important;
  color: #6b4c2a !important;
  background: rgba(107,76,42,0.05) !important;
}
.lgwp-cat-chip.active, .lgwp-cat-chip:hover {
  color: #fff !important;
  background: #b8860b !important;
  border-color: #b8860b !important;
}

/* Search + Filter */
.lgwp-field input, .lgwp-field textarea, .lgwp-select,
.lgwp-search-inp, .lgwp-qty-inp {
  background: #fff !important;
  border-color: rgba(107,76,42,0.2) !important;
  color: #3d2b1a !important;
}
.lgwp-field label { color: #6b4c2a !important; }
.lgwp-search-wrap { background: #fff !important; border: 1px solid rgba(107,76,42,0.2) !important; }
.lgwp-search-icon { color: #8a7060 !important; }
.lgwp-btn-filter {
  background: #6b4c2a !important;
  color: #fff !important;
  border: none !important;
}
.lgwp-btn-filter:hover { background: #b8860b !important; }
.lgwp-btn-clear { background: transparent !important; color: #8a7060 !important; }

/* Product cards */
.lgwp-card {
  background: #ffffff !important;
  border: 1px solid rgba(107,76,42,0.12) !important;
  box-shadow: 0 2px 8px rgba(107,76,42,0.07) !important;
}
.lgwp-card:hover {
  border-color: rgba(184,134,11,0.4) !important;
  box-shadow: 0 6px 20px rgba(107,76,42,0.12) !important;
}
.lgwp-card-img { background: #f5f0e8 !important; }
.lgwp-img-ph { background: #f5f0e8 !important; }
.lgwp-card-cat { color: #8a6508 !important; }
.lgwp-pname { color: #3d2b1a !important; }
.lgwp-sku   { color: #aaa090 !important; }
.lgwp-mrp   { color: #aaa090 !important; }
.lgwp-price { color: #b8860b !important; }
.lgwp-price-unit { color: #8a7060 !important; }
.lgwp-moq-badge {
  color: #7a5c0a !important;
  background: rgba(184,134,11,0.08) !important;
  border-color: rgba(184,134,11,0.2) !important;
}
.lgwp-view-btn {
  color: #6b4c2a !important;
  border-color: rgba(107,76,42,0.3) !important;
}
.lgwp-view-btn:hover {
  background: rgba(107,76,42,0.07) !important;
  border-color: #6b4c2a !important;
}
.lgwp-atc {
  background: linear-gradient(135deg, #c9950a, #a07608) !important;
  color: #fff !important;
}

/* Filters bar */
.lgwp-filters { background: #fff !important; border: 1px solid rgba(107,76,42,0.12) !important; }
.lgwp-active-filter { color: #6b4c2a !important; }
.lgwp-remove-filter { color: #b8860b !important; }

/* Cart strip */
.lgwp-cart-strip {
  background: rgba(184,134,11,0.06) !important;
  border-color: rgba(184,134,11,0.25) !important;
}
.lgwp-cs-info { color: #3d2b1a !important; }
.lgwp-cs-need { color: #8a6508 !important; }

/* Cart button */
.lgwp-cart-btn {
  background: rgba(184,134,11,0.08) !important;
  color: #7a5c0a !important;
  border-color: rgba(184,134,11,0.3) !important;
}
.lgwp-cart-has-items {
  background: rgba(184,134,11,0.15) !important;
  border-color: #b8860b !important;
  color: #6b4c2a !important;
}
.lgwp-cart-count { background: #b8860b !important; color: #fff !important; }

/* Bulk order table */
.lgwp-bulk-table th { background: #f5f0e8 !important; color: #6b4c2a !important; border-bottom-color: rgba(107,76,42,0.15) !important; }
.lgwp-bulk-table td { color: #3d2b1a !important; border-bottom-color: rgba(107,76,42,0.08) !important; }
.lgwp-bulk-cat { color: #8a7060 !important; }
.lgwp-qty-inp { background: #fff !important; border-color: rgba(107,76,42,0.2) !important; color: #3d2b1a !important; }
.lgwp-bulk-footer { background: rgba(250,247,242,0.97) !important; border-top-color: rgba(107,76,42,0.15) !important; }
.lgwp-bulk-total { color: #3d2b1a !important; }
.lgwp-bulk-msg { color: #8a6508 !important; }

/* Orders table */
.lgwp-order-table th { background: #f5f0e8 !important; color: #6b4c2a !important; }
.lgwp-order-table td { color: #3d2b1a !important; border-bottom-color: rgba(107,76,42,0.08) !important; }

/* Quote form */
.lgwp-quote {
  background: #fff !important;
  border-color: rgba(107,76,42,0.15) !important;
}
.lgwp-quote h3 { color: #6b4c2a !important; }
.lgwp-quote p  { color: #8a7060 !important; }

/* Empty state */
.lgwp-empty { color: #8a7060 !important; }
.lgwp-empty a { color: #b8860b !important; }

/* Login/register gate */
.lgwp-gate-box {
  background: #fff !important;
  border-color: rgba(107,76,42,0.15) !important;
  box-shadow: 0 8px 32px rgba(107,76,42,0.1) !important;
}
.lgwp-brand { color: #8a6508 !important; }
.lgwp-gate-box h2 { color: #6b4c2a !important; }
.lgwp-gate-box p  { color: #8a7060 !important; }
.lgwp-links { color: #8a7060 !important; }
.lgwp-links a { color: #b8860b !important; }

/* Modal */
.lgwpm-overlay { background: rgba(60,35,10,0.72) !important; }
.lgwpm-box {
  background: #fff !important;
  border-color: rgba(107,76,42,0.2) !important;
  box-shadow: 0 28px 60px rgba(107,76,42,0.2) !important;
}
.lgwpm-close {
  background: rgba(107,76,42,0.07) !important;
  border-color: rgba(107,76,42,0.15) !important;
  color: #8a7060 !important;
}
.lgwpm-close:hover { background: rgba(220,53,53,0.1) !important; color: #cc3333 !important; }
.lgwpm-img-wrap {
  background: #f5f0e8 !important;
  border-bottom-color: rgba(107,76,42,0.12) !important;
}
.lgwpm-cat   { color: #8a6508 !important; }
.lgwpm-name  { color: #3d2b1a !important; }
.lgwpm-sku   { color: #aaa090 !important; }
.lgwpm-price { color: #b8860b !important; }
.lgwpm-price span { color: #8a7060 !important; }
.lgwpm-mrp   { color: #aaa090 !important; }
.lgwpm-desc  {
  color: #6b4c2a !important;
  background: rgba(107,76,42,0.04) !important;
  border-left-color: rgba(184,134,11,0.3) !important;
}
.lgwpm-tiers {
  background: rgba(184,134,11,0.05) !important;
  border-color: rgba(184,134,11,0.2) !important;
}
.lgwpm-tiers-title { color: #8a7060 !important; }
.lgwpm-tier-row {
  background: rgba(184,134,11,0.05) !important;
  border-color: rgba(184,134,11,0.15) !important;
}
.lgwpm-tier-range { color: #6b4c2a !important; }
.lgwpm-tier-arrow { color: #c8b090 !important; }
.lgwpm-tier-price { color: #b8860b !important; }
.lgwpm-tier-price em { color: #8a7060 !important; }
.lgwpm-moq-hint { color: #8a6508 !important; }
.lgwpm-qty-btn {
  background: rgba(184,134,11,0.08) !important;
  border-color: rgba(184,134,11,0.3) !important;
  color: #b8860b !important;
}
.lgwpm-qty-btn:hover { background: rgba(184,134,11,0.18) !important; border-color: #b8860b !important; }
.lgwpm-qty-inp {
  background: #faf7f2 !important;
  border-color: rgba(184,134,11,0.3) !important;
  color: #3d2b1a !important;
}
.lgwpm-atc-btn { color: #fff !important; }
.lgwpm-atc-success { color: #1d7a5c !important; background: rgba(29,122,92,0.08) !important; border-color: rgba(29,122,92,0.2) !important; }
.lgwpm-atc-success a { color: #b8860b !important; }
