:root {
    --brand-primary: 275 54% 26%;
    --brand-primary-foreground: 0 0% 100%;
    --brand-orange: 24 74% 53%;
    --brand-green: 93 52% 50%;
    --brand-sidebar: 275 54% 20%;
    --brand-muted: 210 40% 96%;
    --brand-muted-foreground: 215 16% 35%;
    --brand-border: 214 32% 91%;
    --page-max-width: 80rem;
    /* Shadcn-compatible tokens (Lovable parity) */
    --background: 0 0% 100%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --muted: 210 40% 96%;
    --muted-foreground: 215 16% 35%;
    --border: 214 32% 91%;
    --input: 214 32% 91%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222 47% 11%;
    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;
    --app-font-family: "Noto Sans", sans-serif;
    --app-font-size: 18px;
}

/* MudText Color.Secondary uses .mud-secondary-text with --mud-palette-secondary (a surface tint),
   not the readable TextSecondary token from the theme palette. */
.mud-primary-text {
    color: var(--mud-palette-text-primary) !important;
}

.mud-secondary-text {
    color: var(--mud-palette-text-secondary) !important;
}

html, body {
    font-family: var(--app-font-family, "Noto Sans", sans-serif);
    font-size: var(--app-font-size, 18px);
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
    width: 100%;
}

.mud-typography,
.mud-button-root,
.mud-input-root,
.mud-select,
.mud-table-cell {
    font-family: var(--app-font-family, "Noto Sans", sans-serif);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjYuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Storefront shell */
.storefront-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: hsl(var(--brand-primary-foreground));
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.storefront-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.page-container {
    max-width: var(--page-max-width);
    margin-inline: auto;
    padding-inline: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .page-container {
        padding-inline: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .page-container {
        padding-inline: 2rem;
    }
}

.storefront-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--brand-border));
    overflow: visible;
}

.storefront-header__inner {
    max-width: var(--page-max-width);
    margin-inline: auto;
    padding: 0.75rem 1rem;
    overflow: visible;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .storefront-header__inner {
        padding-inline: 1.5rem;
    }
}

.storefront-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: hsl(var(--brand-primary));
}

.storefront-logo img,
.brand-logo {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 0.625rem;
}

.storefront-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.storefront-footer {
    background: hsl(var(--brand-primary));
    color: hsl(var(--brand-primary-foreground));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.storefront-footer a,
.storefront-footer .mud-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-weight: 600;
}

.storefront-footer a:hover,
.storefront-footer .mud-link:hover {
    color: hsl(var(--brand-orange)) !important;
}

.footer-heading {
    color: hsl(var(--brand-orange));
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-muted {
    color: rgba(255, 255, 255, 0.75);
}

/* Header search typeahead */
.storefront-header__bar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.storefront-header__start {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start !important;
}

.storefront-header__actions {
    flex-shrink: 0;
    overflow: visible;
    min-width: 0;
    max-width: 100%;
}

.storefront-header__icon-btn {
    position: relative;
    overflow: visible !important;
}

.storefront-header__search-wrap {
    position: relative;
    flex: 1 1 auto;
    max-width: 32rem;
    min-width: 12rem;
    width: 100%;
    margin-inline-start: 1.5rem;
}

.storefront-header__search-wrap--mobile {
    margin-inline: 0;
    margin-top: 0.5rem;
    max-width: none;
    min-width: 0;
    width: 100%;
}

.sector-slider {
    margin-top: 0.75rem;
    width: 100%;
    min-width: 0;
}

.sector-slider__track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.sector-slider__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--mud-palette-lines-default, #e0e0e0);
    border-radius: 999px;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-primary, #1a1a1a);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sector-slider__chip:hover {
    border-color: var(--mud-palette-primary, #7c3aed);
}

.sector-slider__chip--active {
    border-color: var(--mud-palette-primary, #7c3aed);
    background: color-mix(in srgb, var(--mud-palette-primary, #7c3aed) 12%, white);
    color: var(--mud-palette-primary, #7c3aed);
}

.sector-slider__icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    object-fit: cover;
}

html[dir="rtl"] .sector-slider__track {
    direction: rtl;
}

.header-search-shell {
    position: relative;
    width: 100%;
}

.header-search {
    position: relative;
    width: 100%;
}

.header-search__icon {
    position: absolute;
    inset-inline-start: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--brand-muted-foreground));
    z-index: 2;
    pointer-events: none;
}

.header-search__input {
    width: 100%;
    height: 2.75rem;
    border: 2px solid hsl(var(--brand-border));
    border-radius: 999px;
    padding-inline-start: 2.5rem;
    padding-inline-end: 6rem;
    background: white;
    color: hsl(var(--brand-primary));
    font: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.header-search__input:focus {
    border-color: hsl(var(--brand-primary));
}

.header-search__input--mobile {
    height: 2.5rem;
    padding-inline-end: 1rem;
}

.header-search__submit {
    position: absolute;
    inset-inline-end: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    height: 2rem;
    border: 0;
    border-radius: 999px;
    padding-inline: 1.1rem;
    background: hsl(var(--brand-primary));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.header-search__submit:disabled {
    opacity: 0.85;
    cursor: wait;
}

.header-search__spinner {
    width: 1rem !important;
    height: 1rem !important;
}

.header-search__dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    z-index: 1200;
    width: 100%;
    max-height: 26rem;
    overflow: auto;
    background: white;
    border: 1px solid hsl(var(--brand-border));
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(47, 23, 71, 0.14);
    text-align: start;
    margin: 0;
    transform: none;
}

.header-search__dropdown--ltr {
    left: 0;
    right: auto;
}

.header-search__dropdown--rtl {
    left: auto;
    right: 0;
}

.storefront-header__start > .storefront-header__search-wrap,
.storefront-header__start .mud-hidden {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 32rem;
    display: flex;
}

.storefront-header__start .mud-hidden > .storefront-header__search-wrap {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    margin-inline-start: 0;
}

.header-search__group-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    background: hsl(var(--brand-muted) / 0.55);
    color: hsl(var(--brand-muted-foreground));
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.header-search__result {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 0;
    background: transparent;
    text-align: start;
    cursor: pointer;
}

.header-search__result:hover,
.header-search__result--active {
    background: hsl(var(--brand-muted) / 0.65);
}

.header-search__thumb {
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    object-fit: cover;
    flex-shrink: 0;
}

.header-search__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--brand-muted));
    color: hsl(var(--brand-muted-foreground));
}

.header-search__result-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.header-search__result-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-search__result-subtitle {
    font-size: 0.75rem;
    color: hsl(var(--brand-muted-foreground));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Landing */
.landing-hero {
    position: relative;
    overflow: hidden;
}

.landing-hero--photo {
    background:
        linear-gradient(120deg, rgba(15, 10, 25, 0.9) 0%, rgba(47, 23, 71, 0.72) 50%, rgba(61, 33, 99, 0.45) 100%),
        url("images/landing-hero.svg") center/cover no-repeat;
}

.landing-hero--with-image {
    background:
        linear-gradient(120deg, rgba(15, 10, 25, 0.88) 0%, rgba(47, 23, 71, 0.72) 50%, rgba(61, 33, 99, 0.45) 100%),
        url("images/landing-hero.svg") center/cover no-repeat;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
    gap: 0.75rem;
}

.landing-section {
    padding-block: 4rem;
}

.landing-section--muted {
    background: hsl(var(--brand-muted) / 0.35);
}

.landing-section__header {
    margin-bottom: 2rem;
}

.landing-section__header--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-section__header--center {
    text-align: center;
    max-width: 42rem;
    margin-inline: auto;
}

.landing-section__title {
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
}

.landing-section__subtitle {
    margin: 0.35rem 0 0;
    color: hsl(var(--brand-muted-foreground));
}

.landing-section__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: hsl(var(--brand-primary));
    font-weight: 600;
    text-decoration: none;
}

.landing-section__footer-action {
    text-align: center;
    margin-top: 2rem;
}

.landing-hero__copy {
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: start;
}

.landing-hero__badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.875rem;
    backdrop-filter: blur(6px);
}

.landing-hero__subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 36rem;
}

.landing-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.landing-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.85rem 2rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.landing-hero__cta--primary {
    background: white;
    color: #1a1a2e !important;
}

.landing-hero__cta--primary:hover {
    background: rgba(255, 255, 255, 0.92);
}

.landing-hero__cta--ghost {
    border: 2px solid white;
    color: white !important;
    background: transparent;
}

.landing-hero__cta--ghost:hover {
    background: white;
    color: hsl(var(--brand-primary)) !important;
}

.landing-hero__trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: white;
    font-size: 0.875rem;
}

.landing-hero__trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.landing-hero__trust .mud-icon-root {
    color: hsl(var(--brand-orange));
}

.landing-stats__inner {
    padding-block: 2.5rem;
}

.landing-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .landing-stats__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.landing-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.landing-stat__value {
    margin: 0;
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 800;
    color: #1a1a2e;
}

.landing-stat__label {
    margin: 0;
    color: hsl(var(--brand-muted-foreground));
    font-size: 0.95rem;
    font-weight: 500;
}

.landing-dept-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .landing-dept-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .landing-dept-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.landing-dept-tile {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-dept-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(47, 23, 71, 0.16);
}

.landing-dept-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.landing-dept-tile:hover img {
    transform: scale(1.08);
}

.landing-dept-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.25), transparent);
}

.landing-dept-tile__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100%;
    padding: 1rem;
}

.landing-dept-tile__name {
    margin: 0;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.landing-dept-tile__meta {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
}

.landing-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 640px) {
    .landing-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .landing-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.landing-product-card {
    border: 1px solid hsl(var(--brand-border) / 0.8);
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(47, 23, 71, 0.12);
}

.landing-product-card__media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: hsl(var(--brand-muted));
}

.landing-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.landing-product-card:hover .landing-product-card__media img {
    transform: scale(1.05);
}

.landing-product-card__partner-badge {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 70%;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: white;
    font-size: 0.68rem;
    cursor: pointer;
}

.landing-product-card__partner-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-product-card__body {
    padding: 0.85rem 1rem 1rem;
}

.landing-product-card__brand {
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: hsl(var(--brand-muted-foreground));
}

.landing-product-card__title {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.landing-product-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.landing-product-card__price {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a2e;
}

.landing-product-card__unit {
    font-size: 0.75rem;
    color: hsl(var(--brand-muted-foreground));
}

.landing-product-card__quote {
    font-size: 0.875rem;
    color: hsl(var(--brand-muted-foreground));
}

.landing-product-card__cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin-top: 0.65rem;
    height: 2rem;
    border: 0;
    border-radius: 0.5rem;
    background: hsl(var(--brand-primary));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.landing-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .landing-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .landing-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.landing-service-card {
    border: 1px solid hsl(var(--brand-border));
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.landing-service-card:hover {
    box-shadow: 0 12px 24px rgba(47, 23, 71, 0.12);
}

.landing-service-card__media {
    position: relative;
    height: 11rem;
    overflow: hidden;
}

.landing-service-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.landing-service-card:hover .landing-service-card__media img {
    transform: scale(1.05);
}

.landing-service-card__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.landing-service-card__badge {
    position: absolute;
    top: 0.75rem;
    inset-inline-start: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: hsl(var(--brand-primary) / 0.92);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.landing-service-card__media-title {
    position: absolute;
    inset-inline: 0.75rem;
    bottom: 0.75rem;
    margin: 0;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
}

.landing-service-card__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
}

.landing-service-card__per {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a1a2e;
}

.landing-service-card__duration {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    color: hsl(var(--brand-muted-foreground));
}

.landing-partner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .landing-partner-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.landing-partner-card {
    border: 1px solid hsl(var(--brand-border));
    border-radius: 0.75rem;
    background: white;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.landing-partner-card:hover {
    box-shadow: 0 12px 24px rgba(47, 23, 71, 0.12);
}

.landing-partner-card__logo-wrap {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 0.85rem;
    border: 1px solid hsl(var(--brand-border));
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
}

.landing-partner-card__logo {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.landing-partner-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a2e;
}

.landing-partner-card__type {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--brand-muted-foreground));
    text-transform: capitalize;
}

.landing-partner-card__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.landing-partner-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: hsl(var(--brand-muted));
    font-size: 0.72rem;
    font-weight: 600;
    color: #1a1a2e;
}

.landing-partner-card__badge--muted {
    color: hsl(var(--brand-muted-foreground));
}

.landing-promo {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(90deg, hsl(var(--brand-primary)), hsl(var(--brand-primary) / 0.82));
    color: white;
}

.landing-promo__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23fff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.landing-promo__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .landing-promo__content {
        flex-direction: row;
        padding: 3rem;
    }
}

.landing-promo__copy {
    text-align: center;
}

@media (min-width: 768px) {
    .landing-promo__copy {
        text-align: start;
    }
}

.landing-promo__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.landing-promo__title {
    margin: 0.5rem 0 0;
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 800;
}

.landing-promo__subtitle {
    margin: 0.5rem 0 0;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.72);
}

.landing-promo__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.85rem 2.2rem;
    background: white;
    color: #1a1a2e !important;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.landing-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .landing-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .landing-why-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.landing-why-item {
    text-align: center;
}

.landing-why-item__icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.85rem;
    border-radius: 1rem;
    background: hsl(var(--brand-primary) / 0.1);
    color: hsl(var(--brand-primary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-why-item h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.landing-why-item p {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--brand-muted-foreground));
}

.landing-cta {
    background: hsl(var(--brand-primary));
    color: white;
    padding-block: 5rem;
}

.landing-cta__inner {
    text-align: center;
    max-width: 42rem;
}

.landing-cta__inner h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
}

.landing-cta__inner p {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
}

.landing-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .landing-cta__actions {
        flex-direction: row;
    }
}

.landing-outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid hsl(var(--brand-border));
    border-radius: 999px;
    padding: 0.75rem 2rem;
    background: white;
    color: hsl(var(--brand-primary));
    font-weight: 700;
    text-decoration: none;
}

.department-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--brand-border));
    background: white;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.department-tile:hover {
    border-color: hsl(var(--brand-primary) / 0.35);
    box-shadow: 0 4px 14px rgba(47, 23, 71, 0.08);
}

.department-tile__image {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
    background: hsl(var(--brand-muted));
    margin-bottom: 0.5rem;
}

.partner-card-counts {
    color: hsl(var(--brand-muted-foreground));
    font-size: 0.75rem;
}

.app-breadcrumbs .mud-breadcrumb-item a {
    color: hsl(var(--brand-primary));
}

/* Landing: full-bleed hero inside the main layout wrapper */
.storefront-main > .page-container:has(.landing-page) {
    padding: 0;
    max-width: none;
    width: 100%;
    overflow-x: clip;
}

.landing-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
}

.dashboard-stat-card {
    border-radius: 0.75rem;
    border: 1px solid hsl(var(--brand-border));
    height: 100%;
}

.dashboard-stat-card .mud-typography-h4 {
    color: hsl(var(--brand-primary));
    font-weight: 800;
}

.landing-hero__content {
    position: relative;
    max-width: var(--page-max-width);
    margin-inline: auto;
    width: 100%;
    padding-inline: 1rem;
    padding-block: 5rem;
}

@media (min-width: 640px) {
    .landing-hero__content {
        padding-inline: 1.5rem;
        padding-block: 7rem;
    }
}

@media (min-width: 1024px) {
    .landing-hero__content {
        padding-inline: 2rem;
        padding-block: 9rem;
    }
}

.landing-hero__title {
    color: white;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.landing-hero__highlight {
    background: linear-gradient(90deg, hsl(var(--brand-orange)), #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.landing-stats {
    background: hsl(var(--brand-muted) / 0.5);
    border-block: 1px solid hsl(var(--brand-border));
}

.landing-stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--brand-primary) / 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--brand-primary));
}

.section-title {
    font-weight: 700;
    color: hsl(var(--brand-primary));
}

.section-subtitle {
    color: hsl(var(--brand-muted-foreground));
}

/* Catalog cards */
.catalog-card {
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid hsl(var(--brand-border));
    overflow: hidden;
}

.catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(61, 33, 99, 0.12);
}

.catalog-card__media {
    aspect-ratio: 4 / 3;
    background: hsl(var(--brand-muted));
    object-fit: cover;
}

.catalog-card__price {
    color: hsl(var(--brand-primary));
    font-weight: 700;
}

/* Product detail */
.product-detail-loading,
.product-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 5rem 1rem;
    color: hsl(var(--muted-foreground));
}

.product-detail {
    padding-block: 1.5rem 3rem;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .product-detail__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

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

.product-detail__main-media {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--muted));
}

.product-detail__image,
.product-detail__video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-detail__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    background: hsl(var(--background) / 0.85);
    color: hsl(var(--foreground));
    cursor: pointer;
}

.product-detail__nav--prev { inset-inline-start: 0.5rem; }
.product-detail__nav--next { inset-inline-end: 0.5rem; }

.product-detail__thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.product-detail__thumb {
    flex: 0 0 4rem;
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid hsl(var(--border));
    padding: 0;
    background: hsl(var(--muted));
    cursor: pointer;
}

.product-detail__thumb--active {
    border-color: hsl(var(--primary));
}

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

.product-detail__thumb-video {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: hsl(var(--muted-foreground));
}

.product-detail__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-detail__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.product-detail__title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.product-detail__brand {
    margin: 0.25rem 0 0;
    color: hsl(var(--muted-foreground));
}

.product-detail__brand span {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.product-detail__price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.product-detail__price {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.product-detail__price-request {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
}

.product-detail__unit {
    color: hsl(var(--muted-foreground));
}

.product-detail__variants {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
}

.product-detail__variants-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-detail__variant-axis label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-detail__hint,
.product-detail__sku {
    margin: 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.product-detail__sku code {
    font-family: ui-monospace, monospace;
}

.product-detail__stock {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.product-detail__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-detail__badge--ok {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.product-detail__badge--bad {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.product-detail__badge--outline {
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    background: transparent;
}

.product-detail__units {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.product-detail__branches {
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
}

.product-detail__branch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid hsl(var(--border));
}

.product-detail__branch-row:last-child {
    border-bottom: none;
}

.product-detail__branch-name {
    font-weight: 600;
    color: hsl(var(--foreground));
}

.product-detail__branch-city {
    color: hsl(var(--muted-foreground));
}

.product-detail__supplier {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.product-detail__partner-link {
    font-weight: 600;
    color: hsl(var(--primary));
    text-decoration: none;
}

.product-detail__partner-link:hover {
    text-decoration: underline;
}

.product-detail__qty {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-detail__qty-control {
    display: flex;
    align-items: center;
    border: 1px solid hsl(var(--input));
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-detail__qty-control input {
    width: 4rem;
    height: 2.25rem;
    border: 0;
    text-align: center;
    background: transparent;
    color: hsl(var(--foreground));
    -moz-appearance: textfield;
}

.product-detail__qty-control input::-webkit-outer-spin-button,
.product-detail__qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-detail__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-detail__own-listing {
    margin: 0;
    font-size: 0.875rem;
    font-style: italic;
    color: hsl(var(--muted-foreground));
}

.product-detail__section h3 {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-detail__section p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
}

.product-detail__specs {
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
}

.product-detail__spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid hsl(var(--border));
}

.product-detail__spec-row:last-child {
    border-bottom: none;
}

.product-detail__spec-row span:first-child {
    color: hsl(var(--muted-foreground));
}

.product-detail__spec-row span:last-child {
    font-weight: 600;
    color: hsl(var(--foreground));
    text-align: end;
}

.product-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Service detail */
.service-detail__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.service-detail__type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.service-detail__featured-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.service-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-detail__meta p {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.service-detail__meta p span {
    font-weight: 600;
    color: hsl(var(--foreground));
}

/* Catalog page */
.catalog-page {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.catalog-page__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.catalog-page__header-icon {
    color: hsl(var(--primary));
    font-size: 1.75rem !important;
}

.catalog-page__header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.catalog-page__header p {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.catalog-page__loading {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
}

.catalog-page__counts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.catalog-page__counts span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.catalog-page__mobile-filter-btn {
    margin-inline-start: auto;
}

.catalog-page__filter-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: hsl(var(--primary));
    margin-inline-start: 0.375rem;
}

.catalog-page__departments {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    margin-bottom: 1.5rem;
}

.catalog-page__dept-chip {
    flex-shrink: 0;
    padding: 0.375rem 1rem;
    border-radius: 999px;
    border: 1px solid hsl(var(--brand-border));
    background: transparent;
    color: hsl(var(--brand-muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.catalog-page__dept-chip:not(.catalog-page__dept-chip--active):hover {
    border-color: hsl(var(--brand-primary));
    background: hsl(var(--brand-primary));
    color: hsl(var(--brand-primary-foreground));
}

.catalog-page__dept-chip--active,
.catalog-page__dept-chip--active:hover {
    background: hsl(var(--brand-primary));
    border-color: hsl(var(--brand-primary));
    color: hsl(var(--brand-primary-foreground));
}

.catalog-page__layout {
    display: flex;
    gap: 1.5rem;
}

.catalog-page__sidebar {
    width: 15rem;
    flex-shrink: 0;
}

.catalog-page__sidebar-inner {
    position: sticky;
    top: 6rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--card));
    padding: 1rem;
}

.catalog-page__main {
    flex: 1;
    min-width: 0;
}

.catalog-page__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .catalog-page__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1280px) {
    .catalog-page__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.catalog-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
}

.catalog-page__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.catalog-page__filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.catalog-page__filter-search {
    position: relative;
}

.catalog-page__filter-search-icon {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted-foreground));
    pointer-events: none;
}

.catalog-page__filter-search input {
    width: 100%;
    height: 2.5rem;
    padding-inline-start: 2.25rem;
    padding-inline-end: 0.75rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.5rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

.catalog-page__filter-group h4 {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.catalog-page__filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 12rem;
    overflow-y: auto;
}

.catalog-page__filter-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.catalog-page__filter-check input[type="checkbox"] {
    accent-color: hsl(var(--brand-primary));
    width: 1rem;
    height: 1rem;
    cursor: pointer;
}

.catalog-page__price-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.catalog-page__price-range input[type="range"] {
    width: 100%;
}

.catalog-page__price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.catalog-grid-card {
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
    background: hsl(var(--card));
    cursor: pointer;
    transition: box-shadow 0.15s;
}

.catalog-grid-card:hover {
    box-shadow: 0 8px 24px hsl(0 0% 0% / 0.08);
}

.catalog-grid-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: hsl(var(--muted));
    overflow: hidden;
}

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

.catalog-grid-card__partner-badge {
    position: absolute;
    top: 0.5rem;
    inset-inline-end: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 70%;
    padding: 0.25rem 0.5rem;
    border: 0;
    border-radius: 999px;
    background: hsl(0 0% 0% / 0.7);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
}

.catalog-grid-card__partner-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-grid-card__service-badge {
    position: absolute;
    top: 0.5rem;
    inset-inline-start: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
    font-weight: 600;
}

.catalog-grid-card__body {
    padding: 1rem;
}

.catalog-grid-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-grid-card__brand {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.catalog-grid-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.catalog-grid-card__footer-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-grid-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--primary));
}

.catalog-grid-card__quote {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.catalog-grid-card__unit {
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
}

.catalog-grid-card__unit-inline {
    font-size: 0.875rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
}

.catalog-grid-card__cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    cursor: pointer;
}

.catalog-grid-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.catalog-grid-card__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 999px;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

/* Admin */
.admin-shell .admin-drawer.mud-drawer {
    width: 280px;
}

.admin-shell .admin-drawer.mud-drawer.admin-drawer--collapsed {
    width: 48px;
}

.admin-drawer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
}

.admin-drawer__brand--mini {
    justify-content: center;
    padding-inline: 0.5rem;
}

.admin-drawer__logo {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 0.5rem;
}

.admin-drawer__brand-text {
    color: white;
    font-weight: 700;
}

.admin-header__menu-btn {
    color: hsl(var(--foreground)) !important;
}

.admin-shell .admin-drawer.admin-drawer--collapsed .mud-nav-link-text,
.admin-shell .admin-drawer.admin-drawer--collapsed .mud-nav-group > .mud-nav-group-title {
    opacity: 0;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.admin-shell .admin-drawer.admin-drawer--collapsed .admin-nav-menu > .mud-nav-link,
.admin-shell .admin-drawer.admin-drawer--collapsed .admin-nav-menu > .mud-nav-group > .mud-nav-link {
    justify-content: center;
    padding-inline: 0.75rem;
}

.admin-shell .admin-drawer.admin-drawer--collapsed .admin-nav-menu .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon {
    display: none;
}

.admin-shell .admin-drawer .mud-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.admin-sidebar {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.admin-sidebar__nav {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.admin-sidebar__footer {
    flex-shrink: 0;
    padding: 0.875rem 1rem 1rem;
    border-top: 1px solid hsl(275 40% 30%);
}

.admin-sidebar__email {
    display: block;
    font-size: 0.75rem;
    line-height: 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-shell .admin-drawer.admin-drawer--collapsed .admin-sidebar__footer {
    display: none;
}

.admin-shell .mud-drawer {
    background: hsl(var(--brand-sidebar)) !important;
    color: hsl(var(--brand-primary-foreground));
    border-inline-end: 1px solid hsl(275 40% 30%);
}

.admin-shell .mud-drawer .mud-nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
}

.admin-shell .mud-drawer .mud-nav-link.active {
    background: hsl(275 50% 28%) !important;
    color: white !important;
}

/* Top-level items: Dashboard, Messages, and nav group headers (Catalog, Partners, …) */
.admin-shell .mud-drawer .admin-nav-menu > .mud-nav-link,
.admin-shell .mud-drawer .admin-nav-menu > .mud-nav-group > .mud-nav-link {
    padding-inline-start: 16px;
    padding-inline-end: 16px;
}

/* Nested links inside expanded groups only */
.admin-shell .mud-drawer .admin-nav-menu .mud-nav-group .mud-collapse-container .mud-nav-link {
    padding-inline-start: 2rem;
}

.admin-shell .mud-drawer .admin-nav-menu .mud-nav-group > .mud-nav-link {
    display: flex;
    align-items: center;
}

.admin-shell .mud-drawer .admin-nav-menu .mud-nav-group > .mud-nav-link .mud-nav-link-expand-icon {
    color: rgba(255, 255, 255, 0.85) !important;
    fill: currentColor;
    opacity: 1 !important;
    visibility: visible !important;
    flex-shrink: 0;
    margin-inline-start: auto;
}

.admin-shell .mud-drawer .admin-nav-menu .mud-nav-group > .mud-nav-link .mud-nav-link-text {
    flex: 1;
    min-width: 0;
}

.admin-shell .mud-drawer .mud-navmenu .mud-nav-group > .mud-nav-group-title {
    color: hsl(var(--brand-orange)) !important;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-inline-start: 16px;
}

.admin-shell .admin-main-content {
    background: hsl(var(--brand-muted) / 0.35);
    /* DrawerClipMode and dense app bars can clip the top of page content without this */
    padding-top: calc(3.5rem + 0.5rem) !important;
    margin-top: 0 !important;
    overflow: visible !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    min-height: calc(100vh - 3.5rem);
    box-sizing: border-box;
}

.admin-shell .mud-main-content .section-title,
.admin-shell .admin-main-content .section-title {
    line-height: 1.3;
    overflow: visible;
}

.translatable-fields__tab-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.translatable-fields__tab-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.translatable-fields__tab-native {
    font-size: 0.75rem;
    opacity: 0.75;
}

/* Partner profile */
.partner-profile__logo {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--brand-border));
    background: hsl(var(--brand-muted) / 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.partner-profile__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.partner-gallery__tile {
    position: relative;
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid hsl(var(--brand-border));
    cursor: pointer;
    background: hsl(var(--brand-muted) / 0.4);
}

.partner-gallery__image {
    width: 100%;
    height: 100%;
}

.partner-gallery__placeholder {
    width: 100%;
    height: 100%;
    min-height: 8rem;
}

.partner-gallery__caption {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 0.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: white;
    font-size: 0.75rem;
    line-height: 1.3;
}

.admin-header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--brand-border));
    color: hsl(var(--brand-primary)) !important;
}

/* Admin top bar — Lovable AdminLayout parity */
.admin-topbar {
    height: 3.5rem !important;
    background: hsl(var(--background) / 0.8) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid hsl(var(--border)) !important;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
    color: hsl(var(--foreground)) !important;
}

.admin-topbar .mud-toolbar-appbar {
    height: 3.5rem;
    min-height: 3.5rem;
    padding-inline: 1rem;
    gap: 0.5rem;
}

.admin-topbar__trigger {
    width: 1.75rem !important;
    height: 1.75rem !important;
    padding: 0 !important;
    color: hsl(var(--foreground)) !important;
}

.admin-topbar__home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.15s ease;
}

.admin-topbar__home-link:hover {
    color: hsl(var(--brand-primary));
}

.admin-topbar__home-text {
    display: none;
}

.admin-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.admin-topbar__badge {
    display: none;
    align-items: center;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25rem;
    white-space: nowrap;
}

.admin-topbar__badge--primary {
    background: hsl(var(--brand-primary));
    color: hsl(var(--brand-primary-foreground));
}

.admin-topbar__badge--secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
}

.admin-topbar__logout {
    border-color: hsl(var(--border)) !important;
    color: hsl(var(--foreground)) !important;
    text-transform: none;
    font-weight: 500;
}

.admin-topbar__logout-text {
    display: none;
}

.admin-shell .admin-drawer.admin-drawer--mobile {
    width: min(280px, 85vw);
}

.admin-shell .admin-drawer.admin-drawer--mobile .mud-drawer-content {
    width: 100%;
}

@media (min-width: 600px) {
    .admin-topbar__home-text {
        display: inline;
    }

    .admin-topbar__badge--desktop {
        display: inline-flex;
    }

    .admin-topbar__logout-text {
        display: inline;
    }
}

.header-badge-count {
    position: absolute;
    top: -2px;
    inset-inline-end: -2px;
    min-width: 1rem;
    height: 1rem;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-inline: 0.25rem;
    z-index: 2;
    pointer-events: none;
}

.storefront-header__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.header-badge-count--rfq {
    background: #f59e0b;
    color: white;
}

.header-badge-count--cart {
    background: hsl(var(--brand-primary));
    color: white;
}

[dir="rtl"] .storefront-header__search-wrap,
[dir="rtl"] .header-search__input {
    direction: rtl;
}

[dir="rtl"] .landing-hero--photo,
[dir="rtl"] .landing-hero--with-image {
    background:
        linear-gradient(-120deg, rgba(15, 10, 25, 0.9) 0%, rgba(47, 23, 71, 0.72) 50%, rgba(61, 33, 99, 0.45) 100%),
        url("images/landing-hero.svg") center/cover no-repeat;
}

[dir="rtl"] .landing-hero__highlight {
    background: linear-gradient(-90deg, hsl(var(--brand-orange)), #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (max-width: 639px) {
    .storefront-header__inner {
        padding-inline: 0.75rem;
    }

    .storefront-header__bar {
        gap: 0.5rem !important;
    }

    .storefront-header__start,
    .storefront-header__actions {
        min-width: 0;
    }

    .storefront-header__actions {
        gap: 0.125rem !important;
        flex-wrap: nowrap;
    }

    .storefront-header__actions .mud-icon-button {
        padding: 0.375rem;
    }

    .storefront-header__actions .admin-language-switcher .mud-button-root {
        min-width: unset;
        padding-inline: 0.5rem;
    }

    .storefront-header__actions .storefront-header__sign-in {
        min-width: unset;
        padding-inline: 0.625rem;
        font-size: 0.8125rem;
    }

    .storefront-logo img {
        width: 2.25rem;
        height: 2.25rem;
    }

    .storefront-header__search-wrap--mobile,
    .storefront-header__search-wrap--mobile .header-search-shell,
    .storefront-header__search-wrap--mobile .header-search {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .landing-hero__content {
        padding-inline: 1rem;
        padding-block: 3.5rem;
    }

    .landing-hero__copy {
        max-width: 100%;
    }

    .landing-hero__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .landing-hero__trust {
        gap: 0.75rem;
    }

    .landing-stat {
        min-width: 0;
    }

    .landing-stat__label {
        overflow-wrap: anywhere;
    }

    .landing-stats__grid {
        gap: 1rem;
    }
}

/* Cart page */
.cart-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.cart-page__header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

.cart-page__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.cart-page__grand-total {
    text-align: end;
}

.cart-page__grand-total p {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.cart-page__grand-total strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.cart-page__loading {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
}

.cart-page__card {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.cart-page__empty-card {
    padding: 3rem 1.5rem;
    text-align: center;
}

.cart-page__empty-icon {
    width: 3rem;
    height: 3rem;
    color: hsl(var(--muted-foreground) / 0.4);
    margin-bottom: 1rem;
}

.cart-page__empty-card p {
    margin: 0;
    color: hsl(var(--muted-foreground));
}

.cart-page__outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cart-page__outline-btn:hover {
    background: hsl(var(--muted));
}

.cart-page__store-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.5rem 0.75rem;
}

.cart-page__store-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.cart-page__store-icon {
    color: hsl(var(--brand-primary));
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.cart-page__store-title h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    color: hsl(var(--foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-page__item-badge {
    flex-shrink: 0;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-page__store-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    flex-shrink: 0;
}

.cart-page__store-body {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cart-page__line {
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cart-page__line-info {
    min-width: 0;
    flex: 1;
}

.cart-page__line-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-page__line-variant {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: hsl(var(--brand-primary));
}

.cart-page__line-unit-price {
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.cart-page__line-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cart-page__qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cart-page__qty-btn:hover:not(:disabled) {
    background: hsl(var(--muted));
}

.cart-page__qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-page__qty-input {
    width: 4rem;
    height: 2rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
}

.cart-page__qty-input::-webkit-outer-spin-button,
.cart-page__qty-input::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.cart-page__line-total {
    width: 5rem;
    text-align: end;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.cart-page__remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: hsl(var(--destructive));
    cursor: pointer;
}

.cart-page__remove-btn:hover:not(:disabled) {
    background: hsl(var(--destructive) / 0.08);
    color: hsl(var(--destructive));
}

.cart-page__separator {
    border: none;
    height: 1px;
    margin: 0;
    background: hsl(var(--border));
}

.cart-page__store-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cart-page__store-footer-total {
    margin: 0;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.cart-page__checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background: hsl(var(--brand-primary));
    color: hsl(var(--brand-primary-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.cart-page__checkout-btn:hover:not(:disabled) {
    background: hsl(var(--brand-primary) / 0.9);
}

.cart-page__checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-page__checkout-icon {
    width: 1rem;
    height: 1rem;
}

[dir="rtl"] .cart-page__checkout-icon {
    transform: scaleX(-1);
}

@media (max-width: 767px) {
    .cart-page__line {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-page__line-actions {
        justify-content: space-between;
    }

    .cart-page__store-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-page__checkout-btn {
        width: 100%;
    }
}

/* Checkout page */
.checkout-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-page__loading {
    display: flex;
    justify-content: center;
    padding: 4rem 0;
}

.checkout-page__card {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.checkout-page__empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.checkout-page__empty-icon {
    width: 3rem;
    height: 3rem;
    color: hsl(var(--muted-foreground) / 0.4);
    margin-bottom: 1rem;
}

.checkout-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-page__header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.checkout-page__subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.checkout-page__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.15s;
}

.checkout-page__back-link:hover {
    background: hsl(var(--muted));
}

.checkout-page__back-icon {
    width: 1rem;
    height: 1rem;
}

[dir="rtl"] .checkout-page__back-icon {
    transform: scaleX(-1);
}

.checkout-page__error {
    border: 1px solid hsl(var(--destructive) / 0.2);
    background: hsl(var(--destructive) / 0.1);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--destructive));
}

.checkout-page__card-header {
    padding: 1.5rem 1.5rem 0.75rem;
}

.checkout-page__card-header h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.checkout-page__card-body {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-page__card-body--tight {
    gap: 0.5rem;
}

.checkout-page__line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.875rem;
}

.checkout-page__line-name {
    margin: 0;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.checkout-page__line-variant {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: hsl(var(--brand-primary));
}

.checkout-page__line-meta {
    margin: 0.125rem 0 0;
    color: hsl(var(--muted-foreground));
}

.checkout-page__radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.checkout-page__radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    cursor: pointer;
}

.checkout-page__radio input {
    accent-color: hsl(var(--brand-primary));
}

.checkout-page__section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-page__section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.checkout-page__address {
    width: 100%;
    text-align: start;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.625rem;
    background: hsl(var(--background));
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.checkout-page__address:hover {
    border-color: hsl(var(--muted-foreground) / 0.3);
}

.checkout-page__address--active {
    border-color: hsl(var(--brand-primary));
    background: hsl(var(--brand-primary) / 0.05);
}

.checkout-page__address-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.checkout-page__address-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.checkout-page__address-line {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.checkout-page__check-icon {
    color: hsl(var(--brand-primary));
}

.checkout-page__item-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    font-size: 0.625rem;
    font-weight: 600;
}

.checkout-page__select {
    width: 100%;
    height: 2.25rem;
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
}

.checkout-page__hint {
    margin: 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.checkout-page__hint a {
    color: hsl(var(--brand-primary));
    text-decoration: underline;
}

.checkout-page__hint--error {
    color: hsl(var(--destructive));
}

.checkout-page__payment {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid hsl(var(--brand-primary));
    background: hsl(var(--brand-primary) / 0.05);
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.checkout-page__payment-icon {
    color: hsl(var(--brand-primary));
}

.checkout-page__summary {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkout-page__summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.checkout-page__summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.checkout-page__place-btn {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background: hsl(var(--brand-primary));
    color: hsl(var(--brand-primary-foreground));
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.checkout-page__place-btn:hover:not(:disabled) {
    background: hsl(var(--brand-primary) / 0.9);
}

.checkout-page__place-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Storefront orders page ── */
.orders-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.orders-page__header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    text-align: start;
}

.orders-page__header {
    text-align: start;
}

.orders-page__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.orders-page__muted-text {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.orders-page__muted-text--xs {
    font-size: 0.75rem;
}

.orders-page__grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .orders-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .orders-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.orders-page__card {
    appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    background: hsl(var(--card));
    font: inherit;
    color: inherit;
    line-height: inherit;
    text-align: start;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.orders-page__card:hover {
    border-color: hsl(var(--border) / 0.9);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.06);
}

.orders-page__card:focus-visible {
    outline: 2px solid hsl(var(--brand-primary));
    outline-offset: 2px;
}

.orders-page__card-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 100%;
    padding: 1.25rem;
    text-align: start;
}

.orders-page__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.orders-page__seller {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.orders-page__seller-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
}

.orders-page__seller-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    flex-shrink: 0;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.orders-page__seller-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-page__card-body {
    width: 100%;
    text-align: start;
}

.orders-page__total {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: hsl(var(--foreground));
}

.orders-page__currency {
    font-size: 0.875rem;
    font-weight: 400;
    color: hsl(var(--muted-foreground));
}

.orders-page__meta {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: hsl(var(--muted-foreground));
}

.orders-page__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border));
}

.orders-page__order-number {
    font-size: 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: hsl(var(--muted-foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-page__date {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    white-space: nowrap;
    flex-shrink: 0;
}

.orders-page__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.orders-page__badge--primary {
    background: hsl(var(--brand-primary));
    color: hsl(var(--brand-primary-foreground));
}

.orders-page__badge--secondary {
    background: hsl(var(--muted));
    color: hsl(var(--foreground));
}

.orders-page__badge--destructive {
    background: hsl(var(--destructive));
    color: hsl(var(--destructive-foreground));
}

.orders-page__badge--outline {
    border: 1px solid hsl(var(--border));
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

.orders-page__detail-card {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.orders-page__detail-header {
    padding: 1.25rem 1.25rem 0;
}

.orders-page__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-inline-start: -0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.375rem 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    cursor: pointer;
}

.orders-page__back-btn:hover {
    background: hsl(var(--muted));
}

.orders-page__back-icon {
    width: 1rem;
    height: 1rem;
}

[dir="rtl"] .orders-page__back-icon {
    transform: scaleX(-1);
}

.orders-page__detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.orders-page__detail-seller {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.orders-page__detail-logo,
.orders-page__detail-logo-fallback {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.orders-page__detail-logo {
    object-fit: cover;
    border: 1px solid hsl(var(--border));
}

.orders-page__detail-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.orders-page__detail-heading h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-page__detail-heading p {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-page__detail-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.orders-page__detail-date {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.orders-page__detail-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.orders-page__fulfillment {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.orders-page__fulfillment-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.orders-page__address-label {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.orders-page__national-grid {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .orders-page__national-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.orders-page__national-address {
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.75rem;
    background: hsl(var(--muted) / 0.3);
}

.orders-page__national-address-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.orders-page__national-address-lines {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.orders-page__national-address-lines p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: hsl(var(--foreground));
}

.orders-page__items-section h3 {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.orders-page__items-list {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    overflow: hidden;
}

.orders-page__item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--border));
}

.orders-page__item-row:last-child {
    border-bottom: none;
}

.orders-page__item-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

.orders-page__item-total {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.orders-page__totals {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.orders-page__totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.orders-page__totals-row--total {
    font-size: 1rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.orders-page__totals-divider {
    height: 1px;
    background: hsl(var(--border));
    margin: 0.25rem 0;
}

.orders-page__footer-note {
    margin: 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: center;
}

.orders-page__footer-note strong {
    color: hsl(var(--foreground));
}

.orders-page__outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background: transparent;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.orders-page__outline-btn:hover:not(:disabled) {
    background: hsl(var(--muted));
}

.orders-page__outline-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.orders-page__outline-btn--sm {
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
}

.orders-page__detail-loading {
    text-align: center;
    margin-top: 1rem;
}

/* ── Storefront addresses page ── */
.addresses-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.addresses-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.addresses-page__header h1 {
    margin: 0;
}

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

.addresses-page__card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid hsl(var(--brand-border));
    border-radius: 0.75rem;
    background: white;
}

.addresses-page__card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.65rem;
    background: hsl(var(--brand-muted));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--brand-primary));
    flex-shrink: 0;
}

.addresses-page__card-body {
    flex: 1;
    min-width: 0;
}

.addresses-page__card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-weight: 700;
    color: #1a1a2e;
}

.addresses-page__default-badge {
    display: inline-flex;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: hsl(var(--brand-muted));
    font-size: 0.72rem;
    font-weight: 600;
    color: hsl(var(--brand-primary));
}

.addresses-page__line,
.addresses-page__phone {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--brand-muted-foreground));
}

.addresses-page__phone {
    font-size: 0.8rem;
}

.addresses-page__card-actions {
    display: flex;
    gap: 0.15rem;
    flex-shrink: 0;
}

.addresses-page__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--brand-primary));
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.addresses-page__back:hover {
    text-decoration: underline;
}

.addresses-page__form {
    max-width: 40rem;
}

.addresses-page__form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

/* ── Storefront RFQ page ── */
.rfq-page {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.rfq-page__header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    text-align: start;
}

.rfq-page__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: start;
}

.rfq-page__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--muted) / 0.35);
    width: fit-content;
    max-width: 100%;
}

.rfq-page__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.rfq-page__tab--active {
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
}

.rfq-page__tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    border-radius: 9999px;
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    font-size: 0.6875rem;
    font-weight: 600;
}

.rfq-page__card {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    overflow: hidden;
}

.rfq-page__empty {
    padding: 3rem 1.5rem;
    text-align: center;
}

.rfq-page__empty-icon {
    width: 3rem;
    height: 3rem;
    color: hsl(var(--muted-foreground) / 0.4);
    margin-bottom: 1rem;
}

.rfq-page__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 0;
    color: hsl(var(--muted-foreground));
}

.rfq-page__store-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}

.rfq-page__store-title {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.rfq-page__store-title h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.rfq-page__store-icon {
    color: hsl(var(--brand-primary));
    flex-shrink: 0;
}

.rfq-page__item-badge {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    font-size: 0.75rem;
    font-weight: 500;
}

.rfq-page__store-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rfq-page__line {
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rfq-page__line-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.rfq-page__line-info {
    min-width: 0;
    flex: 1;
}

.rfq-page__line-name-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.rfq-page__line-type-icon {
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
}

.rfq-page__line-type-icon--service {
    color: hsl(var(--brand-primary));
}

.rfq-page__line-name {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
}

.rfq-page__line-variant {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    color: hsl(var(--brand-primary));
}

.rfq-page__line-ref {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.rfq-page__line-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
}

.rfq-page__qty-btn,
.rfq-page__remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: background 0.15s;
}

.rfq-page__remove-btn {
    border: none;
    color: hsl(var(--destructive));
}

.rfq-page__qty-btn:hover:not(:disabled),
.rfq-page__remove-btn:hover:not(:disabled) {
    background: hsl(var(--muted));
}

.rfq-page__qty-btn:disabled,
.rfq-page__remove-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rfq-page__qty-input {
    width: 4rem;
    height: 2rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
}

.rfq-page__qty-input::-webkit-outer-spin-button,
.rfq-page__qty-input::-webkit-inner-spin-button {
    appearance: none;
}

.rfq-page__line-unit {
    width: 3rem;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: end;
}

.rfq-page__notes-input {
    width: 100%;
    min-height: 4rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 0.75rem;
    font-family: inherit;
    resize: vertical;
}

.rfq-page__notes-input:focus {
    outline: 2px solid hsl(var(--brand-primary) / 0.35);
    outline-offset: 1px;
}

.rfq-page__divider {
    height: 1px;
    background: hsl(var(--border));
    margin: 0.25rem 0;
}

.rfq-page__submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

.rfq-page__muted-text {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    text-align: start;
}

.rfq-page__muted-text--xs {
    font-size: 0.75rem;
}

.rfq-page__primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background: hsl(var(--brand-primary));
    color: hsl(var(--brand-primary-foreground));
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.rfq-page__primary-btn:hover:not(:disabled) {
    background: hsl(var(--brand-primary) / 0.9);
}

.rfq-page__primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rfq-page__primary-btn--link {
    margin-top: 0.5rem;
    width: fit-content;
}

.rfq-page__outline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background: transparent;
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.rfq-page__outline-btn:hover:not(:disabled) {
    background: hsl(var(--muted));
}

.rfq-page__outline-btn--sm {
    font-size: 0.8125rem;
    padding: 0.25rem 0.625rem;
}

.rfq-page__submitted-card .rfq-page__card-body {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rfq-page__submitted-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid hsl(var(--border));
}

.rfq-page__submitted-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.rfq-page__submitted-title h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.rfq-page__submitted-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rfq-page__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.rfq-page__badge--draft {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
}

.rfq-page__badge--submitted {
    background: rgb(219 234 254);
    color: rgb(30 64 175);
}

.rfq-page__badge--quoted {
    background: rgb(254 243 199);
    color: rgb(146 64 14);
}

.rfq-page__badge--converted {
    background: hsl(var(--brand-primary) / 0.12);
    color: hsl(var(--brand-primary));
    border: 1px solid hsl(var(--brand-primary) / 0.25);
}

.rfq-page__badge--cancelled {
    background: hsl(var(--destructive) / 0.1);
    color: hsl(var(--destructive));
}

.rfq-page__quoted-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
}

.rfq-page__quote-line-price {
    text-align: end;
    flex-shrink: 0;
}

.rfq-page__quote-line-price p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.rfq-page__quote-box {
    border: 1px solid hsl(var(--brand-primary) / 0.2);
    border-radius: 0.5rem;
    background: hsl(var(--brand-primary) / 0.05);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rfq-page__quote-box-title {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
}

.rfq-page__quote-total {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
}

.rfq-page__awaiting {
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.rfq-page__awaiting-icon {
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.25rem;
}

.rfq-page__timeline-toggle {
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--border) / 0.6);
}

.rfq-page__timeline-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.375rem 0.25rem;
    border: none;
    background: transparent;
    color: hsl(var(--foreground));
    font-size: 0.75rem;
    cursor: pointer;
}

.rfq-page__timeline-btn span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.rfq-page__timeline {
    margin: 0.75rem 0 0;
    padding-inline-start: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rfq-page__timeline li {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
}

.rfq-page__timeline li strong {
    display: block;
    color: hsl(var(--foreground));
    font-weight: 600;
}

/* Auth shell + page (Lovable parity) */
.auth-shell {
    min-height: 100vh;
}

.auth-shell__main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    min-width: 0;
}

.auth-page {
    width: 100%;
    max-width: 28rem;
}

.auth-page--centered {
    display: flex;
    justify-content: center;
}

.auth-page__card {
    width: 100%;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    background: hsl(var(--card));
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 1.5rem;
}

.auth-page__card--center {
    text-align: center;
}

.auth-page__header {
    margin-bottom: 1.25rem;
}

.auth-page__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    line-height: 1.2;
}

.auth-page__subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.5;
}

.auth-page__hero-icon {
    width: 3rem !important;
    height: 3rem !important;
    color: hsl(var(--brand-primary));
    margin-bottom: 0.5rem;
}

.auth-page__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-page__name-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.auth-page__business-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .auth-page__business-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.auth-page__input,
.auth-page__select {
    width: 100%;
    border: 1px solid hsl(var(--input));
    border-radius: 0.375rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    box-sizing: border-box;
}

.auth-page__input:focus,
.auth-page__select:focus {
    outline: 2px solid hsl(var(--brand-primary) / 0.35);
    outline-offset: 1px;
    border-color: hsl(var(--brand-primary));
}

.auth-page__input::placeholder {
    color: hsl(var(--muted-foreground));
}

.auth-page__field-label {
    display: block;
    text-align: start;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.375rem;
}

.auth-page__required {
    color: hsl(0 84% 60%);
    margin-inline-start: 0.125rem;
}

.auth-page__hint {
    margin: -0.5rem 0 0;
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-align: start;
}

.auth-page__hint--tight {
    margin-top: 0.25rem;
}

.auth-page__panel {
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-page__panel-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-align: start;
}

.auth-page__account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.auth-page__account-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    padding: 0.625rem;
    font-size: 0.875rem;
    cursor: pointer;
    text-align: start;
    color: hsl(var(--foreground));
}

.auth-page__account-option input {
    margin: 0;
}

.auth-page__account-option--active {
    border-color: hsl(var(--brand-primary));
    background: hsl(var(--brand-primary) / 0.05);
}

.auth-page__error {
    margin: 0;
    font-size: 0.875rem;
    color: hsl(0 84% 60%);
}

.auth-page__primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    border: none;
    border-radius: 0.375rem;
    background: hsl(var(--brand-primary));
    color: hsl(var(--brand-primary-foreground));
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.auth-page__primary-btn:hover:not(:disabled) {
    filter: brightness(1.05);
}

.auth-page__primary-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-page__links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.auth-page__link-btn {
    border: none;
    background: transparent;
    color: hsl(var(--brand-primary));
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0;
    cursor: pointer;
    text-align: start;
}

.auth-page__link-btn:hover {
    text-decoration: underline;
}
