/* ==========================================================================
   JORDOEN STORE DUTY FREE SHOPPING - MASTER RESPONSIVE STYLESHEET
   Luxury Gold & Deep Navy Palette | Mobile-First & Desktop Optimized
   ========================================================================== */

:root {
  --primary-gold: #D4AF37;
  --primary-gold-hover: #C5A028;
  --gold-light: #FBF4DE;
  --gold-glow: rgba(212, 175, 55, 0.25);
  
  --bg-dark: #0F172A;
  --bg-card-dark: #1E293B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-gold: #D4AF37;
  
  --border-color: #E2E8F0;
  --border-gold: rgba(212, 175, 55, 0.4);
  
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-gold: 0 4px 14px 0 rgba(212, 175, 55, 0.35);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px; /* Space for mobile bottom nav */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.top-notice-bar {
  background: #090D16;
  color: var(--primary-gold);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  padding: 6px 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.main-navbar {
  background: var(--bg-dark);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary-gold);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-text span {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
}

/* Search Bar */
.search-wrapper {
  flex: 1;
  max-width: 550px;
  position: relative;
  display: none; /* Visible on tablet/desktop */
}

@media (min-width: 768px) {
  .search-wrapper {
    display: block;
  }
}

.search-input-group {
  display: flex;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px;
  padding-right: 48px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gold);
  color: var(--bg-dark);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.live-search-results {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-height: 360px;
  overflow-y: auto;
  z-index: 1005;
  display: none;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  transition: background 0.15s;
}

.live-search-item:hover {
  background: #F1F5F9;
}

.live-search-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s;
}

.nav-link-btn:hover {
  color: var(--primary-gold);
  background: rgba(255, 255, 255, 0.05);
}

.cart-icon-btn {
  position: relative;
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary-gold);
  border: 1px solid var(--primary-gold);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.cart-icon-btn:hover {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

.cart-badge {
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Sub Navigation Categories */
.sub-nav-categories {
  background: #1E293B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.sub-nav-categories::-webkit-scrollbar {
  display: none;
}

.sub-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  gap: 16px;
}

.cat-nav-link {
  color: #E2E8F0;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
}

.cat-nav-link:hover, .cat-nav-link.active {
  color: var(--primary-gold);
}

/* Mobile Search Bar (under header on small screens) */
.mobile-search-bar {
  display: block;
  background: var(--bg-dark);
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
  .mobile-search-bar {
    display: none;
  }
}

/* ==========================================================================
   Mobile Bottom Navigation Bar
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #0F172A;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1050;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 0.65rem;
  font-weight: 500;
  position: relative;
  width: 20%;
  height: 100%;
  text-decoration: none;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--primary-gold);
}

.bottom-nav-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Banner & Promotion
   ========================================================================== */
.hero-banner-container {
  max-width: 1280px;
  margin: 16px auto;
  padding: 0 16px;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #0F172A;
  border: 1px solid var(--border-gold);
}

.hero-banner img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.65) 60%, rgba(15, 23, 42, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 32px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  width: fit-content;
  text-transform: uppercase;
}

.hero-title {
  color: #FFFFFF;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-desc {
  color: #CBD5E1;
  font-size: 0.95rem;
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-btn {
  background: var(--primary-gold);
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: inline-block;
  box-shadow: var(--shadow-gold);
  transition: transform 0.15s;
  width: fit-content;
}

.hero-btn:hover {
  transform: translateY(-2px);
  background: #E5C050;
}

/* ==========================================================================
   Product Grid & Cards (Ultra HD Square Layout)
   ========================================================================== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 32px 0 16px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 8px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-gold);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 12px;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.product-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.product-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* Crisp 1:1 HD square preview */
  background: #FFFFFF;
  overflow: hidden;
}

.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Professional studio look without distortion */
  transition: transform 0.3s ease;
  padding: 8px;
}

.product-card:hover .product-card-thumb img {
  transform: scale(1.05);
}

.product-badge-group {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-discount {
  background: #EF4444;
  color: #FFFFFF;
}

.badge-featured {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

.badge-new {
  background: #10B981;
  color: #FFFFFF;
}

.wishlist-btn-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  z-index: 2;
}

.wishlist-btn-overlay:hover, .wishlist-btn-overlay.active {
  color: #EF4444;
  background: #FFFFFF;
}

.product-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 10px;
}

.current-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
}

.old-price {
  font-size: 0.8rem;
  color: #94A3B8;
  text-decoration: line-through;
}

.add-cart-btn {
  width: 100%;
  background: var(--bg-dark);
  color: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.add-cart-btn:hover {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

/* ==========================================================================
   Product Details View
   ========================================================================== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 24px 0;
  background: #FFFFFF;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

@media (min-width: 860px) {
  .product-detail-layout {
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    padding: 32px;
  }
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.main-image-view {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.thumb-item {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.variant-selector-group {
  margin: 16px 0;
}

.variant-label {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-pill {
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: #FFFFFF;
}

.variant-pill.active {
  background: var(--bg-dark);
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

/* ==========================================================================
   Cart & Checkout Views
   ========================================================================== */
.cart-table-wrapper {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  margin-bottom: 24px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  background: #F8FAFC;
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.cart-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.qty-btn {
  background: #F1F5F9;
  border: none;
  width: 32px;
  height: 32px;
  font-weight: bold;
  cursor: pointer;
}

.qty-val {
  width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.order-summary-box {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.25rem;
  font-weight: 800;
  border-top: 2px solid var(--border-color);
  padding-top: 14px;
  color: #0F172A;
}

.checkout-btn {
  width: 100%;
  background: var(--primary-gold);
  color: var(--bg-dark);
  font-size: 1rem;
  font-weight: 800;
  padding: 14px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: all 0.2s;
  text-align: center;
  display: block;
}

.checkout-btn:hover {
  background: #E5C050;
  transform: translateY(-2px);
}

/* ==========================================================================
   Order Tracking Visual Timeline
   ========================================================================== */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  position: relative;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  z-index: 2;
}

.timeline-step.completed .timeline-icon {
  background: #10B981;
  color: #FFFFFF;
}

.timeline-step.current .timeline-icon {
  background: var(--primary-gold);
  color: var(--bg-dark);
  box-shadow: 0 0 0 4px var(--gold-glow);
}

.timeline-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.timeline-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PWA App Download / QR Code Landing
   ========================================================================== */
.download-page-card {
  max-width: 600px;
  margin: 32px auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-lg);
  padding: 32px 24px;
  text-align: center;
}

.qr-preview-box {
  width: 220px;
  height: 220px;
  margin: 20px auto;
  padding: 12px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 2px dashed var(--primary-gold);
  box-shadow: var(--shadow-md);
}

.qr-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.install-btn {
  background: var(--bg-dark);
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  box-shadow: var(--shadow-gold);
}

.install-btn:hover {
  background: var(--primary-gold);
  color: var(--bg-dark);
}

.install-btn-direct {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #D4AF37;
  border: 2.5px solid #D4AF37;
  padding: 14px 24px;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 8px auto;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
  transition: all 0.25s ease;
  font-family: inherit;
}

.install-btn-direct:hover, .install-btn-direct:active {
  background: #D4AF37;
  color: #0F172A;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
}

.browse-btn-direct {
  background: #F8FAFC;
  color: #0F172A;
  border: 1.5px solid #CBD5E1;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin: 4px auto 0;
  transition: all 0.2s ease;
}

.browse-btn-direct:hover {
  background: #FFFFFF;
  border-color: #D4AF37;
  color: #D4AF37;
}


/* Flash Messages */
.flash-container {
  max-width: 1280px;
  margin: 12px auto;
  padding: 0 16px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-success { background: #DEF7EC; color: #03543F; border: 1px solid #BCF0DA; }
.alert-danger { background: #FDE8E8; color: #9B1C1C; border: 1px solid #FBD5D5; }
.alert-warning { background: #FEF08A; color: #713F12; border: 1px solid #FDE047; }
.alert-info { background: #E1EFFE; color: #1E429F; border: 1px solid #B4C6FC; }

/* ==========================================================================
   Mobile Screen View Optimization for All Buttons, Controls & Safe Areas
   ========================================================================== */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

.mobile-bottom-nav {
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

.bottom-nav-item {
  min-height: 48px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 768px) {
  /* Header clean layout on all phones (Android & Apple) */
  .nav-container {
    padding: 8px 12px;
    gap: 8px;
  }
  .brand-wrapper {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  .brand-logo-img {
    height: 36px;
    width: auto;
  }
  .brand-text h1 {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    line-height: 1.2;
  }
  .brand-text span {
    display: none;
  }
  .nav-actions {
    gap: 6px;
  }
  /* On mobile top bar, hide redundant buttons that are already in the bottom nav */
  .nav-actions a[href="/download"],
  .nav-actions a[href="/wishlist"],
  .nav-actions a[href="/login"],
  .nav-actions a[href="/profile"],
  .nav-actions a[href="/logout"] {
    display: none !important;
  }
  .nav-link-btn {
    padding: 5px 8px;
    font-size: 0.78rem;
    min-height: 36px;
  }
  .cart-icon-btn {
    padding: 6px 10px;
    font-size: 0.82rem;
    min-height: 36px;
  }

  /* Product grid on all mobile screens: perfect 2-column layout */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
  }

  .product-card-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #FFFFFF;
  }

  .product-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
  }

  .product-card-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .product-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    line-height: 1.3em;
    word-break: break-word;
    font-size: clamp(0.78rem, 3.2vw, 0.88rem);
    margin-bottom: 6px;
  }

  .product-price-row {
    margin-top: auto;
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
  }

  .current-price {
    font-size: clamp(0.9rem, 3.6vw, 1.02rem);
    font-weight: 800;
  }

  /* All mobile buttons touch ergonomics & clean view */
  .add-cart-btn {
    width: 100%;
    min-height: 42px;
    padding: 8px 6px;
    font-size: clamp(0.72rem, 3.1vw, 0.82rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    touch-action: manipulation;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-tap-highlight-color: transparent;
  }

  .checkout-btn, .hero-btn, .install-btn-direct, .browse-btn-direct {
    min-height: 46px;
    font-size: clamp(0.85rem, 3.6vw, 0.98rem);
    touch-action: manipulation;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-customer-back {
    min-height: 38px;
    padding: 6px 14px;
    font-size: 0.82rem;
    touch-action: manipulation;
  }

  /* Prevent button squishing in product details */
  .product-detail-layout div[style*="display: flex; gap: 12px;"] {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .product-detail-layout .checkout-btn {
    width: 100% !important;
    flex: none !important;
  }

  /* Quantity control full width on mobile */
  .qty-control {
    width: 100%;
    justify-content: center;
    height: 46px;
  }
  .qty-btn {
    width: 46px;
    height: 46px;
    font-size: 1.25rem;
    touch-action: manipulation;
  }
  .qty-val {
    flex: 1;
    font-size: 1.05rem;
  }

  /* Modal screen fitting on small phones */
  #quickAuthRegisterModal > div, #countryModal > div, #adminPasswordModal > div {
    width: 95% !important;
    max-height: 92vh !important;
    border-radius: 12px !important;
  }

  /* Text inputs on mobile >= 16px to prevent iOS auto-zoom */
  input[type="text"], input[type="tel"], input[type="password"], input[type="email"], input[type="number"], select, textarea {
    font-size: 16px !important;
    box-sizing: border-box;
    max-width: 100%;
  }
}

/* ==========================================================================
   Luxury Product Arrival Notification Banner & Ringtone Chime UI
   ========================================================================== */
#luxury-notif-container {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 440px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.luxury-notif-card {
  pointer-events: auto;
  background: linear-gradient(135deg, #0B132B 0%, #1E293B 100%);
  color: #FFFFFF;
  border: 1.8px solid #D4AF37;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 18px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  animation: slideDownLuxury 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

@keyframes slideDownLuxury {
  from {
    opacity: 0;
    transform: translateY(-25px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.luxury-notif-card.fade-out {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.4s ease;
}

.luxury-notif-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  animation: pulseBell 1.5s infinite alternate;
}

@keyframes pulseBell {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); box-shadow: 0 0 12px rgba(212, 175, 55, 0.6); }
}

.luxury-notif-content {
  flex: 1;
  min-width: 0;
}

.luxury-notif-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #D4AF37;
  margin-bottom: 3px;
}

.luxury-notif-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.luxury-notif-text {
  font-size: 0.82rem;
  color: #CBD5E1;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.luxury-notif-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #D4AF37 0%, #AA771C 100%);
  color: #0F172A;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 15px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  transition: all 0.2s ease;
  min-height: 36px;
  box-sizing: border-box;
}

.luxury-notif-action-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.luxury-notif-close-btn {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.luxury-notif-close-btn:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   Load More Products Button (Pure Black, Centered, Luxury)
   ========================================================================== */
.load-more-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 36px auto 28px !important;
  padding: 0 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.load-more-btn {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #000000 !important;
  padding: 14px 36px !important;
  border-radius: 9999px !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.8px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin: 0 auto !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.25s ease !important;
  font-family: inherit !important;
  width: auto !important;
  min-width: 250px !important;
  max-width: 360px !important;
}

.load-more-btn:hover {
  background: #1E293B !important;
  color: #FFFFFF !important;
  border-color: #1E293B !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.38) !important;
}

.load-more-btn:active {
  transform: translateY(0) !important;
}

.load-more-btn:disabled {
  background: #334155 !important;
  color: #94A3B8 !important;
  border-color: #334155 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}


