:root {
    --ash-black: #101418;
    --ash-ink: #1d252d;
    --ash-muted: #68727d;
    --ash-line: #dbe1e7;
    --ash-soft: #f4f7fa;
    --ash-panel: #ffffff;
    --ash-blue: #2563eb;
    --ash-blue-soft: #eaf1ff;
    --ash-red: #c2413a;
    --ash-green: #168257;
    --ash-shadow: 0 18px 44px rgba(16, 24, 40, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ash-black);
    background: #f7f9fc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.45;
}

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

img {
    display: block;
    max-width: 100%;
}

.brand {
    font-weight: 900;
    font-size: 1.55rem;
}

.fw-black {
    font-weight: 950;
}

.place-items-center {
    place-items: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 32px;
    border-bottom: 1px solid #ececec;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.site-nav,
.site-actions,
.icon-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav a,
.site-actions a {
    font-weight: 600;
}

.site-nav a.active {
    border-bottom: 2px solid var(--ash-black);
}

.search-pill {
    min-width: 270px;
    padding: 10px 16px;
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    color: var(--ash-muted);
    background: #f7f7f7;
}

.badge-dot {
    position: absolute;
    top: -7px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    color: #fff;
    background: var(--ash-blue);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    line-height: 18px;
}

.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.btn-ash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid var(--ash-black);
    border-radius: 6px;
    color: #fff;
    background: var(--ash-black);
    font-weight: 800;
    text-transform: uppercase;
}

.btn-ash:hover {
    color: #fff;
    background: #202020;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid var(--ash-black);
    border-radius: 6px;
    background: #fff;
    font-weight: 800;
    text-transform: uppercase;
}

.btn-blue {
    border-color: var(--ash-blue);
    color: #fff;
    background: var(--ash-blue);
}

.page-shell {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 640px;
    max-height: 780px;
    overflow: hidden;
    color: #fff;
    background: var(--ash-black);
}

.hero img {
    width: 100%;
    height: 100%;
    min-height: 640px;
    object-fit: cover;
    opacity: 0.72;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(760px, 92%);
    padding: 72px 40px;
}

.eyebrow,
.mini-label {
    color: var(--ash-blue);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;
    margin: 14px 0;
    font-size: 5.4rem;
    line-height: 0.94;
    font-weight: 950;
}

.hero p {
    max-width: 590px;
    font-size: 1.05rem;
}

.promo-strip {
    display: flex;
    justify-content: center;
    gap: 46px;
    padding: 12px 18px;
    color: #fff;
    background: var(--ash-blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section {
    padding: 56px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 900;
}

.category-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
}

.category-stack {
    display: grid;
    gap: 22px;
}

.category-tile {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ash-black);
}

.category-tile.large {
    min-height: 560px;
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    opacity: 0.78;
}

.tile-copy {
    position: absolute;
    left: 28px;
    bottom: 26px;
    color: #fff;
}

.tile-copy h3 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 900;
}

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

.product-card {
    position: relative;
    min-width: 0;
}

.product-card-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background: #eee;
}

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

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

.wish-float {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-card h3 {
    margin: 10px 0 4px;
    font-size: 1.35rem;
    font-weight: 900;
}

.price {
    font-weight: 900;
}

.price.sale {
    color: var(--ash-red);
}

.muted {
    color: var(--ash-muted);
}

.panel {
    border: 1px solid var(--ash-line);
    border-radius: 12px;
    background: var(--ash-panel);
    box-shadow: var(--ash-shadow);
}

.panel-pad {
    padding: 28px;
}

.auth-page {
    min-height: 100vh;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(231, 240, 255, 0.76) 100%),
        #fff;
}

.auth-card {
    width: min(560px, calc(100% - 32px));
    margin: 58px auto 42px;
    padding: 42px 52px;
    border: 1px solid #dfdfdf;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.08);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 28px;
    padding: 5px;
    border-radius: 8px;
    background: #f2f0f0;
}

.auth-tabs button {
    border: 0;
    border-radius: 6px;
    padding: 10px;
    background: transparent;
    font-weight: 800;
}

.auth-tabs button.active {
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
}

.form-label,
.table-label {
    margin-bottom: 8px;
    color: var(--ash-ink);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: #e4e4e4;
    border-radius: 8px;
    background-color: #f4f2f2;
}

.checkout-grid,
.account-grid,
.delivery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 48px;
}

.order-summary {
    position: sticky;
    top: 96px;
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 130px 130px;
    gap: 18px;
    align-items: center;
    padding: 32px 0;
    border-top: 1px solid var(--ash-line);
}

.cart-product {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cart-product img {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--ash-line);
    border-radius: 999px;
}

.site-footer {
    margin-top: 70px;
    padding: 54px 32px 28px;
    background: #e7e7e7;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.portal-shell {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.portal-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 42px 24px;
    border-right: 1px solid #d9d9d9;
    background: #fff;
}

.portal-nav {
    display: grid;
    gap: 6px;
    margin-top: 54px;
}

.portal-nav a,
.portal-nav button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    padding: 0 14px;
    color: #444;
    background: transparent;
    text-align: left;
}

.portal-nav a.active {
    color: var(--ash-blue);
    background: var(--ash-blue-soft);
    border-left: 4px solid var(--ash-blue);
}

.portal-main {
    padding: 52px 64px;
}

.portal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.portal-title h1 {
    margin: 0;
    font-size: 3.1rem;
    line-height: 1;
    font-weight: 950;
}

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

.metric-card {
    min-height: 150px;
    padding: 24px;
    border: 1px solid var(--ash-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.04);
}

.metric-card strong {
    display: block;
    margin-top: 12px;
    font-size: 2.8rem;
    line-height: 1;
}

.metric-card.danger {
    border-color: #efb8b8;
    background: #fff2f2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 28px;
    margin-bottom: 34px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 20px 24px;
    border-top: 1px solid var(--ash-line);
    vertical-align: middle;
}

.data-table th {
    color: #333;
    background: #f4f3f3;
    font-size: 0.84rem;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #ececec;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-pill.blue {
    color: var(--ash-blue);
    background: var(--ash-blue-soft);
}

.status-pill.red {
    color: var(--ash-red);
    background: #ffe3e3;
}

.status-pill.green {
    color: var(--ash-green);
    background: #e6f5eb;
}

.bar-chart {
    display: flex;
    align-items: end;
    gap: 18px;
    height: 290px;
    padding: 22px 28px;
    border-bottom: 1px solid var(--ash-line);
}

.bar-chart span {
    flex: 1;
    min-width: 28px;
    border-radius: 8px 8px 0 0;
    background: #cfe0ff;
}

.bar-chart span.active {
    background: var(--ash-blue);
}

.map-panel {
    min-height: 420px;
    color: #fff;
    background:
        radial-gradient(circle at 38% 38%, rgba(7, 95, 228, 0.95) 0 6px, transparent 7px),
        radial-gradient(circle at 63% 59%, rgba(7, 95, 228, 0.95) 0 6px, transparent 7px),
        radial-gradient(circle at 74% 76%, rgba(201, 19, 19, 0.95) 0 7px, transparent 8px),
        linear-gradient(135deg, #232323, #4a4a4a);
}

.dark-product-form {
    max-width: 1240px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
    color: #f8f8f8;
    background: #171717;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.dark-product-form input,
.dark-product-form textarea,
.dark-product-form select {
    border-color: #2a2a2a;
    color: #fff;
    background: #111;
}

.image-drop {
    display: grid;
    place-items: center;
    min-height: 230px;
    border: 2px dashed #333;
    border-radius: 8px;
    text-align: center;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumb-slot {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border: 1px solid #2c2c2c;
    border-radius: 8px;
    color: #777;
}

.category-list-thumb {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border: 1px solid var(--ash-line);
    border-radius: 8px;
    object-fit: cover;
    background: #eef2f6;
}

.category-edit-modal {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.2);
}

.comfort-mode {
    overflow: hidden;
    background: #edf2f7;
}

.comfort-mode main > .page-shell.pt-3 {
    display: none;
}

.comfort-mode .site-header {
    min-height: 68px;
    border-bottom-color: #d9e1ea;
    background: rgba(248, 250, 252, 0.95);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.comfort-screen {
    height: calc(100vh - 68px);
    padding: 18px 24px 24px;
    overflow: hidden;
}

.comfort-stage {
    display: grid;
    grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.36fr);
    gap: 20px;
    height: 100%;
    min-height: 0;
}

.comfort-hero-panel,
.comfort-workspace {
    min-height: 0;
    overflow: hidden;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.comfort-hero-panel {
    position: relative;
    color: #fff;
}

.comfort-hero-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comfort-hero-panel::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(8, 13, 19, 0.12), rgba(8, 13, 19, 0.78));
}

.comfort-hero-copy {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    z-index: 1;
}

.comfort-hero-copy h1 {
    max-width: 580px;
    margin: 12px 0;
    font-size: 4.6rem;
    line-height: 0.96;
    font-weight: 950;
}

.comfort-hero-copy p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
}

.comfort-workspace {
    display: grid;
    grid-template-rows: auto 1fr;
    padding: 20px;
}

.panel-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    background: #f5f7fb;
}

.panel-switcher button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    color: #506070;
    background: transparent;
    font-weight: 850;
}

.panel-switcher button.active {
    color: #fff;
    background: var(--ash-black);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.comfort-panel-stack {
    min-height: 0;
    padding-top: 18px;
}

.comfort-view {
    height: 100%;
    min-height: 0;
}

.comfort-inner-panel {
    height: 100%;
    min-height: 0;
    padding: 24px;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 252, 255, 0.96)),
        #fff;
}

.comfort-panel-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.comfort-panel-title h2 {
    margin: 0;
    font-size: 2.35rem;
    font-weight: 950;
}

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

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

.comfort-card,
.comfort-product-mini,
.comfort-review-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe6ee;
    border-radius: 14px;
    background: #fff;
}

.comfort-card {
    position: relative;
    min-height: 210px;
}

.comfort-card img,
.comfort-product-mini img {
    width: 100%;
    object-fit: cover;
}

.comfort-card img {
    height: 210px;
}

.comfort-card-copy {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    color: #fff;
}

.comfort-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 32%, rgba(10, 15, 20, 0.72));
}

.comfort-card-copy {
    z-index: 1;
}

.comfort-product-mini img {
    height: 170px;
}

.comfort-product-mini .mini-body,
.comfort-review-card {
    padding: 14px;
}

.comfort-product-mini h3 {
    min-height: 48px;
    margin: 6px 0 8px;
    font-size: 1rem;
    font-weight: 900;
}

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

.comfort-review-card {
    min-height: 230px;
}

.comfort-promo-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.comfort-promo-line span {
    padding: 8px 10px;
    border-radius: 999px;
    color: #2d4156;
    background: #edf4ff;
    font-size: 0.82rem;
    font-weight: 800;
}

.comfort-dashboard {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    height: calc(100vh - 68px);
    padding: 18px 24px 24px;
    overflow: hidden;
}

.comfort-sidebar {
    min-height: 0;
    padding: 18px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--ash-shadow);
}

.comfort-dashboard-main {
    min-height: 0;
    padding: 20px;
    border: 1px solid #dbe4ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--ash-shadow);
}

.comfort-dashboard-main .comfort-panel-stack {
    height: calc(100% - 64px);
}

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

.comfort-metric {
    padding: 18px;
    border: 1px solid #dfe6ee;
    border-radius: 14px;
    background: #f8fafc;
}

.comfort-metric strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
}

.compact-table {
    width: 100%;
    border-collapse: collapse;
}

.compact-table th,
.compact-table td {
    padding: 14px;
    border-top: 1px solid #e1e7ee;
}

.compact-table th {
    color: #5b6774;
    font-size: 0.78rem;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .product-grid,
    .metric-grid,
    .comfort-product-grid,
    .comfort-card-grid,
    .comfort-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .checkout-grid,
    .account-grid,
    .delivery-grid,
    .dashboard-grid,
    .comfort-stage,
    .comfort-dashboard {
        grid-template-columns: 1fr;
    }

    .comfort-mode {
        overflow: auto;
    }

    .comfort-screen,
    .comfort-dashboard {
        height: auto;
        overflow: visible;
    }

    .order-summary {
        position: static;
    }
}

@media (max-width: 820px) {
    .site-header {
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px;
    }

    .site-nav,
    .search-pill {
        order: 3;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
    }

    .hero,
    .hero img {
        min-height: 560px;
    }

    .hero-content {
        padding: 56px 22px;
    }

    .category-grid,
    .footer-grid,
    .cart-row,
    .portal-shell {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: relative;
        height: auto;
    }

    .portal-main {
        padding: 34px 18px;
    }

    .portal-title h1 {
        font-size: 2.4rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .comfort-product-grid,
    .comfort-card-grid,
    .comfort-review-grid,
    .comfort-metric-row {
        grid-template-columns: 1fr;
    }

    .comfort-screen,
    .comfort-dashboard {
        padding: 14px;
    }

    .comfort-inner-panel,
    .comfort-dashboard-main {
        padding: 16px;
    }
}

html:has(body.comfort-mode) {
    height: 100%;
    overflow: hidden;
}

body.comfort-mode {
    height: 100vh;
    overflow: hidden !important;
}

body.comfort-mode .site-header {
    height: 68px;
    min-height: 68px;
    flex-wrap: nowrap;
    gap: 18px;
    padding: 0 24px;
}

body.comfort-mode .site-nav {
    order: initial;
    width: auto;
    overflow: hidden;
}

body.comfort-mode .site-actions {
    flex-shrink: 0;
    gap: 14px;
}

body.comfort-mode .search-pill {
    min-width: 220px;
}

body.comfort-mode main {
    height: calc(100vh - 68px);
    overflow: hidden;
}

body.comfort-mode .comfort-screen,
body.comfort-mode .comfort-dashboard {
    height: 100%;
    overflow: hidden;
}

/* 100% browser zoom density pass. These overrides make the interface feel like
   the earlier 80% browser zoom without relying on browser scaling. */
html {
    font-size: 15px;
}

body {
    line-height: 1.5;
}

.display-4 {
    font-size: 2.55rem !important;
}

.display-5 {
    font-size: 2.15rem !important;
}

.display-6 {
    font-size: 1.8rem !important;
}

.fs-4 {
    font-size: 1.18rem !important;
}

.fs-5 {
    font-size: 1rem !important;
}

.brand {
    font-size: 1.34rem;
}

.site-header {
    min-height: 62px;
    padding: 0 24px;
}

.site-nav,
.site-actions,
.icon-row {
    gap: 18px;
}

.site-nav a,
.site-actions a {
    font-size: 0.92rem;
}

.search-pill {
    min-width: 230px;
    padding: 8px 14px;
    font-size: 0.92rem;
}

.icon-link {
    width: 32px;
    height: 32px;
}

.icon-link .fs-4,
.wish-float .fs-4 {
    font-size: 1.2rem !important;
}

.badge-dot {
    top: -5px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    font-size: 0.64rem;
    line-height: 16px;
}

.btn-ash,
.btn-ghost {
    min-height: 38px;
    padding: 8px 15px;
    border-radius: 5px;
    gap: 8px;
    font-size: 0.84rem;
    letter-spacing: 0;
}

.page-shell {
    width: min(1280px, calc(100% - 40px));
}

.page-shell > .row {
    margin-right: 0;
    margin-left: 0;
}

.hero {
    min-height: 520px;
    max-height: 620px;
}

.hero img {
    min-height: 520px;
}

.hero-content {
    width: min(620px, 92%);
    padding: 54px 32px;
}

.hero h1 {
    max-width: 590px;
    margin: 10px 0;
    font-size: 3.65rem;
    line-height: 0.96;
}

.hero p {
    max-width: 520px;
    font-size: 0.98rem;
}

.eyebrow,
.mini-label {
    font-size: 0.74rem;
}

.promo-strip {
    gap: 28px;
    padding: 9px 16px;
    font-size: 0.72rem;
}

.section {
    padding: 38px 0;
}

.section-heading {
    gap: 16px;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: 1.65rem;
}

.category-grid,
.category-stack {
    gap: 18px;
}

.category-tile {
    min-height: 210px;
}

.category-tile.large {
    min-height: 430px;
}

.tile-copy {
    left: 22px;
    bottom: 20px;
}

.tile-copy h3 {
    font-size: 1.35rem;
}

.product-grid {
    gap: 20px;
}

.product-card h3 {
    margin: 8px 0 3px;
    font-size: 1.08rem;
}

.wish-float {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
}

.panel {
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.07);
}

.panel-pad {
    padding: 22px;
}

.auth-card {
    width: min(480px, calc(100% - 32px));
    margin: 36px auto 30px;
    padding: 30px 36px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.07);
}

.auth-tabs {
    margin-bottom: 22px;
}

.auth-tabs button {
    padding: 8px;
}

.form-label,
.table-label {
    margin-bottom: 6px;
    font-size: 0.76rem;
}

.form-control,
.form-select {
    min-height: 42px;
    border-radius: 6px;
    font-size: 0.94rem;
}

.checkout-grid,
.account-grid,
.delivery-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
}

.order-summary {
    top: 78px;
}

.cart-row {
    grid-template-columns: minmax(0, 1fr) 118px 105px 110px;
    gap: 14px;
    padding: 24px 0;
}

.cart-product {
    gap: 15px;
}

.cart-product img {
    width: 78px;
    height: 78px;
}

.qty-control {
    gap: 10px;
    padding: 6px 10px;
}

.site-footer {
    margin-top: 48px;
    padding: 42px 24px 24px;
}

.footer-grid {
    gap: 32px;
}

.portal-shell {
    grid-template-columns: 250px minmax(0, 1fr);
}

.portal-sidebar {
    padding: 30px 18px;
}

.portal-nav {
    gap: 4px;
    margin-top: 38px;
}

.portal-nav a,
.portal-nav button {
    min-height: 40px;
    gap: 11px;
    padding: 0 12px;
    font-size: 0.95rem;
}

.portal-main {
    padding: 36px 48px;
}

.portal-header {
    gap: 18px;
    margin-bottom: 26px;
}

.portal-title h1 {
    font-size: 2.35rem;
}

.metric-grid {
    gap: 18px;
    margin-bottom: 26px;
}

.metric-card {
    min-height: 118px;
    padding: 18px;
}

.metric-card strong {
    margin-top: 9px;
    font-size: 2.08rem;
}

.dashboard-grid {
    gap: 22px;
    margin-bottom: 26px;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
}

.data-table th {
    font-size: 0.74rem;
}

.status-pill {
    padding: 4px 8px;
    font-size: 0.7rem;
}

.bar-chart {
    gap: 14px;
    height: 230px;
    padding: 18px 22px;
}

.map-panel {
    min-height: 330px;
}

.dark-product-form {
    max-width: 1080px;
    margin: 14px auto;
}

.image-drop {
    min-height: 180px;
}

.comfort-mode .site-header,
body.comfort-mode .site-header {
    height: 60px;
    min-height: 60px;
    padding: 0 22px;
}

.comfort-screen,
.comfort-dashboard {
    height: calc(100vh - 60px);
    padding: 14px 18px 18px;
}

body.comfort-mode main {
    height: calc(100vh - 60px);
}

.comfort-stage {
    gap: 16px;
}

.comfort-hero-panel,
.comfort-workspace,
.comfort-sidebar,
.comfort-dashboard-main {
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.comfort-hero-copy {
    right: 22px;
    bottom: 22px;
    left: 22px;
}

.comfort-hero-copy h1 {
    max-width: 500px;
    font-size: 3.35rem;
}

.comfort-hero-copy p {
    max-width: 500px;
    font-size: 0.94rem;
}

.comfort-workspace,
.comfort-dashboard-main {
    padding: 16px;
}

.panel-switcher {
    gap: 8px;
    padding: 6px;
    border-radius: 10px;
}

.panel-switcher button {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 0.88rem;
}

.comfort-panel-stack {
    padding-top: 14px;
}

.comfort-inner-panel {
    padding: 18px;
    border-radius: 11px;
}

.comfort-panel-title {
    gap: 14px;
    margin-bottom: 14px;
}

.comfort-panel-title h2 {
    font-size: 1.7rem;
}

.comfort-card-grid,
.comfort-product-grid,
.comfort-review-grid {
    gap: 12px;
}

.comfort-card,
.comfort-product-mini,
.comfort-review-card,
.comfort-metric {
    border-radius: 10px;
}

.comfort-card {
    min-height: 170px;
}

.comfort-card img {
    height: 170px;
}

.comfort-product-mini img {
    height: 132px;
}

.comfort-product-mini .mini-body,
.comfort-review-card {
    padding: 11px;
}

.comfort-product-mini h3 {
    min-height: 38px;
    font-size: 0.92rem;
}

.comfort-review-card {
    min-height: 185px;
}

.comfort-dashboard {
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 14px;
}

.comfort-sidebar {
    padding: 14px;
}

.comfort-dashboard-main .comfort-panel-stack {
    height: calc(100% - 54px);
}

.comfort-metric-row {
    gap: 12px;
    margin-bottom: 13px;
}

.comfort-metric {
    padding: 14px;
}

.comfort-metric strong {
    font-size: 1.65rem;
}

.compact-table th,
.compact-table td {
    padding: 10px 12px;
}

@media (max-width: 1100px) {
    .page-shell {
        width: min(980px, calc(100% - 32px));
    }

    .site-header {
        padding: 0 18px;
    }

    .portal-main {
        padding: 28px 22px;
    }

    .portal-title h1 {
        font-size: 2rem;
    }

    .metric-card strong {
        font-size: 1.85rem;
    }
}

@media (max-width: 820px) {
    html {
        font-size: 15px;
    }

    .display-4 {
        font-size: 2.15rem !important;
    }

    .display-5 {
        font-size: 1.85rem !important;
    }

    .site-header {
        min-height: 58px;
        gap: 10px;
        padding: 12px 14px;
    }

    .site-nav,
    .site-actions {
        gap: 12px;
    }

    .page-shell {
        width: calc(100% - 28px);
    }

    .hero,
    .hero img {
        min-height: 430px;
    }

    .hero-content {
        padding: 38px 18px;
    }

    .hero h1 {
        font-size: 2.45rem;
    }

    .section {
        padding: 30px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 1.45rem;
    }

    .category-tile,
    .category-tile.large {
        min-height: 260px;
    }

    .panel-pad,
    .auth-card {
        padding: 18px;
    }

    .auth-card {
        margin: 24px auto;
    }

    .checkout-grid,
    .account-grid,
    .delivery-grid {
        gap: 20px;
    }

    .cart-row {
        gap: 10px;
        padding: 18px 0;
    }

    .site-footer {
        margin-top: 36px;
        padding: 32px 18px 20px;
    }

    .portal-sidebar {
        padding: 18px;
    }

    .portal-main {
        padding: 24px 14px;
    }

    .data-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    body.comfort-mode {
        height: auto;
        overflow: auto !important;
    }

    html:has(body.comfort-mode) {
        height: auto;
        overflow: auto;
    }

    body.comfort-mode main,
    .comfort-screen,
    .comfort-dashboard {
        height: auto;
        overflow: visible;
    }

    .comfort-hero-copy h1 {
        font-size: 2.35rem;
    }
}

.market-home-body {
    background: #fbf9fc;
}

.market-home {
    color: #1a1d22;
    background: #fbf9fc;
}

.market-shell {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.market-hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: #fff;
    background: #17213a;
}

.market-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
}

.market-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(18, 27, 48, 0.95) 0%, rgba(18, 27, 48, 0.68) 48%, rgba(18, 27, 48, 0.1) 100%),
        linear-gradient(0deg, rgba(18, 27, 48, 0.25), rgba(18, 27, 48, 0.1));
}

.market-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    padding: 72px 0;
}

.market-chip {
    width: fit-content;
    margin-bottom: 20px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #27364f;
    background: #d8e4f7;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.market-hero h1 {
    max-width: 650px;
    margin: 0 0 18px;
    font-size: 3.7rem;
    line-height: 1;
    font-weight: 950;
}

.market-hero p {
    max-width: 560px;
    margin: 0 0 30px;
    color: #d9e3f6;
    font-size: 1.08rem;
}

.market-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.market-section {
    padding: 56px 0;
}

.market-section-soft {
    background: #f0eef2;
}

.market-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.market-section-head h2 {
    margin: 0 0 6px;
    color: #17213a;
    font-size: 1.85rem;
    line-height: 1.12;
    font-weight: 950;
}

.market-section-head p {
    margin: 0;
    color: #657184;
}

.market-section-head a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #17213a;
    font-weight: 900;
    white-space: nowrap;
}

.market-category-row {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.market-category-row::-webkit-scrollbar {
    height: 5px;
}

.market-category-row::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #c5cad3;
}

.market-category-pill {
    flex: 0 0 156px;
    text-align: center;
}

.market-category-pill span {
    display: block;
    width: 156px;
    height: 156px;
    margin-bottom: 13px;
    overflow: hidden;
    border: 1px solid #d8dce4;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.market-category-pill:hover span {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(23, 33, 58, 0.12);
}

.market-category-pill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.market-category-pill strong {
    color: #17213a;
    font-weight: 900;
}

.market-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 22px;
}

.market-feature-card,
.market-bento-card,
.market-product-card,
.market-review-card {
    border: 1px solid #d9dee7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(25, 34, 52, 0.06);
}

.market-feature-card {
    grid-column: span 2;
    grid-row: span 2;
    display: grid;
    grid-template-rows: minmax(0, 1.7fr) auto;
    min-height: 0;
    overflow: hidden;
}

.market-feature-media {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.market-feature-media img,
.market-bento-card img,
.market-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.market-feature-card:hover img,
.market-bento-card:hover img,
.market-product-card:hover img {
    transform: scale(1.035);
}

.market-feature-media span,
.market-sale-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: #17213a;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.market-feature-copy {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
}

.market-feature-copy h3,
.market-bento-card h3,
.market-product-card h3,
.market-review-card h3 {
    margin: 5px 0 8px;
    color: #171b22;
    font-weight: 950;
}

.market-feature-copy h3 {
    font-size: 1.75rem;
}

.market-feature-copy p {
    max-width: 520px;
    margin: 0;
    color: #657184;
}

.market-feature-copy strong {
    color: #17213a;
    font-size: 1.35rem;
    white-space: nowrap;
}

.market-bento-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.market-bento-card.wide {
    grid-column: span 2;
    flex-direction: row;
}

.market-bento-card img {
    height: 128px;
}

.market-bento-card.wide img {
    width: 48%;
    height: 100%;
}

.market-bento-card div {
    padding: 16px;
}

.market-bento-card h3 {
    font-size: 1.08rem;
}

.market-bento-card strong,
.market-product-card strong {
    color: #17213a;
    font-weight: 950;
}

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

.market-product-card {
    display: block;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.market-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(25, 34, 52, 0.1);
}

.market-product-media {
    position: relative;
    aspect-ratio: 1 / 0.92;
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 7px;
    background: #edf1f5;
}

.market-product-card h3 {
    min-height: 46px;
    font-size: 1.05rem;
}

.market-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
}

.market-product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.86rem;
}

.market-product-meta i {
    color: #1e63d8;
}

.market-trust {
    padding: 36px 0;
    border-top: 1px solid #d9dee7;
    border-bottom: 1px solid #d9dee7;
    background: #fff;
}

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

.market-trust-grid div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
}

.market-trust-grid i {
    grid-row: span 2;
    color: #17213a;
    font-size: 1.75rem;
}

.market-trust-grid strong {
    color: #17213a;
    font-weight: 950;
}

.market-trust-grid span {
    color: #657184;
    font-size: 0.92rem;
}

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

.market-review-card {
    padding: 22px;
}

.market-review-card h3 {
    font-size: 1rem;
}

.market-review-card p {
    color: #657184;
}

@media (max-width: 1100px) {
    .market-bento,
    .market-product-grid,
    .market-trust-grid,
    .market-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-feature-card,
    .market-bento-card.wide {
        grid-column: span 2;
    }
}

@media (max-width: 820px) {
    .market-shell {
        width: calc(100% - 28px);
    }

    .market-hero,
    .market-hero-content {
        min-height: 470px;
    }

    .market-hero h1 {
        font-size: 2.45rem;
    }

    .market-hero p {
        font-size: 0.98rem;
    }

    .market-section {
        padding: 38px 0;
    }

    .market-section-head {
        align-items: start;
        flex-direction: column;
        gap: 12px;
    }

    .market-category-pill {
        flex-basis: 128px;
    }

    .market-category-pill span {
        width: 128px;
        height: 128px;
    }

    .market-bento,
    .market-product-grid,
    .market-trust-grid,
    .market-review-grid {
        grid-template-columns: 1fr;
    }

    .market-feature-card,
    .market-bento-card.wide {
        grid-column: span 1;
    }

    .market-bento {
        grid-auto-rows: auto;
    }

    .market-feature-card {
        grid-template-rows: 260px auto;
    }

    .market-feature-copy {
        align-items: start;
        flex-direction: column;
        padding: 18px;
    }

    .market-bento-card.wide {
        flex-direction: column;
    }

    .market-bento-card.wide img,
    .market-bento-card img {
        width: 100%;
        height: 210px;
    }
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    html,
    body {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        overflow: visible !important;
        color: #000 !important;
        background: #fff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .invoice-print-area,
    .invoice-print-area * {
        visibility: visible !important;
    }

    .invoice-print-area {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background: #fff !important;
    }

    .invoice-page,
    .page-shell,
    main {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .site-header,
    .site-footer,
    .no-print {
        display: none !important;
    }

    .invoice-print-area .data-table th,
    .invoice-print-area .data-table td {
        padding: 12px 14px !important;
        border-top: 1px solid #d7d7d7 !important;
    }

    .invoice-print-area .data-table th {
        background: #f3f3f3 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
