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

html {
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    color: var(--color-text);
    -webkit-text-size-adjust: 100%;
}

:root {
    --color-primary: #2563eb;
    --color-secondary: #6c757d;
    --color-danger: #d9534f;
    --color-accent: #f2994a;
    --color-bg: #f5f7fb;
    --color-card: #ffffff;
    --color-border: #e2e6f0;
    --color-text: #1f2933;
    --theme-primary: var(--color-primary);
    --theme-primary-rgb: 37, 99, 235;
    --theme-accent: var(--color-accent);
    --theme-accent-rgb: 242, 153, 74;
    --theme-hero-accent: #7c3aed;
    --theme-background: var(--color-bg);
    --theme-surface: var(--color-card);
    --theme-header-background-rgb: 15, 23, 42;
    --theme-header-text-rgb: 255, 255, 255;
}

body {
    margin: 0;
    background: var(--theme-background, var(--color-bg));
    color: var(--color-text);
}

body.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.layout > main {
    flex: 1 1 auto;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.container--wide {
    max-width: 1200px;
}

.container--narrow {
    max-width: 640px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.25rem, 4vw, 3.25rem);
}

.hero p {
    max-width: 640px;
    margin: 0.75rem auto 0;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
}

.hero {
    background: linear-gradient(135deg, var(--theme-primary, #2563eb), var(--theme-hero-accent, #7c3aed));
    color: #fff;
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero__actions .button {
    min-width: 160px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: var(--theme-primary, var(--color-primary));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(47, 128, 237, 0.25);
}

.button:disabled {
    background: var(--color-secondary);
    cursor: not-allowed;
    box-shadow: none;
}

.button--secondary {
    background: var(--color-secondary);
}

.button--danger {
    background: var(--color-danger);
}

.dashboard-header {
    background: var(--dashboard-header-bg, #fff);
    color: var(--dashboard-header-text, var(--color-text));
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}


.dashboard-header h1,
.dashboard-header p {
    color: inherit;
}

.product-header .product-detail__location {
    color: inherit;
    opacity: 0.8;
}

.product-header .dashboard-header__nav .button.button--secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}

.product-header .dashboard-header__nav .button:hover {
    opacity: 0.92;
}
.dashboard-header__nav {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-header__nav .button {
    padding: 0.55rem 1.25rem;
    min-height: 40px;
    border-radius: 999px;
    box-shadow: none;
}

.dashboard-header__nav .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(var(--theme-primary-rgb, 47, 128, 237), 0.2);
}

.site-header {
    width: min(100%, 1200px);
    margin: clamp(24px, 6vw, 40px) auto 0;
    padding: clamp(20px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    background: var(--site-header-background, var(--theme-header-background, #0F172A));
    color: var(--site-header-text, var(--theme-header-text, #FFFFFF));
    box-shadow: 0 32px 60px var(--site-header-shadow, rgba(15, 23, 42, 0.18));
}

[data-header-gradient="1"] .site-header {
    background: linear-gradient(
        135deg,
        var(--site-header-background, var(--theme-header-background, #0F172A)),
        var(--site-header-accent, var(--theme-primary, #2563EB))
    );
}

.site-header--narrow {
    padding-inline: clamp(20px, 5vw, 32px);
}

.site-header__top {
    display: flex;
    align-items: center;
    gap: clamp(16px, 4vw, 28px);
}

.site-header__brand {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-header__highlight {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--site-header-accent, #2563EB);
}

.site-header__title {
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0;
    color: inherit;
}

.site-header__subtitle {
    margin: 0;
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    color: var(--site-header-text-muted, rgba(255, 255, 255, 0.82));
}

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

.site-header__actions-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 999px;
    background: var(--site-header-chip-secondary, rgba(15, 23, 42, 0.06));
}

.site-header__actions-group--primary {
    background: var(--site-header-chip-primary, rgba(37, 99, 235, 0.1));
}

.site-header__actions-group--secondary {
    background: var(--site-header-chip-secondary, rgba(15, 23, 42, 0.05));
}

.site-header__button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    background: var(--site-header-surface, #ffffff);
    color: var(--site-header-text, #111827);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.site-header__button:hover,
.site-header__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
    text-decoration: none;
}

.site-header__button--ghost {
    background: var(--site-header-button-ghost, rgba(15, 23, 42, 0.06));
    color: var(--site-header-text, #111827);
    border: 1px solid var(--site-header-button-border, rgba(15, 23, 42, 0.12));
    box-shadow: none;
}

.site-header__button--balance {
    background: var(--site-header-accent, #2563EB);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
}

.site-header__button--secondary {
    background: var(--site-header-text, #111827);
    color: var(--site-header-background, #ffffff);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.22);
}

.site-header__button--active {
    outline: 2px solid var(--site-header-accent, #2563EB);
    outline-offset: 1px;
}

.site-header__inline-form {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
}

.site-header__inline-form input[type="hidden"] {
    display: none;
}

.site-header__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
}

.site-header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--site-header-button-border, rgba(15, 23, 42, 0.12));
    background: var(--site-header-button-ghost, rgba(15, 23, 42, 0.06));
    color: var(--site-header-text, #111827);
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-header__toggle:hover,
.site-header__toggle:focus-visible {
    background: var(--site-header-accent, #2563EB);
    color: #ffffff;
    transform: translateY(-1px);
}

.site-header__drawer {
    display: none;
    flex-direction: column;
    gap: 14px;
    background: var(--site-header-surface, #ffffff);
    color: var(--site-header-drawer-text, var(--site-header-text, #111827));
    border-radius: 20px;
    border: 1px solid var(--site-header-outline, rgba(15, 23, 42, 0.12));
    padding: 16px;
    box-shadow: 0 18px 32px var(--site-header-shadow, rgba(15, 23, 42, 0.22));
    margin-top: 12px;
}

.site-header__drawer[aria-hidden='false'] {
    display: flex;
}

.site-header__drawer .site-header__actions-group {
    flex-direction: column;
    align-items: stretch;
}

.site-header__drawer .site-header__button,
.site-header__drawer .site-header__button--ghost,
.site-header__drawer .site-header__button--secondary {
    width: 100%;
    justify-content: center;
    color: var(--site-header-drawer-text, #111827);
}

.site-header__drawer .site-header__button--ghost {
    background: var(--site-header-drawer-ghost-bg, rgba(37, 99, 235, 0.14));
    border-color: var(--site-header-drawer-ghost-border, rgba(37, 99, 235, 0.35));
    color: var(--site-header-accent, #2563EB);
    box-shadow: none;
}

.site-header__drawer .site-header__button--ghost:hover,
.site-header__drawer .site-header__button--ghost:focus-visible {
    background: var(--site-header-accent, #2563EB);
    color: var(--site-header-drawer-ghost-hover-text, #FFFFFF);
    box-shadow: 0 14px 26px var(--site-header-drawer-ghost-shadow, rgba(37, 99, 235, 0.28));
}

.site-header__drawer .site-header__button--secondary {
    background: var(--site-header-drawer-secondary-bg, #111827);
    color: var(--site-header-drawer-secondary-text, #FFFFFF);
    box-shadow: 0 14px 26px var(--site-header-drawer-secondary-shadow, rgba(15, 23, 42, 0.26));
    border: none;
}

.site-header__floating-spacer {
    display: none;
}

.site-footer-nav {
    margin: 0;
    padding: 0;
}

.buyer-nav {
    
    bottom: var(--footer-safe-inset, 0px) !important; top: auto !important;
    
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--footer-safe-inset, constant(safe-area-inset-bottom, 0px));
    bottom: var(--footer-safe-inset, env(safe-area-inset-bottom, 0px));
    width: 100%;
    inset: auto 0 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    /* iOS 11 fallback */
    padding-bottom: constant(safe-area-inset-bottom, 0px);
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    /* Prevent detach/flicker on iOS during scroll */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    contain: layout paint;
}

.buyer-nav__link {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s ease;
    padding-top: 6px;
    gap: 2px;
}

.buyer-nav__icon {
    font-size: 1.3rem;
    line-height: 1;
    margin-bottom: 2px;
}

.buyer-nav__label {
    font-size: 0.8rem;
}

.buyer-nav__link:hover,
.buyer-nav__link:focus-visible {
    color: #FFFFFF;
    transform: translateY(-2px);
}

.buyer-nav__link--active {
    color: #FFFFFF;
    font-weight: 600;
    position: relative;
}

.buyer-nav__link--active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 30%;
    right: 30%;
    height: 3px;
    border-radius: 2px;
    background: #2563EB;
}

body.has-footer-nav {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px) + var(--footer-safe-inset, 0px));
    padding-bottom: calc(80px + constant(safe-area-inset-bottom, 0px) + var(--footer-safe-inset, 0px));
}

@media (max-width: 900px) {
    .buyer-nav {
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: var(--footer-safe-inset, 0px);
        width: 100%;
        max-width: none !important;
        margin: 0 !important;
    }

    .site-header {
        margin: 0;
        border-radius: 0;
        padding: 22px 18px 18px;
    }

    .site-header__actions {
        display: none;
    }

    .site-header__toggle {
        display: inline-flex;
    }

    .site-header__top {
        align-items: flex-start;
    }

    .site-header__brand {
        gap: 6px;
        align-items: flex-start;
    }

    .site-header__drawer {
        position: relative;
        z-index: 980;
    }

}

@media (max-width: 600px) {
    .site-header__drawer {
        border-radius: 18px;
        padding: 14px;
    }

    .site-header__actions-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .site-header__button,
    .site-header__button--ghost,
    .site-header__button--secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .buyer-nav {
        height: calc(70px + env(safe-area-inset-bottom, 0px));
    }

    .buyer-nav__icon {
        font-size: 1.4rem;
    }

    .buyer-nav__label {
        font-size: 0.9rem;
    }
}

@media (min-width: 901px) {
    .nav-device--desktop-hidden {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .nav-device--mobile-hidden {
        display: none !important;
    }
}

.dashboard-header__nav .button.button--secondary {
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(var(--theme-primary-rgb, 47, 128, 237), 0.25);
}

.dashboard-header__nav .button.button--secondary:hover {
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.16);
}

.dashboard-header__nav .button.button--danger {
    box-shadow: none;
}

body.theme-dark .dashboard-header__nav {
    background: rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

body.theme-dark .dashboard-header__nav .button.button--secondary {
    background: rgba(148, 163, 184, 0.18);
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.32);
}

.card {
    background: var(--theme-surface, var(--color-card));
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.card--wide {
    grid-column: span 2;
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 2rem;
}
.grid--mobile-two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: 1fr;
}

.card__media {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.18), rgba(56, 189, 248, 0.15));
    margin-bottom: 1rem;
}

.card__media::before {
    content: '';
    display: block;
    padding-top: 75%;
}

.card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@supports (aspect-ratio: 4 / 3) {
    .card__media::before {
        display: none;
        padding-top: 0;
    }
}


.card__badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.card__body h2 {
    margin: 0;
}

.card__body ul {
    margin: 0;
}

@media (max-width: 768px) {
    .grid--mobile-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .grid--mobile-two .card {
        padding: 0;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
        background: #fff;
    }

    .grid--mobile-two .card__media {
        display: block;
        border-radius: 0;
        margin-bottom: 0;
    }

    .grid--mobile-two .card__body {
        padding: 0.9rem 1rem 1.1rem;
    }

    .grid--mobile-two .card__body h2 {
        margin: 0;
        font-size: 1rem;
    }

    .grid--mobile-two .card__body ul {
        margin: 0;
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .grid--mobile-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .grid--mobile-two .card__body {
        padding: 0.75rem 0.85rem 0.95rem;
    }

    .grid--mobile-two .card__body h2 {
        font-size: 0.95rem;
    }

    .grid--mobile-two .card__body ul {
        gap: 0.3rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 360px) {
    .grid--mobile-two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .grid--mobile-two .card {
        border-radius: 12px;
    }

    .grid--mobile-two .card__body {
        padding: 0.65rem 0.7rem 0.85rem;
    }

    .grid--mobile-two .card__body h2 {
        font-size: 0.9rem;
    }

    .grid--mobile-two .card__body ul {
        font-size: 0.78rem;
    }
}

.table {
    display: grid;
    gap: 0.75rem;
}

.table__row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
}

.table__row--head {
    font-weight: 600;
    background: rgba(47, 128, 237, 0.1);
}

.form {
    display: grid;
    gap: 1.5rem;
}

.form__row {
    display: grid;
    gap: 2rem 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 320px));
    justify-content: center;
}

.auth-page .form__row > * {
    min-width: 0;
}

.auth-page .form,
.auth-page .form__label,
.auth-page .form__fieldset,
.auth-page .password-checklist {
    max-width: 100%;
}

.auth-page .form__input,
.auth-page select,
.auth-page textarea,
.auth-page .password-input-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.auth-page .form__row {
    justify-content: stretch;
}

.form__row--split {
    display: grid;
    gap: 2.5rem 3rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 340px));
    justify-content: center;
}

.form__label {
    display: grid;
    gap: 0.5rem;
    font-weight: 600;
}

.form__row--split .form__label,
.merchant-card .form > .form__label {
    position: relative;
    padding: 1rem 1.1rem 1rem 1.8rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    width: min(100%, 340px);
    margin: 0 auto;
}

.form__row--split .form__label::before,
.merchant-card .form > .form__label::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    border-radius: 999px;
    background: var(--theme-primary, #2f80ed);
}

.form__row--split .form__label .form__input,
.form__row--split .form__label select,
.form__row--split .form__label textarea,
.merchant-card .form > .form__label .form__input,
.merchant-card .form > .form__label select,
.merchant-card .form > .form__label textarea {
    width: 100%;
}

.product-options {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.02);
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-options h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.product-options .small {
    margin: 0;
    color: #475569;
}

.product-option {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 12px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-option[hidden] {
    display: none !important;
}

.form__input,
select,
textarea {
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    font-size: 1rem;
    background: #fff;
}

textarea {
    resize: vertical;
}

.form__fieldset {
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    padding: 1rem;
}

.form__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.form-inline {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form__input--small {
    width: 70px;
}

.flash {
    margin-bottom: 1.5rem;
}

.flash__message {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    background: rgba(47, 128, 237, 0.1);
    color: var(--color-text);
}

.password-input-wrapper {
    position: relative;
}

.password-input-wrapper .form__input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    border-radius: 50%;
    color: #475569;
    cursor: pointer;
    padding: 0.25rem;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--color-primary);
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.08);
}

.password-checklist {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: #6b7280;
}

.password-checklist__title {
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #374151;
}

.password-checklist__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.3rem;
}

.password-checklist__item {
    position: relative;
    padding-left: 1.1rem;
}

.password-checklist__item::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #9ca3af;
}

.password-checklist__item.is-valid {
    color: #059669;
}

.password-checklist__item.is-valid::before {
    content: '✔';
    color: #10b981;
    font-weight: 700;
}

.password-toggle__icon {
    width: 20px;
    height: 20px;
    display: none;
    color: inherit;
}

.password-toggle__icon--show {
    display: inline-block;
}

.password-toggle.is-visible .password-toggle__icon--show {
    display: none;
}

.password-toggle.is-visible .password-toggle__icon--hide {
    display: inline-block;
}

.flash__message--error {
    background: rgba(217, 83, 79, 0.15);
    color: #800013;
}

.flash__message--success {
    background: rgba(46, 204, 113, 0.15);
    color: #0b6e3c;
}

.mini-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.75rem;
    max-width: 340px;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.96);
    color: #f8fafc;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1200;
}

.mini-toast--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mini-toast__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 20px;
}

.mini-toast__body {
    display: grid;
    gap: 2px;
}

.mini-toast__title {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.mini-toast__subtitle {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(226, 232, 240, 0.75);
}

.mini-toast__actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.6rem;
}

.mini-toast__actions a {
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 600;
}

.mini-toast__dismiss {
    margin-left: auto;
    background: transparent;
    border: none;
    color: rgba(226, 232, 240, 0.6);
    cursor: pointer;
    font-size: 1rem;
}

@media (max-width: 600px) {
    .mini-toast {
        left: 0.75rem;
        right: 0.75rem;
        top: auto;
        bottom: 1rem;
        border-radius: 16px;
    }
}

.floating-cart {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #0f172a;
    color: #f8fafc;
    display: grid;
    place-items: center;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(148, 163, 184, 0.45);
    text-decoration: none;
    transform: translateY(14px) scale(0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1100;
}

.floating-cart__icon {
    font-size: 1.4rem;
    line-height: 1;
}

.floating-cart--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

body.theme-dark .floating-cart {
    background: #1f2937;
    border-color: rgba(148, 163, 184, 0.55);
    box-shadow: 0 18px 36px rgba(8, 15, 30, 0.35);
}

@media (max-width: 600px) {
    .floating-cart {
        right: 1rem;
        bottom: 1rem;
        width: 52px;
        height: 52px;
    }
}

.cart-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1250;
}

.cart-modal--visible {
    opacity: 1;
    pointer-events: auto;
}

.cart-modal__panel {
    width: min(90%, 420px);
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    text-align: center;
    display: grid;
    gap: 16px;
}

.cart-modal__icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.12);
    color: var(--color-primary, #2563eb);
    display: grid;
    place-items: center;
    font-size: 28px;
    margin: 0 auto;
}

.cart-modal__title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #111827;
}

.cart-modal__message {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
}

.cart-modal__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cart-modal__button {
    min-width: 140px;
}

.cart-modal__button--ghost {
    background: rgba(148, 163, 184, 0.16);
    color: #1f2937;
    border: 1px solid rgba(148, 163, 184, 0.32);
}

body.theme-dark .cart-modal__panel {
    background: #0f172a;
    color: #f8fafc;
}

body.theme-dark .cart-modal__message {
    color: rgba(226, 232, 240, 0.78);
}

body.theme-dark .cart-modal__button--ghost {
    background: rgba(148, 163, 184, 0.14);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.3);
}


.profile {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 220px 1fr;
    align-items: flex-start;
}

.profile__image {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    border: 1px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.02);
}

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

.placeholder {
    color: var(--color-secondary);
    font-size: 0.9rem;
}

.product__image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.05);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product__meta {
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.product__description {
    font-size: 0.9rem;
    line-height: 1.5;
}

.filters {
    display: flex;
    justify-content: flex-end;
}

.cart-total {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.summary li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .container {
        padding: 1.75rem 1.25rem 3rem;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        width: 100%;
    }

    .dashboard-header__nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 0.5rem;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.05);
        box-shadow: none;
        justify-content: center;
    }

    .dashboard-header__nav .button {
        flex: 1 1 160px;
        min-width: 0;
        justify-content: center;
    }

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

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

    .filters {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .form__actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem 2.5rem;
    }

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

    .card {
        padding: 1.25rem;
    }

    .hero__actions {
        width: 100%;
        gap: 0.75rem;
    }

    .hero__actions .button {
        flex: 1 1 100%;
    }

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

    .auth-page .form__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
    }

    .auth-page .password-checklist {
        font-size: 0.85rem;
    }

    .form-inline {
        flex-wrap: wrap;
        width: 100%;
        gap: 0.75rem;
    }

    .cart-total {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .table {
        gap: 0.5rem;
    }

    .table__row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .dashboard-header__nav .button {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
    }

    .hero p {
        font-size: 0.95rem;
    }

    .container {
        padding: 1.25rem 0.75rem 2rem;
    }

    .hero__actions .button,
    .dashboard-header__nav .button,
    .form__actions .button,
    .auth-page .button {
        width: 100%;
    }

    .dashboard-header {
        padding: 1rem;
    }

    .chat__sidebar,
    .chat__window {
        padding: 1rem;
    }

    .product-card {
        padding: 1rem;
    }
}
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.badge {
    background: rgba(47, 128, 237, 0.12);
    color: var(--color-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product__price {
    font-weight: 600;
    font-size: 1.1rem;
}

.product-card__actions {
    display: grid;
    gap: 0.75rem;
}

.product-card__links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-gallery {
    position: relative;
}

.product-gallery__image {
    display: none;
}

.product-gallery__image.is-active {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 41, 51, 0.6);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-nav--prev {
    left: 12px;
}

.gallery-nav--next {
    right: 12px;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.is-visible {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.modal__content {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    max-width: 900px;
    width: min(90vw, 900px);
    z-index: 1001;
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
}

.modal__body {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.modal__details p {
    margin: 0.25rem 0;
}

.no-scroll {
    overflow: hidden;
}

.messages-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 64px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.chat-overview__card {
    background: var(--theme-surface, #ffffff);
    border-radius: 18px;
    border: 1px solid var(--chat-card-border, rgba(226, 232, 240, 0.7));
    padding: 20px 22px;
    box-shadow: var(--chat-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-overview__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.chat-overview__card--highlight {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb, 47, 128, 237), 0.12), rgba(124, 58, 237, 0.12));
}

.chat-overview__card h3 {
    margin: 0;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.chat-overview__value {
    margin: 4px 0 0;
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text, #0f172a);
}

.chat-overview__value--small {
    font-size: 20px;
    font-weight: 600;
}

.chat-overview__hint {
    margin: 0;
    font-size: 13px;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.chat {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 280px 1fr;
}

.chat__sidebar {
    background: var(--theme-surface, #ffffff);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--chat-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
    border: 1px solid var(--chat-card-border, rgba(226, 232, 240, 0.7));
    color: var(--color-text, #1f2937);
}

.chat__sidebar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.chat__sidebar-header h2 {
    margin: 0;
    font-size: 20px;
}

.chat__sidebar-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.chat__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: 12px;
    padding: 0 12px;
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.12);
    color: var(--color-primary, #2563eb);
    font-weight: 600;
}

.chat__search {
    margin: 20px 0 12px;
}

.chat__search-input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--chat-card-border, rgba(226, 232, 240, 0.7));
    background: rgba(248, 250, 252, 0.9);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--color-text, #1f2937);
}

.chat__search-input::placeholder {
    color: rgba(71, 85, 105, 0.6);
}

.chat__search-input:focus {
    outline: 3px solid rgba(var(--theme-primary-rgb, 47, 128, 237), 0.15);
    border-color: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.4);
}

.chat__empty-state {
    margin-top: 32px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.12);
    color: var(--color-text, #1f2937);
    font-size: 14px;
    display: grid;
    gap: 6px;
}

.chat__empty-hint {
    margin: 0;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
    font-size: 13px;
}

.chat__list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.75rem;
}

.chat-thread {
    display: block;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: var(--chat-link-bg, rgba(47, 128, 237, 0.08));
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
    border: 1px solid transparent;
}

.chat-thread:hover {
    background: var(--chat-link-hover-bg, rgba(47, 128, 237, 0.16));
}

.chat-thread--active {
    background: var(--chat-link-active-bg, var(--color-primary));
    color: var(--chat-link-active-text, #ffffff);
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-thread--unread:not(.chat-thread--active) {
    border-color: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.35);
}

.chat-thread__line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.chat-thread__name {
    font-weight: 600;
    color: var(--color-text, #0f172a);
}

.chat-thread__time {
    font-size: 12px;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.chat-thread__preview {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.chat-thread__badge {
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.18);
    color: var(--color-primary, #2563eb);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.chat__window {
    background: var(--theme-surface, #ffffff);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--chat-shadow, 0 10px 30px rgba(15, 23, 42, 0.06));
    border: 1px solid var(--chat-card-border, rgba(226, 232, 240, 0.7));
    min-height: 420px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--color-text, #1f2937);
}

.chat__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.chat__header h2 {
    margin: 0;
    font-size: 22px;
}

.chat__header-meta {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

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

.chat__header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--theme-primary-rgb, 47, 128, 237), 0.28);
    color: var(--color-primary, #2563eb);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.chat__header-action:hover {
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.12);
}

.chat__messages {
    flex: 1;
    overflow-y: auto;
    display: grid;
    gap: 0.75rem;
    padding-right: 0.5rem;
}

.chat__separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    font-size: 12px;
    color: var(--chat-muted, rgba(71, 85, 105, 0.65));
    position: relative;
}

.chat__separator::before,
.chat__separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(148, 163, 184, 0.35);
    margin: 0 12px;
}

.chat__message {
    display: flex;
}

.chat__message--own {
    justify-content: flex-end;
}

.chat__bubble {
    background: var(--chat-bubble-bg, rgba(47, 128, 237, 0.1));
    padding: 0.75rem 1rem;
    border-radius: 12px;
    max-width: 70%;
    color: inherit;
}

.chat__message--own .chat__bubble {
    background: var(--chat-bubble-own-bg, var(--color-primary));
    color: var(--chat-bubble-own-text, #ffffff);
}

.chat__bubble-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.chat__bubble-author {
    font-weight: 600;
}

.chat__bubble-time {
    font-size: 12px;
    color: inherit;
    opacity: 0.75;
}

.chat__meta {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.chat__composer {
    display: grid;
    gap: 0.75rem;
}

.chat__composer-inner {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat__composer textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 0.75rem;
    background: var(--theme-surface, #ffffff);
    color: var(--color-text, #1f2937);
    resize: vertical;
}

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

.chat__composer-extra {
    border: none;
    background: rgba(148, 163, 184, 0.18);
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.chat__composer-extra:hover,
.chat__composer-extra:focus-visible {
    background: rgba(148, 163, 184, 0.3);
    outline: none;
}

.chat__composer-upload {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chat__composer-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.chat__composer-upload-text {
    font-size: 0.85rem;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat__composer-upload-text span.has-file {
    color: var(--color-text, #1f2937);
    font-weight: 600;
}

.chat__composer-clear {
    border: none;
    background: transparent;
    color: var(--chat-muted, rgba(71, 85, 105, 0.65));
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.chat__composer-clear.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.chat__composer-hint {
    font-size: 0.78rem;
    color: var(--chat-muted, rgba(71, 85, 105, 0.7));
    margin: 0;
}

.chat__attachment {
    margin-top: 8px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.08);
    padding: 6px;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    max-width: 320px;
}

.chat__attachment-preview {
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.chat__attachment img {
    display: block;
    width: 100%;
    height: auto;
}

.chat__attachment video {
    width: 100%;
    border-radius: 10px;
    background: #000;
}

.chat__attachment-file {
    display: inline-block;
    text-decoration: underline;
    font-weight: 600;
    color: var(--color-text, #1f2937);
}

.chat__attachment-name {
    margin: 0;
    font-size: 0.8rem;
    color: var(--chat-muted, rgba(71, 85, 105, 0.8));
}

.chat__empty-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.chat__empty-window h3 {
    margin: 0;
    font-size: 20px;
    color: var(--color-text, #1f2937);
}

.chat__empty-window p {
    margin: 0;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.chat__placeholder {
    text-align: center;
    margin-top: 3rem;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.chat__empty {
    text-align: center;
    color: var(--chat-muted, rgba(71, 85, 105, 0.75));
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.theme-dark.messages-page {
    background: #0b1120;
    color: #e2e8f0;
}

body.theme-dark.messages-page .chat-overview__card {
    background: var(--theme-surface, rgba(17, 24, 39, 0.85));
    border-color: var(--chat-card-border, rgba(60, 72, 94, 0.65));
    box-shadow: none;
}

body.theme-dark.messages-page .chat-overview__card--highlight {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb, 47, 128, 237), 0.22), rgba(124, 58, 237, 0.22));
}

body.theme-dark.messages-page .chat-overview__value,
body.theme-dark.messages-page .chat-overview__value--small {
    color: var(--color-text, #f8fafc);
}

body.theme-dark.messages-page .chat-overview__hint {
    color: var(--chat-muted, rgba(203, 213, 225, 0.75));
}

body.theme-dark.messages-page .chat__sidebar,
body.theme-dark.messages-page .chat__window {
    background: var(--theme-surface, rgba(15, 23, 42, 0.75));
    color: var(--color-text, #e2e8f0);
    box-shadow: var(--chat-shadow, none);
    border: 1px solid var(--chat-card-border, rgba(148, 163, 184, 0.25));
}

body.theme-dark.messages-page .chat__badge {
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.25);
    color: #eff6ff;
}

body.theme-dark.messages-page .chat__search-input {
    background: rgba(15, 23, 42, 0.65);
    color: #f1f5f9;
    border-color: var(--chat-card-border, rgba(148, 163, 184, 0.45));
}

body.theme-dark.messages-page .chat__search-input::placeholder {
    color: rgba(203, 213, 225, 0.7);
}

body.theme-dark.messages-page .chat__empty-state {
    background: rgba(148, 163, 184, 0.12);
    color: var(--color-text, #f8fafc);
}

body.theme-dark.messages-page .chat-thread {
    background: var(--chat-link-bg, rgba(148, 163, 184, 0.12));
    color: var(--chat-link-color, #e2e8f0);
    border-color: rgba(148, 163, 184, 0.25);
}

body.theme-dark.messages-page .chat-thread:hover {
    background: var(--chat-link-hover-bg, rgba(148, 163, 184, 0.22));
}

body.theme-dark.messages-page .chat-thread--active {
    background: var(--chat-link-active-bg, var(--color-primary));
    color: var(--chat-link-active-text, #ffffff);
    border-color: rgba(255, 255, 255, 0.25);
}

body.theme-dark.messages-page .chat-thread__badge {
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.35);
    color: #ffffff;
}

body.theme-dark.messages-page .chat-thread__name {
    color: #f8fafc;
}

body.theme-dark.messages-page .chat__bubble {
    background: var(--chat-bubble-bg, rgba(148, 163, 184, 0.16));
    color: var(--color-text, #e2e8f0);
}

body.theme-dark.messages-page .chat__message--own .chat__bubble {
    background: var(--chat-bubble-own-bg, var(--color-primary));
    color: var(--chat-bubble-own-text, #ffffff);
}

body.theme-dark.messages-page .chat__meta,
body.theme-dark.messages-page .chat__header-meta,
body.theme-dark.messages-page .chat-thread__time,
body.theme-dark.messages-page .chat-thread__preview {
    color: var(--chat-muted, rgba(203, 213, 225, 0.75));
}

body.theme-dark.messages-page .chat__sidebar h2,
body.theme-dark.messages-page .chat__header h2 {
    color: var(--color-text, #f8fafc);
    font-weight: 700;
}

body.theme-dark.messages-page .chat__sidebar-header p {
    color: var(--chat-muted, rgba(203, 213, 225, 0.75));
}

body.theme-dark.messages-page .chat__sidebar,
body.theme-dark.messages-page .chat__sidebar label,
body.theme-dark.messages-page .chat__sidebar p {
    color: var(--color-text, #e2e8f0);
}

body.theme-dark.messages-page .chat__sidebar .form__label,
body.theme-dark.messages-page .chat__sidebar .form__label span {
    color: var(--color-text, #f8fafc);
}

body.theme-dark.messages-page .chat__sidebar input[type="search"],
body.theme-dark.messages-page .chat__sidebar input[type="text"] {
    color: #f8fafc;
}

body.theme-dark.messages-page .chat__sidebar .chat-thread__time,
body.theme-dark.messages-page .chat__sidebar .chat-thread__preview {
    color: var(--chat-muted, rgba(203, 213, 225, 0.82));
}

body.theme-dark.messages-page .chat__empty-window {
    color: var(--color-text, #e2e8f0);
}

body.theme-dark.messages-page .chat__composer textarea {
    background: rgba(15, 23, 42, 0.65);
    color: #f8fafc;
    border-color: rgba(148, 163, 184, 0.4);
}

body.theme-dark.messages-page .chat__placeholder,
body.theme-dark.messages-page .chat__empty,
body.theme-dark.messages-page .chat__empty-window {
    color: var(--chat-muted, rgba(226, 232, 240, 0.7));
}

body.theme-dark.messages-page .chat__empty-window h3 {
    color: var(--color-text, #f8fafc);
}

body.theme-dark.messages-page .chat__empty-window p {
    color: var(--chat-muted, rgba(226, 232, 240, 0.7));
}

@media (max-width: 768px) {
    .messages-page .container {
        padding: 0 16px 48px;
    }

    .chat-overview {
        grid-template-columns: 1fr;
    }

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

    .chat__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .chat__header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .chat__composer-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .chat__composer-actions {
        justify-content: flex-end;
    }

    .modal__body {
        grid-template-columns: 1fr;
    }
}
.button--accent {
    background: var(--theme-accent, var(--color-accent, #f2994a));
}

.featured-products {
    margin: 28px 0 36px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.02));
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.featured-products__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.featured-products__eyebrow {
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1d4ed8;
    font-weight: 600;
}

.featured-products__header h3 {
    margin: 4px 0 0;
    font-size: 1.5rem;
}

.featured-products__badge {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-weight: 600;
}

.featured-products__list {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.featured-card {
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.featured-card__media {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.featured-card__media--placeholder {
    background: rgba(148, 163, 184, 0.25);
    color: #475569;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-card__body {
    padding: 16px 18px 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.featured-card__plan {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1d4ed8;
    font-weight: 600;
}

.featured-card__shop {
    margin: 0;
    color: #475569;
}

.featured-card__price {
    margin: 0;
    font-weight: 700;
}

.featured-card__meta {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
}

.featured-card__actions {
    padding: 0 18px 18px;
}

.featured-card__actions .button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 900px) {
    .featured-products__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .featured-products {
        padding: 18px;
    }
    .featured-card__media {
        height: 140px;
    }
}

@media (max-width: 540px) {
    .featured-products__list {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .featured-products__list::-webkit-scrollbar {
        display: none;
    }
    .featured-card {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
}

.product-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
}

.product-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card--floating:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.18);
}

.product-card__media {
    position: relative;
    width: 100%;
    padding-top: 66%;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.05);
}

.product-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-card__visual {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.05);
}

.product-card__price-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.35rem 0.6rem;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.product-card__quickview {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    color: var(--color-primary);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.product-card__quickview::after {
    content: '\203A';
    line-height: 1;
    font-size: 1rem;
}


.product-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 0.9rem;
    background: rgba(15, 23, 42, 0.05);
}

.product-card__body {
    display: grid;
    gap: 0.5rem;
}

.product-card__description {
    color: var(--color-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
}

.product-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.product-card__price,
.product-card__price--large {
    font-weight: 700;
}

.product-card__promo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
}

.price--promo {
    font-weight: 700;
}

.price--old {
    text-decoration: line-through;
    color: #94a3b8;
    font-weight: 600;
    margin-left: 6px;
}

.product-card__price--large {
    font-size: 1.6rem;
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-card__form {
    display: inline-flex;
    gap: 0.5rem;
    margin: 0;
}

.product-card__form button {
    white-space: nowrap;
}

.product-page {
    display: grid;
    gap: clamp(2.5rem, 4vw, 3.5rem);
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    padding-bottom: 2rem;
}

.product-hero {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
    max-width: 900px;
    margin: 0 auto;
}

.product-hero__gallery {
    width: 100%;
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.15), rgba(251, 191, 36, 0.08));
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}

.product-hero__gallery .product-gallery__image {
    display: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: clamp(260px, 45vw, 420px);
    object-fit: cover;
}

.product-hero__gallery .product-gallery__image.is-active {
    display: block;
}

.product-hero .gallery-nav {
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.product-hero__summary {
    width: 100%;
    background: var(--theme-surface, var(--color-card));
    border-radius: 26px;
    padding: clamp(1.8rem, 3.2vw, 2.4rem);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: grid;
    gap: 1.25rem;
}

.product-hero__badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.12);
    color: var(--theme-primary, var(--color-primary));
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-hero__badge--soft {
    background: rgba(148, 163, 184, 0.18);
    color: rgba(15, 23, 42, 0.75);
}

.product-hero__seller {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.65);
}

.product-hero__price {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: var(--theme-primary, var(--color-primary));
}

.product-hero__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: rgba(15, 23, 42, 0.75);
}

.product-hero__rating--empty {
    color: rgba(15, 23, 42, 0.5);
    font-style: italic;
    margin: 0;
}

.product-hero__excerpt {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.78);
}

.product-hero__stats {
    display: grid;
    gap: 0.75rem 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.product-hero__stats div {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.12);
}

.product-hero__stats dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.6);
}

.product-hero__stats dd {
    margin: 0;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
}

.product-hero__actions {
    display: grid;
    gap: 0.9rem;
}

.product-hero__form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.08);
    border: 1px solid rgba(var(--theme-primary-rgb, 47, 128, 237), 0.14);
    box-shadow: 0 16px 32px rgba(var(--theme-primary-rgb, 47, 128, 237), 0.12);
}

.product-hero__form--accent {
    background: rgba(var(--theme-accent-rgb, 242, 153, 74), 0.12);
    border-color: rgba(var(--theme-accent-rgb, 242, 153, 74), 0.3);
    box-shadow: 0 16px 32px rgba(var(--theme-accent-rgb, 242, 153, 74), 0.18);
}

.product-hero__form .button {
    width: 100%;
}

.product-hero__quantity {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.7);
    min-width: 0;
}

.product-hero__quantity span {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-hero__quantity .form__input {
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
}

.product-hero__assurance {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.65);
}

.product-hero__assurance span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.15);
    color: var(--theme-primary, var(--color-primary));
    font-size: 0.75rem;
    font-weight: 700;
}

.product-hero__alert {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(248, 113, 113, 0.12);
    color: #991b1b;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-hero__alert--info {
    background: rgba(59, 130, 246, 0.12);
    color: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.9);
}

.product-insights {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: 1fr;
    max-width: 900px;
    margin: 0 auto;
}

.product-panel {
    background: var(--theme-surface, var(--color-card));
    border-radius: 22px;
    padding: 1.9rem 2rem;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: grid;
    gap: 1.5rem;
}

.product-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.product-panel__header h2 {
    margin: 0;
}

.product-panel__meta {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.6);
}

.product-panel__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(15, 23, 42, 0.78);
}

.product-panel__text--muted {
    color: rgba(15, 23, 42, 0.65);
}

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

.product-fact {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: rgba(148, 163, 184, 0.12);
    display: grid;
    gap: 0.35rem;
}

.product-fact dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
    margin: 0;
}

.product-fact dd {
    margin: 0;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.85);
}

.product-panel__merchant {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.product-panel__avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(var(--theme-primary-rgb, 47, 128, 237), 0.12);
    color: var(--theme-primary, var(--color-primary));
    font-weight: 700;
    font-size: 1.25rem;
    display: grid;
    place-items: center;
}

.product-panel__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-panel__cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-panel__cta .button {
    flex: 1 1 220px;
}

.product-panel__empty {
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.08);
    color: rgba(30, 64, 175, 0.9);
    font-weight: 600;
}

.product-reviews__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.product-reviews__score {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--theme-primary, var(--color-primary));
    line-height: 1;
}

.product-review-form {
    gap: 1rem;
}

.product-review-form__fields {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.product-panel--merchant {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.95));
}

.product-panel--reviews {
    gap: 1.5rem;
}

.product-panel--related .product-grid {
    margin-top: 0.5rem;
}

.product-panel--related .product-card {
    border: none;
    box-shadow: none;
}

    .product-hero__gallery {
        position: sticky;
        top: 6.5rem;
        max-width: none;
        margin: 0;
    }
}

    .product-hero__gallery {
        position: relative;
        top: 0;
        max-width: min(100%, 520px);
        margin: 0 auto;
    }

    .product-hero__summary {
        padding: clamp(1.6rem, 4vw, 2rem);
    }
}

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

    .product-panel {
        padding: 1.75rem 1.6rem;
    }
}

@media (max-width: 720px) {
    .product-page {
        gap: 2.5rem;
    }

    .product-hero__summary {
        padding: 1.75rem 1.5rem;
        border-radius: 22px;
    }

    .product-hero__gallery .product-gallery__image {
        min-height: 260px;
        aspect-ratio: 3 / 2;
    }

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

    .product-panel__cta {
        flex-direction: column;
    }

    .product-panel__cta .button {
        width: 100%;
    }
}

@media (max-width: 540px) {
    .product-hero {
        gap: 1.5rem;
    }

    .product-hero .gallery-nav {
        width: 36px;
        height: 36px;
    }

    .product-hero__summary {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .product-panel {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .product-panel__avatar {
        width: 52px;
        height: 52px;
    }

    .product-panel__cta {
        gap: 0.6rem;
    }
}
@media (max-width: 420px) {
    .product-hero__summary {
        padding: 1.35rem;
    }

    .product-hero__assurance {
        font-size: 0.8rem;
    }

    .product-panel {
        padding: 1.35rem;
    }

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



.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
}

.rating__star {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%23f2994a"%3E%3Cpath stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.286 3.967a1 1 0 00.95.69h4.176c.969 0 1.371 1.24.588 1.81l-3.38 2.455a1 1 0 00-.364 1.118l1.287 3.966c.3.922-.755 1.688-1.54 1.118l-3.38-2.455a1 1 0 00-1.175 0l-3.38 2.455c-.784.57-1.838-.196-1.539-1.118l1.287-3.966a1 1 0 00-.364-1.118L2.049 9.394c-.783-.57-.38-1.81.588-1.81h4.176a1 1 0 00.95-.69l1.286-3.967z"/%3E%3C/svg%3E') no-repeat center/contain;
}

.rating__star--empty {
    filter: grayscale(1);
    opacity: 0.4;
}

.rating__star--half {
    position: relative;
    overflow: hidden;
}

.rating__star--half::after {
    content: '';
    position: absolute;
    inset: 0;
    width: 50%;
    background: #fff;
    border-top-right-radius: 50%;
    border-bottom-right-radius: 50%;
}

.review-list {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.review {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
}

.review__header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.review__rating {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.review__date {
    color: var(--color-secondary);
    font-size: 0.85rem;
}

.product-card__price--large,
.product-card__price,
.product-card__stock {
    display: inline-block;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem;
        grid-auto-rows: 1fr;
    }
}

@media (max-width: 540px) {
    .product-grid {
        gap: 0.9rem;
        grid-auto-rows: 1fr;
    }

    .product-card {
        padding: 1.1rem;
    }

    .product-card__description {
        font-size: 0.85rem;
    }
}


[hidden] {
    display: none !important;
}

.dashboard-tabs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 0 0 2rem;
}

.dashboard-tabs__link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.08);
    color: var(--theme-primary, var(--color-primary));
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-tabs__link:hover {
    background: rgba(47, 128, 237, 0.15);
    text-decoration: none;
}

.dashboard-tabs__link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(47, 128, 237, 0.25);
}

.form__fieldset {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form__fieldset legend {
    font-weight: 600;
    padding: 0 0.5rem;
}

.form__hint {
    font-size: 0.85rem;
    color: var(--color-secondary);
    margin: 0.35rem 0 0;
}

.form__row--split {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.theme-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.theme-preview__swatch {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08);
}

.theme-preview__swatch--primary {
    background: var(--theme-primary, var(--color-primary));
}

.theme-preview__swatch--accent {
    background: var(--theme-accent, var(--color-accent, #f2994a));
}

.theme-preview__swatch--background {
    background: var(--theme-background, var(--color-bg));
}

.theme-preview__label {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.product-card {
    border-top: 4px solid rgba(47, 128, 237, 0.08);
}

.product-card[style*='--theme-primary'] {
    border-top-color: var(--theme-primary);
}

.product-card .button {
    background: var(--theme-primary, var(--color-primary));
}

.product-card .button.button--accent {
    background: var(--theme-accent, var(--color-accent, #f2994a));
}

.table--orders .table__row span {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.table__note {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.delivery-option {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.delivery-option__choice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.delivery-option__choice input[type='radio'] {
    accent-color: var(--theme-primary, var(--color-primary));
}

.delivery-option__choice:hover {
    border-color: var(--theme-primary, var(--color-primary));
    box-shadow: 0 10px 30px rgba(47, 128, 237, 0.12);
}

.delivery-grid {
    display: grid;
    gap: 1rem;
}

.location-share {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed var(--color-border);
    background: rgba(47, 128, 237, 0.06);
}

.location-share__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.location-status {
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.location-share__coords code {
    display: inline-block;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.08);
    font-family: 'Fira Code', 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
}

.profile-card .form {
    max-width: 720px;
}

@media (max-width: 680px) {
    .dashboard-tabs {
        gap: 0.5rem;
    }

    .dashboard-tabs__link {
        padding: 0.45rem 1rem;
    }

    .delivery-option__choice {
        width: 100%;
        justify-content: flex-start;
    }
}
.dashboard-tabs__link--active {
    background: var(--theme-primary, var(--color-primary));
    color: #fff;
}
.product-detail__location {
    margin-top: 0.5rem;
    color: var(--color-secondary);
    font-size: 0.95rem;
}
.theme-preview__swatch--surface {
    background: var(--theme-surface, var(--color-card));
}

.form__label--stack {
    display: block;
}

.form__label-text {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.file-input-list {
    display: grid;
    gap: 0.75rem;
}

.file-input-list__item {
    display: block;
}

.form__label--file {
    display: grid;
    gap: 0.35rem;
}

.form__label--file .form__input {
    width: 100%;
}
.merchant-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.merchant-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 18px;
    background: var(--theme-surface, var(--color-card));
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.merchant-card__media {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.merchant-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-card__placeholder {
    font-size: 0.9rem;
    color: var(--color-secondary);
    text-align: center;
}

.merchant-card__body {
    display: grid;
    gap: 0.75rem;
}

.merchant-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.merchant-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--theme-primary, var(--color-primary));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

.merchant-card__details {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.merchant-card__details dt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-secondary);
}

.merchant-card__details dd {
    margin: 0;
}

.merchant-card__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 720px) {
    .merchant-card {
        grid-template-columns: 1fr;
    }

    .merchant-card__media {
        width: 100%;
        height: 200px;
    }
}


    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    background: var(--product-header-preview-bg, #0F172A);
    color: var(--product-header-preview-text, #FFFFFF);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

    min-width: 200px;
}

    margin: 0;
    font-size: 1.2rem;
}

    margin: 0.35rem 0 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
}

    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
}

    opacity: 0.9;
}


.dashboard-header--narrow {
    max-width: 960px;
    margin: 0 auto 2rem;
}

.dashboard-header--narrow .dashboard-header__nav {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.order-list {
    display: grid;
    gap: 1.5rem;
}

.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-card__status {
    font-weight: 600;
    color: var(--theme-primary, var(--color-primary));
}

.order-card__meta {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.order-card__commission {
    color: #dc2626;
    font-weight: 600;
}

.order-card__net {
    color: #047857;
    font-weight: 700;
}

.order-items {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}

.order-items__item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}
.order-items__options {
    display: block;
    font-size: 0.85rem;
    color: #475569;
}

.order-card__actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.product-header__intro {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.product-header__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #c4b5fd, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-header__avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-header__avatar-fallback {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.product-header__summary h1 {
    margin: 0;
}

.product-header__summary p {
    margin: 0.3rem 0 0;
}
.merchant-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    flex-shrink: 0;
}
.merchant-card__avatar-fallback {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}
.profile-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.profile-brand__avatar {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #c4b5fd, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-brand__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-brand__placeholder {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
}

.profile-brand__info {
    display: grid;
    gap: 0.25rem;
}

.profile-brand__name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
}

.profile-brand__location {
    margin: 0;
    color: var(--color-secondary);
}

.profile-brand__location--muted {
    font-style: italic;
}

body.theme-dark {
    --color-bg: #0b1120;
    --color-card: #111827;
    --color-border: rgba(148, 163, 184, 0.24);
    --color-text: #e2e8f0;
    --color-secondary: #94a3b8;
    --theme-background: var(--color-bg);
    --theme-surface: var(--color-card);
    background: var(--color-bg);
    color: var(--color-text);
}

body.theme-dark .card,
body.theme-dark .product-card,
body.theme-dark .featured-card,
body.theme-dark .checkout-card,
body.theme-dark .checkout-summary {
    background: var(--color-card);
    border-color: var(--color-border);
    color: var(--color-text);
}

body.theme-dark .merchant-card--default {
    --card-bg: #111827 !important;
    --card-border: rgba(148, 163, 184, 0.24) !important;
    --card-accent: #cbd5f5 !important;
    color: #e2e8f0;
}

body.theme-dark .merchant-card--default .merchant-card__badge {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

body.theme-dark .product-card__name {
    color: #f8fafc;
}

body.theme-dark .checkout-summary__item-name,
body.theme-dark .checkout-summary__options,
body.theme-dark .checkout-summary__meta,
body.theme-dark .checkout-summary__unit {
    color: #cbd5f5;
}

body.theme-dark .checkout-summary__info {
    color: #cbd5f5;
    background: rgba(59, 130, 246, 0.18);
}

body.theme-dark .featured-card__plan {
    color: #93c5fd;
}

body.theme-dark .featured-card__shop,
body.theme-dark .featured-card__meta,
body.theme-dark .featured-card__media--placeholder {
    color: #cbd5f5;
}

body.theme-dark .featured-card__media--placeholder {
    background: rgba(148, 163, 184, 0.18);
}
