:root {
    --font-family-base: "Times New Roman", Times, serif;
    --bg-dark: #0f1726;
    --bg-panel: #172638;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-soft: rgba(255, 255, 255, 0.88);
    --text: #1f2b3d;
    --muted: #6c7a8f;
    --line: rgba(18, 34, 54, 0.10);
    --purple: #8f00ff;
    --violet: #5a31ff;
    --blue: #1f74ff;
    --cyan: #12d6ee;
    --teal: #18b7c9;
    --green: #26c48a;
    --orange: #ff9e24;
    --white: #ffffff;
    --success: #1f8c61;
    --error: #c14e39;
    --shadow: 0 28px 70px rgba(6, 21, 43, 0.18);
    --radius-lg: 24px;
    --radius-md: 18px;
}

html,
body,
button,
input,
select,
textarea,
option,
label,
table,
th,
td,
span,
small,
strong,
em,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
li,
ul,
ol,
div {
    font-family: "Times New Roman", Times, serif;
}

/* Cart page override redesign */

.market-page-hero--cart {
    margin-bottom: 18px;
}

.market-page-hero--checkout {
    margin-bottom: 18px;
}

.market-cart-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.market-cart-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(26, 25, 22, 0.08);
}

.market-cart-step > span {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(22, 43, 94, 0.08);
    color: #17357f;
    font-weight: 800;
}

.market-cart-step strong,
.market-cart-step small {
    display: block;
}

.market-cart-step strong {
    color: #182238;
    font-size: 0.96rem;
}

.market-cart-step small {
    margin-top: 3px;
    color: #73695c;
    font-size: 0.82rem;
}

.market-cart-step.is-active {
    background: linear-gradient(135deg, rgba(26, 64, 146, 0.10), rgba(255, 255, 255, 0.96));
    border-color: rgba(26, 64, 146, 0.14);
}

.market-cart-full {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.market-cart-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
    gap: 18px;
    align-items: start;
}

.market-cart-main,
.market-cart-sidebar,
.market-checkout-main,
.market-checkout-summary {
    min-width: 0;
}

.market-checkout-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 20px;
    align-items: start;
    margin-top: 18px;
}

.market-cart-panel,
.market-cart-sidebar__card,
.market-cart-checkout-section {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
}

.market-cart-panel {
    overflow: hidden;
}

.market-checkout-page-card,
.market-checkout-summary__card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
}

.market-checkout-main {
    display: grid;
    gap: 18px;
}

.market-checkout-page-card {
    padding: 24px;
}

.market-checkout-page-card__head {
    margin-bottom: 16px;
}

.market-checkout-page-card__head--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.market-checkout-page-card__head h2 {
    margin: 6px 0 0;
    color: #182238;
}

.market-address-book {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.market-address-book__form,
.market-address-book__list {
    min-width: 0;
}

.market-address-book__form {
    position: sticky;
    top: 104px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
}

.market-address-book__form-head h2 {
    margin: 8px 0 0;
    color: #182238;
    font-size: 1.5rem;
    line-height: 1.2;
}

.market-address-book__form .market-checkout-form {
    margin-top: 16px;
}

.market-checkout-page-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.market-checkout-address-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(216, 245, 245, 0.88), rgba(240, 251, 251, 0.94));
    border: 1px solid rgba(19, 148, 139, 0.28);
}

.market-checkout-address-card strong {
    color: #10324a;
    font-size: 1rem;
}

.market-checkout-address-card span {
    color: #496074;
    line-height: 1.5;
}

.market-checkout-address-card b {
    color: #12324b;
}

.market-checkout-payment-tile {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(230, 248, 247, 0.72);
    border: 1px solid rgba(15, 118, 110, 0.22);
}

.market-checkout-payment-tile strong {
    color: #18314d;
    font-size: 1rem;
}

.market-checkout-payment-tile span {
    color: #607286;
}

.market-payment-method-list {
    display: grid;
    gap: 12px;
}

.market-checkout-payment-tile--option {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    cursor: pointer;
}

.market-checkout-payment-tile--option input {
    margin-top: 4px;
}

.market-checkout-inline-note {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(243, 247, 251, 0.9);
    border: 1px solid rgba(24, 34, 56, 0.08);
}

.market-checkout-inline-note strong {
    color: #18314d;
}

.market-checkout-inline-note span {
    color: #607286;
}

.market-scanpay-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(245, 251, 245, 0.92), rgba(235, 246, 235, 0.96));
    border: 1px solid rgba(60, 125, 74, 0.18);
}

.market-scanpay-card__image {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(24, 34, 56, 0.08);
    padding: 8px;
}

.market-scanpay-card__body {
    display: grid;
    gap: 6px;
}

.market-scanpay-card__body strong {
    color: #18314d;
}

.market-scanpay-card__body span {
    color: #607286;
}

.market-checkout-summary__card {
    position: sticky;
    top: 104px;
    padding: 24px;
}

.market-checkout-product-mini {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.market-checkout-product-mini article {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(244, 248, 255, 0.92);
    border: 1px solid rgba(26, 25, 22, 0.07);
}

.market-checkout-product-mini img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.market-checkout-product-mini strong,
.market-checkout-product-mini span,
.market-checkout-product-mini b {
    display: block;
}

.market-checkout-product-mini strong {
    color: #182238;
    font-size: 0.95rem;
    line-height: 1.35;
}

.market-checkout-product-mini span {
    margin-top: 3px;
    color: #708095;
    font-size: 0.83rem;
}

.market-checkout-product-mini b {
    margin-top: 6px;
    color: #0f766e;
    font-size: 0.95rem;
}

.market-summary-breakdown--checkout {
    margin-top: 0;
}

.market-summary-breakdown--checkout div {
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(26, 25, 22, 0.08);
    border-radius: 0;
    padding-left: 0;
    padding-right: 0;
}

.market-summary-breakdown--checkout .market-summary-breakdown__total {
    margin-top: 8px;
    border-bottom: 0;
}

.market-checkout-summary .market-checkout-actions {
    margin-top: 18px;
}

.market-cart-address-section {
    padding: 22px 24px 24px;
    border-top: 1px solid rgba(26, 25, 22, 0.06);
    background: rgba(250, 248, 243, 0.55);
}

.market-cart-panel__head,
.market-cart-sidebar__head,
.market-cart-checkout-section__head {
    padding: 22px 24px 0;
}

.market-cart-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.market-cart-panel__head h2,
.market-cart-sidebar__head h2,
.market-cart-checkout-section__head h2,
.market-checkout-block__head h3 {
    margin: 6px 0 0;
    color: #182238;
}

.market-cart-panel__head h2,
.market-cart-sidebar__head h2,
.market-checkout-page-card__head h2,
.market-checkout-page-card__head h2,
.market-checkout-block__head h3 {
    font-size: 1.35rem;
    line-height: 1.2;
}

.market-checkout-card__summary h2,
.market-address-book__form-head h2,
.market-address-card__head h2,
.market-order-success h2 {
    font-size: 1.05rem;
    line-height: 1.2;
}

.market-cart-sidebar__head span,
.market-cart-checkout-section__head span,
.market-checkout-block__head span {
    display: block;
    margin-top: 8px;
    color: #73695c;
    font-size: 0.9rem;
    line-height: 1.5;
}

.market-cart-list {
    display: grid;
}

.market-cart-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 24px;
    border-top: 1px solid rgba(26, 25, 22, 0.06);
}

.market-cart-row__thumb {
    display: block;
    width: 110px;
    height: 110px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(248, 245, 237, 0.88);
}

.market-cart-row__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.market-cart-row__content,
.market-cart-row__top,
.market-cart-row__bottom {
    display: grid;
    gap: 14px;
}

.market-cart-row__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.market-cart-row__top h3 {
    margin: 4px 0 8px;
    color: #182238;
    font-size: 1.08rem;
    line-height: 1.35;
}

.market-cart-row__top p:last-child {
    margin: 0;
    color: #786f60;
    font-size: 0.9rem;
}

.market-cart-row__amount {
    text-align: right;
}

.market-cart-row__amount strong {
    display: block;
    color: #8a5b16;
    font-size: 1.1rem;
    font-weight: 800;
}

.market-cart-row__amount span {
    display: block;
    margin-top: 6px;
    color: #7e7363;
    font-size: 0.8rem;
    line-height: 1.45;
}

.market-cart-row__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding-top: 14px;
    border-top: 1px solid rgba(26, 25, 22, 0.06);
}

.market-cart-row__qty,
.market-cart-row__remove {
    margin: 0;
}

.market-cart-row__qty label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #4f4230;
    font-size: 0.82rem;
    font-weight: 700;
}

.market-cart-row__qty label span {
    white-space: nowrap;
}

.market-cart-row__qty input {
    width: 86px;
}

.market-cart-sidebar__card {
    position: sticky;
    top: 104px;
    padding: 0 24px 24px;
}

.market-cart-sidebar__card .market-summary-breakdown {
    gap: 0;
    margin-top: 18px;
}

.market-cart-sidebar__card .market-summary-breakdown div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(26, 25, 22, 0.08);
    border-radius: 0;
    box-shadow: none;
}

.market-cart-sidebar__card .market-summary-breakdown span {
    color: #463b2f;
    font-size: 0.94rem;
    font-weight: 600;
}

.market-cart-sidebar__card .market-summary-breakdown strong {
    color: #8f7d67;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
}

.market-cart-sidebar__card .market-summary-breakdown .market-summary-breakdown__total {
    margin-top: 6px;
    padding-top: 18px;
    border-bottom: 0;
}

.market-cart-sidebar__card .market-summary-breakdown .market-summary-breakdown__total span {
    color: #182238;
    font-weight: 800;
}

.market-cart-sidebar__card .market-summary-breakdown .market-summary-breakdown__total strong {
    color: #7b5d2e;
    font-size: 1.06rem;
    font-weight: 800;
}

.market-summary-bar__meta {
    margin-top: 16px;
}

.market-cart-sidebar__highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.market-cart-sidebar__highlights article {
    padding: 14px;
    border-radius: 18px;
    background: rgba(248, 245, 237, 0.78);
    border: 1px solid rgba(26, 25, 22, 0.07);
}

.market-cart-sidebar__highlights strong,
.market-cart-sidebar__highlights span {
    display: block;
}

.market-cart-sidebar__highlights strong {
    color: #182238;
    font-size: 1rem;
}

.market-cart-sidebar__highlights span {
    margin-top: 5px;
    color: #73695c;
    font-size: 0.82rem;
}

.market-cart-summary-bar__cta {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.market-cart-left-checkout {
    margin-top: 0;
}

.market-cart-left-checkout .market-checkout-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.market-cart-left-checkout .market-checkout-actions .market-button {
    width: 100%;
}

.market-cart-checkout-section {
    display: none;
    padding: 0 26px 26px;
}

.market-cart-checkout-section.is-active {
    display: block;
}

.market-cart-checkout-section__head {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(26, 25, 22, 0.08);
}

.market-cart-checkout-section .market-checkout-form {
    margin-top: 0;
}

.market-checkout-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.market-checkout-split-grid__address,
.market-checkout-split-grid__payment {
    display: grid;
    gap: 14px;
}

.market-checkout-split-grid__payment {
    padding: 18px;
    background: rgba(248, 245, 237, 0.6);
    border-radius: 18px;
    border: 1px solid rgba(26, 25, 22, 0.08);
    align-self: start;
}

.market-checkout-block__head h3 {
    font-size: 1.05rem;
}

@media (max-width: 1100px) {
    .market-cart-shell,
    .market-checkout-shell,
    .market-address-book {
        grid-template-columns: 1fr;
    }

    .market-address-book__form,
    .market-cart-sidebar__card,
    .market-checkout-summary__card {
        position: static;
    }
}

@media (max-width: 860px) {
    .market-cart-steps,
    .market-checkout-split-grid,
    .market-cart-sidebar__highlights,
    .market-address-grid {
        grid-template-columns: 1fr;
    }

    .market-cart-panel__head,
    .market-cart-row__top,
    .market-cart-row__bottom {
        grid-template-columns: 1fr;
    }

    .market-cart-row__amount {
        text-align: left;
    }

    .market-cart-left-checkout .market-checkout-actions {
        grid-template-columns: 1fr;
    }

    .market-checkout-page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .market-checkout-page-card__head--split {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .market-cart-step,
    .market-cart-row {
        padding-left: 16px;
        padding-right: 16px;
    }

    .market-cart-panel__head,
    .market-cart-sidebar__head,
    .market-cart-checkout-section__head {
        padding-left: 16px;
        padding-right: 16px;
    }

    .market-cart-sidebar__card,
    .market-cart-checkout-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .market-cart-address-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .market-address-book__form {
        padding: 16px;
    }

    .market-cart-row {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 14px;
    }

    .market-cart-row__thumb {
        width: 78px;
        height: 78px;
    }

    .market-cart-row__qty label {
        width: 100%;
        justify-content: space-between;
    }

    .market-cart-row__qty input,
    .market-cart-row__remove,
    .market-cart-row__remove .market-button {
        width: 100%;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family-base);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(143, 0, 255, 0.12), transparent 22%),
        radial-gradient(circle at top right, rgba(18, 214, 238, 0.14), transparent 26%),
        linear-gradient(180deg, #f5f8fd 0%, #edf3fb 100%);
}

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

button,
input {
    font: inherit;
}

.login-body {
    min-height: 100vh;
    font-family: var(--font-family-base);
    background:
        radial-gradient(circle at top left, rgba(255, 158, 36, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(38, 196, 138, 0.14), transparent 24%),
        linear-gradient(180deg, #f3f6fb 0%, #e9eff7 100%);
}

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

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.login-hero {
    width: min(1140px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    background: #ffffff;
    border: 1px solid rgba(18, 34, 54, 0.08);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(13, 29, 49, 0.16);
}

.tag,
.eyebrow {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
}

.eyebrow {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

.topbar h1,
.hero-banner h2,
.panel-card h3 {
    margin: 0;
    font-weight: 700;
}

.credential-card,
.login-form,
.topbar,
.hero-banner,
.stat-card,
.panel-card,
.footer {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
}

.credential-card--inline {
    width: 100%;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f2fdff, #e4f8f6);
    color: #115e59;
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow: none;
}

.credential-card p {
    margin: 0 0 6px;
    color: #0f766e;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.credential-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid rgba(15, 118, 110, 0.12);
}

.credential-card__row:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.credential-card__row span {
    color: #0f766e;
    font-size: 0.94rem;
}

.credential-card__row strong {
    color: #134e4a;
    font-size: 1rem;
}

.login-panel {
    position: relative;
    width: 100%;
    padding: 0;
    background: transparent;
}

.login-hero--compact {
    width: min(400px, 100%);
    grid-template-columns: 1fr;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.login-form {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 28px 24px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(18, 34, 54, 0.08);
    box-shadow: 0 22px 48px rgba(13, 29, 49, 0.10);
}

.login-form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, var(--orange) 0%, var(--teal) 55%, var(--green) 100%);
}

.login-badge {
    display: none;
}

.login-form__header {
    margin-bottom: 20px;
    text-align: left;
}

.login-title {
    margin: 0 0 6px;
    font-family: var(--font-family-base);
    font-size: 2.05rem;
    line-height: 1.05;
    color: #1e293b;
}

.login-subtitle,
.stat-card span,
.hero-banner span,
.footer p,
.summary-list__item span,
.sidebar__brand span,
.sidebar__card span,
.admin-chip small,
.header-pill strong {
    color: var(--muted);
}

.login-subtitle {
    margin: 0;
    max-width: none;
    font-size: 1rem;
    line-height: 1.5;
}

.field {
    display: block;
    margin-top: 18px;
}

.field span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.98rem;
    font-weight: 700;
    color: #334155;
}

.field input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(18, 34, 54, 0.14);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input:focus {
    border-color: rgba(255, 158, 36, 0.72);
    box-shadow: 0 0 0 4px rgba(255, 158, 36, 0.14);
    transform: translateY(-1px);
}

.field-help {
    display: block;
    margin-top: 8px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #64748b;
}

.cms-identity-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 18px;
    margin: 18px 0 24px;
    align-items: stretch;
}

.settings-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(18, 34, 54, 0.10);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    overflow: hidden;
}

.settings-image-preview img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: contain;
}

.settings-image-preview--favicon {
    width: 140px;
    min-height: 120px;
    padding: 16px;
}

.settings-image-preview--favicon img {
    width: 64px;
    max-width: 64px;
    max-height: 64px;
    margin: 0 auto;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: #4b5563;
    font-size: 0.98rem;
}

.login-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--teal);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    color: #6b7280;
    background: rgba(24, 183, 201, 0.10);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover,
.password-toggle.is-visible {
    background: rgba(24, 183, 201, 0.18);
    color: #0f172a;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-actions {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.primary-button,
.secondary-button,
.ghost-button,
.logout-button {
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.primary-button {
    background: linear-gradient(135deg, #2447a8, #3c63d6);
    color: #ffffff;
    box-shadow: 0 16px 24px rgba(36, 71, 168, 0.24);
    font-weight: 700;
}

.secondary-button {
    background: transparent;
    color: #167c88;
    border: 1px dashed rgba(24, 183, 201, 0.7);
    font-weight: 700;
}

.login-demo {
    margin-top: 18px;
    padding: 11px 14px;
    border-radius: 14px;
    border: 1px solid rgba(24, 183, 201, 0.24);
    background: rgba(24, 183, 201, 0.10);
    color: #167c88;
    font-size: 0.96rem;
}

.ghost-button {
    background: linear-gradient(180deg, #f8fbff 0%, #e7efff 100%);
    color: #2447a8;
    border: 1px solid rgba(60, 99, 214, 0.42);
    box-shadow: 0 10px 22px rgba(36, 71, 168, 0.10);
}

.logout-button {
    background: linear-gradient(135deg, #f2a14a, #ff9648);
    color: #5a2a00;
    box-shadow: 0 12px 22px rgba(255, 150, 72, 0.24);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.logout-button:hover,
.menu-toggle:hover,
.nav-link:hover {
    transform: translateY(-2px);
}

.alert {
    margin-top: 14px;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 0.98rem;
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
    max-height: 120px;
    overflow: hidden;
}

.alert--success {
    color: var(--success);
    background: rgba(31, 140, 97, 0.10);
}

.alert--error {
    color: var(--error);
    background: rgba(193, 78, 57, 0.10);
}

.alert.is-dismissed {
    opacity: 0;
    transform: translateY(-6px);
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.login-note {
    margin: 16px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 266px 1fr;
    background: linear-gradient(180deg, #eef4fb 0%, #f7fbff 100%);
}

.sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100vh;
    padding: 16px 14px;
    color: #edf8ff;
    background: #162748;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(18, 214, 238, 0.45) rgba(255, 255, 255, 0.08);
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: none;
    pointer-events: none;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(126, 156, 220, 0.78);
    border-radius: 999px;
}

.sidebar__brand,
.sidebar-search,
.sidebar__card,
.nav-link,
.topbar,
.hero-banner,
.stat-card,
.panel-card,
.footer {
    position: relative;
    z-index: 1;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 10px;
}

.brand-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: contain;
}

.brand-copy {
    min-width: 0;
}

.sidebar__brand strong {
    display: block;
    font-size: 1.12rem;
    line-height: 1.02;
}

.sidebar__brand span {
    display: block;
    font-size: 0.8rem;
    color: rgba(237, 248, 255, 0.76);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(237, 248, 255, 0.68);
    font-size: 0.98rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.sidebar-search input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #edf8ff;
    font-size: 1rem;
}

.sidebar-search input::placeholder {
    color: rgba(237, 248, 255, 0.7);
}

.sidebar-search__icon {
    width: 16px;
    text-align: center;
    font-size: 0.95rem;
}

.sidebar__nav {
    display: grid;
    gap: 6px;
}

.sidebar-search-empty {
    margin: -4px 4px 0;
    color: rgba(237, 248, 255, 0.72);
    font-size: 0.96rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 16px;
    color: rgba(237, 248, 255, 0.82);
    font-size: 0.98rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.nav-link--toggle {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.025);
    justify-content: space-between;
    text-align: left;
}

.nav-link__main {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.nav-link__arrow {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(237, 248, 255, 0.72);
    flex: 0 0 18px;
    transition: transform 0.22s ease;
}

.nav-link__arrow svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-group.is-open .nav-link__arrow {
    transform: rotate(180deg);
}

.nav-group.is-open > .nav-link--toggle {
    background: rgba(255, 255, 255, 0.035);
    color: rgba(237, 248, 255, 0.82);
}

.nav-group.is-open > .nav-link--toggle .nav-link__icon,
.nav-group.is-open > .nav-link--toggle .nav-link__arrow {
    color: #ffffff;
}

.nav-group.is-open > .nav-link--toggle.active {
    color: #2d1b00;
    background: linear-gradient(90deg, #f2a14a 0%, #f6ba6c 52%, #f8d596 100%);
    box-shadow: 0 16px 28px rgba(242, 161, 74, 0.30);
}

.nav-group.is-open > .nav-link--toggle.active .nav-link__icon,
.nav-group.is-open > .nav-link--toggle.active .nav-link__arrow {
    color: #5f3500;
}

.nav-link.active {
    color: #2d1b00;
    background: linear-gradient(90deg, #f2a14a 0%, #f6ba6c 52%, #f8d596 100%);
    box-shadow: 0 16px 28px rgba(242, 161, 74, 0.30);
}

.nav-link:hover,
.nav-link--toggle:hover {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
}

.nav-link.active:hover,
.nav-link--toggle.active:hover {
    color: #2d1b00;
    background: linear-gradient(90deg, #f2a14a 0%, #f6ba6c 52%, #f8d596 100%);
    box-shadow: 0 16px 28px rgba(242, 161, 74, 0.30);
}

.nav-link__icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.08rem;
    color: #f4fbff;
}

.nav-link__icon svg,
.sidebar-search__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-link.active .nav-link__icon {
    color: #5f3500;
}

.nav-submenu {
    display: none;
    padding: 6px 0 0 14px;
}

.nav-group.is-open .nav-submenu {
    display: grid;
    gap: 6px;
}

.nav-sublink {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(237, 248, 255, 0.74);
    font-size: 0.94rem;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.nav-sublink.active,
.nav-sublink:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    transform: translateX(2px);
}

.nav-sublink.active {
    background: linear-gradient(90deg, rgba(242, 161, 74, 0.24) 0%, rgba(246, 186, 108, 0.18) 52%, rgba(248, 213, 150, 0.12) 100%);
    border-color: rgba(242, 161, 74, 0.24);
    box-shadow: inset 3px 0 0 #f2a14a;
}

.nav-sublink__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(237, 248, 255, 0.82);
    flex: 0 0 18px;
}

.transaction-page {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.transaction-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
    gap: 18px;
    align-items: start;
}

.transaction-hero {
    padding: 24px;
    overflow: hidden;
    border-radius: 22px;
}

.transaction-hero__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0;
}

.transaction-hero__head h2 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 1.25rem;
    line-height: 1.2;
}

.transaction-meta-inline {
    margin: 12px 0 0;
    color: #51627c;
    font-size: 0.95rem;
}

.transaction-balance-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    color: #163254;
    background: linear-gradient(180deg, #eef5ff 0%, #e3eefc 100%);
    border: 1px solid rgba(42, 94, 168, 0.12);
    border-radius: 18px;
}

.transaction-balance-bar span {
    color: #47617f;
    font-size: 0.92rem;
    font-weight: 700;
}

.transaction-balance-bar strong {
    color: #17345f;
    font-size: 1.16rem;
}

.transaction-balance-bar--side {
    min-height: 100%;
}

.transaction-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px 0 0;
}

.transaction-range-tabs {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.transaction-range-tab {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #5a6476;
    background: #f7f8fb;
    border: 1px solid rgba(18, 34, 54, 0.08);
}

.transaction-range-tab.is-active {
    color: #12345a;
    background: linear-gradient(180deg, #fff7dd 0%, #ffeab6 100%);
    border-color: rgba(209, 160, 38, 0.26);
}

.transaction-meta {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    text-align: right;
}

.transaction-meta strong {
    font-size: 0.98rem;
}

.transaction-layout {
    display: grid;
    gap: 18px;
    min-width: 0;
    align-items: start;
}

.transaction-page .form-card,
.transaction-page .table-card,
.transaction-page .panel-card,
.transaction-page .table-wrap,
.transaction-page .summary-list,
.transaction-page .listing-filter,
.transaction-page .form-grid,
.transaction-page .form-actions,
.transaction-page .billing-note-card {
    min-width: 0;
}

.transaction-page .listing-filter {
    grid-template-columns: minmax(220px, 1.15fr) repeat(3, minmax(170px, 0.8fr)) auto;
    align-items: end;
    gap: 16px;
}

.transaction-page .listing-filter .form-actions {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-self: end;
    gap: 14px;
}

.transaction-page .listing-filter .form-actions .primary-button,
.transaction-page .listing-filter .form-actions .ghost-button {
    min-width: 160px;
}

.transaction-page .table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.transaction-page .summary-list__item {
    min-width: 0;
    gap: 10px;
    flex-wrap: wrap;
}

.transaction-page .summary-list__item span,
.transaction-page .summary-list__item strong,
.transaction-page .billing-note-card p,
.transaction-page .billing-note-card strong {
    overflow-wrap: anywhere;
}

.transaction-summary-card {
    padding: 18px 22px;
}

.transaction-filter-card {
    padding: 22px 24px;
}

.transaction-summary-card__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(18, 34, 54, 0.10);
}

.transaction-summary-card__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.transaction-summary-card__row:first-child {
    padding-top: 0;
}

.transaction-summary-card__row span {
    color: #23344d;
    font-weight: 700;
}

.transaction-summary-card__row strong {
    color: #6f7d8d;
    font-size: 1.02rem;
    font-weight: 700;
    text-align: right;
}

.transaction-filter-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(18, 34, 54, 0.08);
}

.transaction-filter-toolbar h3 {
    margin: 8px 0 0;
    color: #0f172a;
    font-size: 1.08rem;
}

.transaction-filter-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.transaction-filter-toolbar__actions .ghost-button {
    text-align: center;
}

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

.transaction-table-wrap,
.store-order-table-wrap,
.store-payments-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.store-order-items-table {
    min-width: 720px;
}

.store-payments-table {
    min-width: 640px;
}

.store-payments-page,
.store-payments-page .form-card,
.store-payments-page .table-card,
.store-order-page {
    min-width: 0;
}

.store-payments-page > .table-card {
    grid-column: 1 / -1;
}

.transaction-table td,
.transaction-table th {
    font-size: 0.93rem;
}

.print-only {
    display: none;
}

.print-statement {
    text-align: center;
    margin-bottom: 18px;
}

.print-statement__brand {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.15;
}

.print-statement__party {
    margin-top: 12px;
    font-size: 18px;
    font-weight: 700;
}

.print-statement__line,
.print-statement__period {
    font-size: 13px;
    line-height: 1.4;
}

.print-ledger-table {
    min-width: 0;
}

.print-ledger-table__date {
    width: 10%;
}

.print-ledger-table__marker {
    width: 3%;
    text-align: center;
}

.print-ledger-table__particulars {
    width: 28%;
}

.print-ledger-table__vch {
    width: 14%;
}

.print-ledger-table__vchno {
    width: 12%;
}

.print-ledger-table__num {
    width: 11%;
    text-align: right;
}

.transaction-amount-credit {
    color: #128a5a;
    font-weight: 700;
}

.transaction-amount-debit {
    color: #a55112;
    font-weight: 700;
}

.transaction-amount-balance {
    color: #1d4ed8;
    font-weight: 700;
}

@media print {
    .sidebar,
    .topbar,
    .form-card,
    .menu-toggle,
    .sidebar-backdrop,
    .print-hide {
        display: none !important;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .app-content,
    .content-area {
        padding: 0;
    }

    .transaction-hero,
    .table-card,
    .panel-card,
    .stat-card {
        box-shadow: none !important;
        border: 1px solid #dbe3ef !important;
    }

    .print-only {
        display: block !important;
    }

    .transaction-page .table-card {
        border: 0 !important;
    }

    .print-ledger-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
    }

    .print-ledger-table th,
    .print-ledger-table td {
        padding: 5px 4px;
        font-size: 11px;
        color: #111111 !important;
    }

    .print-ledger-table thead th {
        border-top: 1px solid #222;
        border-bottom: 1px solid #222;
        background: transparent !important;
    }

    .print-ledger-table tbody td:nth-child(6),
    .print-ledger-table tbody td:nth-child(7),
    .print-ledger-table tbody td:nth-child(8),
    .print-ledger-table tfoot td:nth-child(6),
    .print-ledger-table tfoot td:nth-child(7),
    .print-ledger-table tfoot td:nth-child(8) {
        text-align: right;
    }

    .print-ledger-table__opening td {
        font-weight: 700;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .print-ledger-table__closing td {
        font-weight: 700;
        padding-top: 16px;
    }

    .print-ledger-table__closing td:nth-child(3) {
        font-size: 16px;
    }

    .print-ledger-table__totals td {
        border-top: 1px solid #222;
    }

    .print-ledger-table__grand td {
        border-top: 1px solid #222;
        border-bottom: 1px solid #222;
        font-weight: 700;
    }
}

@media (max-width: 920px) {
    .transaction-top-grid,
    .transaction-layout {
        grid-template-columns: 1fr;
    }

    .transaction-balance-bar,
    .transaction-toolbar {
        padding: 14px 0 0;
    }

    .transaction-page .listing-filter {
        grid-template-columns: 1fr;
    }

    .transaction-page .listing-filter .form-actions {
        grid-column: auto;
        justify-content: stretch;
    }

    .transaction-page .listing-filter .form-actions .primary-button,
    .transaction-page .listing-filter .form-actions .ghost-button,
    .transaction-page .listing-filter .form-actions .secondary-button,
    .transaction-page .listing-filter .form-actions .logout-button {
        flex: 1 1 180px;
    }

    .transaction-filter-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .transaction-filter-toolbar__actions {
        justify-content: flex-start;
    }

    .store-payments-page {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .transaction-page {
        gap: 14px;
    }

    .transaction-balance-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .transaction-hero {
        padding: 18px;
    }

    .transaction-hero__head,
    .transaction-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .transaction-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .transaction-range-tabs,
    .transaction-meta {
        width: 100%;
    }

    .transaction-range-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .transaction-meta {
        justify-content: flex-start;
        text-align: left;
    }

    .transaction-range-tab {
        text-align: center;
        padding: 10px 12px;
    }

    .transaction-page .form-actions {
        width: 100%;
    }

    .transaction-page .form-actions .primary-button,
    .transaction-page .form-actions .ghost-button,
    .transaction-page .form-actions .secondary-button,
    .transaction-page .form-actions .logout-button {
        width: 100%;
    }

    .transaction-page .summary-list__item {
        padding: 14px 12px;
        font-size: 0.98rem;
    }

    .transaction-page .summary-list__item strong {
        font-size: 1.16rem;
    }

    .transaction-table {
        min-width: 680px;
    }
}

.nav-sublink__icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-sublink.active .nav-sublink__icon {
    color: #ffffff;
}

.sidebar__card {
    margin-top: auto;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__card p {
    margin: 0 0 8px;
    color: #9beeff;
    font-weight: 700;
}

.sidebar__card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.08rem;
}

.app-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

.topbar {
    margin: 0;
    padding: 16px 26px;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(18, 34, 54, 0.08);
    box-shadow: 0 14px 30px rgba(12, 28, 49, 0.06);
}

.topbar-left,
.topbar-right,
.admin-chip,
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-left > div,
.topbar-right,
.header-actions {
    min-width: 0;
}

.topbar h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(31, 116, 255, 0.18);
    color: #2a64d9;
}

.header-pill strong {
    overflow-wrap: anywhere;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #33d17a;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 46px;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #4b4b4f 0%, #333338 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #f8fafc;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 35;
}

.sidebar-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.admin-chip {
    padding: 8px 12px;
    border-radius: 16px;
    background: rgba(31, 116, 255, 0.05);
}

.admin-chip__avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
}

.content-area {
    padding: 28px;
}

.page-heading {
    margin-bottom: 8px;
}

.page-heading--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.page-heading h2 {
    margin: 0;
    font-size: 2.3rem;
    font-weight: 700;
    color: #243248;
}

.hero-banner {
    border-radius: 24px;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-banner__badge {
    min-width: 180px;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(31, 116, 255, 0.12);
}

.stats-grid,
.dashboard-grid,
.mini-grid,
.summary-list,
.progress-list {
    display: grid;
    gap: 18px;
}

.stats-grid {
    margin-top: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card,
.panel-card {
    border-radius: var(--radius-lg);
    padding: 22px;
}

.stat-card {
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: -16px;
    right: -14px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.stat-card p,
.panel-card__header p,
.footer p {
    margin: 0;
}

.stat-card p {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.stat-card h3 {
    margin: 10px 0 8px;
    font-size: 2.5rem;
}

.stat-card span {
    color: rgba(255, 255, 255, 0.86);
}

.stat-card .amount-paid {
    color: #d7ffea !important;
}

.stat-card .amount-balance {
    color: #ffd9d3 !important;
}

.stat-card .amount-previous {
    color: #dbe6ff !important;
}

.stat-card--teal {
    background: linear-gradient(135deg, #268ea0, #61c8c6);
}

.stat-card--green {
    background: linear-gradient(135deg, #0da189, #45d09e);
}

.stat-card--blue {
    background: linear-gradient(135deg, #2a65f5, #6bb6ef);
}

.stat-card--orange {
    background: linear-gradient(135deg, #ff980f, #ff8c78);
}

.dashboard-grid {
    margin-top: 22px;
    grid-template-columns: 1fr 1fr;
}

.dashboard-grid--secondary {
    grid-template-columns: 1.3fr 0.9fr;
}

.panel-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.panel-card h3 {
    font-size: 1.2rem;
}

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

.mini-grid div {
    padding: 18px;
    border-radius: 18px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--line);
}

.mini-grid strong {
    display: block;
    margin-bottom: 6px;
    font-size: 2.2rem;
    color: var(--blue);
}

.summary-list__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--line);
    font-size: 1.08rem;
}

.summary-list__item span {
    color: #2f3f52;
    font-weight: 700;
}

.summary-list__item strong {
    font-size: 1.4rem;
    color: #6f7d8d;
    font-weight: 600;
}

.store-profile-details {
    margin-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.store-profile-details__row {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.store-profile-details__label {
    color: #243248;
    font-size: 1rem;
    font-weight: 700;
}

.store-profile-details__value {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 500;
    text-align: left;
    word-break: break-word;
}

.store-profile-charge-list {
    display: grid;
    gap: 10px;
}

.store-profile-charge-list__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.store-profile-charge-list__item span {
    color: #243248;
    font-weight: 600;
}

.store-profile-charge-list__item strong {
    color: #0f5f7a;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .store-profile-details__row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 16px 0;
    }

    .store-profile-charge-list__item {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

.summary-list__item--balance {
    background: linear-gradient(180deg, #f2f7ff, #e8f1ff);
    border-color: #9bb8df;
}

.summary-list__item--balance span,
.summary-list__item--balance strong {
    color: #10233f;
}

.summary-list__item--balance strong {
    font-size: 1.55rem;
    font-weight: 800;
}

.summary-list__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
}

.summary-list__status--pending {
    color: #9f1239;
    background: #fff1f2;
    border-color: #f5b7c4;
}

.summary-list__status--clear {
    color: #166534;
    background: #f0fdf4;
    border-color: #9ddbb0;
}

.franchise-detail-table-wrap {
    border: 1px solid rgba(189, 204, 223, 0.72);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #f3f7fc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(26, 45, 74, 0.05);
}

.franchise-summary-table th,
.franchise-summary-table td {
    font-size: 1rem;
    vertical-align: middle;
}

.franchise-summary-table {
    table-layout: fixed;
}

.franchise-summary-table th {
    width: 20%;
    color: #111827;
    background: #f8fafc;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.35;
}

.franchise-summary-table td {
    width: 30%;
    color: #475569;
    font-weight: 500;
    font-size: 1.08rem;
    line-height: 1.5;
}

.franchise-summary-table__label-col {
    width: 20%;
}

.franchise-summary-table__value-col {
    width: 30%;
}

.franchise-summary-table--single .franchise-summary-table__label-col {
    width: 36%;
}

.franchise-summary-table--single .franchise-summary-table__value-col {
    width: 64%;
}

.franchise-summary-table th,
.franchise-summary-table td {
    padding: 16px 14px;
    word-break: break-word;
}

.franchise-summary-table--profile td {
    font-size: 1.02rem;
}

.franchise-summary-table--stats td {
    text-align: left;
    font-size: 1.05rem;
}

.franchise-summary-table--stats th {
    text-align: left;
}

.franchise-detail-top-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
}

.franchise-detail-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.franchise-shortcuts-panel {
    gap: 0;
}

.franchise-shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.franchise-shortcut-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid rgba(164, 189, 230, 0.52);
    color: #204b97;
    box-shadow: 0 10px 20px rgba(41, 80, 144, 0.08);
}

.franchise-shortcut-card span {
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.35;
}

.franchise-shortcut-card strong {
    font-size: 0.9rem;
    font-weight: 800;
    color: #16346b;
    white-space: nowrap;
}

.franchise-shortcut-card:hover {
    border-color: rgba(81, 124, 205, 0.7);
    background: linear-gradient(180deg, #f2f7ff 0%, #e6efff 100%);
}

.franchise-shortcuts-summary {
    margin-top: auto;
}

.table-wrap {
    overflow-x: auto;
}

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

.activity-table thead th {
    background: #f8fafc;
    color: #516177;
    border-bottom: 1px solid rgba(18, 34, 54, 0.08);
}

.activity-table th,
.activity-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
}

.activity-table th {
    font-size: 0.88rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #5d6c82;
    font-weight: 800;
}

.activity-table thead th:first-child {
    border-top-left-radius: 16px;
}

.activity-table thead th:last-child {
    border-top-right-radius: 16px;
}

.table-link {
    color: #214f9a;
    font-weight: 700;
    text-decoration: none;
}

.table-link:hover {
    color: #173a74;
    text-decoration: underline;
}

.progress-list {
    gap: 16px;
}

.progress-row__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: #e4edf8;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3aa0a7, #6ac4bd);
}

.form-card,
.table-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 24px;
}

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

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

.field--full {
    margin-top: 0;
}

.select-field,
.textarea-field {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(18, 129, 170, 0.22);
    background: #ffffff;
    outline: none;
    padding: 13px 15px;
    font: inherit;
}

.textarea-field {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--error);
    font-size: 0.92rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.form-actions .primary-button,
.form-actions .ghost-button,
.form-actions .logout-button,
.form-actions .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    white-space: nowrap;
}

.website-settings-filter {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.website-settings-filter__search {
    margin-top: 0;
}

.website-settings-filter__actions {
    margin-top: 0;
    flex-wrap: nowrap;
    align-items: end;
    justify-content: flex-end;
}

.website-settings-filter__actions .primary-button,
.website-settings-filter__actions .ghost-button {
    white-space: nowrap;
}

.cms-live-editor {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 22px;
    align-items: start;
}

.cms-live-editor .panel-card__header h3 {
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 700;
}

.cms-live-editor .summary-list__item {
    align-items: flex-start;
    gap: 18px;
    font-size: 0.96rem;
}

.cms-live-editor .summary-list__item span {
    color: #334155;
    font-weight: 700;
    line-height: 1.45;
}

.cms-live-editor .summary-list__item strong {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 600;
    text-align: right;
}

.cms-live-editor .field span {
    color: #1e293b;
    font-weight: 700;
}

.cms-live-editor .field input,
.cms-live-editor .select-field,
.cms-live-editor .textarea-field {
    color: #64748b;
}

.cms-live-editor__form,
.cms-live-editor__preview {
    margin-top: 0;
}

.cms-live-editor__preview iframe {
    display: block;
    width: 100%;
    min-height: 900px;
    border: 1px solid rgba(18, 34, 54, 0.08);
    border-radius: 24px;
    background: #fff;
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.admin-gallery-card {
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(18, 34, 54, 0.08);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.05);
}

.admin-gallery-card img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.admin-gallery-card__body {
    padding: 16px;
    display: grid;
    gap: 10px;
}

.admin-gallery-card__body strong {
    color: #10233f;
    font-size: 1rem;
}

.admin-gallery-card__body span {
    color: #64748b;
    font-size: 0.92rem;
}

.listing-filter {
    align-items: end;
}

.listing-filter .field {
    margin-top: 0;
}

.listing-filter--2 {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 1fr) auto;
}

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

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

.listing-filter .form-actions {
    margin-top: 0;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-start;
    align-self: end;
}

.product-listing-filter {
    grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(170px, 1fr)) auto;
    align-items: end;
}

.product-listing-filter .field {
    margin-top: 0;
}

.product-listing-filter .form-actions {
    justify-content: flex-end;
}

@media (min-width: 901px) {
    .product-listing-filter {
        grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, 0.85fr)) auto !important;
    }

    .product-listing-filter .form-actions {
        grid-column: auto !important;
        flex-wrap: nowrap;
    }
}

.product-table-panel {
    margin-top: 18px;
    padding: 18px 18px 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.product-table-panel .table-wrap {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: #ffffff;
}

.product-admin-table {
    min-width: 1180px;
}

.product-admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 16px 14px;
    background: #dbeafe;
    color: #1e3a8a;
    border-bottom: 1px solid rgba(147, 197, 253, 0.95);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
}

.product-admin-table tbody tr {
    transition: background 0.18s ease;
}

.product-admin-table tbody tr:nth-child(even) {
    background: #fcfdff;
}

.product-admin-table tbody tr:hover {
    background: #f7fbff;
}

.product-admin-table td {
    padding: 16px 14px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.product-admin-table__serial {
    color: #64748b;
    font-weight: 700;
}

.product-admin-table__text {
    color: #1e293b;
    font-weight: 600;
}

.product-admin-table__muted {
    color: #64748b;
    font-weight: 500;
}

.product-admin-table__product {
    display: grid;
    gap: 5px;
}

.product-admin-table__product strong {
    color: #0f172a;
    font-size: 0.98rem;
    line-height: 1.35;
}

.product-admin-table__product span {
    color: #64748b;
    font-size: 0.84rem;
    line-height: 1.4;
}

.product-admin-table__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-admin-table__badge--featured {
    color: #9a6700;
    background: rgba(251, 191, 36, 0.18);
}

.product-admin-table__badge--plain {
    color: #475569;
    background: #f1f5f9;
}

.product-admin-table__badge--unit {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.12);
}

.product-admin-table__price,
.product-admin-table__stock {
    color: #0f172a;
    font-weight: 800;
}

.product-admin-table__qty {
    color: #475569;
    font-weight: 700;
}

.product-table-panel .table-actions {
    justify-content: flex-end;
}

.product-table-panel .icon-action {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.product-table-panel .icon-action--edit {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.product-table-panel .icon-action--delete {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.product-table-panel .pagination {
    margin-top: 18px;
}

.product-listing-shell {
    display: grid;
    gap: 20px;
    border: 1px solid rgba(219, 234, 254, 0.92);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.product-listing-shell__header h3,
.product-table-panel__header h3 {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 1.28rem;
}

.product-listing-shell__text {
    margin: 10px 0 0;
    max-width: 760px;
    color: #64748b;
    line-height: 1.6;
}

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

.product-listing-stat {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 20px;
    border: 1px solid rgba(191, 219, 254, 0.95);
    background: linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.product-listing-stat span {
    color: #475569;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-listing-stat strong {
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1;
}

.product-listing-stat small {
    color: #64748b;
    line-height: 1.45;
}

.product-listing-filter {
    align-items: end;
}

.product-listing-filter__search {
    grid-column: span 2;
}

.product-listing-filter__actions {
    justify-content: flex-end;
}

.product-table-panel {
    padding-top: 20px;
}

.product-table-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.product-table-panel__summary {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-body .form-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.admin-body .form-card + .table-card {
    margin-top: 18px;
}

.product-form-shell {
    display: grid;
    gap: 18px;
}

.product-form-step {
    border: 1px solid rgba(219, 234, 254, 0.9);
    background:
        linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.product-form-step__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.product-form-step__header h3 {
    margin: 6px 0 0;
    color: #0f172a;
    font-size: 1.35rem;
}

.product-form-step__text {
    margin: 10px 0 0;
    max-width: 720px;
    color: #64748b;
    line-height: 1.6;
}

.product-form-grid {
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-form-grid--intro {
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    align-items: start;
}

.product-form-panel[hidden],
.product-form-step[hidden],
.category-form__meta[hidden],
.product-meta-group[hidden] {
    display: none !important;
}

.product-form-category-hint {
    min-height: 100%;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 22px 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.7), rgba(240, 249, 255, 0.92));
    border: 1px dashed rgba(59, 130, 246, 0.38);
}

.product-form-category-hint strong {
    color: #0f3a75;
    font-size: 1rem;
}

.product-form-category-hint span {
    color: #51627a;
    line-height: 1.55;
}

.product-form-panel {
    display: grid;
    gap: 18px;
    opacity: 0.55;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.product-form-panel.is-ready {
    opacity: 1;
    transform: translateY(0);
}

.product-form-badge {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.product-form-step .field span,
.category-form__meta .field span {
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.product-form-step .field input,
.product-form-step .select-field,
.product-form-step .textarea-field,
.category-form__meta .field input,
.category-form__meta .select-field {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #ffffff;
    box-shadow: none;
}

.product-form-step .textarea-field {
    min-height: 140px;
    padding-top: 14px;
}

.product-form-step .field input:focus,
.product-form-step .select-field:focus,
.product-form-step .textarea-field:focus,
.category-form__meta .field input:focus,
.category-form__meta .select-field:focus {
    border-color: rgba(37, 99, 235, 0.58);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.product-form-step .field input:disabled,
.product-form-step .select-field:disabled,
.product-form-step .textarea-field:disabled {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98));
    color: #94a3b8;
    cursor: not-allowed;
}

.category-form__meta {
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.product-form-step .media-preview-grid {
    gap: 14px;
}

.product-form-step .media-preview-card {
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.product-form-step .media-preview-image {
    width: 132px;
    height: 132px;
}

@media (max-width: 900px) {
    .product-listing-stats {
        grid-template-columns: 1fr;
    }

    .product-listing-filter__search {
        grid-column: auto;
    }

    .product-table-panel__header {
        flex-direction: column;
    }

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

    .product-form-step__header {
        flex-direction: column;
    }
}

@media (max-width: 1280px) and (min-width: 901px) {
    .product-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.admin-body .listing-filter,
.admin-body .website-settings-filter {
    gap: 16px;
    align-items: end;
}

.admin-body .listing-filter .field,
.admin-body .website-settings-filter .field {
    margin-top: 0;
}

.admin-body .listing-filter .field span,
.admin-body .website-settings-filter .field span {
    margin-bottom: 8px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.admin-body .listing-filter input,
.admin-body .website-settings-filter input,
.admin-body .listing-filter .select-field,
.admin-body .website-settings-filter .select-field {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.95);
    background: #ffffff;
    box-shadow: none;
}

.admin-body .listing-filter input:focus,
.admin-body .website-settings-filter input:focus,
.admin-body .listing-filter .select-field:focus,
.admin-body .website-settings-filter .select-field:focus {
    border-color: rgba(37, 99, 235, 0.58);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.admin-body .listing-filter .form-actions,
.admin-body .website-settings-filter__actions {
    justify-content: flex-end;
    align-self: end;
}

.admin-body .listing-filter .form-actions .primary-button,
.admin-body .listing-filter .form-actions .ghost-button,
.admin-body .website-settings-filter__actions .primary-button,
.admin-body .website-settings-filter__actions .ghost-button {
    min-width: 108px;
}

.admin-body .table-card {
    padding: 18px 18px 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.admin-body .table-wrap {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    background: #ffffff;
}

.admin-body .activity-table thead th {
    background: #dbeafe;
    color: #1e3a8a;
    border-bottom: 1px solid rgba(147, 197, 253, 0.95);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    padding: 16px 14px;
}

.admin-body .activity-table td {
    padding: 16px 14px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
}

.admin-body .activity-table tbody tr {
    transition: background 0.18s ease;
}

.admin-body .activity-table tbody tr:nth-child(even) {
    background: #fcfdff;
}

.admin-body .activity-table tbody tr:hover {
    background: #f7fbff;
}

.admin-body .table-actions {
    justify-content: flex-end;
}

.admin-body .icon-action {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.admin-body .icon-action--edit {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.admin-body .icon-action--delete {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.admin-body .pagination {
    margin-top: 18px;
}

.billing-rates-filter {
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    align-items: end;
}

.billing-rates-filter .field {
    margin-top: 0;
}

.billing-rates-filter .form-actions {
    justify-content: flex-end;
    align-self: end;
}

.billing-rates-table__date,
.billing-rates-table__date .billing-date-link {
    white-space: nowrap;
}

.billing-rates-table__date {
    min-width: 120px;
}

.empty-cell {
    text-align: center !important;
    color: var(--muted);
    padding: 28px 12px !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
}

.status-badge--active {
    background: rgba(31, 140, 97, 0.12);
    color: var(--success);
}

.status-badge--inactive {
    background: rgba(193, 78, 57, 0.12);
    color: var(--error);
}

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

.icon-action {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
}

.icon-action svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-action--edit {
    background: rgba(31, 116, 255, 0.10);
    color: #2a64d9;
}

.icon-action--view {
    background: rgba(32, 166, 138, 0.14);
    color: #13806b;
}

.icon-action--delete {
    background: rgba(255, 150, 72, 0.14);
    color: #b85b12;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.pagination__link {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(31, 116, 255, 0.08);
    color: #2a64d9;
}

.pagination__link.active {
    background: linear-gradient(90deg, #f2a14a 0%, #f6ba6c 52%, #f8d596 100%);
    color: #4b2b05;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 38, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    z-index: 100;
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    position: relative;
    width: min(100%, 420px);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 28px 60px rgba(7, 18, 38, 0.24);
}

.modal-card h3 {
    margin: 12px 0 10px;
    font-size: 1.7rem;
}

.modal-text {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: rgba(31, 116, 255, 0.08);
    color: #325fca;
    cursor: pointer;
    font-size: 1.4rem;
}

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

.billing-overview-grid {
    align-items: start;
}

.billing-overview-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.billing-overview-grid--single .form-card {
    width: 100%;
    max-width: none;
}

.billing-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.billing-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(31, 116, 255, 0.08);
    color: #2a64d9;
    font-size: 0.94rem;
    font-weight: 700;
}

.billing-chip--active {
    background: linear-gradient(90deg, #f2a14a 0%, #f6ba6c 52%, #f8d596 100%);
    color: #4b2b05;
}

.billing-date-link {
    color: #2a64d9;
    font-weight: 700;
}

.billing-date-link:hover {
    color: #1f4fb5;
    text-decoration: underline;
}

.amount-paid {
    color: #1f8c61 !important;
    font-weight: 700;
}

.amount-balance {
    color: #c14e39 !important;
    font-weight: 700;
}

.amount-previous {
    color: #2a64d9 !important;
    font-weight: 700;
}

.report-section + .report-section {
    margin-top: 18px;
}

.report-filter-card {
    padding: 22px 22px 24px;
}

.report-filter-card__header {
    align-items: start;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.report-filter-card__intro {
    max-width: 430px;
}

.report-filter-card__intro h3 {
    margin: 6px 0 8px;
    font-size: 1.5rem;
    line-height: 1.2;
}

.report-filter-card__copy {
    margin: 0;
    color: #64748b;
    font-size: 0.96rem;
    line-height: 1.55;
}

.report-filter-card__exports {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    width: min(100%, 620px);
    margin-left: auto;
}

.report-filter-card__exports .secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    min-width: 132px;
    padding: 0 14px;
    text-align: center;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(186, 230, 253, 0.95);
    color: #0f7f93;
    box-shadow: none;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.report-filter-card__exports .secondary-button:hover {
    background: #f0f9ff;
    border-color: rgba(125, 211, 252, 1);
}

.report-filter-card__form {
    gap: 0;
}

.report-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
    gap: 14px;
}

.report-filter-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: nowrap;
    align-items: stretch;
    align-self: end;
    margin-top: 0;
    gap: 12px;
}

.report-filter-actions .primary-button {
    min-width: 140px;
    min-height: 52px;
    padding: 0 22px;
}

.report-filter-actions .primary-button,
.report-filter-actions .ghost-button {
    min-width: 160px;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.report-filter-grid .field {
    margin-top: 0;
}

.report-filter-grid .field input,
.report-filter-grid .field .select-field {
    min-height: 52px;
}

.billing-chart-list {
    display: grid;
    gap: 14px;
}

.billing-chart-row {
    display: grid;
    gap: 8px;
}

.billing-chart-row__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #243248;
}

.billing-chart-row__meta strong {
    font-size: 0.98rem;
}

.billing-chart-row__meta span {
    color: #5c6d86;
    font-weight: 700;
}

.billing-chart-row__track {
    height: 12px;
    border-radius: 999px;
    background: rgba(42, 100, 217, 0.12);
    overflow: hidden;
}

.billing-chart-row__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f74ff 0%, #46b3ff 100%);
}

.report-summary-list {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid rgba(189, 204, 223, 0.72);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 58%, #f3f7fc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 10px 22px rgba(26, 45, 74, 0.05);
}

.report-summary-list .summary-list__item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 14px 22px;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(189, 204, 223, 0.72);
    box-shadow: none;
}

.report-summary-list .summary-list__item:last-child {
    border-bottom: 0;
}

.report-summary-list .summary-list__item span {
    color: #23344d;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: 0.98rem;
}

.report-summary-list .summary-list__item strong {
    color: #6f7d8d;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.45;
    text-align: left;
    white-space: nowrap;
}

.billing-category-charge-list small {
    color: #6f7d8d;
    font-weight: 600;
}

.billing-category-charge-list div + div {
    margin-top: 4px;
}

.supplier-report-summary-list {
    grid-template-columns: 1fr;
    gap: 12px;
}

.supplier-report-summary-list .summary-list__item {
    display: grid;
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
}

.supplier-report-summary-list .summary-list__item span {
    font-size: 0.98rem;
    font-weight: 700;
    color: #23344d;
}

.supplier-report-summary-list .summary-list__item strong {
    font-size: 0.98rem;
    font-weight: 600;
    color: #6f7d8d;
    text-align: left;
}

.supplier-report-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
    align-items: start;
}

.supplier-report-grid > .table-card {
    min-width: 0;
}

.supplier-report-grid .table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

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

.supplier-report-filter__actions {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.supplier-report-filter__actions .primary-button,
.supplier-report-filter__actions .ghost-button {
    min-width: 150px;
}

@media (max-width: 640px) {
    .supplier-report-summary-list .summary-list__item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.billing-note-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--line);
}

.billing-note-card strong {
    display: block;
    margin-bottom: 8px;
    color: #243248;
}

.billing-note-card p,
.billing-paragraph,
.billing-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.billing-analytics-chart {
    display: grid;
    gap: 18px;
}

.billing-line-chart {
    display: grid;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
}

.billing-line-chart__svg {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    overflow: hidden;
}

.billing-line-chart__point {
    cursor: pointer;
}

.billing-chart-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    min-width: 180px;
    max-width: 260px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(17, 24, 39, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    color: #f8fafc;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.96);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.billing-chart-tooltip.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.billing-chart-tooltip strong,
.billing-chart-tooltip span,
.billing-chart-tooltip small {
    display: block;
}

.billing-chart-tooltip strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: #ffffff;
}

.billing-chart-tooltip span {
    margin-top: 5px;
    font-size: 0.96rem;
    font-weight: 700;
    color: #99f6e4;
}

.billing-chart-tooltip small {
    margin-top: 4px;
    font-size: 0.79rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.88);
}

.billing-line-chart__axis {
    stroke: rgba(93, 108, 130, 0.22);
    stroke-width: 1.5;
    stroke-dasharray: 4 6;
}

.billing-line-chart__area {
    fill: url(#billingReportArea);
    animation: billingAreaRise 0.95s ease-out both;
    transform-origin: bottom;
}

.billing-line-chart__path {
    fill: none;
    stroke: #2a64d9;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 560;
    stroke-dashoffset: 560;
    animation: billingPathDraw 1.4s ease forwards;
}

.billing-line-chart__dot {
    fill: #ffffff;
    stroke: #2a64d9;
    stroke-width: 3;
    opacity: 0;
    transform-origin: center;
    animation: billingDotPop 0.4s ease-out forwards;
    transition: r 0.2s ease, stroke-width 0.2s ease, fill 0.2s ease;
}

.billing-line-chart__point:hover .billing-line-chart__dot {
    fill: #2a64d9;
    stroke: #ffffff;
    stroke-width: 2;
    r: 6.5;
}

.billing-line-chart__dot:nth-of-type(2) { animation-delay: 0.18s; }
.billing-line-chart__dot:nth-of-type(3) { animation-delay: 0.28s; }
.billing-line-chart__dot:nth-of-type(4) { animation-delay: 0.38s; }
.billing-line-chart__dot:nth-of-type(5) { animation-delay: 0.48s; }
.billing-line-chart__dot:nth-of-type(6) { animation-delay: 0.58s; }
.billing-line-chart__dot:nth-of-type(7) { animation-delay: 0.68s; }
.billing-line-chart__dot:nth-of-type(8) { animation-delay: 0.78s; }

.billing-rich-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
    gap: 12px;
    align-items: end;
}

.billing-rich-strip__item {
    position: relative;
    min-height: 124px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 6px;
    padding: 14px 10px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid rgba(42, 100, 217, 0.12);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.billing-rich-strip__item::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    height: var(--billing-size, 0%);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(42, 100, 217, 0.22) 0%, rgba(42, 100, 217, 0.72) 100%);
    transform: scaleY(0);
    transform-origin: bottom;
    animation: billingAreaRise 0.8s ease-out forwards;
    animation-delay: var(--billing-delay, 0s);
}

.billing-rich-strip__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(42, 100, 217, 0.10);
    border-color: rgba(42, 100, 217, 0.26);
}

.billing-rich-strip__item span,
.billing-rich-strip__item strong,
.billing-rich-strip__item small {
    position: relative;
    z-index: 1;
}

.billing-rich-strip__item span {
    color: #4f6688;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.billing-rich-strip__item strong {
    color: #17345f;
    font-size: 1.2rem;
}

.billing-rich-strip__item small {
    color: #5f738f;
    font-size: 0.78rem;
    font-weight: 700;
}

.billing-analytics-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.billing-analytics-metrics article {
    padding: 15px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f6fbff 0%, #eef5ff 100%);
    border: 1px solid rgba(42, 100, 217, 0.12);
}

.billing-analytics-metrics span,
.billing-analytics-metrics strong {
    display: block;
}

.billing-analytics-metrics span {
    color: #5a6c84;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.billing-analytics-metrics strong {
    margin-top: 8px;
    color: #193760;
    font-size: 1.04rem;
}

.billing-transaction-chart {
    display: grid;
    gap: 12px;
}

.billing-transaction-chart--mini {
    margin-top: 18px;
}

.billing-transaction-chart__row {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(18, 34, 54, 0.08);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.billing-transaction-chart__row:hover {
    transform: translateY(-3px);
    border-color: rgba(42, 100, 217, 0.22);
    box-shadow: 0 16px 30px rgba(15, 42, 84, 0.08);
}

.billing-transaction-chart__row--compact {
    padding: 14px 16px;
}

.billing-transaction-chart__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.billing-transaction-chart__meta strong {
    color: #213656;
    font-size: 0.98rem;
}

.billing-transaction-chart__meta span {
    color: #63758c;
    font-size: 0.82rem;
    font-weight: 700;
}

.billing-transaction-chart__bars {
    display: grid;
    gap: 10px;
}

.billing-transaction-chart__bar {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.billing-transaction-chart__bar small,
.billing-transaction-chart__bar em {
    font-style: normal;
    font-weight: 700;
}

.billing-transaction-chart__bar small {
    color: #53657c;
}

.billing-transaction-chart__bar em {
    color: #203554;
    font-size: 0.82rem;
}

.billing-transaction-chart__bar span {
    position: relative;
    display: block;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(31, 116, 255, 0.10);
}

.billing-transaction-chart__bar span::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--billing-size, 0%);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    animation: billingBarGrow 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: var(--billing-delay, 0s);
}

.billing-transaction-chart__bar--bill span::before {
    background: linear-gradient(90deg, #2a64d9 0%, #67a4ff 100%);
}

.billing-transaction-chart__bar--paid span {
    background: rgba(31, 140, 97, 0.12);
}

.billing-transaction-chart__bar--paid span::before {
    background: linear-gradient(90deg, #1f8c61 0%, #42cf9e 100%);
}

.billing-analytics-metrics--compact {
    margin-top: 18px;
}

.billing-pie-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
    gap: 18px;
    align-items: center;
}

.billing-pie-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 220px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.9), rgba(236, 244, 255, 0.95)),
        linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    border: 1px solid rgba(42, 100, 217, 0.12);
}

.billing-pie-chart {
    width: 168px;
    height: 168px;
    transform: rotate(-90deg);
    cursor: pointer;
}

.billing-pie-chart__track,
.billing-pie-chart__paid,
.billing-pie-chart__gap {
    fill: none;
    stroke-width: 16;
}

.billing-pie-chart__track {
    stroke: rgba(42, 100, 217, 0.10);
}

.billing-pie-chart__paid,
.billing-pie-chart__gap {
    stroke-linecap: round;
    stroke-dasharray: 0 339.29;
    animation: billingPieReveal 1.1s ease forwards;
    transition: stroke-width 0.2s ease, filter 0.2s ease;
}

.billing-pie-chart__paid {
    stroke: #1f8c61;
}

.billing-pie-chart__gap {
    stroke: #2a64d9;
    animation-delay: 0.14s;
}

.billing-pie-chart__paid:hover,
.billing-pie-chart__gap:hover {
    stroke-width: 20;
    filter: drop-shadow(0 8px 14px rgba(31, 116, 255, 0.16));
}

.billing-pie-card__center {
    position: absolute;
    text-align: center;
}

.billing-pie-card__center strong,
.billing-pie-card__center span {
    display: block;
}

.billing-pie-card__center strong {
    color: #18365f;
    font-size: 2rem;
}

.billing-pie-card__center span {
    color: #62758d;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.billing-pie-legend {
    display: grid;
    gap: 12px;
}

.billing-pie-legend__item {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(18, 34, 54, 0.08);
}

.billing-pie-legend__item span,
.billing-pie-legend__item strong {
    display: block;
}

.billing-pie-legend__item span {
    color: #5f728b;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.billing-pie-legend__item strong {
    margin-top: 8px;
    color: #18365f;
    font-size: 1.05rem;
}

.billing-pie-legend__item--paid {
    box-shadow: inset 4px 0 0 #1f8c61;
}

.billing-pie-legend__item--gap {
    box-shadow: inset 4px 0 0 #2a64d9;
}

.billing-pie-legend__item--bill {
    box-shadow: inset 4px 0 0 #f2a14a;
}

@keyframes billingPathDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes billingAreaRise {
    from {
        opacity: 0;
        transform: scaleY(0.2);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes billingDotPop {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes billingBarGrow {
    to {
        transform: scaleX(1);
    }
}

@keyframes billingPieReveal {
    from {
        stroke-dasharray: 0 339.29;
    }
}

.media-upload-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.media-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.media-preview-card {
    display: grid;
    gap: 8px;
    color: #64748b;
    font-size: 0.84rem;
}

.media-preview-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(18, 34, 54, 0.12);
    background: #f8fafc;
}

.scanner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.scanner-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.scanner-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 31, 46, 0.10);
}

.scanner-card--compact {
    padding: 12px;
}

.scanner-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(18, 31, 46, 0.08);
    background: #ffffff;
    padding: 8px;
}

.scanner-card strong {
    color: #18314d;
    font-size: 0.95rem;
}

.scanner-card span,
.scanner-card p {
    margin: 0;
    color: #607286;
    font-size: 0.82rem;
    line-height: 1.45;
}

@media (max-width: 680px) {
    .market-scanpay-card {
        grid-template-columns: 1fr;
    }

    .market-scanpay-card__image {
        max-width: 220px;
        margin: 0 auto;
    }
}

.table-media-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(18, 34, 54, 0.12);
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.table-media-thumb--placeholder {
    padding: 6px;
}

.detail-sheet {
    display: grid;
    gap: 14px;
}

.detail-row {
    display: grid;
    grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 4px 0;
    border-bottom: 1px solid rgba(18, 34, 54, 0.08);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span,
.detail-block span {
    color: #243248;
    font-weight: 700;
}

.detail-row strong {
    color: #5a6273;
    font-weight: 500;
    font-size: 1.02rem;
    line-height: 1.6;
}

.detail-sheet--stacked {
    margin-top: 10px;
    padding-top: 4px;
}

.detail-block {
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(18, 34, 54, 0.08);
}

.detail-block:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-block p {
    margin: 6px 0 0;
    color: #5a6273;
    line-height: 1.7;
}

.report-analytics-page .billing-stats-grid {
    gap: 16px;
}

.report-analytics-page .stat-card {
    background: #fbfcfd;
    border: 1px solid rgba(35, 52, 77, 0.10);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
    color: #243248;
}

.report-analytics-page .stat-card p {
    color: #66758a;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.report-analytics-page .stat-card h3 {
    color: #1f2937;
    font-size: 1.75rem;
}

.report-analytics-page .stat-card h3.amount-previous {
    color: #2a64d9 !important;
}

.report-analytics-page .stat-card h3.amount-paid {
    color: #1f8c61 !important;
}

.report-analytics-page .stat-card h3.amount-balance {
    color: #c14e39 !important;
}

.report-analytics-page .stat-card span {
    color: #7a889b;
}

.report-analytics-page .panel-card,
.report-analytics-page .table-card {
    border: 1px solid rgba(35, 52, 77, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.04);
}

.report-analytics-page .report-filter-card {
    background: #ffffff;
}

.report-analytics-page .billing-chart-row__track {
    background: #e8edf3;
}

.report-analytics-page .billing-chart-row__track span {
    background: linear-gradient(90deg, #4b5563 0%, #94a3b8 100%);
}

.report-analytics-page .report-summary-list {
    background: #fcfdff;
    border-color: rgba(35, 52, 77, 0.10);
    box-shadow: none;
}

.report-analytics-page .report-summary-list .summary-list__item {
    border-bottom-color: rgba(35, 52, 77, 0.08);
}

.report-analytics-page .report-summary-list .summary-list__item span {
    color: #23344d;
    font-weight: 700;
}

.report-analytics-page .report-summary-list .summary-list__item strong {
    color: #6f7d8d;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.45;
    text-align: left;
}

.report-analytics-page .report-summary-list .summary-list__item {
    grid-template-columns: minmax(220px, 1fr) auto;
}

.report-analytics-page .report-summary-list .summary-list__item span,
.report-analytics-page .report-summary-list .summary-list__item strong {
    display: block;
}

.report-analytics-page .billing-note-card {
    background: #f8fafc;
    border-color: rgba(35, 52, 77, 0.08);
}

.report-analytics-page .report-summary-table th,
.report-analytics-page .report-summary-table td {
    font-size: 1rem;
    vertical-align: middle;
}

.report-analytics-page .report-summary-table th {
    width: 24%;
    color: #23344d;
    background: #f8fafc;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.report-analytics-page .report-summary-table td {
    width: 26%;
    color: #6f7d8d;
    font-weight: 600;
}

.report-analytics-page .activity-table {
    table-layout: fixed;
}

.report-analytics-page .activity-table th,
.report-analytics-page .activity-table td {
    padding: 12px 10px;
    font-size: 0.83rem;
    word-break: break-word;
}

.report-analytics-page .report-note-card {
    margin-top: 16px;
}

.billing-bullet-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 12px;
    color: #243248;
}

.billing-step-list {
    display: grid;
    gap: 14px;
}

.billing-step {
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--line);
}

.billing-step strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.02rem;
    color: #243248;
}

.billing-formula {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f7fbff, #edf5ff);
    border: 1px solid rgba(31, 116, 255, 0.10);
}

.billing-formula code {
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    color: #243248;
}

.invoice-preview-card {
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid rgba(18, 34, 54, 0.08);
    box-shadow: var(--shadow);
    border-radius: 28px;
    padding: 28px;
}

.invoice-preview__top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.invoice-preview__top h3 {
    margin: 10px 0 12px;
    font-size: 2rem;
    color: #243248;
}

.invoice-meta {
    display: grid;
    gap: 10px;
    align-content: start;
    justify-items: end;
    color: var(--muted);
    font-weight: 700;
}

.delivery-app-shell,
.store-app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: clamp(228px, 18vw, 266px) minmax(0, 1fr);
    width: 100%;
    overflow-x: clip;
    background: linear-gradient(180deg, #eef4fb 0%, #f7fbff 100%);
}

.delivery-sidebar,
.store-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100vh;
    padding: 18px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: #edf8ff;
    background:
        radial-gradient(circle at 16% 10%, rgba(143, 0, 255, 0.22), transparent 20%),
        radial-gradient(circle at 84% 12%, rgba(18, 214, 238, 0.16), transparent 22%),
        linear-gradient(180deg, #121a2f 0%, #162748 42%, #123550 100%);
}

.delivery-sidebar::-webkit-scrollbar,
.store-sidebar::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.panel-menu-toggle {
    display: none;
    flex: 0 0 46px;
}

.panel-sidebar-backdrop {
    z-index: 32;
}

.delivery-sidebar__brand,
.delivery-sidebar__card,
.delivery-sidebar__nav,
.store-sidebar__brand,
.store-sidebar__card,
.store-sidebar__nav {
    position: relative;
    z-index: 1;
}

.delivery-sidebar__brand,
.store-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 10px;
}

.delivery-sidebar__card,
.store-sidebar__card {
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.delivery-sidebar__card p,
.store-sidebar__card p {
    margin: 0 0 8px;
}

.delivery-sidebar__card strong,
.delivery-sidebar__card span,
.store-sidebar__card strong,
.store-sidebar__card span {
    display: block;
}

.delivery-sidebar__card strong,
.store-sidebar__card strong {
    margin-bottom: 6px;
    font-size: 1.08rem;
    color: #ffffff;
}

.delivery-sidebar__card span,
.store-sidebar__card span {
    color: rgba(237, 248, 255, 0.76);
    line-height: 1.6;
}

.delivery-sidebar__card--soft,
.store-sidebar__card--soft {
    margin-top: auto;
}

.delivery-sidebar__nav,
.store-sidebar__nav {
    display: grid;
    gap: 8px;
}

.delivery-nav-link,
.store-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 13px 16px;
    border-radius: 16px;
    color: rgba(237, 248, 255, 0.82);
    font-size: 0.98rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.025);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.delivery-nav-link:hover,
.store-nav-link:hover {
    background: rgba(255, 255, 255, 0.075);
    color: #ffffff;
    transform: translateY(-2px);
}

.delivery-nav-link.is-active,
.store-nav-link.is-active {
    color: #2d1b00;
    background: linear-gradient(90deg, #f2a14a 0%, #f6ba6c 52%, #f8d596 100%);
    box-shadow: 0 16px 28px rgba(242, 161, 74, 0.30);
}

.portal-nav-link__icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.portal-nav-link__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-dashboard-stack {
    display: grid;
    gap: 22px;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.portal-dashboard-stack .stats-grid,
.portal-dashboard-stack .billing-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.portal-dashboard-stack .dashboard-grid,
.portal-dashboard-stack .billing-overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.portal-dashboard-stack .portal-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.92fr);
}

.portal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    gap: 22px;
    padding: 26px 28px;
    border-radius: 28px;
    color: #f8fbff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.18);
}

.portal-hero::before,
.portal-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.portal-hero::before {
    width: 220px;
    height: 220px;
    right: -70px;
    top: -70px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.portal-hero::after {
    width: 180px;
    height: 180px;
    left: -60px;
    bottom: -70px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.portal-hero > * {
    position: relative;
    z-index: 1;
}

.portal-hero--store {
    background: linear-gradient(135deg, #16365d 0%, #1f5a87 52%, #2d86b8 100%);
}

.portal-hero--delivery {
    background: linear-gradient(135deg, #17324d 0%, #1f6b7a 48%, #31a89d 100%);
}

.portal-hero--franchise {
    background: linear-gradient(135deg, #2d214e 0%, #4d2d74 50%, #8751b5 100%);
}

.portal-hero__eyebrow {
    margin: 0 0 10px;
    color: rgba(235, 247, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.portal-hero h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.8rem);
    color: #ffffff;
}

.portal-hero__copy {
    max-width: 640px;
    margin: 12px 0 0;
    color: rgba(239, 247, 255, 0.88);
    line-height: 1.75;
}

.portal-hero .billing-chip-list {
    margin-top: 18px;
}

.portal-hero .billing-chip {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
    color: #eff6ff;
}

.portal-hero .billing-chip:hover,
.portal-hero .billing-chip--active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.portal-hero__aside {
    display: grid;
    gap: 16px;
    align-content: start;
}

.portal-kpi-list {
    display: grid;
    gap: 12px;
}

.portal-kpi-list article,
.portal-note,
.portal-mini-list article {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.portal-kpi-list article {
    padding: 16px 18px;
}

.portal-kpi-list span,
.portal-kpi-list strong {
    display: block;
}

.portal-kpi-list span {
    color: rgba(231, 241, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-kpi-list strong {
    margin-top: 8px;
    color: #ffffff;
    font-size: 1.18rem;
}

.portal-note {
    padding: 16px 18px;
}

.portal-note strong {
    display: block;
    color: #ffffff;
    font-size: 0.94rem;
}

.portal-note p {
    margin: 8px 0 0;
    color: rgba(238, 245, 255, 0.88);
    line-height: 1.65;
}

.portal-note--soft {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid rgba(42, 100, 217, 0.12);
    backdrop-filter: none;
}

.portal-note--soft strong {
    color: #18355e;
}

.portal-note--soft p {
    color: #62758d;
}

.portal-mini-list {
    display: grid;
    gap: 12px;
}

.portal-mini-list article {
    padding: 14px 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(18, 34, 54, 0.08);
}

.portal-mini-list strong,
.portal-mini-list span {
    display: block;
}

.portal-mini-list strong {
    color: #213656;
    font-size: 0.95rem;
}

.portal-mini-list span {
    margin-top: 6px;
    color: #64758c;
    font-size: 0.84rem;
}

.portal-table-stack {
    display: grid;
    gap: 16px;
}

@media (max-width: 1180px) {
    .portal-hero {
        grid-template-columns: 1fr;
    }

    .delivery-app-shell,
    .store-app-shell {
        grid-template-columns: 1fr;
    }

    .delivery-sidebar,
    .store-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 40;
        width: min(300px, calc(100vw - 40px));
        height: 100vh;
        transform: translateX(-110%);
        transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .delivery-sidebar.is-open,
    .store-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 18px 0 32px rgba(15, 23, 42, 0.28);
    }

    .panel-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.panel-sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 720px) {
    .portal-hero {
        padding: 20px;
        gap: 16px;
    }

    .portal-hero .billing-chip-list {
        gap: 8px;
    }

    .portal-hero .billing-chip {
        width: 100%;
        justify-content: center;
    }

    .portal-hero__copy {
        overflow-wrap: anywhere;
    }
}

.delivery-content,
.store-content {
    padding-top: 0;
}

.delivery-summary-list {
    margin-top: 18px;
}

.shop-search-input {
    width: 100%;
    margin-bottom: 10px;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(18, 34, 54, 0.12);
    background: #f9fbfe;
    outline: none;
}

.delivery-inline-form {
    margin: 0;
}

.delivery-lock-note {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.delivery-demo-form {
    margin-top: 12px;
}

.delivery-workspace {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.delivery-workspace .billing-stats-grid {
    margin-bottom: 0;
}

.delivery-workspace--payments .billing-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.delivery-workspace .billing-overview-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
    gap: 22px;
}

.delivery-entry-card,
.delivery-side-card,
.delivery-filter-card {
    min-width: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbff 100%);
    border: 1px solid rgba(28, 54, 88, 0.08);
    box-shadow: 0 18px 36px rgba(26, 43, 72, 0.08);
}

.delivery-entry-card {
    padding: 26px 28px;
}

.delivery-side-card {
    padding: 24px 24px 26px;
    position: relative;
    overflow: hidden;
}

.delivery-side-card::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -30px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90, 210, 194, 0.18) 0%, rgba(90, 210, 194, 0) 70%);
    pointer-events: none;
}

.delivery-workspace .panel-card__header {
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(18, 34, 54, 0.08);
}

.delivery-workspace .panel-card__header h3 {
    margin: 8px 0 0;
    color: #0f172a;
}

.delivery-entry-card .category-form,
.delivery-filter-card .delivery-listing-filter {
    min-width: 0;
}

.delivery-entry-card .form-grid {
    gap: 16px;
}

.delivery-entry-card .field,
.delivery-filter-card .field {
    margin-top: 0;
}

.delivery-entry-card .shop-search-input {
    margin-bottom: 12px;
    background: #fff;
}

.delivery-entry-card .form-actions {
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.delivery-entry-card .form-actions .primary-button,
.delivery-entry-card .form-actions .secondary-button,
.delivery-entry-card .form-actions .ghost-button {
    min-height: 50px;
}

.delivery-side-card .summary-list,
.delivery-side-card .billing-formula {
    position: relative;
    z-index: 1;
}

.delivery-filter-card .delivery-listing-filter {
    margin-bottom: 18px;
}

.delivery-listing-filter {
    grid-template-columns: minmax(220px, 1.15fr) repeat(3, minmax(170px, 0.82fr)) auto;
    align-items: end;
    gap: 16px;
}

.delivery-listing-filter .form-actions {
    margin-top: 0;
    flex-wrap: nowrap;
    grid-column: auto;
}

.delivery-content > *,
.delivery-workspace > *,
.delivery-workspace .panel-card,
.delivery-workspace .table-card {
    min-width: 0;
}

.delivery-content .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.delivery-content,
.delivery-content > *,
.portal-dashboard-stack,
.billing-analytics-chart,
.billing-line-chart,
.billing-pie-layout,
.billing-transaction-chart,
.billing-transaction-chart__row,
.progress-list,
.portal-mini-list,
.portal-kpi-list,
.portal-hero,
.portal-hero > *,
.delivery-workspace .billing-overview-grid,
.delivery-workspace .billing-stats-grid {
    min-width: 0;
    max-width: 100%;
}

.delivery-table {
    width: 100%;
    min-width: 720px;
}

.delivery-table--billing {
    min-width: 1080px;
}

.delivery-table--payments {
    min-width: 760px;
}

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

.stock-summary-grid .summary-list__item {
    min-width: 0;
}

.delivery-chart {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
    align-items: end;
    min-height: 250px;
    padding-top: 12px;
}

.delivery-chart__item {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.delivery-chart__value,
.delivery-chart__item small {
    color: var(--muted);
    font-size: 0.84rem;
    text-align: center;
}

.delivery-chart__bar-wrap {
    width: 100%;
    min-height: 190px;
    display: flex;
    align-items: end;
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff, #eef4fb);
    border: 1px solid rgba(31, 116, 255, 0.10);
}

.delivery-chart__bar {
    width: 100%;
    border-radius: 16px 16px 8px 8px;
    background: linear-gradient(180deg, #2a65f5 0%, #5ad2c2 100%);
    box-shadow: 0 14px 26px rgba(42, 101, 245, 0.18);
}

.delivery-chart__item strong {
    color: #243248;
    font-size: 0.95rem;
}

.thermal-receipt-page {
    background: transparent;
    margin-top: 0;
}

.thermal-receipt-shell {
    width: min(100%, 320px);
    margin: 0 auto;
    padding: 8px 0 12px;
}

.thermal-receipt-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.thermal-receipt {
    width: min(292px, 100%);
    margin: 0 auto;
    padding: 14px 12px 16px;
    background: #ffffff;
    border: 1px dashed #8fa0b4;
    box-shadow: 0 18px 40px rgba(8, 21, 39, 0.10);
    font-family: "Times New Roman", Times, serif;
    color: #111111;
}

.delivery-content .thermal-receipt-page {
    width: min(100%, 760px);
    margin: 0 auto;
}

.delivery-content .thermal-receipt-shell {
    width: min(100%, 760px);
}

.delivery-content .thermal-receipt-actions,
.delivery-content [data-printer-status] {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.delivery-content [data-printer-status] {
    margin-bottom: 12px;
    text-align: center;
}

.thermal-receipt__head,
.thermal-receipt__foot {
    text-align: center;
}

.thermal-receipt__head {
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #8fa0b4;
}

.thermal-receipt__head strong,
.thermal-receipt__head span,
.thermal-receipt__head small,
.thermal-receipt__foot strong,
.thermal-receipt__foot p {
    display: block;
}

.thermal-receipt__logo {
    display: block;
    width: auto;
    max-width: 56px;
    max-height: 56px;
    margin: 0 auto 8px;
    object-fit: contain;
    object-position: center;
}

.thermal-receipt__head strong {
    font-size: 1.15rem;
    letter-spacing: 0.04em;
}

.thermal-receipt__head small:first-of-type {
    margin-top: 6px;
    font-weight: 700;
    color: #111111;
}

.thermal-receipt__head span,
.thermal-receipt__head small,
.thermal-receipt__foot p {
    margin-top: 4px;
    font-size: 0.85rem;
}

.thermal-receipt__head span {
    font-weight: 700;
    color: #243248;
    margin-top: 6px;
}

.thermal-receipt__meta {
    margin: 14px 0;
    padding: 0 0 12px;
    border-bottom: 1px dashed #8fa0b4;
    display: grid;
    gap: 8px;
}

.thermal-receipt__meta div,
.thermal-receipt__table td {
    font-size: 0.9rem;
}

.thermal-receipt__meta div {
    display: grid;
    grid-template-columns: minmax(74px, 40%) minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
}

.thermal-receipt__meta span,
.thermal-receipt__foot p {
    color: #2f3f52;
}

.thermal-receipt__meta strong {
    max-width: none;
    text-align: right;
    word-break: break-word;
    color: #111111;
}

.thermal-receipt__table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.thermal-receipt__table thead th {
    padding: 0 0 8px;
    border-bottom: 1px dashed #8fa0b4;
    text-align: left;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4d5d70;
}

.thermal-receipt__table td {
    padding: 7px 0;
    border-bottom: 1px dashed #c8d2dc;
    vertical-align: top;
    word-break: break-word;
}

.thermal-receipt__table td:first-child {
    width: 58%;
    color: #2f3f52;
}

.thermal-receipt__table td:last-child {
    text-align: right;
    width: 40%;
    color: #6f7d8d;
    font-weight: 700;
}

.thermal-receipt__total td,
.thermal-receipt__total td:last-child {
    color: #000000;
}

.thermal-receipt__total td {
    font-weight: 800;
    font-size: 1rem;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
    padding-top: 10px;
    padding-bottom: 10px;
    letter-spacing: 0.01em;
}

.thermal-receipt__total td:last-child {
    font-size: 1.22rem;
    font-weight: 900;
}

.thermal-receipt__balance td,
.thermal-receipt__balance td:last-child {
    color: #0f172a;
}

.thermal-receipt__balance td {
    font-weight: 800;
    background: #f2f7ff;
    border-top: 1px solid #7ea3d7;
    border-bottom: 1px solid #7ea3d7;
    padding-top: 9px;
    padding-bottom: 9px;
}

.thermal-receipt__balance td:first-child {
    padding-left: 8px;
}

.thermal-receipt__balance td:last-child {
    padding-right: 8px;
    font-size: 1.08rem;
    font-weight: 900;
}

.thermal-receipt__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
}

.thermal-receipt__status--pending {
    color: #9f1239;
    background: #fff1f2;
    border-color: #f8b4c1;
}

.thermal-receipt__status--clear {
    color: #166534;
    background: #f0fdf4;
    border-color: #9ddbb0;
}

.thermal-receipt__foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #8fa0b4;
}

.thermal-receipt__foot p {
    margin-top: 0;
    line-height: 1.5;
}

.thermal-receipt__foot strong.thermal-receipt__status {
    margin: 8px auto 0;
}

.invoice-receipt-page {
    background: #eef3f7;
}

.invoice-receipt-shell {
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 20px 14px 40px;
}

.invoice-receipt {
    width: min(320px, 100%);
    margin: 0 auto;
    padding: 10px 8px;
    background: #ffffff;
    border: 1px dashed #8f98a3;
    box-shadow: 0 18px 40px rgba(8, 21, 39, 0.10);
    color: #121212;
    font-family: "Times New Roman", Times, serif;
}

.invoice-receipt__head,
.invoice-receipt__foot {
    text-align: center;
}

.invoice-receipt__head strong,
.invoice-receipt__head em,
.invoice-receipt__head span,
.invoice-receipt__foot strong,
.invoice-receipt__foot p {
    display: block;
}

.invoice-receipt__head strong {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.05;
}

.invoice-receipt__head span {
    margin-top: 3px;
    font-size: 0.82rem;
}

.invoice-receipt__head em {
    margin-top: 4px;
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 700;
}

.invoice-receipt__meta,
.invoice-receipt__totals {
    margin-top: 14px;
}

.invoice-receipt__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.invoice-receipt__meta-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) 44px 82px;
    gap: 6px 10px;
    align-items: start;
    font-size: 0.9rem;
    font-weight: 700;
}

.invoice-receipt__totals div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
}

.invoice-receipt__meta-label,
.invoice-receipt__totals span {
    white-space: nowrap;
}

.invoice-receipt__meta-value,
.invoice-receipt__totals strong {
    text-align: right;
    min-width: 0;
}

.invoice-receipt__meta-value--break {
    word-break: break-word;
}

.invoice-receipt__table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.invoice-receipt__table th,
.invoice-receipt__table td {
    padding: 6px 4px;
    font-size: 0.84rem;
    vertical-align: top;
}

.invoice-receipt__table thead th {
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
}

.invoice-receipt__table th:nth-child(1),
.invoice-receipt__table td:nth-child(1) {
    width: 14%;
}

.invoice-receipt__table th:nth-child(2),
.invoice-receipt__table td:nth-child(2) {
    width: 40%;
    word-break: break-word;
}

.invoice-receipt__table th:nth-child(3),
.invoice-receipt__table td:nth-child(3),
.invoice-receipt__table th:nth-child(4),
.invoice-receipt__table td:nth-child(4) {
    width: 22%;
    text-align: right;
}

.invoice-receipt__table td small {
    display: block;
    margin-top: 2px;
    color: #5c6670;
    font-size: 0.72rem;
    font-weight: 400;
}

.invoice-receipt__totals {
    padding: 12px 6px 0;
    border: 1px dashed #8f98a3;
}

.invoice-receipt__totals div + div {
    margin-top: 6px;
}

.invoice-receipt__total-line {
    font-size: 1rem;
}

.invoice-receipt__foot {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed #8f98a3;
}

.invoice-receipt__foot p {
    margin: 0;
    font-size: 0.82rem;
}

.invoice-receipt__foot strong {
    margin-top: 4px;
    font-size: 0.95rem;
}

@media (max-width: 360px) {
    .invoice-receipt__meta-row {
        grid-template-columns: 70px minmax(0, 1fr) 40px 74px;
        gap: 5px 8px;
        font-size: 0.84rem;
    }

    .invoice-receipt__totals div {
        gap: 6px;
        font-size: 0.84rem;
    }

    .invoice-receipt__table th,
    .invoice-receipt__table td {
        padding: 5px 3px;
        font-size: 0.78rem;
    }
}

.activity-table tfoot th,
.activity-table tfoot td {
    padding: 14px 16px;
    text-align: left;
    border-top: 1px solid var(--line);
    background: #f8fbff;
    color: #243248;
}

.print-report-header {
    display: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 2px solid #d7dfe8;
}

.print-report-header__identity {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.print-report-header__logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex: 0 0 auto;
}

.print-report-header h2 {
    margin: 6px 0 10px;
    font-size: 1.9rem;
    color: #243248;
}

.print-report-header__brand {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8d5b11;
}

.print-report-header__meta {
    margin: 0;
    color: #516073;
    line-height: 1.7;
    font-weight: 600;
}

.print-report-header__summary {
    display: grid;
    gap: 10px;
    min-width: 240px;
}

.print-general-only {
    display: none;
}

.global-print-watermark,
.print-watermark {
    display: none;
    position: fixed;
    inset: 0;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 22px;
    opacity: 0.08;
    z-index: 0;
    transform: rotate(-32deg);
}

.global-print-watermark img,
.print-watermark img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: grayscale(100%);
}

.global-print-watermark span,
.print-watermark span {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #7c5a27;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.print-report-header__summary div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5ebf2;
}

.print-report-header__summary span {
    color: #23344d;
    font-weight: 700;
}

.print-report-header__summary strong {
    color: #6f7d8d;
    font-weight: 700;
}

.print-signatures {
    display: none;
    justify-content: space-between;
    gap: 40px;
    margin-top: 24px;
    padding-top: 32px;
}

.print-signatures__item {
    min-width: 220px;
}

.print-signatures__item span {
    display: block;
    margin-bottom: 28px;
    color: #6a7789;
    font-weight: 700;
}

.print-signatures__item strong {
    display: block;
    padding-top: 8px;
    border-top: 1px solid #7a8596;
    color: #243248;
}

.footer {
    margin: auto 28px 28px;
    padding: 16px 22px;
    border-radius: 20px;
    text-align: center;
}

.fade-in {
    animation: fadeIn 0.72s ease both;
}

.slide-up {
    animation: slideUp 0.72s ease both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes marketMarqueeRight {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width: 1180px) {
    .stats-grid,
    .dashboard-grid,
    .dashboard-grid--secondary,
    .login-hero,
    .billing-stats-grid {
        grid-template-columns: 1fr;
    }

    .supplier-report-grid {
        grid-template-columns: 1fr;
    }

    .supplier-report-filter {
        grid-template-columns: 1fr;
    }

    .supplier-report-filter__actions {
        justify-content: stretch;
    }

    .supplier-report-filter__actions .primary-button,
    .supplier-report-filter__actions .ghost-button {
        flex: 1 1 180px;
    }

    .report-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .report-filter-actions {
        grid-column: 1 / -1;
    }

    .report-filter-card__header {
        flex-direction: column;
        align-items: stretch;
    }

    .report-filter-card__exports {
        width: 100%;
        margin-left: 0;
        justify-content: flex-start;
    }

    .billing-analytics-metrics {
        grid-template-columns: 1fr;
    }

    .billing-pie-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1400px) {
    .portal-dashboard-stack .portal-hero {
        grid-template-columns: 1fr;
    }

    .portal-dashboard-stack .dashboard-grid,
    .portal-dashboard-stack .billing-overview-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 920px) {
    body.sidebar-open {
        overflow: hidden;
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(284px, calc(100vw - 56px));
        height: 100dvh;
        transform: translateX(-108%);
        transition: transform 0.28s ease, box-shadow 0.28s ease;
        z-index: 40;
        box-shadow: none;
    }

    .sidebar.is-open {
        transform: translateX(0);
        box-shadow: 18px 0 32px rgba(15, 23, 42, 0.28);
    }

    .menu-toggle {
        display: inline-block;
        flex: 0 0 46px;
    }

    .topbar,
    .hero-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .login-page,
    .content-area {
        padding: 16px;
    }

    .billing-rich-strip,
    .billing-line-chart__labels,
    .billing-analytics-metrics {
        grid-template-columns: 1fr;
    }

    .billing-transaction-chart__meta,
    .billing-transaction-chart__bar {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .billing-transaction-chart__bar {
        gap: 6px;
    }

    .portal-dashboard-table,
    .portal-dashboard-table thead,
    .portal-dashboard-table tbody,
    .portal-dashboard-table tr,
    .portal-dashboard-table td {
        display: block;
        width: 100%;
    }

    .portal-dashboard-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .portal-dashboard-table thead {
        display: none;
    }

    .portal-dashboard-table tbody {
        display: grid;
        gap: 12px;
    }

    .portal-dashboard-table tr {
        padding: 14px;
        border: 1px solid rgba(18, 34, 54, 0.08);
        border-radius: 18px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    }

    .portal-dashboard-table td {
        padding: 0;
        border: 0;
    }

    .portal-dashboard-table td + td {
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px dashed rgba(99, 117, 140, 0.2);
    }

    .portal-dashboard-table td::before {
        display: block;
        margin-bottom: 3px;
        color: #64758c;
        font-size: 0.76rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .portal-dashboard-table tr td:nth-child(1)::before {
        content: "Date";
    }

    .portal-dashboard-table tr td:nth-child(2)::before {
        content: "Shop / Mode";
    }

    .portal-dashboard-table tr td:nth-child(3)::before {
        content: "Weight / Reference";
    }

    .portal-dashboard-table tr td:nth-child(4)::before {
        content: "Final Amount / Amount";
    }

    .portal-dashboard-table tr td:nth-child(5)::before {
        content: "Receipt";
    }

    .login-panel,
    .login-form,
    .hero-banner,
    .stat-card,
    .panel-card,
    .footer {
        padding: 20px;
    }

    .login-form {
        padding: 22px 18px 20px;
        border-radius: 24px;
    }

    .topbar {
        padding: 14px 16px;
    }

    .topbar-left {
        width: 100%;
        align-items: flex-start;
        gap: 12px;
    }

    .topbar-left > div,
    .topbar-right,
    .header-actions {
        width: 100%;
        min-width: 0;
    }

    .topbar h1 {
        font-size: 1.55rem;
    }

    .page-heading h2 {
        font-size: 1.9rem;
    }

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

    .form-grid,
    .page-heading--split {
        grid-template-columns: 1fr;
        display: grid;
    }

    .website-settings-filter {
        grid-template-columns: 1fr;
    }

    .website-settings-filter__actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .cms-live-editor {
        grid-template-columns: 1fr;
    }

    .cms-identity-preview {
        grid-template-columns: 1fr;
    }

    .settings-image-preview--favicon {
        width: 100%;
        max-width: 180px;
    }

    .listing-filter--2,
    .listing-filter--3,
    .listing-filter--4 {
        grid-template-columns: 1fr 1fr;
    }

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

    .billing-rates-filter .form-actions {
        grid-column: 1 / -1;
    }

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

    .product-listing-filter .field:first-child,
    .product-listing-filter .form-actions {
        grid-column: auto;
    }

    .listing-filter .form-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .report-filter-grid {
        grid-template-columns: 1fr;
    }

    .report-filter-actions {
        grid-column: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .report-filter-actions .primary-button {
        width: 100%;
    }

    .report-filter-card__exports {
        justify-content: stretch;
    }

    .report-filter-card__exports .secondary-button {
        width: 100%;
    }

    .delivery-content {
        padding: 14px;
    }

    .delivery-entry-card,
    .delivery-side-card,
    .delivery-filter-card,
    .table-card {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .delivery-sidebar,
    .store-sidebar {
        width: min(280px, calc(100vw - 20px));
        padding: 16px 12px;
    }

    .delivery-workspace .panel-card__header {
        gap: 12px;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }

    .delivery-chart {
        grid-template-columns: 1fr;
    }

    .thermal-receipt-shell {
        padding: 16px 10px 28px;
    }

    .thermal-receipt {
        padding: 16px 14px;
    }

    .thermal-receipt__meta div {
        align-items: flex-start;
    }

    .detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .report-summary-list {
        grid-template-columns: 1fr;
    }

    .stock-summary-grid {
        grid-template-columns: 1fr;
    }

    .delivery-workspace--payments .billing-stats-grid,
    .delivery-workspace .billing-overview-grid {
        grid-template-columns: 1fr;
    }

    .delivery-entry-card .form-actions,
    .delivery-listing-filter .form-actions {
        align-items: stretch;
    }

    .delivery-entry-card .form-actions .primary-button,
    .delivery-entry-card .form-actions .secondary-button,
    .delivery-entry-card .form-actions .ghost-button,
    .delivery-listing-filter .form-actions .primary-button,
    .delivery-listing-filter .form-actions .secondary-button,
    .delivery-listing-filter .form-actions .ghost-button,
    .thermal-receipt-actions .primary-button,
    .thermal-receipt-actions .secondary-button,
    .thermal-receipt-actions .ghost-button {
        width: 100%;
    }

    .report-summary-list .summary-list__item {
        min-height: auto;
        padding: 16px 18px;
    }

    .report-summary-list .summary-list__item strong {
        font-size: 1.65rem;
    }

    .header-actions,
    .admin-chip,
    .header-pill {
        width: 100%;
    }

    .header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .header-pill,
    .header-actions .logout-button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .transaction-filter-toolbar__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .transaction-filter-toolbar__actions .ghost-button {
        width: 100%;
    }

    .invoice-preview__top {
        flex-direction: column;
    }

    .invoice-meta {
        justify-items: start;
    }

    .delivery-app-shell,
    .store-app-shell {
        grid-template-columns: 1fr;
    }

    .delivery-sidebar,
    .store-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 40;
        width: min(300px, calc(100vw - 40px));
        height: 100vh;
        transform: translateX(-110%);
        transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .delivery-sidebar.is-open,
    .store-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 18px 0 32px rgba(15, 23, 42, 0.28);
    }

    .panel-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.panel-sidebar-open {
        overflow: hidden;
    }

    .delivery-content,
    .store-content {
        padding: 16px;
        overflow-x: hidden;
    }

    .store-order-items-table,
    .store-payments-table,
    .transaction-table {
        min-width: 680px;
    }

    .store-payments-page .form-card,
    .store-payments-page .table-card,
    .store-order-page {
        padding: 18px 16px;
    }

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

    .billing-line-chart__svg {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .header-actions,
    .transaction-filter-toolbar__actions {
        grid-template-columns: 1fr;
    }
}

@page {
    size: auto;
    margin: 10mm;
}

@media print {
    @page {
        size: 72mm auto;
        margin: 0;
    }

    html,
    body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .sidebar,
    .topbar,
    .footer,
    .global-print-watermark,
    .page-heading,
    .print-hide,
    .thermal-receipt-actions,
    .menu-toggle,
    .ghost-button,
    .logout-button,
    .primary-button,
    .secondary-button {
        display: none !important;
    }

    .app-shell,
    .app-content,
    .content-area {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #ffffff !important;
    }

    .report-analytics-page {
        position: relative;
        z-index: 1;
        padding: 8mm 10mm 10mm !important;
    }

    .panel-card,
    .table-card,
    .stat-card {
        box-shadow: none !important;
        border: 1px solid #d7dfe8 !important;
        background: #ffffff !important;
        color: #111111 !important;
        break-inside: avoid;
    }

    .thermal-receipt-page {
        background: #ffffff !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: 72mm !important;
        margin: 0 auto !important;
        overflow: visible !important;
    }

    .thermal-receipt-shell {
        width: auto !important;
        min-width: 0 !important;
        max-width: 72mm !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .thermal-receipt {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 72mm !important;
        box-sizing: border-box;
        margin: 0 auto !important;
        padding: 2.5mm 2mm !important;
        border: 0;
        box-shadow: none;
        overflow: visible !important;
        break-inside: auto;
        page-break-inside: auto;
    }

    .thermal-receipt__head,
    .thermal-receipt__meta,
    .thermal-receipt__table,
    .thermal-receipt__foot {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .thermal-receipt__meta div,
    .thermal-receipt__table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .thermal-receipt *,
    .invoice-receipt * {
        box-sizing: border-box !important;
    }

    .invoice-receipt-page {
        background: #ffffff !important;
    }

    .invoice-receipt-shell {
        width: auto;
        margin: 0;
        padding: 0;
    }

    .invoice-receipt {
        width: 80mm;
        margin: 0;
        padding: 4mm 3mm;
        border: 0;
        box-shadow: none;
    }

    body.print-delivery-report .print-delivery-only,
    body.print-shop-report .print-shop-only,
    body.print-delivery-report .print-report-header.print-delivery-only,
    body.print-shop-report .print-report-header.print-shop-only,
    body.print-delivery-report .print-signatures.print-delivery-only,
    body.print-shop-report .print-signatures.print-shop-only {
        display: block !important;
    }

    body.print-delivery-report .print-shop-only,
    body.print-shop-report .print-delivery-only {
        display: none !important;
    }

    body.print-general-report .report-section {
        display: block !important;
    }

    body.print-general-report .report-filter-card,
    body.print-general-report .report-formula-card,
    body.print-general-report .print-signatures,
    body.print-general-report .print-delivery-only,
    body.print-general-report .print-shop-only {
        display: none !important;
    }

    body.print-general-report .print-report-header.print-general-only {
        display: flex !important;
    }

    body.print-general-report .print-watermark.print-general-only {
        display: flex !important;
    }

    body.admin-body .global-print-watermark {
        display: flex !important;
    }

    body.print-general-report .global-print-watermark {
        display: none !important;
    }

    body.print-general-report .report-summary-table,
    body.print-general-report .activity-table {
        font-size: 12px !important;
    }

    body.print-general-report .table-card.report-section {
        margin-bottom: 14px !important;
        break-inside: avoid;
    }

    body.print-general-report .table-wrap {
        overflow: visible !important;
    }

    body.print-general-report .activity-table,
    body.print-general-report .report-summary-table {
        width: 100% !important;
        table-layout: fixed !important;
    }

    .print-report-header {
        display: flex !important;
        position: relative;
        z-index: 1;
    }

    .print-signatures {
        display: flex !important;
    }

    .print-report-header h2 {
        font-size: 24px;
    }
}

.frontend-body {
    background:
        radial-gradient(circle at top left, rgba(143, 0, 255, 0.10), transparent 20%),
        radial-gradient(circle at top right, rgba(18, 214, 238, 0.10), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #edf4fb 44%, #f5f8fd 100%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 18px 24px 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(57, 92, 255, 0.07);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 44px rgba(7, 21, 43, 0.08);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-brand__mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #8f00ff, #12d6ee);
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 16px 28px rgba(57, 92, 255, 0.20);
}

.site-brand__text {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.site-brand__text strong {
    color: #22324a;
    font-size: 1.18rem;
    line-height: 1;
}

.site-brand__text small {
    color: var(--muted);
    font-size: 0.92rem;
}

.site-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: rgba(57, 92, 255, 0.08);
}

.site-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #345bd3;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-nav > a,
.site-nav__toggle {
    color: #243248;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: 14px;
}

.site-nav > a:hover,
.site-nav__toggle:hover,
.site-nav > a.active {
    color: #3159d1;
    background: rgba(57, 92, 255, 0.07);
}

.site-nav__group {
    position: relative;
}

.site-nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.site-nav__toggle svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.site-nav__submenu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 210px;
    display: none;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 12px;
    border: 1px solid rgba(18, 34, 54, 0.06);
    box-shadow: 0 24px 50px rgba(7, 21, 43, 0.12);
}

.site-nav__submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #34435a;
}

.site-nav__submenu a:hover {
    background: rgba(57, 92, 255, 0.08);
}

.site-nav__group:hover .site-nav__submenu,
.site-nav__group.is-open .site-nav__submenu {
    display: block;
}

.site-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px !important;
    border-radius: 16px;
    background: linear-gradient(135deg, #ff9b3d, #ffb257);
    color: #4b2800 !important;
    box-shadow: 0 16px 26px rgba(255, 155, 61, 0.18);
}

.site-main {
    padding: 22px 24px 44px;
}

.site-hero {
    margin-top: 8px;
}

.site-hero--inner {
    margin-top: 10px;
}

.hero-slider {
    position: relative;
    border-radius: 36px;
    overflow: hidden;
    min-height: 560px;
    box-shadow: 0 30px 70px rgba(7, 21, 43, 0.12);
}

.hero-slider--inner {
    min-height: 380px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.10), transparent 20%),
        radial-gradient(circle at 84% 74%, rgba(255, 255, 255, 0.10), transparent 18%),
        linear-gradient(135deg, #17122b 0%, #18314e 46%, #127a98 100%);
}

.hero-slide--inner {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-slide__content {
    padding: 78px 68px;
    color: #f7fbff;
}

.site-kicker {
    margin: 0 0 18px;
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: #d8f6ff;
    background: rgba(255, 255, 255, 0.10);
}

.hero-slide__content h1 {
    margin: 0;
    font-size: clamp(3rem, 4.6vw, 5rem);
    line-height: 1.02;
    max-width: 11ch;
}

.hero-slide__content p {
    margin: 18px 0 0;
    max-width: 52ch;
    font-size: 1.18rem;
    line-height: 1.7;
    color: rgba(247, 251, 255, 0.84);
}

.hero-slide__actions,
.cta-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
}

.site-button--primary {
    background: linear-gradient(135deg, #ff9b3d, #ffb257);
    color: #4b2800;
    box-shadow: 0 16px 26px rgba(255, 155, 61, 0.24);
}

.site-button--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.site-button--ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.site-button--secondary {
    background: rgba(57, 92, 255, 0.08);
    color: #3159d1;
    border: 1px solid rgba(57, 92, 255, 0.12);
}

.hero-slide__visual {
    position: relative;
    padding: 72px 56px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 18px;
}

.hero-stat {
    position: relative;
    z-index: 1;
    width: 190px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    color: #ffffff;
}

.hero-stat strong {
    display: block;
    font-size: 2.6rem;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
}

.hero-orb--one {
    width: 240px;
    height: 240px;
    top: 70px;
    right: 90px;
    background: radial-gradient(circle, rgba(143, 0, 255, 0.42), transparent 68%);
}

.hero-orb--two {
    width: 300px;
    height: 300px;
    bottom: 10px;
    right: 10px;
    background: radial-gradient(circle, rgba(18, 214, 238, 0.34), transparent 70%);
}

.hero-dots {
    position: absolute;
    left: 64px;
    bottom: 36px;
    display: flex;
    gap: 12px;
}

.hero-dots__item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dots__item.is-active {
    background: #ffb257;
}

.site-section {
    margin-top: 34px;
}

.site-section--feature {
    margin-top: 40px;
}

.split-feature,
.cta-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 30px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 60px rgba(7, 21, 43, 0.08);
}

.split-feature__media img {
    width: 100%;
    border-radius: 28px;
    display: block;
}

.split-feature__content h2,
.section-head h2,
.cta-banner h2 {
    margin: 0;
    font-size: 2.5rem;
    color: #243248;
}

.split-feature__content p,
.cta-banner p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.72;
}

.split-feature__list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.split-feature__list div {
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid rgba(18, 34, 54, 0.06);
}

.split-feature__list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.1rem;
}

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

.category-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.category-slider--static {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-tile {
    padding: 26px 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,249,255,0.96));
    border: 1px solid rgba(18, 34, 54, 0.06);
    box-shadow: 0 22px 50px rgba(7, 21, 43, 0.06);
}

.category-tile__count {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #8f00ff, #12d6ee);
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 700;
}

.category-tile h3,
.store-card h3 {
    margin: 18px 0 10px;
    font-size: 1.5rem;
    color: #243248;
}

.category-tile p,
.store-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.store-card {
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 24px 54px rgba(7, 21, 43, 0.08);
    border: 1px solid rgba(18, 34, 54, 0.05);
}

.store-card__media {
    min-height: 150px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.store-card__media--chicken {
    background: linear-gradient(135deg, #8f00ff, #3d5bff);
}

.store-card__media--fish {
    background: linear-gradient(135deg, #1a84ff, #12d6ee);
}

.store-card__media--tissue {
    background: linear-gradient(135deg, #ff9b3d, #ffd37b);
    color: #4b2800;
}

.store-card__content {
    padding: 22px;
}

.store-card__meta,
.store-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pill-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(57, 92, 255, 0.08);
    color: #345bd3;
    font-size: 0.88rem;
    font-weight: 700;
}

.price-tag {
    color: #ff8f1e;
    font-weight: 700;
}

.store-card__footer {
    margin-top: 16px;
    color: #5f6d81;
    font-size: 0.96rem;
}

.cta-banner {
    grid-template-columns: 1.2fr 0.8fr;
    background: linear-gradient(135deg, #1b1733 0%, #12405c 54%, #11afc7 100%);
    color: #ffffff;
}

.cta-banner h2 {
    color: #ffffff;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.82);
}

.cta-banner__actions {
    justify-content: flex-end;
    align-items: center;
}

.site-footer {
    margin: 40px 24px 24px;
    padding: 34px 30px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top left, rgba(117, 88, 255, 0.28), transparent 24%),
        radial-gradient(circle at 85% 18%, rgba(31, 203, 228, 0.22), transparent 20%),
        linear-gradient(135deg, #10182c 0%, #173455 46%, #116983 100%);
    color: #e8f3ff;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    gap: 28px;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.site-footer h4 {
    margin: 0 0 14px;
    font-size: 1.18rem;
}

.site-footer p,
.site-footer a,
.site-footer span {
    display: block;
    margin: 0 0 10px;
    color: rgba(232, 243, 255, 0.8);
}

@media (max-width: 1180px) {
    .hero-slide,
    .split-feature,
    .cta-banner,
    .product-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .site-menu-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 24px;
        right: 24px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 50px rgba(7, 21, 43, 0.14);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav__submenu {
        position: static;
        min-width: 100%;
        margin-top: 10px;
        box-shadow: none;
        background: #f6f9ff;
    }
}

@media (max-width: 640px) {
    .site-header,
    .site-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header__inner,
    .split-feature,
    .cta-banner,
    .site-footer {
        padding: 20px;
    }

    .hero-slider {
        min-height: 640px;
    }

    .hero-slide__content,
    .hero-slide__visual {
        padding: 28px 20px;
    }

    .hero-slide__content h1,
    .split-feature__content h2,
    .section-head h2,
    .cta-banner h2 {
        font-size: 2rem;
    }

    .site-brand__mark {
        width: 46px;
        height: 46px;
        font-size: 1.05rem;
    }

    .site-brand__text strong {
        font-size: 1rem;
    }

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

    .category-slider {
        grid-auto-columns: minmax(220px, 1fr);
    }
}

.storefront-body {
    background:
        linear-gradient(180deg, #eff4ff 0%, #f8fbff 34%, #eef5ff 100%);
    color: #172235;
    font-family: var(--font-family-base);
}

.shop-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: #2848bf;
    box-shadow: 0 18px 40px rgba(16, 34, 92, 0.22);
}

.shop-header--compact {
    position: static;
}

.shop-header__top,
.shop-header__nav,
.shop-main,
.storefront-footer {
    width: min(2000px, calc(100% - 48px));
    margin: 0 auto;
}

.shop-header__top {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 18px 0 14px;
}

.shop-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
}

.shop-logo__mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
    font-size: 1.2rem;
}

.shop-logo__text strong,
.shop-logo__text small {
    display: block;
}

.shop-logo__text strong {
    font-size: 1.25rem;
}

.shop-logo__text small {
    color: rgba(255, 255, 255, 0.76);
}

.shop-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    min-height: 60px;
}

.shop-search input {
    flex: 1;
    border: 0;
    padding: 0 18px;
    font-size: 1.1rem;
    outline: none;
}

.shop-search button {
    min-width: 120px;
    height: 60px;
    border: 0;
    background: #ffffff;
    color: #2f50c5;
    font-weight: 700;
    cursor: pointer;
    border-left: 1px solid rgba(23, 34, 53, 0.08);
}

.shop-utility,
.shop-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-utility a,
.shop-nav a {
    color: #ffffff;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 10px;
}

.shop-nav a.is-active,
.shop-utility a:hover,
.shop-nav a:hover,
.shop-cart-link {
    background: rgba(255, 255, 255, 0.13);
}

.shop-cart-link span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    margin-left: 8px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ffc933;
    color: #1a1a1a;
    font-size: 0.82rem;
}

.shop-header__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 0 16px;
}

.shop-header__offer {
    color: #ffd055;
    font-weight: 700;
}

.shop-main {
    padding: 18px 0 36px;
}

.storefront-flash {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.storefront-flash--success {
    background: #dff7ea;
    color: #166947;
}

.storefront-flash--error {
    background: #fee5e1;
    color: #a43f2d;
}

.storefront-hero {
    margin-top: 12px;
}

.storefront-slider {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 0 0 26px 26px;
    background: #d7e9ff;
}

.storefront-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 44%);
    align-items: center;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    padding: 48px 60px;
}

.storefront-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.accent--sunrise {
    background: linear-gradient(90deg, #dcebff 0%, #cfe5ff 50%, #d8e9ff 100%);
}

.accent--ocean {
    background: linear-gradient(90deg, #d7effc 0%, #d3f4ff 52%, #dbf0ff 100%);
}

.accent--linen {
    background: linear-gradient(90deg, #f7f4ea 0%, #f9f6ef 52%, #ece6d6 100%);
}

.accent--market {
    background: linear-gradient(90deg, #ecf0f8 0%, #e3f0ff 52%, #eef2f9 100%);
}

.storefront-slide__copy h1 {
    margin: 0;
    max-width: 10ch;
    color: #0e2a67;
    font-size: clamp(2.8rem, 4vw, 5rem);
    line-height: 0.98;
}

.storefront-slide__copy p:last-child,
.catalogue-hero p,
.cart-summary p,
.catalogue-empty p {
    color: #324968;
    line-height: 1.65;
}

.storefront-pill,
.storefront-section__kicker {
    margin: 0 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(39, 73, 191, 0.12);
    color: #2345b8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.storefront-slide__actions,
.product-cart-form,
.cart-item__actions,
.storefront-footer--compact {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.storefront-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
}

.storefront-button--primary {
    background: #2e51c9;
    color: #ffffff;
}

.storefront-button--ghost {
    background: rgba(255, 255, 255, 0.86);
    color: #2443aa;
}

.storefront-button--soft {
    background: #eef3ff;
    color: #2443aa;
}

.storefront-button--outline {
    background: #ffffff;
    border-color: rgba(36, 67, 170, 0.18);
    color: #2443aa;
}

.storefront-button--full {
    width: 100%;
}

.storefront-slide__visual {
    position: relative;
    min-height: 100%;
    display: grid;
    place-items: center;
}

.storefront-slide__visual img {
    width: min(100%, 700px);
    height: 360px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 26px 60px rgba(26, 45, 89, 0.18);
}

.storefront-badge {
    position: absolute;
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 32px rgba(16, 34, 92, 0.12);
}

.storefront-badge strong,
.catalogue-hero__summary strong,
.cart-summary strong,
.cart-item__total {
    display: block;
    color: #16317c;
    font-size: 1.3rem;
}

.storefront-badge span,
.catalogue-hero__summary span,
.cart-summary span,
.cart-item__body span,
.product-showcase__stock span {
    color: #60728f;
}

.storefront-badge--top {
    top: 22px;
    left: 12px;
}

.storefront-badge--bottom {
    right: 20px;
    bottom: 24px;
}

.storefront-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.storefront-slider__dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 34, 92, 0.26);
    cursor: pointer;
}

.storefront-slider__dots button.is-active {
    background: #2d4fc8;
}

.quick-links-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #ffffff;
    border: 1px solid rgba(15, 35, 71, 0.08);
    border-top: 0;
    margin-bottom: 30px;
}

.quick-links-band a {
    padding: 28px 24px;
    border-right: 1px solid rgba(15, 35, 71, 0.08);
}

.quick-links-band a:last-child {
    border-right: 0;
}

.quick-links-band strong,
.category-showcase__overlay strong,
.product-showcase__meta strong {
    display: block;
}

.quick-links-band span,
.category-showcase__overlay span {
    color: #3a64c8;
}

.storefront-section {
    margin-top: 26px;
}

.storefront-section--tight {
    margin-top: 18px;
}

.storefront-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.storefront-section__head h2,
.catalogue-hero h1,
.cart-summary h2,
.catalogue-empty h2 {
    margin: 0;
    color: #17294b;
    font-size: clamp(2rem, 2.8vw, 3rem);
}

.category-showcase,
.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-showcase__card,
.promise-grid article,
.catalogue-hero,
.cart-summary,
.catalogue-empty {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(15, 35, 71, 0.08);
}

.category-showcase__card {
    position: relative;
    min-height: 320px;
}

.category-showcase__card img,
.product-showcase__media img,
.promise-grid img,
.cart-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-showcase__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 22px;
    background: linear-gradient(180deg, rgba(7, 16, 36, 0.02), rgba(7, 16, 36, 0.78));
    color: #ffffff;
}

.category-showcase__overlay p,
.category-showcase__overlay h3 {
    margin: 0 0 8px;
}

.category-showcase__overlay a {
    display: inline-flex;
    margin-top: 14px;
    color: #ffffff;
    font-weight: 700;
}

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

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

.product-showcase__card,
.cart-item {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 35, 71, 0.08);
}

.product-showcase__media {
    position: relative;
    height: 220px;
}

.product-showcase__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #17317a;
    font-size: 0.85rem;
    font-weight: 700;
}

.product-showcase__body {
    padding: 20px;
}

.product-showcase__meta,
.product-showcase__stock,
.catalogue-hero,
.cart-summary div,
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-showcase__body h3,
.promise-grid h3,
.cart-item__body h3 {
    margin: 12px 0 8px;
    color: #17294b;
}

.product-showcase__body p,
.promise-grid p {
    margin: 0;
    color: #5f708b;
    line-height: 1.65;
}

.product-showcase__stock {
    margin: 16px 0;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 35, 71, 0.08);
    font-size: 0.92rem;
}

.product-cart-form input,
.cart-update-form input {
    width: 72px;
    min-height: 46px;
    border: 1px solid rgba(23, 49, 122, 0.12);
    border-radius: 999px;
    text-align: center;
}

.promise-grid article {
    padding-bottom: 18px;
}

.promise-grid img {
    height: 220px;
}

.promise-grid h3,
.promise-grid p {
    padding: 0 20px;
}

.storefront-footer {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 24px;
    padding: 28px 30px;
    background: #132656;
    color: #d9e4ff;
    border-radius: 28px;
}

.storefront-footer strong,
.storefront-footer a,
.storefront-footer span,
.storefront-footer p {
    display: block;
}

.storefront-footer a,
.storefront-footer span,
.storefront-footer p {
    margin-top: 10px;
    color: rgba(217, 228, 255, 0.84);
}

.catalogue-hero {
    padding: 28px;
    margin-bottom: 18px;
}

.catalogue-hero__summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    min-width: 340px;
}

.catalogue-hero__summary div,
.cart-summary div {
    padding: 16px;
    border-radius: 18px;
    background: #f5f8ff;
}

.category-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter-bar a {
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #2144b4;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(15, 35, 71, 0.06);
}

.category-filter-bar a.is-active {
    background: #2144b4;
    color: #ffffff;
}

.catalogue-empty {
    padding: 40px 28px;
    text-align: center;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    padding-right: 20px;
}

.cart-item img {
    width: 180px;
    height: 180px;
}

.cart-item__body {
    flex: 1;
    padding: 20px 0;
}

.cart-item__total {
    padding-right: 8px;
}

.cart-summary {
    padding: 24px;
    align-self: start;
}

@media (max-width: 1280px) {
    .category-showcase,
    .promise-grid,
    .product-showcase {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 960px) {
    .shop-header__top,
    .storefront-slide,
    .catalogue-hero,
    .cart-layout,
    .storefront-footer,
    .quick-links-band {
        grid-template-columns: 1fr;
    }

    .shop-header__top {
        gap: 16px;
    }

    .shop-header__nav,
    .product-showcase__meta,
    .product-showcase__stock,
    .cart-item,
    .catalogue-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .storefront-slide {
        padding: 28px;
    }

    .storefront-slide__copy h1 {
        max-width: none;
    }

    .storefront-slide__visual img {
        height: 280px;
    }

    .quick-links-band a {
        border-right: 0;
        border-bottom: 1px solid rgba(15, 35, 71, 0.08);
    }

    .quick-links-band a:last-child {
        border-bottom: 0;
    }

    .cart-item {
        padding: 0;
    }

    .cart-item img {
        width: 100%;
        height: 220px;
    }
}

@media (max-width: 640px) {
    .shop-header__top,
    .shop-header__nav,
    .shop-main,
    .storefront-footer {
        width: min(100%, calc(100% - 24px));
    }

    .category-showcase,
    .promise-grid,
    .product-showcase,
    .product-showcase--catalogue,
    .catalogue-hero__summary {
        grid-template-columns: 1fr;
    }

    .shop-utility,
    .shop-nav {
        flex-wrap: wrap;
    }

    .storefront-slider {
        min-height: 700px;
    }

    .storefront-badge {
        position: static;
        margin-top: 12px;
    }
}

.market-body {
    background: linear-gradient(180deg, #f8f5ed 0%, #f6f2e8 100%);
    color: #1b1b1b;
    font-family: var(--font-family-base);
}

.market-body h1,
.market-body h2,
.market-body h3,
.market-body strong,
.market-body .market-button,
.market-body .market-nav a,
.market-body .market-topbar a,
.market-body .market-toolbar__actions a {
    font-family: var(--font-family-base);
}

.market-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: linear-gradient(180deg, #fbf6ea 0%, #f4ecdb 100%);
    box-shadow: 0 14px 36px rgba(142, 108, 33, 0.12);
    border-bottom: 1px solid rgba(211, 165, 60, 0.16);
    backdrop-filter: blur(10px);
}

.market-header--compact {
    position: static;
}

.market-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 56px;
    background: linear-gradient(135deg, #2c1766 0%, #44258f 100%);
    color: #ffffff;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.market-topbar__marquee {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.market-topbar__marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 56px;
    min-width: max-content;
}

.market-topbar__marquee-track span {
    display: inline-block;
    white-space: nowrap;
}

.market-topbar__links,
.market-toolbar__actions,
.market-nav,
.market-feature-card__actions,
.market-product-card__footer,
.market-product-summary__actions,
.market-quantity-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.market-topbar a,
.market-toolbar__actions a,
.market-nav a {
    color: inherit;
}

.market-topbar__links {
    flex: 0 0 auto;
}

.market-toolbar {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 6px 36px 0;
    background: linear-gradient(180deg, #fffdfa 0%, #f9f1e0 100%);
    border-bottom: 1px solid rgba(211, 165, 60, 0.12);
}

.market-menu-toggle,
.market-mobile-backdrop,
.market-mobile-panel,
.market-toolbar__mobile-group {
    display: none;
}

.market-toolbar__mobile-actions {
    display: none;
}

.market-menu-toggle {
    position: relative;
    width: 52px;
    height: 52px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #4b4b4f 0%, #333338 100%);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.market-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.market-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.market-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.market-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.market-mobile-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, calc(100vw - 28px));
    z-index: 95;
    padding: 84px 16px 20px;
    background: linear-gradient(180deg, #fffdfa 0%, #f7edd8 100%);
    border-left: 1px solid rgba(211, 165, 60, 0.12);
    box-shadow: -18px 0 28px rgba(142, 108, 33, 0.14);
    transform: translateX(108%);
    transition: transform 0.24s ease;
}

.market-mobile-panel__links,
.market-mobile-panel__nav {
    display: grid;
    gap: 10px;
}

.market-mobile-panel__links {
    margin-bottom: 12px;
}

.market-mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #352255;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(211, 165, 60, 0.12);
}

.market-mobile-panel__nav a {
    color: #6b4a0f;
}


.market-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #8a6518;
    min-width: 0;
}

.market-brand__mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #2c1766, #44258f);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 800;
}

.market-brand__logo {
    width: 128px;
    height: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: transparent;
    overflow: hidden;
    box-shadow: none;
}

.market-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(58, 36, 4, 0.32)) contrast(1.08) saturate(1.08);
}

.market-brand__copy strong,
.market-brand__copy small {
    display: block;
}

.market-brand__copy strong {
    color: #7b5a16;
    font-size: 1.4rem;
}

.market-brand__copy small {
    color: #8c7550;
    font-size: 0.88rem;
}

.market-search {
    display: flex;
    align-items: center;
    min-height: 52px;
    border-radius: 999px;
    padding: 6px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(211, 165, 60, 0.22);
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.market-search:focus-within {
    box-shadow:
        inset 0 0 0 1px rgba(211, 165, 60, 0.42),
        0 10px 22px rgba(211, 165, 60, 0.12);
    transform: translateY(-1px);
}

.market-search input,
.market-cta__form input,
.market-quantity-form input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 1rem;
}

.market-search input {
    padding: 0 18px;
}

.market-search button,
.market-cta__form button,
.market-cta__button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, #d3a53c, #efc764);
    color: #1c1a16;
    font-weight: 800;
    padding: 14px 22px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.market-toolbar__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffaf0 0%, #f8edd4 100%);
    color: #6b4d10;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(211, 165, 60, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
}

.market-toolbar__actions a:hover {
    transform: translateY(-1px);
    color: #40216f;
    box-shadow:
        inset 0 0 0 1px rgba(211, 165, 60, 0.20),
        0 10px 18px rgba(211, 165, 60, 0.10);
}

.market-toolbar__actions a svg,
.market-toolbar__mobile-actions a svg {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-toolbar__actions span {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: #d3a53c;
    color: #ffffff;
    font-size: 0.78rem;
}

.market-toolbar__icon-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d3a53c;
    color: #ffffff;
    font-size: 0.78rem;
    line-height: 1;
}

.market-toolbar__actions .market-toolbar__action-text {
    display: inline;
    min-width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    place-items: initial;
}

.market-nav {
    justify-content: center;
    gap: 34px;
    padding: 1px 56px 0;
    background: linear-gradient(180deg, #fbf1d4 0%, #f1cf76 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.48);
    border-bottom: 1px solid rgba(159, 113, 22, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 6px 14px rgba(176, 125, 28, 0.08);
}

.market-nav a {
    position: relative;
    padding: 6px 4px 8px;
    color: #6b4a0f;
    font-weight: 600;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    letter-spacing: 0.02em;
    transition: color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.market-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b2bb2 0%, #b4882e 100%);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.market-nav a.is-active,
.market-nav a:hover {
    color: #6b4a0f;
    opacity: 1;
}

.market-nav a.is-active::after,
.market-nav a:hover::after {
    transform: scaleX(1);
}

.market-main,
.market-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.market-main {
    padding: 34px 0 44px;
}

.market-main > *,
.market-section,
.market-catalog-layout,
.market-catalog-content,
.market-page-hero,
.market-category-hero,
.market-feature-card,
.market-offer-banner,
.market-cta,
.market-footer__inner {
    min-width: 0;
}

.market-flash {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.market-flash--success {
    background: #dbf4e4;
    color: #17623d;
}

.market-flash--error {
    background: #fee3df;
    color: #9d3d31;
}

.market-hero-shell {
    padding: 22px 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.84));
    border: 1px solid rgba(28, 28, 28, 0.08);
    box-shadow: 0 24px 60px rgba(28, 26, 20, 0.08);
}

.market-hero {
    position: relative;
    min-height: 470px;
    border-radius: 28px;
    overflow: hidden;
    background: #2a2825;
}

.market-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.market-hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.market-hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.market-hero__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.market-hero__dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.market-hero__dots button.is-active {
    background: #ffffff;
}

.market-stats,
.market-review-grid,
.market-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.market-stats article,
.market-review-card,
.market-related__card,
.market-empty-state,
.market-page-hero,
.market-product-summary,
.market-detail-tabs,
.market-category-product-card,
.market-category-hero,
.market-feature-card,
.market-category-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
}

.market-stats {
    margin-top: 24px;
}

.market-product-marquee {
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.market-product-marquee__track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: marketMarqueeRight var(--marquee-duration, 36s) linear infinite;
    will-change: transform;
}

.market-product-marquee__group {
    display: flex;
    gap: 18px;
}

.market-product-marquee__card {
    width: 260px;
    flex: 0 0 260px;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.market-product-marquee__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(32, 27, 16, 0.14);
}

.market-product-marquee__image {
    position: relative;
}

.market-product-marquee__image img {
    width: 100%;
    height: 190px;
    display: block;
    object-fit: cover;
}

.market-product-marquee__image span {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1b2135;
    font-size: 0.78rem;
    font-weight: 800;
}

.market-product-marquee__body {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.market-product-marquee__body strong {
    color: #182238;
    font-size: 1.12rem;
}

.market-product-marquee__body small {
    color: #6d7787;
    font-size: 0.86rem;
}

.market-product-marquee__body em {
    color: #8a5b16;
    font-style: normal;
    font-weight: 800;
    font-size: 1.18rem;
}

.market-stats article {
    padding: 24px 18px;
    text-align: center;
}

.market-stats strong {
    display: block;
    margin-bottom: 8px;
    color: #0f2354;
    font-size: 2rem;
}

.market-stats span,
.market-section__head span,
.market-page-hero span,
.market-category-card p,
.market-feature-card p,
.market-review-card span,
.market-review-card p,
.market-footer p,
.market-footer span,
.market-category-hero__copy p,
.market-category-hero__stack span,
.market-category-product-card p,
.market-product-card__body p,
.market-product-summary__shipping,
.market-product-summary small,
.market-detail-tabs__panel p {
    color: #5a6273;
    line-height: 1.65;
}

.market-section {
    margin-top: 40px;
}

.market-section__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.market-section__eyebrow,
.market-badge,
.market-product-summary__brand,
.market-product-card__label,
.market-category-product-card__label {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(211, 165, 60, 0.12);
    color: #8f6614;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.market-section__head h2,
.market-page-hero h1,
.market-category-hero__copy h1,
.market-product-summary h1,
.market-related h2,
.market-offer-banner h2,
.market-cta h2,
.market-empty-state h1,
.market-empty-state h2 {
    margin: 6px 0 10px;
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.02;
    color: #191919;
}

.market-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 0;
    cursor: pointer;
    font-weight: 700;
}

.market-button--light {
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    box-shadow: inset 0 0 0 1px rgba(25, 25, 25, 0.12);
}

.market-button--dark {
    background: #3e2a82;
    color: #ffffff;
}

.market-button--soft {
    background: #ede7f8;
    color: #3e2a82;
}

.market-button--white {
    background: #ffffff;
    color: #1b1b1b;
}

.market-button--teal {
    background: linear-gradient(135deg, #0b8c86, #1ca39d);
    color: #ffffff;
}

.market-button--pink {
    background: linear-gradient(135deg, #ef3b6c, #fb6b77);
    color: #ffffff;
}

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

.market-category-card,
.market-product-card,
.market-category-product-card,
.market-feature-card {
    overflow: hidden;
}

.market-category-card__image,
.market-product-card__image,
.market-category-product-card__image,
.market-feature-card__image {
    display: block;
}

.market-feature-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(180deg, #f7f2e7 0%, #efe5d1 100%);
}

.market-category-card__image img,
.market-product-card__image img,
.market-category-product-card__image img,
.market-feature-card__image img,
.market-offer-banner__card img,
.market-product-gallery__frame img,
.market-product-gallery__thumbs img,
.market-related__card img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.market-category-card__image img {
    height: 220px;
}

.market-category-card__body,
.market-product-card__body,
.market-category-product-card__body {
    padding: 18px;
}

.market-category-card__body h3,
.market-product-card__body h3,
.market-category-product-card__body h3,
.market-feature-card__content h3,
.market-related__card h3 {
    margin: 8px 0 10px;
    color: #182238;
    font-size: 1.55rem;
}

.market-category-card__meta,
.market-category-product-card__footer,
.market-product-card__price,
.market-page-hero,
.market-page-hero__stats,
.market-category-hero,
.market-offer-banner,
.market-offer-banner__card,
.market-cta,
.market-footer,
.market-product-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.market-category-card__meta span,
.market-category-card__meta a,
.market-category-product-card__footer a,
.market-category-product-card__footer strong,
.market-product-card__price span,
.market-product-summary__price span {
    font-weight: 700;
}

.market-category-card__meta a,
.market-category-product-card__footer a {
    color: #1c2440;
}

.market-feature-list,
.market-product-grid,
.market-category-grid {
    display: grid;
    gap: 18px;
}

.market-feature-card {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
}

.market-feature-card--gold {
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(249, 236, 212, 0.96));
}

.market-feature-card--lavender {
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(235, 232, 255, 0.96));
}

.market-feature-card__image img {
    width: 100%;
    height: 260px;
    min-height: 230px;
    object-fit: cover;
    object-position: center;
    padding: 0;
}

.market-feature-card__content {
    padding: 22px;
}

.market-feature-card__content strong,
.market-product-card__price strong,
.market-product-summary__price strong,
.market-category-product-card__footer strong,
.market-offer-banner__card strong,
.market-related__card strong {
    color: #8a5b16;
    font-size: 1.7rem;
}

.market-offer-banner {
    margin-top: 42px;
    padding: 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 215, 110, 0.34), transparent 18%),
        radial-gradient(circle at 18% 82%, rgba(255, 241, 205, 0.16), transparent 24%),
        linear-gradient(135deg, #163271 0%, #2f53ad 34%, #d4aa49 72%, #f2dfaf 100%);
    color: #ffffff;
    border: 1px solid rgba(212, 170, 73, 0.30);
    box-shadow: 0 24px 44px rgba(26, 52, 117, 0.18);
}

.market-offer-banner h2,
.market-cta h2 {
    color: #ffffff;
}

.market-offer-banner p,
.market-cta span {
    color: rgba(255, 255, 255, 0.82);
}

.market-offer-banner__card {
    min-width: 360px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    color: #1b1b1b;
}

.market-offer-banner__card img {
    width: 96px;
    height: 72px;
    border-radius: 12px;
}

.market-review-grid {
    margin-top: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-review-slider {
    margin-top: 12px;
    overflow: hidden;
}

.market-review-slider .market-review-grid {
    display: flex;
    gap: 18px;
    margin-top: 0;
    transition: transform 0.45s ease;
    will-change: transform;
}

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

.market-review-slider .market-review-card {
    flex: 0 0 calc((100% - 36px) / 3);
    max-width: calc((100% - 36px) / 3);
    margin: 0;
}

.market-review-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.market-review-card__avatar {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #2f4bbd;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.4rem;
}

.market-review-card__stars {
    display: none;
}

.market-review-card__stars-display {
    margin: 18px 0 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
    font-size: 1rem;
}

.market-review-star {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
    color: #d8d8d8;
    font-size: 0;
}

.market-review-star::before {
    content: "\2605";
    position: absolute;
    inset: 0;
    font-size: 1rem;
    line-height: 1;
    color: inherit;
}

.market-review-star.is-full {
    color: #d4a017;
}

.market-review-star.is-half {
    color: #d8d8d8;
}

.market-review-star.is-half::before {
    content: "★";
    position: absolute;
    inset: 0 auto 0 0;
    width: 50%;
    overflow: hidden;
    color: #d4a017;
}

.market-review-star.is-half::before {
    content: "\2605";
}

.market-review-slider__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.market-review-slider__dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(47, 75, 189, 0.22);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.market-review-slider__dots button.is-active {
    background: #2f4bbd;
    transform: scale(1.15);
}

@media (max-width: 1100px) {
    .market-review-slider .market-review-card {
        flex-basis: calc((100% - 18px) / 2);
        max-width: calc((100% - 18px) / 2);
    }
}

@media (max-width: 768px) {
    .market-review-slider .market-review-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.market-cta {
    margin-top: 44px;
    padding: 28px 34px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 215, 110, 0.34), transparent 18%),
        radial-gradient(circle at 18% 82%, rgba(255, 241, 205, 0.16), transparent 24%),
        linear-gradient(135deg, #163271 0%, #2f53ad 34%, #d4aa49 72%, #f2dfaf 100%);
    border: 1px solid rgba(212, 170, 73, 0.30);
    box-shadow: 0 24px 44px rgba(26, 52, 117, 0.18);
}

.market-cta .market-section__eyebrow {
    background: rgba(255, 248, 235, 0.18);
    border: 1px solid rgba(255, 218, 122, 0.24);
    color: #ffe3a1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.market-cta__form {
    min-width: 430px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 250, 238, 0.18);
    border: 1px solid rgba(255, 216, 129, 0.18);
}

.market-cta__button:hover {
    color: #1c1a16;
}

.market-cta__form input {
    padding: 8px 6px;
    color: #fff8eb;
}

.market-cta__form input::placeholder {
    color: rgba(255, 248, 235, 0.76);
}

.market-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 217, 121, 0.18), transparent 18%),
        radial-gradient(circle at 8% 8%, rgba(255, 255, 255, 0.10), transparent 16%),
        linear-gradient(135deg, #0c2558 0%, #153978 42%, #224f9a 100%);
    color: #ffffff;
    border-top: 1px solid rgba(255, 217, 121, 0.16);
}

.market-footer__inner {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 56px 48px 34px;
    display: grid;
    grid-template-columns: minmax(320px, 1.7fr) minmax(150px, 0.85fr) minmax(260px, 1.1fr) minmax(180px, 0.85fr);
    gap: 34px;
    align-items: start;
}

.market-footer__brand,
.market-footer__links,
.market-footer__contact,
.market-footer__follow {
    min-width: 0;
}

.market-footer__eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 217, 121, 0.14);
    color: #ffd775;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.market-footer__identity {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.market-footer__logo {
    width: 140px;
    height: 120px;
    display: grid;
    place-items: center;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    flex: 0 0 140px;
}

.market-footer__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.market-footer__logo--mark {
    color: #153978;
    font-size: 2rem;
    font-weight: 800;
}

.market-footer__brand h3 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.2;
    color: #ffffff;
}

.market-footer__brand p {
    margin: 8px 0 0;
    max-width: 34ch;
    color: rgba(244, 247, 255, 0.86);
    font-size: 1rem;
    line-height: 1.7;
}

.market-footer__links h4,
.market-footer__contact h4,
.market-footer__follow h4 {
    margin: 8px 0 18px;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.2;
}

.market-footer__links {
    display: block;
}

.market-footer__links a {
    display: block;
    margin-top: 10px;
    color: rgba(244, 247, 255, 0.92);
    font-weight: 600;
    font-size: 0.98rem;
    transition: color 0.22s ease, transform 0.22s ease;
}

.market-footer__links a:hover {
    color: #ffd775;
    transform: translateX(2px);
}

.market-footer__contact {
    display: grid;
    gap: 16px;
}

.market-footer__contact p {
    margin: 0;
    color: rgba(244, 247, 255, 0.90);
    font-size: 0.98rem;
    line-height: 1.55;
}

.market-footer__contact strong {
    color: #ffffff;
}

.market-footer__icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.market-footer__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 18px rgba(5, 16, 44, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.market-footer__icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(5, 16, 44, 0.24);
}

.market-footer__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-footer__icon--facebook {
    color: #1877f2;
}

.market-footer__icon--facebook svg {
    fill: currentColor;
    stroke: none;
}

.market-footer__icon--instagram {
    color: #d94687;
}

.market-footer__icon--linkedin {
    color: #0a66c2;
}

.market-footer__icon--youtube {
    color: #ff0000;
}

.market-footer__icon--youtube svg {
    stroke-width: 1.6;
}

.market-footer__icon--whatsapp {
    color: #25d366;
}

.market-footer__map {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 0 48px 36px;
}

.market-footer__map iframe {
    display: block;
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 28px;
    box-shadow: 0 18px 30px rgba(5, 16, 44, 0.16);
}

.market-footer__bottom {
    width: 100%;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.market-footer__bottom p {
    width: min(100%, 1320px);
    margin: 0 auto;
    padding: 0 48px 36px;
    color: rgba(244, 247, 255, 0.84);
    font-size: 0.98rem;
    white-space: nowrap;
    line-height: 1.2;
}

.market-whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #1ecb5d, #28d96c);
    color: #ffffff;
    box-shadow: 0 22px 36px rgba(22, 122, 58, 0.28);
    z-index: 30;
}

.market-whatsapp-float svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-page-hero,
.market-filter-bar,
.market-detail-tabs,
.market-related {
    margin-top: 12px;
}

.market-page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding: 24px 26px;
}

.market-page-hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(110px, 1fr));
    min-width: 0;
    width: auto;
    gap: 14px;
}

.market-page-hero__stats article {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    background: #f7f3e9;
    text-align: center;
}

.market-page-hero__stats strong {
    display: block;
    color: #10214d;
    font-size: 1.55rem;
}

.market-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.market-filter-bar__meta {
    display: grid;
    gap: 4px;
}

.market-filter-bar__meta strong {
    color: #182238;
    font-size: 1rem;
}

.market-filter-bar a {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #182238;
    font-weight: 700;
    border: 1px solid rgba(26, 25, 22, 0.08);
}

.market-filter-bar a.is-active {
    background: #1e1d1d;
    color: #f2cf72;
}

.market-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.market-catalog-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-top: 22px;
}

.market-catalog-content {
    min-width: 0;
}

.market-filter-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 116px;
}

.market-filter-sidebar__head,
.market-filter-panel,
.market-filter-sidebar__quick {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
}

.market-filter-sidebar__head,
.market-filter-panel {
    padding: 22px;
}

.market-filter-sidebar__head h2 {
    margin: 8px 0 10px;
    color: #182238;
    font-size: 1.5rem;
}

.market-filter-panel {
    display: grid;
    gap: 16px;
}

.market-filter-panel .field {
    margin-top: 0;
}

.market-filter-panel__price {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.market-filter-panel__actions {
    display: grid;
    gap: 10px;
}

.market-filter-sidebar__quick {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.market-filter-sidebar__quick a {
    display: block;
    padding: 11px 14px;
    border-radius: 16px;
    background: #fbf8f1;
    color: #1b2135;
    font-weight: 700;
    border: 1px solid rgba(26, 25, 22, 0.06);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.market-filter-sidebar__quick a.is-active,
.market-filter-sidebar__quick a:hover {
    background: linear-gradient(135deg, #2d4da6, #17357f);
    color: #ffffff;
    transform: translateX(2px);
}

.market-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    align-items: start;
    gap: 20px;
    margin-top: 18px;
}

.market-auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(320px, 1fr);
    align-items: start;
    gap: 20px;
    margin-top: 18px;
}

/* ── Full-width cart redesign ─────────────────────────── */

.market-cart-full {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.market-cart-table {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
    overflow: hidden;
}

.market-cart-table__head {
    display: grid;
    grid-template-columns: 80px 1fr 190px 130px 96px;
    gap: 16px;
    padding: 12px 22px;
    background: rgba(248, 245, 237, 0.9);
    border-bottom: 1px solid rgba(26, 25, 22, 0.08);
    font-size: 0.75rem;
    font-weight: 800;
    color: #4f4230;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    align-items: center;
}

.market-cart-table__row {
    display: grid;
    grid-template-columns: 80px 1fr 190px 130px 96px;
    gap: 16px;
    padding: 14px 22px;
    align-items: center;
    border-bottom: 1px solid rgba(26, 25, 22, 0.06);
    transition: background 0.14s;
}

.market-cart-table__row:last-child {
    border-bottom: none;
}

.market-cart-table__row:hover {
    background: rgba(248, 245, 237, 0.45);
}

.market-cart-table__thumb {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.market-cart-table__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}

.market-cart-table__thumb:hover img {
    transform: scale(1.05);
}

.market-cart-table__info {
    min-width: 0;
}

.market-cart-table__info h4 {
    margin: 4px 0 5px;
    color: #182238;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-cart-table__info p {
    margin: 0;
    font-size: 0.85rem;
    color: #786f60;
    line-height: 1.4;
}

.market-cart-table__qty {
    margin: 0;
}

.market-cart-table__price {
    text-align: right;
}

.market-cart-table__price strong {
    display: block;
    color: #8a5b16;
    font-size: 1.05rem;
    font-weight: 700;
}

.market-cart-table__price span {
    display: block;
    font-size: 0.76rem;
    color: #7e7363;
    margin-top: 3px;
    line-height: 1.45;
}

.market-cart-table__remove {
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

/* Summary bar */
.market-cart-summary-bar {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 240px);
    gap: 20px;
    align-items: end;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
    padding: 20px 22px;
}

.market-cart-summary-bar__breakdown {
    display: grid;
    gap: 10px;
}

.market-summary-bar__meta {
    margin-top: 4px;
}

.market-cart-summary-bar__cta {
    display: grid;
    gap: 10px;
}

/* Checkout section */
.market-cart-checkout-section {
    display: none;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
    padding: 24px 26px;
}

.market-cart-checkout-section.is-active {
    display: block;
}

.market-cart-checkout-section__head {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(26, 25, 22, 0.08);
}

.market-cart-checkout-section__head h2 {
    margin: 6px 0 0;
    color: #182238;
}

.market-cart-checkout-section .market-checkout-form {
    margin-top: 0;
}

/* Two-column split: address left | payment right */
.market-checkout-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.market-checkout-split-grid__address,
.market-checkout-split-grid__payment {
    display: grid;
    gap: 14px;
}

.market-checkout-split-grid__payment {
    padding: 18px;
    background: rgba(248, 245, 237, 0.6);
    border-radius: 18px;
    border: 1px solid rgba(26, 25, 22, 0.08);
}

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 1100px) {
    .market-cart-table__head,
    .market-cart-table__row {
        grid-template-columns: 72px 1fr 160px 110px 88px;
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 860px) {
    .market-cart-table__head {
        display: none;
    }
    .market-cart-table__row {
        grid-template-columns: 68px 1fr auto;
        grid-template-rows: auto auto;
        gap: 10px 12px;
        padding: 14px 16px;
    }
    .market-cart-table__thumb {
        grid-row: 1 / 3;
        width: 68px;
        height: 68px;
    }
    .market-cart-table__info {
        grid-column: 2 / 3;
        grid-row: 1;
    }
    .market-cart-table__price {
        grid-column: 3;
        grid-row: 1;
        text-align: right;
    }
    .market-cart-table__qty {
        grid-column: 2;
        grid-row: 2;
    }
    .market-cart-table__remove {
        grid-column: 3;
        grid-row: 2;
        justify-content: flex-end;
        align-items: center;
    }
    .market-cart-summary-bar {
        grid-template-columns: 1fr;
    }
    .market-checkout-split-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .market-cart-table__row {
        grid-template-columns: 58px 1fr;
        grid-template-rows: auto auto auto;
    }
    .market-cart-table__thumb {
        grid-row: 1 / 2;
        width: 58px;
        height: 58px;
    }
    .market-cart-table__info { grid-column: 2; grid-row: 1; }
    .market-cart-table__qty { grid-column: 1 / 3; grid-row: 2; }
    .market-cart-table__price { grid-column: 1 / 3; grid-row: 3; text-align: left; }
    .market-cart-table__remove { grid-column: 1 / 3; grid-row: 3; justify-content: flex-end; margin-top: -28px; }
}

.market-cart-items {
    display: grid;
    gap: 14px;
}

.market-cart-card,
.market-checkout-card,
.market-order-success {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
}

.market-auth-card,
.market-auth-panel {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
}

.market-auth-card {
    padding: 22px;
    align-self: start;
}

.market-auth-card__summary h2,
.market-auth-panel h2 {
    margin: 8px 0 10px;
    color: #182238;
}

.market-auth-form {
    margin-top: 12px;
}

.market-auth-panel {
    padding: 22px;
    min-width: 0;
}

.market-cart-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
}

.market-cart-card__image {
    display: block;
    height: 100%;
}

.market-cart-card__image img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.market-cart-card__body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    min-height: 220px;
}

.market-cart-card__body h3 {
    margin: 10px 0 8px;
    color: #182238;
    font-size: 1.3rem;
}

.market-cart-card__body > div:first-child p:last-child {
    margin: 0;
    color: #786f60;
    font-size: 0.95rem;
}

.market-cart-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(26, 25, 22, 0.08);
}

.market-cart-card__meta strong {
    color: #8a5b16;
    font-size: 1.35rem;
}

.market-cart-card__meta span {
    color: #7e7363;
    font-size: 0.92rem;
    text-align: right;
}

.market-product-card__min {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 245, 214, 0.96), rgba(239, 199, 100, 0.34));
    border: 1px solid rgba(180, 129, 21, 0.20);
    box-shadow: 0 10px 22px rgba(118, 83, 18, 0.08);
    color: #6c4612;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    margin: 4px 0 0;
}

.market-product-card__min::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4d2c9d, #d3a53c);
    box-shadow: 0 0 0 4px rgba(77, 44, 157, 0.08);
}

.market-product-card__min--overlay {
    display: none;
}

.market-related__media {
    position: relative;
}

.market-checkout-card {
    align-self: start;
    position: sticky;
    top: 104px;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    overflow: hidden;
}

.market-checkout-col--summary {
    padding: 18px;
    border-right: 1px solid rgba(26, 25, 22, 0.08);
    display: grid;
    gap: 10px;
    align-content: start;
}

.market-checkout-col--form {
    padding: 18px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.market-checkout-col--summary .market-summary-breakdown {
    margin-top: 0;
}

.market-checkout-col--form .market-checkout-form {
    margin-top: 0;
}

.market-checkout-card__summary h2,
.market-order-success h2 {
    margin: 8px 0 10px;
    color: #182238;
}

.market-summary-breakdown {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.market-summary-breakdown div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(248, 245, 237, 0.95);
    border: 1px solid rgba(26, 25, 22, 0.08);
}

.market-summary-breakdown span {
    color: #1a1410;
    font-size: 0.9rem;
    font-weight: 700;
}

.market-summary-breakdown strong {
    color: #a0907a;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
    white-space: nowrap;
}

.market-summary-breakdown__total {
    background: linear-gradient(135deg, rgba(240, 214, 145, 0.42), rgba(255, 255, 255, 0.96));
}

.market-summary-breakdown__total span {
    color: #1a1410;
    font-weight: 800;
}

.market-summary-breakdown__total strong {
    color: #7b5d2e;
    font-weight: 700;
    font-size: 1.05rem;
}

.market-checkout-form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.market-checkout-actions,
.market-clear-cart-form {
    display: grid;
    gap: 12px;
}

.market-order-success {
    padding: 22px;
    margin-bottom: 18px;
}

.market-page-hero--compact {
    margin-bottom: 4px;
}

.market-cart-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.market-quantity-form--inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.market-section-stack {
    display: grid;
    gap: 12px;
}

.market-checkout-grid {
    margin: 0;
}

.market-checkout-grid > .field {
    margin-bottom: 0;
}

.market-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.market-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(244, 233, 204, 0.92);
    border: 1px solid rgba(180, 129, 21, 0.16);
    color: #7b5414;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.market-inline-badge--soft {
    background: rgba(32, 127, 111, 0.10);
    border-color: rgba(32, 127, 111, 0.14);
    color: #1b7164;
}

.market-checkout-card .summary-list__item,
.market-address-preview .summary-list__item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(248, 245, 237, 0.80);
    border: 1px solid rgba(26, 25, 22, 0.07);
    border-radius: 14px;
}

.market-checkout-card .summary-list__item span,
.market-address-preview .summary-list__item span {
    color: #1a1410;
    font-weight: 700;
    font-size: 0.86rem;
}

.market-checkout-card .summary-list__item strong,
.market-address-preview .summary-list__item strong {
    color: #9c8e7e;
    font-weight: 500;
    font-size: 0.86rem;
    text-align: right;
    line-height: 1.45;
    word-break: break-word;
    max-width: 130px;
}

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

.market-address-book__list {
    align-content: start;
}

.market-address-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
    padding: 18px;
}

.market-address-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.market-address-card__head h2 {
    margin: 8px 0 0;
    color: #182238;
    font-size: 1.35rem;
}

.market-address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.market-address-card__actions form {
    margin: 0;
}

.market-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.market-order-list {
    display: grid;
    gap: 12px;
}

.market-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(248, 245, 237, 0.95);
    border: 1px solid rgba(26, 25, 22, 0.08);
}

.market-order-row > div {
    display: grid;
    gap: 4px;
}

.market-order-row > div:last-child {
    text-align: right;
}

.market-order-row strong {
    color: #182238;
    font-size: 0.98rem;
}

.market-order-row span {
    color: #6f6557;
    font-size: 0.88rem;
}

.market-address-card .ghost-button,
.market-address-card .billing-chip {
    min-height: 40px;
}

.market-address-zone-card {
    margin-top: 4px;
    margin-bottom: 4px;
}

.market-order-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.market-order-success__actions form {
    margin: 0;
}

.inline-status-form select {
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(18, 34, 54, 0.12);
    background: #ffffff;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: #c14e39;
    font-size: 0.88rem;
}

.market-product-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
}

.market-product-card__image {
    position: relative;
}

.market-product-card__image img {
    height: 240px;
}

.market-password-field {
    position: relative;
    display: block;
}

.market-password-field input {
    padding-right: 58px;
}

.market-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: rgba(62, 42, 130, 0.08);
    color: #3e2a82;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.market-password-toggle:hover,
.market-password-toggle.is-visible {
    background: rgba(62, 42, 130, 0.16);
    color: #1f2f6d;
}

.market-password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-product-card__image span,
.market-category-product-card__image span,
.market-product-gallery__status {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #188f3a;
    font-size: 0.78rem;
    font-weight: 800;
}

.market-product-card__price {
    margin: 14px 0 18px;
}

.market-product-card__footer form,
.market-feature-card__actions form,
.market-product-summary__actions form {
    margin: 0;
}

.market-cart-card .market-product-card__footer {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 2px;
    margin-top: auto;
}

.market-cart-card .market-quantity-form {
    flex: 0 0 auto;
}

.market-empty-state {
    padding: 44px 26px;
    text-align: center;
}

.market-category-hero {
    padding: 28px;
    align-items: stretch;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 215, 110, 0.34), transparent 18%),
        radial-gradient(circle at 18% 82%, rgba(255, 241, 205, 0.16), transparent 24%),
        linear-gradient(135deg, #163271 0%, #2f53ad 34%, #d4aa49 72%, #f2dfaf 100%);
    border: 1px solid rgba(212, 170, 73, 0.30);
    box-shadow: 0 24px 44px rgba(26, 52, 117, 0.18);
}

.market-category-hero__copy {
    flex: 1.1;
}

.market-category-hero__copy h1,
.market-category-hero__copy p {
    color: #fff8eb;
}

.market-category-hero__copy .market-section__eyebrow {
    background: rgba(255, 245, 222, 0.16);
    color: #ffd775;
}

.market-category-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.market-category-hero__chips span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 238, 0.92);
    color: #71470d;
    border: 1px solid rgba(255, 216, 129, 0.22);
    box-shadow: 0 10px 18px rgba(20, 39, 91, 0.12);
    font-weight: 700;
}

.market-category-hero__stack {
    flex: 0.86;
    display: grid;
    gap: 12px;
}

.market-category-hero__stack article {
    padding: 18px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 211, 95, 0.20), transparent 22%),
        linear-gradient(135deg, #0f255f 0%, #1b3f95 54%, #2858be 100%);
    border: 1px solid rgba(255, 211, 95, 0.14);
    box-shadow: 0 18px 30px rgba(15, 37, 95, 0.24);
}

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

.market-category-hero__visual {
    flex: 0.9;
    min-height: 260px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 211, 95, 0.18);
    box-shadow: 0 18px 30px rgba(15, 37, 95, 0.18);
}

.market-category-hero__stack strong {
    display: block;
    margin-bottom: 6px;
    color: #ffd775;
}

.market-category-hero__stack span {
    color: rgba(244, 247, 255, 0.92);
}

.market-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
}

.market-category-product-card__image {
    position: relative;
}

.market-category-product-card__image img {
    height: 260px;
}

.market-category-product-card__footer {
    margin-top: 20px;
}

.market-product-detail {
    align-items: start;
}

.market-product-gallery,
.market-product-summary {
    flex: 1;
}

.market-product-gallery__frame {
    position: relative;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(26, 25, 22, 0.10);
    box-shadow: 0 16px 36px rgba(32, 27, 16, 0.06);
}

.market-product-gallery__frame img {
    display: block;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    object-fit: contain;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
}

.market-product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 12px;
    margin-top: 14px;
.market-product-gallery__thumb {
    padding: 8px;
    border-radius: 16px;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 24px rgba(32, 27, 16, 0.06);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.market-product-gallery__thumb img {
    display: block;
    width: 100%;
    height: 80px;
    border-radius: 10px;
    object-fit: contain;
    background: linear-gradient(180deg, #f8fbfd 0%, #eef4f7 100%);
}

.market-product-gallery__thumb.is-active,
.market-product-gallery__thumb:hover {
    border-color: rgba(15, 118, 110, 0.38);
    transform: translateY(-2px);
}

.market-content-page {
    padding-top: 28px;
    padding-bottom: 40px;
}

.content-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 26px;
    padding: 34px;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(255, 215, 110, 0.18), transparent 20%),
        linear-gradient(135deg, #0c2558 0%, #14356e 44%, #1f4f97 100%);
    color: #fff;
    box-shadow: 0 24px 42px rgba(11, 30, 69, 0.14);
}

.content-hero--gallery,
.content-hero--contact {
    grid-template-columns: minmax(0, 1fr);
}

.content-hero__copy h1 {
    margin: 10px 0 14px;
    color: #fff;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
}

.content-hero__copy p:last-child,
.content-hero__copy > p:not(.market-section__eyebrow) {
    color: rgba(245, 247, 255, 0.9);
    font-size: 1.02rem;
    line-height: 1.8;
}

.content-hero__media {
    min-height: 340px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 38px rgba(7, 17, 41, 0.18);
}

.content-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.content-chip-row span {
    display: inline-flex;
    align-items: center;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 248, 235, 0.95);
    color: #77490e;
    font-weight: 700;
}

.content-stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.content-stats-grid article,
.content-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(18, 34, 54, 0.08);
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.05);
}

.content-stats-grid article {
    padding: 24px 20px;
}

.content-stats-grid strong {
    display: block;
    color: #10233f;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.content-stats-grid span {
    color: #64748b;
    font-weight: 600;
}

.content-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.content-card {
    padding: 28px;
}

.content-card h2 {
    margin: 8px 0 14px;
    color: #10233f;
    font-size: 1.65rem;
}

.content-card p {
    color: #5b6b80;
    line-height: 1.8;
}

.gallery-grid-page {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.gallery-grid-page__item {
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(18, 34, 54, 0.08);
    box-shadow: 0 16px 28px rgba(17, 24, 39, 0.05);
}

.gallery-grid-page__item img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-grid-page__item figcaption {
    padding: 14px 16px 16px;
    color: #5b6b80;
    font-size: 0.92rem;
    font-weight: 600;
}

.gallery-pagination {
    justify-content: center;
    margin-top: 28px;
}

.contact-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 22px;
    margin-top: 24px;
}

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

.contact-info-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.contact-info-list div {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(18, 34, 54, 0.08);
}

.contact-info-list span {
    display: block;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.contact-info-list strong {
    color: #10233f;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-map-frame {
    margin-top: 18px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 14px 24px rgba(17, 24, 39, 0.08);
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 280px;
    border: 0;
}

@media (max-width: 760px) {
    .content-hero,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

.market-product-summary {
    padding: 18px 18px 22px;
}

.market-product-summary__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 12px;
}

.market-product-summary__rating span {
    padding: 6px 10px;
    border-radius: 8px;
    background: #16a34a;
    color: #ffffff;
    font-weight: 800;
}

.market-product-summary__price {
    margin: 12px 0 8px;
}

.market-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.market-spec-grid article,
.market-detail-spec-list div {
    padding: 16px;
    border-radius: 16px;
    background: #f4f6f8;
    border: 1px solid rgba(26, 25, 22, 0.08);
}

.market-spec-grid span,
.market-detail-spec-list span {
    display: block;
    margin-bottom: 8px;
    color: #657184;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
}

.market-spec-grid strong,
.market-detail-spec-list strong {
    color: #182238;
}

.market-feature-points {
    margin: 0;
    padding-left: 20px;
    color: #596275;
    line-height: 1.8;
}

.market-product-summary__actions {
    margin-top: 18px;
}

.market-quantity-form {
    flex: 1;
}

.market-quantity-form input {
    max-width: 82px;
    min-height: 46px;
    padding: 0 10px;
    text-align: center;
    border: 1px solid rgba(26, 25, 22, 0.12);
    border-radius: 14px;
    background: #ffffff;
}

.market-quantity-form .market-button {
    flex: 1;
}

.market-detail-tabs {
    padding: 18px;
}

.market-detail-tabs__nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.market-detail-tabs__nav button {
    border: 1px solid rgba(38, 89, 160, 0.20);
    background: #ffffff;
    color: #35507b;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
}

.market-detail-tabs__nav button.is-active {
    color: #0c6571;
    border-color: #0c6571;
}

.market-detail-tabs__panel {
    display: none;
}

.market-detail-tabs__panel.is-active {
    display: block;
}

.market-detail-spec-list {
    display: grid;
    gap: 12px;
}

.market-related {
    margin-bottom: 20px;
}

.market-related__grid {
    margin-top: 16px;
}

.market-related__card a {
    display: block;
    padding: 14px;
}

.market-related__card img {
    height: 180px;
    border-radius: 16px;
}

@media (max-width: 1100px) {
    .market-category-row,
    .market-product-grid,
    .market-category-grid,
    .market-stats,
    .market-review-grid,
    .market-catalog-layout,
    .market-auth-layout,
    .market-cart-layout,
    .market-account-grid,
    .market-address-grid,
    .market-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-feature-card,
    .market-product-detail,
    .market-category-hero,
    .market-offer-banner,
    .market-cta,
    .market-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .market-page-hero {
        grid-template-columns: 1fr;
    }

    .market-feature-card {
        grid-template-columns: 1fr;
    }

    .market-page-hero__stats,
    .market-spec-grid {
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-catalog-layout {
        grid-template-columns: 1fr;
    }

    .market-filter-sidebar {
        position: static;
    }

    .market-offer-banner__card,
    .market-cta__form {
        min-width: 0;
        width: 100%;
    }

    .market-checkout-card {
        position: static;
        grid-template-columns: 1fr;
    }

    .market-checkout-col--summary {
        border-right: none;
        border-bottom: 1px solid rgba(26, 25, 22, 0.08);
    }

    .market-auth-layout,
    .market-cart-layout {
        grid-template-columns: 1fr;
    }

    .market-product-marquee__card {
        width: 230px;
        flex-basis: 230px;
    }

    .market-footer__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 44px 24px 28px;
        gap: 30px;
    }

    .market-footer__bottom {
        padding-top: 20px;
    }

    .market-footer__bottom p {
        padding: 0 24px 28px;
    }
}

@media (max-width: 900px) {
    .listing-filter--2,
    .listing-filter--3,
    .listing-filter--4 {
        grid-template-columns: 1fr;
    }

    .billing-rates-filter {
        grid-template-columns: 1fr;
    }

    .billing-rates-filter .form-actions {
        grid-column: auto;
    }

    .delivery-listing-filter {
        grid-template-columns: 1fr;
    }

    .delivery-listing-filter .form-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }

    .delivery-workspace .panel-card__header,
    .thermal-receipt-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .delivery-entry-card .form-actions,
    .delivery-listing-filter .form-actions {
        align-items: stretch;
    }

    .delivery-entry-card .form-actions .primary-button,
    .delivery-entry-card .form-actions .secondary-button,
    .delivery-entry-card .form-actions .ghost-button,
    .delivery-listing-filter .form-actions .primary-button,
    .delivery-listing-filter .form-actions .secondary-button,
    .delivery-listing-filter .form-actions .ghost-button,
    .thermal-receipt-actions .primary-button,
    .thermal-receipt-actions .ghost-button {
        width: 100%;
    }

    .franchise-detail-top-grid {
        grid-template-columns: 1fr;
    }

    .franchise-shortcuts-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 920px) {
    .market-header {
        position: relative;
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .market-topbar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .market-topbar,
    .market-toolbar,
    .market-nav {
        padding-left: 16px;
        padding-right: 16px;
    }

    .market-main {
        width: min(100%, calc(100% - 20px));
    }

    .market-toolbar,
    .market-section__head,
    .market-page-hero__stats,
    .market-search,
    .market-cta__form,
    .market-product-summary__actions,
    .market-quantity-form,
    .market-cart-card__footer,
    .market-address-card__actions {
        display: grid;
    }

    .market-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
        padding-top: 18px;
        padding-bottom: 18px;
        align-items: center;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .market-topbar__links,
    .market-nav {
        display: none !important;
    }

    .market-brand {
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
    }

    .market-brand__logo {
        width: 96px;
        height: 68px;
        border-radius: 0;
        flex: 0 0 auto;
    }

    .market-brand__copy {
        min-width: 0;
    }

    .market-brand__copy strong {
        font-size: 1.2rem;
        line-height: 1.05;
    }

    .market-brand__copy small {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .market-toolbar__mobile-group {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        max-width: 100%;
    }

    .market-menu-toggle {
        display: inline-flex !important;
        align-self: center;
        width: 48px;
        height: 48px;
        border-radius: 16px;
        flex: 0 0 48px;
        margin: 0;
    }

    .market-toolbar__actions {
        display: none !important;
    }

    .market-toolbar__mobile-actions {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .market-toolbar__mobile-actions a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-radius: 15px;
        background: linear-gradient(180deg, #fffaf0 0%, #f8edd4 100%);
        color: #6b4d10;
        font-weight: 700;
        box-shadow: inset 0 0 0 1px rgba(211, 165, 60, 0.14);
    }

    .market-toolbar__mobile-actions a,
    .market-menu-toggle,
    .market-search,
    .market-mobile-panel,
    .market-page-hero__stats article,
    .market-category-card,
    .market-product-card,
    .market-category-product-card,
    .market-review-card {
        min-width: 0;
    }

    .market-toolbar__mobile-actions a svg {
        width: 20px;
        height: 20px;
        margin: 0;
    }

    .market-toolbar__mobile-actions a .market-toolbar__icon-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 20px;
        height: 20px;
        padding: 0 4px;
        font-size: 0.72rem;
    }

    .market-mobile-panel {
        display: block !important;
        padding-bottom: 14px;
        max-height: 100vh;
        overflow-y: auto;
    }

    .market-mobile-panel.is-open {
        transform: translateX(0);
    }

    .market-mobile-panel a {
        padding: 11px 13px;
        font-size: 0.96rem;
    }

    .market-search {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }

    .market-section__head {
        gap: 14px;
    }

    .market-section__head .market-button,
    .market-feature-card__actions .market-button,
    .market-product-card__footer .market-button,
    .market-cart-card__footer .market-button {
        width: 100%;
    }

    .market-page-hero,
    .market-category-hero,
    .market-offer-banner,
    .market-cta {
        padding: 20px 18px;
        gap: 16px;
    }

    .market-category-hero__chips,
    .market-feature-card__actions,
    .market-product-card__footer,
    .market-category-card__meta,
    .market-category-product-card__footer {
        width: 100%;
    }

    .market-hero {
        min-height: 320px;
    }

    .market-category-row,
    .market-product-grid,
    .market-category-grid,
    .market-review-grid,
    .market-filter-panel__price,
    .market-auth-layout,
    .market-cart-layout,
    .market-account-grid,
    .market-address-grid,
    .market-related__grid,
    .market-spec-grid,
    .market-product-gallery__thumbs {
        grid-template-columns: 1fr;
    }

    .market-cart-card {
        grid-template-columns: 1fr;
    }

    .market-stats[data-stats-slider] {
        display: flex;
        grid-template-columns: none;
        gap: 14px;
        overflow-x: auto;
        padding: 4px 2px 12px;
        margin-top: 22px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-behavior: smooth;
    }

    .market-stats[data-stats-slider]::-webkit-scrollbar {
        display: none;
    }

    .market-stats[data-stats-slider] > article {
        flex: 0 0 calc(78vw - 18px);
        max-width: 240px;
        min-height: 100%;
        scroll-snap-align: center;
        animation: marketStatCardFloat 4.2s ease-in-out infinite;
    }

    .market-stats[data-stats-slider] > article:nth-child(2) {
        animation-delay: 0.2s;
    }

    .market-stats[data-stats-slider] > article:nth-child(3) {
        animation-delay: 0.4s;
    }

    .market-stats[data-stats-slider] > article:nth-child(4) {
        animation-delay: 0.6s;
    }

    .market-order-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .market-order-row > div:last-child {
        text-align: left;
    }

    .market-product-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .market-product-marquee__card {
        width: 210px;
        flex-basis: 210px;
    }

    .market-footer__inner {
        grid-template-columns: 1fr;
        padding: 34px 16px 20px;
        gap: 24px;
    }

    .market-footer__identity {
        align-items: flex-start;
    }

    .market-footer__logo {
        width: 110px;
        height: 92px;
        flex-basis: 110px;
    }

    .market-footer__brand h3,
    .market-footer__links h4,
    .market-footer__contact h4,
    .market-footer__follow h4 {
        font-size: 1.5rem;
    }

    .market-footer__bottom {
        padding-top: 18px;
    }

    .market-footer__bottom p {
        padding: 0 16px 24px;
        white-space: normal;
    }

    .market-whatsapp-float {
        width: 64px;
        height: 64px;
        right: 16px;
        bottom: 16px;
    }

    .market-whatsapp-float svg {
        width: 34px;
        height: 34px;
    }

    .market-filter-bar {
        align-items: stretch;
    }

    .market-page-hero__stats {
        grid-template-columns: 1fr;
    }

    .market-cart-card__image img {
        min-height: 220px;
    }

    .market-product-gallery__frame img {
        height: 300px;
    }

    .market-footer__map {
        padding: 0 24px 28px;
    }

    .content-hero,
    .content-stats-grid,
    .content-info-grid,
    .gallery-grid-page,
    .contact-page-layout {
        grid-template-columns: 1fr;
    }

    .gallery-grid-page__item.is-wide {
        grid-column: span 1;
    }
}

@media (max-width: 540px) {
    .market-topbar {
        padding: 9px 12px;
    }

    .market-topbar__marquee-track {
        gap: 40px;
        animation-duration: 12s;
    }

    .market-main,
    .market-footer {
        width: min(100%, calc(100% - 16px));
    }

    .market-toolbar {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: 12px;
        padding: 10px 12px 8px;
    }

    .market-brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .market-menu-toggle {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
    }

    .market-brand__logo {
        width: 88px;
        height: 60px;
    }

    .market-search {
        grid-row: 2;
        flex-wrap: wrap;
        gap: 10px;
        border-radius: 22px;
        padding: 10px 12px;
    }

    .market-search input {
        padding: 0;
    }

    .market-search button {
        width: 100%;
        min-height: 46px;
    }

    .market-hero-shell {
        padding: 14px;
        border-radius: 22px;
    }

    .market-hero {
        min-height: 240px;
        border-radius: 22px;
    }

    .market-product-marquee__card {
        width: 180px;
        flex-basis: 180px;
    }

    .market-page-hero__stats article {
        padding: 14px;
    }

    .market-offer-banner__card,
    .market-checkout-page-card,
    .market-checkout-summary__card,
    .market-cart-panel,
    .market-cart-sidebar__card,
    .market-cart-checkout-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .market-footer__map {
        padding: 0 16px 20px;
    }
}

@keyframes market-topbar-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 28px));
    }
}

@keyframes marketStatCardFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 720px) {
    html,
    body,
    .market-body,
    .market-header,
    .market-main,
    .market-footer {
        max-width: 100%;
        overflow-x: hidden;
    }

    .market-topbar {
        display: none !important;
        visibility: hidden;
        height: 0;
        min-height: 0;
        padding: 0 !important;
        margin: 0;
        border: 0;
    }
}
