@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

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

:root {
  --primary: #1a1a1a;
  --primary-light: #333;
  --accent: #b8977e;
  --accent-light: #d4b896;
  --accent-dark: #8a6d56;
  --bg: #f7f7f5;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-light: #6b6b6b;
  --text-muted: #9a9a9a;
  --border: #e8e6e1;
  --border-light: #f0eeea;
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.06), 0 12px 40px rgba(0,0,0,0.04);
  --shadow-xl: 0 8px 30px rgba(0,0,0,0.08), 0 20px 60px rgba(0,0,0,0.05);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Login Page ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0a0a0a;
}

.login-card {
  background: var(--bg-card);
  padding: 4rem 3.5rem;
  width: 100%;
  max-width: 440px;
}

.login-logo { text-align: center; margin-bottom: 3rem; }
.login-logo img { height: 50px; object-fit: contain; }
.login-logo h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--primary);
  letter-spacing: 8px;
  font-weight: 400;
}
.login-logo p {
  color: var(--text-muted); margin-top: 0.8rem;
  font-size: 0.75rem; letter-spacing: 4px; text-transform: uppercase;
  font-weight: 300;
}

/* ===== Forms ===== */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block; margin-bottom: 0.5rem;
  font-weight: 400; font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  font-size: 0.9rem; font-family: var(--font-body);
  transition: border-color var(--transition); background: #fff;
  border-radius: 0;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary);
}
.error-msg { color: #c62828; text-align: center; margin-top: 1rem; font-size: 0.85rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 2rem; border: 1px solid transparent;
  font-size: 0.7rem; font-family: var(--font-body); font-weight: 500;
  cursor: pointer; transition: all 0.4s var(--ease-out-expo);
  text-decoration: none; gap: 0.5rem;
  letter-spacing: 2px; text-transform: uppercase;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.btn-primary:hover { background: #333; border-color: #333; }
.btn-secondary {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-secondary:hover { background: var(--primary); color: #fff; }
.btn-accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-success { background: #2e7d32; color: #fff; border-color: #2e7d32; }
.btn-danger { background: transparent; color: #c62828; border-color: #c62828; }
.btn-danger:hover { background: #c62828; color: #fff; }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.65rem; }
.btn-full { width: 100%; padding: 1rem; font-size: 0.75rem; letter-spacing: 3px; }

/* ===== Admin Layout ===== */
.admin-page { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 260px; background: #0a0a0a; color: #fff;
  display: flex; flex-direction: column; position: fixed;
  top: 0; right: 0; bottom: 0; z-index: 100;
}
.sidebar-header {
  padding: 2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem; letter-spacing: 6px;
  color: #fff; font-weight: 400;
}
.sidebar-logo {
  height: 32px; object-fit: contain;
  filter: brightness(0) invert(1);
}
.sidebar-header p {
  font-size: 0.65rem; opacity: 0.35; margin-top: 0.5rem;
  letter-spacing: 3px; text-transform: uppercase; font-weight: 300;
}
.sidebar-nav { flex: 1; padding: 0.5rem 0; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; width: 100%;
  padding: 0.85rem 1.5rem; background: none; border: none;
  color: rgba(255,255,255,0.4); font-size: 0.8rem; font-family: var(--font-body);
  cursor: pointer; transition: all var(--transition); text-align: right; gap: 0.6rem;
  letter-spacing: 0.5px; border-left: 2px solid transparent; font-weight: 300;
}
.nav-item:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.02); }
.nav-item.active {
  color: #fff; background: rgba(255,255,255,0.04);
  border-left-color: var(--accent); font-weight: 400;
}
.logout-btn { border-top: 1px solid rgba(255,255,255,0.06); margin-top: auto; }
.admin-main { flex: 1; margin-right: 260px; padding: 2.5rem 3rem; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 0.8rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.tab-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem; color: var(--primary); font-weight: 500;
}
.filter-bar {
  margin-bottom: 1.5rem; display: flex; gap: 0.8rem;
  flex-wrap: wrap; align-items: center;
}
.filter-bar select, .filter-bar input[type="text"] {
  padding: 0.6rem 1rem; border: 1px solid var(--border);
  font-size: 0.85rem; font-family: var(--font-body); min-width: 200px;
  background: #fff; color: var(--text); border-radius: 0;
}

/* ===== Notification badge ===== */
.notif-badge {
  background: var(--accent); color: #fff; font-size: 0.6rem; font-weight: 600;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 0.3rem;
}

/* ===== Data Tables ===== */
.data-table {
  width: 100%; border-collapse: collapse; background: var(--bg-card);
}
.data-table th {
  background: transparent; color: var(--text-muted); padding: 0.8rem 1rem;
  text-align: right; font-weight: 400; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  border-bottom: 1px solid var(--primary);
}
.data-table td {
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-light);
  font-size: 0.88rem; vertical-align: middle;
}
.data-table tr:hover td { background: #fafaf6; }
.data-table.compact td { padding: 0.45rem 0.7rem; font-size: 0.8rem; }
.thumb {
  width: 56px; height: 56px; object-fit: cover;
  border: 1px solid var(--border);
}
.preview-img { max-width: 200px; margin-top: 0.5rem; }
.price-input {
  width: 120px; padding: 0.5rem 0.7rem;
  border: 1px solid var(--border);
  font-size: 0.9rem; text-align: center;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}
.price-input:focus { border-color: var(--primary); outline: none; }
.badge {
  display: inline-block; padding: 0.25rem 0.8rem;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase;
}
.badge-green { background: #f1f8f1; color: #2e7d32; }
.badge-red { background: #fef2f2; color: #c62828; }
.badge-gold { background: #fef9e7; color: #b8860b; }
.store-link { color: var(--text-light); font-size: 0.85rem; text-decoration: none; }
.store-link:hover { text-decoration: underline; color: var(--primary); }
.empty-state { text-align: center; padding: 4rem; color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}
.modal-content {
  background: var(--bg-card);
  width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem; color: var(--primary); font-weight: 500;
}
.modal-close {
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--text-muted); padding: 0.2rem 0.5rem; transition: color var(--transition);
}
.modal-close:hover { color: var(--primary); }
.modal-body { padding: 2rem; }

.store-iframe { width: 100%; height: 600px; border: 1px solid var(--border); }
.color-options { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.color-opt {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}
.color-opt:hover { transform: scale(1.1); }
.color-opt.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.order-list { margin: 1rem 0; }
.order-item {
  display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 0.3rem;
}
.order-handle { cursor: grab; color: var(--text-muted); font-size: 1.2rem; }
.order-item span:nth-child(2) { flex: 1; }

/* ===== Bulk Price Controls ===== */
.bulk-price-bar {
  display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap;
  padding: 1rem 1.2rem; background: #f8f7f5; border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.bulk-price-bar label {
  font-size: 0.7rem; font-weight: 400; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}
.bulk-price-bar input, .bulk-price-bar select {
  padding: 0.45rem 0.7rem; border: 1px solid var(--border);
  font-size: 0.85rem; font-family: var(--font-body);
  width: 120px;
}
.bulk-price-bar input:focus, .bulk-price-bar select:focus { outline: none; border-color: var(--primary); }

/* ===== Statistics ===== */
.stats-summary {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 1.8rem 1rem; text-align: center;
}
.stat-number {
  font-family: var(--font-display); font-size: 2.5rem;
  color: var(--primary); font-weight: 600; line-height: 1;
}
.stat-label {
  font-size: 0.65rem; color: var(--text-muted); margin-top: 0.6rem;
  text-transform: uppercase; letter-spacing: 2px; font-weight: 300;
}
.chart-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 1.5rem;
}
.chart-card h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 500;
  color: var(--primary); margin-bottom: 1rem;
}

/* ===== Store Cards ===== */
.store-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 1.2rem; cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}
.store-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.store-card-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* ===== Settings Cards ===== */
.settings-card {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 1.5rem;
}

/* ======================================================
   LANDING SCREEN — Cinematic fullscreen
   ====================================================== */
.landing-screen {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: #000;
  transition: opacity 1.2s var(--ease-out-expo), transform 1.2s var(--ease-out-expo);
}
.landing-screen.landing-exit {
  opacity: 0;
  transform: scale(1.05);
}

.landing-video-wrap {
  position: absolute; inset: 0; overflow: hidden;
}
.landing-video-wrap video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.3) contrast(1.1);
  transform: scale(1.05);
  animation: slowZoom 30s ease-in-out infinite alternate;
}
@keyframes slowZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.landing-video-fallback {
  display: none; position: absolute; inset: 0;
  background: #0a0a0a;
  align-items: center; justify-content: center;
}

.water-animation {
  position: relative; width: 200px; height: 200px;
}
.drop {
  position: absolute; width: 30px; height: 30px;
  border-radius: 50%; background: rgba(184,151,126,0.15);
  animation: ripple 3s ease-out infinite;
}
.drop:nth-child(1) { top: 50%; left: 50%; animation-delay: 0s; }
.drop:nth-child(2) { top: 50%; left: 50%; animation-delay: 1s; }
.drop:nth-child(3) { top: 50%; left: 50%; animation-delay: 2s; }
@keyframes ripple {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

.landing-overlay {
  position: relative; z-index: 1; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4rem;
  animation: landingFadeIn 2s ease 0.5s both;
}
@keyframes landingFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.landing-logo img {
  max-width: 200px; max-height: 130px; margin-bottom: 1.5rem;
  object-fit: contain;
}
.landing-brand {
  font-family: var(--font-display);
  font-size: 5.5rem; letter-spacing: 20px; color: #fff;
  font-weight: 400;
}
.landing-brand-logo {
  height: 70px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.landing-subtitle {
  font-size: 0.9rem; color: rgba(255,255,255,0.4);
  margin-top: 0.5rem; letter-spacing: 6px; text-transform: uppercase;
  font-weight: 200;
}

.landing-cta {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 0.6rem; padding: 1.5rem 4rem;
  background: transparent; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8); font-size: 1rem; font-family: var(--font-body); font-weight: 300;
  cursor: pointer; transition: all 0.6s var(--ease-out-expo);
  letter-spacing: 3px;
  animation: ctaFloat 4s ease-in-out infinite;
}
.landing-cta:hover, .landing-cta:active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  transform: translateY(-2px);
}
.cta-icon { font-size: 1.8rem; opacity: 0.7; }
.cta-text { letter-spacing: 3px; text-transform: uppercase; font-size: 0.75rem; font-weight: 300; }
.cta-pulse {
  position: absolute; inset: -8px; border: 1px solid rgba(255,255,255,0.08);
  animation: pulse 3s ease-in-out infinite;
}
@keyframes ctaFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.04); }
}

/* ======================================================
   STORE PAGE — Gessi luxury experience
   ====================================================== */
.store-page {
  background: #ffffff; color: #1a1a1a;
  overflow-x: hidden; -webkit-overflow-scrolling: touch;
}

.store-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem; display: flex; align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky; top: 0; z-index: 50;
  transition: all var(--transition);
}
.store-brand { display: flex; align-items: center; gap: 1rem; }
.store-brand img { height: 28px; object-fit: contain; }
.store-brand h1 {
  font-family: var(--font-display);
  font-size: 1.6rem; letter-spacing: 8px; color: var(--primary); font-weight: 400;
}
.store-subtitle {
  font-size: 0.65rem; color: var(--text-muted);
  letter-spacing: 3px; text-transform: uppercase; font-weight: 300;
}
.header-logo {
  width: 44px; height: 44px; object-fit: contain;
  background: transparent; padding: 0;
}

.store-actions { display: flex; gap: 0.5rem; }
.compare-toggle {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.2rem;
  background: var(--primary); color: #fff; border: none;
  font-family: var(--font-body); font-weight: 400;
  font-size: 0.7rem; cursor: pointer; letter-spacing: 2px; text-transform: uppercase;
}

/* Finish filter */
.finish-filter {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 3rem;
  background: #fafaf8; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.finish-filter::-webkit-scrollbar { display: none; }
.finish-label {
  color: var(--text-muted); font-size: 0.65rem; white-space: nowrap;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 300;
}
.finish-btn {
  flex-shrink: 0; padding: 0.4rem 1.2rem;
  border: 1px solid var(--border);
  background: transparent; color: var(--text-muted);
  font-size: 0.7rem; font-family: var(--font-body); cursor: pointer;
  transition: all 0.4s var(--ease-out-expo); white-space: nowrap;
  letter-spacing: 1px; font-weight: 400;
}
.finish-btn:hover, .finish-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* Category nav */
.category-nav {
  display: flex; gap: 0; padding: 0;
  overflow-x: auto; background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0; padding: 1.2rem 2.2rem;
  border: none; border-bottom: 2px solid transparent;
  background: transparent; color: var(--text-muted);
  font-size: 0.7rem; font-family: var(--font-body); cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 400;
}
.cat-btn:hover { color: var(--primary); }
.cat-btn.active {
  color: var(--primary); border-bottom-color: var(--primary);
}

/* Prominent sale filter button */
.cat-btn.sale-cat-btn {
  background: linear-gradient(135deg, #dc2626, #f59e0b);
  color: #fff; font-weight: 700; letter-spacing: 1px;
  border-radius: 8px; margin: 0.5rem 0.6rem;
  padding: 0.7rem 1.6rem; align-self: center;
  border-bottom: none;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45);
}
.cat-btn.sale-cat-btn:hover { color: #fff; transform: scale(1.05); }
.cat-btn.sale-cat-btn.active {
  color: #fff; border-bottom: none;
  outline: 2px solid #fff; outline-offset: -2px;
}

/* Clear-all-filters button */
.clear-filters-btn {
  flex-shrink: 0; padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 6px;
  background: transparent; color: inherit; cursor: pointer;
  font-size: 0.75rem; font-family: var(--font-body);
  transition: all var(--transition);
}
.clear-filters-btn:hover { background: rgba(255,255,255,0.15); }

/* Store content */
.store-content {
  padding: 4rem 3rem; max-width: 1600px; margin: 0 auto;
}
.product-section { margin-bottom: 5rem; }
.section-title {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--primary); font-weight: 400;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem; border-bottom: 1px solid var(--border);
  letter-spacing: 3px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  overflow: hidden; cursor: pointer;
  transition: all 0.6s var(--ease-out-expo);
  border: none; position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: cardReveal 0.7s var(--ease-out-expo) forwards;
}
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes cardReveal {
  to { opacity: 1; transform: translateY(0); }
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card.card-compared { box-shadow: 0 0 0 2px var(--accent); }

.product-image-wrap {
  width: 100%; height: 360px; overflow: hidden; background: #f5f3ef;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.product-image-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}
.product-card:hover .product-image-wrap img { transform: scale(1.06); }

.multi-img-badge {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.6); color: #fff; padding: 0.25rem 0.6rem;
  font-size: 0.65rem; letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.product-info { padding: 1.4rem 0.5rem 3rem; }
.product-name {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 500;
  margin-bottom: 0.5rem; color: var(--primary);
  letter-spacing: 0.5px;
}
.product-desc {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.7rem;
  line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  font-weight: 300;
}
.product-finish-tag {
  display: inline-block; padding: 0.2rem 0.7rem;
  background: transparent; color: var(--text-muted);
  font-size: 0.6rem; margin-bottom: 0.6rem;
  border: 1px solid var(--border);
  letter-spacing: 1px; text-transform: uppercase;
}
.product-price {
  font-size: 1.3rem; font-weight: 600;
  color: var(--price-color, var(--primary));
  letter-spacing: 0.5px;
  font-family: var(--font-body);
}
.product-sku {
  display: inline-block; font-size: 0.65rem; color: var(--text-muted);
  margin-top: 0.4rem; letter-spacing: 1px; font-weight: 300;
}

.compare-btn {
  position: absolute; bottom: 0.8rem; left: 0.8rem;
  padding: 0.3rem 0.8rem; border: 1px solid var(--border);
  background: rgba(255,255,255,0.9); color: var(--text-muted);
  font-size: 0.6rem; font-family: var(--font-body); cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 1px; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.compare-btn:hover { border-color: var(--primary); color: var(--primary); }
.compare-btn.compared { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== Image Bubble — Fullscreen cinematic ===== */
.bubble-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 2rem;
  backdrop-filter: blur(30px);
  opacity: 0;
  pointer-events: none;
}
/* NO transition and NO animation here — both stall at the first frame (opacity 0
   → invisible bubble) on the kiosk WebView under load/offline. The bubble must
   appear INSTANTLY and unconditionally; the fade is not worth the failure mode. */
.bubble-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.bubble {
  position: relative; background: rgba(20,30,50,0.95);
  padding: 1.5rem; max-width: 500px; max-height: 90vh; width: 90vw;
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; align-items: center;
  overflow-y: auto;
  /* bubbleSlideUp animation removed — stalls at its opacity:0 first frame on the
     kiosk WebView (same failure as the overlay), leaving the bubble invisible. */
}

.bubble-gallery {
  display: flex; align-items: center; gap: 1.5rem; position: relative;
}
.bubble-gallery img {
  max-width: 100%; max-height: 55vh; object-fit: contain;
  border-radius: 8px; background: #fff;
}
.gallery-arrow {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem; width: 52px; height: 52px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.gallery-arrow:hover {
  background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.4);
}

.gallery-dots {
  display: flex; gap: 10px; margin-top: 1.5rem; justify-content: center;
}
.gallery-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.25); cursor: pointer;
  transition: all var(--transition);
}
.gallery-dot.active { background: #fff; transform: scale(1.3); }

.bubble-info {
  text-align: center; margin-top: 1.5rem; color: #fff; padding: 0 1rem;
}
.bubble-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; margin-bottom: 0.4rem; font-weight: 400;
  letter-spacing: 2px; color: #fff;
}
.bubble-price {
  font-size: 1.6rem !important;
  color: var(--price-color, #fff) !important;
  font-weight: 500;
  letter-spacing: 1px;
}

.bubble-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: rgba(0,0,0,0.55); border: none;
  color: #fff; font-size: 1.4rem; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); z-index: 1001;
}
.bubble-close:hover {
  background: rgba(0,0,0,0.8);
}

/* ===== Comparison Modal ===== */
.comparison-modal {
  position: fixed; inset: 0; background: rgba(255,255,255,0.98);
  display: flex; flex-direction: column; z-index: 1100; padding: 2rem;
  animation: fadeIn 0.3s; backdrop-filter: blur(20px);
}
.comparison-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.comparison-header h2 {
  font-family: var(--font-display);
  color: var(--primary); font-size: 1.6rem; font-weight: 500;
}
.comparison-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem; overflow-y: auto; flex: 1;
}
.comparison-card {
  background: #fff;
  padding: 1.5rem; text-align: center;
  border: 1px solid var(--border);
}
.comparison-card img {
  width: 100%; height: 200px; object-fit: cover; margin-bottom: 1rem;
}
.comparison-card h3 {
  font-family: var(--font-display);
  color: var(--primary); font-size: 1rem; margin-bottom: 0.8rem; font-weight: 500;
}
.comp-desc { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 0.8rem; }
.comp-specs { width: 100%; margin-bottom: 1rem; }
.comp-specs td {
  padding: 0.5rem 0.5rem; font-size: 0.85rem; color: var(--text);
  border-bottom: 1px solid var(--border-light); text-align: right;
}
.comp-specs td:first-child { color: var(--text-muted); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; }
.comp-price { color: var(--price-color, var(--primary)) !important; font-weight: 600; font-size: 1.1rem !important; }
.lightbox-close {
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text-muted);
}
.lightbox-close:hover { color: var(--primary); }

/* ===== Loading ===== */
.loading-spinner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 5rem; color: var(--text-muted);
}
.spinner {
  width: 36px; height: 36px; border: 1.5px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ======================================================
   SHOPPING CART
   ====================================================== */
.cart-toggle {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; background: var(--primary); color: #fff;
  border: none; font-size: 1rem; cursor: pointer;
  position: relative; font-family: var(--font-body);
  transition: all 0.3s var(--ease-out-expo);
}
.cart-toggle:hover { background: #333; }
.refresh-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  padding: 0.5rem;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.refresh-btn:hover { background: #333; color: #fff; }
.refresh-btn.spinning { animation: spin 0.6s ease; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cart-bounce { animation: cartBounce 0.4s ease; }
@keyframes cartBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.cart-badge {
  background: var(--accent); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  position: absolute; top: -4px; left: -4px;
}

.add-cart-btn {
  position: absolute; bottom: 0.8rem; right: 0.8rem;
  padding: 0.3rem 0.8rem; border: 1px solid var(--border);
  background: rgba(255,255,255,0.9); color: var(--text-muted);
  font-size: 0.6rem; font-family: var(--font-body); cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 1px; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.add-cart-btn:hover { border-color: var(--accent); color: var(--accent); }
.add-cart-btn.in-cart { background: var(--accent); color: #fff; border-color: var(--accent); }

.bubble-desc {
  color: rgba(255,255,255,0.6); font-size: 0.85rem; margin: 0.3rem 0;
}
.bubble-sku {
  color: rgba(255,255,255,0.4); font-size: 0.75rem; margin: 0.2rem 0 0.5rem;
}
.bubble-actions {
  display: flex; gap: 0.5rem; margin-top: 1rem;
}
.bubble-btn {
  flex: 1; padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; font-size: 0.85rem; font-family: var(--font-body);
  cursor: pointer; border-radius: 8px;
  transition: all 0.3s var(--ease-out-expo);
}
.bubble-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }
.bubble-btn-cart.added { background: var(--accent); border-color: var(--accent); }
.bubble-btn-compare.compared { background: #2563eb; border-color: #2563eb; }

/* Cart overlay - white for screenshot-friendliness */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1050; padding: 1rem;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}
.cart-container {
  background: #fff; color: #1a1a1a;
  width: 100%; max-width: 700px; max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.cart-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 500; color: #1a1a1a;
  margin: 0;
}
.cart-header-info { display: flex; flex-direction: column; gap: 0.2rem; }
.cart-store-name {
  font-size: 0.7rem; color: #999;
  letter-spacing: 1px; text-transform: uppercase;
}
.cart-close-btn {
  background: none; border: none; font-size: 1.8rem;
  cursor: pointer; color: #999; padding: 0.2rem 0.5rem;
  transition: color 0.2s;
}
.cart-close-btn:hover { color: #333; }

.cart-body {
  flex: 1; overflow-y: auto; padding: 0;
}

.cart-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 4rem 2rem; color: #ccc;
  text-align: center;
}
.cart-empty p:first-child { font-size: 3rem; margin-bottom: 0.5rem; }
.cart-empty p:nth-child(2) {
  font-family: var(--font-display);
  font-size: 1.2rem; color: #999;
}
.cart-empty-sub { font-size: 0.8rem; color: #bbb; margin-top: 0.3rem; }

.cart-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}
.cart-item:hover { background: #fafafa; }

.cart-item-img {
  width: 70px; height: 70px; object-fit: contain;
  background: #f5f5f5; border: 1px solid #eee;
  flex-shrink: 0;
}
.cart-item-details {
  flex: 1; min-width: 0;
}
.cart-item-details h4 {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 500; color: #1a1a1a;
  margin-bottom: 0.2rem;
}
.cart-item-finish {
  display: inline-block; padding: 0.1rem 0.5rem;
  background: #f0f0f0; color: #777;
  font-size: 0.6rem; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 0.4rem;
}
.cart-item-barcode-wrap {
  margin-top: 0.3rem;
}
.cart-barcode {
  max-width: 160px; height: auto;
}

.cart-item-actions {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  flex-shrink: 0;
}
.cart-qty-control {
  display: flex; align-items: center; gap: 0;
  border: 1px solid #ddd;
}
.cart-qty-btn {
  background: #f5f5f5; border: none;
  width: 30px; height: 30px;
  font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.cart-qty-btn:hover { background: #e0e0e0; }
.cart-qty-num {
  width: 35px; text-align: center;
  font-weight: 600; font-size: 0.9rem;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  height: 30px; display: flex; align-items: center; justify-content: center;
}
.cart-item-price {
  font-weight: 700; font-size: 1rem;
  color: var(--accent-dark);
}
.cart-item-remove {
  background: none; border: none;
  color: #ccc; font-size: 0.9rem; cursor: pointer;
  transition: color 0.2s;
}
.cart-item-remove:hover { color: #c62828; }

.cart-footer {
  padding: 1rem 1.5rem;
  border-top: 2px solid #1a1a1a;
  background: #fafafa;
  display: flex; justify-content: space-between; align-items: center;
}
.cart-total-row {
  display: flex; align-items: baseline; gap: 0.5rem;
}
.cart-total-label {
  font-size: 0.9rem; color: #666;
}
.cart-total-price {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700; color: #1a1a1a;
}
.cart-footer-actions { display: flex; gap: 0.5rem; }

@media (max-width: 768px) {
  .cart-container { max-height: 95vh; }
  .cart-item { flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 1rem; }
  .cart-item-img { width: 55px; height: 55px; }
  .cart-barcode { max-width: 120px; }
}

@media (pointer: coarse) {
  .cart-toggle { padding: 0.6rem 1.2rem; font-size: 1.2rem; }
  .add-cart-btn { padding: 0.4rem 1rem; font-size: 0.65rem; }
  .cart-qty-btn { width: 40px; height: 40px; }
  .cart-qty-num { width: 40px; height: 40px; }
}

/* ======================================================
   DEALER THEME — Gessi luxury dark aesthetic
   ====================================================== */
.dealer-theme {
  background: #0d0d0d;
}
.dealer-theme .admin-main {
  background: #0d0d0d;
  color: #e8e6e1;
}
.dealer-theme .tab-header {
  border-bottom-color: rgba(255,255,255,0.08);
}
.dealer-theme .tab-header h1 {
  color: #fff;
  font-weight: 400;
  letter-spacing: 3px;
}
.dealer-theme .filter-bar select,
.dealer-theme .filter-bar input[type="text"] {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: #e8e6e1;
}
.dealer-theme .filter-bar select:focus,
.dealer-theme .filter-bar input:focus {
  border-color: var(--accent);
}

/* Dealer bulk price bar */
.dealer-bulk-bar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.bulk-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bulk-icon {
  font-size: 1.2rem;
}
.bulk-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 500;
}
.bulk-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex: 1;
}
.dealer-theme .dealer-bulk-bar select,
.dealer-theme .dealer-bulk-bar input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #e8e6e1;
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  font-family: var(--font-body);
  width: 140px;
}
.dealer-theme .dealer-bulk-bar select:focus,
.dealer-theme .dealer-bulk-bar input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Dealer data table - dark */
.dealer-theme .data-table {
  background: transparent;
}
.dealer-theme .data-table th {
  color: var(--accent);
  border-bottom-color: rgba(255,255,255,0.15);
  font-size: 0.65rem;
  letter-spacing: 2px;
}
.dealer-theme .data-table td {
  color: rgba(255,255,255,0.8);
  border-bottom-color: rgba(255,255,255,0.04);
}
.dealer-theme .data-table tr:hover td {
  background: rgba(255,255,255,0.02);
}
.dealer-theme .data-table .base-price {
  color: rgba(255,255,255,0.35);
  font-weight: 300;
}
.dealer-theme .thumb {
  border-color: rgba(255,255,255,0.08);
  border-radius: 4px;
}
.dealer-theme .price-input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.dealer-theme .price-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184,151,126,0.15);
}
.dealer-theme .price-input::placeholder {
  color: rgba(255,255,255,0.2);
}

/* Store preview container */
.store-preview-container {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
}
.store-preview-frame {
  min-height: 700px;
  position: relative;
}
.store-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  color: rgba(255,255,255,0.3);
  gap: 1rem;
}
.preview-icon {
  font-size: 3rem;
  opacity: 0.4;
}
.store-preview-placeholder p {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 300;
}
.dealer-theme .store-iframe {
  width: 100%;
  height: 700px;
  border: none;
}

/* Dealer cards */
.dealer-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem;
  max-width: 500px;
}
.dealer-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.dealer-card-header .card-icon {
  font-size: 1.4rem;
}
.dealer-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 1px;
}
.dealer-card-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-weight: 300;
}

/* Logo preview */
.logo-preview-area {
  margin-bottom: 2rem;
  padding: 2rem;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  text-align: center;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.current-logo-img {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
}
.no-logo-msg {
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.logo-upload-form .form-group label {
  color: rgba(255,255,255,0.4);
}
.logo-upload-form .form-group input[type="file"] {
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}

/* Color picker */
.custom-color-row {
  margin-top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.custom-color-row label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
}
.custom-color-row input[type="color"] {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  background: transparent;
  cursor: pointer;
  padding: 2px;
}

/* Price preview box */
.price-preview-box {
  margin-top: 2rem;
  padding: 2rem;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.preview-label {
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-weight: 300;
}
.preview-price {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--font-body);
}

/* Dealer buttons override */
.dealer-theme .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.dealer-theme .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.dealer-theme .btn-secondary {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.dealer-theme .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.dealer-theme .btn-accent {
  background: var(--accent);
  border-color: var(--accent);
}

/* Color options dark theme */
.dealer-theme .color-opt {
  border-color: rgba(255,255,255,0.1);
}
.dealer-theme .color-opt:hover {
  transform: scale(1.15);
}
.dealer-theme .color-opt.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

/* ===== Dealer Stats ===== */
.dealer-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.dealer-stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.8rem 1rem;
  text-align: center;
  transition: all 0.4s var(--ease-out-expo);
}
.dealer-stat-card:hover {
  border-color: rgba(184,151,126,0.3);
  background: rgba(255,255,255,0.05);
}
.dealer-stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  opacity: 0.7;
}
.dealer-stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #fff;
  font-weight: 600;
  line-height: 1;
}
.dealer-stat-card .stat-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
}

.dealer-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.dealer-chart-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem;
}
.dealer-chart-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.stats-period-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #e8e6e1;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
}
.stats-period-select:focus {
  outline: none;
  border-color: var(--accent);
}

.dealer-theme .sku-cell {
  color: rgba(255,255,255,0.3);
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.dealer-theme .click-count {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
}

.empty-state-dark {
  text-align: center;
  padding: 3rem;
  color: rgba(255,255,255,0.25);
  font-size: 0.85rem;
  letter-spacing: 1px;
  border: 1px dashed rgba(255,255,255,0.08);
}

/* Sync Status Indicator */
.sync-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.4s ease;
  white-space: nowrap;
}
.sync-status .sync-icon {
  font-size: 1.1rem;
}
.sync-status.syncing {
  background: rgba(255,180,0,0.15);
  color: #f5c842;
  border: 1px solid rgba(255,180,0,0.3);
  animation: syncPulse 1.2s ease-in-out infinite;
}
.sync-status.sync-ok {
  background: rgba(0,200,80,0.15);
  color: #4ade80;
  border: 1px solid rgba(0,200,80,0.3);
}
.sync-status.sync-warning {
  background: rgba(255,160,0,0.15);
  color: #fbbf24;
  border: 1px solid rgba(255,160,0,0.3);
}
.sync-status.sync-error {
  background: rgba(255,60,60,0.15);
  color: #f87171;
  border: 1px solid rgba(255,60,60,0.3);
}
@keyframes syncPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@media (max-width: 768px) {
  .dealer-charts-row {
    grid-template-columns: 1fr;
  }
  .dealer-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .admin-sidebar { width: 60px; overflow: hidden; }
  .admin-sidebar .sidebar-header { padding: 1rem 0.5rem; }
  .admin-sidebar .sidebar-logo { height: 20px; }
  .admin-sidebar .sidebar-header p { display: none; }
  .admin-sidebar .nav-item { font-size: 0.7rem; padding: 0.6rem; justify-content: center; }
  .admin-main { margin-right: 60px; padding: 1rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .product-image-wrap { height: 220px; }
  .product-name { font-size: 0.9rem; }
  .product-price { font-size: 1rem; }
  .store-brand h1 { font-size: 1.4rem; letter-spacing: 4px; }
  .store-header { padding: 1rem 1.5rem; }
  .store-content { padding: 2rem 1.5rem; }
  .landing-brand { font-size: 3rem; letter-spacing: 8px; }
  .landing-brand-logo { height: 50px; }
  .landing-cta { padding: 1rem 2.5rem; }
  .comparison-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .bulk-price-bar { flex-direction: column; align-items: stretch; }
  .bulk-price-bar input, .bulk-price-bar select { width: 100%; }
  .section-title { font-size: 1.4rem; }
  .finish-filter { padding: 0.6rem 1.5rem; }
  .category-nav { gap: 0; }
}

@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

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

@media (pointer: coarse) {
  .product-card { min-height: 340px; }
  .cat-btn { padding: 1.2rem 2rem; font-size: 0.75rem; }
  .bubble-close { width: 60px; height: 60px; font-size: 2rem; }
  .gallery-arrow { width: 60px; height: 60px; font-size: 2rem; }
  .compare-btn { padding: 0.4rem 1rem; font-size: 0.65rem; }
}

/* ===== KIOSK MODE: No animations, no blur — fast on weak hardware ===== */
body.kiosk-mode *,
body.kiosk-mode *::before,
body.kiosk-mode *::after {
  animation: none !important;
  transition: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.kiosk-mode .product-card {
  opacity: 1 !important;
  transform: none !important;
}
body.kiosk-mode .bubble-overlay {
  background: rgba(0,0,0,0.95);
}
body.kiosk-mode .bubble-overlay.active {
  opacity: 1;
}
body.kiosk-mode .landing-overlay {
  backdrop-filter: none;
}
body.kiosk-mode .landing-video-wrap video {
  transform: none !important;
}
body.kiosk-mode .store-header {
  backdrop-filter: none;
  background: rgba(13,26,42,0.98);
}

/* ===== V2: Store Filters ===== */
.store-filters {
  padding: 0.6rem 2rem;
  background: rgba(13,26,42,0.7);
  backdrop-filter: blur(10px);
}
.store-search-input {
  width: 100%;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  outline: none;
}
.store-search-input::placeholder { color: rgba(255,255,255,0.4); }
.store-search-input:focus { border-color: var(--accent); }
.filter-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.store-filter-select {
  padding: 0.4rem 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  min-width: 120px;
}
.store-filter-select option { background: #1a1a1a; color: #fff; }
.price-range-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.price-range-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  white-space: nowrap;
}
.price-range-wrap input[type="range"] {
  width: 80px;
  accent-color: var(--accent);
}

/* ===== V2: Product Tags ===== */
.product-tags {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.product-tag {
  padding: 0.2rem 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tag-new { background: #10b981; color: #fff; }
.tag-featured { background: #f59e0b; color: #fff; }
.tag-sale { background: #ef4444; color: #fff; }

/* ===== V2: Sale Price ===== */
.price-original {
  text-decoration: line-through;
  color: rgba(255,255,255,0.4);
  font-size: 0.85em;
  margin-left: 0.3rem;
}
.price-sale {
  color: #ef4444;
  font-weight: 700;
  font-size: 1.1em;
}

/* ===== V2: Brand Tag ===== */
.product-brand-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

/* ===== V2: Featured Section ===== */
.featured-section .section-title {
  color: #f59e0b;
}

body.kiosk-mode .store-filters { backdrop-filter: none; background: rgba(13,26,42,0.95); }

/* ===== V3: Category Selection Screen ===== */
.category-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f5f7;
  background-size: cover;
  background-position: center;
}
.category-screen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(244,245,247,0.82);
}
.category-screen[style*="background-image"] .category-screen-overlay {
  background: rgba(13,26,42,0.55);
}
.category-screen-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 1100px;
  width: 100%;
  max-height: 100vh;
  overflow-y: auto;
}
.cat-screen-logo {
  max-height: 70px;
  margin: 0 auto 1rem;
}
.cat-screen-title {
  font-family: var(--font-display, inherit);
  font-size: 2.2rem;
  color: #1a202c;
  margin-bottom: 0.3rem;
}
.cat-screen-subtitle {
  color: #718096;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.category-screen[style*="background-image"] .cat-screen-title { color: #fff; }
.category-screen[style*="background-image"] .cat-screen-subtitle { color: rgba(255,255,255,0.85); }
.category-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.category-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.4rem 2rem;
  min-width: 170px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  font-family: inherit;
}
.category-card:hover, .category-card:active {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border-color: #38a89d;
}
.category-card-all {
  border: 2px solid #38a89d;
}
.cat-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a202c;
}
.cat-card-count {
  font-size: 0.85rem;
  color: #a0aec0;
}
@media (max-width: 600px) {
  .cat-screen-title { font-size: 1.6rem; }
  .category-card { min-width: 130px; padding: 1rem 1.2rem; }
}

/* ===== V3: Store — hide cart & comparison ===== */
.compare-btn, .add-cart-btn, .cart-toggle, .compare-toggle, .bubble-actions { display: none !important; }

/* ===== V3: Store — prominent home button ===== */
.home-btn {
  background: var(--price-color, #c8a45c);
  color: #0d1a2a;
  border: none;
  border-radius: 24px;
  padding: 0.55rem 1.3rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.home-btn:active { transform: scale(0.96); }

/* ===== V3: Dealer portal — light theme override ===== */
.dealer-theme { background: #f4f5f7; }
.dealer-theme .admin-main { background: #f4f5f7; color: #1a202c; }
.dealer-theme .tab-header { border-bottom-color: #e2e8f0; }
.dealer-theme .tab-header h1 { color: #1a202c; }
.dealer-theme .filter-bar select,
.dealer-theme .filter-bar input[type="text"] { background: #fff; border-color: #e2e8f0; color: #1a202c; }
.dealer-theme .dealer-bulk-bar { background: #fff; border-color: #e2e8f0; border-radius: 10px; }
.dealer-theme .dealer-bulk-bar select,
.dealer-theme .dealer-bulk-bar input { background: #fff; border: 1px solid #e2e8f0; color: #1a202c; }
.dealer-theme .data-table { background: #fff; border-radius: 10px; }
.dealer-theme .data-table th { color: #718096; border-bottom-color: #e2e8f0; }
.dealer-theme .data-table td { color: #2d3748; border-bottom-color: #edf2f7; }
.dealer-theme .data-table tr:hover td { background: #f7fafc; }
.dealer-theme .data-table .base-price { color: #a0aec0; }
.dealer-theme .thumb { border-color: #e2e8f0; }
.dealer-theme .price-input { background: #fff; border-color: #cbd5e0; color: #1a202c; }
.dealer-theme .price-input::placeholder { color: #a0aec0; }
.dealer-theme .dealer-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.dealer-theme .dealer-card-header h3 { color: #1a202c; }
.dealer-theme .dealer-card-desc { color: #718096; }
.dealer-theme .dealer-stat-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.dealer-theme .dealer-stat-card .stat-number { color: #1a202c; }
.dealer-theme .dealer-stat-card .stat-label { color: #718096; }
.dealer-theme .dealer-chart-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; }
.dealer-theme .dealer-chart-card h3 { color: #1a202c; }
.dealer-theme .section-heading { color: #1a202c; }
.dealer-theme .empty-state-dark { color: #718096; background: #fff; border: 1px dashed #e2e8f0; }
.dealer-theme .logo-preview-area { background: #f7fafc; border: 1px dashed #e2e8f0; }
.dealer-theme .no-logo-msg { color: #a0aec0; }
.dealer-theme .form-group label { color: #4a5568; }
.dealer-theme .price-preview-box { background: #f7fafc; border: 1px solid #e2e8f0; }
.dealer-theme .preview-label { color: #718096; }
.dealer-theme .custom-color-row label { color: #4a5568; }
.dealer-theme .store-preview-placeholder { background: #fff; border: 1px dashed #e2e8f0; }
.dealer-theme .store-preview-placeholder p { color: #718096; }

/* ===== V3: Dealer portal — floating save button ===== */
.dealer-theme #saveBtn {
  position: fixed;
  bottom: 1.6rem;
  left: 1.6rem;
  z-index: 200;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ===== V3: Dealer portal — featured & promotions tab ===== */
.dealer-theme .promo-search {
  width: 100%;
  max-width: 420px;
  padding: 0.6rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  margin-bottom: 1rem;
  background: #fff;
  color: #1a202c;
}
.feat-btn {
  font-size: 1.3rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.35;
}
.feat-btn.on { opacity: 1; }
.promo-price-input { width: 110px; }
.promo-date-input {
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font-family: inherit;
  background: #fff;
  color: #1a202c;
}
.sale-active-badge { background: #fee2e2; color: #b91c1c; padding: 0.15rem 0.6rem; border-radius: 10px; font-size: 0.75rem; font-weight: 700; }

/* ===== V3: Store — hide search & price range ===== */
.store-search-input, .price-range-wrap { display: none !important; }

/* ===== V3: Sale price — strikethrough original + blinking red sale ===== */
.price-original {
  text-decoration: line-through;
  color: #9aa3ad;
}
@keyframes salePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.price-sale {
  color: #e11d1d;
  font-weight: 800;
  animation: salePulse 1.4s ease-in-out infinite;
}

/* ===== V3: Bubble related products ===== */
.bubble-related {
  width: 100%;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.bubble-related-title {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 0.8rem;
}
.bubble-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.related-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  transition: transform 0.15s, background 0.15s;
}
.related-card:active, .related-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
}
.related-card img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  background: #fff;
}
.related-name {
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-price {
  color: var(--price-color, #c8a45c);
  font-size: 0.8rem;
  font-weight: 700;
}

/* =========================================================================
   V4 — CLEAN LIGHT REDESIGN (store customer experience)
   Scoped to .store-page so admin/dealer portals are untouched.
   ========================================================================= */
.store-page {
  --s-bg: #f2f4f7;
  --s-surface: #ffffff;
  --s-ink: #131820;
  --s-ink-soft: #58616e;
  --s-ink-mute: #98a1ae;
  --s-line: #e8ecf1;
  --s-accent: #b8977e;         /* warm brand accent, kept subtle */
  --s-ink-btn: #171c24;        /* primary interactive fill */
  --s-r-card: 18px;
  --s-r-btn: 14px;
  --s-shadow-sm: 0 1px 2px rgba(19,24,32,.04), 0 4px 14px rgba(19,24,32,.05);
  --s-shadow-md: 0 6px 20px rgba(19,24,32,.08), 0 18px 44px rgba(19,24,32,.06);
  --s-shadow-lg: 0 12px 34px rgba(19,24,32,.12), 0 30px 70px rgba(19,24,32,.10);
  --s-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--s-bg);
  color: var(--s-ink);
}

/* ---- Custom scrollbars (thin, calm) ---- */
.store-page ::-webkit-scrollbar { width: 10px; height: 10px; }
.store-page ::-webkit-scrollbar-thumb { background: #cdd4dd; border-radius: 999px; border: 2px solid var(--s-bg); }
.store-page ::-webkit-scrollbar-thumb:hover { background: #b6bfca; }
.store-page ::-webkit-scrollbar-track { background: transparent; }

/* ---- Header ---- */
.store-page .store-header {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  padding: 0.9rem 2.5rem;
  border-bottom: 1px solid var(--s-line);
  box-shadow: 0 1px 0 rgba(19,24,32,.02);
}
.store-page .store-brand { gap: 0.9rem; }
.store-page .header-logo { width: 52px; height: 52px; }
.store-page .store-subtitle {
  font-size: 0.9rem; color: var(--s-ink-soft);
  letter-spacing: 0; text-transform: none; font-weight: 600;
}

/* ---- Home button (primary pill) ---- */
.store-page .home-btn {
  background: var(--s-ink-btn); color: #fff;
  border-radius: 999px; padding: 0.7rem 1.5rem;
  font-size: 1rem; font-weight: 600; letter-spacing: 0;
  box-shadow: var(--s-shadow-sm);
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 48px; transition: transform .2s var(--s-ease), box-shadow .2s var(--s-ease);
}
.store-page .home-btn:hover { box-shadow: var(--s-shadow-md); transform: translateY(-1px); }
.store-page .home-btn:active { transform: scale(0.97); }
.store-page .refresh-btn {
  background: #eef1f5; border: none; color: var(--s-ink-soft);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; transition: background .2s;
}
.store-page .refresh-btn:hover { background: #e3e8ee; }

/* ---- Category nav → pill tabs ---- */
.store-page .category-nav {
  background: transparent; gap: 0.5rem;
  padding: 1rem 2.5rem; border-bottom: 1px solid var(--s-line);
}
.store-page .cat-btn {
  border: 1px solid var(--s-line); border-radius: 999px;
  padding: 0.7rem 1.5rem; background: var(--s-surface);
  color: var(--s-ink-soft); font-size: 1rem; font-weight: 600;
  letter-spacing: 0; text-transform: none; min-height: 46px;
  transition: all .25s var(--s-ease);
}
.store-page .cat-btn:hover { border-color: #d0d7e0; color: var(--s-ink); }
.store-page .cat-btn.active {
  background: var(--s-ink-btn); border-color: var(--s-ink-btn); color: #fff;
  box-shadow: var(--s-shadow-sm);
}

/* ---- Filter pills (finish / brand) ---- */
.store-page .finish-filter {
  background: transparent; padding: 0.3rem 2.5rem 0.9rem;
  border-bottom: none; gap: 0.5rem; align-items: center;
}
.store-page .finish-label {
  font-size: 0.9rem; color: var(--s-ink-mute);
  letter-spacing: 0; text-transform: none; font-weight: 600;
}
.store-page .finish-btn {
  border: 1px solid var(--s-line); border-radius: 999px;
  padding: 0.55rem 1.25rem; background: var(--s-surface);
  color: var(--s-ink-soft); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0; min-height: 42px; transition: all .25s var(--s-ease);
}
.store-page .finish-btn:hover { border-color: #d0d7e0; color: var(--s-ink); background: var(--s-surface); }
.store-page .finish-btn.active {
  background: var(--s-ink-btn); border-color: var(--s-ink-btn); color: #fff;
}
.store-page .store-filter-select {
  border: 1px solid var(--s-line); border-radius: var(--s-r-btn);
  padding: 0.6rem 1rem; background: var(--s-surface); color: var(--s-ink);
  font-size: 0.95rem; font-family: var(--font-body); min-height: 44px; cursor: pointer;
}
.store-page .store-filters { background: transparent; padding-top: 0.5rem; }

/* ---- Content + section titles ---- */
.store-page .store-content { padding: 2.5rem 2.5rem 5rem; }
.store-page .product-section { margin-bottom: 3.5rem; }
.store-page .section-title {
  font-family: var(--font-body);
  font-size: 1.5rem; font-weight: 700; color: var(--s-ink);
  letter-spacing: -0.01em; border-bottom: none;
  padding-bottom: 0; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.store-page .section-title::before {
  content: ''; width: 4px; height: 1.4rem; border-radius: 4px;
  background: var(--s-accent);
}
.store-page .featured-section .section-title::before { background: #e0a83c; }
.store-page .featured-section .section-title { color: var(--s-ink); }

/* ---- Product cards ---- */
.store-page .product-grid { gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.store-page .product-card {
  background: var(--s-surface); border-radius: var(--s-r-card);
  border: 1px solid var(--s-line); box-shadow: var(--s-shadow-sm);
  overflow: hidden; transition: transform .35s var(--s-ease), box-shadow .35s var(--s-ease);
}
.store-page .product-card:hover { transform: translateY(-6px); box-shadow: var(--s-shadow-md); }
.store-page .product-card.card-compared { box-shadow: 0 0 0 2px var(--s-accent); }
.store-page .product-image-wrap {
  height: 260px; background: #f6f7f9; padding: 1.2rem;
}
.store-page .product-image-wrap img { object-fit: contain; mix-blend-mode: multiply; }
.store-page .product-card:hover .product-image-wrap img { transform: scale(1.05); }
.store-page .product-info { padding: 1.1rem 1.2rem 1.3rem; }
.store-page .product-name {
  font-family: var(--font-body); font-size: 1.05rem; font-weight: 700;
  color: var(--s-ink); letter-spacing: -0.01em; line-height: 1.35; margin-bottom: 0.35rem;
}
.store-page .product-desc { font-size: 0.85rem; color: var(--s-ink-soft); font-weight: 400; margin-bottom: 0.6rem; }
.store-page .product-finish-tag, .store-page .product-brand-tag {
  border-radius: 999px; border: 1px solid var(--s-line);
  color: var(--s-ink-soft); background: #f6f7f9;
  font-size: 0.72rem; text-transform: none; letter-spacing: 0; padding: 0.2rem 0.7rem;
}
.store-page .product-price { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.5rem; }

/* ---- Tags (new / featured / sale) ---- */
.store-page .product-tags { top: 12px; right: 12px; left: auto; gap: 0.35rem; }
.store-page .product-tag {
  border-radius: 999px; padding: 0.28rem 0.7rem; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0; box-shadow: var(--s-shadow-sm);
}
.store-page .tag-new { background: #10b981; color: #fff; }
.store-page .tag-featured { background: #e0a83c; color: #fff; }
.store-page .tag-sale { background: #ef4444; color: #fff; }
.store-page .multi-img-badge {
  border-radius: 999px; background: rgba(19,24,32,.7); backdrop-filter: blur(6px);
  bottom: 12px; right: 12px; padding: 0.28rem 0.7rem;
}

/* ---- Landing screen (light, media in frosted card) ---- */
.store-page .landing-screen { background: #eceff3; }
.store-page .landing-video-wrap video { filter: brightness(0.9) contrast(1.03); }
.store-page .landing-overlay {
  gap: 0; background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(26px);
  border: 1px solid rgba(255,255,255,0.8);
  padding: 3.5rem 3.5rem 3rem; border-radius: 28px;
  box-shadow: var(--s-shadow-lg);
}
.store-page .landing-logo { margin-bottom: 2rem; }
.store-page .landing-logo img { max-height: 110px; margin-bottom: 0; }
.store-page .landing-brand-logo { filter: none; height: 56px; }
.store-page .landing-subtitle {
  color: var(--s-ink-soft); letter-spacing: 0; text-transform: none;
  font-weight: 600; font-size: 1.05rem; margin-top: 1rem;
}
.store-page .landing-cta {
  margin-top: 2.5rem; background: var(--s-ink-btn); border: none;
  color: #fff; border-radius: 999px; padding: 1.15rem 3rem; gap: 0.5rem;
  box-shadow: var(--s-shadow-md); letter-spacing: 0;
}
.store-page .landing-cta:hover, .store-page .landing-cta:active {
  background: #000; color: #fff; transform: translateY(-3px);
  box-shadow: var(--s-shadow-lg);
}
.store-page .cta-icon { opacity: 1; font-size: 1.6rem; }
.store-page .cta-text { letter-spacing: 0; text-transform: none; font-size: 1.05rem; font-weight: 600; }
.store-page .cta-pulse { border-color: rgba(19,24,32,0.12); }

/* ---- Category selection screen ---- */
.store-page .category-screen, .category-screen { background-color: #eceff3; }
.category-screen-overlay { background: rgba(236,239,243,0.86); }
.cat-screen-title { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.02em; color: #131820; }
.cat-screen-subtitle { color: #58616e; font-weight: 500; }
.category-card {
  border-radius: 18px; border: 1px solid #e8ecf1; box-shadow: 0 1px 2px rgba(19,24,32,.04), 0 6px 18px rgba(19,24,32,.05);
  padding: 1.6rem 2.2rem; min-width: 190px; transition: transform .25s cubic-bezier(0.22,1,0.36,1), box-shadow .25s;
}
.category-card:hover, .category-card:active {
  transform: translateY(-5px); box-shadow: 0 14px 34px rgba(19,24,32,.14); border-color: #d7dde5;
}
.category-card-all { border: 2px solid #171c24; }
.cat-card-name { font-weight: 700; color: #131820; font-size: 1.2rem; }
.cat-card-count { color: #98a1ae; }

/* ---- Product bubble → light ---- */
.store-page .bubble-overlay, .bubble-overlay { background: rgba(19,24,32,0.88); backdrop-filter: blur(12px); }
.bubble {
  background: #ffffff !important; border: 1px solid #e8ecf1 !important;
  border-radius: 24px !important; box-shadow: 0 30px 80px rgba(19,24,32,.28);
  padding: 1.2rem !important;
}
.bubble-gallery { background: #f6f7f9; border-radius: 16px; }
.bubble-info { color: #131820 !important; }
.bubble-info h3 { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em; color: #131820; }
.bubble-price { color: var(--price-color, #131820); font-weight: 800; }
.bubble-desc { color: #58616e; }
.bubble-sku { color: #98a1ae; }
.bubble-close {
  background: #eef1f5 !important; color: #131820 !important; border: none !important;
  width: 44px; height: 44px; border-radius: 50%;
}
.bubble-related { border-top-color: #e8ecf1; }
.bubble-related-title { color: #58616e; font-weight: 700; }
.related-card { background: #f6f7f9; border-color: #e8ecf1; }
.related-card:hover, .related-card:active { background: #eef1f5; }
.related-card img { background: #fff; }
.related-name { color: #131820; }
.related-price { color: var(--price-color, #b8977e); }

/* ---- Mobile / kiosk portrait tweaks ---- */
@media (max-width: 768px) {
  .store-page .store-content { padding: 1.5rem 1.2rem 4rem; }
  .store-page .category-nav, .store-page .finish-filter { padding-left: 1.2rem; padding-right: 1.2rem; }
  .store-page .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.9rem; }
  .store-page .product-image-wrap { height: 180px; padding: 0.8rem; }
  .cat-screen-title { font-size: 1.7rem; }
}

/* =========================================================================
   V5 — Softer accent (eucalyptus teal) + dramatic clean landing
   ========================================================================= */
/* Recolor every primary/active control from near-black to soft teal via the token */
.store-page { --s-ink-btn: #3a807a; }
.store-page .cat-btn.active,
.store-page .finish-btn.active {
  background: #3a807a; border-color: #3a807a; color: #fff;
}
.store-page .home-btn { background: #3a807a; }
.store-page .home-btn:hover { background: #316b66; }
.category-card-all { border: 2px solid #3a807a; }
.category-card:hover, .category-card:active { border-color: #3a807a; }

/* ---- Dramatic, clean landing ---- */
.store-page .landing-screen {
  background: radial-gradient(120% 120% at 15% 15%, #f4f1 , #eef2f1 40%, #e7efee 100%);
  background-color: #eef2f1;
  overflow: hidden;
}
/* Soft aurora glows for depth (only read when no video covers them) */
.store-page .landing-screen::before,
.store-page .landing-screen::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px); z-index: 0;
  pointer-events: none;
}
.store-page .landing-screen::before {
  width: 46vw; height: 46vw; top: -12vw; right: -10vw;
  background: rgba(58,128,122,0.22);
  animation: auroraA 14s ease-in-out infinite alternate;
}
.store-page .landing-screen::after {
  width: 40vw; height: 40vw; bottom: -14vw; left: -8vw;
  background: rgba(184,151,126,0.20);
  animation: auroraB 16s ease-in-out infinite alternate;
}
@keyframes auroraA { to { transform: translate(-4vw, 5vw) scale(1.12); } }
@keyframes auroraB { to { transform: translate(5vw, -4vw) scale(1.1); } }

.store-page .landing-video-wrap video { filter: brightness(0.96) contrast(1.02) saturate(1.05); }

.store-page .landing-overlay {
  gap: 0; padding: 4rem 4.5rem 3.5rem; border-radius: 34px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 30px 80px rgba(19,24,32,.16), 0 2px 0 rgba(255,255,255,0.6) inset;
  animation: landingRise 1s var(--s-ease, cubic-bezier(0.22,1,0.36,1)) both;
}
@keyframes landingRise { from { opacity: 0; transform: translateY(28px) scale(0.98); } to { opacity: 1; transform: none; } }

.store-page .landing-logo { margin-bottom: 1.6rem; }
.store-page .landing-logo img { max-height: 120px; }
.store-page .landing-subtitle {
  color: #45514f; letter-spacing: 0; text-transform: none; font-weight: 600;
  font-size: 1.25rem; margin-top: 1.1rem;
}
/* Elegant thin accent line under the logo/subtitle */
.store-page .landing-logo::after {
  content: ''; display: block; width: 56px; height: 3px; border-radius: 3px;
  margin: 1.4rem auto 0; background: linear-gradient(90deg, #3a807a, #b8977e);
}

/* Big, inviting soft-teal CTA with glow + float */
.store-page .landing-cta {
  margin-top: 2.6rem; border: none; border-radius: 999px;
  padding: 1.35rem 3.6rem; gap: 0.55rem;
  color: #fff; background: linear-gradient(135deg, #43938b, #33726a);
  box-shadow: 0 16px 40px rgba(51,114,106,0.38), 0 2px 0 rgba(255,255,255,0.25) inset;
  animation: ctaFloat 4s ease-in-out infinite;
}
.store-page .landing-cta:hover, .store-page .landing-cta:active {
  background: linear-gradient(135deg, #4aa199, #2f6b63);
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(51,114,106,0.46);
}
.store-page .cta-icon { font-size: 1.9rem; }
.store-page .cta-text { font-size: 1.2rem; font-weight: 700; letter-spacing: 0; }
.store-page .cta-pulse { border-color: rgba(58,128,122,0.28); }

/* Category selection screen — match the calm gradient */
.category-screen, .store-page .category-screen {
  background-color: #eef2f1;
  background-image: radial-gradient(120% 120% at 85% 10%, rgba(58,128,122,0.10), transparent 55%),
                    radial-gradient(120% 120% at 10% 90%, rgba(184,151,126,0.10), transparent 55%);
}
.category-screen-overlay { background: rgba(238,242,241,0.80); }

/* =========================================================================
   V6 — "Bento Showroom" category screen + warm sand accent
   ========================================================================= */
/* Warm sand/beige primary (replaces teal) — filled controls use the deeper tone */
.store-page { --s-ink-btn: #a6885c; }
.store-page .cat-btn.active,
.store-page .finish-btn.active { background: #a6885c; border-color: #a6885c; color: #fff; }
.store-page .home-btn { background: #a6885c; }
.store-page .home-btn:hover { background: #8f7249; }
.store-page .landing-cta { background: linear-gradient(135deg, #b8975f, #96774a); box-shadow: 0 16px 40px rgba(150,119,74,0.36), 0 2px 0 rgba(255,255,255,0.25) inset; }
.store-page .landing-cta:hover, .store-page .landing-cta:active { background: linear-gradient(135deg, #c6a675, #8a6c40); }
.store-page .landing-logo::after { background: linear-gradient(90deg, #a6885c, #cbb189); }
.store-page .section-title::before { background: #a6885c; }

/* ---- Category screen: dramatic bento grid ---- */
.category-screen, .store-page .category-screen {
  background: #f2efe9;
  background-image: radial-gradient(120% 120% at 85% 8%, rgba(166,136,92,0.12), transparent 55%),
                    radial-gradient(120% 120% at 8% 92%, rgba(120,110,95,0.10), transparent 55%);
}
.category-screen-content { max-width: 1280px; }
.cat-screen-title { font-weight: 800; letter-spacing: -0.02em; color: #2a2620; font-size: 2.6rem; }
.cat-screen-subtitle { color: #8a7f6f; font-weight: 600; font-size: 1.15rem; margin-bottom: 2.4rem; }
.cat-screen-logo { max-height: 84px; }

.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  grid-auto-flow: dense;
  gap: 1.1rem;
  justify-content: stretch;
}
/* Hero tile — big, spans 2x2 */
.category-card.cat-hero { grid-column: span 2; grid-row: span 2; }

.category-card {
  position: relative;
  border: none; border-radius: 22px;
  overflow: hidden; cursor: pointer;
  padding: 0; min-width: 0;
  background-size: cover; background-position: center;
  box-shadow: 0 2px 10px rgba(42,38,32,.08), 0 14px 34px rgba(42,38,32,.10);
  transition: transform .3s cubic-bezier(0.22,1,0.36,1), box-shadow .3s;
  display: block;
}
.category-card::after {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-image: inherit;
  transform: scale(1);
  transition: transform 1.1s cubic-bezier(0.22,1,0.36,1);
  z-index: 0;
}
.category-card:hover, .category-card:active { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(42,38,32,.14), 0 26px 60px rgba(42,38,32,.18); }
.category-card:hover::after { transform: scale(1.08); }

/* Legibility scrim over the photo */
.cat-card-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(28,24,19,0.82) 0%, rgba(28,24,19,0.35) 45%, rgba(28,24,19,0.12) 100%);
}
.cat-card-body {
  position: absolute; z-index: 2; inset: auto 1.3rem 1.2rem 1.3rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
  text-align: right;
}
.cat-card-eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em;
  color: #e7cfa0; text-transform: none;
}
.cat-card-name {
  font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em;
  color: #fff; line-height: 1.15;
}
.category-card .cat-card-name { font-size: 1.35rem; }
.category-card.cat-hero .cat-card-name { font-size: 2.4rem; }
.cat-card-count {
  align-self: flex-start;
  background: rgba(255,255,255,0.9); color: #2a2620;
  font-size: 0.82rem; font-weight: 700;
  padding: 0.25rem 0.8rem; border-radius: 999px; backdrop-filter: blur(4px);
}

/* Fallback tiles (no product photo) — warm gradient palette */
.category-card.cat-nopic::after { background-image: none; }
.category-card.cat-nopic .cat-card-overlay { background: linear-gradient(145deg, #b79a6a, #8f7249); }
.category-card.cat-nopic.hue-0 .cat-card-overlay { background: linear-gradient(145deg, #b79a6a, #8f7249); }
.category-card.cat-nopic.hue-1 .cat-card-overlay { background: linear-gradient(145deg, #9fae9a, #6d7d6e); }
.category-card.cat-nopic.hue-2 .cat-card-overlay { background: linear-gradient(145deg, #b0a0a8, #7d6f77); }
.category-card.cat-nopic.hue-3 .cat-card-overlay { background: linear-gradient(145deg, #a9a49b, #78716a); }
.category-card.cat-nopic.hue-4 .cat-card-overlay { background: linear-gradient(145deg, #c0a98a, #9a815f); }
.category-card.cat-hero.cat-nopic .cat-card-overlay { background: linear-gradient(145deg, #b79a6a, #7d6240); }

@media (max-width: 900px) {
  .category-cards { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .cat-screen-title { font-size: 2rem; }
  .category-card.cat-hero .cat-card-name { font-size: 1.8rem; }
}

/* =========================================================================
   V7 — Elegant staggered rise-up for category tiles + product cards
   fill-mode: backwards (not forwards) so hover transforms still work
   ========================================================================= */
@keyframes riseFade {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Category tiles */
.category-card { animation: riseFade 0.55s cubic-bezier(0.22,1,0.36,1) backwards; }
.category-card:nth-child(1)  { animation-delay: 0.00s; }
.category-card:nth-child(2)  { animation-delay: 0.06s; }
.category-card:nth-child(3)  { animation-delay: 0.12s; }
.category-card:nth-child(4)  { animation-delay: 0.18s; }
.category-card:nth-child(5)  { animation-delay: 0.24s; }
.category-card:nth-child(6)  { animation-delay: 0.30s; }
.category-card:nth-child(7)  { animation-delay: 0.36s; }
.category-card:nth-child(8)  { animation-delay: 0.42s; }
.category-card:nth-child(n+9){ animation-delay: 0.48s; }

/* Product cards — re-triggers each time you enter a category (grid is rebuilt) */
.store-page .product-card {
  opacity: 1; transform: none;
  animation: riseFade 0.5s cubic-bezier(0.22,1,0.36,1) backwards;
}
.store-page .product-card:nth-child(1)  { animation-delay: 0.00s; }
.store-page .product-card:nth-child(2)  { animation-delay: 0.04s; }
.store-page .product-card:nth-child(3)  { animation-delay: 0.08s; }
.store-page .product-card:nth-child(4)  { animation-delay: 0.12s; }
.store-page .product-card:nth-child(5)  { animation-delay: 0.16s; }
.store-page .product-card:nth-child(6)  { animation-delay: 0.20s; }
.store-page .product-card:nth-child(7)  { animation-delay: 0.24s; }
.store-page .product-card:nth-child(8)  { animation-delay: 0.28s; }
.store-page .product-card:nth-child(9)  { animation-delay: 0.32s; }
.store-page .product-card:nth-child(10) { animation-delay: 0.36s; }
.store-page .product-card:nth-child(n+11){ animation-delay: 0.40s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .category-card, .store-page .product-card { animation: none; }
}

/* =========================================================================
   V8 — 12 distinct soft category colors + slower, calmer rise
   ========================================================================= */
/* A palette of muted, elegant tones — each category tile gets its own */
.category-card.cat-nopic.hue-0  .cat-card-overlay { background: linear-gradient(150deg, #b79a6a, #8f7249); } /* sand */
.category-card.cat-nopic.hue-1  .cat-card-overlay { background: linear-gradient(150deg, #9aae9a, #6d7d6e); } /* sage */
.category-card.cat-nopic.hue-2  .cat-card-overlay { background: linear-gradient(150deg, #b0a0aa, #7d6f77); } /* mauve */
.category-card.cat-nopic.hue-3  .cat-card-overlay { background: linear-gradient(150deg, #94a7b3, #647883); } /* dusty blue */
.category-card.cat-nopic.hue-4  .cat-card-overlay { background: linear-gradient(150deg, #c2a58c, #957259); } /* clay */
.category-card.cat-nopic.hue-5  .cat-card-overlay { background: linear-gradient(150deg, #a8a49a, #77716a); } /* stone taupe */
.category-card.cat-nopic.hue-6  .cat-card-overlay { background: linear-gradient(150deg, #c99f96, #9c6f67); } /* terracotta */
.category-card.cat-nopic.hue-7  .cat-card-overlay { background: linear-gradient(150deg, #8fa9a0, #5f7d73); } /* eucalyptus */
.category-card.cat-nopic.hue-8  .cat-card-overlay { background: linear-gradient(150deg, #b3a7c4, #7f7196); } /* soft violet */
.category-card.cat-nopic.hue-9  .cat-card-overlay { background: linear-gradient(150deg, #c7b083, #9c8452); } /* honey */
.category-card.cat-nopic.hue-10 .cat-card-overlay { background: linear-gradient(150deg, #9fb0a3, #6e8074); } /* moss */
.category-card.cat-nopic.hue-11 .cat-card-overlay { background: linear-gradient(150deg, #bfa0a8, #8d6d76); } /* rosewood */

/* Slower, calmer staggered rise */
.category-card { animation-duration: 0.85s; }
.category-card:nth-child(1)  { animation-delay: 0.00s; }
.category-card:nth-child(2)  { animation-delay: 0.11s; }
.category-card:nth-child(3)  { animation-delay: 0.22s; }
.category-card:nth-child(4)  { animation-delay: 0.33s; }
.category-card:nth-child(5)  { animation-delay: 0.44s; }
.category-card:nth-child(6)  { animation-delay: 0.55s; }
.category-card:nth-child(7)  { animation-delay: 0.66s; }
.category-card:nth-child(8)  { animation-delay: 0.77s; }
.category-card:nth-child(9)  { animation-delay: 0.88s; }
.category-card:nth-child(10) { animation-delay: 0.99s; }
.category-card:nth-child(n+11){ animation-delay: 1.10s; }

.store-page .product-card { animation-duration: 0.7s; }
.store-page .product-card:nth-child(1)  { animation-delay: 0.00s; }
.store-page .product-card:nth-child(2)  { animation-delay: 0.07s; }
.store-page .product-card:nth-child(3)  { animation-delay: 0.14s; }
.store-page .product-card:nth-child(4)  { animation-delay: 0.21s; }
.store-page .product-card:nth-child(5)  { animation-delay: 0.28s; }
.store-page .product-card:nth-child(6)  { animation-delay: 0.35s; }
.store-page .product-card:nth-child(7)  { animation-delay: 0.42s; }
.store-page .product-card:nth-child(8)  { animation-delay: 0.49s; }
.store-page .product-card:nth-child(9)  { animation-delay: 0.56s; }
.store-page .product-card:nth-child(10) { animation-delay: 0.63s; }
.store-page .product-card:nth-child(n+11){ animation-delay: 0.70s; }

/* =========================================================================
   V9 — Refined filter toolbar + "drop from above" category pills
   ========================================================================= */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Category nav — pills drop in, staggered */
.store-page .category-nav {
  padding: 1rem 2.5rem 0.9rem;
  border-bottom: none;
  gap: 0.55rem;
}
.store-page .cat-btn { animation: dropIn 0.5s cubic-bezier(0.22,1,0.36,1) backwards; }
.store-page .cat-btn:nth-child(1)  { animation-delay: 0.00s; }
.store-page .cat-btn:nth-child(2)  { animation-delay: 0.05s; }
.store-page .cat-btn:nth-child(3)  { animation-delay: 0.10s; }
.store-page .cat-btn:nth-child(4)  { animation-delay: 0.15s; }
.store-page .cat-btn:nth-child(5)  { animation-delay: 0.20s; }
.store-page .cat-btn:nth-child(6)  { animation-delay: 0.25s; }
.store-page .cat-btn:nth-child(7)  { animation-delay: 0.30s; }
.store-page .cat-btn:nth-child(8)  { animation-delay: 0.35s; }
.store-page .cat-btn:nth-child(9)  { animation-delay: 0.40s; }
.store-page .cat-btn:nth-child(10) { animation-delay: 0.45s; }
.store-page .cat-btn:nth-child(n+11){ animation-delay: 0.50s; }

/* Elevated active tab — warm gradient + soft glow, like the primary buttons */
.store-page .cat-btn.active {
  background: linear-gradient(135deg, #b8975f, #96774a);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(150,119,74,0.32);
  transform: translateY(-1px);
}
/* Promotions tab keeps a warm-red identity */
.store-page .cat-btn.sale-cat-btn { color: #c0432f; border-color: #f0c9c0; }
.store-page .cat-btn.sale-cat-btn.active {
  background: linear-gradient(135deg, #e0654e, #c0432f);
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 18px rgba(192,67,47,0.32);
}

/* Sub-filters grouped into a soft frosted panel (reads as one control) */
.store-page .store-filters { padding: 0.4rem 2.5rem 1.1rem; }
.store-page .filter-row {
  background: rgba(255,255,255,0.62);
  backdrop-filter: saturate(160%) blur(10px);
  border: 1px solid var(--s-line);
  border-radius: 18px;
  padding: 0.7rem 1rem;
  box-shadow: 0 1px 2px rgba(19,24,32,.03), 0 8px 22px rgba(19,24,32,.05);
  animation: dropIn 0.5s cubic-bezier(0.22,1,0.36,1) 0.15s backwards;
}
.store-page .finish-label { font-weight: 700; color: #7a6a4e; }
.store-page .clear-filters-btn {
  border: 1px solid var(--s-line); background: #fff; color: var(--s-ink-soft);
  border-radius: 999px; padding: 0.5rem 1.1rem; font-family: inherit; font-size: 0.9rem;
  cursor: pointer; min-height: 42px; transition: all .2s;
}
.store-page .clear-filters-btn:hover { border-color: #d0c3a8; color: var(--s-ink); }

@media (prefers-reduced-motion: reduce) {
  .store-page .cat-btn, .store-page .filter-row { animation: none; }
}

/* =========================================================================
   V10 — Finish color swatches on the גימור filter pills
   ========================================================================= */
.store-page .finish-btn.has-swatch {
  display: inline-flex; align-items: center; gap: 0.5rem;
  flex-direction: row-reverse; /* RTL: swatch sits to the right of the text */
}
.finish-swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 1px 2px rgba(0,0,0,0.12);
  flex-shrink: 0; pointer-events: none;
}
/* On the active (filled) pill, lighten the swatch ring for contrast */
.store-page .finish-btn.active .finish-swatch { border-color: rgba(255,255,255,0.6); }

/* =========================================================================
   V11 — Category tile images as background-free cutouts floating on the color
   ========================================================================= */
/* Disable the old full-bleed background-image zoom layer */
.category-card::after { display: none !important; }
.category-card { background-image: none !important; }

/* Color layer sits at the back */
.category-card .cat-card-overlay { z-index: 0; }

/* The chosen image: a contained cutout floating in the upper area of the tile */
.cat-card-photo {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  object-position: center 42%;
  padding: 0.9rem 0.9rem 3.2rem;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
  transition: transform 1s cubic-bezier(0.22,1,0.36,1);
  pointer-events: none;
}
.category-card.cat-hero .cat-card-photo { padding: 1.8rem 1.8rem 5rem; object-position: center 45%; }
.category-card:hover .cat-card-photo, .category-card:active .cat-card-photo { transform: scale(1.06); }

/* Bottom scrim keeps the name/count legible over any photo or color */
.cat-card-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to top, rgba(20,16,12,0.58) 0%, rgba(20,16,12,0.12) 40%, transparent 62%);
}
.cat-card-body { z-index: 3; }

/* =========================================================================
   V12 — "Configurator" wow pass: glossy metallic finishes + glass depth + motion
   ========================================================================= */
/* --- Toolbar: floating glass panel with a warm gradient hairline + depth --- */
.store-page .filter-row {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,0.72), rgba(255,255,255,0.72)) padding-box,
    linear-gradient(120deg, rgba(184,151,95,0.55), rgba(255,255,255,0.25) 40%, rgba(150,119,74,0.45)) border-box;
  border: 1.5px solid transparent;
  border-radius: 22px;
  box-shadow: 0 2px 4px rgba(19,24,32,.04), 0 16px 40px rgba(19,24,32,.09);
}

/* --- Filter pills: gentle lift on hover for life --- */
.store-page .finish-btn { transition: all .22s cubic-bezier(0.22,1,0.36,1); }
.store-page .finish-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(19,24,32,.10); }

/* --- Category tabs: animated sheen sweep on the active tab --- */
.store-page .cat-btn.active { position: relative; overflow: hidden; }
.store-page .cat-btn.active::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: sheen 3.2s ease-in-out infinite; pointer-events: none;
}
@keyframes sheen { 0% { left: -60%; } 55%,100% { left: 130%; } }
.store-page .cat-btn { transition: transform .22s cubic-bezier(0.22,1,0.36,1), box-shadow .22s, background .22s; }
.store-page .cat-btn:not(.active):hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(19,24,32,.10); }

/* --- Glossy metallic finish swatches (the star) --- */
.store-page .finish-btn.has-swatch { gap: 0.6rem; padding-right: 0.55rem; }
.finish-swatch {
  width: 27px; height: 27px; border-radius: 50%;
  position: relative; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.14);
  box-shadow:
    inset 0 -3px 5px rgba(0,0,0,0.30),
    inset 0 3px 4px rgba(255,255,255,0.55),
    0 2px 4px rgba(0,0,0,0.18);
}
/* Specular highlight — the "shine" that reads as polished metal */
.finish-swatch::before {
  content: ''; position: absolute; top: 3px; left: 6px;
  width: 10px; height: 7px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%);
  transform: rotate(-18deg);
}
/* Active finish: swatch grows + warm ring, pill lifts */
.store-page .finish-btn.has-swatch.active { transform: translateY(-2px) scale(1.04); }
.store-page .finish-btn.has-swatch.active .finish-swatch {
  transform: scale(1.12);
  box-shadow:
    0 0 0 3px rgba(184,151,95,0.6),
    inset 0 -3px 5px rgba(0,0,0,0.30),
    inset 0 3px 4px rgba(255,255,255,0.6),
    0 3px 6px rgba(0,0,0,0.22);
}
.finish-swatch { transition: transform .22s cubic-bezier(0.22,1,0.36,1), box-shadow .22s; }

/* =========================================================================
   V13 — Burning flame sale badge + tile images fill (cover)
   ========================================================================= */
/* Sale badge is now just a big animated flame (no pill, no text) */
.store-page .sale-flame {
  font-size: 2.2rem; line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(200,60,0,0.5));
  transform-origin: 50% 90%;
  animation: burn 1.1s ease-in-out infinite;
}
@keyframes burn {
  0%   { transform: scale(1) rotate(-2deg) translateY(0);   filter: drop-shadow(0 3px 6px rgba(200,60,0,0.45)) hue-rotate(0deg); }
  25%  { transform: scale(1.12) rotate(2deg) translateY(-2px); filter: drop-shadow(0 5px 9px rgba(255,120,0,0.6)) hue-rotate(-6deg); }
  50%  { transform: scale(0.96) rotate(-3deg) translateY(1px); filter: drop-shadow(0 3px 6px rgba(200,60,0,0.5)) hue-rotate(4deg); }
  75%  { transform: scale(1.08) rotate(1deg) translateY(-1px); filter: drop-shadow(0 5px 8px rgba(255,140,0,0.55)) hue-rotate(-3deg); }
  100% { transform: scale(1) rotate(-2deg) translateY(0);   filter: drop-shadow(0 3px 6px rgba(200,60,0,0.45)) hue-rotate(0deg); }
}

/* Category tile images: fill the whole tile, keep proportion (cover) */
.cat-card-photo {
  object-fit: cover !important;
  object-position: center !important;
  padding: 0 !important;
  filter: none !important;
}

/* Related bubble cards: caption is the category name, centered & prominent */
.related-card .related-name {
  font-weight: 700; font-size: 0.82rem; text-align: center; width: 100%;
}
@media (prefers-reduced-motion: reduce) { .store-page .sale-flame { animation: none; } }

/* =========================================================================
   V14 — Realistic SVG flame for the sale badge (layered, living fire)
   ========================================================================= */
.store-page .sale-flame { animation: none; font-size: 0; display: inline-block; }
.flame-svg {
  width: 34px; height: 46px; overflow: visible;
  animation: flameGlow 1.7s ease-in-out infinite;
}
.flame-svg .fl-outer {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: flick-outer 0.46s ease-in-out infinite alternate;
}
.flame-svg .fl-inner {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: flick-inner 0.3s ease-in-out infinite alternate;
}
@keyframes flick-outer {
  0%   { transform: scaleY(1)    scaleX(1)    skewX(0deg); }
  50%  { transform: scaleY(1.07) scaleX(0.95) skewX(3.5deg)  translateY(-1px); }
  100% { transform: scaleY(0.94) scaleX(1.04) skewX(-3.5deg) translateY(0.5px); }
}
@keyframes flick-inner {
  0%   { transform: scaleY(0.92) translateY(0);    opacity: 0.85; }
  100% { transform: scaleY(1.12) translateY(-1.5px); opacity: 1; }
}
@keyframes flameGlow {
  0%,100% { filter: drop-shadow(0 0 5px rgba(255,110,0,0.5)); }
  50%     { filter: drop-shadow(0 1px 11px rgba(255,160,0,0.8)); }
}
@media (prefers-reduced-motion: reduce) {
  .flame-svg, .flame-svg .fl-outer, .flame-svg .fl-inner { animation: none; }
}

/* =========================================================================
   V15 — Bigger product bubble (+20%) + portrait-optimized category screen
   ========================================================================= */
/* Product bubble 20% larger */
.bubble { max-width: 600px !important; width: 92vw !important; max-height: 92vh !important; }

/* Category screen spread out for PORTRAIT kiosks (orientation-based, not width) */
@media (orientation: portrait) {
  .category-screen-content { max-width: 96vw; padding: 2rem 1.5rem; }
  .cat-screen-logo { max-height: 96px; }
  .cat-screen-title { font-size: 3rem; }
  .cat-screen-subtitle { font-size: 1.35rem; margin-bottom: 2.4rem; }

  .category-cards {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 20vh;
    gap: 1.4rem;
  }
  /* Hero becomes a full-width banner at the top */
  .category-card.cat-hero { grid-column: 1 / -1; grid-row: span 1; }
  .category-card.cat-hero .cat-card-name { font-size: 2.6rem; }

  .category-card .cat-card-name { font-size: 1.5rem; }
  .cat-card-count { font-size: 0.95rem; padding: 0.3rem 0.9rem; }
  .cat-card-body { inset: auto 1.5rem 1.4rem 1.5rem; }
}

/* Extra-tall / narrow portrait (phones): a touch more compact */
@media (orientation: portrait) and (max-width: 560px) {
  .category-cards { grid-auto-rows: 17vh; gap: 1rem; }
  .cat-screen-title { font-size: 2.2rem; }
  .category-card .cat-card-name { font-size: 1.2rem; }
}

/* =========================================================================
   V16 — Category tile image: show the WHOLE image, never crop (contain)
   ========================================================================= */
.cat-card-photo {
  object-fit: contain !important;
  object-position: center 44% !important;
  padding: 0.7rem 0.7rem 3rem !important;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.22)) !important;
}
.category-card.cat-hero .cat-card-photo {
  padding: 1.4rem 1.4rem 4.5rem !important;
  object-position: center 46% !important;
}

/* =========================================================================
   V17 — Portrait kiosk: fit the ENTIRE category screen in one 1080x1920 screen
   Rows share the available height (grid-auto-rows:1fr) so any number of
   categories fits without scrolling.
   ========================================================================= */
@media (orientation: portrait) {
  .category-screen { align-items: stretch; justify-content: flex-start; }
  .category-screen-content {
    height: 100vh; height: 100dvh;
    max-width: none; width: 100%;
    display: flex; flex-direction: column;
    padding: 1.4rem 1.4rem 1.6rem;
    overflow: hidden;               /* never scroll — it fits by design */
  }
  .cat-screen-logo { max-height: 66px; margin: 0 auto 0.4rem; }
  .cat-screen-title { font-size: 2.3rem; margin-bottom: 0.1rem; }
  .cat-screen-subtitle { font-size: 1.05rem; margin-bottom: 1rem; }

  .category-cards {
    flex: 1 1 auto; min-height: 0;   /* take the remaining height */
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;             /* every row shares the height equally */
    gap: 0.9rem;
    align-content: stretch;
  }
  .category-card.cat-hero { grid-column: 1 / -1; grid-row: span 1; }
  .category-card.cat-hero .cat-card-name { font-size: 2.2rem; }
  .category-card .cat-card-name { font-size: 1.4rem; }
  .cat-card-body { inset: auto 1.3rem 1.1rem 1.3rem; }

  /* keep images uncropped but tighter so they fit the shorter tiles */
  .cat-card-photo { padding: 0.5rem 0.5rem 2.4rem !important; }
  .category-card.cat-hero .cat-card-photo { padding: 0.8rem 0.8rem 3rem !important; }
}

/* =========================================================================
   V18 — Portrait: category block ~75% of the screen, centered
   ========================================================================= */
@media (orientation: portrait) {
  .category-screen { align-items: center; justify-content: center; }
  .category-screen-content {
    height: 75vh; height: 75dvh;
    width: 84vw; max-width: 84vw;
    margin: auto;
  }
}

/* =========================================================================
   V19 — Remove white photo backgrounds on category tiles (multiply blend):
   a white product-shot background blends into the tile color, leaving just
   the product. Free, instant, no external service.
   ========================================================================= */
.cat-card-photo {
  mix-blend-mode: multiply;
  filter: none !important;
}

/* =========================================================================
   V20 — Related-product images in the bubble: 50% larger + never cropped
   ========================================================================= */
.related-card img {
  height: 105px !important;      /* 70px → 105px = +50% */
  object-fit: contain !important;
  padding: 4px;
  background: #fff;
}

/* =========================================================================
   V21 — Performance pass for mid-tier Android WebView kiosks (RK3568)
   Removes the GPU-heavy effects that cause tap-to-response lag, without
   losing the visual design (panels stay, just no live blur / endless anims).
   ========================================================================= */
/* 1) backdrop-filter (live blur) is the single most expensive effect — drop it.
      Elements keep their translucent backgrounds, so they still read as panels. */
.store-page *, .store-page *::before, .store-page *::after,
.category-screen *, .category-screen *::before, .category-screen *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Make the previously-frosted panels solid enough to read without blur */
.store-page .filter-row { background: rgba(255,255,255,0.92) !important; }
.store-page .landing-overlay { background: rgba(255,255,255,0.9) !important; }
.store-page .store-header { background: rgba(255,255,255,0.96) !important; }

/* 2) Stop continuous/infinite decorative animations that keep the compositor
      busy (→ input lag). One-shot entrance animations stay. */
.store-page .landing-screen::before,
.store-page .landing-screen::after { animation: none !important; }
.store-page .cat-btn.active::after { display: none !important; }
.store-page .cta-pulse { animation: none !important; }

/* 3) Snappy touch: kill the 300ms tap delay + grey tap flash */
.store-page, .store-page * { -webkit-tap-highlight-color: transparent; }
.store-page button, .store-page .category-card, .store-page .product-card,
.store-page .finish-btn, .store-page .cat-btn, .store-page .related-card {
  touch-action: manipulation;
}

/* 4) Skip rendering off-screen product cards — huge win for long grids on weak GPUs */
.store-page .product-card {
  content-visibility: auto;
  contain-intrinsic-size: 340px;
}
