/* ==========================================================================
   BTS SHOP — PROFESSIONAL STOREFRONT PRESENTATION LAYER
   Isolated presentation stylesheet for customer-facing e-commerce storefront.
   Theme: Signature BTS Purple (#7952de) & Contemporary International E-Commerce
   Breakpoints: 320px | 375px | 768px | 1024px | 1440px
   ========================================================================== */

:root {
  /* Signature BTS Purple Palette */
  --bts-purple: #7952de;
  --bts-purple-dark: #5e35b1;
  --bts-purple-deep: #4a148c;
  --bts-purple-light: #f3f0fd;
  --bts-purple-surface: #faf8ff;
  --bts-purple-border: #e0d7f9;
  --bts-purple-glow: rgba(121, 82, 222, 0.22);
  --bts-purple-gradient: linear-gradient(135deg, #7952de 0%, #9333ea 100%);
  
  /* Accent & Status Colors */
  --bts-gold: #f59e0b;
  --bts-gold-light: #fef3c7;
  --bts-emerald: #10b981;
  --bts-emerald-light: #ecfdf5;
  --bts-coral: #ef4444;
  --bts-coral-light: #fee2e2;

  /* Typography & Neutrals */
  --sf-text-main: #0f172a;
  --sf-text-muted: #64748b;
  --sf-text-light: #94a3b8;
  --sf-bg-surface: #ffffff;
  --sf-bg-subtle: #f8fafc;
  --sf-border-subtle: #e2e8f0;

  /* Shadows */
  --sf-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --sf-shadow-md: 0 4px 14px rgba(121, 82, 222, 0.08);
  --sf-shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(121, 82, 222, 0.08);
  --sf-shadow-hover: 0 12px 28px -4px rgba(121, 82, 222, 0.2), 0 6px 12px -2px rgba(15, 23, 42, 0.06);

  /* Radius & Transitions */
  --sf-radius-sm: 6px;
  --sf-radius-md: 10px;
  --sf-radius-lg: 16px;
  --sf-radius-full: 9999px;
  --sf-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. Brand Overrides: Refined Signature Purple Theme
   ========================================================================== */
.logo-bts {
  color: var(--bts-purple) !important;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.logo-shop {
  color: #111827 !important;
  font-weight: 800;
}

.weverse-top-header {
  border-bottom: 1px solid var(--bts-purple-border);
  box-shadow: 0 1px 4px rgba(121, 82, 222, 0.05);
}

.btn-weverse {
  background: var(--bts-purple) !important;
  color: #ffffff !important;
  font-weight: 700;
  transition: var(--sf-transition);
}

.btn-weverse:hover {
  background: var(--bts-purple-dark) !important;
  box-shadow: 0 4px 12px var(--bts-purple-glow);
}

.btn-header-signup {
  background: var(--bts-purple-gradient) !important;
  box-shadow: 0 2px 6px var(--bts-purple-glow);
}

.btn-header-signup:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.cart-pill-count {
  background: var(--bts-purple) !important;
}

/* ==========================================================================
   2. Enhanced Category Navigation Bar
   ========================================================================== */
.weverse-category-bar {
  background: #ffffff;
  border-bottom: 1px solid #ede9fe;
  position: sticky;
  top: 57px;
  z-index: 990;
  backdrop-filter: blur(8px);
}

.category-bar-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-bar-inner::-webkit-scrollbar {
  display: none;
}

.cat-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--sf-transition);
}

.cat-nav-item:hover {
  color: var(--bts-purple);
}

.cat-nav-item.active {
  color: var(--bts-purple) !important;
  font-weight: 700;
  border-bottom-color: var(--bts-purple) !important;
}

.cat-nav-item .cat-pill-count {
  background: var(--bts-purple-light);
  color: var(--bts-purple);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--sf-radius-full);
}

/* ==========================================================================
   3. Filter & Sort Strip UI
   ========================================================================== */
.weverse-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.storefront-filter-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.storefront-results-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.storefront-count-pill {
  background: var(--bts-purple-light);
  color: var(--bts-purple-dark);
  padding: 2px 8px;
  border-radius: var(--sf-radius-full);
  font-size: 12px;
  font-weight: 700;
}

.storefront-filter-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sort dropdown */
.storefront-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sf-text-muted);
}

.storefront-sort-select {
  appearance: none;
  background: #ffffff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237952de' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 10px 6px;
  border: 1px solid #cbd5e1;
  padding: 7px 32px 7px 12px;
  border-radius: var(--sf-radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--sf-text-main);
  cursor: pointer;
  transition: var(--sf-transition);
}

.storefront-sort-select:focus {
  outline: none;
  border-color: var(--bts-purple);
  box-shadow: 0 0 0 3px var(--bts-purple-glow);
}

/* Enhanced search input */
.mini-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.mini-search-wrapper input {
  padding: 8px 34px 8px 34px;
  border: 1px solid #cbd5e1;
  border-radius: var(--sf-radius-full);
  font-size: 13px;
  width: 220px;
  background: #ffffff;
  color: var(--sf-text-main);
  transition: var(--sf-transition);
}

.mini-search-wrapper input:focus {
  outline: none;
  width: 280px;
  border-color: var(--bts-purple);
  box-shadow: 0 0 0 3px var(--bts-purple-glow);
}

.storefront-search-icon {
  position: absolute;
  left: 11px;
  color: #94a3b8;
  pointer-events: none;
  width: 15px;
  height: 15px;
}

.storefront-search-kbd {
  position: absolute;
  right: 10px;
  padding: 1px 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.mini-search-wrapper input:focus ~ .storefront-search-kbd {
  display: none;
}

/* ==========================================================================
   4. Professional Product Card Grid & Card Styling
   ========================================================================== */
.weverse-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 18px;
  margin-top: 14px;
}

.wv-product-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: var(--sf-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: var(--sf-transition);
}

.wv-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--bts-purple-border);
  box-shadow: var(--sf-shadow-hover);
}

/* Consistent Aspect Ratio Image Container */
.wv-card-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wv-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.wv-product-card:hover .wv-card-image {
  transform: scale(1.05);
}

/* Sold Out Overlay */
.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.sold-out-tag {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--sf-radius-sm);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* Wishlist Button */
.wv-wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--sf-radius-full);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: var(--sf-transition);
}

.wv-wish-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #64748b;
  stroke-width: 2;
  transition: var(--sf-transition);
}

.wv-wish-btn:hover {
  transform: scale(1.15);
  background: #ffffff;
}

.wv-wish-btn:hover svg {
  stroke: var(--bts-purple);
}

.wv-wish-btn.active {
  background: #ffffff;
}

.wv-wish-btn.active svg {
  fill: #e11d48;
  stroke: #e11d48;
}

/* Card Content & Typography */
.wv-card-info {
  padding: 12px 14px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.wv-card-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sf-text-main);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

.wv-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.wv-price-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--sf-text-main);
  letter-spacing: -0.3px;
}

.wv-tax-label {
  font-size: 11px;
  color: var(--sf-text-muted);
}

/* Badges: New, Bestseller, Sold Out, Pre-Order, Gift */
.wv-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 8px 0;
}

.badge-new {
  background: var(--bts-purple-gradient);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-bestseller {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-preorder {
  background: #eff6ff;
  color: #2563eb;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-gift {
  background: #fdf2f8;
  color: #db2777;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.wv-shipping-kr {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #475569;
  margin-top: 4px;
}

/* ==========================================================================
   5. Enhanced Product Detail Modal & Gallery
   ========================================================================== */
.product-detail-modal {
  max-width: 960px !important;
  width: 92% !important;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--sf-radius-lg) !important;
  padding: 32px !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* Multi-Image Gallery Container */
.storefront-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storefront-main-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fafc;
  border: 1px solid var(--sf-border-subtle);
  border-radius: var(--sf-radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.storefront-main-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.storefront-thumbnails-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px 0;
  scrollbar-width: thin;
}

.storefront-thumb-btn {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--sf-radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  background: #f1f5f9;
  padding: 0;
  cursor: pointer;
  transition: var(--sf-transition);
}

.storefront-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.storefront-thumb-btn:hover {
  border-color: var(--bts-purple-border);
}

.storefront-thumb-btn.active {
  border-color: var(--bts-purple) !important;
  box-shadow: 0 0 0 2px var(--bts-purple-glow);
}

/* Modal Right Column Details */
.storefront-detail-col {
  display: flex;
  flex-direction: column;
}

.storefront-artist-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--bts-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--sf-text-main);
  margin-bottom: 12px;
}

.modal-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.modal-current-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--bts-purple);
}

/* Variant Selector */
.storefront-variants-section {
  margin: 16px 0 12px 0;
}

.storefront-variants-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--sf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.storefront-variants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.storefront-variant-pill {
  padding: 7px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--sf-radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sf-text-main);
  cursor: pointer;
  transition: var(--sf-transition);
}

.storefront-variant-pill:hover {
  border-color: var(--bts-purple);
  background: var(--bts-purple-surface);
}

.storefront-variant-pill.active {
  background: var(--bts-purple) !important;
  color: #ffffff !important;
  border-color: var(--bts-purple) !important;
  box-shadow: 0 2px 6px var(--bts-purple-glow);
}

/* Stock Indicator */
.storefront-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--sf-radius-full);
  margin-bottom: 14px;
}

.storefront-stock-badge.in-stock {
  background: var(--bts-emerald-light);
  color: #065f46;
}

.storefront-stock-badge.sold-out {
  background: var(--bts-coral-light);
  color: #991b1b;
}

/* Quantity Stepper & Modal Actions */
.storefront-actions-block {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storefront-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.storefront-qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sf-text-muted);
}

.storefront-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: var(--sf-radius-sm);
  background: #ffffff;
  overflow: hidden;
}

.storefront-qty-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #334155;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--sf-transition);
}

.storefront-qty-btn:hover {
  background: #e2e8f0;
}

.storefront-qty-input {
  width: 44px;
  height: 34px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--sf-text-main);
  outline: none;
}

.modal-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-add-cart-btn {
  background: #ffffff !important;
  color: var(--bts-purple) !important;
  border: 2px solid var(--bts-purple) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--sf-radius-md);
  transition: var(--sf-transition);
}

.modal-add-cart-btn:hover {
  background: var(--bts-purple-light) !important;
}

.modal-buy-now-btn {
  background: var(--bts-purple-gradient) !important;
  color: #ffffff !important;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--sf-radius-md);
  box-shadow: 0 4px 12px var(--bts-purple-glow);
  transition: var(--sf-transition);
}

.modal-buy-now-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Shipping & Return Policy Callouts */
.storefront-info-boxes {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.storefront-info-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--sf-radius-md);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: #334155;
}

.storefront-info-card-header {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  color: var(--sf-text-main);
  margin-bottom: 4px;
}

/* ==========================================================================
   6. Cart Drawer Upgrades: Free Shipping Progress Meter
   ========================================================================== */
.storefront-shipping-meter-wrap {
  background: #faf8ff;
  border: 1px solid var(--bts-purple-border);
  border-radius: var(--sf-radius-md);
  padding: 12px 14px;
  margin: 12px 16px;
}

.storefront-meter-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--bts-purple-deep);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.storefront-meter-track {
  width: 100%;
  height: 7px;
  background: #e9d5ff;
  border-radius: var(--sf-radius-full);
  overflow: hidden;
}

.storefront-meter-bar {
  height: 100%;
  background: var(--bts-purple-gradient);
  border-radius: var(--sf-radius-full);
  transition: width 0.35s ease-in-out;
}

/* ==========================================================================
   7. Skeleton Loader Shimmer
   ========================================================================== */
.storefront-skeleton-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: var(--sf-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.storefront-skeleton-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: storefrontShimmer 1.4s infinite;
}

.storefront-skeleton-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.storefront-skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: storefrontShimmer 1.4s infinite;
}

@keyframes storefrontShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   8. Complete Responsive Breakpoints
   ========================================================================== */

/* 1440px+ Desktop Screens */
@media (min-width: 1440px) {
  .weverse-product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 20px;
  }
}

/* 1024px Laptop Screens */
@media (max-width: 1200px) and (min-width: 992px) {
  .weverse-product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 16px;
  }
}

/* 768px Tablet Screens */
@media (max-width: 991px) and (min-width: 641px) {
  .weverse-product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 14px;
  }
  
  .product-detail-modal {
    padding: 24px !important;
  }

  .modal-grid {
    gap: 20px;
  }

  .bts-hero-showcase {
    flex-direction: column;
    padding: 28px 20px !important;
  }

  .hero-visual {
    margin-top: 16px;
    width: 100%;
  }

  .hero-card-preview {
    max-width: 440px;
    margin: 0 auto;
  }
}

/* 640px and below (Mobile Screens: 320px - 480px) */
@media (max-width: 640px) {
  /* Prevent horizontal scrolling */
  body, html {
    overflow-x: hidden !important;
  }

  .weverse-header-container {
    padding: 10px 14px;
  }

  .header-left-cluster {
    gap: 10px;
  }

  /* Compact dropdown buttons on mobile */
  .header-select-btn {
    padding: 4px 6px;
    font-size: 11px;
  }

  .country-pill-address {
    display: none; /* Hide wide address pill on compact mobile */
  }

  /* Category bar sticky top on mobile is handled by mobile.css (86px) */
  /* .weverse-category-bar { top: 50px; } — overridden by mobile.css */

  .category-bar-inner {
    padding: 0 12px;
    gap: 4px;
  }

  .cat-nav-item {
    padding: 10px 12px;
    font-size: 12px;
  }

  /* 2-Column Mobile Product Grid */
  .weverse-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
    margin-top: 10px;
  }

  .wv-card-info {
    padding: 10px 10px 12px 10px;
  }

  .wv-card-title {
    font-size: 12.5px;
    height: 34px;
    line-height: 1.35;
  }

  .wv-price-val {
    font-size: 14px;
  }

  .wv-tax-label {
    font-size: 10px;
  }

  /* Filter strip on mobile */
  .weverse-filter-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .storefront-filter-left,
  .storefront-filter-right {
    justify-content: space-between;
    width: 100%;
  }

  .mini-search-wrapper input {
    width: 100%;
  }

  .mini-search-wrapper input:focus {
    width: 100%;
  }

  /* Product Modal on mobile */
  .product-detail-modal {
    width: 96% !important;
    padding: 20px 16px !important;
  }

  .modal-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-actions-row {
    grid-template-columns: 1fr;
  }

  .modal-add-cart-btn,
  .modal-buy-now-btn {
    min-height: 44px; /* Touch target accessibility */
  }

  /* Cart & Wishlist Drawer full width on small mobile */
  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* 320px Ultra-Compact Mobile Screens (iPhone SE 1st gen, small devices) */
@media (max-width: 360px) {
  .logo-bts, .logo-shop {
    font-size: 18px;
  }

  .header-left-cluster {
    gap: 6px;
  }

  .header-select-btn {
    font-size: 10px;
    padding: 3px 5px;
  }

  .wv-product-card {
    border-radius: var(--sf-radius-sm);
  }

  .wv-card-title {
    font-size: 11.5px;
    height: 32px;
  }

  .wv-price-val {
    font-size: 13px;
  }

  .btn-header-signup {
    padding: 5px 8px !important;
    font-size: 11px !important;
  }
}

/* ==========================================================================
   9. Compact, Professional Customer Authentication Modal UI
   ========================================================================== */
.bts-auth-modal {
  width: 440px !important;
  max-width: 92vw !important;
  max-height: calc(100vh - 36px) !important;
  overflow-y: auto !important;
  padding: 24px 26px !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25) !important;
  scrollbar-width: thin;
}

.bts-auth-modal::-webkit-scrollbar {
  width: 5px;
}

.bts-auth-modal::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Prevent body scrolling while modal is open */
body.auth-modal-open {
  overflow: hidden !important;
}

.bts-auth-modal .auth-tabs-header {
  margin-bottom: 14px !important;
  padding: 3px !important;
}

.bts-auth-modal .auth-tab-btn {
  padding: 7px 12px !important;
  font-size: 13px !important;
}

.bts-auth-modal .auth-brand-logo {
  margin-bottom: 4px !important;
}

.bts-auth-modal .auth-form-title {
  font-size: 18px !important;
  font-weight: 800 !important;
  margin-bottom: 3px !important;
}

.bts-auth-modal .auth-form-sub {
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.4 !important;
  margin-bottom: 14px !important;
}

.bts-auth-modal .form-group {
  margin-bottom: 10px !important;
}

.bts-auth-modal .form-group label {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 4px !important;
  display: block;
}

.bts-auth-modal .form-group input {
  padding: 8px 12px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}

.bts-auth-modal .form-row {
  display: flex !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.bts-auth-modal .auth-agreements-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 10px 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bts-auth-modal .auth-agree-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #475569;
  cursor: pointer;
}

.bts-auth-modal .auth-agree-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--bts-purple);
  cursor: pointer;
}

.auth-legal-link {
  color: var(--bts-purple);
  text-decoration: underline;
  font-weight: 600;
}

.auth-legal-link:hover {
  color: var(--bts-purple-dark);
}

.bts-auth-modal .btn-create-acct {
  padding: 10px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
}

.bts-auth-modal .auth-switch-text {
  margin-top: 10px !important;
  font-size: 12px !important;
  text-align: center;
}

/* Eye button enhancement */
.pass-input-wrap .btn-toggle-pass {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  opacity: 0.65;
  transition: opacity 0.15s ease;
  line-height: 1;
}

.pass-input-wrap .btn-toggle-pass:hover {
  opacity: 1;
}

/* Compact Social OAuth Buttons */
.bts-auth-modal .social-signup-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}

.bts-auth-modal .btn-auth-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.18s ease;
}

.bts-auth-modal .btn-auth-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.bts-auth-modal .btn-auth-apple {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.bts-auth-modal .btn-auth-apple:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
}

.bts-auth-modal .auth-divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 8px 0 10px 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bts-auth-modal .auth-divider-or::before,
.bts-auth-modal .auth-divider-or::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.bts-auth-modal .auth-divider-or span {
  padding: 0 10px;
}

/* Responsive Modal Behavior */
@media (max-width: 480px) {
  .bts-auth-modal {
    width: 95% !important;
    padding: 18px 16px !important;
    border-radius: 14px !important;
  }

  .bts-auth-modal .form-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
}

@media (max-width: 360px) {
  .bts-auth-modal {
    padding: 14px 12px !important;
  }

  .bts-auth-modal .auth-form-title {
    font-size: 16px !important;
  }

  .bts-auth-modal .auth-agreements-box {
    padding: 6px 8px;
    font-size: 10.5px;
  }
}

/* ==========================================================================
   10. Accessibility & Keyboard Navigation Focus Indicators
   ========================================================================== */
*:focus-visible {
  outline: 2px solid var(--bts-purple, #7952de) !important;
  outline-offset: 2px !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--bts-purple, #7952de) !important;
  outline-offset: 2px !important;
}

/* Reduced Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   11. Cookie Banner Responsive Layout Enhancement
   ========================================================================== */
.weverse-cookie-banner .cookie-container {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.weverse-cookie-banner .cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .weverse-cookie-banner {
    padding: 12px 14px !important;
  }
  .weverse-cookie-banner .cookie-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .weverse-cookie-banner .cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  .weverse-cookie-banner .cookie-actions button {
    flex: 1 1 auto;
    min-height: 38px;
    font-size: 11.5px;
    padding: 8px 10px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .weverse-cookie-banner {
    padding: 10px 10px !important;
  }
  .weverse-cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 6px;
  }
  .weverse-cookie-banner .cookie-actions button {
    width: 100%;
  }
}

/* ==========================================================================
   Payment Gateway Selector & Tokenized Hosted Fields
   ========================================================================== */
.payment-methods-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-method-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pay-method-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.pay-method-card.active {
  border-color: var(--bts-purple, #7952de);
  background: #faf5ff;
  box-shadow: 0 0 0 1px var(--bts-purple, #7952de);
}

.method-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.method-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.method-icon-pill {
  font-size: 20px;
}

.method-title-wrap strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.method-subtitle {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.status-indicator-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.status-indicator-pill.active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.status-indicator-pill.pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.method-networks-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-left: 30px;
}

.net-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.gateway-sandbox-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.gateway-sandbox-box .box-status-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #166534;
  margin-bottom: 4px;
}

.gateway-sandbox-box p {
  font-size: 11.5px;
  color: #374151;
  line-height: 1.4;
  margin: 0;
}

.gateway-approval-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.gateway-approval-box .box-status-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #92400e;
  margin-bottom: 4px;
}

.gateway-approval-box p {
  font-size: 11.5px;
  color: #78350f;
  line-height: 1.4;
  margin: 0;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-indicator.live {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.dot-indicator.pending {
  background: #f59e0b;
}

.paypal-buttons-wrapper {
  margin-top: 10px;
  min-height: 100px;
}

.hosted-tokenized-card-container {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
}

.card-security-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.card-security-badge span {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.card-security-badge small {
  font-size: 10px;
  color: #64748b;
}

.tokenized-input-wrap {
  position: relative;
}

.tokenized-input-wrap input {
  padding-right: 36px;
}

.card-brand-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}

.btn-direct-card-pay {
  width: 100%;
  padding: 12px;
  background: #94a3b8;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: not-allowed;
  transition: all 0.2s;
}

/* Shopping tools: retain the existing purple storefront theme. */
.shop-filter-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:0 0 20px; font-size:13px; }
.shop-filter-tools label { display:flex; gap:12px; align-items:center; color:#595064; }
.shop-filter-tools select { padding:9px 12px; border:1px solid #e3dcec; border-radius:8px; background:white; color:#352742; }
.shop-filter-tools button { border:0; background:none; color:#7952de; cursor:pointer; font:inherit; text-decoration:underline; text-underline-offset:4px; }
.cart-shipping-progress[hidden] { display:none; }
.cart-shipping-progress { padding:16px 22px; background:#f8f4ff; color:#4b326c; }
.cart-shipping-progress p { font-size:13px; font-weight:600; margin:0 0 8px; }
.cart-shipping-progress small { font-size:11px; display:block; margin-top:6px; line-height:1.4; }
.cart-shipping-progress progress { width:100%; height:7px; border:0; border-radius:8px; accent-color:#7952de; }
.cart-shipping-progress progress::-webkit-progress-bar { background:#e8ddf7; border-radius:8px; }
.cart-shipping-progress progress::-webkit-progress-value { background:#7952de; border-radius:8px; transition:width .25s ease; }
@keyframes shop-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .wv-product-card { animation:shop-enter .28s ease both; }
  .modal-backdrop.active .modal-dialog { animation:shop-enter .2s ease both; }
  .toast { animation:shop-enter .2s ease both; }
}
@media (max-width:420px) { .shop-filter-tools { gap:8px; font-size:12px; } }
@media (prefers-reduced-motion:reduce) { .cart-shipping-progress progress::-webkit-progress-value { transition:none; } }

/* Consistent, understated service icons. */
.trust-badges-strip { background:#ffffff; padding:24px 0; }
.trust-item { gap:14px; align-items:flex-start; }
.trust-icon { width:28px; height:28px; min-width:28px; padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; color:#6a5485; display:flex; align-items:center; justify-content:center; }
.trust-icon svg { width:26px; height:26px; }
.trust-text strong { font-size:13px; font-weight:600; }
.trust-text p { font-size:12px; line-height:1.5; }
@media (max-width:768px) { .trust-badges-strip { padding:20px 0; } .trust-badges-grid { gap:20px 16px; } .trust-icon { width:22px; min-width:22px; height:22px; } .trust-icon svg { width:22px; height:22px; } }
