/* ==============================
   Nexsky Home – Shared Styles
   ============================== */

/* Hero & Slider (desktop grid) */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0 34px;
  min-height: auto;
}

.hero-content h1 {
  font-size: var(--fs-1);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--text) 20%, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-cyan {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  box-shadow: 0 6px 24px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--primary);
  box-shadow: 0 0 28px rgba(var(--primary-rgb), 0.2);
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
}

body.light-mode .btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-light);
}

body.light-mode .btn-secondary:hover {
  background: rgba(var(--primary-rgb), 0.08);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
}

.hero-placeholder {
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--text-muted);
}
.hero-placeholder span { font-size: 2.4rem; }
.hero-placeholder p { font-size: 0.8rem; opacity: 0.7; }

/* Slider */
.hero-swiper { width: 100%; height: 100%; border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.swiper-wrapper { position: relative; width: 100%; height: 100%; }
.hero-swiper-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.hero-swiper-slide.active { opacity: 1; visibility: visible; }
.hero-slide-overlay { display: none; }

.hero-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}
.hero-slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  z-index: 2;
  border-radius: var(--radius-xl);
}
.hero-slide-text h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-slide-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
  max-width: 300px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.hero-slide-link-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}
.hero-slide-link-text:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.4);
}

.hero-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 5;
}
.hero-slider-button {
  width: 42px;
  height: 42px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  pointer-events: auto;
}
.hero-slider-button:hover { background: rgba(var(--primary-rgb), 0.8); color: #fff; }
.hero-slider-pagination {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.hero-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.8);
  cursor: pointer;
  transition: var(--transition);
}
.hero-slider-dot.active {
  width: 24px;
  border-radius: 12px;
  background: var(--primary);
}

/* Campaigns */
.campaigns-section { padding: 20px 0 40px; }
.campaigns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.campaign-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-decoration: none;
  color: #fff;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 140px;
  background-size: cover;
  background-position: center;
}
.campaign-card::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.4); transition: background 0.3s; }
.campaign-card:hover::before { background: rgba(0,0,0,0.2); }
.campaign-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.campaign-card > * { position: relative; z-index: 1; }
.campaign-card h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.campaign-card p { font-size: 0.9rem; opacity: 0.9; }
.badge-discount {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 10;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--primary);
  color: #0a471d;
  font-weight: 700;
  font-size: 0.8rem;
  width: fit-content;
}

.campaign-timer {
  direction: ltr;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.campaign-timer span {
  background: rgba(255,255,255,0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Section Headers */
.section-header { text-align: center; margin-bottom: 48px; }
.badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.badge-blue {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary-light);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}
.badge-cyan {
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
}
.section-header h2 {
  font-size: var(--fs-2);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 550px;
  margin: 0 auto;
}

/* Product Grid (desktop default) */
.products-section { padding: 50px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;                    /* keeps corners rounded */
  transition: var(--transition-smooth), height 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-light);
  background: var(--surface-hover);
}
.product-card.cyan-hover:hover {
  box-shadow: var(--shadow-glow-cyan);
  border-color: rgba(var(--primary-rgb), 0.3);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 1/0.85;
  overflow: hidden;
  background: var(--bg-secondary);
}
.card-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.product-card:hover .card-img-inner { transform: scale(1.08); }
.card-img-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.emoji-bg {
  position: absolute;
  font-size: 14rem;
  opacity: 0.06;
  pointer-events: none;
}
body.reduced-visual-effects .emoji-bg { animation: none; }

body.reduced-visual-effects .product-card,
body.reduced-visual-effects .blog-card,
body.reduced-visual-effects .bento-item,
body.reduced-visual-effects .stat-card,
body.reduced-visual-effects .campaign-card,
body.reduced-visual-effects .hero-slider-container,
body.reduced-visual-effects .hero-swiper-slide,
body.reduced-visual-effects .hero-slide-link-text,
body.reduced-visual-effects .btn,
body.reduced-visual-effects .btn-card,
body.reduced-visual-effects .read-more,
body.reduced-visual-effects .newsletter-card::before,
body.reduced-visual-effects .emoji-bg,
body.reduced-visual-effects .blog-pattern,
body.reduced-visual-effects .articles-hero::before,
body.reduced-visual-effects .card-img-inner,
body.reduced-visual-effects .bento-image-inner img,
body.reduced-visual-effects .campaign-card::before {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

body.reduced-visual-effects .product-card:hover,
body.reduced-visual-effects .blog-card:hover,
body.reduced-visual-effects .bento-item:hover,
body.reduced-visual-effects .stat-card:hover,
body.reduced-visual-effects .campaign-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.card-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.tag-digital {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}
.tag-physical {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
}

.card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Title toggle styling */
.title-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.product-title {
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 4px;
  transition: max-height 0.3s ease;
}

.product-title.expanded {
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* The card itself needs to stop clipping when the title is expanded */
.product-card.title-expanded-card {
  overflow: visible !important;
  z-index: 5;
  position: relative;
  height: auto !important;
}
/* On mobile horizontal cards, also manage the container */
@media (max-width: 768px) {
  .product-card.title-expanded-card {
    /* Card grows naturally, no extra height needed */
  }
  .product-card .product-title {
    -webkit-line-clamp: 1;
  }
  .product-card.title-expanded-card .product-title {
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .title-toggle {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

.title-toggle {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--primary-light);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.title-toggle:hover {
  background: rgba(0, 240, 255, 0.2);
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Bottom block that holds price and action button, locked to card bottom */
.card-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-price {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary-light);
}
.card-price .currency {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-right: 2px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--primary);
}

.btn-card {
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
  border: 1px solid transparent;
}
.btn-card:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  color: var(--primary);
}

.empty-message {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-muted);
}

/* Blog */
.blog-section { padding: 50px 0; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border-color: var(--border-light);
}
.blog-img {
  aspect-ratio: 16/10;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  font-size: 20rem;
}
.blog-body {
  padding: 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-meta {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.blog-body h3 {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
}
.blog-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}
.read-more {
  margin-top: 14px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.read-more:hover { color: var(--primary-light); gap: 10px; }

/* Categories Bento */
.categories-section { padding: 50px 0; }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
  text-decoration: none;
  color: inherit;
}
.bento-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  border-color: var(--border-light);
  background: var(--surface-hover);
}
.bento-item.large {
  grid-row: span 2;
  grid-column: span 2;
  min-height: 320px;
}
.bento-item.wide { grid-column: span 2; }

.bento-icon,
.bento-image-wrap { width: 100%; margin-bottom: 14px; position: relative; z-index: 1; }
.bento-icon {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: calc(var(--radius-lg) / 1.5);
}
.bento-image-wrap {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) / 1.5);
  background: var(--bg-secondary);
  min-height: 140px;
}
.bento-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.bento-item:hover .bento-image-inner img { transform: scale(1.04); }
.bento-item.large .bento-icon,
.bento-item.large .bento-image-wrap { min-height: 220px; }
.bento-item.wide .bento-icon,
.bento-item.wide .bento-image-wrap { min-height: 180px; }

.bento-item h4 { font-weight: 700; font-size: 1rem; color: var(--text); position: relative; z-index: 1; }
.bento-count { font-size: 0.8rem; color: var(--text-muted); position: relative; z-index: 1; }
.bento-bg-icon {
  position: absolute;
  bottom: -20px;
  left: -20px;
  font-size: 8rem;
  opacity: 0.04;
  pointer-events: none;
}

/* Stats */
.stats-strip {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  text-align: center;
  min-width: 150px;
  flex: 1;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

/* Newsletter */
.newsletter-section { padding: 50px 0; }
.newsletter-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(var(--primary-rgb), 0.06), transparent, rgba(var(--primary-rgb), 0.06), transparent);
  animation: conicSpin 20s linear infinite;
  pointer-events: none;
}
@keyframes conicSpin { to { transform: rotate(360deg); } }
body.reduced-visual-effects .newsletter-card::before { animation: none; display: none; }
.newsletter-card > * { position: relative; z-index: 1; }
.newsletter-card h2 { font-weight: 900; font-size: 1.5rem; margin-bottom: 8px; }
.newsletter-card p { color: var(--text-secondary); margin-bottom: 24px; }
.newsletter-msg {
  margin-top: 10px;
  color: var(--primary);
  display: none;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 40px;
  border: 1.5px solid var(--border-light);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}
.newsletter-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.08); }

body.light-mode .newsletter-card {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(var(--primary-rgb), 0.18);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}
body.light-mode .newsletter-card h2,
body.light-mode .newsletter-card p {
  color: var(--text);
}
body.light-mode .newsletter-form input {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.12);
}
body.light-mode .newsletter-form input::placeholder {
  color: var(--text-muted);
}
body.light-mode .newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}
body.light-mode .newsletter-msg {
  color: var(--primary-dark);
}

/* =============================================
   NEW: Admin‑selectable Category Cards Section
   ============================================= */
.home-category-cards {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.home-category-cards .section-title {
  text-align: center;
  font-size: var(--fs-2);
  font-weight: 900;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--text) 20%, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0,240,255,0.08);
  background: var(--surface-hover);
}

.category-card img,
.category-card video {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.category-card-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem;
  text-align: center;
  color: var(--text);
}

/* Mobile adjustments for category cards */
@media (max-width: 768px) {
  .home-category-cards {
    margin: 2rem auto;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .category-card {
    border-radius: var(--radius);
  }
}

/* ===== Responsive ===== */
@media (max-width:1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
    padding: 30px 0 20px;
    min-height: auto;
  }
  .hero-content h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 12px; }
  .hero-content p { font-size: 0.95rem; max-width: 100%; margin: 0 auto 24px; }
  .hero-buttons { justify-content: center; }
  .hero-slider-container { max-width: 480px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-item.large { grid-column: span 2; grid-row: span 1; min-height: 180px; }
  .bento-item.wide { grid-column: span 2; }
}

@media (max-width:768px) {
  .hero { padding: 24px 0 16px; gap: 20px; }
  .hero-content h1 { font-size: 1.75rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-slider-container { max-width: 400px; }
  .btn { padding: 10px 22px; font-size: 0.9rem; }
  /* Product grid – horizontal cards on mobile */
  .product-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .product-card {
    flex-direction: row;
    min-height: 0;
    padding: 0.75rem;
    border-radius: 1.5rem;
    align-items: stretch;
  }
  .product-card .card-img-wrap {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 1rem;
    overflow: hidden;
    margin-left: 0.75rem;
    position: relative;
    aspect-ratio: auto;
  }
  .product-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.2rem 0;
  }
  .product-card .product-title {
    -webkit-line-clamp: 1;
    font-size: 0.95rem;
  }
  .product-card .card-desc {
    -webkit-line-clamp: 1;
    display: block;
  }
  .product-card .card-footer { margin-bottom: 0.4rem; }
  .product-card .btn-card { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
  /* Blog remains unchanged */
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .bento-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bento-item { min-height: 110px; padding: 16px; }
  .bento-item.large, .bento-item.wide { grid-column: span 2; }
  .stats-strip { gap: 10px; }
  .stat-card { padding: 16px 20px; min-width: 120px; }
  .stat-num { font-size: 1.6rem; }
  .newsletter-card { padding: 32px 20px; }
}

@media (min-width: 640px) and (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
    gap: 14px;
  }
}

@media (max-width:480px) {
  .hero { padding: 20px 0 12px; gap: 16px; }
  .hero-content h1 { font-size: 1.5rem; margin-bottom: 8px; }
  .hero-content p { display: none; }
  .hero-buttons { gap: 10px; }
  .hero-slider-container { max-width: 100%; aspect-ratio: 16/9; }
  .btn { padding: 8px 18px; font-size: 0.85rem; }
  .product-grid { gap: 10px; }
  .bento-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .bento-item { min-height: 90px; padding: 12px; border-radius: var(--radius); }
}


/* =========================================================
   ENHANCED HOME HERO SLIDER – SMOOTH TRANSFORM / DRAG
   ========================================================= */

.hero-swiper {
  direction: ltr !important;              /* internal slide engine */
  touch-action: pan-y !important;         /* allow vertical page scroll */
  overflow: hidden !important;
  position: relative !important;
}

.hero-swiper-slide {
  direction: rtl !important;              /* keep Persian text direction */
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0);
  transition: transform 0.65s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.hero-swiper-slide .hero-slide-content {
  border-radius: var(--radius-xl) !important;
}

.hero-swiper .swiper-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slider-nav {
  z-index: 20 !important;
}

.hero-slider-pagination {
  z-index: 20 !important;
}

.hero-slider-button {
  cursor: pointer !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: manipulation !important;
}

.hero-slider-dot {
  user-select: none !important;
  -webkit-user-select: none !important;
}


/* =========================================================
   HERO SLIDER BUTTONS – NO CIRCLE BACKGROUND
   Dark mode: white arrows
   Light mode: black arrows
   ========================================================= */

.hero-slider-button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 2.4rem !important;
  line-height: 1 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  transition: color 0.2s ease, text-shadow 0.2s ease !important;
}

.hero-slider-button:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--primary-light, #00f0ff) !important;
}

body.light-mode .hero-slider-button {
  color: #000000 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

body.light-mode .hero-slider-button:hover {
  color: var(--primary-dark, #d81b3f) !important;
}
/* =========================================================
   CAMPAIGN CARD SIZE FIX
   Video/background is contained and no longer expands card.
   ========================================================= */
.campaign-card {
  max-height: 260px !important;
  min-height: 180px !important;
  aspect-ratio: 16 / 9 !important;
}

.campaign-card::before {
  z-index: 1 !important;
}

.campaign-card > * {
  z-index: 2 !important;
}

.campaign-card .campaign-card-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
  border-radius: inherit !important;
  display: block !important;
  /* THEODOR-CAMPAIGN-FIX-V1: FF doesn't clip absolute video to parent
     rounded corners from overflow:hidden alone. translateZ(0) + mask
     force compositor-level clip to the inherited radius. */
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
          mask-image: radial-gradient(white, black);
}
.campaign-card {
  /* THEODOR-CAMPAIGN-FIX-V1: reinforce clip boundary. */
  isolation: isolate;
  clip-path: inset(0 round var(--radius-lg, 24px));
}



/* =========================================================
   CAMPAIGN CARD RESPONSIVE + TIMER FIX
   Cards remain stable at high zoom.
   Timer moves to bottom when no badge is present.
   ========================================================= */

.campaigns-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
  gap: clamp(12px, 2vw, 20px) !important;
  width: 100% !important;
}

.campaign-card {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: clamp(16px, 4vw, 28px) clamp(16px, 4vw, 24px) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.campaign-card h3 {
  font-size: clamp(1rem, 4vw, 1.2rem) !important;
  line-height: 1.4 !important;
  z-index: 2 !important;
}

.campaign-card p {
  font-size: clamp(0.8rem, 3vw, 0.95rem) !important;
  line-height: 1.6 !important;
  z-index: 2 !important;
}

.campaign-card .campaign-timer {
  z-index: 2 !important;
  margin-top: 0 !important;
}

/* No badge: timer sticks to bottom */
.campaign-card.no-badge .campaign-timer {
  margin-top: auto !important;
  margin-bottom: 0 !important;
}

/* Has badge: keep normal flow */
.campaign-card.has-badge .campaign-timer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 768px) {
  .campaigns-grid {
    grid-template-columns: 1fr !important;
  }

  .campaign-card {
    aspect-ratio: 16 / 10 !important;
  }
}


/* =========================================================
   CAMPAIGN CARD OVERLAY REMOVAL
   Remove full-card dark overlay.
   Use dark pill backgrounds on text elements instead.
   ========================================================= */

.campaign-card::before {
    display: none !important;
}

.campaign-card h3,
.campaign-card p {
    background: rgba(0, 0, 0, 0.55) !important;
    padding: 6px 12px !important;
    border-radius: 10px !important;
    display: inline-block !important;
    width: fit-content !important;
    max-width: 100% !important;
    margin-inline-start: 0 !important;
    margin-bottom: 8px !important;
}

.campaign-card h3 {
    color: #ffffff !important;
}

.campaign-card p {
    color: rgba(255, 255, 255, 0.92) !important;
}

.campaign-card .campaign-timer {
    background: rgba(0, 0, 0, 0.55) !important;
}


/* =========================================================
   CAMPAIGN CARD MODERN BOTTOM GRADIENT STYLE
   Clean readability without full-card dark overlay.
   Works over any campaign image in both site themes.
   ========================================================= */

.campaign-card {
  justify-content: flex-end !important;
  padding: 16px 16px 18px !important;
}

.campaign-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.38) 45%,
    transparent 78%
  ) !important;
  z-index: 1 !important;
  pointer-events: none;
}

.campaign-card > * {
  position: relative !important;
  z-index: 2 !important;
}

.campaign-card h3,
.campaign-card p {
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  width: auto !important;
  max-width: 95% !important;
  margin-bottom: 6px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

.campaign-card h3 {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
  -webkit-line-clamp: 1 !important;
}

.campaign-card p {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  -webkit-line-clamp: 2 !important;
  color: rgba(255, 255, 255, 0.92) !important;
}

.campaign-card .campaign-timer {
  background: rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  padding: 6px 12px !important;
  color: #ffffff !important;
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

.campaign-card.no-badge .campaign-timer {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

.campaign-card.has-badge .campaign-timer {
  margin-top: 10px !important;
  margin-bottom: 0 !important;
}

/* Discount badge: bright top-right pill */
.badge-discount {
  position: absolute !important;
  top: 12px !important;
  bottom: auto !important;
  right: 12px !important;
  left: auto !important;
  z-index: 5 !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--primary-dark, #0698d6), var(--primary, #00f0ff)) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}


/* =========================================================
   CAMPAIGN DESKTOP TABLET COMPACT FIX
   Stops campaign cards from becoming fullscreen/large.
   ========================================================= */

@media (min-width: 769px) {
    .campaigns-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: stretch !important;
        gap: clamp(16px, 2vw, 24px) !important;
        width: 100% !important;
        max-width: 1100px !important;
        margin: 0 auto !important;
    }

    .campaign-card {
        flex: 1 1 320px !important;
        width: auto !important;
        max-width: 480px !important;
        min-width: 300px !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        min-height: 200px !important;
        max-height: 300px !important;
        margin: 0 auto !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .campaign-card .campaign-card-media {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}


/* =========================================================
   HOME PRODUCT SLIDER
   Admin-controlled slider with arrows + dots
   ========================================================= */

.products-section {
    position: relative !important;
}

.product-grid.product-slider {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    padding-bottom: 14px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.product-grid.product-slider::-webkit-scrollbar {
    display: none !important;
}

.product-grid.product-slider > .product-card {
    flex: 0 0 280px !important;
    max-width: 280px !important;
    scroll-snap-align: start !important;
}

/* Controls generated by JS */
.product-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 4px;
}

.product-slider-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.06);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.product-slider-btn:hover {
    background: rgba(0, 240, 255, 0.14);
    border-color: rgba(0, 240, 255, 0.55);
}

.product-slider-btn.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.product-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.product-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.product-slider-dot.active {
    width: 22px;
    background: var(--primary, #00f0ff);
}

/* Light mode */
body.light-mode .product-slider-btn {
    border-color: rgba(6, 152, 214, 0.25);
    background: rgba(6, 152, 214, 0.06);
    color: #0f172a;
}

body.light-mode .product-slider-btn:hover {
    background: rgba(6, 152, 214, 0.14);
    border-color: rgba(6, 152, 214, 0.55);
}

body.light-mode .product-slider-dot {
    background: rgba(15, 23, 42, 0.25);
}

body.light-mode .product-slider-dot.active {
    background: #ff2d55;
}

/* Mobile: swipe, no arrows */
@media (max-width: 768px) {
    .product-grid.product-slider > .product-card {
        flex-basis: 85% !important;
        max-width: 85% !important;
        min-width: 0 !important;
    }

    .product-slider-nav {
        display: none !important;
    }
}


/* =========================================================
   HOME PRODUCT SLIDER MOBILE STABILITY
   Prevent vertical page jump/scroll on first mobile load.
   ========================================================= */

@media (max-width: 768px) {
    .products-section {
        overflow-anchor: none !important;
    }

    .product-grid.product-slider {
        touch-action: pan-x !important;
        overflow-y: hidden !important;
        overscroll-behavior-y: contain !important;
        scroll-snap-type: x proximity !important;
        scroll-padding-inline: 8px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .product-grid.product-slider > .product-card {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        min-width: 0 !important;
        scroll-snap-align: start !important;
    }

    .product-slider-dots {
        min-height: 20px !important;
        margin-top: 8px !important;
    }
}


/* =========================================================
   HOME PRODUCT SLIDER RTL + TOUCH + BTN CARD FIX
   ========================================================= */

/* Keep vertical page scroll alive on mobile;
   horizontal swipe should still control the slider. */
@media (max-width: 768px) {
    .product-grid.product-slider {
        touch-action: pan-y !important;
        overscroll-behavior-y: auto !important;
        overscroll-behavior-x: contain !important;
    }
}

/* Better light-mode add-to-cart / card action button */
body.light-mode .product-card .btn-card {
    background: rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

body.light-mode .product-card .btn-card:hover {
    background: rgba(6, 152, 214, 0.12) !important;
    color: #a80023 !important;
    border-color: rgba(6, 152, 214, 0.28) !important;
}


/* =========================================================
   MOBILE SLIDER TOUCH ACTION FIX
   Allow both vertical page scroll and horizontal slider swipe.
   ========================================================= */

@media (max-width: 768px) {
    .product-grid.product-slider {
        touch-action: pan-x pan-y !important;
        overscroll-behavior: contain !important;
    }
}


/* =========================================================
   FINAL SLIDER SCROLL CHAINING FIX
   Never scroll vertically inside the slider.
   Vertical wheel/touch always scrolls the page.
   ========================================================= */

.product-grid.product-slider {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-y: auto !important;
    overscroll-behavior-x: contain !important;
    touch-action: pan-x pan-y !important;
    padding-bottom: 0 !important;
    align-items: stretch !important;
}

@media (max-width: 768px) {
    .product-grid.product-slider {
        touch-action: pan-x pan-y !important;
        overscroll-behavior-y: auto !important;
        overscroll-behavior-x: contain !important;
    }
}


/* =========================================================
   HOME BLOG SLIDER — matches product slider behavior
   Blog card width remains 340px on desktop.
   ========================================================= */
.blog-section {
  position: relative !important;
}

.blog-grid.blog-slider {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-snap-type: x proximity !important;
  gap: 16px !important;
  padding-bottom: 14px !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  align-items: stretch !important;
}

.blog-grid.blog-slider::-webkit-scrollbar {
  display: none !important;
}

.blog-grid.blog-slider > .blog-card-link {
  flex: 0 0 340px !important;
  max-width: 340px !important;
  min-width: 0 !important;
  scroll-snap-align: start !important;
}

.blog-grid.blog-slider > .blog-card-link .blog-card {
  height: 100% !important;
}

/* Blog slider controls generated by JS */
.blog-slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.blog-slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.06);
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.blog-slider-btn:hover {
  background: rgba(0, 240, 255, 0.14);
  border-color: rgba(0, 240, 255, 0.55);
}

.blog-slider-btn.disabled {
  opacity: 0.35;
  pointer-events: none;
}

.blog-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.blog-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.blog-slider-dot.active {
  width: 22px;
  background: var(--primary, #00f0ff);
}

body.light-mode .blog-slider-btn {
  border-color: rgba(6, 152, 214, 0.25);
  background: rgba(6, 152, 214, 0.06);
  color: #0f172a;
}

body.light-mode .blog-slider-btn:hover {
  background: rgba(6, 152, 214, 0.14);
  border-color: rgba(6, 152, 214, 0.55);
}

body.light-mode .blog-slider-dot {
  background: rgba(15, 23, 42, 0.25);
}

body.light-mode .blog-slider-dot.active {
  background: #ff2d55;
}

/* Mobile: swipe, no arrows */
@media (max-width: 768px) {
  .blog-grid.blog-slider > .blog-card-link {
    flex-basis: 85% !important;
    max-width: 85% !important;
  }

  .blog-slider-nav {
    display: none !important;
  }

  .blog-slider-dots {
    min-height: 20px !important;
    margin-top: 8px !important;
  }
}


/* =========================================================
   HOME BLOG SLIDER — EQUAL CARD HEIGHTS
   ========================================================= */
.blog-grid.blog-slider > .blog-card-link {
  display: flex !important;
  flex-direction: column !important;
  height: 460px !important;
  min-height: 460px !important;
  max-height: 460px !important;
}

.blog-grid.blog-slider > .blog-card-link .blog-card {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 0 !important;
}

.blog-grid.blog-slider .blog-img {
  flex: 0 0 212px !important;
  height: 212px !important;
  max-height: 212px !important;
  aspect-ratio: auto !important;
}

.blog-grid.blog-slider .blog-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.blog-grid.blog-slider .blog-body h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.8em !important;
}

.blog-grid.blog-slider .blog-body p {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 2.8em !important;
  flex: 1 1 auto !important;
}

.blog-grid.blog-slider .read-more {
  margin-top: auto !important;
  align-self: flex-start !important;
}


/* =========================================================
   HOME BLOG SLIDER — VERTICAL SCROLL-CHAINING FIX
   Vertical wheel/touch should scroll the page,
   horizontal swipe/drag should move the blog slider.
   ========================================================= */

.blog-grid.blog-slider {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-y: auto !important;
  overscroll-behavior-x: contain !important;
  touch-action: pan-x pan-y !important;
  scroll-snap-type: x proximity !important;
  align-items: stretch !important;
}

@media (max-width: 768px) {
  .blog-grid.blog-slider {
    touch-action: pan-x pan-y !important;
    overscroll-behavior-y: auto !important;
    overscroll-behavior-x: contain !important;
  }
}


/* =========================================================
   PHYSICAL HOME PRODUCT CARD IMPROVEMENTS
   ========================================================= */
.product-card .card-brand {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.physical-stock {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.physical-stock.in-stock {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.physical-stock.out-of-stock {
  background: rgba(255, 0, 85, 0.12);
  color: #ff0055;
}

body.light-mode .physical-stock.in-stock {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

body.light-mode .physical-stock.out-of-stock {
  background: rgba(225, 29, 72, 0.10);
  color: #be123c;
}

.products-section .badge-discount {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  border-radius: 999px !important;
}


/* =========================================================
   SELECTED CATEGORY CARDS — ALWAYS 2 PER ROW
   Works at any browser zoom / user font size.
   ========================================================= */
.category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(10px, 2vw, 1.5rem) !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.category-card {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.category-card img,
.category-card video {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
}

.category-card h3 {
  font-size: clamp(0.85rem, 3vw, 1rem) !important;
  line-height: 1.4 !important;
  padding: 0.8rem 0.5rem !important;
  white-space: normal !important;
  word-break: break-word !important;
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}


/* =========================================================
   RESPONSIVE CATEGORY GRID OVERRIDE
   Ensures desktop/tablet/mobile columns remain correct.
   This block intentionally comes after older rules.
   ========================================================= */
@media (min-width: 1025px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(14px, 2vw, 1.5rem) !important;
  }

  .category-card h3 {
    font-size: clamp(0.75rem, 1.2vw, 0.9rem) !important;
    padding: 0.7rem 0.5rem !important;
  }
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}


/* =========================================================
   FINAL CATEGORY GRID COLUMN OVERRIDE
   Desktop + Tablet: 4 per row. Mobile: 2 per row.
   Placed last so it wins over previous media rules.
   ========================================================= */
@media (min-width: 769px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: clamp(12px, 1.8vw, 1.5rem) !important;
  }

  .category-card h3 {
    font-size: clamp(0.72rem, 1.1vw, 0.9rem) !important;
    padding: 0.65rem 0.5rem !important;
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* =========================================================
   LUX LIGHT HOME FINAL
   ========================================================= */
body.light-mode .product-card,
body.light-mode .blog-card,
body.light-mode .stat-card,
body.light-mode .newsletter-card,
body.light-mode .campaign-card {
  background: rgba(255,255,255,0.82);
  border-color: rgba(15,23,42,0.10);
  box-shadow: 0 12px 30px rgba(15,23,42,0.07);
}

body.light-mode .product-card:hover,
body.light-mode .blog-card:hover,
body.light-mode .stat-card:hover,
body.light-mode .newsletter-card:hover,
body.light-mode .campaign-card:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,45,85,0.30);
  box-shadow: 0 18px 45px rgba(255,45,85,0.12);
}

body.light-mode .btn-primary {
  background: linear-gradient(135deg, #a80023, #d81b3f);
  color: #fff;
  box-shadow: 0 10px 25px rgba(255,45,85,0.22);
}

body.light-mode .btn-secondary {
  background: rgba(255,255,255,0.72);
  color: #0b1220;
  border-color: rgba(15,23,42,0.16);
}

body.light-mode .btn-secondary:hover {
  background: rgba(255,45,85,0.10);
  color: #a80023;
  border-color: rgba(255,45,85,0.34);
}

body.light-mode .product-card .btn-card {
  background: rgba(255,255,255,0.75);
  color: #0b1220;
  border-color: rgba(15,23,42,0.14);
}

body.light-mode .product-card .btn-card:hover {
  background: rgba(255,45,85,0.10);
  color: #a80023;
  border-color: rgba(255,45,85,0.30);
}

body.light-mode .product-slider-btn,
body.light-mode .blog-slider-btn {
  background: rgba(255,255,255,0.78);
  border-color: rgba(15,23,42,0.14);
  color: #0b1220;
}

body.light-mode .product-slider-btn:hover,
body.light-mode .blog-slider-btn:hover {
  background: rgba(255,45,85,0.10);
  border-color: rgba(255,45,85,0.34);
  color: #a80023;
}

body.light-mode .product-slider-dot,
body.light-mode .blog-slider-dot {
  background: rgba(15,23,42,0.20);
}

body.light-mode .product-slider-dot.active,
body.light-mode .blog-slider-dot.active {
  background: #ff2d55;
}


/* =========================================================
   COOL BLUE WHITER BACKGROUND FINAL
   ========================================================= */
body.light-mode:not(.reduced-visual-effects) {
  background:
    radial-gradient(circle at 15% 0%, rgba(255,45,85,0.10), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(225,29,72,0.08), transparent 30%),
    radial-gradient(circle at 18% 55%, rgba(255,45,85,0.05), transparent 32%),
    radial-gradient(circle at 82% 65%, rgba(225,29,72,0.04), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(255,45,85,0.05), transparent 38%),
    linear-gradient(160deg, #ffffff 0%, #fbfdff 35%, #ffffff 65%, #fdf2f5 100%) !important;
}


/* =========================================================
   HOME LIGHT VISIBLE BLUE RED GRADIENT
   Stronger accent gradients on home pages only.
   ========================================================= */
body.light-mode:not(.reduced-visual-effects) {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 45, 85, 0.20), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(225, 29, 72, 0.18), transparent 32%),
    radial-gradient(circle at 18% 50%, rgba(255, 45, 85, 0.12), transparent 30%),
    radial-gradient(circle at 82% 55%, rgba(225, 29, 72, 0.12), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(255, 45, 85, 0.10), transparent 38%),
    radial-gradient(circle at 12% 85%, rgba(225, 29, 72, 0.10), transparent 30%),
    linear-gradient(160deg, #ffffff 0%, #f0faff 25%, #fff0f3 50%, #ffffff 75%, #eef8ff 100%) !important;
}


/* ==========================================================================
   REDUCE VERTICAL GAP BETWEEN CAMPAIGNS AND PRODUCT SECTIONS
   ========================================================================== */
.campaigns-section {
  padding: 12px 0 20px !important;
}

.products-section {
  padding: 28px 0 !important;
}

@media (max-width: 768px) {
  .campaigns-section {
    padding: 8px 0 12px !important;
  }

  .products-section {
    padding: 20px 0 !important;
  }
}

/* =========================================================
   HOME-PHYSICAL HERO -- FULL-WIDTH SLIDER + TEXT OVERLAY
   Added 2026-09-21.
   Desktop/tablet (>=769px): slider fills the hero's full width,
   the h1/p/buttons become a frosted overlay card at top-right.
   Mobile (<=768px): unchanged -- stacked text above slider.
   Scoped to .hero-physical only; digital home .hero untouched.
   ========================================================= */

@media (min-width: 769px) {
  .hero.hero-physical {
    display: block;
    position: relative;
    text-align: start;
    padding: 40px 0 34px;
    gap: 0;
    min-height: auto;
  }

  .hero.hero-physical .hero-visual {
    width: 100%;
    max-width: none;
  }

  .hero.hero-physical .hero-slider-container {
    width: 100%;
    max-width: none;
    aspect-ratio: 16/10;
  }

  .hero.hero-physical .hero-content {
    position: absolute;
    top: 40px;
    right: 40px;
    left: auto;
    z-index: 30;
    max-width: min(520px, 46%);
    padding: 26px 30px;
    border-radius: 24px;
    background: rgba(10, 14, 26, 0.55);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    text-align: start;
  }

  .hero.hero-physical .hero-content h1 {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    line-height: 1.35;
    margin-bottom: 14px;
  }

  .hero.hero-physical .hero-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero.hero-physical .hero-buttons {
    justify-content: flex-start;
  }

  /* Hide the slide's own text overlay -- redundant with the h1 card */
  .hero.hero-physical .hero-slide-content {
    display: none !important;
  }

  /* Light-mode card */
  body.light-mode .hero.hero-physical .hero-content {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.10);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.14);
  }
}

/* =========================================================
   HOME-PHYSICAL HERO -- SHRINK (2026-09-21)
   Caps the hero to a compact centered box. Ratio stays 16/10.
   Overlay card re-anchors to the capped box automatically.
   ========================================================= */

@media (min-width: 769px) {
  .hero.hero-physical {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 0 24px;
  }

  .hero.hero-physical .hero-content {
    top: 28px;
    right: 28px;
    max-width: min(440px, 62%);
    padding: 22px 26px;
  }

  .hero.hero-physical .hero-content h1 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    margin-bottom: 10px;
  }

  .hero.hero-physical .hero-content p {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }
}

/* =========================================================
   HOME-PHYSICAL HERO -- V3 2-COLUMN (2026-09-21)
   Reverts v1's overlay back to a 2-column grid.
   Text on the right (RTL first column). Slider on the left,
   fills its half up to ~600px, keeps 16/10.
   Scoped to .hero.hero-physical. Digital home untouched.
   ========================================================= */

@media (min-width: 769px) {
  .hero.hero-physical {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0 34px;
    position: static;
    text-align: start;
  }

  /* ---- text beside, not overlaid ---- */
  .hero.hero-physical .hero-content {
    position: static;
    top: auto;
    right: auto;
    max-width: none;
    padding: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    text-align: start;
  }

  .hero.hero-physical .hero-content h1 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    line-height: 1.32;
    margin-bottom: 16px;
  }

  .hero.hero-physical .hero-content p {
    font-size: 0.95rem;
    line-height: 1.75;
    max-width: 100%;
    margin-bottom: 22px;
  }

  .hero.hero-physical .hero-buttons {
    justify-content: flex-start;
  }

  /* ---- slider fills its half, capped ---- */
  .hero.hero-physical .hero-visual {
    width: 100%;
    max-width: 620px;
    justify-self: end;   /* in RTL this pins the slider toward the left edge of the grid */
  }

  .hero.hero-physical .hero-slider-container {
    width: 100%;
    max-width: 620px;
    aspect-ratio: 16/10;
  }

  /* light-mode: no frosted card anymore -- just ensure slider shadow is soft */
  body.light-mode .hero.hero-physical .hero-slider-container {
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
    border-color: rgba(15, 23, 42, 0.08);
  }
}

/* =========================================================
   HOME-PHYSICAL HERO -- V3B LIGHT RESET (2026-09-21)
   The v1 overlay patch added a light-mode frosted card. V3
   switched to 2-column (no overlay), but the light-mode rule
   has higher specificity and was still painting a white card.
   This reset neutralizes it. Same selector, appended later.
   ========================================================= */

@media (min-width: 769px) {
  body.light-mode .hero.hero-physical .hero-content {
    background: none;
    border-color: transparent;
    box-shadow: none;
  }
}

/* =========================================================
   HOME-PHYSICAL HERO -- V3C BIGGER SLIDER (2026-09-21)
   Slider gains slightly more column share; outer capped at 1300px;
   slider capped at 720px. Ratio stays 16/10.
   ========================================================= */

@media (min-width: 769px) {
  .hero.hero-physical {
    grid-template-columns: 1fr 1.15fr;
    max-width: 1300px;
  }

  .hero.hero-physical .hero-visual,
  .hero.hero-physical .hero-slider-container {
    max-width: 720px;
  }
}

/* =========================================================
   TWO-ROW HOME CATEGORY SECTION (2026-09-29)
   ========================================================= */
.home-category-cards-top { margin-top: 1.5rem; margin-bottom: 2.5rem; padding-top: 0.5rem; }

.cat-row-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  padding: 0 0.5rem;
}
.category-card-lg { min-width: 0; width: 100%; display: flex; flex-direction: column; }
.category-card-lg img, .category-card-lg video { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.category-card-lg .category-card-placeholder {
  width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; background: rgba(255,255,255,0.03); color: var(--text-muted);
}
.category-card-lg h3 {
  font-size: 0.95rem; font-weight: 700; padding: 0.85rem 0.5rem; text-align: center; color: var(--text); margin: 0;
}

.cat-row-small-marquee {
  /* THEODOR-MARQUEE-WIDTH-V1 - was max-width: 1100px, removed to fill desktop width */
  position: relative; overflow: hidden; width: 100%; max-width: none; margin: 0 auto; padding: 0.5rem 0;
  cursor: grab; -webkit-user-select: none; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.cat-row-small-marquee:active { cursor: grabbing; }
.cat-row-small-track { display: flex; gap: 0.75rem; width: max-content; will-change: transform; backface-visibility: hidden; transform: translate3d(0,0,0); }

.cat-card-sm {
  flex: 0 0 140px; width: 140px; min-width: 140px; max-width: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.cat-card-sm:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: 0 10px 24px rgba(0,240,255,0.08); }
.cat-card-sm img, .cat-card-sm video { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.cat-card-sm .category-card-placeholder {
  width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; background: rgba(255,255,255,0.03); color: var(--text-muted);
}
.cat-card-sm h3 {
  font-size: 0.72rem; font-weight: 600; padding: 0.55rem 0.4rem; text-align: center; color: var(--text); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .home-category-cards-top { margin-top: 1rem; margin-bottom: 1.75rem; }
  .cat-row-large { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1.25rem; }
  /* If the last large card is alone on a mobile row, span it full width */
  .cat-row-large > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .category-card-lg h3 { font-size: 0.82rem; padding: 0.6rem 0.35rem; }
  .cat-card-sm { flex: 0 0 110px; width: 110px; min-width: 110px; max-width: 110px; }
  .cat-card-sm h3 { font-size: 0.65rem; }
}

/* PADDING TWEAK - tighter side padding on category section (all devices) */
.home-category-cards.home-category-cards-top {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
@media (max-width: 768px) {
  .home-category-cards.home-category-cards-top {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ============================================================
   HERO-BTN-V1  ·  Animated gradient + glass + ghost hero buttons
   ============================================================ */
.hero.hero-physical .hero-buttons-herofix {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: flex-start;
  margin-top: 4px;
}
.btn-hero {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 26px; border-radius: 44px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease;
  min-height: 48px; position: relative; overflow: hidden;
}
.btn-hero i { font-size: 1.05em; line-height: 1; }

.btn-hero-primary {
  color: #05161a;
  background: linear-gradient(120deg,
      var(--primary-light) 0%, var(--primary) 35%,
      var(--primary-dark) 55%, var(--primary) 75%,
      var(--primary-light) 100%);
  background-size: 260% 260%;
  box-shadow: 0 8px 28px rgba(var(--primary-rgb), .35),
              inset 0 1px 0 rgba(255,255,255,.25);
  animation: heroBtnGradient 6.5s ease-in-out infinite;
}
@keyframes heroBtnGradient {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(var(--primary-rgb), .5),
              inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-hero-primary:active { transform: translateY(-1px); }

.btn-hero-glass {
  color: var(--text);
  background: linear-gradient(135deg,
      rgba(var(--primary-rgb), .10) 0%,
      rgba(var(--primary-rgb), .04) 100%),
      var(--surface, rgba(15,20,32,.6));
  border: 1.5px solid rgba(var(--primary-rgb), .35);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.btn-hero-glass i { color: var(--primary); }
.btn-hero-glass:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  background: linear-gradient(135deg,
      rgba(var(--primary-rgb), .18) 0%,
      rgba(var(--primary-rgb), .08) 100%),
      var(--surface, rgba(15,20,32,.75));
  box-shadow: 0 10px 28px rgba(var(--primary-rgb), .28);
}
.btn-hero-ghost {
  color: var(--text-secondary); background: transparent;
  border: 1.5px dashed rgba(var(--primary-rgb), .4);
}
.btn-hero-ghost:hover {
  color: var(--primary); border-color: var(--primary);
  border-style: solid; transform: translateY(-2px);
}
body.light-mode .btn-hero-glass {
  background: linear-gradient(135deg,
      rgba(var(--primary-rgb), .12) 0%,
      rgba(var(--primary-rgb), .05) 100%), #f6f8fb;
  color: #0a1420; box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
body.light-mode .btn-hero-ghost { color: #4a5568; }

@media (max-width: 1023px) {
  .hero.hero-physical .hero-buttons-herofix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; width: 100%;
  }
  .btn-hero { width: 100%; padding: 13px 18px; font-size: .92rem; min-width: 0; }
}
@media (max-width: 320px) {  /* FIX-2B: was 420px, phones stay 2x2 */
  .hero.hero-physical .hero-buttons-herofix {
    grid-template-columns: 1fr; gap: 8px;
  }
  .btn-hero { padding: 12px 16px; font-size: .9rem; justify-content: center; }  /* FIX-2C */
}
@media (prefers-reduced-motion: reduce) {
  .btn-hero-primary { animation: none; background-position: 50% 50%; }
  .btn-hero,
  .btn-hero-primary:hover, .btn-hero-glass:hover, .btn-hero-ghost:hover {
    transition: none; transform: none;
  }
}
/* HERO-BTN-V1 */


/* =========================================================
   THEODOR-HOME-PHYSICAL-CARDS-V1
   Match landing #curated mobile card look on /home-physical/.
   Vertical card: image on top, title + short desc below,
   price + button at bottom. Shrunk sizing. Bloody-red badge.
   Focus ring room at slider edges.
   Scope: body.home-physical only, max-width 768px.
   Specificity body.home-physical .product-card (0,3,1) beats
   mobile-product-cards-fix.css body .product-card (0,2,1).
   ========================================================= */

@media (max-width: 768px) {
    body.home-physical .product-grid.product-slider > .product-card {
        flex: 0 0 72% !important;
        max-width: 72% !important;
        min-width: 0 !important;
    }

    body.home-physical .product-card {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
        gap: 0 !important;
        min-height: 0 !important;
    }

    body.home-physical .product-card .card-img-wrap {
        flex: none !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 / 0.72 !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    body.home-physical .product-card .card-img-inner img,
    body.home-physical .product-card .card-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
    }

    body.home-physical .product-card .card-body {
        padding: 8px 10px !important;
        gap: 0.22rem !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        overflow: visible !important;
    }

    body.home-physical .product-card .title-wrapper {
        align-items: flex-start;
    }

    body.home-physical .product-card .product-title {
        -webkit-line-clamp: 2 !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 0.82rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0 !important;
    }

    body.home-physical .product-card .card-desc {
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 0.7rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0 !important;
    }

    body.home-physical .product-card .card-bottom {
        margin-top: auto !important;
        padding-top: 0.15rem !important;
    }

    body.home-physical .product-card .card-footer {
        margin-bottom: 0.25rem !important;
    }

    body.home-physical .product-card .card-price {
        font-size: 0.9rem !important;
    }

    body.home-physical .product-card .btn-card {
        font-size: 0.65rem !important;
        padding: 4px 10px !important;
    }

    body.home-physical .product-card.title-expanded-card .product-title {
        -webkit-line-clamp: unset !important;
        overflow: visible !important;
    }

    /* Focus ring room at slider edges */
    body.home-physical .product-grid.product-slider {
        padding-inline: 16px !important;
        scroll-padding-inline: 16px !important;
    }
}

/* Bloody-red discount badge on home-physical cards, both themes */
body.home-physical .product-card .card-img-wrap > .badge-discount,
body.home-physical .product-card .badge-discount {
    background: #8b0000 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    text-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* END THEODOR-HOME-PHYSICAL-CARDS-V1 */


/* =========================================================
   THEODOR-HOME-PHYSICAL-CARDS-V1-FIX
   Restore rounded corners when the card title expands.
   The base rule .product-card.title-expanded-card has
   overflow: visible !important which unclips the rounded
   shell and lets card-img-wrap background show through.
   Same fix that landed on landing #curated.
   Scope: body.home-physical only.
   ========================================================= */

@media (max-width: 768px) {
    body.home-physical .product-card.title-expanded-card {
        overflow: hidden !important;
    }
}

/* END THEODOR-HOME-PHYSICAL-CARDS-V1-FIX */

/* =========================================================
   OLIVER-HOME-HERO-MOBILE-V1
   Mobile-only hero redesign for /home-physical/.
   1) Slider moves ABOVE the text block (order swap).
   2) Paragraph restored on small screens (was display:none).
   3) 4 hero buttons -> unified 2x2 soft-glass grid.
   4) heroBtnGradient infinite animation killed.
   Slider sizing untouched (original 16/9 stays).
   Desktop >= 769px untouched. .hero.hero-physical scope only.
   ========================================================= */
@media (max-width: 768px) {
  .hero.hero-physical {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 0 20px;
    text-align: center;
  }

  /* 1. Slider first - no size change */
  .hero.hero-physical .hero-visual { order: 1; }
  .hero.hero-physical .hero-content { order: 2; padding: 0 4px; }

  /* 2. h1 tighter */
  .hero.hero-physical .hero-content h1 {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
  }

  /* 2. Paragraph restored, clamped to 2 lines */
  .hero.hero-physical .hero-content p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 18px;
    padding: 0 4px;
  }

  /* 3. Unified button grid 2x2 */
  .hero.hero-physical .hero-buttons-herofix {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    justify-content: center;
  }

  .hero.hero-physical .btn-hero {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 14px;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
  }
  .hero.hero-physical .btn-hero i { font-size: 0.95rem; }

  /* 4. KILL animated gradient primary - unified soft-glass for all 4 */
  .hero.hero-physical .btn-hero-primary,
  .hero.hero-physical .btn-hero-glass,
  .hero.hero-physical .btn-hero-ghost {
    animation: none !important;
    background: rgba(255, 255, 255, 0.055) !important;
    background-image: none !important;
    background-size: auto !important;
    color: var(--text) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
    transform: none !important;
  }
  .hero.hero-physical .btn-hero i { color: var(--primary) !important; }

  .hero.hero-physical .btn-hero:active {
    transform: scale(0.97) !important;
    background: rgba(255, 255, 255, 0.10) !important;
  }

  body.light-mode .hero.hero-physical .btn-hero-primary,
  body.light-mode .hero.hero-physical .btn-hero-glass,
  body.light-mode .hero.hero-physical .btn-hero-ghost {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    color: #0f172a !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
  }
  body.light-mode .hero.hero-physical .btn-hero i { color: var(--primary) !important; }
}

@media (max-width: 380px) {
  .hero.hero-physical .hero-content h1 { font-size: 1.3rem; }
  .hero.hero-physical .hero-content p { font-size: 0.82rem; }
  .hero.hero-physical .btn-hero { font-size: 0.78rem; padding: 11px 8px; min-height: 44px; }
}
/* END OLIVER-HOME-HERO-MOBILE-V1 */

/* =========================================================
   OLIVER-SLIDER-FADE-V8
   Inherit the fade-out mask from .cat-row-small-marquee and
   apply it to the product slider + blog slider on physical home.
   Symmetric 6% / 94% stops — RTL-safe.
   ========================================================= */
.product-grid.product-slider,
.blog-grid.blog-slider {
    -webkit-mask-image: linear-gradient(90deg, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0px, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
/* END OLIVER-SLIDER-FADE-V8 */

/* =========================================================
   OLIVER-SLIDER-DESK-PAD-V15
   Desktop only: give the slider 32px L/R padding so first and
   last cards clear the 24px edge-fade mask. Mobile unchanged.
   ========================================================= */
@media (min-width: 769px) {
    .product-grid.product-slider,
    .blog-grid.blog-slider {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}
/* END OLIVER-SLIDER-DESK-PAD-V15 */

