/* Site-wide design layer (option C): squared-off controls, hairline borders,
   image-led product cards, one set of rules for both modes. Colours come only
   from the tokens in tokens.css, which flip on body.theme-dark, so light and
   dark differ in colour alone. Linked last on every page.

   The wrapper's specificity (0,2,2) sits above the most specific existing
   prefix (body.home.theme-dark, 0,2,1), so this layer wins without
   !important. */

html:root body:not(.design-off) {
  background: var(--page);
  color: var(--t2);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  & :is(h1, h2, h3, h4) { color: var(--t1); }
  & :is(input, button, select, textarea) { font-family: inherit; }
  & :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

  /* ---------- Section rhythm (homepage) ---------- */
  & main :is(.recently-viewed, .top-sellers, .recently-added, .home-section) h2 {
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
  }
  & main :is(.recently-viewed, .features-grid, .top-sellers, .recently-added.product-carousel, .home-section) {
    margin-top: clamp(3rem, 6vw, 4.5rem);
  }
  & main .home-split { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

  /* ---------- Header: translucent, blurred, sticky ---------- */
  & .masthead {
    position: sticky;
    top: 0;
    background: rgba(var(--page-rgb), 0.78);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    color: var(--t1);
  }
  & .masthead .bar .logo { color: var(--t1); letter-spacing: -0.01em; }
  & .masthead .bar .logo:hover { color: var(--t1); }
  & .masthead-nav-link {
    color: var(--t2);
    background: transparent;
    border-radius: 0;
    font-weight: 600;
    box-shadow: inset 0 -2px 0 transparent;
    transition: color 150ms ease, box-shadow 150ms ease;
  }
  & .masthead-nav-link:hover { background: transparent; color: var(--t1); }
  /* Active item: the one place besides CTAs and focus that gets the accent. */
  & :is(.masthead-nav-item.open > .masthead-nav-link, .masthead-nav-link[aria-current="page"]) {
    background: transparent;
    color: var(--t1);
    box-shadow: inset 0 -2px 0 var(--accent);
  }
  & .masthead-dropdown {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--overlay-shadow);
  }
  & .masthead-dropdown-heading {
    color: var(--t1);
    font-size: var(--label-size);
    font-weight: var(--label-weight);
    text-transform: uppercase;
    letter-spacing: var(--label-tracking);
  }
  & .masthead-dropdown ul a { color: var(--t2); }
  & :is(.masthead-dropdown-heading, .masthead-dropdown ul a, .masthead-dropdown-all):hover {
    color: var(--t1);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  & .masthead-dropdown-all { color: var(--t1); border-top-color: var(--line); }

  & :is(.masthead .bar, .offcanvas .panel) .sell-now-btn {
    background: var(--t1);
    color: var(--page);
    border-radius: var(--r-ctl);
  }
  & :is(.masthead .bar, .offcanvas .panel) .sell-now-btn:is(:hover, :focus-visible) { background: var(--t0); color: var(--page); }
  & .masthead .bar :is(.masthead-icon, .hamburger) {
    background: transparent;
    border-color: transparent;
    color: var(--t2);
    border-radius: var(--r-ctl);
  }
  & .masthead .bar :is(.masthead-icon, .hamburger):hover { background: var(--raised); color: var(--t1); }
  & .masthead .bar .hamburger span { background: currentColor; }
  & .masthead .bar .cart-count { background: var(--t1); color: var(--page); }
  & .masthead .bar .has-tooltip::after { background: var(--t1); color: var(--page); box-shadow: none; }
  & :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle,
  & :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle[aria-pressed="true"] {
    background: var(--raised);
    border: 1px solid var(--line-strong);
  }
  & :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle:hover { border-color: var(--field); }
  & :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle .toggle-knob { background: var(--t1); box-shadow: none; }
  & :is(.masthead .bar, .offcanvas .panel) .mode-toggle.pill-toggle .toggle-knob :is(.sun-icon, .moon-icon) { color: var(--page); }

  /* Phone menu */
  & .offcanvas .panel { background: var(--page); color: var(--t1); border-right: 1px solid var(--line); }
  & .offcanvas :is(.panel .logo, .mobile-nav ul li a, .mobile-nav .accordion-toggle, .offcanvas-links a) { color: var(--t1); }
  & .offcanvas :is(.mobile-nav ul li a, .mobile-nav .accordion-toggle, .offcanvas-links a):is(:hover, :focus-visible) { background: var(--raised); color: var(--t1); }
  & .offcanvas-links a:is(:hover, :focus-visible) i { color: var(--t1); }
  & .offcanvas .offcanvas-label { color: var(--t3); }
  & .offcanvas :is(.offcanvas-links, .mobile-nav ul.accordion-body) { border-color: var(--line); }
  & .offcanvas .mobile-nav ul li a.accordion-all { color: var(--t1); text-decoration: underline; text-underline-offset: 3px; }
  & .offcanvas .panel .close { background: transparent; border: 1px solid var(--line-strong); color: var(--t1); border-radius: var(--r-ctl); }

  /* ---------- Hero (text sits on photos in both modes) ---------- */
  & .carousel-hero .slides .slide::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 55%, var(--hero-fade) 100%);
  }
  & .carousel-hero .slide-title { color: var(--on-photo); font-weight: 700; letter-spacing: -0.015em; }
  & .carousel-hero .slide-sub { color: #e6e6e3; }
  & .carousel-hero .slide-cta {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--on-photo);
    border-bottom: 1px solid currentColor;
  }
  & .carousel-hero .carousel-dots .dot { width: 18px; height: 2px; border-radius: 0; background: rgba(255, 255, 255, 0.35); }
  & .carousel-hero .carousel-dots .dot.active { background: var(--on-photo); }
  & .carousel-hero .overlay .search.wide {
    background: rgba(var(--page-rgb), 0.72);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 0.375rem;
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
  }
  & .carousel-hero .overlay .search.wide:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
  }
  & .carousel-hero .overlay .search.wide input {
    background: transparent;
    color: var(--t1);
    border: 0;
    border-radius: var(--r-ctl);
  }
  & .carousel-hero .overlay .search.wide input::placeholder { color: var(--t2); }
  & .carousel-hero .overlay .search.wide input:focus { outline: none; }
  & .carousel-hero .overlay .search.wide button {
    background: var(--accent);
    color: var(--on-accent);
    border-radius: var(--r-ctl);
    padding: 0.7rem 1.4rem;
    box-shadow: none;
  }
  & .carousel-hero .overlay .search.wide button:hover { background: var(--accent-hover); box-shadow: none; }

  /* ---------- Recently viewed ---------- */
  & .recently-viewed .rv-grid .rv {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  & .recently-viewed .rv-grid .rv .rv-img { transition: transform 600ms var(--ease-out); }
  & .recently-viewed .rv-grid .rv:hover .rv-img { transform: scale(1.04); }
  & .recently-viewed .rv-grid .rv .ov {
    place-content: end start;
    text-align: left;
    font-weight: 600;
    color: var(--on-photo);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0) 55%);
  }
  & .recently-viewed .rv-grid .rv .ov span:last-child { color: #d4d4d1; font-weight: 400; }

  /* ---------- Feature tiles ---------- */
  & .features-grid .feature.block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: none;
    padding: 1.25rem;
    gap: 0.85rem;
    align-content: start;
  }
  & .features-grid .promo-stack .feature.block { align-content: center; }
  & .features-grid .feature.block.feature-ad { padding: 0; overflow: hidden; align-content: stretch; }
  /* Tile titles become eyebrow labels. */
  & .features-grid .feature.block h2 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: var(--label-weight);
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    color: var(--t3);
  }
  & .features-grid .feature.block p { color: var(--t2); margin: 0; }
  & .features-grid .feature.block .carousel.snap a {
    color: var(--t1);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-ctl);
    padding: 0.5rem 0.75rem;
    font-size: 0.92rem;
  }
  & .features-grid .feature.block .carousel.snap a:hover {
    background: var(--t1);
    border-color: var(--t1);
    color: var(--page);
  }

  /* ---------- Secondary buttons: hairline, fill with text colour on hover ---------- */
  & :is(.top-sellers .section-head .cta, .recently-added .carousel-banner .banner-btn, .btn-secondary) {
    background: transparent;
    color: var(--t1);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-ctl);
    padding: 0.55rem 1rem;
    font-weight: 600;
    box-shadow: none;
    transform: none;
  }
  & :is(.top-sellers .section-head .cta, .recently-added .carousel-banner .banner-btn, .btn-secondary):hover {
    background: var(--t1);
    border-color: var(--t1);
    color: var(--page);
    box-shadow: none;
    transform: none;
  }

  /* ---------- Primary / danger buttons ---------- */
  & :is(.btn-primary, .search-panel-submit, .toolbar .search button) {
    background: var(--accent);
    color: var(--on-accent);
    border: 1px solid var(--accent);
    border-radius: var(--r-ctl);
    box-shadow: none;
    transform: none;
  }
  & :is(.btn-primary, .search-panel-submit, .toolbar .search button):is(:hover, :focus-visible) {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--on-accent);
    box-shadow: none;
    transform: none;
  }
  & .btn-danger { border-radius: var(--r-ctl); box-shadow: none; transform: none; }

  /* ---------- Form fields ---------- */
  & :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea, .custom-select-trigger) {
    background-color: var(--surface);
    border: 1px solid var(--field);
    border-radius: var(--r-ctl);
    color: var(--t1);
    box-shadow: none;
  }
  & :is(input, textarea)::placeholder { color: var(--t3); opacity: 1; }
  & :is(input:not([type="checkbox"], [type="radio"]), select, textarea, .custom-select-trigger):focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
    outline: none;
  }
  & :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--accent); }
  /* Inputs inside a bordered wrapper (price fields): the wrapper is the field. */
  & .sf-price-input input,
  & .sf-price-input input:focus { background: transparent; border: 0; box-shadow: none; }
  & .sf-price-input:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); outline: none; }
  & :is(label, .form-field label) { color: var(--t1); }

  /* ---------- Top sellers ---------- */
  & .top-sellers .carousel .slide {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--t1);
    font-weight: 700;
    box-shadow: none;
  }
  & .top-sellers .carousel .slide:hover { border-color: var(--field); background: var(--surface); box-shadow: none; }
  & :is(.top-sellers .carousel-nav, .recently-added .carousel-btn, .popular-week .carousel-btn) {
    background: rgba(var(--page-rgb), 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-strong);
    color: var(--t1);
    box-shadow: none;
  }
  & :is(.top-sellers .carousel-nav, .recently-added .carousel-btn, .popular-week .carousel-btn):hover {
    background: var(--t1);
    border-color: var(--t1);
    color: var(--page);
  }

  /* ---------- Recently added banner ---------- */
  & .recently-added .carousel-banner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: none;
  }
  & .recently-added .carousel-banner h3 { color: var(--t1); font-weight: 700; }
  & .recently-added .carousel-banner p { color: var(--t2); }

  /* ---------- Product cards, every grid and carousel: image-led, no box ---------- */
  & :is(.recently-added, .popular-week) .carousel-track { gap: 24px; }
  & .product:not(.product-detail) {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transform: none;
  }
  & .product:not(.product-detail):hover { transform: none; box-shadow: none; }
  & .product .product-media {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 0.85rem;
  }
  & .product .product-media :is(img, .product-image-placeholder) {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
    transition: transform 600ms var(--ease-out);
  }
  & .product:hover .product-media img { transform: scale(1.05); }
  & .product .product-image-placeholder { background: var(--raised); color: var(--t3); }
  & .product h3 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--t1);
    margin: 0 0 0.25rem;
  }
  & .product .meta { color: var(--t2); margin: 0; }
  & .product:hover .card-link { color: var(--t1); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  /* The whole card is already the link; per-card "Shop Now" buttons made
     every row a wall of accent colour. */
  & .product > .btn { display: none; }
  /* Add to cart sits in the image's top-right corner; accent on hover. */
  & .product .quick-add {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(var(--page-rgb), 0.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--t1);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-ctl);
    box-shadow: none;
  }
  & .product .quick-add:is(:hover, :focus-visible, .is-added) { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  & .product-skeleton { background: transparent; border: 0; box-shadow: none; }
  & .product-skeleton .sk { background: var(--raised); }

  /* ---------- Buy / Sell (on photos, so the same in both modes) ---------- */
  & .split-title { color: var(--on-photo); font-weight: 700; letter-spacing: -0.015em; }
  & .split-btn {
    background: var(--on-photo);
    color: #0a0a0a;
    border-radius: var(--r-ctl);
    font-weight: 700;
  }
  & .split-panel:is(:hover, :focus-visible) .split-btn { background: #fff; }

  /* ---------- Category / season photo cards ---------- */
  & .photo-card {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
  }
  & .photo-tile .photo-tile-img { transition: transform 700ms var(--ease-out); }
  & .photo-tile:is(:hover, :focus-visible) .photo-tile-img { transform: scale(1.04); }
  & .photo-tile::before { background-color: rgba(0, 0, 0, 0.32); }
  & .photo-tile:is(:hover, :focus-visible)::before { background-color: rgba(0, 0, 0, 0.45); }
  & .photo-card-label {
    font-size: var(--label-size);
    font-weight: var(--label-weight);
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
    color: var(--on-photo);
  }

  /* ---------- Shop by price ---------- */
  & .price-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    color: var(--t1);
    box-shadow: none;
  }
  & .price-card-under {
    color: var(--t3);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  & .price-card:is(:hover, :focus-visible) {
    background-color: var(--raised);
    border-color: var(--field);
    color: var(--t1);
  }
  & .price-card:is(:hover, :focus-visible) .price-card-under { color: var(--t2); }

  /* ---------- Floating search ---------- */
  & .floating-search-btn { border-radius: 8px; box-shadow: var(--overlay-shadow); }
  & .floating-search-btn:is(:hover, .is-active) { box-shadow: var(--overlay-shadow); }
  & .floating-search-btn:focus-visible { outline-color: var(--t1); }
  & .search-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    color: var(--t1);
  }
  & :is(.search-panel-close, .search-panel-field select, .search-panel-field input) {
    background: var(--raised);
    border-color: var(--field);
    color: var(--t1);
    border-radius: var(--r-ctl);
  }

  /* ---------- Panels on inner pages: surface, hairline, no shadow ---------- */
  & :is(.form-shell-card, .purchase-panel, .order-summary, .checkout-section, .cart-item,
        .address-card, .stat-card, .list-shell, .shop-sidebar, .shop-filters, .toolbar,
        .product-gallery-main, .detail-not-found, .cart-empty-state) {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: none;
  }
  & .shop-sidebar .shop-filters { border: 0; background: transparent; }
  /* Full-height rail, so no card corners. */
  & .dashboard-sidebar { background: var(--surface); border-color: var(--line); box-shadow: none; }
  & :is(.shop-filters, .shop-sidebar) :is(hr, .sf-group + .sf-group) { border-color: var(--line); }
  & :is(.form-shell, .dashboard-shell, main) { background: transparent; }
  & :is(.breadcrumb, .breadcrumb a, .muted, small, .small) { color: var(--t3); }
  & :is(.cart-item-title, .cart-item-title a, .order-summary-item-name) { color: var(--t1); }

  /* ---------- Footer: same layout both modes; black band in light, cool grey in
     dark. Every colour is a --footer-* token from tokens.css. ---------- */
  & .contact-footer {
    margin-top: clamp(4rem, 8vw, 6rem);
    border-top: 1px solid var(--footer-line);
    color: var(--footer-t2);
  }
  & .contact-footer .footer-cta-band { background: var(--footer); border-bottom: 1px solid var(--footer-line); }
  & .contact-footer .footer-cta-band .footer-cta-inner .cta-text {
    color: var(--footer-t3);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }
  & .contact-footer .footer-cta-band .footer-cta-inner .cta-heading { color: var(--footer-t1); font-weight: 700; }
  & .contact-footer .footer-cta-band .footer-cta-inner .cta-underline { background: var(--footer-line-strong); height: 1px; }
  & .contact-footer .footer-cta-band .footer-cta-inner .cta-button {
    background: transparent;
    color: var(--footer-t1);
    border: 1px solid var(--footer-line-strong);
    border-radius: var(--r-ctl);
  }
  & .contact-footer .footer-cta-band .footer-cta-inner .cta-button:hover {
    background: var(--footer-btn-bg);
    border-color: var(--footer-btn-bg);
    color: var(--footer-btn-fg);
    transform: none;
  }
  & .contact-footer :focus-visible { outline: 2px solid var(--footer-accent); outline-offset: 2px; }
  & .contact-footer .footer-cta-band .footer-cta-inner .cta-button:focus { outline-color: var(--footer-accent); }
  & .contact-footer .footer-dark-band { background: var(--footer); color: var(--footer-t2); }
  & .contact-footer .footer-dark-band .footer-dark-inner { padding-top: 3rem; padding-bottom: 3rem; }
  & .contact-footer .footer-dark-band .footer-dark-inner :is(.office-heading, .newsletter-heading, .social-heading) {
    color: var(--footer-t1);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
  }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-office :is(p, .office-address, .office-email) { color: var(--footer-t2); }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-office a,
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-newsletter .newsletter-cta { color: var(--footer-t2); }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-office a:hover,
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-office a:focus-visible,
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-newsletter .newsletter-cta:hover,
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-newsletter .newsletter-cta:focus-visible {
    color: var(--footer-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-contact-row .footer-office:nth-child(2),
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-divider { border-color: var(--footer-line); }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-newsletter .newsletter { max-width: 480px; }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-newsletter .newsletter input {
    background: var(--footer-input-bg);
    border: 1px solid var(--footer-input-border);
    border-radius: var(--r-ctl);
    color: var(--footer-input-fg);
  }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-newsletter .newsletter input::placeholder { color: var(--footer-t3); }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-newsletter .newsletter input:focus { border-color: var(--footer-accent); }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-newsletter .newsletter button {
    background: var(--footer-btn-bg);
    color: var(--footer-btn-fg);
    border-radius: var(--r-ctl);
  }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-newsletter .newsletter button:hover { background: var(--footer-btn-hover); transform: none; }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-follow .footer-social-icons { gap: 0.5rem; }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-follow .footer-social-icons a {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--footer-line-strong);
    border-radius: var(--r-ctl);
    color: var(--footer-t2);
    font-size: 1.14rem;
    text-decoration: none;
  }
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-follow .footer-social-icons a:hover,
  & .contact-footer .footer-dark-band .footer-dark-inner .footer-follow .footer-social-icons a:focus-visible {
    color: var(--footer-accent);
    border-color: var(--footer-accent);
    transform: none;
    text-decoration: none;
  }
  & .hk-footer { background: var(--footer); border-top: 1px solid var(--footer-line); }
  & .hk-footer .copyright { padding: 1.1rem 1rem; }
  & .hk-footer .copyright p { color: var(--footer-t3); font-size: 0.85rem; }

  /* Section, filter and menu headings take the Shop by Season label style
     (.photo-card-label); each keeps its own size and colour. Last in the
     layer so it wins ties with the per-section h2 rules above. */
  & :is(main h2:not(.cart-item-title), .recently-added .banner-content h3, .sf-legend, .accordion-toggle, .search-panel-title) {
    font-family: var(--font-heading);
    font-weight: var(--label-weight);
    letter-spacing: var(--label-tracking);
    text-transform: uppercase;
  }
}

/* Blur-up for product photos (js/shop-card.js fadeIn): the photo's box keeps
   its reserved size and a neutral colour while loading. .img-blur is the
   blurred, slightly enlarged state (the box clips the edges); on load the JS
   swaps it for .img-sharpen, which animates back to sharp. On error the class
   is just removed, so a failed photo is never left blurred. A keyframe
   animation and the `scale` property, so it never fights the cards' hover
   transforms. */
@keyframes img-sharpen {
  from { filter: blur(var(--img-blur)); scale: var(--img-blur-scale); }
  to { filter: blur(0); scale: 1; }
}
.img-blur { filter: blur(var(--img-blur)); scale: var(--img-blur-scale); }
.img-sharpen { animation: img-sharpen var(--img-sharpen-time) ease-out; }
.product .product-media img,
.product-gallery-main img,
.product-gallery-thumb img,
.rv-img { background-color: var(--img-placeholder); }
@media (prefers-reduced-motion: reduce) {
  .img-sharpen { animation: none; }
}
