@charset "UTF-8";
/* home.css — Magazine/grid, parallax, earthy tones, serif headings */
body.home {
  margin: 0;
  background: #fbfaf7;
  color: var(--t1);
  font-family: "Source Sans 3", system-ui, sans-serif;
  overflow-x: clip;
  overflow-y: visible;
  height: auto;
  min-height: unset;
}

body.home.theme-dark {
  background: #141210;
  color: #e8e8e8;
}

/* One shared "this is clickable" rule -- identical copy of
   sass/Base/_interactive.scss (main.compiled.css), which this page doesn't
   load. Keep the two in sync. Disabled controls are excluded so they keep
   the default cursor. */
a[href]:not([aria-disabled="true"]),
button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
[role="option"]:not([aria-disabled="true"]),
label:has(input[type="checkbox"]:not(:disabled), input[type="radio"]:not(:disabled)),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
input[type="range"]:not(:disabled),
input[type="submit"]:not(:disabled),
select:not(:disabled),
summary {
  cursor: pointer;
}

/* Tiered dark palette instead of flattening everything to black: the page
   background, the masthead/footer, and cards each sit one step apart so
   there's actual depth, with one shared border tone (#2e2a24) tying the
   tiers together. Accent tiles like the "Hearth & Mend" ad keep their own
   light background regardless of theme, by design -- nothing here touches
   them. */
body.home.theme-dark .masthead {
  background: #0d0c0b;
  color: #e8e8e8;
  border-color: #2e2a24;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

body.home.theme-dark .feature.block,
body.home.theme-dark .card {
  background: #1c1a17;
  color: #e8e8e8;
  border-color: #2e2a24;
}

/* The hero sits directly under the navbar and is also near-black in dark
   mode (photo + a dark overlay), so without an explicit border/shadow
   here the two visually merge into one black mass. */
body.home.theme-dark .masthead .bar .logo {
  color: #fff;
}

body.home.theme-dark :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle {
  background: #374151;
  border-color: #4b5563;
}

body.home.theme-dark :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle:hover {
  border-color: var(--accent);
}

body.home.theme-dark :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle .toggle-knob {
  background: #1f2937;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

body.home.theme-dark :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle .toggle-knob .sun-icon {
  color: #fbbf24;
}

body.home.theme-dark :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle[aria-pressed=true] {
  background: var(--accent-hover);
  border-color: var(--accent);
}

.masthead {
  position: relative;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
  z-index: 100;
}

.masthead .bar {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead .bar .logo {
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--t1);
  font-weight: 700;
}

.masthead .bar .hamburger {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 0.35rem;
  padding: 0.35rem 0.5rem;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 9999px;
  border: 2px solid var(--line-strong);
  background: #e5e7eb;
  padding: 2px;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease, all 0.2s ease;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle:hover {
  border-color: var(--accent);
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle .toggle-knob {
  position: absolute;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle .toggle-knob .toggle-icon {
  width: 0.85rem;
  height: 0.85rem;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle .toggle-knob .sun-icon {
  display: block;
  color: #f59e0b;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle .toggle-knob .moon-icon {
  display: none;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle .toggle-text {
  display: none;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle[aria-pressed=true] {
  background: var(--accent-hover);
  border-color: var(--accent);
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle[aria-pressed=true] .toggle-knob {
  transform: translateX(24px);
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle[aria-pressed=true] .toggle-knob .sun-icon {
  display: none;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle[aria-pressed=true] .toggle-knob .moon-icon {
  display: block;
  color: white;
}

:is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle[aria-pressed=false] .toggle-knob {
  transform: translateX(0);
}

.masthead .bar .right {
  display: flex;
  gap: 0.5rem;
}

.hero-section {
  position: relative;
  width: 100%;
  display: block;
  visibility: visible;
  opacity: 1;
  margin-bottom: 0.5rem;
}

body.home .carousel-hero {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  height: 50vh;
  min-height: 360px;
  max-height: 520px;
  overflow: hidden;
}

body.home .carousel-hero .slides {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.home .carousel-hero .slides::-webkit-scrollbar {
  display: none;
}

/* Each slide's photo is set inline in index.html
   (style="background:center/cover url('Images/...')"), so the URL resolves
   against the page, not this stylesheet's Styles/ folder. A url() inside a
   custom property used here would resolve against Styles/ and 404. */
body.home .carousel-hero .slides .slide {
  scroll-snap-align: start;
  background-position: center;
  background-size: cover;
}

body.home .carousel-hero .carousel-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

body.home .carousel-hero .carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 200ms ease;
}

body.home .carousel-hero .carousel-dots .dot.active {
  background: rgb(255, 255, 255);
  transform: scale(1.2);
}

body.home .carousel-hero .carousel-dots .dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

body.home .carousel-hero .carousel-dots .dot:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

body.home .carousel-hero .overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35));
}

body.home .carousel-hero .overlay h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  margin: 0 0 0.35rem;
}

body.home .carousel-hero .overlay p {
  margin: 0 0 0.75rem;
  color: #f3f4f6;
}

body.home .carousel-hero .overlay .search.wide {
  display: inline-flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--r-ctl);
  padding: 0.5rem;
  width: min(760px, 92%);
}

body.home .carousel-hero .overlay .search.wide input {
  flex: 1;
  border: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--r-ctl);
}

body.home .carousel-hero .overlay .search.wide button {
  background: var(--accent-hover);
  color: var(--on-accent);
  border: 0;
  border-radius: var(--r-ctl);
  padding: 0.75rem 1.1rem;
  font-weight: 700;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem;
  /* site-footer.css gives body > main.container width:100% (body is a flex
     column). This page doesn't load main.compiled.css's global border-box,
     so without this the 1rem side padding was added on top of that 100%
     and the page scrolled sideways by 32px. */
  box-sizing: border-box;
}

body.home .hero-section + main.container,
body.home .hero-section + .container,
body.home .hero-section + .home-main > .container:first-child {
  padding-top: 0.5rem;
}

/* Up to four cards, capped at 280px so listing thumbnails aren't blown up
   past their natural size. Fewer than four sit flush left under the
   heading; columns shrink below 280px on narrower screens. */
.recently-viewed .rv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 280px));
  gap: 0.75rem;
}

/* 3:4 photo cards (the listing photos are roughly 3:4), cover-cropped.
   Title and price over the photo on hover. */
.recently-viewed .rv-grid .rv {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  color: inherit;
  text-decoration: none;
  background: rgba(128, 128, 128, 0.12);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  overflow: hidden;
}

.recently-viewed .rv-grid .rv:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.recently-viewed .rv-grid .rv img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.recently-viewed .rv-grid .rv .rv-img {
  -o-object-fit: cover;
     object-fit: cover;
  filter: saturate(1.05);
  transition: transform var(--hover-slow) var(--hover-ease);
  will-change: transform;
}

.recently-viewed .rv-grid .rv:hover .rv-img,
.recently-viewed .rv-grid .rv:focus-visible .rv-img {
  transform: scale(1.04);
}

.recently-viewed .rv-grid .rv .ov {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.25rem;
  padding: 0.75rem;
  text-align: center;
  color: #f3f4f6;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity var(--hover-slow) var(--hover-ease);
  font-weight: 700;
}

.recently-viewed .rv-grid .rv:hover .ov,
.recently-viewed .rv-grid .rv:focus-visible .ov {
  opacity: 1;
}

.features-grid {
  display: grid;
  /* Two equal halves: Popular Searches + Stay in the Loop stacked on the
     left, the Hearth & Mend ad on the right. One gap for both. */
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.features-grid .promo-stack {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .features-grid .promo-stack {
    grid-template-rows: auto 1fr;
  }
}

.features-grid .feature.block {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  padding: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.features-grid .feature.block h2 {
  margin: 0;
  font-family: var(--font-heading);
}

/* Wraps instead of scrolling sideways, so every link shows without a
   scrollbar inside the card. */
.features-grid .feature.block .carousel.snap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.features-grid .feature.block .carousel.snap a {
  text-decoration: none;
  color: var(--t1);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  padding: 0.5rem;
}

/* The hard-coded color above beats the generic
   body.home.theme-dark .feature.block color rule on specificity, so it
   needs its own explicit dark-mode override here. */
body.home.theme-dark .features-grid .feature.block .carousel.snap a {
  color: #e8e8e8;
  border-color: #2e2a24;
}

/* ---- Display ad (.display-ad) ----
   Used by the house ad in index.html and by every ad space js/index.js
   renders (renderDisplayAd), in the features grid and in the hero. Artwork
   fills the card, a dark scrim at the bottom carries the copy, and the
   "Sponsored" label, advertiser line and yellow CTA make it read as an ad
   rather than site content. Colours are its own (plum / mustard), not the
   site's rust, on purpose. */
.display-ad {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  height: 100%;
  min-height: 210px;
  padding: 2.4rem 1rem 1rem;
  overflow: hidden;
  border-radius: inherit;
  color: #fff;
  text-decoration: none;
  /* Shows when an ad has no image_url, and while the artwork loads. */
  background:
    radial-gradient(circle at 85% 20%, rgba(244, 211, 94, 0.22), transparent 45%),
    linear-gradient(135deg, #3b2340, #6b2f3a);
}

.display-ad-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--hover-slow) var(--hover-ease);
  will-change: transform;
}

.display-ad::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(28, 14, 32, 0.94) 0%, rgba(28, 14, 32, 0.72) 45%, rgba(28, 14, 32, 0) 85%);
}

.display-ad-label {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--t2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.display-ad-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
}

.display-ad-brand {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4d35e;
}

.display-ad-headline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.display-ad-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.85);
}

.display-ad-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-ctl);
  background: #f4d35e;
  color: #2a1630;
  font-size: 0.85rem;
  font-weight: 700;
  transition: background-color var(--hover-fast) var(--hover-ease);
}

.display-ad-cta::after {
  content: "\2192";
  transition: transform var(--hover-fast) var(--hover-ease);
}

.display-ad:hover .display-ad-img,
.display-ad:focus-visible .display-ad-img {
  transform: scale(1.04);
}

.display-ad:hover .display-ad-cta,
.display-ad:focus-visible .display-ad-cta {
  background: #fff;
}

.display-ad:hover .display-ad-cta::after,
.display-ad:focus-visible .display-ad-cta::after {
  transform: translateX(3px);
}

.display-ad:focus-visible {
  outline: 3px solid #f4d35e;
  outline-offset: -3px;
}

/* In the features grid the ad is the whole card: no inner padding. */
.features-grid .feature.block.feature-ad {
  padding: 0;
  overflow: hidden;
  border-color: #3b2340;
}


.features-grid .feature.block .raffle-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.features-grid .feature.block .raffle-row .raffle {
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent-hover);
  border-radius: 0.35rem;
  padding: 0.4rem 0.55rem;
}

/* Top Sellers + Recently Added carousels -- same markup/class structure as
   sass/Components/_carousel.scss (.top-sellers .carousel-shell,
   .recently-added.product-carousel .carousel-track/.carousel-banner), which
   this page doesn't load, restyled with Design 3's tokens: var(--line-strong) borders,
   12px cards with soft shadows, Merriweather card titles, rust accents.
   Cards stay light in dark mode, same as browse.html's shop grid. */
.top-sellers,
.recently-added.product-carousel {
  margin-top: 1.5rem;
}

.top-sellers .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-sellers .section-head h2 {
  margin: 0.5rem 0;
}

.top-sellers .section-head .cta {
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: var(--r-ctl);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.top-sellers .section-head .cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.top-sellers .carousel-shell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.top-sellers .carousel {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, max-content);
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Room for the hover lift and shadow (overflow-x clips them); the negative
     margins cancel the extra padding so the section keeps its layout. */
  padding: 0.75rem 0 1.25rem;
  margin: -0.5rem 0 -1rem;
}

.top-sellers .carousel::-webkit-scrollbar {
  display: none;
}

/* While js/index.js auto-scrolls the row: no snapping or smooth-scroll
   easing to fight the frame-by-frame movement. */
.top-sellers .carousel.is-auto-scrolling {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.top-sellers .carousel .slide {
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  padding: 0.85rem 1.25rem;
  color: var(--t1);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  text-align: center;
  transition: all 200ms ease;
  cursor: pointer;
}

.top-sellers .carousel .slide:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.top-sellers .carousel-nav,
:is(.recently-added, .popular-week) .carousel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--t1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.top-sellers .carousel-nav:hover,
:is(.recently-added, .popular-week) .carousel-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.top-sellers .carousel-nav:focus-visible,
:is(.recently-added, .popular-week) .carousel-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.recently-added .carousel-container {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  margin-top: 0.5rem;
}

.recently-added .carousel-banner {
  flex-shrink: 0;
  width: 200px;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.recently-added .carousel-banner h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.1;
}

.recently-added .carousel-banner p {
  margin: 0 0 1rem;
  color: #d1d5db;
  font-size: 0.9rem;
}

.recently-added .carousel-banner .banner-btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-ctl);
  font-weight: 700;
  transition: all 0.2s ease;
}

.recently-added .carousel-banner .banner-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

:is(.recently-added, .popular-week) .carousel-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
}

:is(.recently-added, .popular-week) .carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem 1.25rem;
}

:is(.recently-added, .popular-week) .carousel-track::-webkit-scrollbar {
  display: none;
}

/* Same look as browse.html's shop grid card (Styles/shop.css .shop-grid) */
:is(.recently-added, .popular-week) .carousel-track .product {
  scroll-snap-align: start;
  flex: 0 0 240px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform var(--hover-slow) var(--hover-ease), border-color var(--hover-fast) var(--hover-ease);
}

/* The deeper hover shadow is .product::before (below), faded in. */
:is(.recently-added, .popular-week) .carousel-track .product:hover {
  transform: translateY(-5px);
}

:is(.recently-added, .popular-week) .carousel-track .product .product-media {
  margin-bottom: 12px;
}

:is(.recently-added, .popular-week) .carousel-track .product img,
:is(.recently-added, .popular-week) .carousel-track .product .product-image-placeholder {
  width: 100%;
  /* auto: the 4:3 ratio sets the height, not the img's height attribute. */
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

:is(.recently-added, .popular-week) .carousel-track .product .product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--raised);
  color: var(--t3);
  font-size: 2rem;
}

:is(.recently-added, .popular-week) .carousel-track .product h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--t1);
  margin: 0 0 8px;
}

:is(.recently-added, .popular-week) .carousel-track .product .meta {
  color: var(--t3);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

:is(.recently-added, .popular-week) .carousel-track .product .btn {
  margin-top: auto;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  text-align: center;
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color var(--hover-fast) var(--hover-ease), transform var(--hover-fast) var(--hover-ease), box-shadow var(--hover-fast) var(--hover-ease);
}

:is(.recently-added, .popular-week) .carousel-track .product .btn:hover,
:is(.recently-added, .popular-week) .carousel-track .product:hover .btn {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent);
}

:is(.recently-added, .popular-week) .carousel-btn {
  position: absolute;
  top: calc(50% - 0.5rem);
  transform: translateY(-50%);
  z-index: 2;
}

:is(.recently-added, .popular-week) .carousel-prev {
  left: -0.5rem;
}

:is(.recently-added, .popular-week) .carousel-next {
  right: -0.5rem;
}

@media (max-width: 1023px) {
  .recently-added .carousel-banner {
    display: none;
  }
}

@media (max-width: 639px) {
  :is(.recently-added, .popular-week) .carousel-track .product {
    flex-basis: min(75vw, 220px);
  }
  .top-sellers .carousel-nav,
  :is(.recently-added, .popular-week) .carousel-btn {
    width: 34px;
    height: 34px;
  }
}

/* Below 1024px the row stacks full width: Popular Searches, Stay in the
   Loop, then the ad. */
@media (max-width: 1023px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  .recently-viewed .rv-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
}
/* ---- Additions for the portfolio marketplace homepage ---- */
/* (offcanvas menu and small pieces the original
   demo didn't need — the rest of this file above is untouched
   from the archived Design 3 stylesheet.) */

.offcanvas {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.4);
  z-index: 3000;
  display: none;
}
.offcanvas.open {
  display: block;
}
.offcanvas .panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--surface);
  padding: 1.25rem;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}
.offcanvas .panel .close {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 0.35rem;
  padding: 0.25rem 0.6rem;
  float: right;
  cursor: pointer;
}
.offcanvas .panel .logo {
  font-family: var(--font-display);
  text-decoration: none;
  color: var(--t1);
  font-weight: 700;
  clear: both;
}
.offcanvas .panel .offcanvas-logo {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}
.offcanvas .offcanvas-label {
  margin: 0 0 0.5rem;
  color: var(--t3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.offcanvas .mobile-nav ul {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}
.offcanvas .mobile-nav ul li a {
  display: block;
  padding: 0.65rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 0.35rem;
  color: var(--t1);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
.offcanvas .mobile-nav ul li a:hover,
.offcanvas .mobile-nav ul li a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}
.offcanvas .mobile-nav ul li a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
/* Visual break between the category list above and the
   Browse/Cart/Account links below, so the two groups read as distinct
   sections of the panel rather than one run-on list. */
.offcanvas-links {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-strong);
}
.offcanvas-links a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 0.35rem;
  color: var(--t1);
  text-decoration: none;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease;
}
.offcanvas-links a i {
  width: 1.1em;
  color: var(--t3);
  transition: color 150ms ease;
}
.offcanvas-links a:hover,
.offcanvas-links a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent);
}
.offcanvas-links a:hover i,
.offcanvas-links a:focus-visible i {
  color: var(--accent);
}
.offcanvas-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
body.home.theme-dark .offcanvas .panel {
  background: #000;
  color: #fff;
}
body.home.theme-dark .offcanvas .panel .logo,
body.home.theme-dark .offcanvas .mobile-nav ul li a,
body.home.theme-dark .offcanvas-links a {
  color: #fff;
}
body.home.theme-dark .offcanvas .offcanvas-label {
  color: #6b7280;
}
body.home.theme-dark .offcanvas-links {
  border-top-color: #333;
}
body.home.theme-dark .offcanvas .mobile-nav ul li a:hover,
body.home.theme-dark .offcanvas .mobile-nav ul li a:focus-visible,
body.home.theme-dark .offcanvas-links a:hover,
body.home.theme-dark .offcanvas-links a:focus-visible {
  background: #111;
  color: var(--accent);
}
body.home.theme-dark .offcanvas-links a:hover i,
body.home.theme-dark .offcanvas-links a:focus-visible i {
  color: var(--accent);
}
body.home.theme-dark .offcanvas .panel .close {
  background: #111;
  border-color: #333;
  color: #fff;
}

/* Hero ad slot (hidden until js/index.js populates it): compact display
   ads under the search bar. */
.hero-ads {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.hero-ads[hidden] {
  display: none;
}
.hero-ads .display-ad {
  width: min(440px, 100%);
  height: auto;
  min-height: 150px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Photos behind the hero slides and photo tiles are <img> elements (so
   they can lazy-load and use srcset), laid under the tiles' dark overlays. */
body.home .carousel-hero .slides .slide {
  isolation: isolate;
}
.slide-img,
.photo-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-img {
  z-index: -1;
}
.photo-tile-img {
  z-index: -2;
}

/* Site-wide announcement banner (shared component, not home-specific
   in the original build, so it needs a baseline here) */
/* Announcement carousel layout mirrors sass/Components/_site-announcement.scss
   (which this page doesn't load); colour stays this page's own. */
.site-announcement-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-hover);
  color: var(--on-accent);
  text-align: center;
  padding: 1.1rem 3.5rem;
  font-size: 0.9rem;
}
.site-announcement-banner[hidden] {
  display: none;
}
.site-announcement-banner .site-announcement-track {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
}
.site-announcement-banner a {
  color: #fff;
}
.site-announcement-banner .site-announcement-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-decoration: none;
  max-width: 100%;
}
.site-announcement-banner .site-announcement-link[hidden] {
  display: none;
}
.site-announcement-banner .site-announcement-link:hover {
  text-decoration: underline;
}
.site-announcement-banner .site-announcement-link img {
  max-height: 2.5rem;
  max-width: 100%;
  display: block;
}
.site-announcement-banner .site-announcement-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.site-announcement-banner .site-announcement-arrow:hover {
  background: rgba(255, 255, 255, 0.15);
}
.site-announcement-banner .site-announcement-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.site-announcement-banner .site-announcement-arrow-prev {
  left: 1rem;
}
.site-announcement-banner .site-announcement-arrow-next {
  right: 1rem;
}

/* Loading/empty states for the dynamic grids */
.carousel-loading {
  color: var(--t3);
  padding: 1rem 0;
}

/* Hover states for header/hero/feature controls that had none (found by
   hovering every clickable element on the page). The dark-mode lines are
   needed because the body.home.theme-dark colour rules above out-rank a
   plain :hover. */
.masthead .bar .logo,
.offcanvas .panel .logo {
  transition: color 0.2s ease;
}
.masthead .bar .logo:hover,
.offcanvas .panel .logo:hover,
body.home.theme-dark .masthead .bar .logo:hover,
body.home.theme-dark .offcanvas .panel .logo:hover {
  color: var(--accent);
}

.masthead .bar .hamburger,
.offcanvas .panel .close {
  transition: all 0.2s ease;
}
.masthead .bar .hamburger:hover,
.offcanvas .panel .close:hover,
body.home.theme-dark .offcanvas .panel .close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.home .carousel-hero .overlay .search.wide button {
  transition: all 0.2s ease;
}
body.home .carousel-hero .overlay .search.wide button:hover {
  background: var(--accent);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.features-grid .feature.block .carousel.snap a {
  transition: all 0.2s ease;
}
.features-grid .feature.block .carousel.snap a:hover,
body.home.theme-dark .features-grid .feature.block .carousel.snap a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Whole-card product links (Recently Added + Popular This Week). The title's
   .card-link is the card's one real link; its ::after is stretched over the
   whole card, so the photo, price and the "Shop Now" span all open it, and
   middle-click / keyboard focus behave like any link. Same rule lives in
   sass/Components/_product-card.scss for the other pages. */
.product {
  position: relative;
}
.product .card-link {
  color: inherit;
  text-decoration: none;
}
.product .card-link {
  transition: color var(--hover-fast) var(--hover-ease);
}
.product:hover .card-link {
  color: var(--accent);
}
/* Hover shadow as a layer that fades in: animating box-shadow repaints the
   whole card every frame. */
.product::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hover-slow) var(--hover-ease);
}
.product:hover::before {
  opacity: 1;
}
/* Hover area just below the card: without it the card lifts out from under
   a pointer resting on its bottom edge, drops back, and loops. */
.product::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 6px;
}
.product .product-media {
  overflow: hidden;
  border-radius: 8px;
}
.product .product-media img {
  transition: transform var(--hover-slow) var(--hover-ease);
  will-change: transform;
}
.product:hover .product-media img {
  transform: scale(1.04);
}
.product .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product .card-link:focus-visible {
  outline: none;
}
.product:has(.card-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Quick-add button (js/shop-card.js): a white circle with a bag icon on the
   photo's top-right corner. .product-media wraps the photo so the corner
   doesn't depend on the card's padding; z-index 2 lifts the button above
   the stretched .card-link::after, so it gets its own click. Same rules in
   sass/Components/_product-card.scss for the other pages. */
.product .product-media {
  position: relative;
  flex-shrink: 0;
}
.product .quick-add {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--t1);
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.product .quick-add:hover,
.product .quick-add:focus-visible,
.product .quick-add.is-added {
  background: var(--accent);
  color: var(--on-accent);
}
.product .quick-add:hover,
.product .quick-add:focus-visible {
  transform: scale(1.08);
}
.product .quick-add:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.product .quick-add.is-busy {
  cursor: progress;
  opacity: 0.75;
}
@media (max-width: 639px) {
  .product .quick-add {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product .quick-add,
  .product::before,
  .product .product-media img,
  :is(.recently-added, .popular-week) .carousel-track .product,
  :is(.recently-added, .popular-week) .carousel-track .product .btn {
    transition: none;
  }
  .product .quick-add:hover,
  .product .quick-add:focus-visible,
  .product:hover .product-media img {
    transform: none;
  }
}

/* Phones and small tablets: titles stay on one line and end in "...", like
   a fashion retailer's grid. Phones (below 640px): two cards per view in
   Recently Added and Popular This Week, with tighter padding and type so
   photo, title and price still read at 360px. */
@media (max-width: 767px) {
  /* min-width: 0 so the one-line title can't hold the card open (a flex
     item's default minimum is its content's width). */
  :is(.recently-added, .popular-week) .carousel-track .product {
    min-width: 0;
  }
  :is(.recently-added, .popular-week) .carousel-track .product h3 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 639px) {
  :is(.recently-added, .popular-week) .carousel-track {
    gap: 12px;
  }
  :is(.recently-added, .popular-week) .carousel-track .product {
    box-sizing: border-box;
    flex-basis: calc((100% - 12px) / 2);
    padding: 10px;
  }
  :is(.recently-added, .popular-week) .carousel-track .product .product-media {
    margin-bottom: 10px;
  }
  :is(.recently-added, .popular-week) .carousel-track .product h3 {
    font-size: 0.92rem;
    margin-bottom: 4px;
  }
  :is(.recently-added, .popular-week) .carousel-track .product .meta {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }
  :is(.recently-added, .popular-week) .carousel-track .product .btn {
    padding: 0.55rem 0.5rem;
    font-size: 0.85rem;
  }
}

/* Cart / account icons in the shared masthead (js/masthead.js). Same as
   sass/Components/_masthead.scss for the other pages. */
.masthead .bar .right {
  align-items: center;
}
.masthead .bar .masthead-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--t1);
  text-decoration: none;
  transition: all 0.2s ease;
}
.masthead .bar .masthead-icon:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
body.home.theme-dark .masthead .bar .masthead-icon {
  color: #e8e8e8;
}
body.home.theme-dark .masthead .bar .masthead-icon:hover {
  background: #242019;
  color: var(--accent);
}

/* Match the masthead on every other page (main.compiled.css is border-box
   throughout): without this the bar's side padding sat outside its 1200px
   max-width, so the homepage header was 32px wider than everywhere else and
   out of line with the page content below it. */
.masthead .bar {
  box-sizing: border-box;
}

/* Same rust keyboard focus ring as main.compiled.css's :focus-visible. */
.masthead :focus-visible,
.offcanvas :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Explicit header button type, set identically in
   sass/Components/_masthead.scss -- the other pages' global <button> rule
   (_buttons.scss) otherwise made their hamburger icon a different size
   from this page's. */
.masthead .bar .hamburger {
  font-size: 1rem;
  line-height: 1.2;
  color: var(--t1);
}
body.home.theme-dark .masthead .bar .hamburger {
  background: #242019;
  border-color: #2e2a24;
  color: #e8e8e8;
}


/* ---- Below Recently Added: Buy / Sell, Shop by Category, Popular This
   Week, Shop by Price, Shop by Season ---- */

/* <main> holds a .container, the full-width Buy / Sell split, then another
   .container (site-footer.css only widens body > main.container). */
body.home > main.home-main {
  width: 100%;
}

/* Section headings and spacing: same as Top Sellers. */
.home-section {
  margin-top: 1.5rem;
}

.home-section .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-section .section-head h2 {
  margin: 0.5rem 0;
}

/* Photo tiles (Buy / Sell panels, category and season cards). Each photo
   is an inline background-image in index.html (a url() set from this file
   would resolve against Styles/, not the page); the background colour shows
   if one is missing. ::before is the dark overlay; ::after deepens it on
   hover and keyboard focus by fading in (opacity animates smoothly both
   ways, a background-colour swap doesn't). */
.photo-tile {
  position: relative;
  display: flex;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background-color: #1f2937;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}

.photo-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.38);
}

/* 0.39 on top of the 0.38 tint = the old 0.62 hover darkness. */
.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.39);
  opacity: 0;
  transition: opacity var(--hover-slow) var(--hover-ease);
}

.photo-tile:hover::after,
.photo-tile:focus-visible::after {
  opacity: 1;
}

.photo-tile-img {
  transition: transform var(--hover-slow) var(--hover-ease);
  will-change: transform;
}

.photo-tile:hover .photo-tile-img,
.photo-tile:focus-visible .photo-tile-img {
  transform: scale(1.04);
}

.photo-tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Buy / Sell: two full-bleed panels, no gap. Mobile first: stacked, each
   headline and its button centred in the panel. From 1024px: side by side,
   Buy's headline at the top of its photo, Sell's at the bottom. */
.home-split {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

/* A size container, so the title can be sized from the panel's own width. */
.split-panel {
  height: 45vh;
  min-height: 300px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  box-sizing: border-box;
  align-items: center;
  container-type: inline-size;
}

/* Edge to edge, so the focus ring sits inside the panel. */
.split-panel:focus-visible {
  outline-color: #fff;
  outline-offset: -8px;
}

/* Headline with its button directly underneath. */
.split-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  text-align: center;
}

/* Always exactly two lines (.split-line each). The size fits the longer line
   ("Your Wardrobe Called.", about 11em wide) across the panel, in both
   panels, so the two stay the same size. */
.split-title {
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: min(1.9rem, 100cqi / 11.3);
  line-height: 1.12;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.split-line {
  display: block;
  white-space: nowrap;
}

/* Looks like a button; the whole panel is the link. */
.split-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.85rem 1.9rem;
  border-radius: var(--r-ctl);
  font-weight: 700;
  font-size: 1.05rem;
  flex: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: background-color var(--hover-fast) var(--hover-ease), transform var(--hover-fast) var(--hover-ease);
}

.split-panel:hover .split-btn,
.split-panel:focus-visible .split-btn {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

/* From 1024px: side by side. --hero-inset is both the gap above Buy's
   headline and the gap below Sell's, so the two mirror each other. The
   overlay darkens towards the text, on top of the even .photo-tile tint. */
@media (min-width: 1024px) {
  .home-split {
    grid-template-columns: 1fr 1fr;
    --hero-inset: clamp(1.5rem, 4vw, 3.5rem);
  }
  .split-panel {
    height: clamp(520px, 80vh, 860px);
    min-height: 0;
    padding-block: var(--hero-inset);
  }
  .split-buy {
    align-items: flex-start;
  }
  .split-sell {
    align-items: flex-end;
  }
  .split-buy::before {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 60%);
  }
  .split-sell::before {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 60%);
  }
  .split-content {
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
  }
  .split-title {
    font-size: min(3.25rem, 100cqi / 11.3);
  }

  /* Buy: headline at the top, its button underneath at the same 24px gap
     (.split-content gap) that Sell Now keeps above its headline. */

  /* Sell: button on top, headline underneath, flush with --hero-inset. */
  .split-sell .split-content {
    flex-direction: column-reverse;
  }
}

/* Shop by Category / Shop by Season: four landscape photo cards. */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.photo-card {
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  align-items: flex-start;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.photo-card-label {
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1023px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }
}

/* Shop by Price: six text cards (five price caps + Shop all), brand rust
   accent; the card fills with the accent on hover and keyboard focus.
   6 / 3 / 2 columns, so the rows are always full. */
.price-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.price-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 140px;
  padding: 1.25rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  color: var(--t1);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}

.price-card-under {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 250ms ease;
}

.price-card-amount {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.price-card:hover,
.price-card:focus-visible {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.price-card:hover .price-card-under,
.price-card:focus-visible .price-card-under {
  color: var(--on-accent);
}

.price-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

body.home.theme-dark .price-card {
  background: #1c1a17;
  border-color: #2e2a24;
  border-top-color: var(--accent);
  color: #e8e8e8;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

body.home.theme-dark .price-card-under {
  color: var(--accent);
}

body.home.theme-dark .price-card:hover,
body.home.theme-dark .price-card:focus-visible {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

body.home.theme-dark .price-card:hover .price-card-under,
body.home.theme-dark .price-card:focus-visible .price-card-under {
  color: var(--on-accent);
}

body.home.theme-dark .photo-tile:focus-visible,
body.home.theme-dark .price-card:focus-visible {
  outline-color: var(--accent);
}

body.home.theme-dark .split-panel:focus-visible {
  outline-color: #fff;
}

@media (max-width: 1023px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-tile::after,
  .photo-tile-img,
  .display-ad-img,
  .display-ad-cta,
  .display-ad-cta::after,
  .split-btn,
  .price-card,
  .price-card-under,
  .recently-viewed .rv-grid .rv .rv-img,
  .recently-viewed .rv-grid .rv .ov {
    transition: none;
  }
  .photo-tile:hover .photo-tile-img,
  .photo-tile:focus-visible .photo-tile-img,
  .display-ad:hover .display-ad-img,
  .display-ad:focus-visible .display-ad-img,
  .recently-viewed .rv-grid .rv:hover .rv-img,
  .recently-viewed .rv-grid .rv:focus-visible .rv-img {
    transform: none;
  }
}

/* ---------- Loading skeletons ----------
   Placeholder cards while listings load (.product-skeleton: the card's own
   box, so it sizes like a real card) and, on the homepage, blank Top
   Sellers pills (.slide-skeleton). A gentle opacity pulse -- compositor
   only, no repaints. .skeleton-label is the "Loading..." text for screen
   readers. Same rules in Styles/shop.css and home.css. */
.skeleton-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.product-skeleton {
  pointer-events: none;
}

.product-skeleton .sk,
.slide-skeleton {
  display: block;
  border-radius: 6px;
  background: var(--raised);
  animation: skeleton-pulse 1.1s ease-in-out infinite alternate;
}

.product-skeleton .sk-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  border-radius: 8px;
}

.product-skeleton .sk-line {
  width: 80%;
  height: 14px;
  margin-bottom: 8px;
}

.product-skeleton .sk-short {
  width: 40%;
  margin-bottom: 16px;
}

.product-skeleton .sk-btn {
  width: 100%;
  height: 40px;
  margin-top: auto;
  border-radius: 0.5rem;
}

@keyframes skeleton-pulse {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-skeleton .sk,
  .slide-skeleton {
    animation: none;
  }
}

/* Top Sellers: blank pills the size of a seller name pill. */
.top-sellers .carousel .slide.slide-skeleton {
  flex-shrink: 0;
  width: 9rem;
  height: 3rem;
  box-sizing: border-box;
  padding: 0;
  border-color: transparent;
  border-radius: 0.5rem;
}

.top-sellers .carousel .slide.slide-skeleton:nth-child(3n) {
  width: 11rem;
}

.top-sellers .carousel .slide.slide-skeleton:nth-child(3n + 1) {
  width: 7.5rem;
}

/* Stay in the Loop signup form, consent line and result message. */
.features-grid .feature-newsletter .newsletter {
  display: flex;
  gap: 0.5rem;
}

.features-grid .feature-newsletter .newsletter input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-ctl);
  background: transparent;
  color: var(--t1);
  font: inherit;
}

.features-grid .feature-newsletter .form-consent,
.features-grid .feature-newsletter .newsletter-message {
  margin: 0;
  font-size: 0.8rem;
  color: var(--t3);
}

.features-grid .feature-newsletter .form-consent a {
  color: inherit;
  text-decoration: underline;
}
