/* ==========================================================================
   VETALUX — Homepage v2
   Loaded after style.css on index.html only. Restyles the hero, categories,
   brands and section headers, and adds the trust ticker + vet care band.
   Remove the <link> to home-v2.css to fall back to the previous design.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section headers
   -------------------------------------------------------------------------- */
.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.16em;
}

.section-subtitle::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-gold-primary), var(--c-coral));
}

.section-header-center .section-subtitle::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-coral), var(--c-gold-primary));
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-section {
  padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(254, 213, 77, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(236, 114, 86, 0.08), transparent 60%),
    linear-gradient(180deg, #fffaf1 0%, var(--color-bg-main) 100%);
  isolation: isolate;
}

.hero-bg-accent { display: none; }

.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-blob-a {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle at 35% 35%, rgba(254, 213, 77, 0.55), rgba(240, 178, 35, 0.12) 60%, transparent 72%);
  animation: vxDrift 14s ease-in-out infinite alternate;
}

.hero-blob-b {
  width: 340px;
  height: 340px;
  left: -140px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(236, 114, 86, 0.18), transparent 70%);
  animation: vxDrift 18s ease-in-out infinite alternate-reverse;
}

.hero-dots {
  position: absolute;
  left: 42%;
  top: 8%;
  width: 180px;
  height: 120px;
  background-image: radial-gradient(rgba(194, 158, 99, 0.45) 1.5px, transparent 1.6px);
  background-size: 16px 16px;
  mask-image: radial-gradient(closest-side, #000, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
}

.hero-paw {
  position: absolute;
  fill: var(--c-amber-deep);
  opacity: 0.08;
}

.hero-paw-1 { width: 54px; left: 4%; top: 14%; transform: rotate(-22deg); }
.hero-paw-2 { width: 34px; left: 44%; bottom: 12%; transform: rotate(18deg); opacity: 0.1; }
.hero-paw-3 { width: 26px; right: 3%; bottom: 22%; transform: rotate(-8deg); }

@keyframes vxDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-30px, 24px, 0) scale(1.06); }
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
}

.hero-badge {
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 18px rgba(217, 138, 12, 0.1);
  padding: 7px 16px 7px 8px;
}

.badge-sparkle {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold-bright), var(--c-gold-primary));
  color: #fff;
  font-size: 0.75rem;
}

.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}

.hero-description {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 520px;
}

.hero-cta-group .btn-large {
  padding: 16px 30px;
  border-radius: 999px;
}

.hero-cta-group .btn-primary {
  box-shadow: 0 14px 30px rgba(217, 138, 12, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 0;
  border-top: 0;
  max-width: 540px;
}

.hero-stats .stat-divider { display: none; }

.hero-stats .stat-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 18px rgba(217, 138, 12, 0.07);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-stats .stat-number {
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--c-amber-deep), var(--c-terracotta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-stats .stat-label {
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Hero visual composition */
.hero-card-main {
  max-width: 540px;
  padding: 18px 18px 0 0;
}

.hv-backdrop {
  position: absolute;
  inset: 0 0 -18px 18px;
  border-radius: 44px 44px 120px 44px;
  background: linear-gradient(150deg, var(--c-gold-bright) 0%, var(--c-gold-primary) 45%, var(--c-coral) 100%);
  transform: rotate(3deg);
  box-shadow: 0 30px 60px rgba(217, 138, 12, 0.25);
}

.hv-ring {
  position: absolute;
  left: -46px;
  bottom: 22%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px dashed rgba(217, 138, 12, 0.35);
  animation: vxSpin 30s linear infinite;
}

.hero-slider {
  height: clamp(340px, 42vw, 540px);
  border: 0;
  border-radius: 40px 40px 110px 40px;
  box-shadow: 0 24px 50px rgba(30, 21, 11, 0.22);
}

.hero-glass-card {
  border-radius: 18px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 34px rgba(30, 21, 11, 0.16);
}

.floating-card-top {
  top: 46px;
  left: -28px;
}

.glass-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--color-primary-subtle);
  font-size: 1.15rem;
}

.hv-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(30, 21, 11, 0.16);
  animation: floatCard 4.6s ease-in-out infinite alternate-reverse;
}

.hv-chip-ship {
  right: -26px;
  bottom: -14px;
}

.hv-chip-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-gold-primary), var(--c-amber-deep));
  color: #fff;
}

.hv-chip-icon svg { width: 20px; height: 20px; }

.hv-chip-text { display: flex; flex-direction: column; }

.hv-chip-text strong {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.hv-chip-text small {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.hv-seal {
  position: absolute;
  z-index: 3;
  top: -18px;
  right: -22px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--color-bg-dark);
  box-shadow: 0 14px 30px rgba(30, 21, 11, 0.3);
}

.hv-seal > svg {
  width: 100%;
  height: 100%;
  animation: vxSpin 18s linear infinite;
}

.hv-seal text {
  fill: var(--c-gold-bright);
  font-family: var(--font-display);
  font-size: 10.4px;
  font-weight: 800;
  letter-spacing: 2.1px;
}

.hv-seal-core {
  position: absolute;
  inset: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-gold-bright), var(--c-gold-primary));
}

.hv-seal-core svg { width: 26px; height: 26px; fill: var(--color-bg-dark); }

@keyframes vxSpin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   Trust ticker
   -------------------------------------------------------------------------- */
.trust-ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: var(--color-bg-dark);
  color: #f8ecd6;
  padding: 16px 0;
  transform: rotate(-1.2deg);
  margin: -10px -12px 0;
  box-shadow: 0 18px 40px rgba(30, 21, 11, 0.18);
}

.trust-ticker-track {
  display: flex;
  width: max-content;
  animation: vxMarquee 38s linear infinite;
}

.trust-ticker:hover .trust-ticker-track { animation-play-state: paused; }

.trust-ticker-group {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-ticker-group li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 34px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
}

.trust-ticker-group li::after {
  content: "✦";
  position: absolute;
  right: -6px;
  color: var(--c-gold-primary);
  font-size: 0.7rem;
}

.trust-ticker-group svg {
  width: 20px;
  height: 20px;
  color: var(--c-gold-primary);
}

@keyframes vxMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   Categories — bento grid
   -------------------------------------------------------------------------- */
.categories-section { padding-top: clamp(72px, 9vw, 120px); }

.category-bento {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(220px, 1fr));
  grid-auto-flow: dense;
  gap: 18px;
}

.category-bento .category-card {
  min-height: 220px;
  border: 0;
  border-radius: 28px;
  background: var(--color-bg-dark);
  box-shadow: 0 14px 34px rgba(30, 21, 11, 0.12);
  isolation: isolate;
}

.category-bento .category-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.category-bento .category-img-wrap {
  position: absolute;
  inset: 0;
  height: auto;
  z-index: -1;
}

.category-bento .category-overlay {
  background: linear-gradient(180deg, rgba(30, 21, 11, 0) 30%, rgba(30, 21, 11, 0.82) 100%);
}

.category-bento .category-info {
  position: static;
  margin-top: auto;
  padding: 20px;
  background: transparent;
  flex: 0 0 auto;
}

.category-bento .category-icon-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.category-bento .category-name {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.category-bento .category-card:first-child .category-name { font-size: clamp(1.8rem, 3vw, 2.4rem); }

.category-bento .category-count {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 12px;
}

.category-bento .category-link-cta {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--c-gold-primary);
  color: #1e140a;
  transition: background-color .2s ease, transform .2s ease;
}

.category-bento .category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(30, 21, 11, 0.2);
}

.category-bento .category-card:hover .category-link-cta { background: #fff; }
.category-bento .category-card:hover .category-img { transform: scale(1.06); }

.category-bento .category-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Vet care band
   -------------------------------------------------------------------------- */
.vet-band {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 110px) 0;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(240, 178, 35, 0.22), transparent 65%),
    radial-gradient(500px 360px at 0% 100%, rgba(236, 114, 86, 0.16), transparent 65%),
    var(--color-bg-dark);
  color: #f8ecd6;
}

.vet-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.2px);
  background-size: 22px 22px;
  pointer-events: none;
}

.vet-band-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.vet-band-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(240, 178, 35, 0.14);
  color: var(--c-gold-bright);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.vet-band-title {
  margin: 18px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #fff;
}

.vet-band-title span {
  display: block;
  background: linear-gradient(135deg, var(--c-gold-bright), var(--c-coral));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vet-band-text {
  max-width: 480px;
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(248, 236, 214, 0.75);
}

.vet-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.vet-band-actions .btn { border-radius: 999px; }

.vet-band-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-gold-bright);
  border-bottom: 1px solid rgba(254, 213, 77, 0.4);
  padding-bottom: 2px;
}

.vet-band-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vet-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}

.vet-card:nth-child(2) { transform: translateY(26px); }
.vet-card:nth-child(4) { transform: translateY(26px); }

.vet-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(240, 178, 35, 0.4);
}

.vet-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--c-gold-bright), var(--c-gold-primary));
  color: var(--color-bg-dark);
}

.vet-card-icon svg { width: 22px; height: 22px; }

.vet-card h3 {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.vet-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(248, 236, 214, 0.65);
}

/* --------------------------------------------------------------------------
   Brands — marquee
   -------------------------------------------------------------------------- */
.brands-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 8px 0;
}

.brands-logos-grid.brands-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: vxMarqueeGap 30s linear infinite;
}

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

.brands-track .brand-item {
  flex: 0 0 auto;
  width: 200px;
  padding: 26px 18px;
  border-radius: 22px;
}

.brands-track .brand-logo-text { font-size: 1.2rem; }

/* translate by half the track plus half a gap so the loop is seamless */
@keyframes vxMarqueeGap {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 9px), 0, 0); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .category-bento { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: 220px; }
  .category-bento .category-card:first-child { grid-column: span 2; grid-row: span 2; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { margin: 0 auto; }
  .hero-card-main { max-width: 500px; }
  .floating-card-top { left: -6px; }
  .hv-chip-ship { right: -6px; }
  .hv-seal { right: -6px; }
  .hv-ring { left: -20px; }

  .vet-band-grid { grid-template-columns: 1fr; }
  .vet-band-copy { text-align: center; }
  .vet-band-text { margin-left: auto; margin-right: auto; }
  .vet-band-actions { justify-content: center; }
}

@media (max-width: 720px) {
  .section-subtitle { font-size: 0.72rem; letter-spacing: 0.1em; }
  .section-subtitle::before, .section-subtitle::after { width: 16px; }
  .hero-section { padding-top: 28px; }
  .hero-title { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .hero-stats { gap: 8px; }
  .hero-stats .stat-item { padding: 12px 10px; border-radius: 16px; }
  .hero-stats .stat-number { font-size: 1.3rem; }
  .hero-stats .stat-label { font-size: 0.68rem; }
  .hero-card-main { padding: 12px 12px 0 0; }
  .hv-backdrop { inset: 0 0 -12px 12px; border-radius: 32px 32px 80px 32px; }
  .hero-slider { height: clamp(300px, 88vw, 400px); border-radius: 30px 30px 80px 30px; }
  .hv-seal { width: 74px; height: 74px; top: -10px; right: -4px; }
  .hv-seal-core { inset: 22px; }
  .hv-seal-core svg { width: 16px; height: 16px; }
  /* Phones: the slide carries its own text, so drop the floating chips
     (their messages are repeated in the trust ticker right below). */
  .floating-card-top,
  .hv-chip-ship,
  .hv-ring { display: none; }

  .hero-slider { height: clamp(340px, 96vw, 410px); }
  .hero-slide-copy {
    align-items: flex-start;
    text-align: left;
    gap: 5px;
    padding: 18px 18px 42px;
  }
  .hero-slide-scrim { background: linear-gradient(180deg, rgba(20, 13, 6, 0) 35%, rgba(20, 13, 6, 0.78) 100%); }
  .hero-slide-eyebrow { font-size: 0.6rem; padding: 3px 9px; letter-spacing: 0.06em; }
  .hero-slide-heading { font-size: 1.2rem; line-height: 1.2; max-width: 92%; }
  .hero-slide-text {
    font-size: 0.78rem;
    max-width: 270px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-slide-cta { margin-top: 4px; padding: 8px 14px; font-size: 0.74rem; }
  .hero-slider-dots { left: 18px; bottom: 16px; transform: none; }

  .trust-ticker { padding: 13px 0; }
  .trust-ticker-group li { font-size: 0.85rem; padding: 0 24px; }

  .category-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 12px; }
  .category-bento .category-card { min-height: 0; border-radius: 22px; }
  .category-bento .category-card:first-child { grid-column: span 2; grid-row: span 1; }
  .category-bento .category-card:last-child { grid-column: auto; }
  .category-bento .category-info { padding: 14px; }
  .category-bento .category-icon-tag { top: 12px; left: 12px; width: 36px; height: 36px; border-radius: 12px; font-size: 1.05rem; }
  .category-bento .category-name { font-size: 1.1rem; }
  .category-bento .category-card:first-child .category-name { font-size: 1.6rem; }
  .category-bento .category-count { margin-bottom: 0; font-size: 0.72rem; }
  .category-bento .category-link-cta { display: none; }
  .category-bento .category-card:first-child .category-link-cta { display: inline-flex; margin-top: 10px; }

  .vet-band-cards { gap: 10px; }
  .vet-card { padding: 16px; border-radius: 20px; }
  .vet-card:nth-child(2), .vet-card:nth-child(4) { transform: translateY(16px); }
  .vet-card-icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .vet-card h3 { font-size: 0.98rem; }
  .vet-card p { font-size: 0.8rem; }

  .brands-track .brand-item { width: 150px; padding: 20px 12px; }
}

@media (max-width: 380px) {
  .hero-stats .stat-label { font-size: 0.62rem; }
  .hv-chip-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .trust-ticker-track,
  .brands-track,
  .hv-seal > svg,
  .hv-ring,
  .hero-blob { animation: none !important; }
  .trust-ticker,
  .brands-marquee { overflow-x: auto; }
}

/* --------------------------------------------------------------------------
   Product grid & filter bar
   -------------------------------------------------------------------------- */
.filter-controls-container { margin-bottom: 22px; }

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 1181px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

/* --------------------------------------------------------------------------
   Product card v2 (.pc2 — markup from createProductCardHTML in script.js)
   -------------------------------------------------------------------------- */
.product-card.pc2 {
  padding: 8px;
  border-radius: 24px;
  border: 1px solid #efe4d1;
  background: #fff;
  box-shadow: 0 1px 2px rgba(30, 21, 11, 0.04), 0 8px 24px rgba(217, 138, 12, 0.05);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), box-shadow .35s ease, border-color .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .product-card.pc2:hover {
    transform: translateY(-6px);
    border-color: #e6cfa4;
    box-shadow: 0 2px 4px rgba(30, 21, 11, 0.04), 0 22px 44px rgba(166, 99, 0, 0.14);
  }
}

/* Framed image */
.pc2 .product-img-wrapper {
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #fffaf1, #f6ead6);
  isolation: isolate;
}

.pc2 .product-card-img { transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .4s ease; }
@media (hover: hover) and (pointer: fine) {
  .pc2:hover .product-card-img { transform: scale(1.07); }
}

/* Badges — one row */
.pc2 .product-badge-group {
  top: 10px;
  left: 10px;
  right: 54px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.pc2 .product-badge {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(30, 21, 11, 0.1);
}

.pc2 .badge-discount { background: linear-gradient(135deg, #f0623f, #c2410c); color: #fff; }
.pc2 .badge-tag { background: rgba(255, 255, 255, 0.92); color: #3b2a17; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pc2 .badge-stock { background: #2a1d10; color: #fff; }

/* Action stack: heart + compare */
.pc2 .wishlist-heart-btn {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.94);
  color: #6b5643;
  box-shadow: 0 6px 16px rgba(30, 21, 11, 0.1);
}

.pc2 .wishlist-heart-btn:hover { color: #e0533a; transform: scale(1.08); }
.pc2 .wishlist-heart-btn.is-active { color: #fff; background: linear-gradient(135deg, #f0623f, #d4402a); }
.pc2 .wishlist-heart-btn.is-active svg { animation: pcPop .35s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes pcPop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }

.pc2 .compare-card-btn {
  left: auto;
  bottom: auto;
  top: 52px;
  right: 10px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: #6b5643;
  box-shadow: 0 6px 16px rgba(30, 21, 11, 0.1);
}

.pc2 .compare-card-btn .compare-label { display: none !important; }
.pc2 .compare-card-btn .compare-check { font-size: 15px; }
.pc2 .compare-card-btn:hover,
.pc2 .compare-card-btn.is-active { background: #2a1d10; color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .pc2 .compare-card-btn { opacity: 0; transform: translateX(6px); transition: opacity .25s ease, transform .25s ease, background-color .2s ease; }
  .pc2:hover .compare-card-btn,
  .pc2 .compare-card-btn:focus-visible,
  .pc2 .compare-card-btn.is-active { opacity: 1; transform: none; }
}

/* Quick view — glass bar sliding up on hover (desktop) */
.pc2 .quick-view-overlay-btn {
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(30, 21, 11, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.8rem;
  transform: translateY(14px);
}

.pc2:hover .quick-view-overlay-btn { transform: translateY(0); }
.pc2 .quick-view-overlay-btn:hover { background: var(--c-gold-primary); color: #1e140a; }

@media (hover: none), (pointer: coarse) {
  .pc2 .quick-view-overlay-btn { display: none; }
}

/* Content */
.pc2 .product-content { padding: 12px 6px 4px; }

.pc2 .product-category-row { margin-bottom: 5px; gap: 8px; }

.pc2 .product-category-tag {
  min-width: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a8743a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pc2 .product-pet-badge {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: #faf3e6;
  color: #6b5643;
  font-size: 0.64rem;
  font-weight: 700;
}

.pc2 .product-title {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.3;
  height: 2.6em;
  margin-bottom: 6px;
  color: #1f140a;
  transition: color .2s ease;
}

.pc2 .product-title:hover { color: var(--c-amber-deep); }

/* rating / stock / shipping line — fixed height keeps cards aligned */
.pc2 .product-rating-row { min-height: 22px; margin-bottom: 10px; gap: 8px; flex-wrap: nowrap; overflow: hidden; }

.pc-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1f140a;
}

.pc-rating small { font-weight: 600; color: #8c7866; font-size: 0.72rem; }
.pc-star { color: #f0a815; font-size: 0.85rem; }

.pc-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.pc-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pc-low { background: #fff1ec; color: #c2410c; }
.pc-low::before { animation: pcBlink 1.6s ease-in-out infinite; }
.pc-ship { background: #ecf6ee; color: #2f7a43; }

@keyframes pcBlink { 50% { opacity: .3; } }

/* Price + cart */
.pc2 .product-footer-row {
  margin-top: auto;
  padding: 10px 4px 2px 6px;
  border-top: 1px dashed #efe4d1;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: flex-end;
}

.pc2 .product-price-box { flex-direction: column; gap: 0; min-width: 0; }
.pc2 .old-price { font-size: 0.74rem; line-height: 1.2; color: #a8977f; }
.pc2 .current-price { font-size: 1.18rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; color: #1f140a; }

.pc2 .add-to-cart-btn {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 14px;
  background: #1e150b;
  color: #fff;
  box-shadow: 0 8px 18px rgba(30, 21, 11, 0.2);
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.pc2 .add-to-cart-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* small "+" on the bag */
.pc2 .add-to-cart-btn::after {
  content: "+";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--c-gold-primary);
  color: #1e140a;
  font: 900 0.8rem/1 var(--font-display);
  box-shadow: 0 0 0 2px #fff;
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}

.pc2 .add-to-cart-btn:hover { background: var(--c-gold-primary); color: #1e140a; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(217, 138, 12, 0.35); }
.pc2 .add-to-cart-btn:hover::after { transform: rotate(90deg) scale(1.1); background: #1e150b; color: #fff; }

.pc2 .pc-check-icon { display: none; }
.pc2 .add-to-cart-btn.added { background: #2f9e5b; color: #fff; }
.pc2 .add-to-cart-btn.added::after { transform: scale(0); }
.pc2 .add-to-cart-btn.added .pc-cart-icon { display: none; }
.pc2 .add-to-cart-btn.added .pc-check-icon { display: block; animation: pcPop .35s cubic-bezier(.34, 1.56, .64, 1); }

.pc2 .add-to-cart-btn:disabled { background: #e9e1d4; color: #a8977f; box-shadow: none; cursor: not-allowed; transform: none; }
.pc2 .add-to-cart-btn:disabled::after { display: none; }

/* Out of stock */
.product-card.pc2.is-out-of-stock .product-card-img { filter: grayscale(.7); opacity: .75; }

.pc2 :is(.wishlist-heart-btn, .compare-card-btn, .quick-view-overlay-btn, .add-to-cart-btn):focus-visible {
  outline: 2.5px solid var(--c-amber-deep);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Phones
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .filter-controls-container { padding: 12px; margin-bottom: 16px; border-radius: 18px; }
  .filter-pills-bar { padding-bottom: 10px; margin-bottom: 10px; }
  .filter-pill { padding: 7px 13px; font-size: 0.8rem; }
  .filter-dropdown-group { grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter-select { min-height: 38px; padding: 8px 28px 8px 10px; font-size: 0.78rem; }
  .sort-wrapper { margin-top: 0; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .product-card.pc2 { padding: 6px; border-radius: 20px; }
  .pc2 .product-img-wrapper { border-radius: 15px; }

  .pc2 .product-badge-group { top: 7px; left: 7px; right: 44px; gap: 4px; }
  .pc2 .product-badge { font-size: 0.58rem; padding: 3px 7px; }
  .pc2 .badge-tag { display: none; }

  .pc2 .wishlist-heart-btn { top: 7px; right: 7px; width: 32px; height: 32px; }
  .pc2 .wishlist-heart-btn svg { width: 15px; height: 15px; }
  .pc2 .compare-card-btn { top: 44px; right: 7px; width: 32px; height: 32px; min-width: 32px; min-height: 32px; }

  .pc2 .product-content { padding: 9px 4px 2px; }
  .pc2 .product-pet-badge { display: none; }
  .pc2 .product-category-tag { font-size: 0.58rem; }
  .pc2 .product-title { font-size: 0.82rem; margin-bottom: 4px; }
  .pc2 .product-rating-row { min-height: 20px; margin-bottom: 6px; }
  .pc-rating { font-size: 0.72rem; }
  .pc-rating small { display: none; }
  .pc-note { font-size: 0.6rem; padding: 2px 6px; }

  .pc2 .product-footer-row { padding: 8px 2px 2px 4px; }
  .pc2 .current-price { font-size: 1rem; }
  .pc2 .old-price { font-size: 0.66rem; }
  .pc2 .add-to-cart-btn { width: 36px; height: 36px; border-radius: 12px; }
  .pc2 .add-to-cart-btn svg { width: 16px; height: 16px; }
  .pc2 .add-to-cart-btn::after { width: 15px; height: 15px; font-size: 0.72rem; top: -4px; right: -4px; }
}

@media (prefers-reduced-motion: reduce) {
  .pc2, .pc2 * { animation: none !important; }
}

/* ==========================================================================
   Product detail v2 (.pd2 — markup from openQuickViewModal in script.js)
   ========================================================================== */
.quickview-modal-content.pd2 {
  max-width: min(1120px, 96vw);
  max-height: min(92vh, 940px);
  border-radius: 30px;
  border: 1px solid #efe4d1;
  background: #fff;
  box-shadow: 0 40px 100px rgba(30, 21, 11, 0.35);
  scroll-behavior: smooth;
}

.pd2 .quickview-close-btn {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px -58px 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1f140a;
  box-shadow: 0 8px 22px rgba(30, 21, 11, 0.16);
  z-index: 20;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-color .2s ease;
}

.pd2 .quickview-close-btn svg { width: 20px; height: 20px; }
.pd2 .quickview-close-btn:hover { transform: rotate(90deg); background: #fff; }

/* Layout */
.pd2 .pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 48px);
  padding: 22px clamp(22px, 3vw, 40px) 30px 22px;
}

/* Gallery */
.pd2 .pd-gallery { position: sticky; top: 22px; align-self: start; min-width: 0; }

.pd2 .quickview-gallery-main {
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: radial-gradient(120% 90% at 50% 0%, #fffaf1, #f3e5cc);
  overflow: hidden;
}

.pd2 .quickview-gallery-main > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }

.pd2 .pd-badges { position: absolute; top: 16px; left: 16px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; }
.pd2 .pd-badge {
  padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #3b2a17;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 800; box-shadow: 0 6px 16px rgba(30, 21, 11, 0.12);
}
.pd2 .pd-badge.is-sale { background: linear-gradient(135deg, #f0623f, #c2410c); color: #fff; }

.pd2 .quickview-zoom-hint,
.pd2 .quickview-gallery-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #1f140a;
  box-shadow: 0 6px 18px rgba(30, 21, 11, 0.14);
  font-size: 0;
}

.pd2 .quickview-zoom-hint { right: 14px; bottom: 14px; }
.pd2 .quickview-zoom-hint svg, .pd2 .quickview-gallery-arrow svg { width: 20px; height: 20px; }
.pd2 .quickview-gallery-arrow.prev { left: 14px; }
.pd2 .quickview-gallery-arrow.next { right: 14px; }

.pd2 .quickview-gallery-thumbs { gap: 10px; margin-top: 12px; padding: 2px; }
.pd2 .quickview-gallery-thumbs button {
  flex: 0 0 72px; width: 72px; height: 72px; padding: 0; border-radius: 16px;
  border: 2px solid transparent; background: #f6ecdc; opacity: .7; transition: opacity .2s ease, border-color .2s ease;
}
.pd2 .quickview-gallery-thumbs button.is-active,
.pd2 .quickview-gallery-thumbs button:hover { opacity: 1; border-color: var(--c-gold-primary); }
.pd2 .quickview-gallery-thumbs img { border-radius: 13px; }

/* Info column */
.pd2 .pd-info { padding: 26px 0 0; min-width: 0; display: flex; flex-direction: column; }

.pd2 .pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-right: 54px; font-size: 0.78rem; font-weight: 700; color: #8c7866; }
.pd2 .pd-meta > span:not(:first-child)::before { content: "•"; margin-right: 10px; color: #d9c4a2; }
.pd2 .pd-pet { padding: 4px 10px; border-radius: 999px; background: #faf3e6; color: #6b5643; }
.pd2 .pd-brand { color: var(--c-amber-deep); letter-spacing: 0.04em; text-transform: uppercase; }

.pd2 .pd-title {
  margin: 14px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #1f140a;
}

.pd2 .pd-rating {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 0.84rem var(--font-body);
  color: #6b5643;
  text-align: left;
  cursor: pointer;
}

.pd2 .pd-rating:hover span:last-child { text-decoration: underline; color: var(--c-amber-deep); }
.pd2 .pd-rating b { color: #1f140a; }

.pd2 .pd-stars {
  position: relative;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #eadfcd;
  background: linear-gradient(90deg, #f0a815 var(--r), #eadfcd var(--r));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pd2 .pd-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 22px 0 12px; }
.pd2 .pd-price-now { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 900; letter-spacing: -0.02em; color: #1f140a; line-height: 1; }
.pd2 .pd-price-old { font-size: 1.05rem; color: #a8977f; text-decoration: line-through; }
.pd2 .pd-save { padding: 5px 11px; border-radius: 999px; background: #fff1ec; color: #c2410c; font-size: 0.78rem; font-weight: 800; }

.pd2 .pd-stock { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 0.85rem; font-weight: 700; }
.pd2 .pd-stock-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.pd2 .pd-stock.is-in { color: #2f7a43; }
.pd2 .pd-stock.is-low { color: #c2410c; }
.pd2 .pd-stock.is-low .pd-stock-dot { animation: pcBlink 1.6s ease-in-out infinite; }
.pd2 .pd-stock.is-out { color: #8c7866; }

.pd2 .pd-lead { margin: 18px 0 0; font-size: 0.96rem; line-height: 1.7; color: #5e4d3d; }

/* Free shipping progress */
.pd2 .pd-ship { margin-top: 20px; padding: 14px 16px; border-radius: 18px; background: #fbf6ee; border: 1px solid #f0e3cd; }
.pd2 .pd-ship-text { font-size: 0.84rem; color: #5e4d3d; margin-bottom: 9px; }
.pd2 .pd-ship-text b { color: #1f140a; }
.pd2 .pd-ship-bar { height: 7px; border-radius: 999px; background: #eee0c8; overflow: hidden; }
.pd2 .pd-ship-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--c-gold-primary), var(--c-amber-deep)); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.pd2 .pd-ship.is-done { background: #eef7f0; border-color: #cfe7d6; }
.pd2 .pd-ship.is-done .pd-ship-bar span { background: linear-gradient(90deg, #4fb36f, #2f9e5b); }

/* Buy row */
.pd2 .pd-buy { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.pd2 .pd-buy-price { display: none; }

.pd2 .quickview-qty { grid-template-columns: 42px 44px 42px; height: 54px; border-radius: 16px; border: 1px solid #e6d6bb; background: #fff; }
.pd2 .quickview-qty button { font-size: 1.25rem; transition: background-color .2s ease; }
.pd2 .quickview-qty button:hover { background: #faf3e6; }
.pd2 .quickview-qty input { width: 44px; font-size: 0.95rem; }

.pd2 .pd-add {
  flex: 1;
  min-height: 54px;
  gap: 10px;
  border-radius: 16px;
  background: #1e150b;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 14px 30px rgba(30, 21, 11, 0.22);
}

.pd2 .pd-add svg { width: 20px; height: 20px; }
.pd2 .pd-add:hover { background: var(--c-gold-primary); color: #1e140a; box-shadow: 0 14px 30px rgba(217, 138, 12, 0.35); }
.pd2 .pd-add:disabled { background: #e9e1d4; color: #a8977f; box-shadow: none; }

.pd2 .pd-heart {
  position: static;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid #e6d6bb;
  background: #fff;
  color: #6b5643;
  box-shadow: none;
}

.pd2 .pd-heart:hover { color: #e0533a; border-color: #f2c2b6; transform: none; }
.pd2 .pd-heart.is-active { color: #fff; background: linear-gradient(135deg, #f0623f, #d4402a); border-color: transparent; }

/* Perks */
.pd2 .pd-perks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pd2 .pd-perks li { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 18px; border: 1px solid #f0e3cd; }
.pd2 .pd-perks svg { width: 22px; height: 22px; color: var(--c-amber-deep); }
.pd2 .pd-perks span { display: flex; flex-direction: column; }
.pd2 .pd-perks b { font-family: var(--font-display); font-size: 0.86rem; color: #1f140a; }
.pd2 .pd-perks small { font-size: 0.74rem; line-height: 1.4; color: #8c7866; }

/* Tabs */
.pd2 .pd-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 6px;
  padding: 12px clamp(22px, 3vw, 40px) 0 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #efe4d1;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-margin-top: 0;
}

.pd2 .pd-tabs::-webkit-scrollbar { display: none; }

.pd2 .pd-tabs button {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px 14px;
  border: 0;
  background: none;
  font: 700 0.95rem var(--font-display);
  color: #8c7866;
  cursor: pointer;
}

.pd2 .pd-tabs button span { padding: 1px 8px; border-radius: 999px; background: #faf3e6; font-size: 0.75rem; color: #6b5643; }
.pd2 .pd-tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background-color .2s ease; }
.pd2 .pd-tabs button:hover { color: #1f140a; }
.pd2 .pd-tabs button.is-active { color: #1f140a; }
.pd2 .pd-tabs button.is-active::after { background: var(--c-gold-primary); }
.pd2 .pd-tabs button:focus-visible { outline: 2.5px solid var(--c-amber-deep); outline-offset: -4px; border-radius: 12px; }

.pd2 .pd-panels { padding: 26px clamp(22px, 3vw, 40px) 30px 22px; min-height: 220px; }
.pd2 .pd-panel[hidden] { display: none !important; }
.pd2 .pd-panel.quickview-reviews-section { border: 0; padding: 0; background: transparent; }

.pd2 .pd-details { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 4vw, 48px); }
.pd2 .pd-details h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: #1f140a; }
.pd2 .pd-details p { margin: 0; font-size: 0.95rem; line-height: 1.75; color: #5e4d3d; }

.pd2 .pd-specs { margin: 0; border: 1px solid #f0e3cd; border-radius: 18px; overflow: hidden; }
.pd2 .pd-specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; }
.pd2 .pd-specs div:nth-child(odd) { background: #fbf6ee; }
.pd2 .pd-specs dt { font-size: 0.8rem; color: #8c7866; }
.pd2 .pd-specs dd { margin: 0; font-size: 0.86rem; font-weight: 700; color: #1f140a; }

/* Related */
.pd2 .pd-related { padding: 26px clamp(22px, 3vw, 40px) 34px 22px; border-top: 1px solid #efe4d1; background: #fdfaf4; }
.pd2 .quickview-related-head span { font-size: 0.7rem; letter-spacing: 0.14em; font-weight: 800; color: var(--c-amber-deep); }
.pd2 .quickview-related-head h3 { margin: 4px 0 16px; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: #1f140a; }
.pd2 .quickview-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.pd2 .quickview-related-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #efe4d1;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease;
}

.pd2 .quickview-related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(166, 99, 0, 0.12); }
.pd2 .pd-rel-img { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #f6ecdc; }
.pd2 .pd-rel-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.pd2 .pd-rel-copy { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px 4px; }
.pd2 .pd-rel-copy small { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #a8743a; }
.pd2 .pd-rel-copy b { font-family: var(--font-display); font-size: 0.92rem; font-weight: 700; color: #1f140a; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pd2 .pd-rel-copy em { font-style: normal; font-family: var(--font-display); font-weight: 900; color: #1f140a; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Product detail — tablet & phones
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .pd2 .pd-layout { grid-template-columns: 1fr 1fr; gap: 22px; }
  .pd2 .pd-perks { grid-template-columns: 1fr; }
  .pd2 .pd-perks li { flex-direction: row; align-items: center; }
  .pd2 .pd-details { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* fixed buy bar needs a non-transformed ancestor */
  .quickview-overlay.is-active .quickview-modal-content.pd2,
  .quickview-modal-content.pd2 { transform: none !important; }

  .quickview-modal-content.pd2 {
    max-height: 96vh;
    max-height: 96dvh;
    border-radius: 26px 26px 0 0;
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .pd2 .quickview-close-btn { margin: 12px 12px -56px 0; top: 12px; }

  .pd2 .pd-layout { grid-template-columns: 1fr; gap: 0; padding: 10px 10px 8px; }
  .pd2 .pd-gallery { position: static; }
  .pd2 .quickview-gallery-main { border-radius: 20px; }
  .pd2 .quickview-gallery-thumbs button { flex-basis: 58px; width: 58px; height: 58px; border-radius: 14px; }

  .pd2 .pd-info { padding: 18px 8px 0; }
  .pd2 .pd-meta { padding-right: 0; font-size: 0.74rem; }
  .pd2 .pd-meta .pd-brand { flex-basis: 100%; }
  .pd2 .pd-meta .pd-brand::before { display: none; }
  .pd2 .pd-title { font-size: 1.6rem; margin-top: 12px; }
  .pd2 .pd-price { margin: 16px 0 10px; }
  .pd2 .pd-price-now { font-size: 2rem; }
  .pd2 .pd-lead { font-size: 0.9rem; }

  .pd2 .pd-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    margin: 0;
    gap: 8px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #efe4d1;
    box-shadow: 0 -12px 30px rgba(30, 21, 11, 0.08);
  }

  .pd2 .pd-buy-price { display: flex; flex-direction: column; min-width: 0; margin-right: 2px; }
  .pd2 .pd-buy-price small { font-size: 0.66rem; color: #8c7866; }
  .pd2 .pd-buy-price b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 900; color: #1f140a; white-space: nowrap; }

  .pd2 .pd-buy { flex-wrap: nowrap; }
  .pd2 .pd-buy > * { order: 0; }
  .pd2 .quickview-qty { flex: none; grid-template-columns: 30px 30px 30px; height: 48px; border-radius: 14px; }
  .pd2 .quickview-qty input { width: 32px; }
  .pd2 .pd-add { min-height: 48px; min-width: 0; padding: 0 12px; border-radius: 14px; font-size: 0.92rem; white-space: nowrap; }
  .pd2 .pd-add svg { display: none; }
  .pd2 .pd-heart { width: 48px; height: 48px; border-radius: 14px; }

  .pd2 .pd-perks { margin-top: 18px; }

  .pd2 .pd-tabs { padding: 6px 10px 0; margin-top: 10px; }
  .pd2 .pd-tabs button { padding: 12px 12px 13px; font-size: 0.88rem; }
  .pd2 .pd-panels { padding: 20px 16px 24px; }
  .pd2 .pd-specs div { grid-template-columns: 96px 1fr; padding: 11px 14px; }

  .pd2 .pd-related { padding: 22px 14px 26px; }
  .pd2 .quickview-related-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .pd2 .quickview-related-card { scroll-snap-align: start; }
}

@media (max-width: 380px) {
  .pd2 .pd-buy-price { display: none; }
}
