/* ==========================================================================
   NETSORNA PACKS: STOREFRONT CORE STYLESHEET (v1/style.css)
   Optimized for Mobile (320px+), Tablet, and Desktop Viewports
   WCAG / WAG Compliant • CSS Vector Filters • Zero Emojis
   ========================================================================== */

/* 1. Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Boldonse&family=Inter:wght@400;500;600;700;800;900&family=OpenDyslexic:wght@400;700&display=swap');

@font-face {
  font-family: 'UT Boldonse';
  src: url('/assets/fonts/UTBoldonse.woff2') format('woff2'),
       url('/assets/fonts/UTBoldonse.ttf') format('truetype');
  font-weight: 700 900;
  font-display: swap;
}

/* 2. Global CSS Variables & Design System Tokens */
:root {
  --font-display: 'Boldonse', 'UT Boldonse', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-dyslexic: 'OpenDyslexic', 'Inter', sans-serif;

  --bg: #FBFBFA;
  --card-bg: #FFFFFF;
  --text: #191C1F;
  --text-muted: #6B7280;
  --border-light: #EBECEF;
  --border-focus: #166534;

  --primary: #166534;
  --primary-hover: #14532D;
  --secondary: #F3F4F6;
  --secondary-hover: #E5E7EB;

  --accent-green: #22C55E;
  --accent-yellow: #F59E0B;
  --accent-coral: #EF4444;
  --badge-green-bg: #DCFCE7;
  --badge-green-text: #166534;
  --badge-yellow-bg: #FEF3C7;
  --badge-yellow-text: #92400E;
  --badge-coral-bg: #FEE2E2;
  --badge-coral-text: #991B1B;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 9999px;

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-drawer: -10px 0 40px rgba(0, 0, 0, 0.12);
  --shadow-dock: 0 12px 35px rgba(0, 0, 0, 0.1);

  --font-scale: 1;
}

/* 3. Global Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  padding-bottom: max(100px, calc(80px + env(safe-area-inset-bottom)));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
  position: relative;
}

/* 4. Display Typography */
.brand-name,
.hero-title,
.section-heading,
.product-title-clean,
.detail-title,
.sub-heading,
.price-current,
.price-main,
.stat-number,
.btn,
.cart-btn-pill {
  font-family: var(--font-display);
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.page-heading {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* 5. SVG Icons & Vector Filter Recolor Engine */
.ui-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
}

.icon-light {
  filter: brightness(0) invert(1);
}

.icon-primary {
  filter: invert(28%) sepia(85%) saturate(460%) hue-rotate(95deg) brightness(92%) contrast(92%);
}

.icon-muted {
  opacity: 0.65;
}

.icon-yellow {
  filter: invert(65%) sepia(80%) saturate(750%) hue-rotate(5deg) brightness(102%) contrast(98%);
}

.icon-coral {
  filter: invert(41%) sepia(65%) saturate(2200%) hue-rotate(335deg) brightness(98%) contrast(95%);
}

/* 6. Notification Strips (Store Paused & Announcement) */
.store-pause-strip {
  background: #FEF3C7;
  border-bottom: 2px solid #F59E0B;
  color: #92400E;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  position: relative;
  z-index: 100;
}

.pause-inner {
  max-width: 1140px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.incentive-strip {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 8px 16px;
  display: flex;
  justify-content: center;
}

.incentive-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
  font-weight: 600;
  flex-wrap: wrap;
  justify-content: center;
}

.country-tag {
  font-family: monospace;
  font-weight: 800;
  background: #FFFFFF;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #BBF7D0;
  font-size: 0.72rem;
}

.divider-dot {
  opacity: 0.6;
}

/* 7. Sticky Header Navigation */
header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 80;
}

.nav-inner {
  max-width: 1140px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  min-height: 60px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}

.brand-logo-img {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  min-height: 44px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cart-btn-pill:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.cart-label {
  font-weight: 800;
}

.cart-badge-count {
  background: #FFFFFF;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  min-width: 22px;
  text-align: center;
}

/* 8. Main Content Container */
.main-wrap {
  max-width: 1140px;
  margin: 16px auto;
  padding: 0 16px;
  width: 100%;
}

/* 9. Search Bar & Filters */
.search-section {
  margin-bottom: 24px;
}

.search-bar-wrap {
  position: relative;
  max-width: 640px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px 8px 4px 16px;
  box-shadow: var(--shadow-subtle);
  min-height: 48px;
}

.search-icon {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 0.92rem;
  background: transparent;
  padding: 8px 0;
  color: var(--text);
}

.search-clear {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0 8px;
  line-height: 1;
}

.category-pills-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  color: #4B5563;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  white-space: nowrap;
  min-height: 42px;
  transition: all 0.15s ease;
}

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

/* 10. Pinned Box Formats */
.pinned-frames-section {
  margin-bottom: 30px;
}

.section-title-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.section-heading {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pinned-frames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.pinned-frame-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pinned-frame-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.frame-tag-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 2;
  text-transform: uppercase;
}

.frame-slideshow {
  width: 100%;
  height: 160px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: #F3F4F6;
}

.frame-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.frame-slide-img.active {
  opacity: 1;
}

.frame-info {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.frame-info h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--font-display);
}

.btn-text-link {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* 11. Responsive Product Grid (2-Column Mobile, Scaled Desktop) */
.catalog-section {
  margin-bottom: 36px;
}

.packs-grid.packs-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  width: 100%;
}

.product-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.card-img-wrap {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-coral);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.card-body {
  margin-top: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-category-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-title-clean {
  font-size: 0.98rem;
  line-height: 1.25;
  margin-top: 4px;
  cursor: pointer;
  color: var(--text);
  text-transform: uppercase;
}

.price-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.price-block {
  display: flex;
  flex-direction: column;
}

.price-original {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.15rem;
  color: var(--text);
}

.price-current.sale {
  color: var(--accent-coral);
}

.btn-circle-add {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}

.btn-circle-add:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

.btn-circle-add.notify {
  background: var(--accent-yellow);
  color: #191C1F;
}

/* 12. Slide-Out Basket Drawer */
.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  z-index: 210;
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drawer-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-display);
  text-transform: uppercase;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.free-shipping-meter {
  padding: 10px 18px;
  background: #F8F9FA;
  border-bottom: 1px solid var(--border-light);
}

.meter-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #374151;
  display: flex;
  justify-content: space-between;
}

.progress-bar-track {
  height: 6px;
  width: 100%;
  background: #E5E7EB;
  border-radius: var(--radius-pill);
  margin-top: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: var(--radius-pill);
  width: 0%;
  transition: width 0.3s ease;
}

.drawer-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}

.drawer-item-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
  align-items: center;
}

.drawer-item-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  background: #F3F4F6;
  flex-shrink: 0;
}

.drawer-item-details {
  flex: 1;
  min-width: 0;
}

.drawer-item-title {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-item-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.drawer-footer {
  padding: 16px 18px;
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 3px 0;
}

.breakdown-row.total {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 900;
  margin-top: 8px;
  border-top: 1px solid var(--border-light);
  padding-top: 8px;
}

/* 13. Product Detail Stage */
.product-detail-layout {
  max-width: 960px;
  margin: auto;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 28px);
  box-shadow: var(--shadow-subtle);
}

.hero-image-stage {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-pill {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  border: 2px solid transparent;
  object-fit: cover;
  cursor: pointer;
  flex-shrink: 0;
}

.thumb-pill.active {
  border-color: var(--primary);
}

.detail-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  margin: 6px 0;
}

.stars-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin-bottom: 12px;
  cursor: pointer;
}

.price-stock-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.price-main {
  font-size: 1.65rem;
}

.stock-tag {
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-tag.in-stock { color: #16A34A; }
.stock-tag.out-stock { color: var(--accent-coral); }

.detail-description {
  color: #4B5563;
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.55;
}

.specs-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.spec-pill {
  background: #F3F4F6;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: #4B5563;
}

.purchase-actions-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.stepper-wrap {
  display: inline-flex;
  align-items: center;
  background: #F3F4F6;
  border-radius: var(--radius-pill);
  padding: 3px;
  width: fit-content;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: none;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-val {
  min-width: 38px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.cta-row-wide {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.accepted-cards-box {
  background: #F8F9FA;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
}

.card-icons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.payment-badge {
  height: 22px;
  width: auto;
  border-radius: 3px;
}

.payment-chip {
  font-size: 0.7rem;
  font-weight: 700;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: var(--radius-pill);
  padding: 2px 8px;
}

/* 14. Responsive 14-Day Calendar Strip */
.calendar-wrapper {
  width: 100%;
  overflow: hidden;
}

.calendar-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 2px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.cal-pill {
  flex: 0 0 68px;
  text-align: center;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px 4px;
  cursor: pointer;
  background: #FFFFFF;
  scroll-snap-align: start;
  transition: all 0.15s ease;
}

.cal-pill.selected {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.cal-d { font-size: 0.68rem; font-weight: 700; display: block; text-transform: uppercase; }
.cal-n { font-size: 1.15rem; font-weight: 900; display: block; font-family: var(--font-display); }
.cal-m { font-size: 0.65rem; display: block; text-transform: uppercase; }

/* 15. Buttons, Inputs & Checkouts */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  min-height: 48px;
  transition: background 0.15s ease, transform 0.1s ease;
  font-weight: 800;
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn-secondary {
  background: var(--secondary);
  color: var(--text);
}

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  min-height: 38px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 0.95rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-subtle);
}

.input-clean {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  background: #FFFFFF;
  min-height: 46px;
  transition: border 0.15s ease;
}

.input-clean:focus {
  border-color: var(--border-focus);
}

.input-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #4B5563;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.page-container-narrow {
  max-width: 680px;
  margin: auto;
  width: 100%;
}

.checkout-layout-clean {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  max-width: 1040px;
  margin: auto;
  width: 100%;
}

.input-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rsa-phone-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #FFFFFF;
}

.rsa-flag {
  padding: 0 12px;
  font-weight: 800;
  font-size: 0.85rem;
  background: #F9FAFB;
  border-right: 1px solid var(--border-light);
  font-family: monospace;
}

.phone-sub {
  border: none !important;
  margin: 0;
}

.radio-card {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s ease;
}

.radio-card.active {
  background: #F0FDF4;
  border-color: #86EFAC;
}

.radio-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  margin-top: 2px;
  flex-shrink: 0;
}

.radio-card.active .radio-circle {
  border-color: var(--primary);
  background: var(--primary);
}

/* 16. Tracking Stepper */
.stepper-horizontal {
  display: flex;
  align-items: center;
  margin: 20px 0 10px;
}

.step-point {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E5E7EB;
  color: #4B5563;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  z-index: 2;
  font-family: var(--font-display);
}

.step-point.active {
  background: var(--primary);
  color: #FFFFFF;
}

.step-bar {
  flex: 1;
  height: 3px;
  background: #E5E7EB;
  margin: 0 4px;
}

.step-bar.active {
  background: var(--primary);
}

.stepper-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.track-details-table {
  margin-top: 18px;
  border-top: 1px dashed var(--border-light);
  padding-top: 12px;
}

.detail-line {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 0.85rem;
}

/* 17. Mobile Floating Dock */
.bottom-dock {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-dock);
  display: flex;
  padding: 5px 10px;
  gap: 6px;
  z-index: 95;
  width: calc(100% - 24px);
  max-width: 380px;
  justify-content: space-around;
}

.dock-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #4B5563;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  min-height: 44px;
}

.dock-tab.wa {
  background: var(--badge-green-bg);
  color: var(--badge-green-text);
}

/* 18. Modals & Notifications */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 220;
  padding: 16px;
}

.modal-box {
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-header h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.1rem;
}

.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.alert-warning { background: #FEF3C7; color: #92400E; }
.alert-info { background: #EFF6FF; color: #1E40AF; }
.alert-error { background: #FEE2E2; color: #991B1B; }

.star-picker {
  display: flex;
  gap: 6px;
  font-size: 1.6rem;
  margin: 8px 0 12px;
}

.star-pick {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #D1D5DB;
  line-height: 1;
}

.star-pick.active {
  color: var(--accent-yellow);
}

/* 19. WAG / WCAG Accessibility Toolbar Widget */
.wag-widget-wrapper {
  position: fixed;
  bottom: 84px;
  left: 16px;
  z-index: 98;
}

.wag-floating-btn {
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid #334155;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  min-height: 42px;
}

.wag-btn-text {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.wag-menu-card {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 250px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 12px;
}

.wag-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.close-btn-sm {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
}

.wag-actions-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wag-action-btn {
  text-align: left;
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wag-icon-indicator {
  color: #CBD5E1;
  font-size: 1.2rem;
  line-height: 1;
}

.wag-icon-indicator.active {
  color: #16A34A;
}

/* WCAG Active Modes */
body.wag-contrast {
  --bg: #000000 !important;
  --card-bg: #121212 !important;
  --text: #FFFFFF !important;
  --text-muted: #E2E8F0 !important;
  --border-light: #475569 !important;
}

body.wag-text-zoom {
  --font-scale: 1.18 !important;
}

body.wag-dyslexic * {
  font-family: var(--font-dyslexic) !important;
}

/* 20. Footer */
footer {
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
  padding: 36px 16px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1140px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* 21. Cross-Device Responsive Layout Queries */
@media (max-width: 860px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .checkout-layout-clean {
    grid-template-columns: 1fr;
  }

  .cta-row-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .packs-grid.packs-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card {
    padding: 8px;
  }

  .card-img-wrap {
    height: 140px;
  }

  .product-title-clean {
    font-size: 0.88rem;
  }

  .price-current {
    font-size: 1.05rem;
  }

  .input-split {
    grid-template-columns: 1fr;
  }

  .cart-drawer {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .packs-grid.packs-two-col {
    grid-template-columns: 1fr;
  }
}ft: 18px;
  width: 300px;
  max-width: calc(100vw - 36px);
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-drawer);
  z-index: 105;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

.wag-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.wag-panel-header h4 {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.wag-close-btn {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
}

.wag-control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 600;
}

.wag-btn-group {
  display: flex;
  gap: 4px;
}

/* 21. Global Footer */
footer {
  border-top: 1px solid var(--border-light);
  background: var(--card-bg);
  padding: 40px 16px;
  margin-top: 50px;
  width: 100%;
}

.footer-inner {
  max-width: 1140px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* 22. Cross-Device Responsive Breakpoints */
@media (max-width: 860px) {
  .pinned-frames-grid {
    grid-template-columns: 1fr;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-layout-clean {
    grid-template-columns: 1fr;
  }
  
  .input-split {
    grid-template-columns: 1fr;
  }

  .cta-row-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .packs-grid.packs-two-col {
    gap: 10px;
  }

  .product-card {
    padding: 10px;
  }

  .card-img-wrap {
    height: 150px;
  }

  .product-title-clean {
    font-size: 0.88rem;
  }

  .price-current {
    font-size: 1.05rem;
  }

  .btn-circle-add {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .wag-floating-btn {
    left: 12px;
    bottom: 80px;
  }

  .wag-menu-panel {
    left: 12px;
    bottom: 136px;
  }
}