:root {
  --blue-dark:    #0F2247;
  --blue-primary: #1D3E7C;
  --blue-light:   #EEF2F9;
  --gold:         #D4A72C;
  --gold-dark:    #AD8620;
  --white:        #FFFFFF;
  --text-dark:    #1C2536;
  --text-muted:   #64708A;
  --border:       #E4E8F0;
  --shadow:       0 4px 20px rgba(15, 34, 71, 0.06);
  --radius:       10px;
  --font-serif:   "Playfair Display", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  overflow-x: hidden;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--blue-light);
  background-image: radial-gradient(rgba(29, 62, 124, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  animation: drift 30s ease-in-out infinite alternate;
}
body::before {
  width: 640px;
  height: 640px;
  top: -180px;
  right: -220px;
  background: radial-gradient(circle, rgba(212, 167, 44, 0.35), transparent 70%);
}
body::after {
  width: 580px;
  height: 580px;
  bottom: -200px;
  left: -220px;
  background: radial-gradient(circle, rgba(29, 62, 124, 0.35), transparent 70%);
  animation-delay: -15s;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-50px, 40px) scale(1.1); }
  100% { transform: translate(30px, -30px) scale(0.94); }
}

a { text-decoration: none; color: inherit; }
h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.2px;
}

/* ── Coming soon ────────────────────────────────────────── */

.coming-soon {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.coming-soon-inner { max-width: 480px; }
.coming-soon-inner .logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
  display: inline-block;
  margin-bottom: 24px;
}
.coming-soon-inner .logo span { color: var(--gold); margin-left: 4px; font-weight: 400; }
.coming-soon-inner h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--blue-dark);
  margin-bottom: 14px;
}
.coming-soon-inner p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.coming-soon-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 18px 0;
  font-weight: 700;
  color: var(--blue-primary);
}
.coming-soon-address {
  font-size: 0.85rem;
}

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  background: var(--blue-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.logo span {
  font-weight: 400;
  color: var(--gold);
  margin-left: 4px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-bar {
  display: flex;
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 18px;
  font-size: 0.9rem;
  color: var(--text-dark);
}
.search-bar button {
  border: none;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 0 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.search-bar button:hover { background: var(--gold-dark); }

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(15, 34, 71, 0.22);
  max-height: 420px;
  overflow-y: auto;
  z-index: 200;
  display: none;
  text-align: left;
}
.search-results-dropdown.open { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item img,
.search-result-noimg {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--blue-light);
  flex-shrink: 0;
}
.search-result-info { flex: 1; min-width: 0; }
.search-result-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.search-result-price {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--blue-primary);
  white-space: nowrap;
}
.search-empty {
  padding: 18px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.main-nav {
  display: flex;
  gap: 22px;
}
.main-nav a {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.88;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}
.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
  border-color: var(--gold);
}

/* ── Carousel ───────────────────────────────────────────── */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  height: 460px;
  background: var(--blue-dark);
}

.carousel-slide .slide-text {
  flex: 0 0 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 64px;
  color: var(--white);
}
.carousel-slide .slide-category {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.carousel-slide .slide-name {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.carousel-slide .slide-price {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 30px;
}
.carousel-slide .slide-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  padding: 13px 30px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.carousel-slide:hover .slide-cta {
  background: var(--gold-dark);
  transform: translateX(3px);
}

.carousel-slide .slide-photo {
  position: relative;
  flex: 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--blue-light);
  padding: 36px;
}

.badge-assorted {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.carousel-dots .dot.active {
  background: var(--gold);
  width: 26px;
}

@media (max-width: 720px) {
  .carousel-slide { flex-direction: column; height: auto; }
  .carousel-slide .slide-text { padding: 40px 28px; align-items: center; text-align: center; }
  .carousel-slide .slide-photo { height: 240px; }
}

/* ── Categories ─────────────────────────────────────────── */

.categories {
  max-width: 1280px;
  margin: 72px auto;
  padding: 0 24px;
  text-align: center;
}
.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 20px;
}

/* Bento pattern: a featured tile plus one wide tile for rhythm.
   Deliberately no row-spanning tiles alongside 1-row neighbors —
   that combination leaves a reserved-but-empty row in the grid track. */
.category-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.category-card:nth-child(8) { grid-column: span 2; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .category-card:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .category-card:nth-child(8) { grid-column: span 1; }
}
@media (max-width: 520px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-card:nth-child(1) { grid-column: span 1; }
}

.category-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s;
}
.category-card:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 14px 32px rgba(18, 41, 92, 0.18);
}
.category-card .photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}
.category-card:hover .photo { transform: scale(1.09); }
.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,41,92,0.70) 0%, rgba(18,41,92,0.20) 50%, rgba(18,41,92,0.0) 75%);
  transition: background 0.25s;
}
.category-card:hover .overlay {
  background: linear-gradient(to top, rgba(18,41,92,0.78) 0%, rgba(18,41,92,0.38) 60%, rgba(18,41,92,0.08) 100%);
}
.category-card .name {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.category-card:nth-child(1) .name { font-size: 1.5rem; }
.category-card .shop-now {
  position: absolute;
  left: 16px;
  bottom: -22px;
  z-index: 1;
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.25s, bottom 0.25s;
}
.category-card:hover .name { bottom: 40px; transition: bottom 0.25s; }
.category-card:hover .shop-now {
  bottom: 16px;
  opacity: 1;
}

/* ── About ──────────────────────────────────────────────── */

.about {
  background: var(--blue-light);
  padding: 56px 24px;
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text h2 { text-align: left; }
.about-text .section-sub { text-align: left; margin-bottom: 16px; }
.about-text p:last-child {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.7;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-primary);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Services ───────────────────────────────────────────── */

.services {
  max-width: 1200px;
  margin: 56px auto;
  padding: 0 24px;
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-primary);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border-radius: 50%;
  margin-bottom: 14px;
  color: var(--blue-primary);
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-size: 1rem;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.service-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Contact ────────────────────────────────────────────── */

.contact-section {
  background: var(--blue-light);
  padding: 56px 24px;
  text-align: center;
}
.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  text-align: left;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.contact-card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  border-radius: 50%;
  margin-bottom: 12px;
  color: var(--blue-primary);
}
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card h4 {
  color: var(--blue-dark);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.contact-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.contact-card a {
  color: var(--blue-primary);
  font-weight: 600;
}
.contact-card a:hover { text-decoration: underline; }
.contact-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
}
.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.hours-table td {
  padding: 4px 0;
  color: var(--text-muted);
}
.hours-table td:last-child {
  text-align: right;
  color: var(--text-dark);
  font-weight: 600;
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.85);
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p {
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  max-width: 320px;
}
.footer-links h4, .footer-contact h4 {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.footer-links a, .footer-contact p {
  display: block;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
}
.footer-legal-links {
  text-align: center;
  font-size: 0.78rem;
  padding-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.footer-legal-links a { color: rgba(255,255,255,0.6); }
.footer-legal-links a:hover { color: #fff; }

.footer-credits {
  text-align: center;
  font-size: 0.72rem;
  padding-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: rgba(255,255,255,0.4);
}
.footer-credits span:not(:last-child)::after {
  content: "•";
  margin-left: 12px;
  color: rgba(255,255,255,0.25);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 720px) {
  .header-inner { row-gap: 12px; }
  .logo { order: 1; }
  .cart-icon { order: 2; margin-left: auto; }
  .search-wrap { order: 3; flex: 0 0 100%; min-width: 0; }
  .main-nav { order: 4; flex: 0 0 100%; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
  .main-nav a { padding: 6px 4px; }
  .footer-inner { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-text h2, .about-text .section-sub { text-align: center; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .about-stats .stat { flex: 1; min-width: 120px; justify-content: center; }
  .product-detail { grid-template-columns: 1fr; }
  .variant-tile-grid { grid-template-columns: repeat(3, 1fr); }
  .product-actions { flex-direction: column; align-items: stretch; }
  .product-actions .product-cta,
  .product-actions .product-cta-secondary { width: 100%; }
  .qty-stepper button { width: 40px; height: 40px; font-size: 1.15rem; }
  .cart-remove { padding: 6px 10px; font-size: 1.4rem; }
  .page-btn { width: 40px; height: 40px; }
  .form-field input,
  .form-field textarea,
  .search-bar input { font-size: 16px; }
  .radio-row { flex-wrap: wrap; gap: 12px 24px; }
}

@media (max-width: 480px) {
  h2 { font-size: 1.6rem; }
  .categories { margin: 48px auto; }
  .carousel-slide .slide-text { padding: 32px 20px; }
  .carousel-slide .slide-name { font-size: 1.7rem; margin-bottom: 14px; }
  .carousel-slide .slide-price { margin-bottom: 20px; }
  .category-card .name { font-size: 0.95rem; }
  .category-card:nth-child(1) .name { font-size: 1.2rem; }
}

/* ── Legal pages (Terms, Privacy, Returns, Security) ──────────── */

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal-page h2 { text-align: left; }
.legal-page .section-sub { text-align: left; margin-bottom: 8px; }
.legal-page .legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 32px;
}
.legal-page h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 32px 0 10px;
}
.legal-page p {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-page ul {
  margin: 0 0 12px 20px;
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.7;
}
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--blue-primary); text-decoration: underline; }

/* ── Search results page ────────────────────────────────────── */

.search-results-page {
  max-width: 1200px;
  margin: 48px auto 72px;
  padding: 0 24px;
}
.search-results-page h2 { text-align: left; }
.search-results-page .section-sub { text-align: left; margin-bottom: 32px; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* ── Yarn category playful theme ────────────────────────────── */

.search-results-page.yarn-theme {
  position: relative;
}
.yarn-scatter {
  position: absolute;
  inset: -20px 0 0 0;
  min-height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.yarn-scatter svg { position: absolute; opacity: 0.8; }
.search-results-page.yarn-theme #resultsHeading,
.search-results-page.yarn-theme #resultsSub,
.search-results-page.yarn-theme .results-grid,
.search-results-page.yarn-theme .results-pagination {
  position: relative;
  z-index: 1;
}
.search-results-page.yarn-theme .result-card { background-color: var(--white); }

/* Header accents (yarn page only) */
.site-header .yarn-header-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.yarn-header-decor svg { position: absolute; opacity: 0.85; }

/* Cat chasing a yarn ball across the screen */
.yarn-cat-runner {
  position: fixed;
  bottom: 18px;
  left: -160px;
  z-index: 999;
  pointer-events: none;
  animation: yarnCatRun 16s linear infinite;
  animation-delay: 2s;
}
.yarn-cat-runner .yarn-ball-rolling {
  animation: yarnBallSpin 0.6s linear infinite;
  transform-origin: center;
}
@keyframes yarnCatRun {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(100vw + 160px)); }
}
@keyframes yarnBallSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .yarn-cat-runner { animation: none; display: none; }
}
.result-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--blue-primary);
}
.result-card-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--blue-light);
  padding: 10px;
}
.result-card-body { padding: 14px 16px; }
.result-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue-primary);
  margin-bottom: 6px;
}
.result-card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.result-card-price {
  font-weight: 700;
  color: var(--blue-primary);
  font-size: 0.95rem;
}
.results-empty {
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
}

.results-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.page-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.page-btn.active,
.page-btn:hover {
  background: var(--blue-primary);
  color: var(--white);
  border-color: var(--blue-primary);
}

.search-view-all {
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue-primary);
  border-top: 1px solid var(--border);
}
.search-view-all:hover { background: var(--blue-light); }

/* ── Product detail page ────────────────────────────────────── */

.product-page {
  max-width: 1100px;
  margin: 48px auto 80px;
  padding: 0 24px;
  min-height: 300px;
}
.product-loading,
.product-not-found {
  text-align: center;
  color: var(--text-muted);
  padding: 80px 0;
}
.product-not-found h2 {
  font-family: var(--font-serif);
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.product-detail.yarn-theme .product-photo {
  background-color: #FBEAF0;
  position: relative;
}
.product-detail.yarn-theme .product-photo-col {
  position: relative;
}
.yarn-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.yarn-decor--ball1 { top: -18px; left: -18px; }
.yarn-decor--ball2 { bottom: -16px; right: -14px; transform: rotate(18deg); }
.yarn-decor--needles { top: -22px; right: 10px; transform: rotate(-6deg); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-photo-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-photo {
  aspect-ratio: 1 / 1;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--blue-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background-color: var(--blue-light);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.product-gallery-thumb:hover { border-color: var(--blue-primary); }
.product-gallery-thumb.selected {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 2px rgba(29, 62, 124, 0.15);
}
.variant-tile-section {
  margin-bottom: 18px;
}
.variant-tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.variant-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  padding: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.variant-tile:hover { border-color: var(--blue-primary); }
.variant-tile.selected {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 2px rgba(29, 62, 124, 0.15);
  background: var(--blue-light);
}
.variant-tile.out-of-stock { opacity: 0.45; }
.variant-tile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background-color: var(--blue-light);
  background-size: cover;
  background-position: center;
}
.variant-tile-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.variant-tile-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}
.variant-page-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue-primary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s;
}
.variant-page-btn:hover:not(:disabled) { background: var(--blue-light); border-color: var(--blue-primary); }
.variant-page-btn:disabled { opacity: 0.35; cursor: default; }
.variant-page-indicator {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.product-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.product-back:hover { color: var(--blue-primary); }
.product-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.product-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-primary);
  margin-bottom: 12px;
}
.product-stock {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.product-stock.in-stock { background: #E7F5EC; color: #1B7A4A; }
.product-stock.out-stock { background: #FDECEC; color: #B91C1C; }
.product-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.product-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.product-cta {
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: var(--radius);
}
.product-cta {
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-block;
  text-align: center;
}
.product-cta:hover { background: var(--blue-dark); }
.product-cta-secondary {
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  display: inline-block;
  text-align: center;
}
.product-cta-secondary:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

/* ── Variant selector (product page) ───────────────────────────── */

.product-variant-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.variant-select-hint {
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.variant-dropdown {
  position: relative;
  display: inline-block;
}
.variant-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.variant-dropdown-trigger:hover { border-color: var(--blue-primary); }
.variant-dropdown.open .variant-dropdown-trigger {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(29, 62, 124, 0.15);
}
.variant-dropdown-chevron {
  color: var(--blue-primary);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.variant-dropdown.open .variant-dropdown-chevron { transform: rotate(180deg); }

.variant-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 230px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 34, 71, 0.18);
  border: 1px solid var(--border);
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 50;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.variant-dropdown.open .variant-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.variant-dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.12s;
}
.variant-dropdown-option:hover { background: var(--blue-light); }
.variant-dropdown-option.selected { color: var(--blue-primary); background: var(--blue-light); }
.variant-dropdown-option.out-of-stock { color: var(--text-muted); font-weight: 500; }
.variant-check { color: var(--blue-primary); font-weight: 800; }
.variant-oos-tag {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #B91C1C;
  background: #FEE2E2;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Related products (product page) ───────────────────────────── */

.related-products {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.related-products h2 {
  text-align: left;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ── Quantity stepper (product page + cart) ────────────────────── */

.product-qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.product-qty-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.qty-stepper button {
  border: none;
  background: var(--blue-light);
  color: var(--blue-primary);
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.qty-stepper button:hover { background: var(--border); }
.qty-stepper span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* ── Barcode ────────────────────────────────────────────────────── */

.product-barcode {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.product-barcode svg { max-width: 220px; color: var(--text-dark); }

/* ── Cart icon (header) ────────────────────────────────────────── */

.cart-icon {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.cart-icon:hover { opacity: 1; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: var(--blue-dark);
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Cart page ──────────────────────────────────────────────────── */

.cart-page {
  max-width: 1100px;
  margin: 48px auto 80px;
  padding: 0 24px;
}
.cart-page h2 { text-align: left; margin-bottom: 28px; }

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
}
.cart-empty p { margin-bottom: 20px; }

.cart-line {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line-photo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background-color: var(--blue-light);
  background-size: cover;
  background-position: center;
}
.cart-line-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
}
.cart-line-price {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.cart-line-total {
  font-weight: 700;
  color: var(--blue-primary);
  font-size: 0.92rem;
  min-width: 80px;
  text-align: right;
}
.cart-remove {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.cart-remove:hover { color: #B91C1C; }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 18px;
}
.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.cart-continue {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cart-continue:hover { color: var(--blue-primary); }

/* ── Checkout page ──────────────────────────────────────────────── */

.checkout-page {
  max-width: 1100px;
  margin: 48px auto 80px;
  padding: 0 24px;
}
.checkout-page h2 { text-align: left; }
.checkout-note { text-align: left; margin-bottom: 32px; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.checkout-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}
.form-field input,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--blue-light);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--blue-primary);
  outline-offset: 1px;
}
.radio-row {
  display: flex;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--text-dark);
}
.radio-row label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.checkout-submit {
  margin-top: 8px;
  padding: 15px;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.checkout-sidebar {
  background: var(--blue-light);
  border-radius: var(--radius);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.checkout-sidebar h4 {
  font-family: var(--font-serif);
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue-dark);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 6px;
}

.checkout-success {
  text-align: center;
  padding: 80px 0;
}
.checkout-success h2 {
  margin-bottom: 12px;
}
.checkout-success p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
  }
  .cart-line-photo { width: 56px; height: 56px; flex-shrink: 0; }
  .cart-line-info { flex: 1 1 140px; min-width: 0; }
  .cart-line-total { margin-left: auto; }
  .cart-summary,
  .checkout-sidebar { position: static; }
}

/* ════════════════════════════════════════════════════════════════
   Shared product cards (site.js): real <img> tags so the browser can
   lazy-load them, plus wishlist heart, quick view and stock nudges.
   ════════════════════════════════════════════════════════════════ */

.result-card { position: relative; container-type: inline-size; }
.result-card-link { display: block; color: inherit; text-decoration: none; }
.result-card-photo { display: flex; align-items: center; justify-content: center; }
.result-card-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.badge-nudge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: #FFF4E5;
  color: #B45309;
  border: 1px solid #F6D7A7;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
}

.card-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: #B8BFCC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  z-index: 2;
}
.card-wish:hover { transform: scale(1.08); color: #E0567A; }
.card-wish.saved, .product-wish.saved { color: #E0567A; }

/* Sits just above the bottom edge of the square photo (photo height = card width). */
.card-quick {
  position: absolute;
  left: 50%;
  top: calc(100cqw - 44px);
  transform: translate(-50%, 8px);
  opacity: 0;
  border: none;
  background: var(--blue-dark);
  color: #fff;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 2;
  white-space: nowrap;
}
.result-card:hover .card-quick, .card-quick:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.result-card:has(.badge-nudge) .card-quick { top: calc(100cqw - 74px); }
@media (hover: none) {
  .card-quick { opacity: 1; transform: translate(-50%, 0); padding: 6px 12px; font-size: 0.7rem; }
}

.wish-gone { padding: 12px; }
.wish-gone-note { color: var(--text-muted); font-size: 0.85rem; margin: 6px 0 10px; }

/* Product page photos now use <img> too */
.product-photo { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-gallery-thumb { overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--blue-light); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.variant-tile-photo { overflow: hidden; display: block; }
.variant-tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Search toolbar ── */
.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin: -14px 0 24px;
}
.results-toolbar:empty { display: none; }
.tb-field { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.tb-field select {
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-dark);
  cursor: pointer;
}
.tb-check { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); cursor: pointer; }
.tb-check input { width: 16px; height: 16px; accent-color: var(--blue-primary); }
.search-results-page.yarn-theme .results-toolbar { position: relative; z-index: 1; }

/* ── Home page product rows ── */
.product-row { max-width: 1280px; margin: 64px auto 0; padding: 0 24px; }
.product-row-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.product-row-head h2, .product-row-head .section-sub { text-align: left; margin-bottom: 0; }
.product-row .results-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ── Toast ── */
.ods-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: var(--blue-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 34, 71, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 2000;
}
.ods-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Quick view ── */
body.no-scroll { overflow: hidden; }
.qv-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 34, 71, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1500;
}
.qv-backdrop.open { display: flex; }
.qv-dialog {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  max-width: 820px;
  width: 100%;
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.qv-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 1;
}
.qv-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 28px; }
.qv-photo { aspect-ratio: 1 / 1; background: var(--blue-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.qv-photo img { width: 100%; height: 100%; object-fit: contain; }
.qv-name { font-family: var(--font-serif); font-size: 1.5rem; color: var(--blue-dark); margin: 6px 0 10px; text-align: left; }
.qv-note { color: var(--text-muted); font-size: 0.85rem; margin: -8px 0 12px; }
.qv-desc { color: var(--text-muted); line-height: 1.6; font-size: 0.9rem; margin-bottom: 18px; }
.qv-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.qv-loading { grid-column: 1 / -1; text-align: center; color: var(--text-muted); padding: 40px 0; }
@media (max-width: 640px) { .qv-body { grid-template-columns: 1fr; padding: 22px; } }

/* ── Header wishlist icon ── */
@media (max-width: 900px) {
  .wish-icon + .cart-icon { margin-left: 18px; }
}

/* ── Product page extras ── */
.product-wish {
  width: 48px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: var(--radius);
  color: #B8BFCC;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.product-wish svg { width: 22px; height: 22px; }
.product-wish:hover { color: #E0567A; border-color: #E0567A; }
.stock-nudge { color: #B45309; }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.share-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.share-btn:hover { border-color: var(--blue-primary); color: var(--blue-primary); }
.rating-summary { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; text-decoration: none; }
.rating-summary[hidden] { display: none; }
.stars { color: #E6A700; letter-spacing: 1px; }

/* ── Reviews ── */
.reviews-summary { color: var(--text-muted); margin: -8px 0 18px; }
.reviews-list { display: grid; gap: 14px; margin-bottom: 28px; }
.reviews-list:empty { display: none; }
.review { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-date { color: var(--text-muted); font-size: 0.8rem; }
.review p { color: var(--text-dark); line-height: 1.6; white-space: pre-line; }
.review-form { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 22px; display: grid; gap: 12px; max-width: 620px; }
.review-form h3 { font-family: var(--font-serif); color: var(--blue-dark); font-size: 1.15rem; }
.review-form input, .review-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 100%;
  resize: vertical;
}
.review-form .product-cta { justify-self: start; }
.review-status { font-size: 0.82rem; color: var(--text-muted); }
.review-status.error, .signup-note.error { color: #B91C1C !important; }
.star-input { display: flex; gap: 4px; }
.star-input button { border: none; background: none; font-size: 1.7rem; line-height: 1; color: #D5DAE3; cursor: pointer; padding: 0 2px; }
.star-input button.on { color: #E6A700; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Footer deals signup ── */
.footer-signup {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px 32px;
  align-items: center;
}
.footer-signup h4 { color: #fff; margin-bottom: 6px; }
.footer-signup p { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }
.signup-form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; position: relative; }
.signup-form input {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.signup-form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.signup-form button {
  font-family: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 11px 20px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: var(--blue-dark);
  cursor: pointer;
}
.signup-form button:disabled { opacity: 0.6; cursor: default; }
.signup-note { grid-column: 1 / -1; font-size: 0.76rem !important; }
@media (max-width: 760px) {
  .footer-signup { grid-template-columns: 1fr; }
  .signup-form { grid-template-columns: 1fr; }
  .signup-form input { font-size: 16px; }
}

/* ── Contact map ── */
.map-embed { margin-top: 32px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }
.open-now { margin-top: 12px; font-weight: 700; font-size: 0.85rem; }
.open-now.is-open { color: #1B7A4A; }
.open-now.is-closed { color: #B91C1C; }

/* ════════════════════════════════════════════════════════════════
   Seasonal themes (site.js picks one by date; ?season=... to preview)
   ════════════════════════════════════════════════════════════════ */

.season-ribbon {
  position: relative;
  text-align: center;
  padding: 9px 44px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}
.season-ribbon a { color: inherit; font-weight: 800; text-decoration: underline; margin-left: 6px; white-space: nowrap; }
.season-ribbon button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.8;
}
.season-christmas .season-ribbon { background: linear-gradient(90deg, #B4232F, #1F6B3A); }
.season-carnival .season-ribbon { background: linear-gradient(90deg, #8E44AD, #E63946, #F4A261, #2A9D8F); }
.season-school .season-ribbon { background: #F2C230; color: #2B2B2B; }

.season-christmas .site-header { box-shadow: inset 0 -4px 0 #B4232F, var(--shadow); }
.season-carnival .site-header { box-shadow: inset 0 -4px 0 #E9C46A, var(--shadow); }
.season-school .site-header { box-shadow: inset 0 -4px 0 #F2C230, var(--shadow); }

.season-particles { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 90; }
.season-particles span { position: absolute; top: -40px; animation-name: seasonFall; animation-timing-function: linear; animation-iteration-count: infinite; }
.season-particles .flake { color: #C9DDF4; text-shadow: 0 0 4px rgba(255, 255, 255, 0.8); opacity: 0.85; }
.season-school .season-particles .flake { opacity: 0.55; text-shadow: none; }
.season-particles .confetti { width: 8px; height: 13px; border-radius: 2px; opacity: 0.85; }
@keyframes seasonFall {
  0%   { translate: 0 0; rotate: 0deg; }
  50%  { translate: 18px 55vh; }
  100% { translate: -12px 110vh; rotate: 320deg; }
}
@media (prefers-reduced-motion: reduce) { .season-particles { display: none; } }

/* Two cards per row on phones instead of one huge one */
@media (max-width: 560px) {
  .results-grid, .product-row .results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .result-card-body { padding: 10px 11px; }
  .result-card-name { font-size: 0.85rem; }
  .card-wish { width: 30px; height: 30px; top: 6px; right: 6px; }
  .card-wish svg { width: 15px; height: 15px; }
  .badge-assorted { top: 6px; left: 6px; font-size: 0.58rem; padding: 3px 7px; }
}
