/* ══════════════════════════════════════════
   FAMINAB — Homepage Styles
   ══════════════════════════════════════════ */

/* ════════════════════ HERO — TYPED HEADLINE + GRADIENT MORPH ════════════════════ */
.hero-section {
  position: relative;
  overflow: hidden;
  background: #040810;
}
/* ── Light mode hero — bright, on-brand ── */
[data-theme="light"] .hero-section {
  background: linear-gradient(160deg, #eef2f8 0%, #e4ecf5 40%, #f5f0e6 70%, #eef2f8 100%);
}
[data-theme="light"] .hero-mesh {
  background:
    radial-gradient(ellipse at 20% 35%, rgba(212,175,55,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(13,27,42,0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 15%, rgba(96,165,250,0.06) 0%, transparent 45%);
}
[data-theme="light"] .hero-headline {
  color: var(--color-primary-800);
}
[data-theme="light"] .hero-typed {
  background: linear-gradient(135deg, #b8960c 0%, #d4af37 50%, #c9a227 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .hero-cursor {
  background: #b8960c;
}
[data-theme="light"] .hero-sub {
  color: var(--color-gray-400);
}
[data-theme="light"] .hero-pill {
  color: var(--color-gray-500);
  background: rgba(255,255,255,0.7);
  border-color: var(--color-gray-100);
  box-shadow: 0 1px 4px rgba(8,18,35,0.06);
}
[data-theme="light"] .hero-pill:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.3);
  color: #9e7212;
}
[data-theme="light"] .hero-pill--active {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.35);
  color: #9e7212;
  box-shadow: 0 2px 12px rgba(212,175,55,0.1);
}
[data-theme="light"] .hero-stats {
  border-top-color: var(--color-gray-100);
}
[data-theme="light"] .hero-stat strong {
  color: #9e7212;
}
[data-theme="light"] .hero-stat span {
  color: var(--color-gray-400);
}
[data-theme="light"] .hero-stat-sep {
  background: var(--color-gray-200);
}

/* Animated mesh gradient */
.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(212,175,55,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(19,40,67,0.7) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 20%, rgba(96,165,250,0.06) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: meshMorph 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes meshMorph {
  0%, 100% { background-position: 0% 50%; }
  25%      { background-position: 60% 20%; }
  50%      { background-position: 100% 50%; }
  75%      { background-position: 40% 80%; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 100px 0 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Typed Headline ── */
.hero-headline {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.hero-typed-wrap {
  display: inline;
  position: relative;
}
.hero-typed {
  background: linear-gradient(135deg, #f2d05c 0%, #d4af37 50%, #f0c040 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 4s linear infinite;
}
@keyframes goldShimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.hero-cursor {
  display: inline-block;
  width: 3px;
  height: 0.8em;
  background: #d4af37;
  margin-right: 4px;
  vertical-align: baseline;
  animation: cursorBlink 0.7s step-end infinite;
  border-radius: 2px;
}
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ── Subtitle ── */
.hero-sub {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  max-width: 460px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── Pill Buttons ── */
.hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
}
.hero-pill i { font-size: 0.9rem; }
.hero-pill:hover {
  background: rgba(212,175,55,0.1);
  border-color: rgba(212,175,55,0.25);
  color: #f2d05c;
  transform: translateY(-2px);
}
.hero-pill--active {
  background: rgba(212,175,55,0.12);
  border-color: rgba(212,175,55,0.3);
  color: #f2d05c;
  box-shadow: 0 4px 16px rgba(212,175,55,0.1);
}

/* ── Stats row ── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: #d4af37;
  line-height: 1;
}
.hero-stat span {
  font-size: 0.64rem;
  color: rgba(255,255,255,0.4);
  margin-top: 3px;
  display: block;
}
.hero-stat-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.08);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner { padding: 84px 0 28px; }
  .hero-headline { font-size: clamp(1.3rem, 5.5vw, 1.8rem); min-height: 1.15em; margin-bottom: 10px; }
  .hero-sub { font-size: 0.78rem; margin-bottom: 18px; max-width: 340px; }
  .hero-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    margin-bottom: 20px;
    justify-content: flex-start;
    padding: 0 4px 4px;
  }
  .hero-pills::-webkit-scrollbar { display: none; }
  .hero-pill {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 7px 14px;
    font-size: 0.72rem;
    border-radius: 8px;
    white-space: nowrap;
  }
  .hero-pill i { font-size: 0.82rem; }
  .hero-stats { gap: 14px; padding-top: 12px; }
  .hero-stat strong { font-size: 0.95rem; }
  .hero-stat span { font-size: 0.6rem; }
  .hero-stat-sep { height: 20px; }
}
@media (max-width: 480px) {
  .hero-inner { padding: 76px 0 22px; }
  .hero-headline { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  .hero-sub { font-size: 0.74rem; margin-bottom: 14px; max-width: 300px; }
  .hero-pills { gap: 5px; margin-bottom: 16px; }
  .hero-pill { padding: 6px 12px; font-size: 0.68rem; }
  .hero-pill i { font-size: 0.78rem; }
  .hero-stats { gap: 10px; padding-top: 10px; }
  .hero-stat strong { font-size: 0.88rem; }
  .hero-stat span { font-size: 0.56rem; }
  .hero-stat-sep { height: 18px; }
}


/* ════════════════════ BRAND STRIP (below hero) ════════════════════ */
/* ════════════════════ BRAND TRUST STRIP ════════════════════ */
.brand-strip {
  padding: 14px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.brand-strip-inner {
  position: relative;
  overflow: hidden;
}
.brand-strip-inner::before,
.brand-strip-inner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  z-index: 4;
  width: 100px;
  pointer-events: none;
}
.brand-strip-inner::before {
  right: 0;
  background: linear-gradient(to left, var(--ink) 0%, transparent 100%);
}
.brand-strip-inner::after {
  left: 0;
  background: linear-gradient(to right, var(--ink) 0%, transparent 100%);
}
.brand-strip-track {
  display: flex;
  gap: 40px;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: brandsMarquee 28s linear infinite;
}
.brand-strip-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 32px;
  flex-shrink: 0;
}
.brand-strip-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: grayscale(1) brightness(0.45);
  opacity: 0.5;
  transition: filter 0.35s, opacity 0.35s;
}
[data-theme="dark"] .brand-strip-logo {
  filter: grayscale(1) brightness(1.6);
  opacity: 0.35;
}
.brand-strip-item:hover .brand-strip-logo {
  filter: grayscale(0) brightness(1);
  opacity: 1;
}
[data-theme="dark"] .brand-strip-item:hover .brand-strip-logo {
  filter: grayscale(0) brightness(1.2);
  opacity: 0.9;
}
@media (max-width: 768px) {
  .brand-strip { padding: 10px 0; }
  .brand-strip-item { width: 72px; height: 26px; }
  .brand-strip-track { gap: 32px; animation-duration: 22s; }
  .brand-strip-inner::before,
  .brand-strip-inner::after { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-strip-track { animation: none; }
}

/* ════════════════════ CATEGORIES ════════════════════ */
/* ════════════════════ CATEGORIES — GLASS PANEL ════════════════════ */
.categories-section {
  padding: 40px 0;
  position: relative;
}

/* ── Glass Panel — distinct from product carousel boxes ── */
.cat-panel {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  padding: 24px 24px 28px;
  box-shadow:
    0 4px 32px rgba(26,54,93,0.06),
    inset 0 1px 0 rgba(255,255,255,0.7);
}
[data-theme="dark"] .cat-panel {
  background: rgba(255,255,255,0.025);
  border-color: rgba(255,255,255,0.07);
  box-shadow:
    0 4px 32px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(255,255,255,0.02);
}

/* ── Panel Header — compact inline ── */
.cat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cat-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.cat-panel-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.25s, gap 0.3s;
  text-decoration: none;
}
.cat-panel-all:hover {
  color: var(--accent);
  gap: 8px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

/* ── Card — inner glass chips ── */
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 16px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
              border-color 0.3s ease,
              background 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(8,18,35,0.04);
}
[data-theme="dark"] .cat-card {
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 1px 8px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Glow Orb ── */
.cat-glow {
  position: absolute;
  bottom: -25%;
  left: 50%;
  translate: -50% 0;
  width: 70%;
  height: 55%;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0;
  transition: opacity 0.45s, height 0.45s;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .cat-glow { opacity: 0; }
.cat-card:hover .cat-glow { opacity: 0.45; height: 75%; }
[data-theme="dark"] .cat-card:hover .cat-glow { opacity: 0.35; }

.cat-card--paint   .cat-glow { background: rgba(212,175,55,0.55); }
.cat-card--resin   .cat-glow { background: rgba(96,165,250,0.5); }
.cat-card--glue    .cat-glow { background: rgba(251,191,36,0.5); }
.cat-card--tools   .cat-glow { background: rgba(74,222,128,0.5); }
.cat-card--materials .cat-glow { background: rgba(167,139,250,0.5); }
.cat-card--floor   .cat-glow { background: rgba(244,114,182,0.5); }
.cat-card--pipes   .cat-glow { background: rgba(34,211,238,0.5); }
.cat-card--safety  .cat-glow { background: rgba(248,113,113,0.5); }

/* ── Hover ── */
.cat-card:hover { transform: translateY(-5px); }
@media (hover:none) { .cat-card:hover { transform: none; } }
.cat-card:active { transform: translateY(-1px) scale(0.97); transition-duration: 0.1s; }
.cat-card:hover .cat-icon { transform: scale(1.1) rotate(-4deg); }

.cat-card--paint:hover    { border-color: rgba(212,175,55,0.4);  box-shadow: 0 6px 24px rgba(212,175,55,0.15), 0 0 0 1px rgba(212,175,55,0.18); }
.cat-card--resin:hover    { border-color: rgba(96,165,250,0.4);  box-shadow: 0 6px 24px rgba(96,165,250,0.15), 0 0 0 1px rgba(96,165,250,0.18); }
.cat-card--glue:hover     { border-color: rgba(251,191,36,0.4);  box-shadow: 0 6px 24px rgba(251,191,36,0.15), 0 0 0 1px rgba(251,191,36,0.18); }
.cat-card--tools:hover    { border-color: rgba(74,222,128,0.4);  box-shadow: 0 6px 24px rgba(74,222,128,0.15), 0 0 0 1px rgba(74,222,128,0.18); }
.cat-card--materials:hover { border-color: rgba(167,139,250,0.4); box-shadow: 0 6px 24px rgba(167,139,250,0.15), 0 0 0 1px rgba(167,139,250,0.18); }
.cat-card--floor:hover    { border-color: rgba(244,114,182,0.4); box-shadow: 0 6px 24px rgba(244,114,182,0.15), 0 0 0 1px rgba(244,114,182,0.18); }
.cat-card--pipes:hover    { border-color: rgba(34,211,238,0.4);  box-shadow: 0 6px 24px rgba(34,211,238,0.15), 0 0 0 1px rgba(34,211,238,0.18); }
.cat-card--safety:hover   { border-color: rgba(248,113,113,0.4); box-shadow: 0 6px 24px rgba(248,113,113,0.15), 0 0 0 1px rgba(248,113,113,0.18); }

[data-theme="dark"] .cat-card--paint:hover    { border-color: rgba(212,175,55,0.35);  box-shadow: 0 6px 28px rgba(212,175,55,0.12), 0 0 0 1px rgba(212,175,55,0.2), inset 0 1px 0 rgba(212,175,55,0.08); }
[data-theme="dark"] .cat-card--resin:hover    { border-color: rgba(96,165,250,0.35);  box-shadow: 0 6px 28px rgba(96,165,250,0.12), 0 0 0 1px rgba(96,165,250,0.2), inset 0 1px 0 rgba(96,165,250,0.08); }
[data-theme="dark"] .cat-card--glue:hover     { border-color: rgba(251,191,36,0.35);  box-shadow: 0 6px 28px rgba(251,191,36,0.12), 0 0 0 1px rgba(251,191,36,0.2), inset 0 1px 0 rgba(251,191,36,0.08); }
[data-theme="dark"] .cat-card--tools:hover    { border-color: rgba(74,222,128,0.35);  box-shadow: 0 6px 28px rgba(74,222,128,0.12), 0 0 0 1px rgba(74,222,128,0.2), inset 0 1px 0 rgba(74,222,128,0.08); }
[data-theme="dark"] .cat-card--materials:hover { border-color: rgba(167,139,250,0.35); box-shadow: 0 6px 28px rgba(167,139,250,0.12), 0 0 0 1px rgba(167,139,250,0.2), inset 0 1px 0 rgba(167,139,250,0.08); }
[data-theme="dark"] .cat-card--floor:hover    { border-color: rgba(244,114,182,0.35); box-shadow: 0 6px 28px rgba(244,114,182,0.12), 0 0 0 1px rgba(244,114,182,0.2), inset 0 1px 0 rgba(244,114,182,0.08); }
[data-theme="dark"] .cat-card--pipes:hover    { border-color: rgba(34,211,238,0.35);  box-shadow: 0 6px 28px rgba(34,211,238,0.12), 0 0 0 1px rgba(34,211,238,0.2), inset 0 1px 0 rgba(34,211,238,0.08); }
[data-theme="dark"] .cat-card--safety:hover   { border-color: rgba(248,113,113,0.35); box-shadow: 0 6px 28px rgba(248,113,113,0.12), 0 0 0 1px rgba(248,113,113,0.2), inset 0 1px 0 rgba(248,113,113,0.08); }

/* ── Icon ── */
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  z-index: 1;
}

.cat-card--paint .cat-icon     { color: #b8960c; background: rgba(212,175,55,0.14); border: 1px solid rgba(212,175,55,0.22); }
.cat-card--resin .cat-icon     { color: #3b82f6; background: rgba(96,165,250,0.12); border: 1px solid rgba(96,165,250,0.2); }
.cat-card--glue .cat-icon      { color: #d97706; background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.2); }
.cat-card--tools .cat-icon     { color: #16a34a; background: rgba(74,222,128,0.12); border: 1px solid rgba(74,222,128,0.2); }
.cat-card--materials .cat-icon { color: #7c3aed; background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.2); }
.cat-card--floor .cat-icon     { color: #db2777; background: rgba(244,114,182,0.12); border: 1px solid rgba(244,114,182,0.2); }
.cat-card--pipes .cat-icon     { color: #0891b2; background: rgba(34,211,238,0.12); border: 1px solid rgba(34,211,238,0.2); }
.cat-card--safety .cat-icon    { color: #dc2626; background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.2); }

[data-theme="dark"] .cat-card--paint .cat-icon     { color: #f0c040; border-color: rgba(212,175,55,0.25); }
[data-theme="dark"] .cat-card--resin .cat-icon     { color: #93bbfd; border-color: rgba(96,165,250,0.22); }
[data-theme="dark"] .cat-card--glue .cat-icon      { color: #fbbf24; border-color: rgba(251,191,36,0.22); }
[data-theme="dark"] .cat-card--tools .cat-icon     { color: #4ade80; border-color: rgba(74,222,128,0.22); }
[data-theme="dark"] .cat-card--materials .cat-icon { color: #a78bfa; border-color: rgba(167,139,250,0.22); }
[data-theme="dark"] .cat-card--floor .cat-icon     { color: #f472b6; border-color: rgba(244,114,182,0.22); }
[data-theme="dark"] .cat-card--pipes .cat-icon     { color: #22d3ee; border-color: rgba(34,211,238,0.22); }
[data-theme="dark"] .cat-card--safety .cat-icon    { color: #f87171; border-color: rgba(248,113,113,0.22); }

/* ── Typography ── */
.cat-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.cat-count {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* ── Arrow indicator ── */
.cat-arrow {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.68rem;
  color: var(--text-light);
  opacity: 0;
  transform: translateX(5px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 1;
}
.cat-card:hover .cat-arrow { opacity: 0.6; transform: translateX(0); }

/* ════════════════════ DEALS — SUBTLE DEPTH ════════════════════ */
/* ════════════════════ DEALS — ACCENT BANNER ════════════════════ */
.deals-section {
  background: linear-gradient(180deg, #070e1b 0%, #0b1527 50%, #070e1b 100%);
  position: relative;
  overflow: hidden;
  padding: 44px 0 48px;
}
.deals-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(212,175,55,0.2) 50%, transparent 90%);
}
.deals-section::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(212,175,55,0.1) 50%, transparent 90%);
}

[data-theme="light"] .deals-section {
  background: linear-gradient(180deg, #0d1b2a 0%, #132843 50%, #0d1b2a 100%);
}

.deals-section .container { position: relative; z-index: 1; }

/* ── Header — single compact row ── */
.deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}
.deals-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.deals-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f0f4f8;
  letter-spacing: -0.02em;
}
.deals-all {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(212,175,55,0.65);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.25s, gap 0.3s;
  flex-shrink: 0;
}
.deals-all:hover { color: #f2d05c; gap: 8px; }

/* ── Countdown — inline pill chips ── */
.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.countdown-chip {
  display: inline-block;
  min-width: 34px;
  padding: 5px 7px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f2d05c;
  text-align: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-chip--sec {
  color: #ffe5a5;
  border-color: rgba(212,175,55,0.28);
}
.countdown-dot {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(212,175,55,0.35);
  animation: dotBlink 1s step-end infinite;
}
@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* Tick bounce — JS adds .tick class */
@keyframes chipBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.12); }
  60%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.countdown-chip.tick {
  animation: chipBounce 0.28s cubic-bezier(0.16,1,0.3,1);
}

/* ── Swiper — no extra wrapper chrome ── */
.deals-swiper {
  position: relative;
  z-index: 1;
}
.deals-swiper .swiper-slide {
  padding-bottom: 8px;
}

.deals-pagination {
  margin-top: 20px;
  position: static !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.deals-pagination .swiper-pagination-bullet {
  background: rgba(212,175,55,0.12);
  opacity: 1;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.22);
  transition: all 0.35s ease;
  cursor: pointer;
}
.deals-pagination .swiper-pagination-bullet:hover {
  background: rgba(212,175,55,0.3);
  border-color: rgba(212,175,55,0.45);
}
.deals-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, #d4af37, #f2d05c);
  border-color: rgba(212,175,55,0.5);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(212,175,55,0.2);
}

/* ── Slider nav arrows ── */
.deals-slider-wrap { position: relative; z-index: 1; }
.deals-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-55%);
  z-index: 10;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.22);
  background: rgba(8,10,16,0.75);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #f2d05c;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.deals-nav:hover {
  background: rgba(212,175,55,0.15);
  border-color: rgba(212,175,55,0.45);
}
.deals-nav.swiper-button-disabled { opacity: 0.2; pointer-events: none; }
.deals-nav--prev { right: -18px; }
.deals-nav--next { left: -18px; }

/* ── Inline discount tag ── */
.price-disc-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #7f1d1d 0%, #dc2626 28%, #ff2d55 52%, #ff4d6d 72%, #e11d48 100%);
  box-shadow: 0 0 10px rgba(255, 45, 85, 0.45);
  text-shadow: 0 0 6px rgba(255, 45, 85, 0.7);
  line-height: 1.2;
  flex-shrink: 0;
}

/* ── Deal stock bar ── */
.deal-stock { margin-top: 8px; margin-bottom: 4px; }
.deal-stock-bar {
  height: 5px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.deal-stock-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #e53e3e, #f56565);
  transition: width 0.8s ease;
}
.deal-stock-text {
  font-size: 0.62rem;
  color: rgba(212,175,55,0.5);
  margin-top: 3px;
  display: block;
  font-weight: 500;
}
[data-theme="light"] .deal-stock-bar { background: rgba(255,255,255,0.12); }

/* ════════════════════ ANIMATED GRADIENT BORDER ════════════════════ */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes gradient-rotate {
  from { --gradient-angle: 0deg; }
  to   { --gradient-angle: 360deg; }
}

/* ════════════════════ PRODUCT CARDS ════════════════════ */
.product-card {
  --card-bg: var(--bg-card);
  border: 2px solid transparent;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(var(--card-bg), var(--card-bg)),
    conic-gradient(
      from var(--gradient-angle, 0deg),
      var(--gb-1) 0%, var(--gb-2) 37%, var(--gb-3) 30%,
      var(--gb-2) 33%, var(--gb-1) 40%, var(--gb-1) 50%,
      var(--gb-2) 77%, var(--gb-3) 80%, var(--gb-2) 83%,
      var(--gb-1) 90%
    );
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.product-card:hover {
  animation: gradient-rotate 4s linear infinite;
  box-shadow: var(--shadow-md), var(--shadow-gold);
  transform: translateY(-3px);
}

/* Theme colors for gradient border */
[data-theme="dark"] .product-card {
  --card-bg: rgba(12, 20, 36, 0.95);
  --gb-1: #1a1000;
  --gb-2: #c9a227;
  --gb-3: #f2d05c;
}
[data-theme="light"] .product-card {
  --card-bg: #ffffff;
  --gb-1: #e8dcc4;
  --gb-2: #c9a227;
  --gb-3: #d4af37;
}

/* Deal variant */
.product-card--deal {
  --card-bg: rgba(8, 14, 28, 0.96);
}
[data-theme="light"] .product-card--deal {
  --card-bg: #fefdfb;
}
.product-card--deal .product-name { color: rgba(255, 255, 255, 0.92); }
.product-card--deal .product-brand { color: rgba(212, 175, 55, 0.6); }
.product-card--deal .product-rating { color: rgba(212, 175, 55, 0.5); }
.product-card--deal .price-new { color: #f2d05c; }
[data-theme="light"] .product-card--deal .product-name { color: var(--text); }
[data-theme="light"] .product-card--deal .product-brand { color: var(--text-muted); }
[data-theme="light"] .product-card--deal .product-rating { color: var(--text-muted); }
[data-theme="light"] .product-card--deal .price-new { color: var(--accent); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.08) 0%,
    rgba(212, 175, 55, 0.02) 100%
  );
}
/* Real product image */
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img {
  transform: scale(1.04);
}

/* Subtle vignette overlay to enhance text readability on image */
.product-img-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.08) 80%,
    rgba(0, 0, 0, 0.18) 100%
  );
}

/* ── Home badge aliases — map old p-badge to global fm-badge ── */
.p-badge                { position: absolute; top: 10px; }
.p-badge--right         { right: 10px; }
.p-badge--left          { left: 10px; right: auto; }
.p-badge--disc-low,
.p-badge--disc-mid,
.p-badge--disc-high,
.p-badge--disc-mega     { /* inherits from fm-badge--discount via JS class */ }
.p-badge--new           { /* inherits from fm-badge--new via JS class */ }
.p-badge--hot           { /* inherits from fm-badge--hot via JS class */ }

.product-actions-overlay {
  display: none;
}
.product-actions {
  display: flex;
  gap: 8px;
  padding: 0;
  margin-top: 12px;
}
.prod-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}
.prod-action-btn--cart {
  flex: 1;
  background: linear-gradient(
    135deg,
    var(--accent-dark) 0%,
    var(--accent) 50%,
    var(--accent-shine) 100%
  );
  color: #081223;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}
.prod-action-btn--cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.3);
}
.prod-action-btn--cart--full {
  width: 100%;
}
.prod-action-btn--wish {
  background: var(--accent-glow);
  color: var(--accent);
  width: 44px;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.prod-action-btn--wish:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent-shine);
  transform: translateY(-2px);
}

.product-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 175, 55, 0.02) 100%
  );
}
.product-brand {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.product-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
}
a.product-name:hover {
  color: var(--accent, #c9a84c);
}
.product-img-wrap {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.prod-action-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.product-rating i {
  color: var(--accent);
  font-size: 0.65rem;
}
.product-rating span {
  font-size: 0.68rem;
}
.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: auto;
  flex-wrap: wrap;
}
.price-old {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.7;
}
.price-new {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
}

/* ════════════════════ BANNERS ════════════════════ */
.banners-section {
  padding: 32px 0;
}
.banners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.banner {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0a0a0f 0%, #0f0a12 100%);
  border: 1px solid rgba(212, 175, 55, 0.12);
}
.banner:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner:hover .banner-image {
  transform: scale(1.05);
}

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

/* ════════════════════ O2O ════════════════════ */
.o2o-section {
  background: var(--section-b);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.o2o-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(212, 168, 87, 0.10), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(212, 168, 87, 0.06), transparent 40%);
  pointer-events: none;
}
.o2o-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
}
.o2o-content { position: relative; }
.o2o-desc {
  color: var(--text-muted);
  line-height: 1.9;
  margin: 18px 0 28px;
  font-size: 0.95rem;
  max-width: 540px;
}

/* O2O tag: desktop vs mobile */
.o2o-tag-mobile { display: none; }

/* Stat cards row */
.o2o-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.o2o-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
.o2o-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.o2o-stat-card i {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 2px;
}
.o2o-stat-card strong {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
}
.o2o-stat-card span {
  font-size: 0.78rem;
  color: var(--text-muted);
}
/* Inline picker card */
.o2o-picker {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.o2o-picker-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.o2o-picker-icon {
  display: flex;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #081223;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-shine));
  box-shadow: var(--shadow-gold);
  flex-shrink: 0;
}
.o2o-picker-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.o2o-picker-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.o2o-picker-actions .btn { flex: 1; justify-content: center; }

/* ════════════════ O2O Modals ════════════════ */
.o2o-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal, 1000);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}
.o2o-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.o2o-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 35, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.o2o-modal-box {
  position: relative;
  width: 100%;
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(8, 18, 35, 0.45);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
}
.o2o-modal.is-open .o2o-modal-box { transform: translateY(0) scale(1); }
.o2o-modal-box--sm { max-width: 440px; padding: 28px; }
.o2o-modal-box--lg { max-width: 1040px; height: min(760px, calc(100vh - 48px)); overflow: hidden; }

[data-theme="dark"] .o2o-modal-box {
  background: rgba(12, 20, 36, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.12);
}
[data-theme="light"] .o2o-modal-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.o2o-modal-x {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg);
  color: var(--text-2);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: all 0.25s ease-out;
  z-index: 6;
}
.o2o-modal-x:hover {
  background: var(--accent);
  color: #081223;
  border-color: var(--accent);
  transform: rotate(90deg);
}

/* Location modal head */
.o2o-modal-head { text-align: center; margin-bottom: 22px; }
.o2o-modal-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #081223;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-shine));
  box-shadow: var(--shadow-gold);
  margin-bottom: 14px;
}
.o2o-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.o2o-modal-sub { font-size: 0.85rem; color: var(--text-muted); }

.o2o-modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.o2o-field { display: flex; flex-direction: column; gap: 8px; }
.o2o-field > label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Select */
.o2o-select-wrap { position: relative; display: flex; align-items: center; }
.o2o-select-wrap > i:first-child {
  position: absolute;
  right: 14px;
  font-size: 0.95rem;
  color: var(--accent);
  pointer-events: none;
}
.o2o-select-arrow {
  position: absolute;
  left: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: transform 0.25s;
}
.o2o-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding: 13px 42px 13px 38px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.o2o-select option {
  background: var(--bg-card, #fff);
  color: var(--text);
  font-family: inherit;
  padding: 8px;
}
[data-theme="dark"] .o2o-select option {
  background: #0f1d30;
  color: #EAF0F8;
}
.o2o-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.o2o-select:disabled { opacity: 0.55; cursor: not-allowed; }
.o2o-select--sm { padding: 10px 36px 10px 32px; font-size: 0.82rem; }

/* Range slider */
.o2o-radius-val {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
}
.o2o-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--input-bg);
  border: 1px solid var(--line-soft);
  cursor: pointer;
}
.o2o-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-shine));
  border: 3px solid #fff;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  transition: transform 0.2s;
}
.o2o-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.o2o-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-shine));
  border: 3px solid #fff;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
}
.o2o-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.o2o-modal-foot {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.o2o-grow { flex: 1; justify-content: center; }
.o2o-btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-soft);
}
.o2o-btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* ════════════════ Results modal ════════════════ */
.o2o-results-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.o2o-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg);
  border: 1px solid var(--line-soft);
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s;
}
.o2o-back-btn:hover { color: var(--accent); border-color: var(--accent); }
.o2o-results-title { margin-inline-end: auto; }
.o2o-results-title h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.o2o-results-meta { font-size: 0.78rem; color: var(--text-muted); }

.o2o-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--input-bg);
  border: 1px solid var(--line-soft);
}
.o2o-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease-out;
}
.o2o-tab.is-active {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-shine));
  color: #081223;
  box-shadow: var(--shadow-gold);
}
.o2o-results-head .o2o-modal-x { position: static; flex-shrink: 0; }

/* Tab panels */
.o2o-tab-panel {
  flex: 1;
  min-height: 0;
  display: none;
  opacity: 0;
  flex-direction: column;
  transition: opacity 0.3s ease-out;
}
.o2o-tab-panel.is-active { display: flex; opacity: 1; }

.o2o-map-canvas {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 360px;
}
.o2o-map-canvas .leaflet-popup-content-wrapper {
  border-radius: 14px;
  font-family: "Vazirmatn", sans-serif;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
[data-theme="dark"] .o2o-map-canvas .leaflet-popup-content-wrapper {
  background: rgba(12, 20, 36, 0.95);
  color: #EAF0F8;
}
[data-theme="dark"] .o2o-map-canvas .leaflet-popup-tip { background: rgba(12, 20, 36, 0.95); }
.o2o-map-canvas .leaflet-popup-content { margin: 12px 14px; direction: rtl; }
.o2o-pin {
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-shine));
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(8, 18, 35, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-out;
}
.o2o-pin i {
  transform: rotate(45deg);
  color: #081223;
  font-size: 0.95rem;
}
.o2o-pin.is-active {
  background: linear-gradient(135deg, #16314f, #2a4a6b);
  transform: rotate(-45deg) scale(1.2);
}
.o2o-pin.is-active i { color: var(--accent-shine); }

/* Filter bar */
.o2o-filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.o2o-filter { flex: 0 0 auto; min-width: 150px; }

.o2o-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.o2o-toggle input { display: none; }
.o2o-toggle-track {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: var(--input-bg);
  border: 1px solid var(--line-soft);
  transition: background 0.25s;
}
.o2o-toggle-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all 0.25s ease-out;
}
.o2o-toggle input:checked + .o2o-toggle-track {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent-shine));
  border-color: var(--accent);
}
.o2o-toggle input:checked + .o2o-toggle-track .o2o-toggle-dot {
  right: 20px;
  background: #081223;
}
.o2o-toggle-label { font-size: 0.82rem; font-weight: 700; color: var(--text-2); }

/* Store grid */
.o2o-store-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px 22px;
  align-content: start;
}
.o2o-store-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
}
.o2o-store-card:hover,
.o2o-store-card.is-active {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.o2o-card-top { display: flex; gap: 12px; align-items: flex-start; }
.o2o-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line-soft);
}
.o2o-card-headinfo { flex: 1; min-width: 0; }
.o2o-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o2o-card-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.o2o-card-rating .o2o-stars { color: var(--accent); letter-spacing: 1px; }
.o2o-card-rating strong { color: var(--text-2); font-weight: 800; }

.o2o-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-2);
}
.o2o-card-meta-row { display: flex; align-items: center; gap: 7px; }
.o2o-card-meta-row i { color: var(--accent); font-size: 0.85rem; flex-shrink: 0; }
.o2o-card-meta-row span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.o2o-card-statusline { display: flex; align-items: center; gap: 8px; }

/* Open pulse */
.o2o-status-open {
  position: relative;
  padding-inline-start: 18px;
}
.o2o-status-open::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: o2oPulse 1.8s ease-out infinite;
}
@keyframes o2oPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70%  { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.o2o-card-actions { display: flex; gap: 8px; margin-top: 2px; }
.o2o-card-actions .btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: 0.8rem; }

.o2o-empty {
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 40px;
  display: none;
}
.o2o-empty.is-visible { display: flex; }
.o2o-empty i { font-size: 2.4rem; color: var(--text-light); }

/* O2O Responsive */
@media (max-width: 1024px) {
  .o2o-inner { grid-template-columns: 1fr; gap: 32px; }
  .o2o-picker { max-width: 520px; }
  .o2o-store-grid { grid-template-columns: repeat(2, 1fr); }
  .o2o-modal-box--lg { max-width: 95vw; height: 85vh; }
}
@media (max-width: 768px) {
  .o2o-stats { display: none; }
  .o2o-tag-desktop { display: none; }
  .o2o-tag-mobile { display: inline-block; }
  .o2o-modal { padding: 0; }
  .o2o-modal-box--sm { max-width: 100%; border-radius: 0 0 24px 24px; padding: 24px 20px; margin-top: auto; }
  .o2o-modal-box--lg { max-width: 100%; height: 100vh; border-radius: 0; }
  .o2o-store-grid { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .o2o-filterbar { padding: 12px 16px; gap: 8px; }
  .o2o-filter { min-width: 120px; }
  .o2o-map-canvas { min-height: 280px; }
  .o2o-results-head { padding: 14px 16px; gap: 8px; flex-wrap: wrap; }
  .o2o-tabs { order: 10; width: 100%; }
  .o2o-tab { flex: 1; justify-content: center; }
  .o2o-stat-card { padding: 12px 16px; }
  .o2o-stat-card strong { font-size: 1.15rem; }
}
@media (max-width: 480px) {
  .o2o-modal-box--sm { padding: 20px 16px; }
  .o2o-card-name { font-size: 0.88rem; }
  .o2o-card-logo { width: 44px; height: 44px; border-radius: 12px; }
}

/* ════════════════════ B2B ════════════════════ */
.b2b-section {
  background: var(--section-a);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.b2b-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 80% 50%,
    var(--accent-glow) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.b2b-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.b2b-desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin: 20px 0;
  font-size: 0.92rem;
}
.b2b-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}
.b2b-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.b2b-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--accent-glow);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
}
.b2b-list strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 3px;
}
.b2b-list p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* B2B Form */
.b2b-form-card {
  border-radius: 24px;
  padding: 36px;
  border-color: rgba(212, 175, 55, 0.15) !important;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}
.b2b-form-header {
  text-align: center;
  margin-bottom: 28px;
}
.b2b-form-header i {
  font-size: 2.5rem;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.b2b-form-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}
.b2b-form-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.b2b-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}
.form-group input,
.form-group select {
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ════════════════════ BRANDS ════════════════════ */
.brands-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  background: rgba(7, 8, 16, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid var(--line-soft);
}

.brands-bg {
  position: absolute;
  inset: 0;
  background-image: url("../../assets/images/bg(3).png");
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
}

/* Gold accent lines */
.brands-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.2) 30%,
    rgba(212, 175, 55, 0.3) 50%,
    rgba(212, 175, 55, 0.2) 70%,
    transparent 100%
  );
}
.brands-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5px;
  z-index: 1;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.12) 50%,
    transparent 100%
  );
}

/* Force section header text white on dark bg */
.brands-section .container {
  position: relative;
  z-index: 2;
}
.brands-section .section-tag {
  color: rgba(212, 175, 55, 0.72);
  border-color: rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.08);
}
.brands-section .section-title {
  color: #ffffff;
}

/* ── Logo Marquee ── */
.brands-marquee-wrap {
  position: relative;
  overflow: hidden;
  margin-top: 44px;
  z-index: 2;
  padding: 28px 0;
}

/* Progressive blur fades — left and right */
.brands-marquee-wrap::before,
.brands-marquee-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 200px;
  pointer-events: none;
}
.brands-marquee-wrap::before {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(8, 8, 16, 1) 0%,
    rgba(8, 8, 16, 0.8) 35%,
    rgba(8, 8, 16, 0) 100%
  );
}
.brands-marquee-wrap::after {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(8, 8, 16, 1) 0%,
    rgba(8, 8, 16, 0.8) 35%,
    rgba(8, 8, 16, 0) 100%
  );
}

.brands-marquee {
  position: relative;
}

.brands-track {
  display: flex;
  gap: 20px;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: brandsMarquee 34s linear infinite;
}

.brands-marquee-wrap:hover .brands-track {
  animation-play-state: paused;
}

@keyframes brandsMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Logo cards */
.brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.07) 0%,
    rgba(212, 175, 55, 0.02) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-top-color: rgba(245, 220, 110, 0.2);
  border-radius: 16px;
  padding: 12px 22px;
  flex-shrink: 0;
  transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Pixel canvas — hover effect layer */
.brand-pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 3;
  opacity: 0.68;
  transition: opacity 0.3s ease;
  filter: brightness(1.1);
}

.brand-item:hover {
  border-color: rgba(212, 175, 55, 0.38);
  background: linear-gradient(
    135deg,
    rgba(212, 175, 55, 0.14) 0%,
    rgba(212, 175, 55, 0.05) 100%
  );
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.12),
    0 8px 40px rgba(212, 175, 55, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px) scale(1.03);
}
.brand-item:hover .brand-logo {
  opacity: 1;
}

@media (max-width: 768px) {
  .brand-item {
    width: 126px;
    height: 64px;
    padding: 10px 14px;
  }
  .brands-marquee-wrap::before,
  .brands-marquee-wrap::after {
    width: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track {
    animation: none;
  }
}

/* ════════════════════ PRODUCT CAROUSELS ════════════════════ */
.product-carousel-section {
  padding: 48px 0;
  position: relative;
}
.product-carousel-section + .product-carousel-section {
  padding-top: 48px;
}

/* Glass box behind each carousel */
.product-carousel-section > .container {
  background: var(--carousel-glass-bg);
  border: 1px solid var(--carousel-glass-border);
  border-radius: 24px;
  padding: 32px 28px;
  position: relative;
  z-index: 1;
}
[data-theme="dark"] .product-carousel-section > .container {
  --carousel-glass-bg: rgba(255, 255, 255, 0.03);
  --carousel-glass-border: rgba(212, 175, 55, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255,255,255,0.04);
}
[data-theme="light"] .product-carousel-section > .container {
  --carousel-glass-bg: rgba(255, 255, 255, 0.65);
  --carousel-glass-border: rgba(212, 175, 55, 0.12);
  box-shadow: 0 8px 40px rgba(26, 54, 93, 0.06), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}
.carousel-icon {
  display: none;
}
.carousel-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.carousel-see-all {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.carousel-see-all:hover {
  gap: 10px;
  color: var(--accent-shine);
}
.carousel-nav {
  display: none;
}

/* ── Carousel Title Shimmer ── */
.carousel-title {
  font-size: 1.25rem;
  font-weight: 800;
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: carouselShimmer 4s linear infinite;
  display: inline-block;
}

[data-theme="dark"] .carousel-title {
  background-image: linear-gradient(
    90deg,
    #e2e8f0 0%,
    #f0f4f8 22%,
    #d4af37 40%,
    #f2d05c 50%,
    #d4af37 60%,
    #f0f4f8 78%,
    #e2e8f0 100%
  );
}

[data-theme="light"] .carousel-title {
  background-image: linear-gradient(
    90deg,
    #081223 0%,
    #0d1e3c 22%,
    #b8960c 40%,
    #d4af37 50%,
    #b8960c 60%,
    #0d1e3c 78%,
    #081223 100%
  );
}

@keyframes carouselShimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}


/* Product swiper */
.prod-swiper {
  overflow: hidden;
  padding-bottom: 4px;
}
.prod-swiper .swiper-slide {
  height: auto;
}

/* ════════════════════ TESTIMONIALS — NAVY SILK ════════════════════ */
.testimonials-section {
  background: rgba(8, 18, 35, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(212, 175, 55, 0.08);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Silk diagonal thread layer — slowly drifting */
.testimonials-section::before {
  content: "";
  position: absolute;
  inset: -100%;
  width: 300%;
  height: 300%;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px,
      transparent 36px,
      rgba(212, 175, 55, 0.04) 36px,
      rgba(212, 175, 55, 0.04) 37px,
      transparent 37px,
      transparent 72px
    ),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 60px,
      rgba(255, 255, 255, 0.015) 60px,
      rgba(255, 255, 255, 0.015) 61px,
      transparent 61px,
      transparent 120px
    );
  animation: silkDrift 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Roaming gold sheen blob */
.testimonials-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 55% 35% at 20% 50%,
      rgba(212, 175, 55, 0.09) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 50% at 80% 30%,
      rgba(180, 140, 30, 0.06) 0%,
      transparent 60%
    );
  animation: silkSheen 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes silkDrift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(72px, 72px);
  }
}

@keyframes silkSheen {
  0% {
    background-position: 0% 50%;
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

.testimonials-header {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}

.testimonials-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px 4px;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: linear-gradient(145deg, rgba(212,175,55,0.15), rgba(212,175,55,0.06));
  font-size: 0.7rem;
  font-weight: 700;
  color: #d4af37;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  transform: perspective(400px) rotateX(-3deg) translateZ(1px);
  box-shadow:
    0 2px 8px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.08);
}

.testimonials-title {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.testimonials-subtitle {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

.testimonials-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  max-height: 480px;
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.testimonials-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: scrollUp 32s linear infinite;
}

.testimonials-column:nth-child(2) {
  animation-duration: 40s;
  animation-delay: -10s;
}

.testimonials-column:nth-child(3) {
  animation-duration: 36s;
  animation-delay: -6s;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-50% - 6px));
  }
}

.testi-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(212, 175, 55, 0.04) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 18px;
  box-sizing: border-box;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
}

/* Inner silk shimmer on card */
.testi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.08),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.testi-card:hover {
  border-color: rgba(212, 175, 55, 0.32);
  border-top-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(212, 175, 55, 0.08);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(212, 175, 55, 0.07) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
}

.testi-card:hover::before {
  left: 120%;
}

.testi-stars {
  display: flex;
  gap: 3px;
  color: #d4af37;
  font-size: 0.7rem;
  margin-bottom: 10px;
}

.testi-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  margin-bottom: auto;
  font-weight: 400;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.testi-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.testi-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testi-author strong {
  display: block;
  font-size: 0.8rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
}

.testi-author span {
  font-size: 0.7rem;
  color: rgba(212, 175, 55, 0.75);
  font-weight: 500;
}

/* ── Light mode — testimonials ── */
[data-theme="light"] .testimonials-section {
  background: linear-gradient(180deg, var(--ink) 0%, #e8edf5 50%, var(--ink) 100%);
  border-top-color: var(--line-soft);
}
[data-theme="light"] .testimonials-section::before {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0px, transparent 36px,
      rgba(212,175,55,0.03) 36px, rgba(212,175,55,0.03) 37px,
      transparent 37px, transparent 72px
    );
}
[data-theme="light"] .testimonials-section::after {
  background:
    radial-gradient(ellipse 55% 35% at 20% 50%, rgba(212,175,55,0.06) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 80% 30%, rgba(180,140,30,0.04) 0%, transparent 60%);
}
[data-theme="light"] .testimonials-tag {
  background: linear-gradient(145deg, rgba(212,175,55,0.12), rgba(212,175,55,0.04));
  border-color: rgba(212,175,55,0.2);
  color: var(--gold-text);
}
[data-theme="light"] .testimonials-title {
  color: var(--text);
}
[data-theme="light"] .testimonials-subtitle {
  color: var(--text-muted);
}
[data-theme="light"] .testi-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-soft);
  box-shadow: 0 2px 12px rgba(8,18,35,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
[data-theme="light"] .testi-card::before {
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.05), transparent);
}
[data-theme="light"] .testi-card:hover {
  border-color: rgba(212,175,55,0.25);
  box-shadow: 0 4px 20px rgba(8,18,35,0.08), 0 0 0 1px rgba(212,175,55,0.08);
  background: rgba(255,255,255,0.85);
}
[data-theme="light"] .testi-stars {
  color: var(--accent-dark);
}
[data-theme="light"] .testi-text {
  color: var(--text-2);
}
[data-theme="light"] .testi-author {
  border-top-color: var(--line-soft);
}
[data-theme="light"] .testi-avatar {
  border-color: rgba(212,175,55,0.15);
}
[data-theme="light"] .testi-author strong {
  color: var(--text);
}
[data-theme="light"] .testi-author span {
  color: var(--accent-dark);
}

.testimonials-swiper {
  display: none;
}
.testi-pagination {
  display: none;
}

/* ════════════════════ RESPONSIVE ════════════════════ */
@media (max-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
  .testimonials-columns {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-column:nth-child(3) {
    display: none;
  }
  .testimonials-section {
    padding: 60px 0 68px;
  }
}

@media (max-width: 1024px) {
  .o2o-inner,
  .b2b-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .o2o-map {
    height: 280px;
  }
  .b2b-form-card {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
}

/* (old 768/480 blocks removed — handled by new responsive below) */

@media (prefers-reduced-motion: reduce) {
  .testimonials-column {
    animation: none;
  }
  .testimonials-section::before {
    animation: none;
  }
  .testimonials-section::after {
    animation: none;
  }
  .testimonials-columns {
    overflow-y: auto;
    max-height: 480px;
  }
}

.testimonials-columns:hover .testimonials-column {
  animation-play-state: paused;
}

/* ════════════════════ MOBILE RESPONSIVE ════════════════════ */
@media (max-width: 768px) {
  /* ── Categories — horizontal scroll ── */
  .categories-section { padding: 24px 0; }
  .cat-panel { padding: 18px 16px 20px; border-radius: 16px; }
  .cat-panel-head { margin-bottom: 14px; }
  .cat-panel-title { font-size: 0.9rem; }
  .categories-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .categories-grid::-webkit-scrollbar { display: none; }
  .cat-card {
    flex: 0 0 115px;
    scroll-snap-align: start;
    padding: 14px 8px 12px;
    border-radius: 12px;
    gap: 6px;
  }
  .cat-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 1.05rem; }
  .cat-name { font-size: 0.7rem; }
  .cat-count { font-size: 0.6rem; }
  .cat-arrow { display: none; }

  /* ── Banners ── */
  .banners-section { padding: 32px 0; }
  .banners-grid { grid-template-columns: 1fr; gap: 14px; }
  .banner { border-radius: 16px; aspect-ratio: 2 / 1; }

  /* ── Deals ── */
  .deals-section { padding: 36px 0 40px; }
  .deals-header { flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
  .deals-title-wrap { gap: 10px; flex-wrap: wrap; }
  .deals-title { font-size: 1rem; }
  .countdown-chip { min-width: 30px; padding: 4px 6px; font-size: 0.8rem; border-radius: 6px; }
  .deals-nav { display: none; }
  .deal-stock-text { font-size: 0.58rem; }
  .price-disc-tag { font-size: 0.62rem; padding: 2px 5px; }

  /* ── B2B ── */
  .b2b-inner { grid-template-columns: 1fr; gap: 32px; }
  .b2b-form-card { padding: 24px 20px; border-radius: 18px; }
  .b2b-form-header i { font-size: 2rem; }
  .b2b-form-header h3 { font-size: 1.05rem; }
  .b2b-list { gap: 16px; margin-top: 20px; }
  .b2b-icon { width: 40px; height: 40px; font-size: 1rem; }
  .form-row { grid-template-columns: 1fr; }

  /* ── O2O ── */
  .o2o-section { padding: 48px 0; }
  .o2o-desc { font-size: 0.88rem; margin: 14px 0; }
  .o2o-features { gap: 10px; margin-bottom: 24px; }
  .o2o-features li { font-size: 0.84rem; }
  .o2o-map { height: 240px; border-radius: 18px; }
  .o2o-stat-cards { gap: 8px; bottom: 10px; right: 10px; }
  .o2o-stat-card { padding: 8px 12px; border-radius: 10px; }
  .o2o-stat-card strong { font-size: 1rem; }
  .o2o-stat-card span { font-size: 0.66rem; }

  /* ── Testimonials ── */
  .testimonials-section { padding: 48px 0; }
  .testimonials-columns { grid-template-columns: 1fr; max-height: 380px; }
  .testimonials-column:nth-child(2), .testimonials-column:nth-child(3) { display: none; }
  .testimonials-title { font-size: 1.3rem; }
  .testimonials-subtitle { font-size: 0.82rem; }
  .testi-card { padding: 14px 16px; border-radius: 12px; }
  .testi-text { font-size: 0.8rem; }

  /* ── Product cards ── */
  .product-card { border-radius: 14px; }
  .product-body { padding: 12px 14px; }
  .product-name { font-size: 0.84rem; margin-bottom: 6px; }
  .product-brand { font-size: 0.64rem; }
  .product-rating { font-size: 0.66rem; margin-bottom: 8px; }
  .price-new { font-size: 0.92rem; }
  .price-old { font-size: 0.64rem; }
  .product-actions { gap: 6px; margin-top: 10px; }
  .prod-action-btn { padding: 9px 12px; font-size: 0.76rem; border-radius: 10px; }
  .prod-action-btn--wish { width: 40px; height: 40px; font-size: 0.88rem; }
  .p-badge { font-size: 0.6rem; padding: 3px 7px 2px; top: 6px; }
  .p-badge--right { right: 6px; }
  .p-badge--left  { left: 6px; right: auto; }
  .p-badge--disc-low, .p-badge--disc-mid, .p-badge--disc-high, .p-badge--disc-mega { font-size: 0.66rem; padding: 4px 9px 3px; }

  /* ── Product carousels — glass box ── */
  .product-carousel-section { padding: 24px 0; }
  .product-carousel-section > .container { padding: 20px 16px; border-radius: 18px; }
  .carousel-header { margin-bottom: 16px; }
  .carousel-title { font-size: 1.05rem; }
  .carousel-see-all { font-size: 0.8rem; }

  /* ── Brand strip ── */
  .brand-strip { padding: 20px 0 28px; }
}

@media (max-width: 480px) {
  /* ── Categories ── */
  .categories-section { padding: 18px 0; }
  .cat-panel { padding: 14px 12px 16px; border-radius: 14px; }
  .cat-panel-head { margin-bottom: 12px; }
  .cat-panel-title { font-size: 0.85rem; }
  .cat-panel-all { font-size: 0.72rem; }
  .cat-card { flex: 0 0 105px; padding: 12px 6px 10px; }
  .cat-icon { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; }
  .cat-name { font-size: 0.68rem; }
  .cat-count { font-size: 0.58rem; }

  /* ── Deals ── */
  .deals-section { padding: 28px 0 32px; }
  .deals-header { margin-bottom: 14px; }
  .deals-title { font-size: 0.92rem; }
  .deals-all { font-size: 0.72rem; }
  .countdown-chip { min-width: 28px; padding: 3px 5px; font-size: 0.75rem; }
  .countdown-dot { font-size: 0.75rem; }
  .product-price { gap: 4px; flex-wrap: wrap; }
  .price-disc-tag { font-size: 0.58rem; padding: 1px 4px; border-radius: 4px; }
  .prod-action-btn--cart .btn-text-full { display: none; }

  /* ── O2O ── */
  .o2o-actions { flex-direction: column; }
  .o2o-actions .btn { width: 100%; justify-content: center; }
  .o2o-map { height: 200px; }
  .store-pin i { width: 30px; height: 30px; font-size: 0.8rem; }

  /* ── B2B ── */
  .b2b-form-card { padding: 20px 16px; }
  .b2b-list li { gap: 12px; }
  .b2b-icon { width: 36px; height: 36px; font-size: 0.92rem; border-radius: 10px; }
  .b2b-list strong { font-size: 0.84rem; }
  .b2b-list p { font-size: 0.76rem; }

  /* ── Banners ── */
  .banners-section { padding: 20px 0; }
  .banner { border-radius: 14px; }

  /* ── Testimonials ── */
  .testimonials-section { padding: 36px 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .testimonials-columns { max-height: 340px; }
  .testimonials-title { font-size: 1.15rem; }
  .testimonials-tag { font-size: 0.64rem; padding: 4px 10px; }
  .testi-card { backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* ── Product cards ── */
  .product-card { border-radius: 12px; border-width: 1.5px; }
  .product-body { padding: 10px 12px; }
  .product-name { font-size: 0.8rem; }
  .prod-action-btn { padding: 8px 10px; font-size: 0.74rem; min-height: 44px; }
  .prod-action-btn--wish { width: 36px; height: 36px; min-height: 36px; }

  /* ── Product carousels — glass box ── */
  .product-carousel-section { padding: 16px 0; }
  .product-carousel-section > .container { padding: 16px 12px; border-radius: 16px; }
  .carousel-title { font-size: 0.95rem; }

  /* ── Performance ── */
  .brand-strip { backdrop-filter: none; -webkit-backdrop-filter: none; }
  [data-theme="light"] .product-carousel-section > .container { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 360px) {
  .cat-panel { padding: 12px 10px 14px; border-radius: 12px; }
  .cat-card { flex: 0 0 96px; padding: 10px 5px 9px; border-radius: 10px; }
  .cat-icon { width: 34px; height: 34px; font-size: 0.95rem; border-radius: 8px; }
  .cat-name { font-size: 0.64rem; }
  .deals-title { font-size: 0.85rem; }
  .countdown-chip { min-width: 26px; font-size: 0.7rem; }
  .o2o-map { height: 180px; }
  .b2b-form-card { padding: 18px 14px; }
  .testi-card { padding: 12px 14px; }
  .testi-text { font-size: 0.76rem; }
  .product-carousel-section { padding: 12px 0; }
  .product-carousel-section > .container { padding: 14px 10px; border-radius: 14px; }
}
