/*
Theme Name: Goldfayre
Theme URI: https://www.goldfayre.com
Author: Konnect Vision Media
Description: Custom WooCommerce retail storefront for Goldfayre Trading Ltd.
Version: 2.6.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: goldfayre
*/



/* -- head style blocks -- */

body { margin: 0; font-family: 'Poppins', system-ui, sans-serif; color: #1C1917; background: #FFFFFF; -webkit-font-smoothing: antialiased; }
a { color: #E30613; text-decoration: none; }
a:hover { color: #B30610; }
h1, h2, h3, h4 { font-family: 'Poppins', system-ui, sans-serif; letter-spacing: -0.015em; margin: 0; font-weight: 700; }
.serif-sub { font-family: 'Poppins', sans-serif; font-style: italic; font-weight: 500; }
button { font-family: inherit; cursor: pointer; }
*, *::before, *::after { box-sizing: border-box; }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: 24px; width: 100%; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; min-height: 48px; background: #E30613; color: #FBF6EC; border: 1px solid #E30613; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.btn-primary:hover { background: #B30610; color: #FBF6EC; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; min-height: 48px; background: transparent; color: #1C1917; border: 1px solid #1C1917; border-radius: 999px; font-weight: 600; font-size: 15px; }
.btn-ghost:hover { background: #1C1917; color: #FBF6EC; }
.btn-accent { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 44px; background: #D4A017; color: #1C1917; border: 1px solid #D4A017; border-radius: 999px; font-weight: 600; font-size: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.card { background: #FFFFFF; border: 1px solid #E8DFCC; border-radius: 8px; overflow: hidden; }
.hover-lift:hover { border-color: #E30613; transition: border-color 0.15s ease; }
.pill { display: inline-flex; align-items: center; padding: 10px 18px; background: #FBF6EC; border: 1px solid #E8DFCC; border-radius: 999px; font-weight: 600; font-size: 14px; color: #1C1917; min-height: 44px; }
.pill:hover { background: #E30613; color: #FBF6EC; border-color: #E30613; }
.brand-card { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 1px 3px rgba(28,25,23,0.08); }
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(28,25,23,0.14); color: inherit; }
.brand-card .brand-name { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: clamp(16px, 1.5vw, 22px); line-height: 1; letter-spacing: -0.01em; }
.brand-card .brand-cat { font-family: 'Poppins', sans-serif; font-style: italic; font-size: 12px; opacity: 0.85; margin-top: auto; }
.brand-card .brand-skus { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-top: 4px; }
@media (max-width: 1024px) { .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
@media (max-width: 720px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 420px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.cat-tile { position: relative; aspect-ratio: 1 / 1; background: #FFFFFF; border: 1px solid #E8DFCC; border-radius: 8px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cat-tile:hover { background: #F6EEE0; border-color: #E30613; }
input, select, button { border-radius: 0; }
.card input, .card select, .card button, button[type="submit"] { border-radius: 0; }
.btn-primary, .btn-ghost, .btn-accent { border-radius: 999px !important; }
.cat-tile .ill { position: absolute; right: -10px; bottom: -10px; opacity: 0.9; }
.price-strike { color: #78716C; text-decoration: line-through; font-size: 13px; margin-right: 6px; }
.price-now { color: #E30613; font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 600; }
.price-vat { color: #78716C; font-size: 12px; }
@media (max-width: 1024px) { .hide-md { display: none !important; } }
@media (max-width: 720px) { .hide-sm { display: none !important; } .wrap { padding-inline: 16px; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-grid > a, .hero-grid > div { min-height: auto !important; }
  .hero-left { max-width: 100% !important; padding: 28px 24px !important; }
  .hero-left h2, .hero-left h2 em { font-size: clamp(26px, 7vw, 38px) !important; }
  .hero-left p { max-width: 100% !important; }
  .hero-left br { display: none; }
  .hero-left-tile { min-height: 360px !important; background-position: right -40px center !important; }
}
@media (max-width: 480px) {
  .hero-left { padding: 24px 20px !important; }
  .hero-left-tile { background-position: right -80px center !important; }
}

/* Myntra-style density */
.myntra-head { text-align: center; margin-bottom: 32px; }
.myntra-head h2 { font-family: 'Poppins', system-ui, sans-serif; font-size: 20px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #1C1917; margin: 0 0 10px; }
.myntra-head .rule { display: inline-block; width: 56px; height: 2px; background: #E30613; margin-bottom: 10px; }
.myntra-head .sub { font-size: 13px; color: #78716C; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.deal-grid-6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.deal-grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.deal-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.deal-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.deal-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.deal-banner { position: relative; border-radius: 8px; overflow: hidden; min-height: 180px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; color: inherit; transition: transform 0.15s ease; }
.deal-banner:hover { transform: translateY(-4px); }
.deal-banner .tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.deal-banner h4 { font-family: 'Poppins', system-ui, sans-serif; font-size: 22px; font-weight: 600; margin: 4px 0 0; line-height: 1.1; }
.deal-banner .big-pct { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 64px; line-height: 1; letter-spacing: -0.03em; }
.deal-banner .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.deal-banner .cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.deal-grid-v2 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.deal-card-v2 { position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 14px rgba(0,0,0,0.3); }
.deal-card-v2:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,0.5); color: inherit; }
.deal-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; }
.deal-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-img-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.4), rgba(0,0,0,0) 40%); pointer-events: none; }
.deal-body { padding: 16px 16px 18px; color: #FFFFFF; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.deal-brand { font-family: 'Poppins', system-ui, sans-serif; font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.deal-product { font-family: 'Poppins', sans-serif; font-style: italic; font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.2; }
.deal-divider { width: 32px; height: 2px; margin: 2px 0; }
.deal-offer-row { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.deal-offer { font-family: 'Poppins', system-ui, sans-serif; font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.deal-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); line-height: 1.2; }
.deal-cta { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #FFFFFF; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 12px; }
@media (max-width: 1024px) { .deal-grid-v2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 540px) { .deal-grid-v2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .deal-offer { font-size: 22px; } }

.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.insight-card { background: #FFFFFF; border: 1px solid #E8DFCC; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.insight-card:hover { transform: translateY(-6px); box-shadow: 0 14px 28px rgba(28,25,23,0.12); border-color: #E30613; }
.insight-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #F6EEE0; }
.insight-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.insight-card:hover .insight-media img { transform: scale(1.05); }
.insight-chip { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 999px; }
.insight-body { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.insight-meta { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: #78716C; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.insight-dot { width: 3px; height: 3px; background: #78716C; border-radius: 50%; }
.insight-title { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 20px; line-height: 1.2; color: #1C1917; margin: 2px 0 0; letter-spacing: -0.005em; }
.insight-desc { font-size: 14px; color: #57534E; line-height: 1.55; margin: 0; }
.insight-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; background: #E30613; color: #FFFFFF !important; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; text-decoration: none; transition: background 0.15s ease; }
.insight-btn:hover { background: #B30610; color: #FFFFFF !important; }
@media (max-width: 900px) { .insight-grid { grid-template-columns: 1fr; } }

.brand-card-v2 { background: #FFFFFF; border: 1px solid #E8DFCC; border-radius: 14px; padding: 14px 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; box-shadow: 0 1px 3px rgba(28,25,23,0.04); min-height: 160px; }
.brand-card-v2:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(28,25,23,0.12); border-color: #E30613; color: inherit; }
.brand-logo-wrap { width: 100%; aspect-ratio: 1/1; background: #FBF6EC; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.brand-logo-wrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.brand-info { text-align: center; display: flex; flex-direction: column; gap: 2px; }
.brand-name-v2 { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 13px; line-height: 1.1; color: #1C1917; letter-spacing: -0.005em; }
.brand-cat-v2 { font-family: 'Poppins', sans-serif; font-style: italic; font-size: 11px; color: #78716C; line-height: 1.2; }
.brand-skus-v2 { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #B30610; margin-top: 2px; }

.brand-round { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: inherit; transition: transform 0.2s ease; }
.brand-round:hover { transform: translateY(-4px); color: inherit; }
.brand-round-ring { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 128px; height: 128px; border-radius: 50%; border: 1px solid #E8DFCC; transition: border-color 0.2s ease; }
.brand-round:hover .brand-round-ring { border-color: #E30613; }
.brand-round-well { position: relative; width: 116px; height: 116px; border-radius: 50%; background: #FBF6EC; display: flex; align-items: center; justify-content: center; padding: 18px; overflow: hidden; box-shadow: 0 2px 8px rgba(28,25,23,0.06); }
.brand-round-well img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.brand-round-name { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 13px; line-height: 1.1; color: #1C1917; text-align: center; max-width: 128px; margin-top: 4px; }
.brand-round-skus { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #B30610; text-align: center; }
@media (max-width: 1024px) { .brand-grid-round { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
@media (max-width: 720px) { .brand-grid-round { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 420px) { .brand-grid-round { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

.brand-marquee { display: flex; flex-direction: column; gap: 0; }
.brand-mrow { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); padding: 0; }
.brand-track { display: flex; gap: 10px; width: max-content; will-change: transform; }
.brand-mrow-ltr .brand-track { animation: brand-scroll-ltr 60s linear infinite; }
.brand-mrow-rtl .brand-track { animation: brand-scroll-rtl 55s linear infinite; }
.brand-mrow:hover .brand-track { animation-play-state: paused; }
@keyframes brand-scroll-ltr { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes brand-scroll-rtl { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.brand-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0; text-decoration: none; color: inherit; flex-shrink: 0; width: 130px; transition: transform 0.2s ease; }
.brand-tile:hover { transform: translateY(-4px); color: inherit; }
.brand-tile-ring { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 162px; height: 162px; border-radius: 50%; }

.brand-tile-well { position: relative; width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden; }
.brand-tile-well img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.brand-tile-name { font-family: 'Poppins', system-ui, sans-serif; font-weight: 600; font-size: 13px; line-height: 1.1; color: #1C1917; text-align: center; max-width: 128px; margin-top: 4px; }
.brand-tile-skus { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #B30610; text-align: center; }

/* =========================================
   RESPONSIVE + HOVER PASS (ecom polish)
   ========================================= */

/* Universal image hover zoom inside cards */
article img, .insight-media img, .deal-img-wrap img, .cat-tile img {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
article:hover > div > img,
article:hover img[alt]:not([src*="logo"]) {
  transform: scale(1.06);
}

/* Product-card lift */
article[style*="border-radius:16px"],
article[style*="border-radius: 16px"] {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
article[style*="border-radius:16px"]:hover,
article[style*="border-radius: 16px"]:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(28,25,23,0.14);
}

/* "+" add button pulse on hover */
button[aria-label="Add to basket"] {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
button[aria-label="Add to basket"]:hover {
  transform: scale(1.1) rotate(90deg);
  background: #B30610 !important;
  box-shadow: 0 8px 20px rgba(227,6,19,0.55) !important;
}

/* Category round tiles */
a[href^="#c-"] > div:first-child > div:last-child {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
a[href^="#c-"]:hover > div:first-child > div:last-child {
  box-shadow: 0 10px 24px rgba(227,6,19,0.18);
}
a[href^="#c-"]:hover > div:first-child > div:first-child {
  border-color: #E30613 !important;
}

/* Primary CTA pulse */
a.btn-primary, a[style*="background: #E30613"][style*="border-radius: 999px"],
span[style*="background: #1C1917"][style*="border-radius: 999px"] {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
a.btn-primary:hover, 
a[style*="background: #E30613"][style*="border-radius: 999px"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(227,6,19,0.4);
}

/* Nav links hover: simple color change */
nav a[href] { transition: color 0.15s ease; }
nav a[href]:hover { color: #E30613 !important; }

/* ===== Responsive breakpoints ===== */

/* Tablet landscape ≤ 1200px */
@media (max-width: 1200px) {
  .wrap { padding-inline: 20px !important; }
}

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  /* Category grid 8 → 5 cols */
  section > div.wrap > div[style*="grid-template-columns: repeat(8"] {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
  /* Bestsellers 5 → 3 */
  section > div.wrap > div[style*="grid-template-columns: repeat(5"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  /* Weekly deals / New in / Catering 4 → 2 */
  section > div.wrap > div[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  /* Insights 3 to 2 */
  .insight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Trust strip 4 → 2 */
  section > div.wrap[style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  /* Hero stack */
  .hero-grid { grid-template-columns: 1fr !important; }
  /* Open an account section */
  section > div.wrap[style*="grid-template-columns: minmax(0, 1.3fr)"],
  section > div.wrap[style*="grid-template-columns: minmax(0, 1.4fr)"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* 70/30 hero promo rows */
  div[style*="grid-template-columns: minmax(0, 7fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* Catering/account 70/30 */
  div[style*="grid-template-columns: minmax(0, 1.7fr)"] {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile ≤ 720px */
@media (max-width: 720px) {
  .wrap { padding-inline: 16px !important; }
  /* All big grids collapse harder */
  section > div.wrap > div[style*="grid-template-columns: repeat(8"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  section > div.wrap > div[style*="grid-template-columns: repeat(7"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  section > div.wrap > div[style*="grid-template-columns: repeat(6"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  section > div.wrap > div[style*="grid-template-columns: repeat(5"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  section > div.wrap > div[style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  section > div.wrap > div[style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
  .insight-grid { grid-template-columns: 1fr !important; }
  /* Nav hidden extras */
  nav .wrap > a:nth-child(n+5):not([href="#deals"]) { display: none; }
  /* Trust strip 2 → 1 */
  section > div.wrap[style*="grid-template-columns: repeat(4"],
  section > div.wrap[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  /* Section vertical padding reduce */
  section[style*="padding-block: 80px"] { padding-block: 48px !important; }
  section[style*="padding-block: 72px"] { padding-block: 40px !important; }
  section[style*="padding-block: 60px"] { padding-block: 36px !important; }
  /* Big typography scale down */
  h1 { font-size: clamp(24px, 7vw, 32px) !important; }
  h2 { font-size: clamp(22px, 6vw, 28px) !important; }
  h3 { font-size: clamp(18px, 5vw, 24px) !important; }
  /* Headers stack */
  header .wrap > form { order: 3; width: 100%; margin-top: 10px; }
  /* Catering/70-30 image column: switch bg position to center */
  a[href="#catering-landing"] { background-position: center !important; min-height: 320px !important; }
  a[href="#catering-landing"] > div { max-width: 100% !important; padding: 24px !important; }
  /* Account section 2x2 stat panel → 2 col kept */
  /* Hero promo tiles bottom pair stays 2-col */
  /* Newsletter inline wrap */
  section[style*="Newsletter"] .wrap { flex-direction: column !important; }
  form[style*="min-width: 360px"] { min-width: 100% !important; width: 100%; }
}

/* Small mobile ≤ 480px */
@media (max-width: 480px) {
  section > div.wrap > div[style*="grid-template-columns: repeat(8"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  /* Product cards 1 col on tiny screens */
  section > div.wrap > div[style*="repeat(5"],
  section > div.wrap > div[style*="repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  /* Bigger touch targets */
  button, a.btn-primary, a.btn-ghost, a.btn-accent { min-height: 44px; }
  /* Header top strip shrink */
  header > div:first-child { font-size: 11px !important; }
  header > div:first-child .wrap > div:first-child > span:not(:first-child) { display: none; }
  /* Mobile menu — hide extra nav items except Shop all + Offers */
  nav .wrap > a:not([href="#all"]):not([href="#deals"]) { display: none; }
}

/* Footer link hover and keyboard focus */
footer a[href] { transition: color 0.15s ease; }
footer a[href]:is(:hover, :focus-visible) { color: #D4A017 !important; }

/* Any plain button hover: red tint */
button:not([aria-label="Add to basket"]):not([type="submit"]):not(.btn-add):not(.btn-buy) { transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
button:not([aria-label="Add to basket"]):not([type="submit"]):not(.btn-add):not(.btn-buy):hover { color: #E30613 !important; }

/* Submit buttons: slightly darker red on hover */
button[type="submit"] { transition: background 0.15s ease; }
button[type="submit"]:hover { background: #B30610 !important; }

/* OFFERS button looping pulse */
.offers-pulse { animation: offers-pulse 2.2s ease-in-out infinite; transform-origin: center; }
.offers-pulse:hover { animation-play-state: paused; }
@keyframes offers-pulse {
  0%, 100%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(212,160,23,0.55); }
  40%        { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(212,160,23,0); }
  60%        { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(212,160,23,0); }
}

/* ===== Catering auto-slider ===== */
.catering-slider { position: relative; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; }
.catering-slider.dragging { cursor: grabbing; }
.catering-track { display: flex; gap: 16px; will-change: transform; transition: transform 0.6s cubic-bezier(0.22,0.9,0.3,1); }
.catering-slider.no-anim .catering-track { transition: none; }
.slider-card { flex: 0 0 calc(25% - 12px); background: #F5F5F4; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #E7E5E4; transition: all 0.25s ease; }
.slider-card:hover { border-color: #D4A017; box-shadow: 0 12px 24px rgba(212,160,23,0.15); transform: translateY(-3px); background: #FAFAF9; }
.slider-card-img { aspect-ratio: 1/1; background: #FFFFFF; border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 14px; margin-bottom: 12px; position: relative; }
.slider-card-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform 0.3s ease; pointer-events: none; }
.slider-card:hover .slider-card-img img { transform: scale(1.06); }
.slider-moq { position: absolute; bottom: 10px; left: 10px; z-index: 3; background: rgba(28,25,23,0.92); color: #FFF; font-size: 10px; padding: 4px 9px; border-radius: 4px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; pointer-events: none; backdrop-filter: blur(4px); }
.slider-card-img img { position: relative; z-index: 1; }
.slider-card-brand { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.slider-card-name { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500; color: #1C1917; line-height: 1.3; min-height: 36px; margin-bottom: 6px; }
.slider-stars { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.slider-stars .stars-icons { color: #D4A017; font-size: 12px; letter-spacing: 1px; line-height: 1; }
.slider-stars .stars-score { color: #1C1917; font-weight: 600; font-size: 11px; }
.slider-stars .stars-count { color: #78716C; font-size: 11px; }
.slider-card-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.slider-card-price { font-family: 'Poppins', system-ui, sans-serif; font-size: 22px; font-weight: 600; color: #1C1917; line-height: 1; }
.slider-card-per { font-size: 10px; color: #78716C; }
.slider-actions { display: flex; gap: 8px; margin-top: auto; }
.btn-add, .btn-buy { flex: 1; padding: 10px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; font-family: inherit; transition: all 0.2s ease; }
.btn-add { background: #D4A017; color: #1C1917; }
.btn-add:is(:hover, :focus-visible) { background: #BD8B0D; color: #1C1917; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(212,160,23,0.25); }
.btn-buy { background: #E30613; color: #FFF; }
.btn-buy:is(:hover, :focus-visible) { background: #B30610; color: #FFF; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(227,6,19,0.3); }
.slider-nav-btn { width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; border: 1px solid #E8DFCC; color: #1C1917; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s ease; }
.slider-nav-btn:hover { background: #E30613; color: #FFFFFF; border-color: #E30613; }
@media (max-width: 1024px) { .slider-card { flex-basis: calc(33.333% - 11px); } }
@media (max-width: 720px) { .slider-card { flex-basis: calc(50% - 8px); } }
@media (max-width: 480px) { .slider-card { flex-basis: calc(75%); } }

/* =========================================
   SITEWIDE SMOOTH ANIMATION PACK
   ========================================= */

/* Smooth scroll globally */
html { scroll-behavior: smooth; }

/* Section entrance - fade + slide up */
.animate-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 0.9, 0.3, 1), transform 0.8s cubic-bezier(0.22, 0.9, 0.3, 1); }
.animate-on-scroll.in-view { opacity: 1; transform: translateY(0); }

/* Staggered children */
.stagger-children > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s cubic-bezier(0.22, 0.9, 0.3, 1), transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1); }
.stagger-children.in-view > * { opacity: 1; transform: translateY(0); }
.stagger-children.in-view > *:nth-child(1)  { transition-delay: 0.00s; }
.stagger-children.in-view > *:nth-child(2)  { transition-delay: 0.05s; }
.stagger-children.in-view > *:nth-child(3)  { transition-delay: 0.10s; }
.stagger-children.in-view > *:nth-child(4)  { transition-delay: 0.15s; }
.stagger-children.in-view > *:nth-child(5)  { transition-delay: 0.20s; }
.stagger-children.in-view > *:nth-child(6)  { transition-delay: 0.25s; }
.stagger-children.in-view > *:nth-child(7)  { transition-delay: 0.30s; }
.stagger-children.in-view > *:nth-child(8)  { transition-delay: 0.35s; }
.stagger-children.in-view > *:nth-child(n+9) { transition-delay: 0.40s; }

/* Image fade-in on load */
img { transition: opacity 0.4s ease; }
img:not([src]), img[src=""], img.loading { opacity: 0; }

/* Smoother universal transitions */
a, button { transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.25s ease, opacity 0.25s ease; }

/* Softer article/card hover */
article { transition: transform 0.35s cubic-bezier(0.22, 0.9, 0.3, 1), box-shadow 0.35s cubic-bezier(0.22, 0.9, 0.3, 1), border-color 0.25s ease !important; }

/* Smoother image zoom */
article img, .insight-media img, .deal-img-wrap img, .slider-card-img img, .cat-tile img {
  transition: transform 0.6s cubic-bezier(0.22, 0.9, 0.3, 1) !important;
}

/* Chip badge subtle float */
.chip, span.chip, [class*="chip"] { transition: transform 0.25s ease; }

/* Logo subtle pop */
header img[alt*="Goldfayre"] { transition: transform 0.3s cubic-bezier(0.3, 1.3, 0.4, 1); }
header img[alt*="Goldfayre"]:hover { transform: scale(1.03); }

/* Focus ring (keyboard-friendly) */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #E30613; outline-offset: 2px; border-radius: 4px; }

/* Smooth reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll, .stagger-children > * { opacity: 1 !important; transform: none !important; }
}

/* Slider arrows: ensure hover state wins over generic button hover */
.slider-nav-btn:hover { background: #E30613 !important; color: #FFFFFF !important; border-color: #E30613 !important; }
.slider-nav-btn:hover svg { stroke: #FFFFFF !important; }
.slider-nav-btn:active { transform: scale(0.94); }

.slider-card-img { position: relative; }

/* ===== MOBILE HARD FIXES ===== */
@media (max-width: 720px) {
  /* Header main row: stack logo, search, cart */
  header > div:nth-child(2) .wrap { flex-wrap: wrap !important; gap: 12px !important; padding-block: 12px !important; }
  header > div:nth-child(2) .wrap > a:first-child { flex: 0 0 auto !important; }
  header > div:nth-child(2) .wrap > a:first-child img { height: 44px !important; width: auto !important; }
  header > div:nth-child(2) .wrap > form {
    order: 10 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 44px !important;
    min-width: 0 !important;
  }
  header > div:nth-child(2) .wrap > form select { display: none !important; }
  header > div:nth-child(2) .wrap > form button[type="submit"] { padding: 0 18px !important; min-width: 56px !important; }
  header > div:nth-child(2) .wrap > div:last-child { margin-left: auto !important; }
  /* Top strip wraps and shrinks */
  header > div:first-child { font-size: 11px !important; }
  header > div:first-child .wrap { gap: 10px !important; flex-wrap: wrap !important; padding-block: 8px !important; }
  header > div:first-child .wrap > div { gap: 10px !important; flex-wrap: wrap !important; }
  /* Phone number wrap-safe */
  header a[href^="tel:"] { white-space: nowrap !important; }
  /* Nav collapses to horizontal scroll */
  nav .wrap { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  nav .wrap::-webkit-scrollbar { display: none; }
  nav .wrap > a { flex-shrink: 0; font-size: 12px !important; padding: 12px 10px !important; }
  nav .wrap > a[href="#deals"] { margin-left: 8px !important; }
}
@media (max-width: 480px) {
  header > div:nth-child(2) .wrap > a:first-child img { height: 38px !important; }
  header > div:first-child .wrap > div:last-child a[href^="#register"] { font-size: 10px !important; }
}

/* Prevent horizontal page overflow at any width */
html, body { overflow-x: clip; max-width: 100%; }
img, svg { max-width: 100%; height: auto; }
/* Force wraps to fit viewport */
.wrap { max-width: 100% !important; }
/* Catering/newin slider contains its own overflow */
.catering-slider { max-width: 100%; }
/* Any fixed-width inline media stays bounded */
section, header, footer, main { max-width: 100vw; overflow-x: clip; }

/* Footer and product action interactions */
footer a { transition: color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
footer li a { display: inline-block; }
footer li a:is(:hover, :focus-visible) { transform: translateX(4px); }
footer a.footer-social:is(:hover, :focus-visible) { background: var(--social-hover) !important; color: #FFF !important; transform: translateY(-3px); box-shadow: 0 5px 12px rgba(0,0,0,0.25); }
footer a:focus-visible, .btn-add:focus-visible, .btn-buy:focus-visible { outline: 2px solid #D4A017; outline-offset: 4px; }
.btn-add, .btn-buy { transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.btn-add:active, .btn-buy:active { transform: translateY(0); box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  footer a, .btn-add, .btn-buy { transition: none; }
  footer li a:is(:hover, :focus-visible), footer a.footer-social:is(:hover, :focus-visible), .btn-add:is(:hover, :focus-visible), .btn-buy:is(:hover, :focus-visible) { transform: none; }
}


/* Responsive layout: phones, tablets, laptops and wide displays. */
.wrap { width: 100%; max-width: 1320px !important; margin-inline: auto; }
:where(header, nav, section, footer) :where(div, article, form) { min-width: 0; }
input, select, textarea { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
section, footer { overflow-wrap: break-word; }
.slider-card { min-width: 0; }
.slider-actions { flex-wrap: wrap; gap: 8px; }
.slider-actions button { min-width: 0; min-height: 44px; line-height: 1.35; padding: 10px 8px; }
.slider-card-foot, .slider-stars { flex-wrap: wrap; }
footer address a { overflow-wrap: anywhere; }
footer > .wrap > div:last-child > div:last-child { flex-wrap: wrap; }
.responsive-newsletter { min-width: 0 !important; width: min(100%, 480px); }
.responsive-newsletter input { width: 0; }
@media (max-width: 1200px) {
 header > div:nth-child(2) .wrap { gap: 20px !important; }
 header > div:nth-child(2) .wrap > a:first-child img { max-width: 190px; height: auto !important; }
 .gf-wh-split > div { padding: 48px 32px !important; }
 .responsive-footer-grid { gap: 28px !important; }
 .responsive-split { gap: 28px !important; }
}
@media (max-width: 1024px) {
 .gf-wh-split { grid-template-columns: minmax(0, 1fr) !important; min-height: 0 !important; }
 .responsive-split { grid-template-columns: minmax(0, 1fr) !important; }
 .responsive-promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
 .responsive-promo-grid > :first-child { grid-column: 1 / -1; }
 footer .responsive-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 32px !important; }
 .responsive-footer-grid > :first-child { grid-column: 1 / -1; }
 .hero-left { max-width: 65% !important; }
 header > div:nth-child(2) .wrap > div:last-child { display: flex !important; gap: 14px !important; }
 header > div:nth-child(2) .wrap > div:last-child > a:first-child > span { display: none; }
 nav .wrap { flex-wrap: nowrap !important; overflow-x: auto; }
 nav .wrap > a { display: inline-flex !important; white-space: nowrap; flex-shrink: 0; }
 .responsive-split > div[style*="text-align: right"] { text-align: left !important; }
}
@media (max-width: 720px) {
 .wrap { padding-inline: 16px !important; }
 header { position: relative !important; }
 header > div:nth-child(2) .wrap > a:first-child img { max-width: 150px; height: auto !important; }
 header > div:nth-child(2) .wrap > div:last-child { display: flex !important; margin-left: auto; }
 header > div:nth-child(2) .wrap > div:last-child > a:last-child > div:last-child { display: none; }
 header > div:nth-child(2) .wrap > form { flex: 0 0 100% !important; }
 header input, #wholesale-band input, #wholesale-band select, .responsive-newsletter input { font-size: 16px !important; }
 header > div:first-child .wrap { justify-content: flex-start !important; }
 nav .wrap > a { display: inline-flex !important; }
 .hero-left { max-width: 100% !important; }
 .hero-left-tile > div[style*="linear-gradient"] { background: linear-gradient(90deg, rgba(250,243,230,.98), rgba(250,243,230,.87) 65%, rgba(250,243,230,.55)) !important; }
 .gf-wh-split > div { padding: 36px 20px !important; }
 #wholesale-band h2 { font-size: clamp(28px, 7vw, 40px) !important; }
 #wholesale-band form { width: 100%; }
 #wholesale-band form > .responsive-pair { grid-template-columns: minmax(0, 1fr) !important; }
 .responsive-newsletter { max-width: 100% !important; width: 100%; min-width: 0 !important; }
 .responsive-newsletter button { padding-inline: 14px !important; letter-spacing: 0 !important; }
 .responsive-newsletter input { padding-inline: 12px !important; }
 .responsive-seo { padding: 32px 0 !important; }
 footer { padding-block: 40px 24px !important; }
 footer .responsive-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 20px !important; padding-bottom: 28px !important; }
 footer > .wrap > div:last-child { align-items: flex-start !important; flex-direction: column; gap: 16px !important; }
 footer > .wrap > div:last-child > div:last-child { gap: 12px 20px !important; }
 .responsive-faq-summary { padding: 20px 16px !important; grid-template-columns: 28px minmax(0, 1fr) auto !important; gap: 12px !important; }
 .responsive-faq-summary + div { padding: 0 16px 20px 56px !important; }
 section > .wrap > div[style*="justify-content: space-between"] { flex-wrap: wrap; gap: 16px !important; }
 .deal-grid-6, .deal-grid-5, .deal-grid-4, .deal-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
 .wrap { padding-inline: 12px !important; }
 .responsive-promo-grid { grid-template-columns: minmax(0, 1fr) !important; }
 .hero-grid > div.responsive-pair { grid-template-columns: minmax(0, 1fr) !important; }
 .slider-card { flex-basis: 86% !important; }
 .slider-actions { flex-wrap: nowrap; }
 .slider-actions button { font-size: 11px; letter-spacing: 0; }
 .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
 .responsive-faq-summary + div { padding-left: 16px !important; }
 .responsive-newsletter button svg { display: none; }
}
@media (max-width: 359px) {
 footer .responsive-footer-grid { grid-template-columns: minmax(0, 1fr) !important; }
 .responsive-newsletter { border-radius: 12px !important; flex-wrap: wrap; gap: 8px; padding: 8px !important; }
 .responsive-newsletter input { width: 100%; flex-basis: 100%; min-height: 44px; }
 .responsive-newsletter button { width: 100%; justify-content: center; min-height: 44px; }
}
@media (hover: none) {
 .btn-add:hover, .btn-buy:hover, footer a.footer-social:hover, footer li a:hover { transform: none; }
}



/* -- body-embedded style blocks -- */

@media (max-width: 960px) {
  #wholesale-band .gf-wh-split { grid-template-columns: 1fr !important; }
  #wholesale-band .gf-wh-split > div { padding: 56px 32px !important; }
  #wholesale-band h2 { font-size: 36px !important; }
}



#wholesale-band .faq-item summary::-webkit-details-marker { display: none; }
section .faq-item[open] .faq-caret { transform: rotate(180deg); background: #E30613; color: #FFFFFF; }
section .faq-item summary:hover { background: #FDFBF7; }
@media (max-width: 720px) {
  section .faq-item summary { padding: 20px 20px !important; grid-template-columns: 36px 1fr auto !important; gap: 14px !important; }
  section .faq-item > div { padding: 0 20px 20px 70px !important; }
}



@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr !important; gap: 36px !important; }
}
@media (max-width: 540px) {
  .footer-top { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* Wholesale enquiries nav button */
.gf-nav-wholesale:hover { background: #B30610 !important; }
@media (max-width: 1100px) {
  .gf-nav-wholesale span, .gf-nav-wholesale { font-size: 12px !important; padding: 9px 14px !important; }
}
@media (max-width: 760px) {
  .gf-nav-wholesale { margin-left: 0 !important; width: 100%; justify-content: center; }
}
