/*
 * Storefront -- Standard Pro theme, "Marketplace".
 *
 * A colourful gradient header, a category menu beside the slider, white
 * boxes of deals and carousels on a soft page, compact product cards and a
 * "Just for you" grid. Loaded after Bootstrap 5.3 and
 * frontend/shared/storefront.css. Every accent is --sf-primary, which a
 * store's brand colour replaces; the header gradient runs from it to a
 * neighbouring hue.
 */

:root {
    --sf-primary: #7c3aed;
    --sf-on-primary: #fff;
    --sf-primary-2: var(--sf-primary-dark);
    --sf-ink: #1f2937;
    --sf-text: #4b5563;
    --sf-muted: #8b95a5;
    --sf-line: #eceef2;
    --sf-page: #f5f5f8;
    --sf-dark: #1a1426;
    --sf-radius: 14px;
    --sf-radius-sm: 10px;
    --sf-shadow: 0 1px 3px rgba(31, 41, 55, .06);
    --sf-shadow-lg: 0 16px 36px rgba(31, 41, 55, .14);
    --sf-font: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* The gradient's second colour: the accent turned 45° round the colour wheel. */
@supports (color: oklch(from red l c h)) {
    :root {
        --sf-primary-2: oklch(from var(--sf-primary) calc(l - .02) c calc(h + 45));
    }
}

/* ---------------------------------------------------------------- base -- */

body {
    background: var(--sf-page);
    color: var(--sf-text);
    font-family: var(--sf-font);
    font-size: .875rem;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--sf-primary-text);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--sf-ink);
    font-weight: 700;
}

::selection {
    background: var(--sf-primary-glow);
}

.btn-sf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .6875rem 1.375rem;
    border-radius: 999px;
    background: #fff;
    color: var(--sf-primary-text);
    font-size: .8125rem;
    font-weight: 800;
    line-height: 1.2;
    transition: transform .2s, box-shadow .2s;
}

a.btn-sf:hover,
.btn-sf:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    color: var(--sf-primary-text);
    transform: translateY(-1px);
}

.brand-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    white-space: nowrap;
}

/* -------------------------------------------------------------- header -- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--sf-primary);
    background: linear-gradient(100deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
    color: var(--sf-on-primary);
    transition: box-shadow .25s;
}

.site-header.is-stuck {
    box-shadow: 0 8px 26px rgba(31, 41, 55, .25);
}

.header-strip {
    background: rgba(0, 0, 0, .14);
    font-size: .75rem;
}

.header-strip .container {
    min-height: 32px;
}

.header-strip span {
    opacity: .85;
}

.header-strip-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-strip-links a {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    color: var(--sf-on-primary);
    font-weight: 600;
    opacity: .9;
}

.header-strip-links a:hover {
    color: var(--sf-on-primary);
    opacity: 1;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: .875rem 0;
}

.brand-logo {
    display: flex;
    flex: none;
    align-items: center;
}

/* An uploaded logo sits on a white chip, so a logo of any colour reads on the gradient. */
.brand-mark {
    padding: .3125rem;
    border-radius: var(--sf-radius-sm);
    background: #fff;
}

.brand-logo .brand-mark img {
    max-width: 150px;
    height: 36px;
}

.brand-tagline {
    color: rgba(255, 255, 255, .72);
}

.header-search {
    position: relative;
    flex: 1 1 auto;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 4px;
    border-radius: var(--sf-radius-sm);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.header-search .form-control {
    height: 40px;
    padding: 0 .875rem;
    border: 0;
    box-shadow: none;
    font-size: .875rem;
}

.header-search button {
    flex: none;
    width: 52px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(100deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
    color: var(--sf-on-primary);
    font-size: 1rem;
    transition: filter .2s;
}

.header-search button:hover {
    filter: brightness(1.08);
}

.header-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: .25rem;
    margin-left: auto;
}

.header-action {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    border-radius: 999px;
    color: var(--sf-on-primary);
    font-size: .8125rem;
    font-weight: 700;
    transition: background .2s;
}

.header-action:hover {
    background: rgba(255, 255, 255, .16);
    color: var(--sf-on-primary);
}

.header-action i {
    font-size: 1.25rem;
}

.header-count {
    position: absolute;
    top: 1px;
    right: 3px;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fde047;
    color: #1f2937;
    font-size: .625rem;
    font-weight: 800;
}

.header-toggle {
    width: 40px;
    height: 40px;
    margin-left: -.375rem;
    border: 0;
    border-radius: var(--sf-radius-sm);
    background: rgba(255, 255, 255, .16);
    color: var(--sf-on-primary);
    font-size: 1.125rem;
}

.site-header .header-search.d-lg-none {
    margin-bottom: .875rem;
}

/* The white bar of quick links. */
.quick-nav {
    position: relative;
    z-index: 1020;
    background: #fff;
    box-shadow: var(--sf-shadow);
}

/* One line of quick links; what doesn't fit goes under More ([data-priority-nav]). */
.quick-nav-list {
    display: flex;
    align-items: center;
    gap: .125rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quick-nav-list > li {
    position: relative;
    flex: none;
}

.quick-nav a {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    padding: .75rem .875rem;
    color: var(--sf-ink);
    font-size: .8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.quick-nav a i {
    color: var(--sf-primary-text);
}

.quick-nav a:hover,
.quick-nav a.active {
    color: var(--sf-primary-text);
}

.quick-nav-list > .quick-nav-call {
    margin-left: auto;
}

.quick-nav-call a {
    color: var(--sf-muted);
}

.quick-nav-more > a i {
    font-size: .6875rem;
}

.quick-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1030;
    min-width: 200px;
    margin: 0;
    padding: .5rem;
    border-radius: 0 0 var(--sf-radius) var(--sf-radius);
    background: #fff;
    box-shadow: var(--sf-shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}

.quick-nav-more:hover .quick-nav-dropdown,
.quick-nav-more:focus-within .quick-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.quick-nav-dropdown a {
    display: flex;
    padding: .5rem .625rem;
    border-radius: var(--sf-radius-sm);
}

.quick-nav-dropdown a:hover {
    background: var(--sf-primary-soft);
}

/* The phone menu (offcanvas). */
.mobile-nav {
    --bs-offcanvas-width: 320px;
}

.mobile-nav .offcanvas-header {
    background: linear-gradient(100deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
    color: var(--sf-on-primary);
}

.mobile-nav .offcanvas-title {
    color: var(--sf-on-primary);
    font-weight: 800;
}

.mobile-nav-account {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
    padding: .875rem 1rem;
    border-radius: var(--sf-radius);
    background: var(--sf-primary-soft);
    color: var(--sf-ink);
    font-weight: 700;
}

.mobile-nav-account i {
    color: var(--sf-primary-text);
    font-size: 1.75rem;
}

.mobile-nav-account small {
    display: block;
    color: var(--sf-muted);
    font-weight: 500;
}

.mobile-nav-heading {
    margin-bottom: .25rem;
    color: var(--sf-muted);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.mobile-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav-list > li {
    border-bottom: 1px solid var(--sf-line);
}

.mobile-nav-list > li > a,
.mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .75rem 0;
    border: 0;
    background: none;
    color: var(--sf-ink);
    font-weight: 600;
    text-align: left;
}

.mobile-nav-toggle i {
    color: var(--sf-muted);
    font-size: .75rem;
    transition: transform .2s;
}

.mobile-nav-toggle:not(.collapsed) i {
    transform: rotate(180deg);
}

.mobile-nav-sub {
    margin: 0;
    padding: 0 0 .625rem .75rem;
    list-style: none;
}

.mobile-nav-sub a {
    display: block;
    padding: .375rem 0;
    color: var(--sf-muted);
}

.mobile-nav-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 1.25rem;
    padding: .75rem;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
    color: var(--sf-on-primary);
    font-weight: 700;
}

.mobile-nav-call:hover {
    color: var(--sf-on-primary);
}

/* ---------------------------------------------------------------- hero -- */

.hero {
    padding-top: 1rem;
}

.hero-slider,
.hero-intro,
.side-banner,
.side-tile {
    overflow: hidden;
    border-radius: var(--sf-radius);
}

/* The width is explicit, or with the ratio a min-height would widen the slide past the slider. */
.hero-slide {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: var(--sf-primary-soft);
}

.hero-slider.owl-carousel .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: .5rem;
    padding: 0 6% 9%;
    background: linear-gradient(0deg, rgba(26, 20, 38, .7) 0%, rgba(26, 20, 38, .15) 55%, rgba(26, 20, 38, 0) 80%);
    color: #fff;
}

.hero-title {
    max-width: 480px;
    font-size: clamp(1.25rem, 2.6vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
}

.hero-sub {
    max-width: 420px;
    font-size: clamp(.8125rem, 1.1vw, .9375rem);
    opacity: .92;
}

.hero-slider .owl-dots {
    right: auto;
    left: 6%;
    justify-content: flex-start;
}

.hero-slider .owl-dots button.owl-dot span {
    background: rgba(255, 255, 255, .55);
}

/* No slides yet: the store introduces itself, in the slider's place. */
.hero-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    aspect-ratio: 2 / 1;
    padding: 0 8%;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .28), transparent 34%),
        radial-gradient(circle at 10% 100%, rgba(253, 224, 71, .35), transparent 40%),
        linear-gradient(120deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
    color: var(--sf-on-primary);
}

.hero-intro-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .2);
    font-size: .75rem;
    font-weight: 700;
}

.hero-intro-title {
    max-width: 460px;
    font-size: clamp(1.375rem, 2.8vw, 2.375rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.08;
}

.hero-intro-sub {
    max-width: 420px;
    font-size: .875rem;
    opacity: .9;
}

/* The category menu: its list scrolls if long; the sub-category panel opens over the slider. */
.category-menu {
    display: flex;
    flex-direction: column;
    overflow: visible;
    border-radius: var(--sf-radius);
    background: #fff;
    box-shadow: var(--sf-shadow);
}

.category-menu-title {
    display: flex;
    flex: none;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--sf-line);
    color: var(--sf-ink);
    font-size: .875rem;
    font-weight: 800;
}

.category-menu-title i {
    color: var(--sf-primary-text);
}

.category-menu-list {
    flex: 1 1 auto;
    min-height: 0;
    margin: 0;
    padding: .375rem;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
}

.category-menu-list > li > a {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .1875rem .5rem;
    border-radius: 8px;
    color: var(--sf-text);
    font-size: .8125rem;
    font-weight: 600;
}

.category-menu-list > li:hover > a {
    background: var(--sf-primary-soft);
    color: var(--sf-primary-text);
}

.category-menu-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--sf-page);
    color: var(--sf-primary-text);
    font-size: .75rem;
    font-weight: 800;
}

.category-menu-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-menu-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-menu-list > li > a > i {
    color: var(--sf-muted);
    font-size: .6875rem;
}

/*
 * The panel over the slider: the sub-categories as groups, each with its
 * brands under it (category → sub-category → brand).
 */
.category-menu-panel {
    position: absolute;
    top: 0;
    left: calc(100% + 8px);
    z-index: 1025;
    width: 620px;
    min-height: 100%;
    max-height: 560px;
    padding: 1rem 1.25rem 1.25rem;
    overflow-y: auto;
    border-radius: var(--sf-radius);
    background: #fff;
    box-shadow: var(--sf-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
    scrollbar-width: thin;
}

.category-menu-list > li:hover > .category-menu-panel,
.category-menu-list > li:focus-within > .category-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.category-menu-panel a.category-menu-panel-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .875rem;
    padding: 0;
    color: var(--sf-primary-text);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.category-menu-panel a.category-menu-panel-title:hover {
    background: none;
    gap: .75rem;
}

.category-menu-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.category-menu-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-menu-panel a {
    display: block;
    padding: .25rem .5rem;
    border-radius: 6px;
    color: var(--sf-text);
    font-size: .8125rem;
}

.category-menu-panel a:hover {
    background: var(--sf-primary-soft);
    color: var(--sf-primary-text);
}

.category-menu-panel a.category-menu-sub {
    margin-bottom: .25rem;
    padding-bottom: .375rem;
    border-bottom: 1px solid var(--sf-line);
    border-radius: 0;
    color: var(--sf-ink);
    font-weight: 700;
}

.category-menu-panel a.category-menu-sub:hover {
    background: none;
    color: var(--sf-primary-text);
}

.category-menu-brands {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .125rem 1rem;
}

.category-menu-brands-title {
    display: block;
    margin: 1rem 0 .375rem;
    padding-bottom: .375rem;
    border-bottom: 1px solid var(--sf-line);
    color: var(--sf-ink);
    font-size: .8125rem;
    font-weight: 700;
}

/* Under a group: deeper sub-categories, each level indented with a rule, then brands. */
.category-menu-tree .category-menu-tree {
    margin: .125rem 0 .25rem .5rem;
    padding-left: .5rem;
    border-left: 2px solid var(--sf-primary-line);
}

.category-menu-panel a.is-brand {
    display: flex;
    align-items: center;
    gap: .4375rem;
    color: var(--sf-muted);
}

.category-menu-panel a.is-brand i {
    color: var(--sf-primary-line);
    font-size: .625rem;
}

.category-menu-panel a.is-brand:hover {
    color: var(--sf-primary-text);
}

@media (max-width: 1199.98px) {
    .category-menu-panel {
        width: 480px;
    }

    .category-menu-groups,
    .category-menu-brands {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.category-menu-empty {
    padding: .75rem;
    color: var(--sf-muted);
}

/*
 * The side column: two banners (or, until there are any, two tiles). On
 * desktop it and the category menu are laid over their columns, so both take
 * exactly the slider's height.
 */
.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.side-banner {
    display: block;
    flex: 1 1 0;
    min-height: 0;
    background: var(--sf-primary-soft);
}

.side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.side-banner:hover img {
    transform: scale(1.04);
}

.side-tile {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    gap: .25rem;
    min-height: 0;
    padding: 1rem 1.25rem;
}

.side-tile > i {
    margin-bottom: .25rem;
    font-size: 1.5rem;
}

.side-tile strong {
    font-size: .9375rem;
    line-height: 1.25;
}

.side-tile small {
    font-size: .75rem;
    opacity: .85;
}

.side-tile.is-account {
    background: linear-gradient(135deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
    color: var(--sf-on-primary);
}

.side-tile.is-account:hover {
    color: var(--sf-on-primary);
}

.side-tile.is-help {
    background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
    color: #713f12;
}

.side-tile.is-help:hover {
    color: #713f12;
}

@media (min-width: 992px) {
    .hero-side-col,
    .hero-menu-col {
        position: relative;
    }

    .hero-side,
    .hero-menu-col .category-menu {
        position: absolute;
        inset: 0 calc(var(--bs-gutter-x) * .5);
    }

    .side-tile,
    .side-banner {
        overflow: hidden;
    }
}

/* ----------------------------------------------------- highlight pills -- */

.perks {
    padding-top: 1rem;
}

.perks-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .75rem;
}

.perk {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .625rem .875rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--sf-shadow);
}

.perk-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
    color: var(--sf-on-primary);
    font-size: .9375rem;
}

.perk strong {
    display: block;
    color: var(--sf-ink);
    font-size: .8125rem;
}

.perk small {
    display: block;
    color: var(--sf-muted);
    font-size: .6875rem;
}

/* --------------------------------------------------------------- boxes -- */

.section {
    padding-top: 1.25rem;
}

.box {
    padding: 1rem 1.125rem 1.25rem;
    border-radius: var(--sf-radius);
    background: #fff;
    box-shadow: var(--sf-shadow);
}

.box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.box-title {
    margin: 0;
    font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -.01em;
}

.box-sub {
    margin: .125rem 0 0;
    color: var(--sf-muted);
    font-size: .75rem;
}

.box-tools {
    display: flex;
    flex: none;
    align-items: center;
    gap: .75rem;
}

.box-link {
    padding: .4375rem .875rem;
    border: 1.5px solid var(--sf-primary);
    border-radius: 999px;
    color: var(--sf-primary-text);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    transition: background .2s, color .2s;
}

.box-link:hover,
.box-link.is-solid {
    background: var(--sf-primary);
    color: var(--sf-on-primary);
}

.box-link.is-solid:hover {
    background: var(--sf-primary-dark);
}

/* The deals box: a gradient title and a tinted top. */
.box.is-deals {
    background: linear-gradient(180deg, var(--sf-primary-soft) 0, #fff 120px);
}

.deals-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(100deg, var(--sf-primary), var(--sf-primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.deals-title i {
    color: #f59e0b;
}

.deals-chip {
    padding: .1875rem .625rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--sf-shadow);
    color: var(--sf-sale);
    font-size: .6875rem;
    font-weight: 700;
}

/* Categories: a grid of soft tiles, 8 a row on desktop. */
.category-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: .75rem;
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
}

.category-thumb {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    padding: 18%;
    border-radius: var(--sf-radius);
    background: var(--sf-page);
    transition: background .2s, transform .2s;
}

.category-tile:hover .category-thumb {
    background: var(--sf-primary-soft);
    transform: translateY(-3px);
}

.category-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-initial {
    color: var(--sf-primary-text);
    font-size: 1.75rem;
    font-weight: 800;
}

.category-name {
    display: -webkit-box;
    overflow: hidden;
    color: var(--sf-ink);
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Carousels: every card as tall as the tallest. */
.product-carousel .owl-stage {
    display: flex;
}

.product-carousel .owl-item {
    display: flex;
}

.product-carousel .product-card {
    width: 100%;
}

/* "Just for you": a grid of compact cards, 6 a row on desktop. */
.feed-title {
    margin: .5rem 0 1rem;
    font-size: clamp(1.125rem, 1.9vw, 1.375rem);
    font-weight: 800;
}

.feed-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .75rem;
}

/* -------------------------------------------------------- product card -- */

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: var(--sf-radius-sm);
    background: #fff;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.feed-grid .product-card {
    box-shadow: var(--sf-shadow);
}

.product-card:hover {
    border-color: var(--sf-primary-line);
    box-shadow: var(--sf-shadow-lg);
    transform: translateY(-3px);
}

.product-media {
    position: relative;
}

/* Product photos sit whole on white, as shop photos are shot. */
.product-thumb {
    display: block;
    aspect-ratio: 1;
    padding: 10px;
}

.product-card .product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .4s;
}

.product-card:hover .product-thumb img {
    transform: scale(1.06);
}

.product-new {
    position: absolute;
    top: .5rem;
    left: .5rem;
    padding: .125rem .5rem;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--sf-primary), var(--sf-primary-2));
    color: var(--sf-on-primary);
    font-size: .625rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.product-wish,
.product-cart {
    position: absolute;
    right: .5rem;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(31, 41, 55, .14);
    color: var(--sf-text);
    font-size: .8125rem;
    opacity: 0;
    transform: scale(.8);
    transition: opacity .2s, transform .2s, background .2s, color .2s;
}

.product-wish {
    top: .5rem;
}

.product-cart {
    bottom: .5rem;
    background: var(--sf-primary);
    color: var(--sf-on-primary);
}

.product-card:hover .product-wish,
.product-card:hover .product-cart,
.product-wish:focus-visible,
.product-cart:focus-visible {
    opacity: 1;
    transform: none;
}

.product-wish:hover {
    color: var(--sf-sale);
}

.product-cart:hover {
    background: var(--sf-primary-dark);
    color: var(--sf-on-primary);
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .25rem;
    padding: .25rem .75rem .75rem;
}

.product-name {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0 0 .125rem;
    overflow: hidden;
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-name a {
    color: var(--sf-ink);
}

.product-name a:hover {
    color: var(--sf-primary-text);
}

.product-price {
    margin-top: auto;
    color: var(--sf-primary-text);
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.2;
}

.product-price small {
    color: var(--sf-muted);
    font-size: .6875rem;
    font-weight: 600;
}

.product-deal {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .75rem;
}

.product-deal del {
    color: var(--sf-muted);
}

.product-deal span {
    color: var(--sf-sale);
    font-weight: 700;
}

/* -------------------------------------------------------- promo, brands -- */

.promo {
    padding-top: 1.25rem;
}

.promo-banner {
    position: relative;
    display: block;
    aspect-ratio: 1920 / 300;
    overflow: hidden;
    border-radius: var(--sf-radius);
    background: var(--sf-primary-soft);
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s;
}

a.promo-banner:hover img {
    transform: scale(1.02);
}

.promo-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: .25rem;
    padding: 0 5%;
    background: linear-gradient(90deg, color-mix(in srgb, var(--sf-primary) 85%, transparent), transparent 70%);
    color: var(--sf-on-primary);
}

.promo-caption strong {
    font-size: clamp(1rem, 2.2vw, 1.875rem);
    font-weight: 800;
}

.promo-caption small {
    font-size: clamp(.75rem, 1vw, .9375rem);
    opacity: .9;
}

.promo-caption em {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    margin-top: .25rem;
    font-size: .8125rem;
    font-style: normal;
    font-weight: 800;
}

.brand-item {
    display: grid;
    place-items: center;
    height: 76px;
    padding: .75rem 1rem;
    border-radius: var(--sf-radius-sm);
    background: var(--sf-page);
    transition: background .2s;
}

.brand-item:hover {
    background: var(--sf-primary-soft);
}

.brand-carousel.owl-carousel .brand-item img {
    width: auto;
    max-width: 100%;
    max-height: 44px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* ---------------------------------------------------------- empty shop -- */

.empty-store {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-store-icon {
    display: inline-grid;
    place-items: center;
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
    color: var(--sf-on-primary);
    font-size: 2rem;
}

.empty-store h2 {
    font-size: 1.375rem;
    font-weight: 800;
}

.empty-store p {
    max-width: 480px;
    margin: 0 auto;
    color: var(--sf-muted);
}

.empty-store a {
    color: var(--sf-primary-text);
    font-weight: 700;
}

/* -------------------------------------------------------------- footer -- */

.site-footer {
    --footer-accent: color-mix(in srgb, var(--sf-primary) 55%, #fff);
    position: relative;
    margin-top: 3rem;
    background: var(--sf-dark);
    color: rgba(255, 255, 255, .64);
    font-size: .875rem;
}

/* The header's gradient, as a thin band on top. */
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(100deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
}

.site-footer a {
    color: rgba(255, 255, 255, .78);
}

.site-footer a:hover {
    color: #fff;
}

/* Brand, Quick Links, Customer Service, My Account, Newsletter. */
.footer-main {
    padding: 3.25rem 0 2.75rem;
}

@media (min-width: 992px) {
    .footer-col + .footer-col {
        padding-left: 1.75rem;
        border-left: 1px solid rgba(255, 255, 255, .08);
    }
}

.footer-brand .brand-mark img {
    max-width: 150px;
    height: 36px;
}

.footer-about {
    max-width: 300px;
    margin: 1rem 0 1.125rem;
    color: rgba(255, 255, 255, .58);
    line-height: 1.7;
}

.footer-contact {
    display: grid;
    gap: .5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: .625rem;
    min-width: 0;
}

.footer-contact li > :last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-contact i {
    width: 1rem;
    color: var(--footer-accent);
    text-align: center;
}

.footer-title {
    margin-bottom: 1.125rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-subtitle {
    margin: 1.5rem 0 .75rem;
    color: rgba(255, 255, 255, .82);
    font-size: .8125rem;
    font-weight: 700;
}

.footer-note {
    margin: -.375rem 0 1rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    gap: .75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, .76);
}

.footer-link-icon {
    color: rgba(255, 255, 255, .6);
}

.footer-links a:hover,
.footer-links a:hover .footer-link-icon {
    color: var(--footer-accent);
}

.site-footer .sf-newsletter-field {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .05);
}

.site-footer .sf-newsletter-field input {
    color: #fff;
}

.site-footer .sf-newsletter-field input::placeholder {
    color: rgba(255, 255, 255, .45);
}

.site-footer .sf-newsletter-field button {
    background: linear-gradient(100deg, var(--sf-primary) 0%, var(--sf-primary-2) 100%);
}

.footer-bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    color: rgba(255, 255, 255, .58);
}

.footer-bottom .container > span > a {
    color: var(--footer-accent);
    font-weight: 700;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    row-gap: .5rem;
}

.footer-legal a + a {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, .2);
}

@media (max-width: 575.98px) {
    .footer-main {
        padding: 2.5rem 0 1.75rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1199.98px) {
    .category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .feed-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .header-main {
        gap: .75rem;
        padding: .625rem 0;
    }

    .brand-logo {
        margin-right: auto;
    }

    .brand-logo .brand-mark img {
        height: 30px;
    }

    .hero-side {
        flex-direction: row;
    }

    .side-banner {
        aspect-ratio: 2 / 1;
    }

    .feed-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    .feed-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .hero {
        padding-top: .75rem;
    }

    .hero-caption {
        gap: .25rem;
        padding-bottom: 12%;
    }

    .hero-sub,
    .hero-intro-sub,
    .side-tile small {
        display: none;
    }

    .hero-caption .btn-sf,
    .hero-intro .btn-sf {
        padding: .4375rem .875rem;
        font-size: .75rem;
    }

    .hero-side {
        gap: .75rem;
    }

    .side-tile {
        padding: .75rem .875rem;
    }

    .side-tile strong {
        font-size: .8125rem;
    }

    .perks-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

    .perk {
        padding: .5rem .625rem;
        border-radius: var(--sf-radius-sm);
    }

    .perk-icon {
        width: 32px;
        height: 32px;
        font-size: .8125rem;
    }

    .box {
        padding: .875rem .75rem 1rem;
    }

    .box-head {
        flex-wrap: wrap;
    }

    .box-tools .sf-nav,
    .deals-chip {
        display: none;
    }

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .5rem;
    }

    .feed-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }

    .product-body {
        padding: .25rem .5rem .625rem;
    }

    .product-price {
        font-size: .9375rem;
    }
}
