/*
 * Storefront theme - afri-globe overrides.
 * Loaded after the vendor style.css (never edit that file). Keep this small:
 * everything here is a deliberate deviation from the template or a fix for a
 * template asset that does not exist in this install.
 */

/* ---- 1. Contained layout ---------------------------------------------------
 * The template's .container is 1632px (reads as full width). Match the old
 * afriglobe theme's Bootstrap container instead: measured at a 1440px
 * viewport it is 1290px wide with 15px side padding.
 */
.container {
    width: 100%;
    max-width: 1290px;
    margin-inline: auto;
    padding-inline: 15px;
}
@media (width >= 96rem) {
    .container {
        padding-inline: 15px;
    }
}

/* Coloured, rounded section bands (Best selling / Top selling / New arrivals).
 * The template lets them grow to 1728px; here they sit inside the container
 * and their content gets an inner gutter so cards don't touch the edge. */
@media (width >= 64rem) {
    .sf-band-inner {
        padding-inline: 32px;
    }
}

/* ---- 2. Header ------------------------------------------------------------ */
@media (width >= 80rem) {
    .header-top > .container > div {
        min-height: 56px;
    }
}
.sf-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    object-position: left center;
}
.sf-logo-mobile {
    height: 40px;
    max-width: 150px;
    object-position: center;
}
.sf-logo-drawer {
    height: 36px;
    max-width: 140px;
}
.sf-logo-footer {
    height: 48px;
    max-width: 200px;
    /* The uploaded mark is dark type on a transparent field. The footer
       background is the dark primary, so knock the mark out to white. */
    filter: brightness(0) invert(1);
}

/* ---- 3. Primary colour ----------------------------------------------------
 * The vendor .btn-primary shadow hardcodes the template teal as its fallback
 * colour; tie it to the admin primary instead. */
.btn-primary {
    --tw-shadow-color: color-mix(in srgb, var(--color-primary) 16%, transparent);
}

/* Press feedback for action buttons (add to cart, buy now, wishlist, quantity). */
@media (prefers-reduced-motion: no-preference) {
    @keyframes sf-tap {
        0% { transform: scale(1); }
        35% { transform: scale(0.92); }
        70% { transform: scale(1.04); }
        100% { transform: scale(1); }
    }
    .sf-tap {
        animation: sf-tap 280ms cubic-bezier(0.2, 0.7, 0.3, 1);
    }
}

/* ---- 4. Product cards ----------------------------------------------------- */
.product-card-1 .product-image {
    aspect-ratio: 1 / 1;
}
.product-card-1 .product-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.product-card-1 .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sf-cart-msg {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    line-height: 18px;
    color: var(--color-error, #ff4842);
}
.sf-cart-msg.is-visible {
    display: block;
}
.sf-cart-btn[aria-busy="true"] {
    opacity: .7;
    pointer-events: none;
}

/* Category tiles: square image box like the template's artwork */
.sf-category-tile {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.sf-category-tile img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---- 5. Hero -------------------------------------------------------------- */
.sf-hero-media {
    display: none;
}
@media (width >= 48rem) {
    .sf-hero-media {
        display: flex;
    }
}
/* The product photo fills its rounded square (cropped to fit), no white frame. */
.sf-hero-media .sf-hero-frame {
    aspect-ratio: 1 / 1;
    max-height: 440px;
    overflow: hidden;
}
.sf-hero-media .sf-hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-one-hero-slider .single-hero-slider-content h2 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hot deals: keep cards from stretching unevenly inside the slick track */
.home-one-hot-deals-slider .slick-track {
    display: flex;
}
.home-one-hot-deals-slider .slick-slide {
    height: auto;
}

/* ---- 6. Utilities the theme's Blade uses that the vendor Tailwind build
 * (compiled only from the template's own HTML) does not contain. ---------- */
.aspect-square { aspect-ratio: 1 / 1; }
.object-contain { object-fit: contain; }
.min-w-0 { min-width: 0; }
.min-h-12 { min-height: 3rem; }
.text-gray-700 { color: var(--color-gray-700, #454f5b); }
.max-w-\[440px\] { max-width: 440px; }
.max-w-\[620px\] { max-width: 620px; }
@media (width >= 64rem) {
    .lg\:py-0 { padding-block: 0; }
    .lg\:pr-\[80px\] { padding-right: 80px; }
}
@media (width >= 80rem) {
    .xl\:max-w-\[620px\] { max-width: 620px; }
}

/* Auth pages (OTP, reset, profile completion): the centred card's section padding; py-16 is not in the vendor build */
.py-16 { padding-block: 4rem; }

/* Category slider: keep tiles anchored left instead of slick's centred track */
.sf-category-slider .slick-track { margin-left: 0; }

/* Auth sidebars: an empty error line must not add a flex gap above the submit button */
.sf-auth-error:empty { display: none; }

/* Auth sidebars: success line (login form, after registering) collapses when empty */
.sf-auth-success:empty { display: none; }

/* Register phone: intl-tel-input fills the field width; the label is always floated above the dial-code picker;
 * the country list must sit above the sidebar (z-99) and not be clipped by the field. */
.register-page-sidebar .iti,
.forgot-password-page-sidebar .iti,
.sf-auth-card .iti { width: 100%; }
.register-page-sidebar .sf-phone-field label,
.forgot-password-page-sidebar .sf-phone-field label,
.sf-auth-card .sf-phone-field label { z-index: 2; pointer-events: none; }
.register-page-sidebar .iti__country-list,
.forgot-password-page-sidebar .iti__country-list,
.sf-auth-card .iti__country-list { z-index: 110; max-width: 320px; }

/* OTP resend button: disabled while the countdown runs */
.sf-otp-resend-form button:disabled { opacity: .5; cursor: not-allowed; }

/* Account shell: the template styles the active menu item on `button`; the storefront menu items are links. */
.my-account-menu li a.active {
    background-color: var(--color-primary);
    color: var(--color-white, #fff);
}

/* My Account: intl-tel-input fills the field width, label always floated above the dial-code picker. */
.sf-account-content .iti { width: 100%; }
.sf-account-content .sf-phone-field label { z-index: 2; pointer-events: none; }
.sf-account-content .iti__country-list { z-index: 110; max-width: 320px; }
.sf-account-content .sf-phone-field input:disabled { background-color: var(--color-gray-100, #f4f5f6); cursor: not-allowed; }

/* My Account: avatar circle. The current photo fills it; "Upload photo" becomes a caption along its bottom edge. */
.sf-avatar-label { position: relative; overflow: hidden; }
.sf-avatar-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; }
.sf-avatar-preview.hidden { display: none; }
.sf-avatar-label .sf-avatar-prompt { position: relative; }
.sf-avatar-label.has-image .sf-avatar-prompt {
    position: absolute; inset-inline: 0; bottom: 0; padding: 1rem 0 .5rem;
    background: linear-gradient(transparent, rgb(0 0 0 / .6)); color: #fff;
}
.sf-avatar-label.has-image .sf-avatar-prompt svg { display: none; }
.sf-avatar-label.has-image .sf-avatar-prompt span { margin-top: 0; }
/* Orders: Order Again is busy while the request runs (aria-busy set by storefront-account.js). */
.sf-order-again[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Address forms: the country list has ~250 items. Closed, it still takes layout height (it is only faded out) and stretched the page by thousands of pixels; open, it scrolls. */
.sf-account-content .nice-select .list { max-height: 280px; overflow-y: auto; }

/* Account: wishlist and track-order helpers (utilities the template's compiled CSS does not include) */
.sf-min-w-0 {
    min-width: 0;
}
.sf-wish-row .product-remove .sf-wish-btn:hover {
    color: var(--color-error, #ff4842);
}
.sf-track-hint {
    max-width: 350px;
}

/* Listing sidebar: filter rows are links (checkbox only shows state), indented per category level. */
.sf-filter-link input { pointer-events: none; }
.sf-filter-level-1 { padding-left: 1.5rem; }
.sf-filter-level-2 { padding-left: 3rem; }
.sf-color-swatch { transition: box-shadow .2s ease; }
.sf-color-swatch:hover { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-gray-300, #dfe3e8); }
.sf-color-swatch.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary); }
.sf-price-form input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.sf-price-form input[type="number"]::-webkit-outer-spin-button,
.sf-price-form input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Sticky filter sidebar scrolls on its own when taller than the viewport, so lower widgets stay reachable. */
@media (min-width: 1024px) {
    .sf-sticky-sidebar { max-height: calc(100vh - 6rem); overflow-y: auto; scrollbar-width: thin; }
}

.sf-price-form .price-range-values .input-group { min-width: 0; flex: 1 1 0; }
.sf-price-form .price-range-values .form-control { min-width: 0; width: 100%; }
.sf-color-swatch { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }

/* Product details page */
.sf-break { overflow-wrap: anywhere; }
.sf-pd-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.rich-editor-html-content img, .rich-editor-html-content iframe, .rich-editor-html-content video { max-width: 100%; height: auto; }
.rich-editor-html-content table { max-width: 100%; }

/* Product details: variant picker */
.sf-pd-swatch { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.sf-add-cart:disabled, .sf-buy-now:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.sf-add-cart[aria-busy="true"], .sf-buy-now[aria-busy="true"] { opacity: .6; pointer-events: none; }
.sf-product-msg:empty { display: none; }
.quantity-input { min-width: 0; }

/* Hover tints follow the store's primary colour (the template hardcodes its own green in these utilities). */
.group:hover .sf-hover-tint { background-color: color-mix(in srgb, var(--color-primary) 8%, transparent); }
.group:has(input:checked):hover .sf-filter-tint { background-color: color-mix(in srgb, var(--color-primary) 8%, transparent); }

/* Cart page: one column on a phone, items plus summary on a wide screen. */
.sf-cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1100px) {
    .sf-cart-layout { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr); }
}
.sf-cart-items { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sf-cart-shop { border: 1px solid #dfe3e8; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sf-cart-shop-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sf-cart-shop-head a, .sf-cart-shop-head span { font-weight: 700; color: var(--color-primary); overflow-wrap: anywhere; }
.sf-cart-item { display: grid; grid-template-columns: 18px 88px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; }
.sf-cart-item.is-unavailable { opacity: .55; }
.sf-cart-thumb { position: relative; display: block; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #f4f3f5; }
.sf-cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-cart-thumb span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(255 255 255 / .72); font-size: 12px; font-weight: 700; }
.sf-cart-body { min-width: 0; }
.sf-cart-name { display: block; font-weight: 600; color: inherit; overflow-wrap: anywhere; }
.sf-cart-variant, .sf-cart-tax, .sf-cart-ship-cost, .sf-cart-free { font-size: 13px; line-height: 1.4; color: #637381; margin: 4px 0 0; }
.sf-cart-note { font-size: 13px; color: #ff4842; margin: 4px 0 0; }
.sf-cart-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 8px; }
.sf-cart-price, .sf-cart-line { font-weight: 700; margin: 0; }
.sf-cart-stepper { display: inline-flex; align-items: center; border: 1px solid #dfe3e8; border-radius: 80px; padding: 6px 10px; }
.sf-cart-stepper input { width: 32px; border: 0; text-align: center; font-weight: 700; background: transparent; padding: 0; }
.sf-cart-qty { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; cursor: pointer; }
.sf-cart-ship { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.sf-cart-ship select { width: 100%; border: 1px solid #dfe3e8; border-radius: 12px; padding: 10px 12px; background: #fff; }
.sf-cart-shop.sf-attention { outline: 2px solid var(--web-primary, #00A758); outline-offset: 4px; border-radius: 16px; transition: outline-color .3s; }
.sf-cart-empty { border: 1px solid #dfe3e8; border-radius: 16px; padding: 40px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sf-cart-note-field { display: flex; flex-direction: column; gap: 8px; font-weight: 600; }
.sf-cart-note-field span { font-weight: 400; color: #637381; }
.sf-cart-note-field textarea { min-height: 96px; border: 1px solid #dfe3e8; border-radius: 12px; padding: 12px; font-weight: 400; resize: vertical; }
.sf-cart-summary { border: 1px solid #dfe3e8; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sf-cart-summary dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sf-cart-summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.sf-cart-summary dt { color: #637381; }
.sf-cart-summary dd { margin: 0; font-weight: 600; }
.sf-cart-grand { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 18px; margin: 0; padding-top: 12px; border-top: 1px solid #dfe3e8; }
.sf-cart-saved { margin: 0; color: var(--color-primary); font-weight: 600; }
.sf-cart-coupon { display: flex; border: 1px solid #dfe3e8; border-radius: 80px; overflow: hidden; }
.sf-cart-coupon input { flex: 1; min-width: 0; border: 0; padding: 10px 16px; background: transparent; }
.sf-cart-coupon button { border: 0; background: var(--color-primary); color: #fff; font-weight: 700; padding: 0 18px; cursor: pointer; }
.sf-cart-coupon-on { display: flex; justify-content: space-between; gap: 12px; border: 1px solid #dfe3e8; border-radius: 80px; padding: 10px 16px; }
.sf-cart-checkout-off { opacity: .5; pointer-events: none; }

/* Cart count on the header cart button. */
.sf-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.sf-cart-count.is-empty { display: none; }

/* Same badge on the phone nav for wishlist and orders. */
.sf-nav-count {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.sf-nav-count.is-empty { display: none; }

.sf-prose > :first-child { margin-top: 0; }
.sf-prose h1,
.sf-prose h2 { font-size: 22px; line-height: 1.35; font-weight: 700; margin: 28px 0 10px; }
.sf-prose h3,
.sf-prose h4 { font-size: 18px; line-height: 1.4; font-weight: 700; margin: 20px 0 8px; }
.sf-prose p { margin: 0 0 14px; line-height: 1.7; }
.sf-prose strong,
.sf-prose b { font-weight: 700; }
.sf-prose ul { margin: 0 0 16px; padding: 0; list-style: none; }
.sf-prose li { position: relative; padding-left: 22px; margin-bottom: 8px; line-height: 1.6; }
.sf-prose li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 99px; background: var(--color-primary); }

/* ---- Compare ---------------------------------------------------------- */
/* On the list: the card's compare button fills with the primary colour. */
.sf-compare-btn.product-btn-action-item.is-active { background: var(--color-primary); }
.sf-compare-btn.product-btn-action-item.is-active i { color: #fff; }
.sf-compare-btn.product-compare-btn.is-active { color: var(--color-primary); font-weight: 600; }
.sf-compare-btn[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Three equal product columns; the page scrolls sideways on a phone. */
.sf-compare-table { min-width: 720px; table-layout: fixed; }
.sf-compare-table td { vertical-align: top; }
.sf-compare-table td:first-child { width: 150px; vertical-align: middle; }
@media (max-width: 767px) {
    .sf-compare-table td:first-child { width: 96px; font-size: 13px; }
}

/* ---- Toasts (storefront-toast.js) -------------------------------------- */
/* White cards with a coloured icon, stacked at the top right (top centre on a
   phone). A thin bar shows the time left; hovering pauses it. */
.sf-toasts {
    position: fixed; z-index: 10000; top: 20px; right: 20px;
    display: flex; flex-direction: column; gap: 10px;
    width: min(380px, calc(100vw - 32px)); pointer-events: none;
}
@media (max-width: 575px) {
    .sf-toasts { top: 12px; right: 16px; left: 16px; width: auto; }
}
.sf-toast {
    --sf-toast-tone: var(--color-info);
    --sf-toast-soft: color-mix(in srgb, var(--sf-toast-tone) 12%, #fff);
    position: relative; overflow: hidden; pointer-events: auto;
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 12px 16px 14px;
    background: #fff; color: #1c252e;
    border: 1px solid rgba(145, 158, 171, .2); border-radius: 14px;
    box-shadow: 0 12px 32px -8px rgba(28, 37, 46, .18), 0 2px 6px rgba(28, 37, 46, .06);
    animation: sf-toast-in .32s cubic-bezier(.21, 1.02, .73, 1) both;
    transition: opacity .2s ease, transform .2s ease, height .26s ease, margin .26s ease, padding .26s ease;
}
.sf-toast--success { --sf-toast-tone: var(--color-success-dark); }
.sf-toast--error { --sf-toast-tone: var(--color-error); }
.sf-toast--warning { --sf-toast-tone: var(--color-warning-dark); }
.sf-toast--info { --sf-toast-tone: var(--color-info); }
.sf-toast__icon {
    flex: none; width: 32px; height: 32px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--sf-toast-soft); color: var(--sf-toast-tone); font-size: 18px;
}
.sf-toast__body { flex: 1; min-width: 0; padding-top: 5px; }
.sf-toast__title { margin: 0; font-size: 14px; line-height: 22px; font-weight: 600; color: #1c252e; overflow-wrap: anywhere; }
.sf-toast__text { margin: 2px 0 0; font-size: 13px; line-height: 20px; color: #637381; overflow-wrap: anywhere; }
.sf-toast__close {
    flex: none; width: 28px; height: 28px; margin: 2px 0 0; border: 0; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: #919eab; font-size: 16px; cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.sf-toast__close:hover { background: #f4f6f8; color: #1c252e; }
.sf-toast__close:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.sf-toast__bar {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    background: var(--sf-toast-tone); opacity: .55; transform-origin: left center;
    animation: sf-toast-time linear forwards;
}
.sf-toast.is-paused .sf-toast__bar { animation-play-state: paused; }
.sf-toast.is-leaving { opacity: 0; transform: translateX(16px) scale(.98); margin-top: -10px; padding-top: 0; padding-bottom: 0; }
@keyframes sf-toast-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes sf-toast-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) {
    .sf-toast { animation: none; transition: none; }
    .sf-toast__bar { display: none; }
}

/* ---- Checkout --------------------------------------------------------- */
.sf-step-dot {
    flex: none; width: 32px; height: 32px; border-radius: 99px;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; border: 2px solid #dfe3e8; color: #919eab; background: #fff;
}
.sf-step-current { border-color: var(--color-primary); color: var(--color-primary); }
.sf-step-done { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.sf-checkout-steps .sf-step-line { min-width: 16px; }
@media (max-width: 575px) { .sf-checkout-steps .sf-step-line { display: none; } .sf-checkout-steps { flex-wrap: wrap; gap: 12px; } }
.sf-address-card { transition: border-color .15s ease, background-color .15s ease; }
.sf-address-card:has(input:checked) { background: color-mix(in srgb, var(--color-primary) 6%, #fff); }
.payment-method.selected { border-color: var(--color-primary); }
#sf-summary-action[disabled] { opacity: .55; cursor: not-allowed; }
#sf-summary-action[aria-busy="true"], .sf-proceed-checkout[aria-busy="true"] { opacity: .7; pointer-events: none; }
.sf-phone-field .iti { width: 100%; }


/* Utilities the new pages use that the template's prebuilt CSS does not ship
   (it only contains classes the template's own pages used). */
.size-16 { width: 4rem; height: 4rem; }
.h-px { height: 1px; }
.min-w-0 { min-width: 0; }
.flex-none { flex: none; }
.mt-3 { margin-top: .75rem; }
.self-start { align-self: flex-start; }
.max-w-\[260px\] { max-width: 260px; }
.max-w-\[360px\] { max-width: 360px; }
.max-w-\[520px\] { max-width: 520px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Checkout address forms: native controls in the store colour; the country /
   zip dropdown (nice-select) fills its column like the text fields. */
.sf-address-box input[type="radio"], .sf-address-box input[type="checkbox"], #sf-billing-same { accent-color: var(--color-primary); width: 18px; height: 18px; }
.sf-address-box .nice-select { width: 100%; height: 56px; line-height: 54px; border-radius: 80px; float: none; }
.sf-address-box .nice-select .list { width: 100%; max-height: 280px; overflow-y: auto; }
.sf-address-box .sf-native-select { height: 56px; }
.sf-address-card:has(input:checked) { border-color: var(--color-primary); }

/* ---- Product card: the Add to Cart row must fit narrow cards ------------
   The heart plus a full "Add to Cart" button is wider than a slider card, and
   .btn does not shrink, so it spilled over the next card. The row now shrinks;
   on a narrow card the button shows its cart icon and keeps the label for
   screen readers. Sized by the card itself (container query), not the screen. */
.product-content { container-type: inline-size; }
.product-content .btn-section { min-width: 0; }
.product-content .btn-section > .btn { min-width: 0; padding-left: 14px; padding-right: 14px; overflow: hidden; }
.product-content .btn-section > .btn > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@container (max-width: 250px) {
    .product-content .btn-section { column-gap: 10px; }
    .product-content .btn-section > .btn > span {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
}

/* ---- Listing filters on phones and tablets: a slide-in panel ------------ */
.sf-filter-toggle, .sf-filter-close { display: none; }
@media (max-width: 1023.98px) {
    .sf-filter-toggle { display: inline-flex; align-items: center; gap: 8px; }
    .sf-filter-close {
        display: inline-flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: 99px; background: #fff; border: 1px solid #dfe3e8;
    }
    .sf-filter-panel {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 1001;
        width: min(380px, 88vw); background: #fff; overflow-y: auto; overscroll-behavior: contain;
        padding: 16px; box-shadow: 8px 0 32px rgba(28, 37, 46, .18);
        transform: translateX(-105%); visibility: hidden;
        transition: transform .28s ease, visibility .28s;
    }
    .sf-filter-panel.is-open { transform: none; visibility: visible; }
    .sf-filter-panel .sidebar { position: static !important; }
    /* The reveal animation never fires inside an off-screen panel. */
    .sf-filter-panel .wow { visibility: visible !important; animation: none !important; }
    .sf-filter-overlay:not([hidden]) {
        position: fixed; inset: 0; z-index: 1000; background: rgba(22, 28, 36, .48);
    }
    body.sf-filter-lock { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .sf-filter-panel { transition: none; } }


/* A page's main heading is an h1 for search engines; .sf-h3 keeps it at the template's h3 size. */
h1.sf-h3 { font-size: var(--text-2xl); line-height: calc(var(--spacing) * 9); }
@media (min-width: 64rem) { h1.sf-h3 { font-size: 32px; line-height: calc(var(--spacing) * 12); } }
h1.sf-h2 { font-size: 32px; line-height: 42px; }
@media (min-width: 64rem) { h1.sf-h2 { font-size: var(--text-5xl); line-height: calc(var(--spacing) * 16); } }
