/* The storefront themes share the existing catalog, slider, cart, and checkout. */
body[class*="storefront-theme-"]:not(.storefront-theme-classic) {
    --sf-accent: var(--brand-color, #f37021);
    --sf-ink: #172033;
    --sf-muted: #667184;
    --sf-border: #e7e9ed;
    --sf-surface: #fff;
    --sf-soft: #f7f8fa;
    --sf-footer: #242a30;
    background: #fff;
}
body[class*="storefront-theme-"].storefront-theme-smart-deals { --sf-soft: #fff8f3; }
body[class*="storefront-theme-"].storefront-theme-curated-essentials { --sf-ink: #3b2140; --sf-soft: #faf5fa; --sf-footer: #381b40; background: #fcf9fc; }
body[class*="storefront-theme-"].storefront-theme-discovery-tiles { --sf-soft: #f6f7f7; }
body[class*="storefront-theme-"]:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) { --sf-soft: #f5f6f6; background: #fcfcfc; }
body[class*="storefront-theme-"]:not(.storefront-theme-classic) .page-wrapper > main.main { padding: 0; }
.storefront-shell { width: min(1440px, calc(100% - 4rem)); margin-inline: auto; }

/* Header uses the same uploaded logo, catalog, search, account, and cart drawer on every theme. */
.storefront-header { background: #fff; color: var(--sf-ink); border-bottom: 1px solid var(--sf-border); }
.storefront-topline { min-height: 3.2rem; background: var(--sf-soft); color: var(--sf-muted); font-size: 1.15rem; font-weight: 600; }
.storefront-topline .storefront-shell, .storefront-topline-benefits { display: flex; align-items: center; justify-content: space-between; gap: 1.8rem; min-height: 3.2rem; }
.storefront-topline-benefits a { color: inherit; white-space: nowrap; }
.storefront-topline-benefits a:hover { color: var(--sf-accent); }
.storefront-header-main { display: grid; grid-template-columns: minmax(170px, 240px) minmax(260px, 1fr) auto; align-items: center; gap: clamp(2rem, 4vw, 6rem); min-height: 8.6rem; }
.storefront-header .mobile-menu-toggler { display: none; }
.storefront-logo { display: inline-flex; align-items: center; min-width: 0; color: var(--sf-ink); text-decoration: none; }
.storefront-logo:hover { color: var(--sf-ink); }
.storefront-logo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 6.4rem; object-fit: contain; object-position: left center; }
.storefront-logo span { display: flex; min-width: 0; flex-direction: column; gap: .25rem; }
.storefront-logo strong { overflow: hidden; color: var(--sf-ink); font-size: clamp(2rem, 2vw, 2.8rem); font-weight: 800; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.storefront-logo small { overflow: hidden; color: var(--sf-muted); font-size: 1rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.storefront-search { display: flex; width: 100%; max-width: 690px; height: 4.6rem; margin: 0 auto; overflow: hidden; border: 1px solid #dce0e7; border-radius: .9rem; background: #fff; transition: border-color .2s, box-shadow .2s; }
.storefront-search:focus-within { border-color: var(--sf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sf-accent) 12%, transparent); }
.storefront-search input { flex: 1; width: 1px; min-width: 0; border: 0; outline: 0; padding: 0 1.6rem; background: transparent; color: var(--sf-ink); font-size: 1.3rem; }
.storefront-search button { display: inline-flex; min-width: 10rem; align-items: center; justify-content: center; gap: .7rem; border: 0; background: var(--sf-accent); color: #fff; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.storefront-search button:hover { filter: brightness(.93); }
.storefront-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2.4rem; white-space: nowrap; }
.storefront-header-actions > a, .storefront-header-actions .cart-dropdown > .dropdown-toggle { display: inline-flex; align-items: center; gap: .7rem; padding: .6rem 0; color: var(--sf-ink); font-size: 1.25rem; font-weight: 700; }
.storefront-header-actions > a:hover, .storefront-header-actions .cart-dropdown > .dropdown-toggle:hover { color: var(--sf-accent); }
.storefront-header-actions > a i, .storefront-header-actions .cart-dropdown > .dropdown-toggle i { font-size: 2.5rem; }
.storefront-header-actions .header-dropdown-link, .storefront-header-actions .compare-dropdown, .storefront-header-actions .cart-dropdown { display: flex; align-items: center; margin: 0; padding: 0; }
.storefront-header-actions .cart-dropdown { position: relative; }
.storefront-header-actions .cart-dropdown .cart-count { position: absolute; top: -.3rem; left: 1.6rem; display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: 50%; background: var(--sf-accent); color: #fff; font-size: 1.05rem; line-height: 1; }
.storefront-header-actions .cart-dropdown.show .dropdown-menu { position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 2100; width: min(42rem, 100vw); height: 100dvh; max-height: none; margin: 0; transform: none; }
.storefront-header-actions .cart-dropdown.show .cart-drawer-overlay { z-index: 2000; }
.storefront-nav { border-top: 1px solid var(--sf-border); }
.storefront-nav { position: relative; z-index: 40; }
.storefront-nav-inner { display: flex; min-height: 5.6rem; align-items: center; gap: 2rem; }
.storefront-nav-links { display: flex; flex: 1; min-width: 0; align-items: center; gap: clamp(1.6rem, 2.2vw, 3.5rem); overflow-x: auto; scrollbar-width: none; }
.storefront-nav-links::-webkit-scrollbar { display: none; }
.storefront-nav a { flex: none; color: var(--sf-ink); font-size: 1.22rem; font-weight: 700; white-space: nowrap; }
.storefront-nav a:hover, .storefront-nav a[aria-current="page"] { color: var(--sf-accent); }
.storefront-category-dropdown { position: relative; align-self: stretch; flex: none; }
.storefront-nav .storefront-nav-all { display: inline-flex; height: 100%; min-width: 26rem; align-items: center; justify-content: center; gap: 1rem; padding: 0 2.5rem; border-radius: .8rem .8rem 0 0; background: var(--sf-accent); color: #fff; cursor: pointer; font-size: 1.4rem; font-weight: 800; list-style: none; white-space: nowrap; }
.storefront-theme-sidebar-market .storefront-nav .storefront-nav-all { min-width: 22rem; }
.storefront-nav .storefront-nav-all .icon-list { font-size: 1.7rem; }
.storefront-nav .storefront-nav-all::-webkit-details-marker { display: none; }
.storefront-nav .storefront-nav-all:hover { color: #fff; filter: brightness(.93); }
.storefront-nav .storefront-nav-all .icon-angle-down { margin-left: .5rem; font-size: 1rem; transition: transform .2s; }
.storefront-category-dropdown[open] > .storefront-nav-all .icon-angle-down { transform: rotate(180deg); }
.storefront-category-panel { position: absolute; top: 100%; left: 0; z-index: 110; width: min(34rem, calc(100vw - 4rem)); max-height: min(65vh, 60rem); overflow-y: auto; border: 1px solid var(--sf-border); border-radius: 0 0 1rem 1rem; padding: .7rem 0; background: #fff; box-shadow: 0 1.5rem 3rem #17203329; }
.storefront-nav .storefront-category-panel a, .storefront-category-accordion > summary { display: flex; width: 100%; min-height: 3.9rem; align-items: center; justify-content: space-between; gap: .7rem; padding: .8rem 1.4rem; border-bottom: 1px solid #f0f1f3; color: var(--sf-ink); font-size: 1.2rem; font-weight: 650; cursor: pointer; white-space: normal; }
.storefront-nav .storefront-category-panel a:hover, .storefront-category-accordion > summary:hover { background: var(--sf-soft); color: var(--sf-accent); }
.storefront-category-accordion > summary { list-style: none; }
.storefront-category-accordion > summary::-webkit-details-marker { display: none; }
.storefront-category-accordion[open] > summary i { transform: rotate(180deg); }
.storefront-category-panel .storefront-subcategory-panel { padding: .4rem 0 .7rem 1.2rem; background: #fafbfc; }
.storefront-nav .storefront-subcategory-panel a { min-height: 3.2rem; border: 0; color: #596477; font-size: 1.1rem; font-weight: 600; }
.storefront-nav .storefront-category-panel .storefront-all-products { color: var(--sf-accent); font-weight: 800; }
.storefront-category-panel .storefront-category-leaf:last-child, .storefront-category-accordion:last-child > summary { border-bottom: 0; }
.storefront-theme-curated-essentials .storefront-topline, .storefront-theme-curated-essentials .storefront-nav { background: #421f49; color: #fff; }
.storefront-theme-curated-essentials .storefront-topline a, .storefront-theme-curated-essentials .storefront-nav a { color: #fff; }
.storefront-theme-curated-essentials .storefront-nav .storefront-nav-all { background: color-mix(in srgb, var(--sf-accent) 74%, #421f49); color: #fff; }
.storefront-theme-curated-essentials .storefront-nav a:hover, .storefront-theme-curated-essentials .storefront-nav a[aria-current="page"] { color: #ffcaa6; }
.storefront-theme-discovery-tiles .storefront-nav a[aria-current="page"] { align-self: stretch; display: inline-flex; align-items: center; border-bottom: 2px solid var(--sf-accent); }
:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-nav { border-top: 0; background: #272d31; }
:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-nav a { color: #fff; }
:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-nav .storefront-nav-all { background: var(--sf-accent); color: #fff; }
:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-nav a:hover, :is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-nav a[aria-current="page"] { color: #ffc09b; }
.storefront-theme-curated-essentials .storefront-nav .storefront-category-panel a,
:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-nav .storefront-category-panel a { color: var(--sf-ink); }
.storefront-theme-curated-essentials .storefront-nav .storefront-category-panel a:hover,
:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-nav .storefront-category-panel a:hover { color: var(--sf-accent); }

/* Uploaded banners are image only. The arrangements change with each theme. */
.sf-home { --sf-hero-height: clamp(240px, 24vw, 340px); --sf-promo-gap: 1.2rem; padding-top: 1.8rem; padding-bottom: 3rem; color: var(--sf-ink); }
.sf-home a:hover { text-decoration: none; }
.sf-feature-layout { display: grid; gap: 1.2rem; }
.sf-feature-carousel { min-width: 0; }
.sf-slider-layout { display: grid; grid-template-columns: 1fr; align-items: start; gap: 1.2rem; min-width: 0; }
.sf-slider-layout.has-promos { grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); }
.sf-slider-main { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e9edf0; border-radius: 1.1rem; }
.sf-slide-image { position: relative; display: block; width: 100%; height: auto; overflow: hidden; }
.sf-slide-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.sf-slider-promos { display: grid; grid-template-rows: repeat(2, minmax(0, auto)); align-content: start; gap: var(--sf-promo-gap); min-width: 0; height: auto; }
.sf-slider-promos .sf-promo-carousel { height: auto; min-height: 0; overflow: hidden; border: 1px solid #e9edf0; border-radius: 1.1rem; }
.sf-slider-promos .owl-stage-outer, .sf-slider-promos .owl-stage, .sf-slider-promos .owl-item, .sf-slider-promos .sf-slide-image { height: auto; }
.sf-slider-promos.is-single { grid-template-rows: 1fr; }
.sf-slider-promos.is-single .sf-promo-carousel { grid-column: 1 / -1; }
.sf-main-carousel .owl-nav button.owl-prev,
.sf-main-carousel .owl-nav button.owl-next { position: absolute; top: 50%; margin-top: -1.8rem; display: grid; width: 3.6rem; height: 3.6rem; place-items: center; border: 1px solid #fff9; border-radius: 50%; background: #172033b8; color: #fff; font-size: 1.7rem; box-shadow: 0 .4rem 1.3rem #17203330; transition: background .2s, transform .2s; }
.sf-main-carousel .owl-nav button.owl-prev { left: 1.2rem; }
.sf-main-carousel .owl-nav button.owl-next { right: 1.2rem; }
.sf-main-carousel .owl-nav button:hover { background: var(--sf-accent); transform: scale(1.06); }
.sf-main-carousel .owl-dots { position: absolute; right: 0; bottom: 1rem; left: 0; text-align: center; }
.sf-main-carousel .owl-dots button.owl-dot span { width: .8rem; height: .8rem; margin: 0 .35rem; background: #fff9; box-shadow: 0 .1rem .4rem #17203370; }
.sf-main-carousel .owl-dots button.owl-dot.active span { width: 2.1rem; border-radius: 99rem; background: var(--sf-accent); }
.sf-promo-carousel .owl-item.animated { animation-duration: .55s; animation-fill-mode: both; }
.sf-promo-carousel .owl-item.sf-promo-fade-out { animation-name: sf-promo-fade-out; }
.sf-promo-carousel .owl-item.sf-promo-fade-in { animation-name: sf-promo-fade-in; }
.sf-promo-carousel .owl-item.sf-promo-rise-out { animation-name: sf-promo-rise-out; }
.sf-promo-carousel .owl-item.sf-promo-fade-rise-in { animation-name: sf-promo-fade-rise-in; }
@keyframes sf-promo-fade-out { to { opacity: 0; } }
@keyframes sf-promo-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sf-promo-rise-out { to { opacity: 0; transform: translateY(-1.2rem); } }
@keyframes sf-promo-fade-rise-in { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: translateY(0); } }
.sf-home--curated-essentials .sf-slider-main, .sf-home--curated-essentials .sf-slider-promos .sf-promo-carousel { border-radius: 1.5rem; box-shadow: 0 1rem 3rem #421f4912; }
.sf-home--discovery-tiles .sf-slider-layout.has-promos { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.sf-home--discovery-tiles .sf-slider-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.sf-home--discovery-tiles .sf-slider-promos a { height: 100%; }
.sf-home--sidebar-market .sf-feature-layout { grid-template-columns: 22rem minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; }
.sf-home--sidebar-market .sf-sidebar-categories { grid-column: 1; grid-row: 1 / span 2; align-self: stretch; }
.sf-home--sidebar-market .sf-feature-carousel { grid-column: 2; grid-row: 1; }
.sf-home--sidebar-market .sf-slider-layout.has-promos { grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); }
.sf-home--sidebar-market { --sf-hero-height: clamp(240px, 23vw, 320px); }
.sf-home--sidebar-market .sf-slider-promos { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.sf-shopping-benefits { display: grid; grid-column: 2; grid-row: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.sf-shopping-benefit { display: flex; min-width: 0; align-items: center; gap: 1rem; padding: 1.2rem; border: 1px solid transparent; border-radius: 1rem; box-shadow: 0 .6rem 1.8rem #17203312; }
.sf-shopping-benefit:nth-child(1) { border-color: #bde8d3; background: linear-gradient(135deg, #e8fff3, #f7fffb); }
.sf-shopping-benefit:nth-child(2) { border-color: #ffdbad; background: linear-gradient(135deg, #fff2df, #fffaf1); }
.sf-shopping-benefit:nth-child(3) { border-color: #cbd8ff; background: linear-gradient(135deg, #edf1ff, #fafbff); }
.sf-shopping-benefit-icon { display: grid; width: 4.2rem; height: 4.2rem; flex: 0 0 4.2rem; place-items: center; border-radius: 50%; background: #ffffffc9; color: var(--sf-accent); font-size: 1.9rem; box-shadow: 0 .2rem .7rem #17203312; }
.sf-shopping-benefit h2 { margin: 0; color: var(--sf-ink); font-size: 1.25rem; font-weight: 800; line-height: 1.35; }
.sf-shopping-benefit p { margin: .35rem 0 0; color: var(--sf-muted); font-size: 1.05rem; line-height: 1.45; }
.sf-sidebar-categories { position: relative; z-index: 12; border: 1px solid var(--sf-border); border-radius: 1rem; background: #fff; box-shadow: 0 1rem 3rem #1720330c; }
.sf-sidebar-categories a { display: flex; min-height: 4.6rem; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1.4rem; border-bottom: 1px solid #f0f0f0; color: var(--sf-ink); font-size: 1.2rem; }
.sf-sidebar-categories a:last-child { border-bottom: 0; }
.sf-sidebar-categories a:hover { padding-left: 1.7rem; color: var(--sf-accent); }
.sf-sidebar-category-row > summary { display: flex; min-height: 4.2rem; align-items: center; justify-content: space-between; gap: .8rem; padding: .8rem 1.4rem; border-bottom: 1px solid #f0f0f0; color: var(--sf-ink); cursor: pointer; font-size: 1.2rem; list-style: none; }
.sf-sidebar-category-row > summary::-webkit-details-marker { display: none; }
.sf-sidebar-category-row { position: relative; }
.sf-sidebar-category-row[open] > summary { color: var(--sf-accent); }
.sf-sidebar-category-row[open] > summary i { transform: rotate(180deg); }
.sf-sidebar-subcategories { position: absolute; top: 0; left: calc(100% - .1rem); z-index: 15; width: min(27rem, calc(100vw - 28rem)); max-height: min(50rem, 65vh); overflow-y: auto; border: 1px solid var(--sf-border); border-radius: .8rem; padding: .5rem; background: #fff; box-shadow: 0 1.4rem 3rem #17203325; }
.sf-sidebar-categories .sf-sidebar-subcategories a { min-height: 3.3rem; border-bottom: 0; color: #596477; font-size: 1.1rem; }
.sf-sidebar-categories .sf-sidebar-subcategories a:hover { color: var(--sf-accent); }
.mobile-category-details > summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; color: #333; cursor: pointer; font-size: 1.4rem; font-weight: 700; list-style: none; }
.mobile-category-details > summary::-webkit-details-marker { display: none; }
.mobile-category-details[open] > summary { color: var(--brand-color, #f37021); }
.mobile-category-details[open] > summary i { transform: rotate(180deg); }
.mobile-subcategory-links { padding: .3rem 0 .8rem 1.2rem; background: #f7f8fb; }
.mobile-category-details .mobile-subcategory-links a { display: block; padding: .8rem 2rem; color: #4e5968; font-size: 1.25rem; }
.mobile-category-details .mobile-subcategory-links a:hover { color: var(--brand-color, #f37021); }
.sf-category-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .7rem; margin: 1.2rem 0 2.3rem; }
.sf-category-strip a { display: flex; min-width: 0; min-height: 8.2rem; align-items: center; justify-content: flex-start; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--sf-border); border-radius: .9rem; background: #fff; color: var(--sf-ink); text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; }
.sf-category-strip a:hover { border-color: var(--sf-accent); box-shadow: 0 .8rem 2rem #1720330d; color: var(--sf-accent); transform: translateY(-2px); }
.sf-category-icon { display: grid; width: 4.2rem; height: 4.2rem; flex: none; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--sf-accent) 9%, white); color: var(--sf-accent); font-size: 1.7rem; }
.sf-category-icon img { width: 3.3rem; height: 3.3rem; object-fit: contain; }
.sf-category-strip strong { overflow: hidden; max-width: 100%; font-size: 1.13rem; line-height: 1.25; text-overflow: ellipsis; }
.sf-home--curated-essentials .sf-category-strip a { border-color: #eadfeb; background: #fffafd; }
.sf-home--discovery-tiles .sf-category-strip a { border-radius: .8rem; }

/* Live products use the original card, including stock alerts and add-to-cart. */
.sf-section { margin: 2.6rem 0 3.4rem; }
.sf-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-bottom: 1.5rem; }
.sf-section-heading h2, .sf-section-heading h3 { margin: 0; color: var(--sf-ink); font-size: clamp(2.2rem, 2.7vw, 3.3rem); font-weight: 800; line-height: 1.15; }
.sf-section-heading h3 { font-size: 2.2rem; }
.sf-section-heading > a { flex: none; color: var(--sf-accent); font-size: 1.25rem; font-weight: 800; }
.sf-section-heading > a:hover { text-decoration: underline; }
.sf-product-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; }
.sf-product-card { min-width: 0; max-width: 100%; border: 1px solid #dfe3e8; border-radius: 1rem; background: #fff; box-shadow: 0 .4rem 1.4rem #1720330d; transition: border-color .2s, box-shadow .2s, transform .2s; }
.sf-product-card:hover { border-color: color-mix(in srgb, var(--sf-accent) 48%, #dfe3e8); box-shadow: 0 1.2rem 2.6rem #1720331a; transform: translateY(-3px); }
.sf-product-card > .product { display: flex; width: 100%; min-width: 0; height: 100%; flex-direction: column; margin: 0; }
.sf-product-card .product-media { min-height: 14rem; border-radius: 1rem 1rem 0 0; background: #fff; }
.sf-product-card .product-image { width: 100%; height: 14rem; padding: .5rem; object-fit: contain; }
.sf-product-card .product > form { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.sf-product-card .product-body-align { flex: 1; }
.sf-product-card .product-body { padding: .9rem 1rem; text-align: center; }
.sf-product-card .product-title { display: -webkit-box; min-height: 3.4rem; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; color: var(--sf-ink); font-size: 1.2rem; font-weight: 800; line-height: 1.38; }
.sf-product-card .product-title a { color: inherit; font-weight: inherit; }
.sf-product-card .product-title a:hover { color: var(--sf-accent); }
.sf-product-card .product-cat, .sf-product-card .product-cat a { color: #566274; font-size: 1rem; font-weight: 700; text-align: center; }
.sf-product-card .product-cat a:hover { color: var(--sf-accent); }
.sf-product-card .product-price { justify-content: center; gap: .5rem; font-size: 1.25rem; font-weight: 800; text-align: center; }
.sf-product-card .product-price .old-price { color: #929aa5; font-size: 1rem; font-weight: 500; }
.sf-product-card .product-action { margin-top: auto; }
.sf-product-card .product-action .btn-product, .sf-product-card .product-action .stock-notify-trigger { display: flex; width: 100%; min-height: 3.2rem; align-items: center; justify-content: center; border: 0; border-radius: 0 0 .9rem .9rem; background: var(--sf-accent); color: #fff; font-size: 1.05rem; }
.sf-product-card .product-action .btn-product:hover, .sf-product-card .product-action .stock-notify-trigger:hover { filter: brightness(.93); color: #fff; }
.sf-product-card .product-price .new-price { color: var(--sf-accent); font-size: 1.35rem; font-weight: 900; }
.sf-home--curated-essentials .sf-product-card { border-color: #eadfeb; }
.sf-home--sidebar-market .sf-flash-section { padding: 2rem; border-radius: 1.2rem; background: #f0f1f2; }
.sf-home--discovery-tiles .sf-product-card { border-radius: .7rem; }
.sf-scroll-next { display: table; margin: 2rem auto 0; padding: .8rem 1.5rem; border: 1px solid var(--sf-accent); border-radius: .7rem; color: var(--sf-accent); font-size: 1.2rem; font-weight: 700; }
.sf-scroll-next:hover { background: var(--sf-accent); color: #fff; }
.sf-product-scroll[aria-busy="true"] .sf-scroll-next { opacity: .65; pointer-events: none; }

/* Campaign artwork, copy, countdown, and selected products all come from the admin campaign. */
.sf-campaign-surface { overflow: hidden; border: 1px solid var(--sf-border); border-radius: 1.4rem; background: #fff; box-shadow: 0 1rem 3rem #1720330b; }
.sf-campaign-banner { position: relative; display: flex; min-height: 26rem; align-items: center; overflow: hidden; background: #222a35; }
.sf-campaign-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-campaign-banner::after { position: absolute; inset: 0; background: linear-gradient(90deg, #111927df, #1119278c 55%, #1119271c); content: ''; }
.sf-campaign-copy { position: relative; z-index: 1; width: min(68rem, 100%); padding: 3rem 3.5rem; }
.sf-campaign-label { display: inline-block; padding: .4rem 1rem; border-radius: 99px; background: var(--sf-accent); color: #fff; font-size: 1.2rem; font-weight: 800; }
.sf-campaign-copy h2 { margin: 1rem 0 0; color: #fff; font-size: clamp(2.6rem, 3.6vw, 4.2rem); font-weight: 800; line-height: 1.1; }
.sf-campaign-copy p { margin: 1rem 0 0; color: #f2f2f5; font-size: 1.4rem; }
.sf-campaign-timer { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.8rem; }
.sf-campaign-timer-caption { color: #fff; font-size: 1.2rem; font-weight: 700; }
.sf-campaign-timer > span:not(.sf-campaign-timer-caption) { display: flex; min-width: 5rem; min-height: 5rem; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #ffffff69; border-radius: .7rem; background: #ffffff24; color: #fff; }
.sf-campaign-timer strong { color: #fff; font-size: 1.6rem; line-height: 1.1; }
.sf-campaign-timer small { color: #fff; font-size: 1rem; }
.sf-campaign-products { padding: 2rem; }
.sf-home--curated-essentials .sf-campaign-surface { border-color: #eadfeb; }

/* Each visual theme keeps the same live catalog and actions, but has its own rhythm. */
.storefront-theme-smart-deals .storefront-header-main { grid-template-columns: minmax(170px, 240px) minmax(260px, 1fr) auto; }
.sf-home--smart-deals .sf-feature-layout { padding: 1.1rem; border: 1px solid #f1e7df; border-radius: 1.8rem; background: #fff9f4; }
.sf-home--smart-deals .sf-slider-main, .sf-home--smart-deals .sf-slider-promos .sf-promo-carousel { border-radius: 1.2rem; }
.sf-home--smart-deals .sf-category-strip a { border-color: #f1e6db; background: #fffaf6; }
.sf-home--smart-deals .sf-flash-section { padding: 2rem; border-radius: 1.5rem; background: linear-gradient(125deg, #fff0e4, #fffaf7 56%, #fff); }
.sf-home--smart-deals .sf-flash-section .sf-section-heading h2::before { content: 'âš¡'; margin-right: .6rem; color: var(--sf-accent); }
.sf-home--smart-deals .sf-product-card { border-radius: 1.2rem; }
.sf-home--smart-deals .sf-product-card .product-media { border-radius: 1.2rem 1.2rem 0 0; }

.storefront-theme-curated-essentials .storefront-header-main { min-height: 9.5rem; }
.storefront-theme-curated-essentials .storefront-search { border-radius: 99rem; }
.storefront-theme-curated-essentials .storefront-search button { border-radius: 99rem; }
.sf-home--curated-essentials .sf-feature-layout { padding: .4rem 0 1.2rem; }
.sf-home--curated-essentials .sf-slider-layout.has-promos { grid-template-columns: minmax(240px, .75fr) minmax(0, 1.7fr); }
.sf-home--curated-essentials .sf-slider-main { order: 2; }
.sf-home--curated-essentials .sf-slider-promos { order: 1; }
.sf-home--curated-essentials .sf-category-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; margin-top: .4rem; }
.sf-home--curated-essentials .sf-category-strip a { min-height: 8.4rem; border-radius: 1.4rem; padding: 1rem 1.4rem; box-shadow: 0 .7rem 2rem #421f4909; }
.sf-home--curated-essentials .sf-category-icon { width: 4.6rem; height: 4.6rem; border-radius: 1.2rem; background: #f4eaf3; }
.sf-home--curated-essentials .sf-section-heading { justify-content: center; position: relative; text-align: center; }
.sf-home--curated-essentials .sf-section-heading > a { position: absolute; right: 0; }
.sf-home--curated-essentials .sf-section-heading h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; }
.sf-home--curated-essentials .sf-product-card { border-radius: 1.4rem; background: #fffafd; box-shadow: 0 .8rem 2.2rem #421f490d; }
.sf-home--curated-essentials .sf-product-card .product-media { border-radius: 1.4rem 1.4rem 0 0; background: #fffafd; }
.sf-home--curated-essentials .sf-product-card .product-action .btn-product,
.sf-home--curated-essentials .sf-product-card .product-action .stock-notify-trigger { border-radius: 0 0 1.3rem 1.3rem; }

.storefront-theme-discovery-tiles .storefront-topline { background: #fff; }
.storefront-theme-discovery-tiles .storefront-nav { border-bottom: 1px solid var(--sf-border); }
.sf-home--discovery-tiles .sf-feature-layout { padding-bottom: 1.2rem; border-bottom: 1px solid var(--sf-border); }
.sf-home--discovery-tiles .sf-slider-layout.has-promos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sf-home--discovery-tiles .sf-slider-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 1fr; }
.sf-home--discovery-tiles .sf-slider-main, .sf-home--discovery-tiles .sf-slider-promos .sf-promo-carousel { border-radius: .4rem; }
.sf-home--discovery-tiles .sf-category-strip { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--sf-border); padding-bottom: 2rem; }
.sf-home--discovery-tiles .sf-category-strip a { flex: 1 1 0; min-width: 0; min-height: 8.8rem; flex-direction: column; justify-content: center; border: 0; background: transparent; text-align: center; }
.sf-home--discovery-tiles .sf-category-icon { width: 4.4rem; height: 4.4rem; }
.sf-home--discovery-tiles .sf-section-heading { border-left: .4rem solid var(--sf-accent); padding-left: 1.3rem; }
.sf-home--discovery-tiles .sf-product-card { border-radius: .4rem; box-shadow: none; }
.sf-home--discovery-tiles .sf-product-card .product-media { border-radius: .4rem .4rem 0 0; }
.sf-home--discovery-tiles .sf-product-card .product-action .btn-product,
.sf-home--discovery-tiles .sf-product-card .product-action .stock-notify-trigger { border-radius: 0 0 .3rem .3rem; }

:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-header-main { min-height: 9.3rem; }
:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-search { border-radius: .4rem; }
:is(.storefront-theme-sidebar-market, .storefront-theme-sidebar-classic) .storefront-search button { border-radius: .4rem; }
.sf-home--sidebar-market .sf-category-strip { padding: 1.2rem; border-radius: 1rem; background: #f1f3f4; }
.sf-home--sidebar-market .sf-category-strip a { border: 0; border-radius: .4rem; }
.sf-home--sidebar-market .sf-section-heading h2 { letter-spacing: -.04em; }
.sf-home--sidebar-market .sf-recommended-section { padding: 2rem; border: 1px solid var(--sf-border); border-radius: 1.2rem; background: #f8f9f9; }
.sf-home--sidebar-market .sf-product-card { border-radius: .5rem; box-shadow: none; }
.sf-home--sidebar-market .sf-product-card .product-media { border-radius: .5rem .5rem 0 0; }
.sf-home--sidebar-market .sf-product-card .product-action .btn-product,
.sf-home--sidebar-market .sf-product-card .product-action .stock-notify-trigger { border-radius: 0 0 .4rem .4rem; }

@media (min-width: 1200px) {
    .sf-home.sf-columns-4 .sf-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sf-home.sf-columns-4 .sf-product-card .product-media,
    .sf-home.sf-columns-4 .sf-product-card .product-image { height: clamp(22rem, 19vw, 28rem); }
    .sf-home.sf-columns-4 .sf-product-card .product-media { min-height: clamp(22rem, 19vw, 28rem); }
    .sf-home.sf-columns-4 .sf-product-card .product-body { padding: 1.2rem 1.4rem; }
    .sf-home.sf-columns-4 .sf-product-card .product-title { font-size: 1.4rem; }
    .sf-home.sf-columns-4 .sf-product-card .product-cat,
    .sf-home.sf-columns-4 .sf-product-card .product-cat a { font-size: 1.15rem; }
    .sf-home.sf-columns-4 .sf-product-card .product-price .new-price { font-size: 1.55rem; }
    .sf-home.sf-columns-5 .sf-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1199px) {
    .sf-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .storefront-shell { width: min(100% - 2.4rem, 800px); }
    .storefront-header-main { display: flex; min-height: 0; flex-wrap: wrap; gap: 1rem; padding: 1.2rem 0; }
    .storefront-header .mobile-menu-toggler { display: inline-flex; flex: none; align-items: center; margin: 0; padding: .5rem; }
    .storefront-logo { flex: 1; max-width: calc(100% - 13rem); }
    .storefront-logo img { max-height: 4.8rem; }
    .storefront-logo strong { font-size: 1.9rem; }
    .storefront-logo small { display: none; }
    .storefront-header-actions { gap: 1.2rem; }
    .storefront-header-actions > a > span, .storefront-header-actions .cart-dropdown .cart-txt { display: none; }
    .storefront-search { order: 5; flex-basis: 100%; max-width: none; height: 4.2rem; }
    .storefront-nav { display: none; }
    .storefront-topline-benefits { display: none; }
    .sf-home--sidebar-market .sf-feature-layout { grid-template-columns: 1fr; }
    .sf-home--sidebar-market .sf-sidebar-categories { display: none; }
    .sf-home--curated-essentials .sf-category-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sf-slider-layout.has-promos,
    .sf-home--curated-essentials .sf-slider-layout.has-promos,
    .sf-home--discovery-tiles .sf-slider-layout.has-promos,
    .sf-home--sidebar-market .sf-slider-layout.has-promos { grid-template-columns: minmax(0, 1fr); }
    .sf-slider-promos { display: none; }
    .sf-home--curated-essentials .sf-slider-main { order: 0; }
    .sf-home--discovery-tiles .sf-slider-promos a { height: 100%; }
    .sf-home--sidebar-market .sf-sidebar-categories { grid-column: 1; grid-row: auto; }
    .sf-home--sidebar-market .sf-feature-carousel { grid-column: 1; grid-row: auto; }
    .sf-shopping-benefits { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-shopping-benefit:last-child { grid-column: 1 / -1; }
    .sf-category-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sf-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .storefront-topline { font-size: 1rem; }
    .storefront-header-actions > a i, .storefront-header-actions .cart-dropdown > .dropdown-toggle i { font-size: 2.1rem; }
    .storefront-search button { min-width: 4.8rem; }
    .storefront-search button span { display: none; }
    .sf-home { --sf-hero-height: 190px; --sf-promo-gap: .7rem; padding-top: .9rem; }
    .sf-home--smart-deals .sf-feature-layout { padding: .5rem; border-radius: 1rem; }
    .sf-home--smart-deals .sf-flash-section,
    .sf-home--sidebar-market .sf-recommended-section { padding: 1rem; }
    .sf-home--curated-essentials .sf-feature-layout { padding: .5rem 0 1rem; }
    .sf-home--curated-essentials .sf-section-heading { justify-content: space-between; text-align: left; }
    .sf-home--curated-essentials .sf-section-heading > a { position: static; }
    .sf-slider-layout.has-promos { gap: .7rem; }
    .sf-home--sidebar-market { --sf-hero-height: 190px; }
    .sf-shopping-benefits { grid-template-columns: 1fr; gap: .8rem; margin-top: .8rem; }
    .sf-shopping-benefit:last-child { grid-column: auto; }
    .sf-shopping-benefit { padding: 1.2rem; }
    .sf-category-strip, .sf-home--curated-essentials .sf-category-strip { display: flex; overflow-x: auto; gap: .7rem; margin: 1.2rem 0 2rem; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
    .sf-category-strip a, .sf-home--discovery-tiles .sf-category-strip a, .sf-home--curated-essentials .sf-category-strip a { flex: 0 0 8.6rem; min-height: 7.2rem; flex-direction: column; justify-content: center; gap: .3rem; border-radius: .8rem; text-align: center; scroll-snap-align: start; }
    .sf-category-icon { width: 3.4rem; height: 3.4rem; }
    .sf-category-icon img { width: 2.7rem; height: 2.7rem; }
    .sf-category-strip strong { font-size: 1rem; }
    .sf-section { margin: 2rem 0 2.6rem; }
    .sf-section-heading h2 { font-size: 2.1rem; }
    .sf-section-heading h3 { font-size: 1.7rem; }
    .sf-section-heading > a { font-size: 1.05rem; }
    .sf-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .sf-product-card .product-media { min-height: 13rem; }
    .sf-product-card .product-image { height: 13rem; }
    .sf-product-card .product-title { font-size: 1.08rem; }
    .sf-product-card .product-action .btn-product, .sf-product-card .product-action .stock-notify-trigger { min-height: 3.3rem; }
    .sf-home--sidebar-market .sf-flash-section, .sf-campaign-products { padding: 1.2rem; }
    .sf-campaign-banner { min-height: 25rem; }
    .sf-campaign-copy { padding: 2rem; }
    .sf-campaign-copy h2 { font-size: 2.6rem; }
    .sf-campaign-timer-caption { flex-basis: 100%; }
    .sf-campaign-timer > span:not(.sf-campaign-timer-caption) { min-width: 4.4rem; min-height: 4.4rem; }
}
/* Sidebar Market: the first categories live in the top menu; the rest live here. */
.sf-main-carousel:not(.owl-loaded){display:block}
.sf-main-carousel:not(.owl-loaded)>.sf-slide-image:not(:first-child){display:none}
.sf-home--sidebar-market .sf-sidebar-categories{align-self:stretch;contain:size;min-height:0;max-height:none;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain}
.sf-home--sidebar-market .sf-sidebar-subcategories{position:static;width:auto;max-height:none;overflow:visible;border:0;border-radius:0;box-shadow:none;margin:0 .8rem;padding:.4rem .6rem .8rem;background:#f7f8fa}
.sf-home--sidebar-market .sf-feature-layout--no-sidebar{grid-template-columns:minmax(0,1fr)}
.sf-home--sidebar-market .sf-feature-layout--no-sidebar .sf-feature-carousel,.sf-home--sidebar-market .sf-feature-layout--no-sidebar .sf-shopping-benefits{grid-column:1}

.sf-home--sidebar-classic .sf-slider-layout { grid-template-columns: minmax(0, 1fr); }
.sf-home--sidebar-classic .sf-product-card { overflow: hidden; border: 1px solid #edf0f5; border-radius: 10px; box-shadow: 0 8px 24px rgba(23, 33, 58, .05); }
.sf-home--sidebar-classic .sf-product-card:hover { border-color: #ffd5dc; box-shadow: 0 14px 32px rgba(23, 33, 58, .09); transform: translateY(-2px); }
.sf-home--sidebar-classic .sf-product-card .product-media { display: flex; align-items: center; justify-content: center; min-height: 210px; border-radius: 0; background: #fbfcfe; }
.sf-home--sidebar-classic .sf-product-card .product-image { height: 195px; object-fit: contain; }
.sf-home--sidebar-classic .sf-product-card .product-body { padding: .58rem .85rem; }
.sf-home--sidebar-classic .sf-product-card .product-title { min-height: 0; margin-bottom: .1rem; color: #17213a; font-size: 1.22rem; line-height: 1.35; }
.sf-home--sidebar-classic .sf-product-card .product-cat, .sf-home--sidebar-classic .sf-product-card .product-cat a { color: #697386; font-size: 1.05rem; }
.sf-home--sidebar-classic .sf-product-card .product-price .new-price { font-size: 1.3rem; }
.sf-home--sidebar-classic .sf-product-card .product-action { border-top: 1px solid #f1f3f7; }
.sf-home--sidebar-classic .sf-product-card .product-action .btn-product, .sf-home--sidebar-classic .sf-product-card .product-action .stock-notify-trigger { min-height: 36px; border-radius: 0; font-weight: 900; }
@media (max-width: 575px) {
    .sf-home--sidebar-classic .sf-product-card .product-media { min-height: 134px; }
    .sf-home--sidebar-classic .sf-product-card .product-image { height: 118px; }
    .sf-home--sidebar-classic .sf-product-card .product-body { padding: .45rem .62rem; }
}
