/* ==========================================================================
   Store theme: the toy box. Loaded after Oscar's own stylesheet, so anything
   here wins.

   The idea: a kids' catalog or magazine cover from the 70s and 80s. Chunky
   type with a printed drop shadow, halftone dots, sunburst stickers and
   stripes. To rebrand, change the values in the first block; everything
   else reads from them.
   ========================================================================== */

@font-face {
  font-family: "Shrikhand";
  src: url("../fonts/shrikhand-latin.465834707e22.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/rubik-latin.f280f1e37b84.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2b1d55;          /* text and outlines: the cheap purple-black of old print */
  --muted: #5d5378;        /* secondary text */
  --paper: #fdf3dc;        /* page: catalog paper */
  --card: #ffffff;
  --line: #ecd9b0;         /* borders on the page */
  --red: #cf2f1e;          /* buttons; dark enough for white text */
  --red-deep: #a8220f;
  --yellow: #ffc83d;
  --orange: #f37b1d;
  --teal: #16858a;         /* dark enough for white text */
  --pink: #ff7aa8;
  --sky: #5cc5e8;
  --purple: #6a3fb0;
  --tint: #cf2f1e;         /* fallback card tint; each product overrides it */

  /* The four 70s stripes on the header, footer and page titles. */
  --stripes: linear-gradient(180deg,
    var(--red) 0 25%, var(--orange) 25% 50%, var(--yellow) 50% 75%, var(--teal) 75% 100%);
  /* Printed dots. */
  --halftone: radial-gradient(rgba(43, 29, 85, .13) 1.2px, transparent 1.6px);

  --display: "Shrikhand", "Cooper Black", "Georgia", serif;
  --font: "Rubik", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 2.2vw, 40px);
  --radius: 14px;
  --header-h: 86px;
  --ticker-h: clamp(50px, 4.2vw, 68px);
}
@media (max-width: 1199px) { :root { --header-h: 66px; } }

/* ---- Base --------------------------------------------------------------- */

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.sf-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sf-skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 700; }
.sf-skip:focus { left: 8px; top: 8px; color: var(--ink); }
.sf-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

h1, h2, h3, h4 { font-family: var(--font); }
/* Big headings use the chunky display face, set in sentence case. */
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: 1; text-wrap: balance; }

/* Words wrapped in *stars* in the hero headline. */
.sf-grad { color: var(--teal); }

/* The stripe band. */
.sf-rainbow { height: 16px; background: var(--stripes); }

/* ---- Buttons ------------------------------------------------------------ */

.sf-btn, .btn {
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.66rem 1.4rem;
  transition: background-color .15s ease, color .15s ease, transform .1s ease, box-shadow .1s ease;
}
.sf-btn { display: inline-block; border: 2.5px solid var(--ink); text-decoration: none; cursor: pointer; font-size: 1rem; line-height: 1.2; }
/* Printed offset shadow; the button presses into it. */
.sf-btn, .btn-primary, .btn-secondary, .btn-info, .btn-outline-secondary { box-shadow: 3px 3px 0 var(--ink); border: 2.5px solid var(--ink); }
.sf-btn:hover, .btn:hover { text-decoration: none; }
.sf-btn:active, .btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-lg { padding: 0.86rem 1.9rem; font-size: 1.0625rem; }
.sf-btn--xl { padding: .85em 1.6em; font-size: clamp(1.05rem, 1.2vw, 1.25rem); box-shadow: 4px 4px 0 var(--ink); }

.sf-btn--primary, .btn-primary { background: var(--red); border-color: var(--ink); color: #fff; }
.sf-btn--primary:hover, .btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active { background: var(--red-deep); border-color: var(--ink); color: #fff; }
.sf-btn--outline, .sf-btn--ghost, .btn-secondary, .btn-info, .btn-outline-secondary { background: #fff; border-color: var(--ink); color: var(--ink); }
.sf-btn--outline:hover, .sf-btn--ghost:hover, .btn-secondary:hover, .btn-info:hover, .btn-outline-secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: .9375rem; }
.btn-link { box-shadow: none; border: 0; }

/* ---- Forms -------------------------------------------------------------- */

.form-control, .sf-newsletter input[type="email"], .sf-searchbar input, .sf-drawer__search input {
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font-family: var(--font);
}
.form-control:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22, 133, 138, .3); }
label { font-weight: 600; }

/* ---- Announcement bar --------------------------------------------------- */

.sf-announce { background: var(--ink); color: var(--yellow); text-align: center; font-size: .9375rem; font-weight: 600; padding: 8px var(--gutter); position: relative; z-index: 41; }
.sf-announce a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.sf-announce a:hover { color: #fff; }

/* ---- Header ------------------------------------------------------------- */

.sf-header {
  position: sticky; top: 0; z-index: 40;
  color: var(--ink);
  /* Paper bar with the stripes along its bottom edge. */
  background: var(--stripes) bottom / 100% 12px no-repeat, var(--paper);
  padding-bottom: 12px;
  transition: box-shadow .3s ease;
}
.sf-header.is-stuck { box-shadow: 0 6px 16px rgba(43, 29, 85, .16); }

.sf-header__row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  column-gap: clamp(20px, 3vw, 56px);
  height: var(--header-h);
  padding-inline: var(--gutter);
}
.sf-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 44px); min-width: 0; }
.sf-nav--left { justify-content: flex-end; }
.sf-nav--right { justify-content: flex-start; }
.sf-nav a, .sf-nav summary, .sf-nav__icon {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700; font-size: clamp(1rem, 1.05vw, 1.125rem); line-height: 1; white-space: nowrap;
  text-decoration: none; padding: 10px 0; background: none; border: 0; cursor: pointer;
  background-image: linear-gradient(var(--yellow), var(--yellow)); background-repeat: no-repeat;
  background-size: 0 8px; background-position: 0 80%;
  transition: background-size .2s ease;
}
.sf-nav a:hover, .sf-nav summary:hover, .sf-nav__icon:hover, .sf-nav a[aria-current="page"] { color: var(--ink); background-size: 100% 8px; }

/* The round sticker logo hangs below the bar. */
.sf-logo { display: block; align-self: start; margin-top: 8px; width: clamp(88px, 6.8vw, 120px); position: relative; z-index: 2; }
.sf-badge { display: block; width: 100%; height: auto; filter: drop-shadow(3px 4px 0 rgba(43, 29, 85, .35)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.sf-logo:hover .sf-badge { transform: rotate(-10deg) scale(1.05); }
.sf-badge__name { font-family: var(--display); fill: #fff; }
.sf-badge__sub { font-family: var(--font); font-weight: 800; fill: var(--ink); letter-spacing: .14em; }

.sf-cart__count { background: var(--red); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 800; }
.sf-cart__count.is-empty { display: none; }
.sf-account { position: relative; }
.sf-account summary { list-style: none; }
.sf-account summary::-webkit-details-marker { display: none; }
.sf-account__menu { position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 2.5px solid var(--ink); border-radius: var(--radius); padding: 6px; min-width: 210px; box-shadow: 5px 5px 0 var(--ink); display: grid; z-index: 5; }
.sf-nav .sf-account__menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: 1rem; font-weight: 600; background-image: none; }
.sf-nav .sf-account__menu a:hover { background: var(--yellow); color: var(--ink); }
.sf-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.sf-menu-btn { display: none; border: 0; background: none; color: var(--ink); padding: 8px; margin-left: -8px; justify-self: start; }
.sf-menu-btn .sf-icon { width: 28px; height: 28px; }
.sf-secure { justify-self: end; grid-column: 3; display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; font-size: 1rem; }
.sf-header--checkout .sf-logo { grid-column: 2; }

.sf-searchbar { display: flex; gap: 10px; padding: 12px var(--gutter) 18px; max-width: 760px; margin-inline: auto; }
.sf-searchbar[hidden] { display: none; }
.sf-searchbar input { flex: 1; min-width: 0; padding: .62rem 1.1rem; font-size: 1.0625rem; border-radius: 999px; }

@media (min-width: 1200px) and (max-width: 1439px) {
  .sf-header__row { column-gap: 26px; }
  .sf-nav { gap: 20px; }
  .sf-nav a, .sf-nav summary, .sf-nav__icon { font-size: .9375rem; }
}
@media (max-width: 1199px) {
  .sf-menu-btn { display: flex; }
  .sf-nav--left, .sf-nav .sf-nav__wide, .sf-nav .sf-cart__label { display: none; }
  .sf-nav--right { justify-content: flex-end; }
  .sf-logo { width: 80px; margin-top: 6px; }
  .sf-searchbar { display: none; }
}

/* Slide-in menu for small screens. */
.sf-drawer { position: fixed; inset: 0; z-index: 60; background: var(--yellow); background-image: var(--halftone); background-size: 7px 7px; color: var(--ink); padding: 18px var(--gutter) 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; animation: sf-drawer-in .22s ease both; }
.sf-drawer[hidden] { display: none; }
@keyframes sf-drawer-in { from { opacity: 0; transform: translateY(-10px); } }
.sf-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.sf-drawer__title { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.sf-drawer__close { border: 0; background: none; color: var(--ink); padding: 8px; margin-right: -8px; }
.sf-drawer__close .sf-icon { width: 30px; height: 30px; }
.sf-drawer__search { position: relative; display: flex; }
.sf-drawer__search input { width: 100%; padding: .7rem 48px .7rem 1.1rem; font-size: 1.0625rem; border-radius: 999px; }
.sf-drawer__search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink); padding: 8px; display: flex; }
.sf-drawer nav { display: grid; }
.sf-drawer nav a { color: var(--ink); text-decoration: none; font-family: var(--display); font-size: clamp(1.8rem, 7.5vw, 2.6rem); line-height: 1.1; padding: 10px 0; border-bottom: 2px solid rgba(43, 29, 85, .2); }
.sf-drawer nav a:hover { color: var(--red); }
body.sf-locked { overflow: hidden; }

/* ---- Hero: the catalog cover -------------------------------------------- */

.sf-hero {
  position: relative; overflow: hidden;
  background-color: var(--yellow);
  /* Sunburst rays from the lower right, with printed dots over them. */
  background-image:
    var(--halftone),
    repeating-conic-gradient(from 0deg at 82% 115%, #ffc83d 0deg 7deg, #ffb92a 7deg 14deg);
  background-size: 7px 7px, 100% 100%;
  padding-block: clamp(46px, 6vw, 84px) clamp(40px, 5vw, 72px);
  border-bottom: 4px solid var(--ink);
}
.sf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 899px) { .sf-hero__grid { grid-template-columns: 1fr; } }

.sf-ribbon {
  display: inline-block; margin: 0 0 clamp(16px, 2.2vh, 26px);
  background: var(--ink); color: var(--yellow);
  font-weight: 700; font-size: clamp(.95rem, 1.1vw, 1.125rem); line-height: 1.2;
  padding: .5em 1.4em .5em 1.1em;
  /* A banner with a notched tail. */
  clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 50%, 100% 100%, 0 100%);
  transform: rotate(-2deg);
}
.sf-hero h1 {
  font-size: clamp(2.9rem, 10vw, 4.4rem); line-height: 1.02; margin: 0 0 .32em;
  color: var(--red);
  /* Layered print shadow: paper, then ink. */
  text-shadow: 3px 3px 0 var(--paper), 6px 6px 0 var(--ink);
}
@media (min-width: 900px) { .sf-hero h1 { font-size: clamp(4rem, 5.6vw, 6.6rem); } }
.sf-hero .sf-grad { color: var(--teal); }
.sf-hero__line { display: block; }
.sf-hero__body { font-size: clamp(1.0625rem, 1.3vw, 1.3rem); font-weight: 500; line-height: 1.45; max-width: 32em; margin: 0 0 clamp(22px, 3vh, 34px); color: var(--ink); }
.sf-hero__actions { display: flex; flex-wrap: wrap; gap: 14px 18px; margin: 0; }

/* The cover photo: your videos, framed like a printed snapshot. */
.sf-hero__photo { position: relative; padding: 18px 18px 0 0; }
.sf-hero__frame {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 6px;
  background: var(--ink);
  border: clamp(10px, 1.1vw, 16px) solid #fff;
  outline: 2.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2deg);
}
.sf-hero__media { position: absolute; inset: 0; z-index: -1; }
.sf-hero__video, .sf-hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-hero__video { opacity: 0; transition: opacity 1.3s ease; }
.sf-hero__video.is-on { opacity: 1; }
/* Printed dots over the picture, including your own videos. */
.sf-hero__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(0, 0, 0, .16) 1px, transparent 1.5px); background-size: 4px 4px; mix-blend-mode: multiply; }
.sf-hero__pause { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; padding: 0; cursor: pointer; box-shadow: 2px 2px 0 var(--ink); }
.sf-hero__pause[hidden] { display: none; }
.sf-hero__pause:hover { background: var(--yellow); }
.sf-hero__pause [data-when] { display: none; }
.sf-hero__pause[aria-pressed="false"] [data-when="playing"], .sf-hero__pause[aria-pressed="true"] [data-when="paused"] { display: grid; }

/* The starburst sticker on the corner of the photo. */
/* The wrapper carries the shadow, because the star's clip-path would cut a shadow off. */
.sf-burst-wrap { position: absolute; left: clamp(-26px, -1.6vw, -10px); top: clamp(-30px, -2vw, -14px); z-index: 3; filter: drop-shadow(4px 4px 0 var(--ink)); }
.sf-burst {
  width: clamp(118px, 11vw, 168px); aspect-ratio: 1; margin: 0;
  display: grid; place-items: center; text-align: center;
  padding: 22%;
  background: var(--red); color: #fff;
  font-family: var(--display); font-size: clamp(.95rem, 1.1vw, 1.2rem); line-height: 1.05;
  clip-path: polygon(50.0% 0.0%, 57.1% 9.6%, 67.1% 3.0%, 70.5% 14.5%, 82.1% 11.7%, 81.4% 23.6%, 93.3% 25.0%, 88.5% 36.0%, 99.2% 41.3%, 91.0% 50.0%, 99.2% 58.7%, 88.5% 64.0%, 93.3% 75.0%, 81.4% 76.4%, 82.1% 88.3%, 70.5% 85.5%, 67.1% 97.0%, 57.1% 90.4%, 50.0% 100.0%, 42.9% 90.4%, 32.9% 97.0%, 29.5% 85.5%, 17.9% 88.3%, 18.6% 76.4%, 6.7% 75.0%, 11.5% 64.0%, 0.8% 58.7%, 9.0% 50.0%, 0.8% 41.3%, 11.5% 36.0%, 6.7% 25.0%, 18.6% 23.6%, 17.9% 11.7%, 29.5% 14.5%, 32.9% 3.0%, 42.9% 9.6%);
  transform: rotate(-12deg);
}

/* Opening the page: the headline drops in, the photo is slapped down, the sticker pops on. Plays once. */
.js .sf-hero__copy > * { animation: sf-drop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.js .sf-hero__copy > :nth-child(2) { animation-delay: .08s; }
.js .sf-hero__copy > :nth-child(3) { animation-delay: .16s; }
.js .sf-hero__copy > :nth-child(4) { animation-delay: .24s; }
.js .sf-hero__frame { animation: sf-slap .55s cubic-bezier(.2, 1.3, .4, 1) .3s both; }
.js .sf-burst { animation: sf-pop .5s cubic-bezier(.3, 1.8, .5, 1) .8s both; }
@keyframes sf-drop { from { opacity: 0; transform: translateY(-26px); } }
@keyframes sf-slap { from { opacity: 0; transform: rotate(9deg) scale(1.12); } }
@keyframes sf-pop { from { opacity: 0; transform: rotate(-60deg) scale(0); } }

/* ---- Scrolling strip ---------------------------------------------------- */

.sf-ticker {
  height: var(--ticker-h); overflow: hidden; display: flex; align-items: center; position: relative; z-index: 1;
  background: var(--red); color: var(--yellow);
  border-bottom: 4px solid var(--ink);
}
.sf-ticker__track { display: flex; width: max-content; animation: sf-scroll 60s linear infinite; }
.sf-ticker--reverse .sf-ticker__track { animation-direction: reverse; }
.sf-ticker:hover .sf-ticker__track { animation-play-state: paused; }
@keyframes sf-scroll { to { transform: translateX(-50%); } }
.sf-ticker__group { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.sf-ticker li { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 44px); padding-left: clamp(20px, 2.4vw, 44px); font-family: var(--display); font-size: clamp(1.3rem, 2vw, 2.1rem); line-height: 1.2; white-space: nowrap; text-shadow: 2px 2px 0 var(--ink); }
.sf-spark { width: .8em; height: .8em; fill: #fff; flex: none; filter: drop-shadow(2px 2px 0 var(--ink)); }

/* ---- Sections ----------------------------------------------------------- */

.sf-section { padding-block: clamp(48px, 7vw, 104px); }
.sf-section--tight { padding-top: 0; }
.sf-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(22px, 3vw, 40px); }
.sf-section h2, .sf-story h2, .sf-signup h2 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); margin: 0; }
.sf-section h2 { color: var(--ink); text-shadow: 3px 3px 0 var(--yellow); }
.sf-section__head p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }
.sf-empty { max-width: 60ch; }
.sf-empty h2 { margin-bottom: 14px; }

.sf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 42vw), 1fr)); gap: clamp(26px, 3vw, 42px) clamp(14px, 2vw, 28px); }

/* ---- Product card ------------------------------------------------------- */

.sf-card { display: flex; flex-direction: column; height: 100%; }
.sf-card__media {
  display: block; position: relative; overflow: hidden; aspect-ratio: 6 / 7; border-radius: var(--radius);
  background: color-mix(in srgb, var(--tint) 16%, #fff);
  border: 2.5px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .25s cubic-bezier(.3, 1.5, .5, 1), box-shadow .25s ease;
}
.sf-card__media::before { content: ""; position: absolute; inset: 0; background-image: var(--halftone); background-size: 7px 7px; pointer-events: none; }
.sf-card__media img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.sf-card:hover .sf-card__media, .sf-card:focus-within .sf-card__media { transform: translate(-2px, -3px) rotate(-1.5deg); box-shadow: 8px 8px 0 var(--tint); }
.sf-card__body { padding-top: 16px; display: flex; flex-direction: column; flex: 1; }
.sf-card h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.28; margin: 0 0 8px; }
.sf-card h3 a { color: var(--ink); text-decoration: none; }
.sf-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sf-card .product_price { margin-top: auto; }
/* Prices sit on a little yellow price sticker. */
.sf-card .price_color, .price_color {
  display: inline-block; color: var(--ink); font-family: var(--font); font-weight: 800; font-size: 1.25rem; line-height: 1;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 8px; padding: .28em .5em;
  transform: rotate(-2deg); margin: 2px 0 8px; min-height: 0;
}
.sf-card .availability { font-size: .9375rem; color: var(--muted); margin: 0 0 12px; }
.sf-card .availability.outofstock { color: var(--red); }
.sf-card .btn { width: 100%; }
.sf-card form p { margin: 0; }
.star-rating { color: #dccaa3; }
.star-rating.One i:nth-child(-n+1), .star-rating.Two i:nth-child(-n+2), .star-rating.Three i:nth-child(-n+3),
.star-rating.Four i:nth-child(-n+4), .star-rating.Five i { color: var(--orange); }

/* ---- Category tiles: board game box lids -------------------------------- */

.sf-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(16px, 2vw, 26px); }
.sf-tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; overflow: hidden;
  min-height: clamp(200px, 19vw, 280px); padding: clamp(20px, 2.2vw, 30px);
  border-radius: var(--radius); border: 2.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  background: var(--lid, var(--red)); color: #fff; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* Corner stripes, like the band across an old game box. */
.sf-tile::before { content: ""; position: absolute; z-index: -1; right: -40px; top: 26px; width: 240px; height: 48px; transform: rotate(35deg); background: var(--stripes); opacity: .95; }
.sf-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.6px); background-size: 7px 7px; }
.sf-tile--a { --lid: var(--red); } .sf-tile--b { --lid: var(--teal); } .sf-tile--c { --lid: var(--purple); }
.sf-tile--d { --lid: var(--orange); } .sf-tile--e { --lid: #2f6fb5; } .sf-tile--f { --lid: #c2397a; }
.sf-tile:hover { color: #fff; text-decoration: none; transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.sf-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; mix-blend-mode: luminosity; }
.sf-tile__name { position: relative; font-family: var(--display); line-height: 1.02; font-size: clamp(1.7rem, 2.2vw, 2.5rem); text-shadow: 3px 3px 0 var(--ink); overflow-wrap: break-word; }
.sf-tile__go { position: relative; font-weight: 700; font-size: .9375rem; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .35em 1em; }
.sf-tile:hover .sf-tile__go { background: var(--yellow); }

/* ---- Story, facts, sign-up ---------------------------------------------- */

.sf-story { background: var(--teal); background-image: radial-gradient(rgba(255, 255, 255, .1) 1.2px, transparent 1.6px); background-size: 7px 7px; color: #fff; padding-block: clamp(56px, 8vw, 120px); border-block: 4px solid var(--ink); }
.sf-story__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(22px, 5vw, 80px); align-items: end; }
.sf-story h2 { color: #fff; font-size: clamp(2.6rem, 5.2vw, 5rem); text-shadow: 4px 4px 0 var(--ink); }
.sf-story p { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); max-width: 46ch; color: #fff; }
.sf-story p:last-child { margin: 24px 0 0; }

.sf-facts { border-bottom: 2px solid var(--line); }
.sf-facts__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 24px; }
.sf-facts p { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.sf-facts .sf-icon { color: var(--red); }
.sf-facts a { color: var(--ink); }

.sf-signup { background: var(--red); background-image: radial-gradient(rgba(255, 255, 255, .1) 1.2px, transparent 1.6px); background-size: 7px 7px; color: #fff; padding-block: clamp(44px, 6vw, 84px); }
.sf-signup__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 72px); align-items: center; }
.sf-signup h2 { color: var(--yellow); text-shadow: 4px 4px 0 var(--ink); }
.sf-signup p { margin: 12px 0 0; max-width: 44ch; font-size: 1.125rem; }
.sf-signup :focus-visible { outline-color: #fff; }
@media (max-width: 767px) {
  .sf-story__grid, .sf-signup__grid { grid-template-columns: 1fr; }
}

.sf-newsletter { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.sf-newsletter input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 0.66rem 1.1rem; font-size: 1.0625rem; border-radius: 999px; }
.sf-newsletter__status { flex: 0 0 100%; margin: 0; min-height: 1.5em; font-weight: 600; }
.sf-signup .sf-newsletter__status.is-error, .sf-footer .sf-newsletter__status.is-error { color: var(--yellow); }
.sf-signup .sf-btn--primary { background: var(--yellow); color: var(--ink); }
.sf-signup .sf-btn--primary:hover { background: #fff; color: var(--ink); }

/* ---- Footer ------------------------------------------------------------- */

.sf-footer { background: var(--ink); color: #e9e2f7; }
.sf-footer a { color: #fff; }
.sf-footer__grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-top: clamp(40px, 5.5vw, 72px); }
.sf-footer nav { display: grid; align-content: start; gap: 10px; }
.sf-footer nav a { text-decoration: none; overflow-wrap: anywhere; }
.sf-footer nav a:hover { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.sf-footer h2 { font-size: 1.6rem; line-height: 1.1; margin: 0 0 6px; color: var(--yellow); }
.sf-footer__logo { display: block; width: 108px; margin-bottom: 16px; }
.sf-footer__tagline { margin: 0; max-width: 36ch; }
.sf-footer__label { font-weight: 700; margin: 24px 0 10px; color: #fff; }
.sf-footer .sf-newsletter { max-width: 440px; }
.sf-footer .sf-newsletter input[type="email"] { border-color: transparent; }
.sf-footer .sf-btn { box-shadow: 3px 3px 0 #000; }
.sf-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 22px; margin-top: clamp(30px, 5vw, 56px); border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9375rem; }
.sf-footer__base span { display: flex; align-items: center; gap: 8px; }
.sf-footer--checkout { margin-top: 48px; }
.sf-footer--checkout .sf-footer__base { margin-top: 0; border-top: 0; }
@media (max-width: 767px) {
  .sf-footer__grid { grid-template-columns: 1fr 1fr; }
  .sf-footer__brand { grid-column: 1 / -1; }
}

/* ---- Oscar's inner pages (category, product, basket, account) ----------- */

.container.page { max-width: var(--wrap); padding: clamp(44px, 5vw, 72px) var(--gutter) clamp(52px, 7vw, 96px); }
.page-header, .sub-header { border: 0; margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; }
.page-header h1, .sub-header h1 { font-size: clamp(2.3rem, 4.4vw, 4rem); margin: 0; color: var(--ink); text-shadow: 3px 3px 0 var(--yellow); }
.page-header h1::after, .sub-header h1::after { content: ""; display: block; width: 110px; height: 14px; margin-top: .3em; background: var(--stripes); border-radius: 3px; }
.sub-header h2, .sub-header h3 { font-family: var(--font); font-weight: 700; font-size: 1.375rem; line-height: 1.2; }
.breadcrumb { background: none; padding: 0; margin: 0 0 16px; font-size: .9375rem; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item.active { color: var(--ink); }
.alert { border-radius: var(--radius); border: 2.5px solid var(--ink); }
.alert .btn { margin: 8px 8px 2px 0; }
.alert-success { background: #def3dc; color: #1d4a1b; }
.alert-info { background: #fff; color: var(--ink); }
.alert-warning { background: #fff0c4; color: #5a4200; }
.alert-danger, .alert-error { background: #fde0da; color: #7a220a; }
body.home #messages { max-width: var(--wrap); margin: 24px auto 0; padding-inline: var(--gutter); }
.side_categories.card { background: #fff !important; border: 2.5px solid var(--ink); border-radius: var(--radius); }
.side_categories a { color: var(--ink); }
.img-thumbnail { border: 0; border-radius: 8px; padding: 0; background: transparent; }
.product_main h1 { font-size: clamp(2.2rem, 3.8vw, 3.6rem); }
.product_page .carousel-inner { border-radius: var(--radius); border: 2.5px solid var(--ink); background: #fff; box-shadow: 6px 6px 0 var(--ink); }
#product_gallery img { border-radius: 0; border: 0; }
.product_page .price_color { font-size: 1.9rem; }
.table { color: var(--ink); }
.basket-title, .basket-items { border-color: var(--line); }
.card { border-radius: var(--radius); border-color: var(--line); background: #fff; }
.page-item.active .page-link { background: var(--ink); border-color: var(--ink); }
.page-link { color: var(--ink); }
.sf-tax-note { color: var(--muted); font-size: .9375rem; }

/* ---- Checkout ----------------------------------------------------------- */

.sf-checkout { max-width: 1000px; }
.sf-steps { list-style: none; counter-reset: step; display: flex; gap: 8px; padding: 0; margin: 0 0 30px; }
.sf-steps li { counter-increment: step; flex: 1; border-top: 6px solid var(--line); padding-top: 10px; color: var(--muted); font-weight: 600; font-size: .9375rem; }
.sf-steps li::before { content: counter(step) ". "; }
.sf-steps li.is-done { border-top-color: var(--teal); color: var(--ink); }
.sf-steps li.is-current { border-top-color: var(--red); color: var(--ink); }
.sf-steps a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.sf-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 14px 24px; margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--line); }
.sf-pay__note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 575px) {
  .sf-steps li { font-size: .8125rem; }
  .sf-pay .btn { width: 100%; }
}

/* ---- Product listing ---------------------------------------------------- */

.sf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chips a { padding: 7px 16px; border-radius: 999px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 700; font-size: .9375rem; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.sf-chips a:hover { background: var(--yellow); color: var(--ink); }
.sf-chips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sf-sort { display: flex; align-items: center; gap: 10px; }
.sf-sort label { margin: 0; white-space: nowrap; }
.sf-sort select { width: auto; padding-inline: 12px; }
.sf-count { color: var(--muted); margin-bottom: 22px; }
.sf-intro { max-width: 68ch; margin-bottom: 24px; }

/* Oscar wraps pages in a shadowed box; this theme lets content sit on the page. */
.page_inner, .page .page_inner { background: none; box-shadow: none; border: 0; padding: 0; margin: 0; }

/* Oscar colors prices green and totals yellow; keep both in the theme's palette. */
body .price_color { color: var(--ink) !important; }
body .total { background-color: #fff !important; }
.basket-items, .basket-items:nth-child(even) { background: none; border-bottom: 2px solid var(--line); }
/* In the cart, prices are plain figures lined up under their column headings, not stickers. */
.basket-items .price_color { display: block; background: none; border: 0; padding: 0; transform: none; margin: 4px 0 0; font-size: 1.125rem; text-align: right; }
.card.bg-light { background: #fff !important; }

/* ---- Visitors who ask for less motion get a still page ------------------ */

@media (prefers-reduced-motion: reduce) {
  .sf-ticker__track, .sf-drawer, .js .sf-hero__copy > *, .js .sf-hero__frame, .js .sf-burst { animation: none !important; }
  .sf-btn, .btn, .sf-card__media, .sf-hero__video, .sf-tile, .sf-badge { transition: none; }
  .sf-card:hover .sf-card__media, .sf-tile:hover, .sf-logo:hover .sf-badge { transform: none; }
}
