/* 
   The Hot Tub Houdini — Professional E-Commerce Storefront Stylesheet
   Benchmarked against industry leaders (SpaDepot, PoolSupplyWorld)
   Fully Optimized for Desktop, Tablets & Mobile Devices
*/

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --accent: #0ea5e9;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #f59e0b;
  --danger: #dc2626;
  --bg-dark: #0f172a;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 68px; /* Room for mobile bottom bar */
  }
}

/* Announcement Top Bar */
.top-announcement {
  background: var(--bg-dark);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-announcement a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 500;
}

/* Store Navigation Header */
.store-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-text span {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search Bar with Autocomplete */
.search-container {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px; /* Prevents auto-zoom on iOS */
  outline: none;
  transition: all 0.2s ease;
  background: var(--bg-subtle);
}

.search-input-wrapper input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.autocomplete-item:hover, .autocomplete-item:active {
  background: var(--primary-light);
}

.autocomplete-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
}

.autocomplete-info {
  flex: 1;
}

.autocomplete-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.autocomplete-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.autocomplete-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cart-btn {
  background: var(--primary);
  color: #ffffff;
  border: none;
  font-weight: 700;
}

.cart-btn:hover, .cart-btn:active {
  background: var(--primary-dark);
  color: #ffffff;
}

.cart-badge {
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Store Content Layout */
.store-container {
  max-width: 1400px;
  margin: 18px auto;
  padding: 0 20px;
}

.breadcrumbs {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.store-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Mobile Filter Bar (Visible on mobile/tablet) */
.mobile-filter-toolbar {
  display: none;
  margin-bottom: 16px;
  gap: 10px;
}

.mobile-filter-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.mobile-filter-btn:active {
  background: var(--bg-subtle);
}

.mobile-filter-badge {
  background: var(--primary);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
}

/* Filter Sidebar */
.filter-sidebar {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-header h2 {
  font-size: 16px;
  font-weight: 700;
}

.sidebar-close-btn {
  display: none;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.reset-filters-btn {
  font-size: 12px;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.filter-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  min-height: 28px;
}

.filter-checkbox input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.count-tag {
  font-size: 11px;
  color: var(--text-subtle);
  margin-left: auto;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

.mobile-apply-btn {
  display: none;
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
  cursor: pointer;
}

/* Main Products Header */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.results-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  background: #ffffff;
  color: var(--text-main);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bg-dark);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-img-wrapper {
  height: 200px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
  cursor: pointer;
}

.card-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 6px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-title:hover {
  color: var(--primary);
}

.card-specs {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.3;
  background: #f8fafc;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  gap: 8px;
}

.card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.add-btn {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid transparent;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.add-btn:hover, .add-btn:active {
  background: var(--primary);
  color: #ffffff;
}

/* Product Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pdp-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #e2e8f0;
}

.pdp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
}

.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-main-img {
  width: 100%;
  height: 280px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.pdp-main-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.pdp-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pdp-thumb {
  width: 56px;
  height: 56px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  background: #f8fafc;
  cursor: pointer;
  flex-shrink: 0;
}

.pdp-thumb.active {
  border-color: var(--primary);
}

.pdp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-info {
  display: flex;
  flex-direction: column;
}

.pdp-brand {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdp-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 4px 0 8px 0;
}

.pdp-sku {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pdp-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.pdp-desc {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
  margin-bottom: 18px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 18px;
}

.specs-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
}

.pdp-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: #f8fafc;
  border: none;
  width: 38px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-input {
  width: 44px;
  height: 40px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  outline: none;
}

.pdp-add-cart-btn {
  flex: 1;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s ease;
}

.pdp-add-cart-btn:hover {
  background: var(--primary-dark);
}

/* Cross Sell Recommendations Section */
.cross-sell-section {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.cross-sell-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.cross-sell-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cross-sell-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: 4px;
}

.cross-sell-info {
  flex: 1;
}

.cross-sell-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.cross-sell-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

/* Slide-out Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 250;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  bottom: 0;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  z-index: 260;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h2 {
  font-size: 17px;
  font-weight: 700;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--border);
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 4px 0 6px 0;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.remove-item-btn {
  font-size: 12px;
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
}

.drawer-footer {
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  background: #f8fafc;
  border-top: 1px solid var(--border);
}

.shipping-calc-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
}

.shipping-calc-box label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.zip-input-row {
  display: flex;
  gap: 6px;
}

.zip-input-row input {
  flex: 1;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
}

.zip-input-row button {
  padding: 7px 12px;
  background: var(--bg-dark);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}

.summary-row.total {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  border-top: 2px solid #e2e8f0;
  padding-top: 10px;
  margin-top: 8px;
}

.checkout-btn {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn:hover {
  background: var(--primary-dark);
}

.checkout-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.pay-submit-action-btn {
  font-size: 16.5px;
  font-weight: 800;
  padding: 16px 22px;
  min-height: 54px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.pay-submit-action-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.pay-submit-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.pay-btn-amount-tag {
  font-weight: 800;
  background: rgba(255, 255, 255, 0.22);
  padding: 3px 10px;
  border-radius: 6px;
  margin-left: 6px;
  letter-spacing: 0px;
}

/* Square Card Form Fields & Styling */
.checkout-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkout-field label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.checkout-input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  background: #ffffff;
}

.checkout-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.checkout-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 8px;
}

.card-number-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.card-number-wrapper input {
  padding-right: 70px;
  letter-spacing: 1px;
  font-family: monospace, var(--font);
  font-size: 15.5px;
}

.card-brand-badge {
  position: absolute;
  right: 10px;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #0284c7;
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  pointer-events: none;
}

/* Order Confirmation Receipt Styles */
.order-success-modal {
  padding: 24px;
  text-align: center;
}

.success-icon-badge {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.2);
}

.order-id-pill {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
  font-family: monospace, var(--font);
}

.receipt-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
  margin-bottom: 20px;
}

.receipt-timeline {
  display: flex;
  justify-content: space-between;
  margin: 16px 0;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 11.5px;
  color: #475569;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  flex: 1;
}

.timeline-step.active {
  color: #16a34a;
  font-weight: 700;
}

/* Mobile Bottom Store Navigation Bar */
.mobile-store-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 45;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.06);
}

.mobile-store-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.mobile-store-nav-btn.active, .mobile-store-nav-btn:hover {
  color: var(--primary);
}

.mobile-store-nav-btn .nav-icon {
  font-size: 18px;
}

.mobile-store-cart-badge {
  position: absolute;
  top: -2px;
  right: 6px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 999px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .store-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Mobile Filter Off-Canvas Drawer */
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 300;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .filter-sidebar.active {
    left: 0;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .mobile-apply-btn {
    display: block;
  }

  .mobile-filter-toolbar {
    display: flex;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand-text span {
    display: none;
  }

  .action-btn:not(.cart-btn) {
    display: none;
  }

  .pdp-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .pdp-main-img {
    height: 220px;
  }

  .cross-sell-section {
    padding: 16px 20px;
  }
}

@media (max-width: 768px) {
  .mobile-store-bottom-bar {
    display: flex;
  }

  .top-announcement {
    font-size: 12px;
    justify-content: center;
    text-align: center;
  }

  .top-announcement div {
    text-align: center;
    width: 100%;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
  }

  .sort-group {
    width: 100%;
    justify-content: space-between;
  }

  .sort-select {
    flex: 1;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-card {
    border-radius: var(--radius-sm);
  }

  .card-img-wrapper {
    height: 140px;
    padding: 8px;
  }

  .card-body {
    padding: 10px;
  }

  .card-title {
    font-size: 12.5px;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
  }

  .card-brand {
    font-size: 10px;
  }

  .card-specs {
    display: none; /* Keep cards compact on mobile */
  }

  .card-footer {
    padding-top: 6px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .card-price {
    font-size: 14px;
    text-align: left;
  }

  .add-btn {
    width: 100%;
    justify-content: center;
    padding: 6px;
    font-size: 11px;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .pdp-modal {
    max-height: 95vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: auto;
  }

  .checkout-row-2 {
    grid-template-columns: 1fr;
  }

  .checkout-row-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
