/* ============================================================================
   STOREFRONT THEME PRESETS
   Loaded after kotn-theme.css. Tokens (--kotn-*) still come from the admin
   colour/type settings. This file only changes layout, density, radius and
   homepage structure per [data-store-theme].

   Adding a theme later:
     1. Append an entry in app/Support/StorefrontThemeCatalog.php
     2. Add a [data-store-theme="{id}"] block below
     3. Optionally add a homepage order in HomeComponent.vue
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ---- Preview banner (query ?theme_preview=) ----------------------------- */
.theme-preview-banner {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px 16px;
    background: var(--kotn-black);
    color: var(--kotn-white);
    font-size: 13px;
    letter-spacing: .04em;
}
.theme-preview-banner__exit {
    color: var(--kotn-white) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

/* ---- Buttons: override the square default in kotn-theme.css ------------ */
html[data-button-style="rounded"] .kotn-store .btn,
html[data-button-style="rounded"] .kotn-store a.bg-primary,
html[data-button-style="rounded"] .kotn-store input[type="submit"],
html[data-button-style="rounded"] .kotn-store .bg-primary,
html[data-button-style="rounded"] .kotn-store button.rounded-full.w-full,
html[data-button-style="rounded"] .kotn-store a.rounded-full.w-full,
html[data-button-style="rounded"] .kotn-store .field-button {
    border-radius: 12px !important;
}

html[data-button-style="pill"] .kotn-store .btn,
html[data-button-style="pill"] .kotn-store a.bg-primary,
html[data-button-style="pill"] .kotn-store input[type="submit"],
html[data-button-style="pill"] .kotn-store .bg-primary,
html[data-button-style="pill"] .kotn-store button.rounded-full.w-full,
html[data-button-style="pill"] .kotn-store a.rounded-full.w-full,
html[data-button-style="pill"] .kotn-store .field-button {
    border-radius: 9999px !important;
}

html[data-button-style="underline"] .kotn-store button.rounded-full.w-full,
html[data-button-style="underline"] .kotn-store a.rounded-full.w-full,
html[data-button-style="underline"] .kotn-store .field-button {
    background: transparent !important;
    color: var(--kotn-black) !important;
    border: 0 !important;
    border-radius: 0 !important;
    height: auto !important;
    text-decoration: underline;
    text-underline-offset: 6px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 8px 0 !important;
}

/* ---- Density ------------------------------------------------------------ */
html[data-density="spacious"] .kotn-store section {
    margin-bottom: 1.5rem;
}
@media (min-width: 640px) {
    html[data-density="spacious"] .kotn-store section.mb-10,
    html[data-density="spacious"] .kotn-store section.sm\:mb-20,
    html[data-density="spacious"] .kotn-store .mb-10.sm\:mb-20 {
        margin-bottom: 5.5rem !important;
    }
}
html[data-density="compact"] .kotn-store section.mb-10,
html[data-density="compact"] .kotn-store section.mb-7,
html[data-density="compact"] .kotn-store .mb-10 {
    margin-bottom: 1.25rem !important;
}
html[data-density="compact"] .kotn-store .miron {
    padding: 0 !important;
}
html[data-density="compact"] .kotn-store .container {
    max-width: 1600px;
}

/* ---- Category chips (Marketplace) -------------------------------------- */
.theme-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--kotn-line, #e7e3dd);
    background: var(--kotn-white);
    color: var(--kotn-black);
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    border-radius: 9999px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-chip:hover {
    background: var(--kotn-accent);
    color: var(--kotn-white) !important;
    border-color: var(--kotn-accent);
}

/* ====================================================================== */
/*  HEADER / MENU — shared, then per-theme                                */
/*  Home/Offers were <a> (uppercase, tracked) while Categories was a      */
/*  <button> (bold, sentence case). One set of rules covers both.         */
/* ====================================================================== */
html[data-store-theme] .kotn-store .header-nav-list {
    gap: 28px;
}
html[data-store-theme] .kotn-store .header-nav-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 22px 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    line-height: 1;
    text-transform: none !important;
    color: var(--kotn-black) !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
html[data-store-theme] .kotn-store a.header-nav-menu.router-link-active,
html[data-store-theme] .kotn-store a.header-nav-menu.router-link-exact-active,
html[data-store-theme] .kotn-store a.header-nav-menu.text-primary {
    color: var(--kotn-black) !important;
}
html[data-store-theme] .kotn-store a.header-nav-menu.router-link-active::after,
html[data-store-theme] .kotn-store a.header-nav-menu.router-link-exact-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 2px;
    background: var(--kotn-accent);
}
html[data-store-theme] .kotn-store .header-nav-menu.down-arrow::after {
    font-size: 10px !important;
    font-weight: 700 !important;
    opacity: .55;
}

/* Hang the category panel from the header's bottom edge, not a fixed 64px
   that sits in the middle of the bar. */
.kotn-store header {
    overflow: visible;
}
.kotn-store .header-nav-item {
    position: static;
}
.kotn-store .theme-megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 40;
}

/* Megamenu: do not inherit top-nav tracking/padding. Tabs need horizontal
   space so labels like Men / Women / Juniors stay separate words. */
html[data-store-theme] .kotn-store .header-nav-item > div a {
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    font-family: var(--kotn-body) !important;
    font-weight: 500 !important;
    padding-left: inherit;
    padding-right: inherit;
}
html[data-store-theme] .kotn-store .header-nav-item > div > .container > div > nav {
    gap: 4px;
    flex-wrap: wrap;
}
html[data-store-theme] .kotn-store .header-nav-item > div > .container > div > nav > a {
    padding: 16px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    white-space: nowrap;
}
html[data-store-theme] .kotn-store .header-nav-item > div h3 a {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
}
html[data-store-theme] .kotn-store .header-nav-item > div nav a {
    font-size: 13px !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    line-height: 1.4;
}

/* Classic — quiet, even weights, accent underline on the active item. */
html[data-store-theme="classic"] .kotn-store header form[class*="rounded"] {
    border-radius: 9999px !important;
    background: var(--kotn-surface, #F7F7FC) !important;
    border-color: transparent !important;
}

/* Modern — tracked labels, muted idle, ink when active, pill search. */
html[data-store-theme="modern"] .kotn-store header {
    border-bottom-color: transparent !important;
}
html[data-store-theme="modern"] .kotn-store .header-nav-list {
    gap: 32px;
}
html[data-store-theme="modern"] .kotn-store .header-nav-menu {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--kotn-muted, #6b6b6b) !important;
}
html[data-store-theme="modern"] .kotn-store a.header-nav-menu.router-link-active,
html[data-store-theme="modern"] .kotn-store a.header-nav-menu.router-link-exact-active {
    color: var(--kotn-black) !important;
}
html[data-store-theme="modern"] .kotn-store a.header-nav-menu.router-link-active::after {
    height: 1px;
    background: var(--kotn-black);
    bottom: 16px;
}
html[data-store-theme="modern"] .kotn-store header form[class*="rounded"] {
    border-radius: 9999px !important;
    background: var(--kotn-surface, #F7F7FC) !important;
    border-color: transparent !important;
}

/* Bento — sentence case, a bit heavier, rounded search. */
html[data-store-theme="bento"] .kotn-store .header-nav-list {
    gap: 24px;
}
html[data-store-theme="bento"] .kotn-store .header-nav-menu {
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
}
html[data-store-theme="bento"] .kotn-store a.header-nav-menu.router-link-active::after {
    height: 3px;
    border-radius: 2px;
    bottom: 12px;
}
html[data-store-theme="bento"] .kotn-store header form[class*="rounded"] {
    border-radius: 14px !important;
    background: var(--kotn-white) !important;
    border: 1px solid rgba(28, 25, 23, .08) !important;
}

/* Editorial — magazine masthead, display face, hairline underline. */
html[data-store-theme="editorial"] .kotn-store .header-nav-list {
    gap: 30px;
}
html[data-store-theme="editorial"] .kotn-store .header-nav-menu {
    font-family: var(--kotn-display) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
}
html[data-store-theme="editorial"] .kotn-store a.header-nav-menu.router-link-active::after {
    height: 1px;
    background: var(--kotn-black);
    bottom: 16px;
}
html[data-store-theme="editorial"] .kotn-store header form[class*="rounded"] {
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--kotn-line, #e7e3dd) !important;
}

/* Marketplace — compact labels, search is the main control. */
html[data-store-theme="marketplace"] .kotn-store .header-nav-list {
    gap: 18px;
}
html[data-store-theme="marketplace"] .kotn-store .header-nav-menu {
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    padding: 16px 0 !important;
}
html[data-store-theme="marketplace"] .kotn-store a.header-nav-menu.router-link-active::after {
    bottom: 10px;
}
html[data-store-theme="marketplace"] .kotn-store header form[class*="rounded"],
html[data-store-theme="marketplace"] .kotn-store header .theme-mp-search {
    border-radius: 9999px !important;
    background: var(--kotn-white) !important;
    border: 1px solid var(--kotn-line, #e7e3dd) !important;
    height: 44px;
    padding-right: 4px !important;
}
html[data-store-theme="marketplace"] .kotn-store header .theme-mp-search:focus-within {
    border-color: var(--kotn-accent) !important;
    box-shadow: 0 0 0 3px var(--kotn-accent-soft, #CCFBF1);
}

/* ====================================================================== */
/*  MODERN — clean, minimal, spacious, product-focused                    */
/* ====================================================================== */
[data-store-theme="modern"] .kotn-store,
.kotn-store.kotn-theme-modern {
    --kotn-card: #f7f6f3;
}
[data-store-theme="modern"] .kotn-store header,
.kotn-theme-modern header {
    border-bottom-color: transparent !important;
}
[data-store-theme="modern"] .kotn-store .banner-swiper,
[data-store-theme="modern"] .kotn-store .banner-swiper img,
.kotn-theme-modern .banner-swiper,
.kotn-theme-modern .banner-swiper img {
    border-radius: 20px !important;
}
[data-store-theme="modern"] .kotn-store .miron,
.kotn-theme-modern .miron {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
[data-store-theme="modern"] .kotn-store .miron img,
.kotn-theme-modern .miron img {
    border-radius: 16px !important;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}
[data-store-theme="modern"] .kotn-store .miron h3,
.kotn-theme-modern .miron h3 {
    font-weight: 500 !important;
    padding-top: 14px;
}
@media (min-width: 1024px) {
    [data-store-theme="modern"] .theme-product-grid,
    .kotn-theme-modern .theme-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
[data-store-theme="modern"] .kotn-store h2,
.kotn-theme-modern h2 {
    letter-spacing: -0.02em;
}

/* ====================================================================== */
/*  BENTO — asymmetric homepage board                                     */
/*  Cells are real tiles. Full-width carousels are not forced into them.  */
/* ====================================================================== */
html[data-store-theme="bento"] .theme-bento-top,
.kotn-theme-bento .theme-bento-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 1440px;
    margin: 0 auto 2rem;
    padding: 0 16px;
}
html[data-store-theme="bento"] .theme-bento-hero,
html[data-store-theme="bento"] .theme-bento-cats,
html[data-store-theme="bento"] .theme-bento-promo,
.kotn-theme-bento .theme-bento-hero,
.kotn-theme-bento .theme-bento-cats,
.kotn-theme-bento .theme-bento-promo {
    min-width: 0;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--kotn-card, #f4f2f0);
}
html[data-store-theme="bento"] .theme-bento-hero {
    min-height: 220px;
    height: min(46vw, 340px);
}
html[data-store-theme="bento"] .theme-bento-top section,
.kotn-theme-bento .theme-bento-top section {
    margin: 0 !important;
    height: 100%;
}
html[data-store-theme="bento"] .theme-bento-top .container,
html[data-store-theme="bento"] .theme-bento-slider-inner,
.kotn-theme-bento .theme-bento-top .container,
.kotn-theme-bento .theme-bento-slider-inner {
    width: 100%;
    max-width: none;
    padding: 0;
    height: 100%;
}

/* Hero fill: every Swiper layer has to take the cell height. */
html[data-store-theme="bento"] .theme-bento-hero > section,
html[data-store-theme="bento"] .theme-bento-hero .theme-bento-slider,
html[data-store-theme="bento"] .theme-bento-hero .banner-swiper,
html[data-store-theme="bento"] .theme-bento-hero .swiper-wrapper,
html[data-store-theme="bento"] .theme-bento-hero .swiper-slide,
html[data-store-theme="bento"] .theme-bento-hero a {
    height: 100%;
    display: block;
}
html[data-store-theme="bento"] .theme-bento-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

.theme-bento-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: 100%;
    padding: 8px;
}
.theme-bento-cat-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    min-height: 0;
    background: var(--kotn-white, #fff);
}
.theme-bento-cat-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    display: block;
}
.theme-bento-cat-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent, rgba(0,0,0,.6));
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.2;
}

.theme-bento-promo-section,
.theme-bento-promo-tile {
    display: block;
    height: 100%;
    min-height: 160px;
}
.theme-bento-promo-tile img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    display: block;
}

@media (min-width: 900px) {
    html[data-store-theme="bento"] .theme-bento-top,
    .kotn-theme-bento .theme-bento-top {
        grid-template-columns: 1.65fr 1fr;
        grid-template-rows: 1fr 1fr;
        grid-template-areas:
            "hero cats"
            "hero promo";
        height: min(560px, 62vh);
        min-height: 420px;
    }
    html[data-store-theme="bento"] .theme-bento-top:not(.has-promo) {
        grid-template-areas: "hero cats";
        grid-template-rows: 1fr;
    }
    html[data-store-theme="bento"] .theme-bento-hero,
    .kotn-theme-bento .theme-bento-hero {
        grid-area: hero;
        height: auto;
        max-height: none;
        min-height: 0;
    }
    html[data-store-theme="bento"] .theme-bento-cats,
    .kotn-theme-bento .theme-bento-cats { grid-area: cats; }
    html[data-store-theme="bento"] .theme-bento-promo,
    .kotn-theme-bento .theme-bento-promo { grid-area: promo; }
    html[data-store-theme="bento"] .theme-bento-top:not(.has-promo) .theme-bento-promo {
        display: none;
    }
    html[data-store-theme="bento"] .theme-bento-cat-tile img {
        aspect-ratio: auto;
        height: 100%;
    }
    html[data-store-theme="bento"] .theme-bento-cat-grid {
        grid-template-rows: 1fr 1fr;
        height: 100%;
    }
    html[data-store-theme="bento"] .theme-bento-cat-tile {
        height: 100%;
    }
}

/* Featured product: wide tile, not a 2×2 span that leaves holes in the grid. */
@media (min-width: 768px) {
    html[data-store-theme="bento"] .theme-product-grid,
    .kotn-theme-bento .theme-product-grid {
        grid-auto-flow: dense;
    }
    html[data-store-theme="bento"] .theme-product-grid > .miron:first-child,
    .kotn-theme-bento .theme-product-grid > .miron:first-child {
        grid-column: span 2;
    }
    html[data-store-theme="bento"] .theme-product-grid > .miron:first-child img,
    .kotn-theme-bento .theme-product-grid > .miron:first-child img {
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }
}
html[data-store-theme="bento"] .kotn-store .miron,
.kotn-theme-bento .miron {
    background: var(--kotn-white) !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: none !important;
}
html[data-store-theme="bento"] .kotn-store .miron img,
.kotn-theme-bento .miron img {
    border-radius: 16px 16px 4px 4px !important;
}
html[data-store-theme="bento"] .kotn-store .rounded-2xl,
html[data-store-theme="bento"] .kotn-store .rounded-3xl,
.kotn-theme-bento .rounded-2xl,
.kotn-theme-bento .rounded-3xl {
    border-radius: 18px !important;
}

/* ====================================================================== */
/*  EDITORIAL — magazine: large type, full-bleed photos, sharp edges      */
/* ====================================================================== */
[data-store-theme="editorial"] .kotn-store h2,
.kotn-theme-editorial h2 {
    font-family: var(--kotn-display) !important;
    font-weight: 400 !important;
    letter-spacing: -0.02em;
}
[data-store-theme="editorial"] .kotn-store .ad-swiper img,
[data-store-theme="editorial"] .kotn-store .rounded-3xl,
.kotn-theme-editorial .ad-swiper img {
    border-radius: 0 !important;
}
[data-store-theme="editorial"] .kotn-store .theme-product-grid,
.kotn-theme-editorial .theme-product-grid {
    gap: 2px;
}
[data-store-theme="editorial"] .home-editorial > section:first-child,
.kotn-theme-editorial .home-editorial > section:first-child {
    margin-bottom: 0;
}

/* Full-bleed hero even if the card style is later customised. */
[data-store-theme="editorial"] .kotn-hero { width: 100%; }
[data-store-theme="editorial"] .kotn-hero-img {
    width: 100%; height: 56vh; max-height: 640px; min-height: 280px;
    object-fit: cover; display: block;
}
@media (min-width: 768px) {
    [data-store-theme="editorial"] .kotn-hero-img { height: 72vh; max-height: 760px; }
}

/* ====================================================================== */
/*  MARKETPLACE — search-first discovery, department aisle, deal tiles    */
/* ====================================================================== */
[data-store-theme="marketplace"] .kotn-store,
.kotn-theme-marketplace {
    background: var(--kotn-ground, #F1F5F9);
}
[data-store-theme="marketplace"] .kotn-store header,
.kotn-theme-marketplace header {
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--kotn-line, #e7e3dd) !important;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
[data-store-theme="marketplace"] .kotn-store header .container,
.kotn-theme-marketplace header .container {
    gap: 12px;
}

.theme-mp-search-go {
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 9999px;
    background: var(--kotn-accent);
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
}
.theme-mp-search-go:hover {
    background: var(--kotn-accent-deep, var(--kotn-accent));
}

/* Department aisle — Shopee-style thumbs, not wrapping chips. */
.theme-mp-aisle-section {
    margin-bottom: 0.5rem !important;
    padding: 10px 0 4px;
    background: var(--kotn-white);
    border-bottom: 1px solid var(--kotn-line, #e7e3dd);
}
.theme-mp-aisle {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px 0 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.theme-mp-dept {
    flex: 0 0 auto;
    width: 84px;
    text-align: center;
    color: var(--kotn-ink, #0F172A);
    text-decoration: none !important;
}
.theme-mp-dept-thumb {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--kotn-line, #e7e3dd);
    background: var(--kotn-surface, #F8FAFC);
}
.theme-mp-dept-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.theme-mp-dept-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.theme-mp-dept:hover .theme-mp-dept-thumb {
    border-color: var(--kotn-accent);
}
.theme-mp-dept:hover .theme-mp-dept-name {
    color: var(--kotn-accent);
}

/* Hero + stacked deal tiles. */
.theme-mp-hero-wrap {
    padding-top: 12px;
    margin-bottom: 1rem;
}
.theme-mp-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.theme-mp-hero-slider,
.theme-mp-hero-deals {
    min-width: 0;
    min-height: 0;
}
.theme-mp-hero:not(.has-promo) .theme-mp-hero-deals {
    display: none;
}
.theme-mp-slider,
.theme-mp-slider-inner,
.theme-mp-promo-section {
    margin: 0 !important;
    height: 100%;
}
.theme-mp-slider-inner {
    width: 100%;
    max-width: none;
    padding: 0;
}
.theme-mp-hero-slider .banner-swiper,
.theme-mp-hero-slider .swiper-wrapper,
.theme-mp-hero-slider .swiper-slide,
.theme-mp-hero-slider a {
    height: 100%;
    display: block;
}
[data-store-theme="marketplace"] .theme-mp-hero-slider img,
.kotn-theme-marketplace .theme-mp-hero-slider img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
    border-radius: 12px !important;
}
.theme-mp-promo-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 100%;
}
.theme-mp-promo-tile {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    min-height: 120px;
    background: var(--kotn-white);
}
.theme-mp-promo-tile img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
    display: block;
}
.theme-mp-promo-section:has(.theme-mp-promo-tile:only-child) {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}
.theme-mp-hero:not(.has-promo) .theme-mp-hero-slider .banner-swiper,
.theme-mp-hero:not(.has-promo) .theme-mp-hero-slider a {
    height: auto;
}
.theme-mp-hero:not(.has-promo) .theme-mp-hero-slider img {
    height: auto;
    max-height: 280px;
}
@media (min-width: 900px) {
    .theme-mp-hero.has-promo {
        grid-template-columns: 2fr 1fr;
        height: min(36vw, 340px);
        min-height: 240px;
    }
    .theme-mp-promo-section {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .theme-mp-promo-tile,
    .theme-mp-promo-tile img {
        min-height: 0;
        height: 100%;
    }
    .theme-mp-hero:not(.has-promo) .theme-mp-hero-slider img {
        max-height: 320px;
        height: auto;
    }
}

/* Flash sale as a contained deal rail. */
[data-store-theme="marketplace"] .kotn-store .kotn-flash,
.kotn-theme-marketplace .kotn-flash {
    background: transparent;
    padding: 0 0 4px;
}
[data-store-theme="marketplace"] .kotn-store .kotn-flash .container,
.kotn-theme-marketplace .kotn-flash .container {
    background: var(--kotn-white);
    border: 1px solid var(--kotn-line, #e7e3dd);
    border-radius: 12px;
    padding: 16px 20px 18px;
}
[data-store-theme="marketplace"] .kotn-store .kotn-flash h2,
.kotn-theme-marketplace .kotn-flash h2 {
    font-size: 18px !important;
    align-items: center;
}
.theme-mp-timer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
}
.theme-mp-timer-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--kotn-muted, #64748B);
    text-transform: none;
}
.theme-mp-tick {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 4px 6px 3px;
    border-radius: 6px;
    background: var(--kotn-ink, #0F172A);
    color: #fff;
    line-height: 1;
}
.theme-mp-tick b {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.theme-mp-tick small {
    font-size: 9px;
    font-weight: 600;
    opacity: .7;
    text-transform: uppercase;
    margin-top: 2px;
}

/* Product cards: price-first, 2-line titles, no fashion tilt. */
[data-store-theme="marketplace"] .kotn-store .miron,
html[data-store-theme="marketplace"] .kotn-store .miron,
.kotn-theme-marketplace .miron {
    box-shadow: none !important;
    border: 1px solid var(--kotn-line, #e7e3dd);
    border-radius: 10px !important;
    background: var(--kotn-white) !important;
    padding: 8px !important;
}
[data-store-theme="marketplace"] .kotn-store .miron:hover,
.kotn-theme-marketplace .miron:hover {
    border-color: var(--kotn-accent);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .08) !important;
    transform: none !important;
}
[data-store-theme="marketplace"] .kotn-store .miron img,
.kotn-theme-marketplace .miron img {
    border-radius: 8px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transform: none !important;
}
[data-store-theme="marketplace"] .theme-mp-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
[data-store-theme="marketplace"] .theme-mp-card-title {
    order: 1;
    font-size: 13px !important;
    line-height: 1.35;
    font-weight: 600;
    min-height: 2.7em;
}
[data-store-theme="marketplace"] .theme-mp-card-title,
[data-store-theme="marketplace"] .theme-mp-card-title a {
    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
[data-store-theme="marketplace"] .theme-mp-card-price {
    order: 2;
}
[data-store-theme="marketplace"] .theme-mp-card-price.text-xl,
[data-store-theme="marketplace"] .theme-mp-card-price h3,
[data-store-theme="marketplace"] .theme-mp-card-price.h3,
[data-store-theme="marketplace"] .miron .theme-mp-card-price.font-bold {
    font-size: 16px !important;
}
[data-store-theme="marketplace"] .theme-mp-card-price del {
    font-size: 12px !important;
    font-weight: 500;
}
[data-store-theme="marketplace"] .theme-mp-card-rating {
    order: 3;
}
[data-store-theme="marketplace"] .kotn-sale-badge,
.kotn-theme-marketplace .kotn-sale-badge {
    border-radius: 4px;
    letter-spacing: 0;
    font-size: 10px;
    padding: 2px 6px;
    text-transform: uppercase;
}
[data-store-theme="marketplace"] .kotn-discount-badge,
.kotn-theme-marketplace .kotn-discount-badge {
    border-radius: 4px;
    font-size: 11px;
}

@media (min-width: 1024px) {
    [data-store-theme="marketplace"] .theme-product-grid,
    .kotn-theme-marketplace .theme-product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 10px;
    }
    [data-store-theme="marketplace"] .theme-listing-grid,
    .kotn-theme-marketplace .theme-listing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Quieter section titles; compact trust strip and brands. */
[data-store-theme="marketplace"] .kotn-store h2,
.kotn-theme-marketplace h2 {
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}
[data-store-theme="marketplace"] .kotn-store a.bg-primary-slate,
.kotn-theme-marketplace a.bg-primary-slate {
    padding: 6px 14px !important;
    font-size: 13px !important;
}
[data-store-theme="marketplace"] .kotn-store #filter-canvas > div,
.kotn-theme-marketplace #filter-canvas > div {
    background: var(--kotn-white) !important;
}
[data-store-theme="marketplace"] .kotn-store section.border-t,
.kotn-theme-marketplace section.border-t {
    padding: 18px 0 28px !important;
    background: var(--kotn-white);
    border-top-color: var(--kotn-line, #e7e3dd) !important;
}
[data-store-theme="marketplace"] .kotn-store section.border-t h4,
.kotn-theme-marketplace section.border-t h4 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
}
[data-store-theme="marketplace"] .kotn-store section.border-t p,
.kotn-theme-marketplace section.border-t p {
    font-size: 12px !important;
    color: var(--kotn-muted, #64748B);
}
[data-store-theme="marketplace"] .kotn-store .navigate-swiper figure,
.kotn-theme-marketplace .navigate-swiper figure {
    height: 88px !important;
}
[data-store-theme="marketplace"] .home-marketplace > .mb-10,
[data-store-theme="marketplace"] .home-marketplace section.mb-10 {
    margin-bottom: 1.25rem !important;
}
