/* =============================================================================
   Silly Shibas — v2 Modernization Layer
   Loads AFTER silly_shibas.css. Overrides tokens + key components, adds:
   ticker, merch grid, footer socials, scroll-reveal, focus states.
   No build step. No frameworks.
   ============================================================================= */

/* ── TOKEN REFRESH ────────────────────────────────────────────────────────── */
:root {
  /* Brand v2 — punchier orange, deeper espresso ink */
  --shiba-red:    #E8853D;
  --shiba-red-dk: #C9692A;
  --shiba-cream:  #FFF8EE;
  --shiba-dark:   #2E211A;
  --blush:        #F6D7B8;
  --grass:        #6FA84B;
  --grass-dark:   #4C7A25;
  --grass-light:  #9BCF6E;

  --bg:           #FFF8EE;
  --bg-alt:       #FFFFFF;
  --bg-nav:       rgba(255, 252, 246, 0.82);
  --bg-topbar:    #2E211A;
  --bg-section:   #FBEEDC;
  --bg-card:      #FFFFFF;
  --bg-footer:    #2E211A;
  --bg-input:     #FFFFFF;

  --text:         #2E211A;
  --text-muted:   #8A7464;
  --text-nav:     #2E211A;
  --text-footer:  #D8C9BC;

  --border:       #EBDCC8;
  --border-nav:   transparent;
  --border-footer:#E8853D;

  --hero-dot:     #F3DFC4;

  --shadow-sm:    0 1px 2px rgba(46,33,26,0.06), 0 2px 8px rgba(46,33,26,0.06);
  --shadow-md:    0 2px 4px rgba(46,33,26,0.06), 0 8px 24px rgba(46,33,26,0.10);
  --shadow-lg:    0 4px 8px rgba(46,33,26,0.06), 0 18px 48px rgba(46,33,26,0.14);

  --pill-bg:      rgba(255,255,255,0.12);
  --pill-active:  #E8853D;
  --pill-active-text: #FFFFFF;

  --radius-sm:    0.75rem;
  --radius-lg:    1.5rem;
  --radius-xl:    2rem;
}

/* Warm dark mode — espresso, not slate */
html.dark {
  --bg:           #171210;
  --bg-alt:       #1E1713;
  --bg-nav:       rgba(23, 18, 16, 0.82);
  --bg-topbar:    #100C0A;
  --bg-section:   #1E1713;
  --bg-card:      #261D17;
  --bg-footer:    #100C0A;
  --bg-input:     #2E231C;

  --text:         #F3E9DD;
  --text-muted:   #A99483;
  --text-nav:     #F3E9DD;
  --text-footer:  #C9B6A6;

  --border:       #3A2D23;
  --border-nav:   transparent;
  --border-footer:#E8853D;

  --hero-dot:     #241B15;

  --shadow-sm:    0 1px 2px rgba(0,0,0,0.3), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:    0 2px 4px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 4px 8px rgba(0,0,0,0.3), 0 18px 48px rgba(0,0,0,0.5);

  --pill-bg:      rgba(255,255,255,0.08);
}

/* ── BASE POLISH ──────────────────────────────────────────────────────────── */
::selection { background: var(--shiba-red); color: #fff; }

:focus-visible {
  outline: 3px solid var(--shiba-red);
  outline-offset: 3px;
  border-radius: 4px;
}

html { scroll-behavior: smooth; }
@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;
  }
}

/* ── TOP BAR ──────────────────────────────────────────────────────────────── */
.ss-topbar {
  background-color: var(--bg-topbar);
  border-bottom: none;
  padding: 0.4rem 0;
}
.ss-topbar a { color: #E9DCCB; font-size: 0.85rem; }
.ss-topbar a:hover { color: #fff; }

/* ── NAV — frosted glass, pill links ──────────────────────────────────────── */
.ss-nav {
  background-color: var(--bg-nav);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.ss-nav.is-scrolled { box-shadow: var(--shadow-md); }

.ss-logo-icon {
  background: transparent;
  padding: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ss-logo:hover .ss-logo-icon { transform: rotate(-8deg) scale(1.06); }
.ss-logo-img { width: 2.6rem; height: 2.6rem; object-fit: contain; }
@media (min-width: 768px) { .ss-logo-img { width: 3.2rem; height: 3.2rem; } }

.ss-primary-menu nav > ul,
.region-primary-menu nav > ul { gap: 0.4rem; }
.ss-primary-menu nav > ul > li > a,
.region-primary-menu nav > ul > li > a {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}
.ss-primary-menu nav > ul > li > a:hover,
.region-primary-menu nav > ul > li > a:hover {
  background: var(--blush);
  color: var(--shiba-dark);
}
html.dark .ss-primary-menu nav > ul > li > a:hover { background: #3A2D23; color: #fff; }
.ss-primary-menu nav > ul > li > a.is-active,
.region-primary-menu nav > ul > li > a.is-active {
  background: var(--shiba-red);
  color: #fff;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.ss-hero {
  background-image:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(232,133,61,0.12), transparent 60%),
    radial-gradient(var(--hero-dot) 1.5px, transparent 1.5px);
  background-size: auto, 26px 26px;
  padding: 4rem 0 5rem;
  position: relative;
}
.ss-hero-badge {
  background: var(--grass);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.4rem 1.2rem;
  transform: rotate(-1.5deg);
}
html.dark .ss-hero-badge { background: var(--grass); color: #fff; }

.ss-hero-title {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
}
.ss-hero-title .accent {
  background: linear-gradient(120deg, var(--shiba-red), #F5A356);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ss-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  line-height: 1.6;
}
@media (min-width: 768px) { .ss-hero-sub { margin: 0 0 1.75rem; } }

.ss-hero-cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
@media (min-width: 768px) { .ss-hero-cta-row { justify-content: flex-start; } }

.ss-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ss-btn--primary {
  background: var(--shiba-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,133,61,0.4);
}
.ss-btn--primary:hover {
  background: var(--shiba-red-dk);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(232,133,61,0.45);
}
.ss-btn--ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.ss-btn--ghost:hover {
  border-color: var(--shiba-red);
  color: var(--shiba-red);
  transform: translateY(-2px);
}

/* Hero media — tilted photo stack */
.ss-hero-media .slick-slider,
.ss-hero-media > div > div,
.ss-hero-media img {
  border-radius: var(--radius-xl);
}
.ss-hero-media {
  position: relative;
}
.ss-hero-media::before {
  content: "";
  position: absolute;
  inset: 6% -3% -4% 5%;
  background: var(--blush);
  border-radius: var(--radius-xl);
  transform: rotate(3deg);
  z-index: 0;
}
html.dark .ss-hero-media::before { background: #2E231C; }
.ss-hero-media > * { position: relative; z-index: 1; }
.ss-hero-media img {
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--bg-alt);
}

/* ── KNOWN-WORDS TICKER (signature) ──────────────────────────────────────── */
.ss-ticker {
  overflow: hidden;
  background: var(--shiba-dark);
  padding: 0.65rem 0;
  border-top: 3px solid var(--shiba-red);
  border-bottom: 3px solid var(--shiba-red);
}
html.dark .ss-ticker { background: #100C0A; }
.ss-ticker-track {
  display: flex;
  width: max-content;
  animation: ss-marquee 30s linear infinite;
}
.ss-ticker:hover .ss-ticker-track { animation-play-state: paused; }
.ss-ticker-item {
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--shiba-cream);
  white-space: nowrap;
  padding: 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}
.ss-ticker-item::after { content: "🐾"; font-size: 0.8rem; }
@keyframes ss-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ss-ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ── SECTION TITLES ───────────────────────────────────────────────────────── */
.ss-section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 1rem;
}
.ss-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--shiba-red), var(--grass));
}
.ss-section-kicker {
  display: block;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--shiba-red);
  margin-bottom: 0.5rem;
}

/* ── CARD SYSTEM (shiba profiles + general) ──────────────────────────────── */
.sfm-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sfm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sfm-badge { border-radius: 999px; font-weight: 700; }
.sfm-tag {
  border-radius: 999px;
  background: var(--blush);
  color: var(--shiba-dark);
  font-weight: 700;
}
html.dark .sfm-tag { background: #3A2D23; color: var(--text); }
.sfm-tag--word { background: rgba(111,168,75,0.18); color: var(--grass-dark); }
html.dark .sfm-tag--word { color: var(--grass-light); }
.sfm-gallery-item img { border-radius: 0.9rem; transition: transform 0.25s ease; }
.sfm-gallery-item:hover img { transform: scale(1.04); }

/* ── SOCIAL SECTION ──────────────────────────────────────────────────────── */
.ss-social-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  border-bottom-width: 6px;
  position: relative;
  overflow: hidden;
}
.ss-social-card:hover { transform: translateY(-6px) rotate(-0.5deg); }
.ss-social-card .ss-card-icon { width: 3.4rem; height: 3.4rem; }
.ss-social-handle {
  font-size: 0.9rem;
}
.ss-social-card.yt { border-bottom-color: #EF4444; }
.ss-social-card.tt { border-bottom-color: #22D3EE; border-color: #2E231C; }
.ss-social-card.ig { border-bottom-color: #cc2366; }

/* ── MERCH ───────────────────────────────────────────────────────────────── */
.ss-merch-strip {
  background: var(--shiba-dark);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.ss-merch-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(232,133,61,0.25) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}
.ss-merch-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}
.ss-merch-strip h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--shiba-cream);
  margin: 0;
}
.ss-merch-strip h2 .accent { color: var(--shiba-red); }
.ss-merch-strip p { color: #C9B6A6; margin: 0; max-width: 36rem; }

/* Merch grid — applies to a Views grid or a plain div grid */
.ss-merch-grid,
.view-merch .view-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 640px)  { .ss-merch-grid, .view-merch .view-content { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ss-merch-grid, .view-merch .view-content { grid-template-columns: repeat(3, 1fr); } }

.merch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.merch-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.merch-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-section);
}
.merch-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.merch-card:hover .merch-card-img img { transform: scale(1.05); }
.merch-card-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.merch-card-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.merch-card-desc { color: var(--text-muted); font-size: 0.95rem; margin: 0; flex: 1; }
.merch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}
.merch-card-price {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--shiba-red);
}
.merch-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--grass);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  z-index: 2;
}
.merch-card { position: relative; }
.merch-card a.ss-btn { font-size: 0.95rem; padding: 0.55rem 1.3rem; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.ss-footer {
  border-top: none;
  position: relative;
  padding: 4rem 0 2.5rem;
}
.ss-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--shiba-red), var(--grass), var(--shiba-red));
}
.ss-footer-logo-img { width: 3rem; height: 3rem; }
.ss-footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.ss-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}
.ss-footer-socials a:hover { background: var(--shiba-red); transform: translateY(-3px); }
.ss-footer-socials svg { width: 1.3rem; height: 1.3rem; fill: #fff; }

/* ── SCROLL REVEAL ───────────────────────────────────────────────────────── */
.ss-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.ss-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ss-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── FORM POLISH ─────────────────────────────────────────────────────────── */
.form-item input[type="text"],
.form-item input[type="email"],
.form-item input[type="password"],
.form-item textarea {
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  padding: 0.85rem 1rem;
}
.form-item input:focus, .form-item textarea:focus {
  outline: none;
  border-color: var(--shiba-red);
  box-shadow: 0 0 0 4px rgba(232,133,61,0.18);
}
.button, input[type="submit"] {
  border-radius: 999px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 500;
  background: var(--shiba-red);
  box-shadow: 0 4px 14px rgba(232,133,61,0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}
.button:hover, input[type="submit"]:hover {
  background: var(--shiba-red-dk);
  transform: translateY(-1px);
}

/* TikTok card: espresso instead of the old slate blue */
.ss-social-card.tt { background: #2E211A; }
html.dark .ss-social-card.tt { background: #211913; }

/* =============================================================================
   Green accent pass — balance the orange-heavy palette with the brand's
   second color. All additive; no existing rule is removed.
   ============================================================================= */

/* Hero "Shop Merch" ghost button → green outline (sage CTA, ties to merch) */
.ss-hero-cta-row .ss-btn--ghost:hover {
  border-color: var(--grass);
  color: var(--grass-dark);
}
html.dark .ss-hero-cta-row .ss-btn--ghost:hover { color: var(--grass-light); }

/* Nav link hover/active: keep orange active, but give hover a green tint
   so the two brand colors share the navigation */
.ss-primary-menu nav > ul > li > a:hover,
.region-primary-menu nav > ul > li > a:hover {
  background: rgba(111, 168, 75, 0.16);
  color: var(--grass-dark);
}
html.dark .ss-primary-menu nav > ul > li > a:hover,
html.dark .region-primary-menu nav > ul > li > a:hover {
  background: rgba(155, 207, 110, 0.18);
  color: var(--grass-light);
}

/* Section kicker (the small uppercase label above titles) → green.
   Pairs with the orange/green underline beneath the title. */
.ss-section-kicker { color: var(--grass-dark); }
html.dark .ss-section-kicker { color: var(--grass-light); }

/* TikTok social card accent → green instead of the cyan that sat oddly
   against the warm palette */
.ss-social-card.tt { border-bottom-color: var(--grass); }

/* Merch "New / Best Seller" badge already green — give the price a subtle
   green hover so cards aren't pure orange on interaction */
.merch-card:hover .merch-card-price { color: var(--grass-dark); }
html.dark .merch-card:hover .merch-card-price { color: var(--grass-light); }


/* ===== Silly Shibas — product image gallery ===== */

/* Center and cap the gallery width */
.splide-wrapper.is-wrapper-nav {
    max-width: 600px;
    margin: 0 auto;
}

/* Main stage: letterbox the image so NOTHING gets cropped */
.splide--main .splide__slide .media {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    background: #f7f3ee;
    border-radius: 8px;
    overflow: hidden;
}

.splide--main .splide__slide .media__element {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 460px !important;
    object-fit: contain !important;
    display: block;
}

/* Thumbnail strip: tidy squares, highlight the active one */
.splide--nav {
    max-width: 100%;
    margin: 0 auto 10px;
}

    .splide--nav .slide__thumbnail img {
        border: 1px solid #e7e1d8;
        border-radius: 6px;
        object-fit: cover;
    }

    .splide--nav .splide__slide.is-active .slide__thumbnail img {
        border-color: #E8833A; /* site orange for the selected thumb */
    }
/* ===== Silly Shibas — product page ===== */
article:has(> .splide-wrapper.is-wrapper-nav) {
    display: grid;
    grid-template-columns: minmax(0,1.7fr) minmax(0,0.9fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 2.5rem;
    row-gap: 1rem;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

.splide-wrapper.is-wrapper-nav {
    grid-column: 1;
    grid-row: 2;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

.splide-wrapper.is-wrapper-nav--left {
    display: flex;
    gap: 12px;
    align-items: center;
}

    .splide-wrapper.is-wrapper-nav--left .splide--nav {
        flex: 0 0 72px;
        order: 0;
    }

    .splide-wrapper.is-wrapper-nav--left .splide--main {
        flex: 1 1 auto;
        min-width: 0;
        order: 1;
    }

.product--variation-field--variation_title__1 {
    grid-column: 1 / -1;
    grid-row: 1;
    font-family: 'Fredoka',sans-serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}

    .product--variation-field--variation_title__1 > div:first-child {
        display: none;
    }

article:has(> .splide-wrapper.is-wrapper-nav) > [data-contextual-id] {
    display: none;
}

article:has(> .splide-wrapper.is-wrapper-nav) > div:not([class]) {
    grid-column: 1;
    grid-row: 3;
    line-height: 1.65;
}

.buy-box {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: start;
    border: 1px solid #e7e1d8;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    background: #fff;
}

.buy-box__stock {
    color: #2f7d3b;
    font-weight: 700;
    margin-bottom: .5rem;
}

.buy-box .product--variation-field--variation_price__1 {
    border: none;
    background: none;
    padding: 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: #E8833A;
}

    .buy-box .product--variation-field--variation_price__1 > div:first-child {
        display: none;
    }

    .buy-box .product--variation-field--variation_price__1::after {
        content: "✓ Free shipping\A ✓ Ships from the USA\A ✓ Arrives in ~5–8 business days";
        white-space: pre-line;
        display: block;
        margin: .5rem 0 1rem;
        font-size: .8rem;
        font-weight: 500;
        color: #2f7d3b;
        line-height: 1.5;
    }

.buy-box input[type="number"] {
    width: 5rem;
    padding: .5rem .6rem;
    font-size: 1rem;
    border: 1px solid #d9d2c7;
    border-radius: 8px;
    background: #fff;
}

.buy-box form input[type="submit"], .buy-box form button {
    width: 100%;
    font-size: 1.05rem;
    padding: .8rem 1rem;
}

.splide--main .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.splide--main .splide__track {
    overflow: hidden;
}

.splide--main .splide__slide .media {
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    background: #f7f3ee;
    border-radius: 8px;
    overflow: hidden;
}

.splide--main .splide__slide .media__element {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    max-height: 460px !important;
    object-fit: contain !important;
    display: block;
}

.splide--main .splide__arrows, .splide--nav .splide__arrows {
    display: none;
}

@media (max-width: 900px) {
    article:has(> .splide-wrapper.is-wrapper-nav) {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

        article:has(> .splide-wrapper.is-wrapper-nav) > * {
            grid-column: auto !important;
            grid-row: auto !important;
            width: 100%;
        }

    .product--variation-field--variation_title__1 {
        order: 1;
        font-size: 1.5rem;
    }

    .splide-wrapper.is-wrapper-nav {
        order: 2;
    }

    .buy-box {
        order: 3;
        position: static;
    }

    article:has(> .splide-wrapper.is-wrapper-nav) > div:not([class]) {
        order: 4;
    }
}
/* Zoom hint on the main image */
.splide--main {
    position: relative;
}

    .splide--main::after {
        content: "🔍 Click to zoom";
        position: absolute;
        bottom: 8px;
        right: 8px;
        background: rgba(0,0,0,.55);
        color: #fff;
        font-size: .72rem;
        padding: .2rem .5rem;
        border-radius: 6px;
        pointer-events: none;
        z-index: 5;
    }
/* Feature badges at the bottom of the buy box */
.buy-box::after {
    content: "☔ Weatherproof\A 🧲 Strong magnetic backing\A ↩️ Easy on & off";
    white-space: pre-line;
    display: block;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: .82rem;
    color: #555;
    line-height: 1.7;
}
/* Sticky buy box — stays visible while scrolling the description */
.buy-box {
    position: sticky;
    top: 1rem;
}
/* Let the vertical thumbnail column hug its thumbnails so it centers properly */
.splide--nav .splide__track {
    height: auto !important;
}
/* Keep buy-box text readable on its white card in dark mode */
.buy-box, .buy-box label {
    color: #222;
}
/* ===== Merch product grid (view CSS class: merch-grid) ===== */
.merch-grid .view--blazy,
.merch-grid.view--blazy {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 1.5rem auto;
}

.merch-grid [data-contextual-id] {
    display: none;
}
/* hide the edit-pencil cell when logged in */
.merch-grid .views-row {
    background: #fff;
    border: 1px solid #ece6dd;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .merch-grid .views-row:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0,0,0,.10);
    }

.merch-grid .views-field-field-image,
.merch-grid .views-field-field-variation-image {
    background: #f7f3ee;
}

    .merch-grid .views-field-field-image,
.merch-grid .views-field-field-variation-image img {
        display: block;
        width: 100%;
        height: 170px;
        object-fit: contain;
        padding: 12px;
    }

.merch-grid .views-field-title {
    padding: .75rem 1rem .1rem;
    font-family: 'Fredoka',sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.25;
}

    .merch-grid .views-field-title a {
        color: #2a2a2a;
        text-decoration: none;
    }

        .merch-grid .views-field-title a:hover {
            color: #E8833A;
        }

.merch-grid .views-field-price__number {
    padding: .1rem 1rem 1rem;
    color: #E8833A;
    font-weight: 700;
    font-size: 1.05rem;
}
.merch-hero {
    grid-column: 1 / -1;
    text-align: center;
    margin: .5rem 0 1.25rem;
}

.merch-grid :has(> .merch-hero) {
    grid-column: 1 / -1;
}

    .merch-hero h1 {
        font-family: 'Fredoka',sans-serif;
        font-size: 2.2rem;
        font-weight: 600;
        margin: 0 0 .25rem;
    }

    .merch-hero p {
        color: #8a7f70;
        font-size: 1.05rem;
        margin: 0;
    }

/* Optional: a free-shipping nudge on each card */
.merch-grid .views-field-price__number::after {
    content: "Free shipping";
    display: block;
    font-size: .72rem;
    font-weight: 500;
    color: #2f7d3b;
    margin-top: 2px;
}
/* Make the whole merch card clickable via the title link */
.merch-grid .views-row {
    position: relative;
    cursor: pointer;
}

.merch-grid .views-field-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Match the Background select to the quantity box */
.buy-box select {
    width: 100%;
    max-width: 12rem;
    padding: .5rem .6rem;
    font-size: 1rem;
    border: 1px solid #d9d2c7;
    border-radius: 8px;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-family: inherit;
}

    .buy-box select:focus {
        outline: 2px solid #E8833A;
        outline-offset: 1px;
    }