/* ==========================================================================
   PICAVRROOM (picavrroom.com) - 1:1 Exact Karz & Dolls Theme & Layout System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-navy: #0f1c3f;
  --bg-navy-dark: #0b1530;
  
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-white: #ffffff;

  --accent-red: #e31b23;
  --accent-green: #38a169;
  --accent-green-hover: #2f855a;
  --accent-gold: #ffb703;
  --accent-navy: #0f1c3f;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;

  /* Dark surfaces used by the admin portal & orders CRM.
     These were referenced but never defined, so every var() using them
     resolved to `unset` — cyan buttons rendered transparent and their
     dark label text disappeared against the dark panel behind it. */
  --bg-base: #0b1530;
  --bg-dark: #0b1530;
  --bg-card: #0f1c3f;
  --bg-glass-card: rgba(15, 28, 63, 0.75);
  --text-dim: #94a3b8;
  --gradient-fire: linear-gradient(135deg, #e31b23 0%, #b91c1c 100%);

  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;

  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body, html, main, section {
  background-color: #ffffff !important;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Native Smooth Horizontal Momentum Scrolling & Hidden Scrollbars for Touch */
.karz-nav-container, .filter-pills-bar, .thumb-strip, .card-carousel {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.karz-nav-container::-webkit-scrollbar,
.filter-pills-bar::-webkit-scrollbar,
.thumb-strip::-webkit-scrollbar,
.card-carousel::-webkit-scrollbar {
  display: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top White Header */
.karz-top-header {
  background: #ffffff;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.karz-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.karz-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.karz-logo-badge {
  width: 44px;
  height: 44px;
  background: var(--accent-red);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.3);
}

.karz-logo-text {
  display: flex;
  flex-direction: column;
}

.karz-logo-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.65rem;
  color: var(--bg-navy);
  letter-spacing: -0.5px;
  line-height: 1;
}

.karz-logo-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 1px;
  text-transform: lowercase;
}

/* Search Bar */
.karz-search-box {
  flex-grow: 1;
  max-width: 600px;
  position: relative;
}

.karz-search-box input {
  width: 100%;
  height: 44px;
  background: #f1f5f9;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0 16px 0 42px;
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.karz-search-box input:focus {
  background: #ffffff;
  border-color: var(--accent-navy);
  box-shadow: 0 0 0 3px rgba(15, 28, 63, 0.1);
}

.karz-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 18px;
  height: 18px;
}

/* Action Buttons (Wishlist, Cart, Account) */
.karz-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.karz-green-btn {
  position: relative;
  width: 42px;
  height: 42px;
  background: var(--accent-green);
  border: none;
  border-radius: 50%;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.karz-green-btn:hover {
  background: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.karz-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.karz-account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-dark);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.karz-account-btn:hover {
  background: #f1f5f9;
  border-color: var(--accent-navy);
}

/* Deep Navy Category Bar */
.karz-nav-bar {
  background: var(--bg-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.karz-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
}

.karz-nav-item {
  padding: 14px 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.karz-nav-item:hover, .karz-nav-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: var(--accent-red);
  color: #ffffff;
}

.karz-nav-item.gold-link {
  color: var(--accent-gold);
}

/* Hero Section (Karz & Dolls Style) */
.karz-hero-section {
  position: relative;
  height: 480px;
  background: linear-gradient(180deg, rgba(15, 28, 63, 0.55) 0%, rgba(15, 28, 63, 0.75) 100%), url('assets/Diaorama/M-Rexy/M-Rexy__1_.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  color: #ffffff;
}

.karz-hero-content {
  max-width: 650px;
}

.karz-hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #ffffff;
}

.karz-hero-sub {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 28px;
}

.karz-hero-btn {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid #ffffff;
  border-radius: var(--radius-pill);
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  transition: var(--transition);
}

.karz-hero-btn:hover {
  background: #ffffff;
  color: var(--bg-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Collection & Store Section Header */
.karz-section-title {
  text-align: center;
  margin: 60px 0 40px;
}

.karz-section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--bg-navy);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.chequered-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 6px;
}

.chequered-divider .line {
  height: 2px;
  width: 60px;
  background: var(--accent-red);
}

.chequered-divider .tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 2px;
}

.karz-section-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Filter Pills Bar */
.filter-pills-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pill-btn {
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill-btn:hover, .filter-pill-btn.active {
  background: var(--bg-navy);
  color: #ffffff;
  border-color: var(--bg-navy);
  box-shadow: 0 4px 12px rgba(15, 28, 63, 0.2);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

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

.product-thumb {
  position: relative;
  height: 230px;
  background: #f8fafc;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-scale-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bg-navy);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
}

.sale-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-red);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
}

.media-count-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-dark);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-wishlist-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-dark);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.product-wishlist-btn:hover, .product-wishlist-btn.active {
  background: var(--accent-red);
  color: #ffffff;
  border-color: var(--accent-red);
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-type-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.product-brand {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-red);
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bg-navy);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.regular-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--accent-red);
}

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

.btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: #c5161d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(227, 27, 35, 0.3);
}

.btn-gold {
  background: var(--accent-gold);
  color: #000000;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-gold:hover {
  background: #e5a400;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 28, 63, 0.6);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  color: var(--text-main);
}

/* ══════════════════════════════════════════════════════
   QUICKVIEW POPUP — compact, fixed-height, no scroll
   ══════════════════════════════════════════════════════ */
#quickview-modal {
  align-items: center;
  justify-content: center;
}

#quickview-modal .modal-content {
  width: min(880px, 95vw);
  max-height: 92vh;
  padding: 24px 24px 20px;
  border-radius: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #ffffff;
  position: relative;
}

#quickview-modal #quickview-container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#quickview-modal .qv-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#quickview-modal .qv-gallery {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  overflow: hidden;
}

#quickview-modal .qv-main-img {
  position: relative;
  width: 220px;
  height: 220px;
  background: #0b1530;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

#quickview-modal .qv-main-img img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#quickview-modal .qv-thumbs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  flex-shrink: 0;
  height: 40px;
}

#quickview-modal .qv-thumbs::-webkit-scrollbar { display: none; }

#quickview-modal .qv-thumb {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  background: #f8fafc;
  transition: border-color 0.15s;
}

#quickview-modal .qv-thumb.active { border-color: #e31b23; }

#quickview-modal .qv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#quickview-modal .qv-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  overflow: hidden;
}

#quickview-modal .qv-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,28,63,0.75);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

#quickview-modal .qv-nav-btn.prev { left: 4px; }
#quickview-modal .qv-nav-btn.next { right: 4px; }

#quickview-modal .qv-photo-badge {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,28,63,0.75);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
}

#quickview-modal .qv-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main, #1e293b);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#quickview-modal .qv-desc {
  font-size: 0.75rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

#quickview-modal .qv-price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #f8fafc;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

#quickview-modal .qv-specs {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 7px 10px;
  flex-shrink: 0;
}

#quickview-modal .qv-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-shrink: 0;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: 1px solid var(--border-dark);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 28, 63, 0.5);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid var(--border-color);
  z-index: 310;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  color: var(--text-main);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}

/* Footer */
footer {
  background: var(--bg-navy);
  color: #94a3b8;
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 4px solid var(--accent-red);
}

footer h4 {
  color: #ffffff;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* ==========================================================================
   Interactive Side-Scroll Product Card Carousel
   ========================================================================== */
.product-thumb {
  position: relative;
  height: 240px;
  background: #f8fafc;
  overflow: hidden;
}

.product-thumb-carousel {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.product-thumb-carousel::-webkit-scrollbar {
  display: none;
}

.product-thumb-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.card-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 28, 63, 0.15);
  color: var(--bg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  opacity: 0.85;
}

.product-card:hover .card-carousel-arrow {
  opacity: 1;
}

.card-carousel-arrow:hover {
  background: #ffffff;
  color: var(--accent-red);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.card-carousel-arrow.prev {
  left: 8px;
}

.card-carousel-arrow.next {
  right: 8px;
}

.card-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
  background: rgba(15, 28, 63, 0.45);
  padding: 3px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.card-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.card-carousel-dot.active {
  background: #ffffff;
  width: 12px;
  border-radius: 4px;
}

/* QuickView Gallery & Modal Enhancements */
.gallery-viewport {
  width: 100%;
  height: 360px;
  background: var(--bg-navy-dark, #0b1530);
  border-radius: var(--radius-md, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-color, #e2e8f0);
}

.gallery-viewport img,
.gallery-viewport video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid var(--border-color, #e2e8f0);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: #f8fafc;
}

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

.gallery-thumb:hover {
  border-color: var(--border-dark, #cbd5e1);
  transform: translateY(-2px);
}

.gallery-thumb.active {
  border-color: var(--accent-red, #e31b23);
  box-shadow: 0 0 0 2px rgba(227, 27, 35, 0.2);
}

/* Badges System */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm, 4px);
}

.badge-purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.badge-cyan {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-gold {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

/* ==========================================================================
   Cross-Platform Mobile & Tablet Optimization (iOS / iPhone / Android / iPad)
   ========================================================================== */

@media (max-width: 991px) {
  .karz-header-content {
    flex-wrap: wrap;
    gap: 12px;
  }
  .karz-search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .karz-nav-container {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    padding: 0 16px;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
  }
  .karz-nav-item {
    padding: 12px 4px;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  /* Prevent iOS Safari Automatic Viewport Zoom on Form Inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .karz-top-header {
    padding: 10px 0;
  }

  .karz-logo-title {
    font-size: 1.35rem;
  }

  .karz-logo-badge {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .karz-account-btn span {
    display: none;
  }
  .karz-account-btn i:last-child {
    display: none;
  }
  .karz-account-btn {
    padding: 8px 10px;
  }

  /* Responsive Hero */
  .karz-hero-section {
    height: auto;
    min-height: 360px;
    padding: 45px 0;
  }
  .karz-hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 12px;
  }
  .karz-hero-sub {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  /* Filter pills horizontal touch swipe */
  .filter-pills-bar {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 2px 10px 2px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .filter-pill-btn {
    flex-shrink: 0;
  }

  /* Products & Dioramas Grid on Mobile */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }

  /* Quick View Modal Mobile Touch Layout */
  #quickview-modal .modal-content {
    width: 95vw;
    max-width: 500px;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 16px;
    border-radius: 16px;
    margin: auto;
  }

  .gallery-viewport {
    height: 240px;
  }

  /* Mobile Cart Drawer */
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  /* Top Promo Bar on Mobile with Safe Area */
  .fb-promo-bar {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 6px;
    padding: 6px 12px;
    padding-top: max(6px, env(safe-area-inset-top));
  }
  .fb-promo-btn {
    font-size: 0.72rem;
    padding: 4px 12px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .karz-section-title h2 {
    font-size: 1.4rem;
  }
}

/* ── Facebook 5% OFF Social Reward Banner & Widget ── */
.fb-promo-bar {
  background: linear-gradient(90deg, #1877f2 0%, #0d52b5 100%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(24, 119, 242, 0.25);
  position: relative;
  z-index: 100;
}

.fb-promo-btn {
  background: #ffffff;
  color: #1877f2;
  border: none;
  padding: 5px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.fb-promo-btn:hover {
  transform: translateY(-1px);
  background: #f0f6ff;
}

.fb-modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 540px;
  width: 90vw;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.fb-step-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fb-action-link-btn {
  background: #1877f2;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.fb-action-link-btn:hover {
  background: #1464cc;
}

.fb-claim-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fb-claim-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.cart-fb-promo-box {
  background: #f0f6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-fb-claim-btn {
  background: #1877f2;
  color: #ffffff;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}


