/* ==========================================================================
   WholesaleRates.store — Tech & Gadgets Wholesale Marketplace Design System
   Palette: Midnight Carbon (#0B1220) + Electric Cobalt (#2563EB) + Emerald (#10B981)
   ========================================================================== */

:root {
  --bg-page: #ffffff;
  --bg-muted: #f4f6fa;
  --bg-soft: #f8fafc;
  --tech-navy: #0b1220;
  --tech-dark: #060a13;
  --tech-slate: #1e293b;
  --tech-tint: #eef2ff;
  --cobalt-primary: #2563eb;
  --cobalt-hover: #1d4ed8;
  --green-primary: #10b981;
  --green-hover: #059669;
  --green-soft: #ecfdf5;
  --cyan-accent: #06b6d4;
  --badge-sale: #e11d48;
  --ink-primary: #0f172a;
  --ink-body: #334155;
  --ink-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 2px 8px rgba(11, 18, 32, 0.05);
  --shadow-md: 0 10px 26px rgba(11, 18, 32, 0.09);
  --shadow-lg: 0 20px 44px rgba(11, 18, 32, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --container: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--ink-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }

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

/* --------------------------------------------------------------------------
   1. ANNOUNCEMENT BAR & STICKY CARBON TECH HEADER
   -------------------------------------------------------------------------- */
.announce-bar {
  background: var(--tech-dark);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--tech-navy);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(6, 10, 19, 0.28);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 72px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.brand-name span { color: #34d399; }

.brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 3px;
}

.deliver-pill {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.15s;
}
.deliver-pill:hover { background: rgba(255, 255, 255, 0.14); }
@media (min-width: 1024px) { .deliver-pill { display: inline-flex; } }

/* Pill Search Bar */
.search-wrap {
  position: relative;
  flex: 1;
  max-width: 560px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 9999px;
  padding: 4px 5px 4px 18px;
  height: 42px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink-primary);
  min-width: 0;
}
.search-box input::placeholder { color: #94a3b8; }

.search-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 0;
  background: var(--cobalt-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.search-btn:hover { background: var(--cobalt-hover); }

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  color: var(--ink-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}
.search-dropdown.open { display: block; }

.search-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.search-hit:hover { background: var(--bg-soft); }
.search-hit img {
  width: 44px; height: 44px; object-fit: contain;
  border-radius: 6px; background: #fff; border: 1px solid var(--border);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.icon-action:hover { background: rgba(255, 255, 255, 0.1); }

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

/* Secondary Slate Category Sub-Nav */
.subnav-bar {
  background: var(--tech-slate);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }

.all-cats-wrap { position: relative; flex-shrink: 0; }

.all-cats-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.22);
  color: #ffffff;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  height: 42px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.all-cats-btn:hover { background: rgba(37, 99, 235, 0.36); }

.subnav-link {
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  color: #e2e8f0;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.subnav-link:hover, .subnav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.cats-dropdown {
  position: fixed;
  top: 147px;
  left: max(20px, calc((100vw - var(--container)) / 2 + 20px));
  width: 280px;
  background: #ffffff;
  color: var(--ink-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 55;
  display: none;
  padding: 8px 0;
}
.cats-dropdown.open { display: block; }

.cats-drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-body);
  cursor: pointer;
}
.cats-drop-item:hover { background: var(--tech-tint); color: var(--cobalt-primary); }

/* Mobile Search Row */
.mobile-search-bar {
  display: block;
  padding: 0 16px 12px;
  background: var(--tech-navy);
}
@media (min-width: 768px) { .mobile-search-bar { display: none; } }
.desktop-only-search { display: none; }
@media (min-width: 768px) { .desktop-only-search { display: block; } }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline; } }

/* --------------------------------------------------------------------------
   2. TRUST STRIP
   -------------------------------------------------------------------------- */
.trust-strip {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px 0;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--tech-tint);
  color: var(--cobalt-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.2;
}

.trust-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   3. BENTO HERO MOSAIC (HIGH-CONTRAST HARDWARE SHOWCASE)
   -------------------------------------------------------------------------- */
.hero-section { padding: 20px 0 10px; }

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1fr 1.65fr 1fr;
    align-items: stretch;
  }
}

.bento-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bento-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 158px;
  border: 1px solid var(--border);
}
.bento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.bento-center-top {
  min-height: 210px;
  padding: 26px 28px;
  background: linear-gradient(125deg, #0b1220 0%, #172554 60%, #0f172a 100%);
  color: #ffffff;
  border-color: transparent;
}

.bento-sub-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
}

.bento-tone-mint { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.bento-tone-plum { background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); }
.bento-tone-ice  { background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%); }
.bento-tone-sand { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); }

.bento-copy { position: relative; z-index: 2; max-width: 58%; }
.bento-center-top .bento-copy { max-width: 58%; }

.bento-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--cobalt-hover);
}
.bento-center-top .bento-eyebrow {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

.bento-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.2;
}
.bento-center-top .bento-title { font-size: 26px; color: #ffffff; }

.bento-desc {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.bento-center-top .bento-desc { color: #cbd5e1; font-size: 13.5px; }

.bento-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--cobalt-primary);
  color: var(--cobalt-primary);
  background: #ffffff;
}
.bento-center-top .bento-cta {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #ffffff;
}

.bento-img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease;
}
.bento-center-top .bento-img { width: 152px; height: 152px; padding: 10px; }
.bento-card:hover .bento-img { transform: scale(1.04); }

/* --------------------------------------------------------------------------
   4. SECTION HEADERS, CATEGORY TILES, BRANDS & PRODUCT CARDS
   -------------------------------------------------------------------------- */
.section-block { padding: 26px 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink-primary);
}

.view-more-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--cobalt-primary);
  padding-bottom: 1px;
  cursor: pointer;
}
.view-more-link:hover { color: var(--green-hover); border-color: var(--green-hover); }

/* Category Carousel Strip */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) { .cat-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-strip { grid-template-columns: repeat(6, 1fr); } }

.cat-tile {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.cat-tile:hover {
  border-color: var(--cobalt-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cat-thumb {
  width: 82px;
  height: 82px;
  margin: 0 auto 10px;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }

.cat-name { font-size: 13.5px; font-weight: 600; color: var(--ink-primary); }
.cat-count { font-size: 11.5px; color: var(--ink-muted); margin-top: 2px; }

/* Brands Strip */
.brand-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.brand-row::-webkit-scrollbar { display: none; }

.brand-chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  cursor: pointer;
  transition: all 0.15s;
}
.brand-chip:hover {
  border-color: var(--cobalt-primary);
  color: var(--cobalt-primary);
  background: var(--tech-tint);
}

/* Product Grid & Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }

.product-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) { .product-grid-4 { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .product-grid-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.p-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.p-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.p-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.p-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.p-card:hover .p-img-wrap img { transform: scale(1.04); }

.discount-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--badge-sale);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  line-height: 1.15;
}

.wish-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wish-btn.active { color: var(--badge-sale); border-color: #fecdd3; background: #fff1f2; }

.p-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.p-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
  cursor: pointer;
}
.p-title:hover { color: var(--cobalt-primary); }

.p-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.p-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--green-hover);
  letter-spacing: -0.01em;
}

.p-compare {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

.p-subprice {
  font-size: 11px;
  color: var(--ink-muted);
}

.p-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-muted);
  padding-top: 2px;
}

.p-brand {
  color: var(--cobalt-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p-foot { padding: 0 12px 12px; }

.btn-bag {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--green-primary);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-bag:hover { background: var(--green-hover); }

.btn-outline {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--cobalt-primary); color: var(--cobalt-primary); }

/* Ticker Strip */
.promo-ticker {
  background: var(--tech-navy);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: center;
}
.promo-ticker span { color: #34d399; margin: 0 10px; }

/* Reviews & FAQ */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  background: #ffffff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-a {
  padding: 0 18px 14px;
  font-size: 13px;
  color: var(--ink-muted);
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* --------------------------------------------------------------------------
   5. COLLECTION PAGE
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.breadcrumb a { color: var(--cobalt-primary); font-weight: 500; cursor: pointer; }
.breadcrumb span.curr { color: var(--ink-primary); font-weight: 600; }

.collection-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 40px;
}
@media (min-width: 960px) {
  .collection-layout { grid-template-columns: 250px 1fr; }
}

.filter-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #ffffff;
  align-self: start;
}

.filter-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.filter-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 10px;
}

.filter-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-body);
}
.filter-opt.active { color: var(--cobalt-primary); font-weight: 600; }

.collection-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.select-clean {
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  background: #ffffff;
  color: var(--ink-primary);
}

/* --------------------------------------------------------------------------
   6. PRODUCT DETAIL PAGE
   -------------------------------------------------------------------------- */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 36px;
}
@media (min-width: 900px) {
  .pdp-grid { grid-template-columns: 1.05fr 0.95fr; }
}

.pdp-gallery {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .pdp-gallery { grid-template-columns: 1fr; }
  .pdp-thumbs { order: 2; flex-direction: row !important; overflow-x: auto; }
}

.pdp-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdp-thumb {
  width: 70px;
  height: 70px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-thumb.active { border: 2px solid var(--cobalt-primary); }
.pdp-thumb img { max-height: 100%; max-width: 100%; object-fit: contain; }

.pdp-main-img {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  aspect-ratio: 1 / 1;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-main-img img { max-height: 100%; max-width: 100%; object-fit: contain; }

.tier-box {
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s, background 0.15s;
}
.tier-box.active {
  border-color: var(--green-primary);
  background: var(--green-soft);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
  height: 44px;
}
.qty-stepper button {
  width: 38px; height: 100%; border: 0; background: var(--bg-muted);
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.qty-stepper span {
  width: 42px; text-align: center; font-weight: 600; font-size: 14px;
}

.protection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}
@media (min-width: 540px) { .protection-grid { grid-template-columns: repeat(4, 1fr); } }

.pdp-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.pdp-tab-btn {
  padding: 10px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
}
.pdp-tab-btn.active {
  color: var(--ink-primary);
  border-bottom-color: var(--cobalt-primary);
}

/* --------------------------------------------------------------------------
   7. SLIDE-OUT BAG DRAWER, CART & CHECKOUT
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.56);
  backdrop-filter: blur(2px);
  z-index: 80;
  display: none;
  justify-content: flex-end;
}
.drawer-backdrop.open { display: flex; }

.drawer-panel {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.22);
}

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

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 48px;
}
@media (min-width: 900px) {
  .checkout-grid { grid-template-columns: 1.25fr 0.75fr; }
}

.input-field {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--ink-primary);
  background: #ffffff;
}
.input-field:focus { outline: none; border-color: var(--cobalt-primary); }

/* --------------------------------------------------------------------------
   8. FOOTER (MIDNIGHT CARBON #0B1220)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--tech-navy);
  color: #ffffff;
  margin-top: 32px;
  padding-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}
.footer-links a:hover { color: #34d399; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  font-size: 12px;
  color: #94a3b8;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tech-navy);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.show { opacity: 1; }
