/* ==========================================================================
   Seller storefront design system
   Used only when a seller storefront is active (StoreContext::isActive()).
   Three templates share the tokens below and differ in layout.
   ========================================================================== */

.store {
    --st-ink: #14161a;
    --st-muted: #6b7280;
    --st-line: #e9eaee;
    --st-soft: #f6f7f9;
    --st-accent: #111827;
    --st-radius: 14px;
    color: var(--st-ink);
    background: #fff;
}

.store *,
.store *::before,
.store *::after { box-sizing: border-box; }

.store img { max-width: 100%; }

/* ---------------------------------------------------------------- blocks */

.st-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.st-section { padding: 56px 0; }
.st-section--tight { padding: 34px 0; }
.st-section--soft { background: var(--st-soft); }

.st-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}
.st-head__title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.2;
}
.st-head__sub { margin: 6px 0 0; color: var(--st-muted); font-size: 14px; }
.st-head__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--st-ink);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid var(--st-ink);
    padding-bottom: 2px;
}
.st-head__link:hover { color: var(--st-accent); text-decoration: none; }

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

.st-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.st-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(17, 24, 39, .09);
    border-color: transparent;
}
.st-card__media {
    display: block;
    position: relative;
    background: var(--st-soft);
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.st-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.st-card:hover .st-card__media img { transform: scale(1.045); }
.st-card__body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 5px; }
.st-card__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--st-ink);
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.st-card__title:hover { color: var(--st-accent); text-decoration: none; }
.st-card__price { font-size: 15px; font-weight: 800; }
.st-card__price del { font-size: 12px; font-weight: 500; color: var(--st-muted); margin-left: 6px; }
.st-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    color: var(--st-ink);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}
.st-badge--dark { background: var(--st-accent); color: #fff; }

.st-grid { display: grid; gap: 18px; }
.st-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

.st-hero { position: relative; overflow: hidden; background: var(--st-accent); }
.st-hero__slide { position: relative; }
.st-hero__img { width: 100%; height: 480px; object-fit: cover; display: block; }
.st-hero__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .55) 100%);
}
.st-hero__content { padding: 0 0 54px; color: #fff; max-width: 640px; }
.st-hero__eyebrow {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .16);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.st-hero__title { font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 10px; color: #fff; }
.st-hero__text { font-size: 16px; opacity: .88; margin: 0 0 22px; }
.st-hero__cta {
    display: inline-block;
    background: #fff;
    color: var(--st-ink);
    font-weight: 700;
    font-size: 14px;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
}
.st-hero__cta:hover { text-decoration: none; transform: translateY(-1px); }

.st-hero--fallback {
    background: linear-gradient(135deg, #16181d 0%, #2b2f36 55%, #4a4f57 100%);
    padding: 96px 0;
    color: #fff;
    text-align: center;
}
.st-hero--fallback h1 { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; color: #fff; }
.st-hero--fallback p { color: rgba(255, 255, 255, .72); margin: 0; font-size: 16px; }

/* ---------------------------------------------------------------- categories */

.st-cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.st-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 10px;
    border: 1px solid var(--st-line);
    border-radius: var(--st-radius);
    background: #fff;
    text-decoration: none;
    color: var(--st-ink);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.st-cat:hover { border-color: var(--st-accent); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(17, 24, 39, .07); text-decoration: none; color: var(--st-ink); }
.st-cat__mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--st-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -.02em;
}
.st-cat__name { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; }

/* ---------------------------------------------------------------- strips */

.st-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--st-line); border-top: 1px solid var(--st-line); border-bottom: 1px solid var(--st-line); }
.st-feature { background: #fff; padding: 22px 20px; display: flex; gap: 14px; align-items: center; }
.st-feature__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--st-soft); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.st-feature b { display: block; font-size: 14px; }
.st-feature span { font-size: 12px; color: var(--st-muted); }

.st-cta { background: var(--st-accent); color: #fff; padding: 64px 0; text-align: center; }
.st-cta h2 { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.st-cta p { color: rgba(255, 255, 255, .72); margin: 0 0 24px; }
.st-cta a {
    display: inline-block;
    background: #fff;
    color: var(--st-ink);
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

/* ================================================================ MODERN */

.tpl-modern .st-hero__img { height: 520px; }
.tpl-modern .st-products { padding-top: 8px; }

/* ================================================================ CLASSIC */

.tpl-classic { background: #fafafa; }
.tpl-classic .st-topbar {
    background: var(--st-accent);
    color: #fff;
    font-size: 13px;
    padding: 10px 0;
}
.tpl-classic .st-topbar .st-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tpl-classic .st-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.tpl-classic .st-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.tpl-classic .st-side { background: #fff; border: 1px solid var(--st-line); border-radius: var(--st-radius); overflow: hidden; position: sticky; top: 16px; }
.tpl-classic .st-side__head { padding: 14px 16px; font-weight: 800; font-size: 14px; border-bottom: 1px solid var(--st-line); }
.tpl-classic .st-side a { display: block; padding: 11px 16px; font-size: 13px; color: #374151; text-decoration: none; border-bottom: 1px solid #f3f4f6; }
.tpl-classic .st-side a:last-child { border-bottom: 0; }
.tpl-classic .st-side a:hover { background: var(--st-soft); color: var(--st-ink); }
.tpl-classic .st-hero__img { height: 400px; border-radius: var(--st-radius); }
.tpl-classic .st-hero { border-radius: var(--st-radius); overflow: hidden; }
.tpl-classic .st-hero__content { padding: 0 28px 28px; }
.tpl-classic .st-hero__title { font-size: 32px; }
.tpl-classic .st-section { padding: 40px 0; }
.tpl-classic .st-card { border-radius: 10px; }

@media (max-width: 991px) {
    .tpl-classic .st-layout { grid-template-columns: minmax(0, 1fr); }
    .tpl-classic .st-side { position: static; }
}

/* ================================================================ MINIMAL */

.tpl-minimal { background: #fff; }
.tpl-minimal .st-masthead { text-align: center; padding: 54px 0 34px; }
.tpl-minimal .st-masthead__brand {
    font-size: 12px;
    letter-spacing: .34em;
    text-transform: uppercase;
    color: var(--st-muted);
    margin-bottom: 14px;
}
.tpl-minimal .st-masthead__title {
    font-size: 42px;
    font-weight: 300;
    letter-spacing: -.035em;
    margin: 0 0 12px;
}
.tpl-minimal .st-masthead__text { color: var(--st-muted); font-size: 15px; margin: 0; }
.tpl-minimal .st-rule { height: 1px; background: var(--st-line); }
.tpl-minimal .st-hero__img { height: 620px; }
.tpl-minimal .st-card { border: 0; border-radius: 0; }
.tpl-minimal .st-card:hover { transform: none; box-shadow: none; }
.tpl-minimal .st-card__media { aspect-ratio: 3 / 4; background: #fafafa; }
.tpl-minimal .st-card__body { padding: 12px 0 0; }
.tpl-minimal .st-card__title { font-weight: 500; min-height: 0; }
.tpl-minimal .st-card__price { font-weight: 600; color: var(--st-muted); font-size: 13px; }
.tpl-minimal .st-navline { display: flex; justify-content: center; flex-wrap: wrap; gap: 22px; padding: 16px 0; }
.tpl-minimal .st-navline a { font-size: 13px; color: var(--st-ink); text-decoration: none; }
.tpl-minimal .st-navline a:hover { text-decoration: underline; }
.tpl-minimal .st-section { padding: 46px 0; }

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

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

@media (max-width: 991px) {
    .st-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .st-hero__img { height: 380px; }
    .tpl-minimal .st-hero__img { height: 440px; }
    .st-hero__title { font-size: 32px; }
}

@media (max-width: 767px) {
    .st-section { padding: 36px 0; }
    .st-grid--4, .st-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .st-features { grid-template-columns: 1fr; }
    .st-hero__img, .tpl-modern .st-hero__img { height: 300px; }
    .tpl-minimal .st-hero__img { height: 320px; }
    .st-hero__content { padding: 0 0 26px; }
    .st-hero__title, .tpl-classic .st-hero__title { font-size: 26px; }
    .st-head__title { font-size: 21px; }
    .tpl-minimal .st-masthead__title { font-size: 30px; }
    .st-hero--fallback { padding: 60px 0; }
    .st-hero--fallback h1 { font-size: 30px; }
}

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

.store-nav {
    position: sticky;
    top: 0;
    z-index: 1035;
    background: #fff;
    border-bottom: 1px solid var(--st-line, #e9eaee);
}
.store-nav .h5 { font-weight: 800; letter-spacing: -.02em; }
.store-nav .btn-link { color: #4b5563 !important; font-size: 13px; font-weight: 500; text-decoration: none; }
.store-nav .btn-link:hover { color: #111827 !important; text-decoration: underline; }
.store-nav .form-control { border-radius: 999px 0 0 999px; border-color: #e5e7eb; }
.store-nav .input-group-append .btn { border-radius: 0 999px 999px 0; }
