:root {
    --ink: #1b1f23;
    --muted: #68707a;
    --line: #dfe3e8;
    --paper: #ffffff;
    --canvas: #f4f6f8;
    --orange: #f27a1a;
    --teal: #087f7a;
    --blue: #2563eb;
    --rose: #be3455;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--canvas);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-body {
    min-height: 100vh;
}

.store-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar {
    align-items: center;
    display: grid;
    gap: 18px;
    grid-template-columns: 190px minmax(280px, 1fr) auto;
    margin: 0 auto;
    max-width: 1240px;
    padding: 16px 20px 12px;
}

.brand,
.panel-brand {
    color: var(--orange);
    font-size: 22px;
    font-weight: 800;
}

.searchbar {
    display: grid;
    grid-template-columns: 1fr 92px;
}

.searchbar input {
    background: #f1f3f5;
    border: 1px solid transparent;
    border-radius: 6px 0 0 6px;
    min-height: 44px;
    padding: 0 14px;
}

.searchbar button,
.form-actions button,
.primary-link {
    background: var(--orange);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
}

.searchbar button {
    border-radius: 0 6px 6px 0;
}

.quick-nav,
.category-strip {
    align-items: center;
    display: flex;
    gap: 18px;
}

.quick-nav {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.category-strip {
    border-top: 1px solid var(--line);
    margin: 0 auto;
    max-width: 1240px;
    overflow: auto;
    padding: 10px 20px;
    white-space: nowrap;
}

.home-shell,
.listing-shell {
    margin: 0 auto;
    max-width: 1240px;
    padding: 24px 20px 56px;
}

.hero-band {
    align-items: center;
    background: linear-gradient(100deg, #fff 0%, #fff6ed 50%, #e9fbf8 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr 360px;
    min-height: 290px;
    padding: 36px;
}

.hero-band h1 {
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: 0;
    line-height: 1;
    margin: 8px 0 14px;
}

.hero-band p {
    color: var(--muted);
    max-width: 560px;
}

.eyebrow {
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.deal-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 24px;
}

.deal-panel span,
.deal-panel small,
.product-card p,
.metric-grid span,
.empty-state,
.filters,
td {
    color: var(--muted);
}

.deal-panel strong {
    font-size: 28px;
    line-height: 1.1;
}

.story-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 22px 0;
}

.story-card {
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    font-weight: 800;
    min-height: 84px;
    padding: 18px;
}

.product-rail,
.work-surface,
.form-grid,
.filters,
.empty-state {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.product-rail {
    padding: 22px;
}

.section-head,
.panel-heading {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-head h1,
.section-head h2,
.panel-heading h1 {
    margin: 0;
}

.section-head a {
    color: var(--blue);
    font-weight: 700;
}

.product-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
}

.product-media {
    aspect-ratio: 4 / 5;
    background:
        linear-gradient(135deg, rgba(242, 122, 26, .18), rgba(8, 127, 122, .16)),
        #eef2f7;
    border-radius: 6px;
}

.product-card h3 {
    font-size: 15px;
    line-height: 1.35;
    margin: 0;
}

.product-card strong {
    color: var(--rose);
}

.listing-shell {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 250px 1fr;
}

.filters {
    display: grid;
    gap: 12px;
    padding: 18px;
    position: sticky;
    top: 118px;
}

.filters h2 {
    color: var(--ink);
    font-size: 18px;
    margin: 0;
}

.panel-body {
    display: grid;
    grid-template-columns: 238px 1fr;
    min-height: 100vh;
}

.panel-sidebar {
    background: linear-gradient(180deg, #121b22, #18242c);
    color: #fff;
    display: grid;
    gap: 18px;
    grid-template-rows: auto 1fr;
    padding: 22px 18px;
}

.panel-nav,
.panel-sidebar nav {
    display: grid;
    gap: 5px;
    align-content: start;
}

.panel-sidebar a {
    border-radius: 6px;
    color: #d7dee6;
    font-weight: 700;
    padding: 10px 12px;
}

.panel-sidebar a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.panel-sidebar a.is-active {
    background: rgba(242, 122, 26, .16);
    color: #fff;
}

.nav-group {
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: grid;
    gap: 4px;
    margin-top: 6px;
    padding-top: 10px;
}

.nav-label {
    color: #8fa1b2;
    font-size: 11px;
    font-weight: 900;
    padding: 0 12px 2px;
    text-transform: uppercase;
}

.panel-sidebar .nav-subitem {
    color: #cbd5df;
    font-size: 14px;
    margin-left: 8px;
    padding: 8px 12px 8px 20px;
    position: relative;
}

.panel-sidebar .nav-subitem::before {
    background: rgba(255, 255, 255, .22);
    border-radius: 999px;
    content: "";
    height: 5px;
    left: 9px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
}

.panel-main {
    padding: 24px;
}

.metric-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.metric-grid article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 8px;
    padding: 18px;
}

.metric-grid strong {
    font-size: 30px;
}

.panel-date {
    background: #eef2f7;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 12px;
}

.admin-kpis article {
    border-left: 4px solid var(--orange);
}

.admin-kpis article:nth-child(2) {
    border-left-color: var(--teal);
}

.admin-kpis article:nth-child(3) {
    border-left-color: var(--blue);
}

.admin-kpis article:nth-child(4) {
    border-left-color: var(--rose);
}

.admin-kpis small {
    color: var(--muted);
    font-weight: 700;
}

.work-surface {
    overflow: auto;
    padding: 18px;
}

.sales-analytics {
    margin-bottom: 18px;
}

.analytics-chart {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(7, minmax(54px, 1fr));
    min-height: 220px;
    padding-top: 20px;
}

.chart-column {
    align-items: center;
    display: grid;
    gap: 10px;
}

.chart-bar {
    align-items: start;
    background: linear-gradient(180deg, #f27a1a, #ffb169);
    border-radius: 8px 8px 4px 4px;
    display: flex;
    justify-content: center;
    min-height: 8px;
    padding-top: 8px;
    width: 100%;
}

.chart-bar span {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.chart-column small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.status-pill {
    background: #eefdf4;
    border-radius: 999px;
    color: #166534;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.status-pill.is-muted {
    background: #f1f5f9;
    color: #64748b;
}

.status-pill.is-live {
    background: #e8f7ee;
    color: #166534;
}

.secondary-link {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    padding: 10px 14px;
}

.secondary-link:hover {
    border-color: #ffc58f;
    color: var(--orange);
}

.compact-head {
    margin-bottom: 14px;
}

.compact-head p {
    color: var(--muted);
    margin: 4px 0 0;
}

.catalog-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 330px minmax(0, 1fr);
}

.category-form-panel,
.category-list-panel,
.edit-surface {
    box-shadow: 0 12px 32px rgba(27, 31, 35, .04);
}

.form-stack {
    display: grid;
    gap: 13px;
}

.form-stack label {
    color: var(--muted);
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.form-stack input,
.form-stack select {
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 42px;
    padding: 10px 12px;
}

.switch-row {
    align-items: center;
    gap: 8px;
    justify-content: start;
}

.category-table {
    min-width: 820px;
}

.category-name {
    display: grid;
    gap: 3px;
    padding-left: calc(var(--depth) * 16px);
}

.category-name strong {
    color: var(--ink);
}

.category-name small,
.muted-action,
.category-preview span,
.category-preview small {
    color: var(--muted);
}

.table-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.table-actions a,
.table-actions button {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    color: var(--orange);
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    padding: 7px 9px;
}

.table-actions button {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.category-preview {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 5px;
    padding: 14px;
}

.category-preview strong {
    overflow-wrap: anywhere;
}

.product-filter-panel,
.product-list-panel,
.product-editor,
.product-side-panel,
.offer-list-panel {
    box-shadow: 0 12px 32px rgba(27, 31, 35, .04);
}

.product-filter-panel {
    margin-bottom: 18px;
}

.bulk-action-bar {
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
}

.bulk-action-bar label {
    color: var(--muted);
    display: grid;
    gap: 6px;
    font-weight: 800;
    min-width: 190px;
}

.bulk-action-bar select,
.bulk-action-bar button {
    border-radius: 6px;
    min-height: 40px;
    padding: 9px 12px;
}

.bulk-action-bar select {
    border: 1px solid var(--line);
}

.bulk-action-bar button,
.inline-save {
    background: var(--orange);
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.filter-grid {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.filter-grid label {
    color: var(--muted);
    display: grid;
    gap: 7px;
    font-weight: 700;
}

.filter-grid input,
.filter-grid select {
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 42px;
    padding: 10px 12px;
}

.filter-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.filter-actions button,
.action-stack button {
    background: var(--orange);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    min-height: 42px;
    padding: 10px 14px;
}

.product-table {
    min-width: 1120px;
}

.product-title-cell {
    display: grid;
    gap: 4px;
    min-width: 220px;
}

.product-title-cell strong {
    color: var(--ink);
}

.product-title-cell small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.product-actions {
    min-width: 190px;
}

.table-actions button.is-positive,
.action-stack button.is-positive {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #15803d;
}

.action-stack button.is-danger {
    background: #fff1f2;
    color: #be123c;
}

.status-pending-review {
    background: #fff7ed;
    color: #c2410c;
}

.status-published,
.status-active {
    background: #ecfdf3;
    color: #15803d;
}

.status-rejected {
    background: #fff1f2;
    color: #be123c;
}

.status-draft {
    background: #eef2ff;
    color: #3730a3;
}

.status-inactive {
    background: #f1f5f9;
    color: #64748b;
}

.product-detail-grid {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) 320px;
    margin-bottom: 18px;
}

.product-editor .form-grid {
    border: 0;
    padding: 0;
}

.product-side-panel {
    display: grid;
    gap: 18px;
}

.action-stack {
    display: grid;
    gap: 10px;
}

.action-stack form,
.action-stack button {
    width: 100%;
}

.product-meta-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.product-meta-list div {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.product-meta-list dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-meta-list dd {
    color: var(--ink);
    font-weight: 800;
    margin: 0;
}

.offer-table {
    min-width: 920px;
}

.product-hero-panel {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.product-hero-panel h2 {
    font-size: 28px;
    margin: 10px 0 4px;
}

.product-hero-panel p {
    color: var(--muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.inline-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
}

.inline-actions form,
.inline-actions button {
    width: auto;
}

.product-tabs {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    overflow: auto;
    padding: 8px;
}

.product-tabs a {
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    padding: 10px 12px;
    white-space: nowrap;
}

.product-tabs a:hover {
    background: #fff7ed;
    color: var(--orange);
}

.product-tab-section {
    margin-bottom: 18px;
    scroll-margin-top: 20px;
}

.inline-form-grid {
    align-items: end;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(120px, 1fr)) auto;
    margin-bottom: 16px;
    padding: 14px;
}

.inline-form-grid label {
    color: var(--muted);
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.inline-form-grid input,
.inline-form-grid select,
.attribute-table input,
.attribute-table select,
.editable-offer-table input,
.editable-offer-table select {
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 38px;
    padding: 8px 10px;
    width: 100%;
}

.image-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 12px;
}

.image-preview {
    aspect-ratio: 4 / 3;
    background: #eef2f7;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.image-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.image-preview span {
    background: var(--orange);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    left: 10px;
    padding: 6px 9px;
    position: absolute;
    top: 10px;
}

.image-actions {
    justify-content: space-between;
}

.attribute-table {
    min-width: 760px;
}

.editable-offer-table {
    min-width: 1280px;
}

.inline-save {
    border-radius: 6px;
    min-height: 38px;
    padding: 8px 10px;
}

table {
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
}

th {
    color: var(--ink);
    font-size: 13px;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px;
}

.form-grid label {
    color: var(--muted);
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 42px;
    padding: 10px 12px;
}

.span-2 {
    grid-column: span 2;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.notice,
.empty-state {
    padding: 16px;
}

.notice {
    background: #e7f7ef;
    border: 1px solid #b7e2ca;
    border-radius: 8px;
    color: #166534;
    margin-bottom: 18px;
}

.notice.danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.auth-body {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(242, 122, 26, .12), rgba(8, 127, 122, .12)),
        var(--canvas);
    display: flex;
    min-height: 100vh;
    padding: 24px;
}

.auth-shell {
    margin: 0 auto;
    max-width: 440px;
    width: 100%;
}

.auth-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 22px;
    padding: 28px;
}

.auth-card h1 {
    margin: 6px 0 8px;
}

.auth-card p {
    color: var(--muted);
    margin: 0;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    color: var(--muted);
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.auth-form input {
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 44px;
    padding: 10px 12px;
}

.auth-form button {
    background: var(--orange);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    min-height: 46px;
}

.check-row {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    font-size: 14px;
}

.check-row input {
    min-height: auto;
}

@media (max-width: 900px) {
    .topbar,
    .hero-band,
    .listing-shell,
    .catalog-layout,
    .product-detail-grid,
    .panel-body {
        grid-template-columns: 1fr;
    }

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

    .inline-form-grid,
    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-hero-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .quick-nav {
        justify-content: space-between;
    }

    .story-grid,
    .product-grid,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-sidebar {
        position: static;
    }

    .panel-nav,
    .panel-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-group {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .story-grid,
    .product-grid,
    .metric-grid,
    .filter-grid,
    .inline-form-grid,
    .image-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .span-2 {
        grid-column: span 1;
    }
}

/* Storefront marketplace refresh */
.store-shell {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.store-mini {
    background: #fafafa;
    border-bottom: 1px solid #edf0f2;
    color: #737b85;
    font-size: 12px;
}

.mini-inner {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 7px 20px;
}

.mini-inner nav {
    display: flex;
    gap: 18px;
}

.mini-inner a {
    font-weight: 700;
}

.mark-lockup {
    align-items: center;
    display: inline-flex;
    gap: 10px;
}

.mark-icon {
    align-items: center;
    background: var(--orange);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    width: 42px;
}

.store-header .topbar {
    max-width: 1200px;
    padding: 18px 20px;
}

.store-header .searchbar input {
    background: #fff7ef;
    border-color: #ffd8b6;
    color: var(--ink);
}

.store-header .searchbar input:focus {
    background: #fff;
    border-color: var(--orange);
    outline: 0;
}

.quick-nav a {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    min-height: 36px;
}

.quick-nav a::before {
    align-items: center;
    background: #f2f4f7;
    border-radius: 50%;
    color: var(--orange);
    content: "";
    display: inline-flex;
    height: 10px;
    outline: 5px solid #f2f4f7;
    width: 10px;
}

.category-strip {
    gap: 0;
    justify-content: space-between;
    max-width: 1200px;
    padding: 0 20px;
}

.category-strip a {
    border-bottom: 3px solid transparent;
    color: #30363d;
    font-size: 14px;
    font-weight: 800;
    padding: 13px 0 10px;
}

.category-strip a:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.marketplace-home {
    display: grid;
    gap: 18px;
    padding-top: 16px;
}

.story-strip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(10, minmax(74px, 1fr));
    padding: 16px;
}

.story-bubble {
    align-items: center;
    display: grid;
    gap: 8px;
    justify-items: center;
    min-width: 0;
}

.story-bubble span {
    align-items: center;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 28%, #fff), #fff),
        #fff;
    border: 2px solid color-mix(in srgb, var(--accent) 38%, #fff);
    border-radius: 50%;
    color: var(--accent);
    display: inline-flex;
    font-size: 24px;
    font-weight: 900;
    height: 68px;
    justify-content: center;
    width: 68px;
}

.story-bubble strong {
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: center;
}

.hero-slider {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.hero-track {
    min-height: 330px;
    position: relative;
}

.hero-slide {
    align-items: center;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 420px;
    inset: 0;
    opacity: 0;
    padding: 34px 42px;
    pointer-events: none;
    position: absolute;
    transition: opacity .25s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.hero-slide h1 {
    font-size: clamp(32px, 4.5vw, 54px);
    letter-spacing: 0;
    line-height: 1.02;
    margin: 8px 0 12px;
    max-width: 650px;
}

.hero-slide p {
    color: #4c5663;
    max-width: 560px;
}

.tone-orange {
    background: linear-gradient(100deg, #fff 0%, #fff4e8 54%, #ffe0c2 100%);
}

.tone-blue {
    background: linear-gradient(100deg, #fff 0%, #eef5ff 54%, #dceaff 100%);
}

.tone-teal {
    background: linear-gradient(100deg, #fff 0%, #effbf8 54%, #d5f2ea 100%);
}

.tone-rose {
    background: linear-gradient(100deg, #fff 0%, #fff0f4 54%, #ffdce6 100%);
}

.hero-visual {
    aspect-ratio: 1 / .78;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hero-visual span {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .28)),
        linear-gradient(160deg, rgba(242, 122, 26, .28), rgba(8, 127, 122, .18));
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(27, 31, 35, .12);
}

.hero-visual span:nth-child(2) {
    transform: translateY(26px);
}

.hero-visual span:nth-child(3) {
    transform: translateY(52px);
}

.slider-dots {
    bottom: 16px;
    display: flex;
    gap: 8px;
    left: 42px;
    position: absolute;
}

.slider-dots button {
    background: rgba(27, 31, 35, .2);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 8px;
    padding: 0;
    width: 22px;
}

.slider-dots button.is-active {
    background: var(--orange);
    width: 34px;
}

.campaign-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.campaign-card {
    border-radius: 8px;
    color: #fff;
    display: grid;
    gap: 6px;
    min-height: 118px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.campaign-card::after {
    background: rgba(255, 255, 255, .22);
    border-radius: 50%;
    content: "";
    height: 130px;
    position: absolute;
    right: -26px;
    top: -28px;
    width: 130px;
}

.campaign-card span,
.campaign-card em {
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    opacity: .9;
}

.campaign-card strong {
    font-size: 26px;
    line-height: 1.05;
}

.campaign-card.tone-orange {
    background: linear-gradient(135deg, #f27a1a, #dd5f11);
}

.campaign-card.tone-teal {
    background: linear-gradient(135deg, #087f7a, #0f766e);
}

.campaign-card.tone-rose {
    background: linear-gradient(135deg, #be3455, #db2777);
}

.marketplace-rail {
    padding: 20px;
}

.section-head p {
    color: var(--muted);
    margin: 6px 0 0;
}

.product-carousel {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.marketplace-card {
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.marketplace-card:hover {
    border-color: #ffc58f;
    box-shadow: 0 16px 40px rgba(27, 31, 35, .08);
    transform: translateY(-2px);
}

.marketplace-card .product-media {
    align-items: start;
    display: flex;
    padding: 10px;
}

.product-media span {
    background: rgba(255, 255, 255, .9);
    border-radius: 999px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 9px;
}

.media-tone-1 {
    background: linear-gradient(135deg, #fff0df, #f9c28c);
}

.media-tone-2 {
    background: linear-gradient(135deg, #e6f6ff, #9fd8ff);
}

.media-tone-3 {
    background: linear-gradient(135deg, #e9fbf8, #9ee5d9);
}

.media-tone-4 {
    background: linear-gradient(135deg, #fff1f2, #f9a8d4);
}

.media-tone-5 {
    background: linear-gradient(135deg, #f5f3ff, #c4b5fd);
}

.card-bottom {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.card-bottom small {
    background: #fff7ed;
    border-radius: 999px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    padding: 6px 8px;
}

.brand-band {
    align-items: center;
    background: #162026;
    border-radius: 8px;
    color: #fff;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 28px;
}

.brand-band h2 {
    font-size: 26px;
    line-height: 1.2;
    margin: 8px 0 0;
    max-width: 760px;
}

.store-footer {
    background: #111820;
    color: #dce3eb;
    margin-top: 28px;
}

.footer-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 34px 20px;
}

.footer-grid section {
    display: grid;
    gap: 10px;
}

.footer-grid h2 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 4px;
}

.footer-grid a,
.footer-grid p {
    color: #b7c0ca;
    font-size: 14px;
    margin: 0;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badges span {
    background: rgba(255, 255, 255, .08);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 10px;
}

@media (max-width: 1060px) {
    .story-strip {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

@media (max-width: 760px) {
    .mini-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .store-header .topbar {
        gap: 12px;
    }

    .mark-lockup {
        justify-content: center;
    }

    .category-strip {
        justify-content: flex-start;
        gap: 20px;
    }

    .story-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 28px 22px 58px;
    }

    .hero-visual {
        display: none;
    }

    .slider-dots {
        left: 22px;
    }

    .campaign-grid,
    .product-carousel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-band {
        align-items: flex-start;
        flex-direction: column;
    }
}
