:root {
    --brand-primary: #FFD333;
    --brand-dark: #20252A;
    --brand-ink: #3D464D;
    --admin-bg: #EEF0F3;
    --admin-surface: #FFFFFF;
    --admin-surface-soft: #F8F9FB;
    --admin-line: rgba(32, 37, 42, 0.10);
    --admin-muted: #6C757D;
    --admin-shadow: 0 18px 42px rgba(32, 37, 42, 0.10);
    --admin-shadow-soft: 0 10px 26px rgba(32, 37, 42, 0.08);
}

html.store-settings-pending body {
    opacity: 0;
}

body {
    transition: opacity 0.12s ease;
}

.btn-primary {
    border-color: var(--brand-primary) !important;
    background-color: var(--brand-primary) !important;
    color: var(--brand-dark) !important;
}

.btn-dark {
    border-color: var(--brand-dark) !important;
    background-color: var(--brand-dark) !important;
}

.bg-dark {
    background-color: var(--brand-dark) !important;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}

.brand-mark__main,
.brand-mark__accent {
    display: inline-block;
    padding: 10px 12px;
    font-size: 2rem;
    text-transform: uppercase;
}

.brand-mark__main {
    color: var(--brand-primary);
    background: var(--brand-ink);
}

.brand-mark__accent {
    color: var(--brand-ink);
    background: var(--brand-primary);
}

.brand-mark--mobile .brand-mark__main,
.brand-mark--mobile .brand-mark__accent {
    font-size: 1.35rem;
}

.hero-shop {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: var(--brand-ink);
}

.hero-shop img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 24, 28, 0.48);
}

.hero-shop__content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: 42px 44px;
    color: #fff;
}

.hero-shop__content h1 {
    font-size: 3rem;
    color: #fff;
}

.hero-shop__content p {
    font-size: 1.15rem;
}

.store-search--desktop-below {
    display: none;
}

body[data-page="home"] .row.align-items-center.bg-light,
body[data-page="detail"] .row.align-items-center.bg-light,
body[data-page="shop"] .row.align-items-center.bg-light {
    justify-content: space-between;
}

body[data-page="home"] .store-search-input,
body[data-page="shop"] .store-search-input {
    min-height: 42px;
}

.store-footer [data-footer-address] {
    white-space: pre-line;
}

.store-note,
.admin-card,
.metric-card,
.login-panel {
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
}

.store-note {
    min-height: 200px;
    padding: 30px;
}

.store-note i {
    font-size: 2rem;
    margin-bottom: 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-list {
    display: grid;
    gap: 8px;
}

.filter-chip {
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #3D464D;
    border-radius: 4px;
    padding: 8px 12px;
    text-align: left;
}

.filter-chip.active {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.product-img-fixed {
    aspect-ratio: 1 / 1;
    background: #fff;
}

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

.detail-media-col,
.detail-info-col {
    margin-bottom: 24px;
}

.detail-product-image {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(32, 37, 42, 0.12);
}

.detail-product-image img {
    object-fit: contain;
}

.detail-media-frame {
    position: relative;
}

.detail-gallery {
    display: grid;
    grid-auto-columns: 76px;
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 2px 4px;
}

.detail-gallery button {
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    padding: 0;
}

.detail-gallery button.active {
    border-color: var(--brand-primary);
}

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

.detail-card {
    height: 100%;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(32, 37, 42, 0.08);
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(32, 37, 42, 0.08);
}

.detail-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.detail-kicker span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 211, 51, 0.18);
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.detail-card h1 {
    margin-bottom: 12px;
    color: var(--brand-dark);
    font-size: 2rem;
    line-height: 1.08;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.detail-tags span {
    padding: 7px 10px;
    border: 1px solid rgba(32, 37, 42, 0.1);
    border-radius: 8px;
    color: #5B6570;
    font-size: 0.86rem;
    font-weight: 700;
}

.detail-color-options {
    margin: 4px 0 16px;
}

.detail-color-options strong {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-dark);
}

.detail-color-options div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-color-options button {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    border: 1px solid #d9dde4;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    padding: 6px 11px;
    font-weight: 800;
}

.detail-color-options button i {
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--swatch, #d9dde4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.detail-color-options button small {
    font-size: 10px;
    font-weight: 700;
    opacity: 0.75;
}

.detail-color-options button span {
    line-height: 1;
}

.detail-color-options button:disabled {
    opacity: 0.45;
}

.detail-color-options button.active {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
}

.detail-variant-builder {
    display: grid;
    gap: 10px;
    margin: 8px 0 18px;
    padding: 12px;
    border: 1px solid rgba(32, 37, 42, 0.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(19, 25, 34, 0.07);
}

.detail-variant-builder__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.detail-variant-builder__header strong {
    color: var(--brand-dark);
    font-size: 0.98rem;
}

.detail-variant-builder__header span {
    color: #687281;
    font-size: 0.82rem;
}

.detail-variant-builder__list {
    display: grid;
    gap: 8px;
}

.detail-variant-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border: 1px solid rgba(32, 37, 42, 0.08);
    border-radius: 12px;
    background: #f8f9fb;
}

.detail-variant-row__info {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
}

.detail-variant-row__info i {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--swatch, #d9dde4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.detail-variant-row__info span {
    display: grid;
    min-width: 0;
}

.detail-variant-row__info strong,
.detail-variant-row__info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-variant-row__info strong {
    color: var(--brand-dark);
    font-size: 0.9rem;
}

.detail-variant-row__info small {
    color: #6C757D;
    font-size: 0.76rem;
}

.detail-variant-stepper {
    display: grid;
    grid-template-columns: 34px 42px 34px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(32, 37, 42, 0.12);
    border-radius: 999px;
    background: #fff;
}

.detail-variant-stepper button,
.detail-variant-stepper input {
    height: 34px;
    border: 0;
    background: transparent;
    text-align: center;
    color: var(--brand-dark);
    font-weight: 900;
}

.detail-variant-stepper input {
    width: 42px;
    border-left: 1px solid rgba(32, 37, 42, 0.1);
    border-right: 1px solid rgba(32, 37, 42, 0.1);
}

.detail-add-selected {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--brand-dark);
    color: #fff;
    font-weight: 900;
}

.detail-price {
    margin-bottom: 18px;
    color: var(--brand-dark);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
}

.detail-description {
    margin-bottom: 20px;
    color: #59636E;
    font-size: 1rem;
    line-height: 1.65;
}

.detail-benefits {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-benefits div {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3D464D;
    font-weight: 700;
}

.detail-benefits i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 211, 51, 0.22);
    color: var(--brand-dark);
}

.detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 18px;
}

.detail-action-primary,
.detail-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none !important;
}

.detail-action-primary {
    background: #25D366;
    color: #071326 !important;
}

.detail-action-secondary {
    border: 1px solid rgba(32, 37, 42, 0.14);
    background: #fff;
    color: var(--brand-dark);
}

.detail-status {
    margin: 10px 0 0;
    color: #6C757D;
    font-size: 0.82rem;
}

.detail-note {
    margin: 16px 0 0;
    color: #79838D;
    font-size: 0.82rem;
    line-height: 1.45;
}

.detail-related {
    margin-top: 10px;
}

.detail-related__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.detail-related__header h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1.35rem;
    font-weight: 900;
}

.detail-related__header a {
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.detail-related__rail {
    display: grid;
    grid-auto-columns: minmax(150px, 180px);
    grid-auto-flow: column;
    gap: 14px;
    overflow-x: auto;
    padding: 2px 2px 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(32, 37, 42, 0.08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(32, 37, 42, 0.08);
    scroll-snap-align: start;
}

.related-card__image {
    display: block;
    aspect-ratio: 1 / 0.86;
    background: #f6f6f6;
}

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

.related-card__title {
    display: -webkit-box;
    min-height: 38px;
    margin: 10px 10px 4px;
    overflow: hidden;
    color: var(--brand-dark);
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-card__meta {
    margin: 0 10px 4px;
    overflow: hidden;
    color: #7B858D;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-card__price {
    margin: 0 10px 12px;
    color: var(--brand-dark);
    font-size: 1.05rem;
    font-weight: 900;
}

@media (min-width: 992px) {
    body[data-page="detail"] main.container-fluid {
        max-width: 1320px;
        padding-top: 8px;
    }

    body[data-page="detail"] #detail-root {
        align-items: flex-start;
    }

    body[data-page="detail"] .detail-media-col {
        flex: 0 0 46%;
        max-width: 46%;
    }

    body[data-page="detail"] .detail-info-col {
        flex: 0 0 54%;
        max-width: 54%;
    }

    body[data-page="detail"] .detail-product-image {
        height: min(620px, calc(100vh - 190px));
        min-height: 460px;
        aspect-ratio: auto;
    }

    body[data-page="detail"] .detail-card {
        height: auto;
        min-height: 0;
        padding: 24px;
    }

    body[data-page="detail"] .detail-card h1 {
        font-size: 1.78rem;
    }

    body[data-page="detail"] .detail-price {
        font-size: 2rem;
    }

    body[data-page="detail"] .detail-description {
        max-width: 720px;
    }

    body[data-page="detail"] .detail-related {
        margin-top: 2px;
    }

    body[data-page="detail"] .detail-related__rail {
        grid-auto-columns: minmax(160px, 190px);
    }
}

.product-meta {
    min-height: 44px;
}

.marketplace-page {
    padding-bottom: 24px;
}

.market-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.market-toolbar__controls {
    min-width: 180px;
}

.market-filter-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
}

.market-filter-row .filter-chip {
    white-space: nowrap;
    padding: 7px 11px;
}

.category-menu {
    position: relative;
}

.category-menu__button {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #3D464D;
    padding: 10px 12px;
    font-weight: 700;
}

.admin-footer-access {
    padding-top: 20px;
    text-align: right;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}

.market-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(32, 37, 42, 0.07);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(32, 37, 42, 0.06);
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.market-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(32, 37, 42, 0.10);
}

.market-card__image {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1.02;
    background: #F5F5F5;
    overflow: hidden;
}

.product-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    max-width: calc(100% - 20px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand-dark);
    padding: 5px 9px;
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
}

.product-ribbon.is-offer {
    background: var(--brand-primary);
}

.market-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.market-card:hover .market-card__image img {
    transform: scale(1.04);
}

.market-card__body {
    display: grid;
    gap: 3px;
    padding: 8px;
}

.market-card__title {
    min-height: 34px;
    color: #3D464D;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.market-card__meta {
    min-height: 14px;
    color: #6C757D;
    font-size: 0.7rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.market-card__price {
    color: #111;
    font-size: 1.42rem;
    font-weight: 500;
    line-height: 1;
}

.market-card__price span {
    margin-right: 2px;
    font-size: 0.78rem;
}

.market-card__price sup {
    top: -0.45em;
    margin-left: 1px;
    font-size: 0.66rem;
}

.market-card__old-price {
    color: #8D969E;
    font-size: 0.72rem;
    line-height: 1;
    text-decoration: line-through;
}

.market-card__quick {
    display: grid;
    grid-template-columns: repeat(2, 32px);
    gap: 6px;
    margin-top: 2px;
}

.market-icon-button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(32, 37, 42, 0.1);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
}

.market-icon-button.active,
.market-icon-button:focus {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    outline: 0;
}

.market-card__actions {
    display: none;
    grid-template-columns: 1fr 34px;
    gap: 6px;
    align-items: center;
}

.detail-offer-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--brand-primary);
    color: var(--brand-dark);
    padding: 5px 10px;
    font-size: 0.78rem;
    font-weight: 900;
}

.detail-old-price {
    margin: -10px 0 16px;
    color: #87909A;
    font-weight: 700;
    text-decoration: line-through;
}

.detail-secondary-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.detail-secondary-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border: 1px solid rgba(32, 37, 42, 0.1);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.promo-products {
    margin-top: -2px;
}

.promo-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.promo-products__header h2 {
    margin: 0;
    color: var(--brand-dark);
    font-size: 1.25rem;
    font-weight: 900;
}

.promo-products__header a {
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.promo-products__rail {
    display: grid;
    grid-auto-columns: minmax(210px, 280px);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.promo-card {
    position: relative;
    display: grid;
    min-height: 156px;
    align-content: end;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    padding: 16px;
    text-decoration: none !important;
    scroll-snap-align: start;
    box-shadow: 0 14px 34px rgba(32, 37, 42, 0.14);
}

.promo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.78));
}

.promo-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-card span,
.promo-card strong,
.promo-card b {
    position: relative;
    z-index: 1;
}

.promo-card span {
    width: fit-content;
    margin-bottom: 6px;
    border-radius: 999px;
    background: var(--brand-primary);
    color: var(--brand-dark);
    padding: 4px 8px;
    font-size: 0.68rem;
    font-weight: 900;
}

.promo-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.promo-card b {
    margin-top: 4px;
    font-size: 1.15rem;
}

.quote-bar {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 1040;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    width: min(calc(100% - 28px), 620px);
    transform: translateX(-50%);
    border: 1px solid rgba(32, 37, 42, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    padding: 10px;
    box-shadow: 0 18px 44px rgba(32, 37, 42, 0.2);
    backdrop-filter: blur(14px);
}

.quote-bar[hidden] {
    display: none;
}

.quote-bar div {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.quote-bar strong,
.quote-bar span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-bar span {
    color: #69727A;
    font-size: 0.82rem;
}

.quote-bar a,
.quote-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    padding: 0 13px;
    font-weight: 900;
}

.quote-bar a {
    background: #25D366;
    color: #071326;
    text-decoration: none;
}

.quote-bar button {
    width: 42px;
    background: var(--brand-dark);
    color: #fff;
}

.market-card__actions .btn {
    min-height: 30px;
    padding: 4px 8px;
}

.load-more-products {
    display: block;
    width: min(100%, 320px);
    margin: 18px auto 0;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    color: #3D464D;
    padding: 10px 14px;
    font-weight: 700;
}

.load-more-products:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.catalog-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px auto 0;
    padding: 0 16px;
}

.catalog-pager button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #d8d8d8;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    padding: 8px 16px;
    font-weight: 800;
}

.catalog-pager button:not(:disabled):hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
}

.catalog-pager button:disabled {
    opacity: 0.45;
}

.catalog-pager strong {
    color: var(--brand-dark);
    font-size: 14px;
    white-space: nowrap;
}

.empty-state {
    padding: 48px 24px;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    text-align: center;
}

.empty-state i {
    display: block;
    margin-bottom: 16px;
    color: var(--brand-primary);
    font-size: 2.2rem;
}

.login-view {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #F5F5F5;
}

.login-panel {
    width: min(100%, 430px);
    padding: 32px;
}

.auth-loading-panel {
    text-align: center;
}

.auth-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 16px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--brand-primary);
    border-radius: 999px;
    animation: auth-spin 0.8s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.admin-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(238, 240, 243, 0.92) 280px),
        var(--admin-bg);
}

.admin-topbar {
    margin: 18px auto 0;
    width: min(calc(100% - 32px), 1180px);
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: var(--admin-shadow-soft);
    backdrop-filter: blur(14px);
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

.admin-user-email {
    margin-right: 8px;
}

.admin-card {
    padding: 24px;
    border-color: var(--admin-line);
    border-radius: 8px;
    box-shadow: var(--admin-shadow-soft);
}

.admin-dashboard > .px-xl-5 {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.admin-shell .form-control,
.admin-shell .custom-select {
    min-height: 44px;
    border-color: rgba(32, 37, 42, 0.14);
    border-radius: 8px;
    background-color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-shell .form-control:focus,
.admin-shell .custom-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 22%, transparent);
}

.admin-shell .btn {
    border-radius: 8px;
    font-weight: 700;
}

.admin-metric-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
    margin-left: 0;
    margin-right: 0;
}

.admin-metric-row > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    margin-bottom: 0 !important;
}

.metric-card {
    position: relative;
    min-height: 78px;
    padding: 14px;
    overflow: hidden;
    border-color: var(--admin-line);
    border-radius: 8px;
    box-shadow: var(--admin-shadow-soft);
}

.metric-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: var(--brand-primary);
}

.metric-card span {
    display: block;
    color: var(--admin-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.15;
}

.metric-card strong {
    display: block;
    color: var(--brand-dark);
    margin-top: 6px;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.metric-card--money strong {
    font-size: 1.55rem;
    line-height: 1.12;
}

.admin-search {
    max-width: 260px;
}

.admin-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: #fff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
}

.admin-tab {
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #3D464D;
    padding: 10px 16px;
    font-weight: 700;
}

.admin-tab.active {
    background: #FFD333;
}

.admin-command-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 12px;
}

.admin-command {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    color: var(--brand-ink);
    padding: 16px;
    text-align: left;
    box-shadow: var(--admin-shadow-soft);
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.admin-command:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--admin-line));
    box-shadow: var(--admin-shadow);
    transform: translateY(-1px);
}

.admin-command i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--brand-primary);
    color: var(--brand-dark);
    font-size: 1.25rem;
}

.admin-command strong,
.admin-command small {
    display: block;
}

.admin-command small {
    color: #6C757D;
}

.admin-command--primary {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand-dark) 94%, #fff), var(--brand-dark));
    color: #fff;
    border-color: transparent;
}

.admin-command--primary small {
    color: rgba(255, 255, 255, 0.72);
}

.admin-modal-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.app-screen-header {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px 0 14px;
    background: rgba(238, 240, 243, 0.92);
    backdrop-filter: blur(14px);
}

.app-screen-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(32, 37, 42, 0.14), transparent);
}

.app-screen-header__title {
    min-width: 0;
}

.app-screen-header__title h2,
.app-screen-header__title p {
    margin: 0;
}

.app-screen-header__title h2 {
    color: #20252A;
    font-size: 1.35rem;
    line-height: 1.05;
}

.app-screen-header__title p {
    margin-top: 4px;
    color: #6C757D;
    font-size: 0.88rem;
    line-height: 1.25;
}

.screen-back-button,
.screen-icon-action {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    color: #20252A;
    box-shadow: var(--admin-shadow-soft);
}

.screen-back-button {
    background: var(--brand-dark);
    color: var(--brand-primary);
}

.screen-header-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    background: #fff;
    color: #20252A;
    padding: 0 12px;
    font-weight: 700;
    font-size: 0.76rem;
    box-shadow: var(--admin-shadow-soft);
}

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

.inventory-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}

.inventory-list {
    display: grid;
    gap: 8px;
}

.inventory-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
    border: 1px solid rgba(32, 37, 42, 0.08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(32, 37, 42, 0.055);
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.inventory-card:hover {
    border-color: color-mix(in srgb, var(--brand-primary) 32%, rgba(32, 37, 42, 0.10));
    box-shadow: var(--admin-shadow-soft);
    transform: translateY(-1px);
}

.inventory-card > img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 7px;
    background: #F5F5F5;
    box-shadow: inset 0 0 0 1px rgba(32, 37, 42, 0.06);
}

.inventory-card__body {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.inventory-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.inventory-card__top strong,
.inventory-card__top span {
    display: block;
}

.inventory-card__top strong {
    color: var(--brand-dark);
    font-size: 0.98rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inventory-card__top span,
.inventory-card__meta {
    color: #6C757D;
    font-size: 0.74rem;
}

.inventory-card__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 5px 8px;
    align-items: center;
}

.inventory-card__meta b {
    color: #111;
    white-space: nowrap;
}

.inventory-card__finance {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    color: var(--admin-muted);
    font-size: 0.68rem;
}

.inventory-card__finance span,
.inventory-card__finance b {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    background: var(--admin-surface-soft);
    padding: 0 7px;
    white-space: nowrap;
}

.inventory-card__finance b {
    color: var(--brand-dark);
}

.inventory-card__finance span:first-child {
    color: #59636D;
}

.inventory-card__finance span:first-child:has(+ span) {
    border: 1px solid rgba(32, 37, 42, 0.04);
}

.inventory-card__quick-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.inventory-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #E9ECEF;
    color: #3D464D;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.inventory-status.is-visible {
    background: #e8f7ee;
    color: #18833d;
}

.inventory-status.is-hidden {
    background: #edf0f2;
    color: #6C757D;
}

.inventory-icon-button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(32, 37, 42, 0.12);
    border-radius: 8px;
    background: #fff;
    color: #20252A;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.inventory-icon-button:hover {
    border-color: var(--brand-primary);
    background: color-mix(in srgb, var(--brand-primary) 12%, #fff);
    transform: translateY(-1px);
}

.inventory-icon-button--danger {
    border-color: #f1c7cf;
    color: #dc3545;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
}

.summary-row--total {
    border-bottom: 0;
    font-size: 1.2rem;
    color: #3D464D;
}

.invoice-line-product {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 150px;
}

.invoice-line-product img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    border-radius: 6px;
    background: #F5F5F5;
}

.invoice-line-product span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.invoice-line-product strong {
    color: #20252A;
    line-height: 1.15;
}

.invoice-line-product small {
    color: #6C757D;
}

.invoice-actions {
    gap: 12px;
}

.modal-results {
    max-height: 310px;
    overflow: auto;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.inline-search-results {
    display: none;
    max-height: 260px;
    overflow: auto;
    margin-top: 8px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(32, 37, 42, 0.12);
}

.inline-search-results.is-open {
    display: block;
}

.app-modal--sheet {
    place-items: stretch center;
    padding: 18px;
}

.app-modal__content--search {
    width: min(100%, 720px);
    max-height: calc(100vh - 36px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 12px;
    border-radius: 8px;
    padding: 16px;
}

.modal-search-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.modal-search-header h2,
.modal-search-header p {
    margin: 0;
}

.modal-search-header h2 {
    color: var(--brand-dark);
    font-size: 1.28rem;
    line-height: 1.1;
}

.modal-search-header p {
    margin-top: 3px;
    color: #6C757D;
    font-size: 0.86rem;
}

.modal-search-input {
    min-height: 48px;
    border-radius: 8px;
    font-size: 1.02rem;
}

.modal-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    align-items: stretch;
}

.modal-search-row .modal-search-input {
    min-width: 0;
}

.modal-add-button {
    width: 48px;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--brand-primary);
    color: var(--brand-dark);
    font-size: 1.05rem;
    box-shadow: 0 10px 22px rgba(32, 37, 42, 0.14);
}

.modal-add-button:focus,
.modal-add-button:hover {
    outline: none;
    filter: brightness(0.96);
}

.modal-search-results {
    min-height: 0;
    overflow: auto;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #fff;
}

.search-result-item,
.modal-result-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid #eeeeee;
    background: #fff;
    padding: 10px;
    text-align: left;
}

.search-result-item:hover {
    background: #F5F5F5;
}

.search-result-item img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 4px;
}

.inline-search-results .search-result-item {
    min-height: 62px;
}

.inline-search-results .search-result-item:last-child {
    border-bottom: 0;
}

.search-result-item span,
.selected-product-card div {
    display: grid;
    gap: 2px;
}

.search-result-item small,
.selected-product-card span,
.selected-client-card span,
.selected-client-card small {
    color: #6C757D;
}

.search-result-empty {
    padding: 12px;
    color: #6C757D;
}

.selected-product-card {
    display: grid;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: #F5F5F5;
    border-radius: 6px;
}

.selected-product-card__summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.selected-product-card__summary img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 4px;
}

.invoice-variant-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.invoice-variant-option {
    position: relative;
    display: grid;
    grid-template-columns: 44px 16px 1fr;
    align-items: center;
    gap: 8px;
    min-height: 58px;
    border: 1px solid #e2e6ec;
    border-radius: 12px;
    background: #fff;
    padding: 7px;
    text-align: left;
    color: #20252A;
    box-shadow: 0 8px 18px rgba(24, 32, 42, 0.06);
}

.invoice-variant-option.active {
    border-color: var(--brand-dark);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand-dark) 18%, transparent), 0 12px 24px rgba(24, 32, 42, 0.12);
}

.invoice-variant-option:disabled {
    opacity: 0.45;
    box-shadow: none;
}

.invoice-variant-option img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    background: #eef0f4;
}

.invoice-variant-option__swatch {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--swatch, #d9dde4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.invoice-variant-option span:last-child {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.invoice-variant-option strong,
.invoice-variant-option small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-variant-option strong {
    font-size: 13px;
    line-height: 1.15;
}

.invoice-variant-option small {
    color: #6C757D;
    font-size: 11px;
}

.selected-client-card {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    padding: 10px;
    background: #F5F5F5;
    border-radius: 6px;
}

.selected-client-card strong {
    color: #20252A;
}

.selected-client-card i {
    width: 14px;
    color: var(--brand-primary);
}

.invoice-mobile-total {
    display: none;
}

.app-modal__content--form {
    width: min(100%, 520px);
    max-height: calc(100vh - 36px);
    display: grid;
    gap: 12px;
    border-radius: 8px;
    padding: 16px;
}

.client-create-form {
    align-content: start;
    gap: 10px;
}

.client-create-form .form-group {
    margin-bottom: 4px;
}

.client-create-form label {
    margin-bottom: 6px;
}

.client-create-form .form-control {
    min-height: 46px;
}

.client-create-form textarea.form-control {
    min-height: 92px;
}

.client-create-form #save-client-data {
    min-height: 48px;
    margin-top: 6px;
}

.history-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    padding: 10px 0;
    border-top: 1px solid #eeeeee;
}

.history-item span {
    color: #6C757D;
}

.history-item b {
    grid-row: span 2;
    align-self: center;
    color: #3D464D;
}

.product-preview {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

.product-gallery-manager {
    display: grid;
    gap: 12px;
    margin: 10px 0 16px;
}

.product-gallery-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
}

.product-gallery-item img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: #f2f3f5;
}

.product-gallery-item__body label {
    margin-bottom: 4px;
    color: #687281;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.variant-color-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.variant-color-picker {
    width: 44px;
    height: 34px;
    border: 1px solid #d8dde5;
    border-radius: 10px;
    background: #fff;
    padding: 3px;
}

.product-gallery-item__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.variant-swatches {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
}

.variant-swatches span {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--swatch, #d9dde4);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.variant-swatches b {
    color: #687281;
    font-size: 12px;
}

.market-card__swatches {
    margin: 4px 0 2px;
}

.notification-optin-button {
    position: fixed;
    right: 16px;
    bottom: 88px;
    z-index: 1040;
    border: 0;
    border-radius: 999px;
    background: var(--brand-dark);
    color: #fff;
    padding: 11px 16px;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.notification-optin-button:disabled {
    opacity: 0.72;
}

@media (max-width: 767.98px) {
    .notification-optin-button {
        right: 12px;
        bottom: 76px;
        padding: 9px 12px;
        font-size: 12px;
    }

    .stats-card-header {
        display: grid;
        gap: 4px;
    }

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

    .stats-day-row > strong {
        grid-column: 1 / -1;
    }

    .stats-day-row span,
    .stats-product-row span {
        white-space: normal;
    }
}

.table-product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-product img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    background: #F5F5F5;
}

.app-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.55);
}

.app-modal__content {
    width: min(100%, 440px);
    max-height: 90vh;
    overflow: auto;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
}

.app-modal__content--wide {
    width: min(100%, 920px);
}

.client-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.delete-warning {
    margin-bottom: 14px;
    border-left: 4px solid #dc3545;
    border-radius: 4px;
    background: #fff3f4;
    color: #7a1f2a;
    padding: 12px;
    font-weight: 700;
}

.appearance-preview {
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    background: #fff;
}

.appearance-preview img {
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    background: #F5F5F5;
}

.theme-swatch-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.theme-swatch {
    display: grid;
    gap: 8px;
}

.theme-swatch input[type="color"] {
    width: 100%;
    height: 46px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}

.admin-screen {
    position: fixed;
    inset: 0;
    z-index: 2100;
    overflow: auto;
    padding: 18px;
    background: #F2F3F5;
}

.admin-screen__content {
    width: min(100%, 1180px);
    min-height: calc(100vh - 36px);
    margin: 0 auto;
}

.admin-bottom-nav {
    display: none;
}

body:not(.is-admin-authenticated) .admin-bottom-nav {
    display: none !important;
}

.receipt-paper {
    width: 80mm;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border: 1px dashed #cfcfcf;
    color: #111;
    font-family: "Courier New", monospace;
    font-size: 12px;
}

.receipt h1 {
    margin: 0 0 4px;
    text-align: center;
    font-size: 17px;
}

.receipt p {
    margin: 2px 0;
}

.receipt hr {
    margin: 8px 0;
    border-top: 1px dashed #111;
}

.receipt-line {
    display: grid;
    gap: 2px;
    margin-bottom: 7px;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
}

.receipt-total--main {
    font-size: 15px;
}

.receipt-thanks {
    margin-top: 10px;
    text-align: center;
    font-weight: 700;
}

.stats-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.stats-list,
.stats-product-list {
    display: grid;
    gap: 10px;
}

.stats-day-row,
.stats-product-row {
    display: grid;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(32, 37, 42, 0.08);
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.stats-day-row {
    grid-template-columns: minmax(94px, 1fr) repeat(4, minmax(88px, auto));
}

.stats-day-row strong,
.stats-product-row b {
    color: var(--brand-dark);
}

.stats-day-row span {
    color: #6C757D;
    font-size: 0.82rem;
    white-space: nowrap;
}

.stats-day-row b {
    color: var(--brand-dark);
}

.stats-product-row {
    grid-template-columns: 34px minmax(0, 1fr);
}

.stats-product-row > strong {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 211, 51, 0.24);
    color: var(--brand-dark);
}

.stats-product-row div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.stats-product-row b,
.stats-product-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-product-row span {
    color: #6C757D;
    font-size: 0.82rem;
}

@media (min-width: 992px) {
    body[data-page="home"],
    body[data-page="shop"],
    body[data-page="detail"] {
        background: #F3F4F6;
    }

    body[data-page="home"] > .container-fluid:first-child,
    body[data-page="shop"] > .container-fluid:first-child,
    body[data-page="detail"] > .container-fluid:first-child {
        max-width: 1180px;
        margin: 20px auto 0;
        padding-left: 24px;
        padding-right: 24px;
    }

    body[data-page="home"] > .container-fluid:first-child > .row,
    body[data-page="shop"] > .container-fluid:first-child > .row,
    body[data-page="detail"] > .container-fluid:first-child > .row {
        margin: 0;
        border: 1px solid rgba(32, 37, 42, 0.08);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.96) !important;
        box-shadow: 0 18px 42px rgba(32, 37, 42, 0.08);
    }

    body[data-page="home"] .brand-mark__main,
    body[data-page="home"] .brand-mark__accent,
    body[data-page="shop"] .brand-mark__main,
    body[data-page="shop"] .brand-mark__accent,
    body[data-page="detail"] .brand-mark__main,
    body[data-page="detail"] .brand-mark__accent {
        padding: 9px 13px;
        font-size: 1.45rem;
    }

    body[data-page="home"] .store-search--top,
    body[data-page="shop"] .store-search--top {
        display: none;
    }

    body[data-page="home"] > .container-fluid:first-child .col-lg-4,
    body[data-page="shop"] > .container-fluid:first-child .col-lg-4 {
        flex: 0 0 auto;
        max-width: none;
        margin-bottom: 0 !important;
    }

    .store-search--desktop-below {
        display: block;
        max-width: 680px;
        margin: 0 auto 28px;
    }

    .store-search--catalog {
        margin-top: 4px;
    }

    body[data-page="home"] .store-search-input,
    body[data-page="shop"] .store-search-input {
        min-height: 46px;
        border-radius: 10px 0 0 10px;
        border-color: rgba(32, 37, 42, 0.12);
        background: #F8F9FA;
    }

    body[data-page="home"] .input-group-text,
    body[data-page="shop"] .input-group-text {
        border-radius: 0 10px 10px 0;
        border-color: rgba(32, 37, 42, 0.12);
        color: var(--brand-dark) !important;
    }

    body[data-page="home"] > .container-fluid.bg-dark,
    body[data-page="shop"] > .container-fluid.bg-dark,
    body[data-page="detail"] > .container-fluid.bg-dark {
        max-width: 1180px;
        margin: 12px auto 22px !important;
        padding-left: 24px;
        padding-right: 24px;
        background: transparent !important;
    }

    body[data-page="home"] > .container-fluid.bg-dark > .row,
    body[data-page="shop"] > .container-fluid.bg-dark > .row,
    body[data-page="detail"] > .container-fluid.bg-dark > .row {
        margin: 0;
        border-radius: 14px;
        background: var(--brand-dark);
        box-shadow: 0 14px 32px rgba(32, 37, 42, 0.12);
    }

    body[data-page="home"] main,
    body[data-page="shop"] main {
        max-width: 1180px;
        margin: 0 auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    body[data-page="home"] main > .container-fluid,
    body[data-page="shop"] main.container-fluid {
        padding-left: 0;
        padding-right: 0;
    }

    body[data-page="home"] main .row.px-xl-5,
    body[data-page="home"] main .px-xl-5,
    body[data-page="shop"] main .px-xl-5 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-shop {
        min-height: 245px;
        border-radius: 18px;
        box-shadow: 0 22px 52px rgba(32, 37, 42, 0.14);
    }

    .hero-shop::after {
        background: linear-gradient(90deg, rgba(20, 24, 28, 0.72), rgba(20, 24, 28, 0.18));
    }

    .hero-shop__content {
        padding: 42px 60px;
    }

    .hero-shop__content h1 {
        font-size: 2.85rem;
        letter-spacing: 0;
    }

    .store-footer {
        max-width: 1180px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 18px 18px 0 0;
    }

    .section-title {
        margin-top: 12px;
    }

    .section-title span {
        background: #F3F4F6 !important;
    }

    .category-menu {
        margin-bottom: 18px;
    }

    .filter-row,
    .market-filter-row {
        gap: 10px;
    }

    .filter-chip {
        border-color: rgba(32, 37, 42, 0.1);
        border-radius: 999px;
        padding: 8px 14px;
        box-shadow: 0 8px 18px rgba(32, 37, 42, 0.04);
    }

    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
        gap: 14px;
    }

    .market-card {
        border: 1px solid rgba(32, 37, 42, 0.08);
        border-radius: 12px;
        box-shadow: 0 14px 34px rgba(32, 37, 42, 0.06);
        transition: transform 0.16s ease, box-shadow 0.16s ease;
    }

    .market-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 42px rgba(32, 37, 42, 0.1);
    }

    .market-card__image {
        aspect-ratio: 1 / 0.9;
    }

    .market-card__body {
        gap: 6px;
        padding: 11px 12px 13px;
    }

    .market-card__title {
        min-height: 38px;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .market-card__meta {
        font-size: 0.76rem;
    }

    .market-card__price {
        font-size: 1.34rem;
        font-weight: 700;
    }

    body[data-page="shop"] .market-toolbar {
        justify-content: flex-end;
        margin-bottom: 16px !important;
    }

    .admin-shell {
        min-height: 100vh;
        background:
            linear-gradient(180deg, rgba(32, 37, 42, 0.04), rgba(32, 37, 42, 0) 240px),
            #EEF0F3;
    }

    #admin-view > .container-fluid {
        max-width: 1180px;
        margin: 22px auto 0;
        padding: 0 24px;
    }

    .admin-topbar {
        margin: 0;
        border: 1px solid rgba(32, 37, 42, 0.08);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.94) !important;
        box-shadow: 0 18px 42px rgba(32, 37, 42, 0.08);
    }

    .admin-topbar .brand-mark__main,
    .admin-topbar .brand-mark__accent {
        padding: 9px 13px;
        font-size: 1.35rem;
    }

    .admin-topbar-actions .btn {
        min-height: 38px;
        border-radius: 8px;
        padding-left: 14px;
        padding-right: 14px;
        font-weight: 700;
    }

    .admin-user-email {
        color: #6C757D !important;
        font-size: 0.9rem;
    }

    .admin-dashboard {
        max-width: 1180px;
        margin: 0 auto;
        padding: 24px 24px 34px !important;
    }

    .admin-dashboard > .px-xl-5 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .admin-command-grid {
        grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(180px, 1fr));
        gap: 14px;
    }

    .admin-command {
        min-height: 118px;
        align-items: flex-start;
        border: 1px solid rgba(32, 37, 42, 0.08);
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 14px 34px rgba(32, 37, 42, 0.07);
        transition: transform 0.16s ease, box-shadow 0.16s ease;
    }

    .admin-command:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 42px rgba(32, 37, 42, 0.1);
    }

    .admin-command i {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .admin-command strong {
        font-size: 1.05rem;
        line-height: 1.15;
    }

    .admin-command small {
        margin-top: 6px;
        line-height: 1.35;
    }

    .admin-command--primary {
        min-height: 132px;
    }

    .admin-card,
    .metric-card {
        border-color: rgba(32, 37, 42, 0.08);
        border-radius: 12px;
        box-shadow: 0 14px 34px rgba(32, 37, 42, 0.06);
    }

    .admin-screen {
        padding: 28px;
        background: #EEF0F3;
    }

    .admin-screen__content {
        width: min(100%, 1120px);
        min-height: calc(100vh - 56px);
    }

    .app-screen-header {
        margin-bottom: 22px;
        padding: 4px 0 18px;
        background: #EEF0F3;
    }
}

@media (max-width: 767.98px) {
    .brand-mark__main,
    .brand-mark__accent {
        font-size: 1.35rem;
        padding: 8px 10px;
    }

    .hero-shop {
        min-height: 94px;
        margin: 0 -15px 12px !important;
    }

    .hero-shop__content {
        padding: 18px 20px;
    }

    .hero-shop__content h1 {
        font-size: 1.32rem;
        margin-bottom: 4px;
    }

    .hero-shop__content p {
        max-width: 220px;
        margin-bottom: 0;
        font-size: 0.78rem;
        line-height: 1.25;
    }

    body[data-page="home"] main > .container-fluid:first-child {
        margin-bottom: 18px !important;
        padding-left: 0;
        padding-right: 0;
    }

    .admin-search {
        max-width: 100%;
        margin-top: 12px;
    }

    .market-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-toolbar__controls {
        width: 100%;
    }

    .market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .market-card__image {
        aspect-ratio: 1 / 0.68;
    }

    .market-card__body {
        gap: 2px;
        padding: 5px 5px 6px;
    }

    .market-card__title {
        min-height: 27px;
        font-size: 0.74rem;
        line-height: 1.12;
    }

    .market-card__meta {
        min-height: 11px;
        font-size: 0.6rem;
    }

    .market-card__price {
        font-size: 1.03rem;
    }

    .market-card__price span {
        font-size: 0.6rem;
    }

    .market-card__price sup {
        font-size: 0.48rem;
    }

    .market-card__quick {
        grid-template-columns: repeat(2, 28px);
        gap: 5px;
    }

    .market-icon-button {
        width: 28px;
        height: 28px;
        font-size: 0.76rem;
    }

    .product-ribbon {
        top: 5px;
        left: 5px;
        padding: 3px 7px;
        font-size: 0.6rem;
    }

    body[data-page="shop"],
    body[data-page="detail"] {
        padding-bottom: 66px;
        background: #fff;
    }

    body[data-page="detail"] {
        padding-bottom: 66px;
        background: #F3F4F6;
    }

    body[data-page="home"] {
        padding-bottom: 66px;
    }

    body[data-page="shop"] .container-fluid:first-child,
    body[data-page="home"] .container-fluid:first-child,
    body[data-page="detail"] .container-fluid:first-child {
        position: sticky;
        top: 0;
        z-index: 1020;
        background: #fff;
        overflow: hidden;
        padding-left: 0;
        padding-right: 0;
        box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
    }

    body[data-page="shop"] .container-fluid:first-child .row.bg-secondary,
    body[data-page="shop"] .bg-dark.mb-30,
    body[data-page="shop"] .col-lg-3.d-none {
        display: none !important;
    }

    body[data-page="home"] .bg-dark.mb-30 {
        display: none !important;
    }

    body[data-page="detail"] .bg-dark.mb-30 {
        display: none !important;
    }

    body[data-page="shop"] .row.align-items-center.bg-light,
    body[data-page="home"] .row.align-items-center.bg-light,
    body[data-page="detail"] .row.align-items-center.bg-light {
        padding: 10px 0 !important;
        background: #fff !important;
    }

    body[data-page="home"] .row.align-items-center.bg-light,
    body[data-page="detail"] .row.align-items-center.bg-light {
        padding-top: 0 !important;
    }

    body[data-page="shop"] .brand-mark {
        display: none;
    }

    body[data-page="home"] .brand-mark__main,
    body[data-page="home"] .brand-mark__accent,
    body[data-page="detail"] .brand-mark__main,
    body[data-page="detail"] .brand-mark__accent {
        font-size: 1.08rem;
        padding: 7px 8px;
    }

    body[data-page="home"] .col-lg-4.col-md-5,
    body[data-page="detail"] .col-md-6:first-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 8px !important;
        padding-left: 0;
        padding-right: 0;
    }

    body[data-page="home"] .brand-mark,
    body[data-page="detail"] .brand-mark {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        text-align: center;
    }

    body[data-page="home"] .brand-mark__main,
    body[data-page="home"] .brand-mark__accent,
    body[data-page="detail"] .brand-mark__main,
    body[data-page="detail"] .brand-mark__accent {
        display: grid;
        align-items: center;
    }

    body[data-page="home"] .brand-mark__main,
    body[data-page="detail"] .brand-mark__main {
        justify-content: end;
    }

    body[data-page="home"] .brand-mark__accent,
    body[data-page="detail"] .brand-mark__accent {
        justify-content: start;
    }

    body[data-page="detail"] .detail-top-actions {
        display: none;
    }

    body[data-page="detail"] main.container-fluid {
        padding-right: 0;
        padding-left: 0;
        padding-bottom: 0 !important;
    }

    body[data-page="detail"] #detail-root {
        margin-right: 0;
        margin-left: 0;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body[data-page="detail"] #detail-root > [class*="col-"] {
        padding-right: 0;
        padding-left: 0;
    }

    .detail-media-col {
        margin-bottom: 0;
    }

    .detail-media-frame {
        background: #fff;
    }

    .detail-info-col {
        margin-bottom: 0;
        padding: 0 14px 14px !important;
    }

    .detail-product-image {
        aspect-ratio: 1 / 1.06;
        border-radius: 0;
        box-shadow: none;
    }

    .detail-gallery {
        position: absolute;
        right: 0;
        bottom: 10px;
        left: 0;
        z-index: 4;
        grid-auto-columns: 54px;
        gap: 8px;
        padding: 8px 14px;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.94));
    }

    .detail-gallery button {
        width: 54px;
        height: 54px;
        border: 2px solid rgba(255, 255, 255, 0.85);
        border-radius: 10px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    }

    .detail-gallery button.active {
        border-color: var(--brand-dark);
    }

    .detail-card {
        position: relative;
        margin-top: 0;
        padding: 18px 16px 18px;
        border: 0;
        border-radius: 22px 22px 0 0;
        box-shadow: 0 -10px 30px rgba(32, 37, 42, 0.08);
    }

    .detail-kicker {
        margin-bottom: 10px;
    }

    .detail-kicker span {
        padding: 5px 8px;
        font-size: 0.68rem;
    }

    .detail-card h1 {
        margin-bottom: 10px;
        font-size: 1.42rem;
        line-height: 1.15;
    }

    .detail-tags {
        gap: 6px;
        margin-bottom: 10px;
    }

    .detail-tags span {
        padding: 6px 8px;
        border-radius: 6px;
        font-size: 0.72rem;
    }

    .detail-price {
        margin-bottom: 10px;
        font-size: 1.78rem;
    }

    .detail-description {
        margin-bottom: 12px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .detail-color-options {
        margin: 2px 0 12px;
    }

    .detail-color-options strong {
        margin-bottom: 6px;
        font-size: 0.95rem;
    }

    .detail-color-options div {
        gap: 7px;
    }

    .detail-color-options button {
        min-height: 34px;
        padding: 5px 10px;
        font-size: 0.82rem;
    }

    .detail-color-options button i {
        width: 15px;
        height: 15px;
    }

    .detail-color-options button small {
        font-size: 0.64rem;
    }

    .detail-benefits {
        gap: 8px;
        margin-bottom: 14px;
    }

    .detail-benefits div {
        gap: 8px;
        font-size: 0.82rem;
    }

    .detail-benefits i {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .detail-actions {
        position: static;
        margin: 12px 0 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .detail-action-primary,
    .detail-action-secondary {
        min-height: 46px;
        border-radius: 13px;
        font-size: 0.92rem;
    }

    .detail-action-secondary {
        width: 52px;
    }

    .detail-action-secondary span {
        display: none;
    }

    .detail-secondary-actions {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .detail-secondary-actions button {
        min-height: 40px;
        font-size: 0.8rem;
    }

    .detail-note {
        font-size: 0.75rem;
    }

    .detail-related {
        margin-top: 0;
        padding: 18px 14px 22px !important;
        background: #f4f5f6;
    }

    .detail-related__header {
        margin-bottom: 12px;
    }

    .detail-related__header h2 {
        font-size: 1.08rem;
    }

    .detail-related__header a {
        font-size: 0.85rem;
    }

    .detail-related__rail {
        grid-auto-columns: minmax(132px, 42vw);
        gap: 10px;
        margin-right: -14px;
        padding-bottom: 12px;
    }

    .related-card {
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(32, 37, 42, 0.08);
    }

    .related-card__title {
        min-height: 34px;
        margin: 8px 8px 3px;
        font-size: 0.86rem;
    }

    .related-card__meta {
        margin-right: 8px;
        margin-left: 8px;
        font-size: 0.7rem;
    }

    .related-card__price {
        margin: 0 8px 10px;
        font-size: 0.95rem;
    }

    .promo-products {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .promo-products__header h2 {
        font-size: 1.06rem;
    }

    .promo-products__rail {
        grid-auto-columns: minmax(190px, 72vw);
        gap: 10px;
    }

    .promo-card {
        min-height: 136px;
        border-radius: 12px;
        padding: 13px;
    }

    .quote-bar {
        bottom: calc(66px + env(safe-area-inset-bottom));
        width: calc(100% - 20px);
        border-radius: 16px;
        padding: 8px;
    }

    .quote-bar a span {
        display: none;
    }

    body[data-page="shop"] .col-lg-5.col-md-7,
    body[data-page="home"] .col-lg-5.col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    body[data-page="shop"] .input-group .form-control,
    body[data-page="home"] .input-group .form-control {
        height: 46px;
        border: 1px solid #d0d0d0;
        border-right: 0;
        border-radius: 24px 0 0 24px;
        font-size: 1rem;
    }

    body[data-page="shop"] .input-group .input-group-text {
        border-left: 0;
        border-radius: 0 24px 24px 0;
        padding-right: 16px;
    }

    body[data-page="home"] .input-group .input-group-text {
        border-left: 0;
        border-radius: 0 24px 24px 0;
        padding-right: 16px;
    }

    body[data-page="home"] .section-title {
        margin-bottom: 12px !important;
        font-size: 1rem;
    }

    body[data-page="shop"] .marketplace-page {
        padding-top: 10px;
    }

    body[data-page="shop"] .market-toolbar {
        margin-bottom: 8px !important;
    }

    body[data-page="shop"] .market-toolbar__controls {
        max-width: 190px;
        margin-left: auto;
    }

    body[data-page="shop"] .market-toolbar h1 {
        font-size: 1.72rem;
        font-weight: 700;
        line-height: 1.05;
    }

    body[data-page="shop"] footer,
    body[data-page="shop"] .back-to-top {
        display: none;
    }

    body[data-page="home"] footer,
    body[data-page="home"] .back-to-top,
    body[data-page="detail"] footer,
    body[data-page="detail"] .back-to-top {
        display: none;
    }

    .category-menu__button {
        display: flex;
    }

    .category-menu__list {
        display: none;
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 30;
        max-height: 240px;
        overflow: auto;
        padding: 8px;
        background: #fff;
        border: 1px solid #d8d8d8;
        border-radius: 4px;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    }

    .category-menu.is-open .category-menu__list {
        display: grid;
    }

    .category-menu__list .filter-chip {
        width: 100%;
        white-space: normal;
    }

    .mobile-shop-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
        padding: 7px 0 calc(7px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    }

    .mobile-shop-nav.is-installed {
        grid-template-columns: repeat(3, 1fr);
    }

    .mobile-shop-nav a,
    .mobile-shop-nav button {
        display: grid;
        gap: 2px;
        justify-items: center;
        color: #111;
        font-size: 0.7rem;
        line-height: 1.15;
        border: 0;
        background: transparent;
        padding: 0;
    }

    .mobile-shop-nav i {
        font-size: 1.18rem;
    }

    .mobile-shop-nav a.active {
        color: #D19D00;
    }

    .admin-tabs {
        display: grid;
        width: 100%;
    }

    .admin-shell {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(238, 240, 243, 0.98) 220px),
            var(--admin-bg);
        padding-bottom: 88px;
    }

    .admin-topbar {
        position: sticky;
        top: 0;
        z-index: 1040;
        margin: 0;
        width: 100%;
        padding: 12px 14px !important;
        background: var(--brand-dark) !important;
        border-bottom: 0;
        border-radius: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    }

    .admin-topbar > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .admin-topbar .brand-mark {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: start;
    }

    .admin-topbar .brand-mark__main,
    .admin-topbar .brand-mark__accent {
        padding: 7px 10px;
        font-size: 1rem;
    }

    .admin-topbar-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        margin-top: 8px;
    }

    .admin-topbar-actions.is-installed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-user-email {
        grid-column: 1 / -1;
        margin: 0;
        color: rgba(255, 255, 255, 0.78) !important;
        font-size: 0.78rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .admin-topbar-actions .btn {
        min-height: 40px;
        padding: 8px 6px;
        border: 0;
        border-radius: 6px;
        font-size: 0.82rem;
        font-weight: 700;
    }

    .admin-topbar-actions .btn i {
        margin-right: 4px !important;
    }

    .admin-dashboard {
        padding-top: 18px !important;
    }

    .admin-command-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-command {
        display: grid;
        grid-template-columns: 34px 1fr;
        min-height: 66px;
        gap: 10px;
        padding: 11px;
        border-radius: 8px;
        box-shadow: 0 9px 22px rgba(32, 37, 42, 0.07);
    }

    .admin-command--primary {
        grid-column: 1 / -1;
    }

    .admin-command i {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .admin-command strong {
        font-size: 0.95rem;
        line-height: 1.1;
    }

    .admin-command small {
        margin-top: 3px;
        font-size: 0.74rem;
        line-height: 1.2;
    }

    .admin-metric-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-left: 0;
        margin-right: 0;
    }

    .admin-metric-row > [class*="col-"] {
        padding: 0;
        margin-bottom: 0 !important;
    }

    .metric-card {
        min-height: 64px;
        padding: 9px 8px;
        border-radius: 8px;
    }

    .metric-card span {
        font-size: 0.66rem;
        line-height: 1.15;
    }

    .metric-card strong {
        margin-top: 5px;
        font-size: 1.16rem;
        line-height: 1;
    }

    .metric-card--money strong {
        font-size: 0.86rem;
        line-height: 1.08;
    }

    .admin-card {
        padding: 14px;
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(32, 37, 42, 0.08);
    }

    .app-modal--sheet {
        padding: 0;
    }

    .app-modal__content--search {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
    }

    .app-modal__content--form {
        width: 100%;
        max-height: 100vh;
        min-height: 100vh;
        border-radius: 0;
        padding: 12px 14px calc(18px + env(safe-area-inset-bottom));
    }

    .client-create-form {
        min-height: 100vh;
        align-content: start;
        gap: 10px;
    }

    .client-create-form .form-group {
        margin-bottom: 2px;
    }

    .client-create-form .form-control {
        min-height: 46px;
    }

    .client-create-form textarea.form-control {
        min-height: 86px;
    }

    .modal-search-header {
        position: sticky;
        top: 0;
        z-index: 2;
        margin: -12px -14px 0;
        padding: 12px 14px 10px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
    }

    .modal-search-input {
        position: sticky;
        top: 62px;
        z-index: 2;
        min-height: 50px;
    }

    .modal-search-row {
        position: sticky;
        top: 62px;
        z-index: 2;
        grid-template-columns: minmax(0, 1fr) 50px;
    }

    .modal-search-row .modal-search-input {
        position: static;
        top: auto;
    }

    .modal-add-button {
        width: 50px;
        min-height: 50px;
    }

    .modal-search-results {
        max-height: none;
    }

    .invoice-mobile-total {
        position: sticky;
        bottom: calc(92px + env(safe-area-inset-bottom));
        z-index: 9;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin: -10px 0 20px;
        padding: 12px 14px;
        border: 1px solid rgba(32, 37, 42, 0.08);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 30px rgba(32, 37, 42, 0.14);
        backdrop-filter: blur(12px);
    }

    .invoice-mobile-total span {
        color: #6C757D;
        font-weight: 700;
    }

    .invoice-mobile-total strong {
        color: var(--brand-dark);
        font-size: 1.28rem;
        line-height: 1;
    }

    .catalog-actions {
        display: grid;
        width: 100%;
    }

    .admin-screen {
        padding: 0;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(238, 240, 243, 0.98) 220px),
            var(--admin-bg);
    }

    .admin-screen__content {
        min-height: 100vh;
        padding: 14px 14px 138px;
    }

    .product-save-button {
        position: sticky;
        bottom: calc(96px + env(safe-area-inset-bottom));
        z-index: 8;
        min-height: 48px;
        margin-top: 16px;
        border-radius: 8px;
        box-shadow: 0 12px 28px rgba(32, 37, 42, 0.22);
    }

    .admin-screen .admin-modal-heading {
        position: sticky;
        top: 0;
        z-index: 5;
        margin: -14px -14px 14px;
        padding: 14px;
        background: #fff;
        border-bottom: 1px solid #e7e7e7;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    }

    .admin-screen .admin-modal-heading .btn {
        width: 100%;
    }

    .app-screen-header {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
        margin: -14px -14px 14px;
        padding: 12px 14px 13px;
        background: rgba(238, 240, 243, 0.96);
        backdrop-filter: blur(14px);
    }

    .app-screen-header__title h2 {
        font-size: 1.12rem;
    }

    .app-screen-header__title p {
        display: -webkit-box;
        overflow: hidden;
        font-size: 0.74rem;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .screen-back-button,
    .screen-icon-action {
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .screen-header-badge {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.68rem;
    }

    .admin-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 2200;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(32, 37, 42, 0.08);
        border-radius: 8px;
        box-shadow: 0 16px 38px rgba(32, 37, 42, 0.18);
        backdrop-filter: blur(14px);
    }

    .admin-bottom-nav button {
        display: grid;
        justify-items: center;
        gap: 3px;
        min-width: 0;
        border: 0;
        border-radius: 8px;
        background: transparent;
        color: #20252A;
        padding: 8px 4px 7px;
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .admin-bottom-nav i {
        font-size: 1.08rem;
    }

    .admin-bottom-nav button.active,
    .admin-bottom-nav button:focus {
        background: var(--brand-dark);
        color: var(--brand-primary);
        outline: 0;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .catalog-actions .btn {
        width: 100%;
    }

    .admin-search {
        margin-top: 0;
    }

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

    .inventory-toolbar .btn {
        width: 100%;
    }

    .inventory-card {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .inventory-card > img {
        width: 54px;
        height: 54px;
    }

    .inventory-card__top {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
    }

    .inventory-card__top strong {
        font-size: 0.86rem;
    }

    .inventory-card__top span,
    .inventory-card__meta {
        font-size: 0.67rem;
    }

    .inventory-card__meta {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .inventory-card__meta b {
        grid-column: 2;
    }

    .inventory-card__finance {
        gap: 4px;
        font-size: 0.62rem;
    }

    .inventory-card__finance span,
    .inventory-card__finance b {
        min-height: 20px;
        padding: 0 6px;
    }

    .inventory-status {
        display: none;
    }

    .inventory-icon-button {
        width: 29px;
        height: 29px;
        border-radius: 8px;
        font-size: 0.78rem;
    }

    .invoice-actions > div,
    .invoice-actions .btn {
        width: 100%;
    }
}

@media (min-width: 1200px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    }
}

@media (min-width: 768px) {
    .mobile-shop-nav {
        display: none;
    }
}

/* Storefront polish pass */
:root {
    --store-bg: #F7F8FA;
    --store-surface: #FFFFFF;
    --store-ink: #111827;
    --store-muted: #667085;
    --store-line: rgba(17, 24, 39, 0.10);
    --store-accent: #0EA5A3;
    --store-warm: #F6E7C8;
    --store-shadow: 0 18px 48px rgba(17, 24, 39, 0.10);
    --store-shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.07);
}

body[data-page="home"],
body[data-page="shop"],
body[data-page="detail"] {
    background:
        radial-gradient(circle at 8% 5%, rgba(14, 165, 163, 0.10), transparent 28rem),
        linear-gradient(180deg, #FFFFFF 0, var(--store-bg) 19rem, var(--store-bg) 100%);
    color: var(--store-muted);
}

body[data-page="home"] > .container-fluid:first-child > .row,
body[data-page="shop"] > .container-fluid:first-child > .row,
body[data-page="detail"] > .container-fluid:first-child > .row {
    border-color: rgba(255, 255, 255, 0.70);
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 22px 55px rgba(17, 24, 39, 0.08);
    backdrop-filter: blur(16px);
}

.brand-mark {
    filter: drop-shadow(0 12px 18px rgba(17, 24, 39, 0.10));
}

.brand-mark__main,
.brand-mark__accent {
    font-weight: 900;
}

.brand-mark__main {
    background: linear-gradient(135deg, var(--brand-dark), #120A4A);
    color: #FFFFFF;
}

.brand-mark__accent {
    background: linear-gradient(135deg, #FFFFFF, #E9EDF3);
    color: var(--brand-dark);
}

body[data-page="home"] > .container-fluid.bg-dark > .row,
body[data-page="shop"] > .container-fluid.bg-dark > .row,
body[data-page="detail"] > .container-fluid.bg-dark > .row {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%),
        var(--brand-dark);
    box-shadow: 0 20px 44px rgba(14, 8, 69, 0.18);
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--brand-primary);
}

.navbar-dark .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    right: 10px;
    bottom: 13px;
    left: 10px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-primary);
}

.hero-shop {
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #090E18;
}

.hero-shop::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(6, 10, 18, 0.86), rgba(6, 10, 18, 0.38) 48%, rgba(6, 10, 18, 0.06)),
        radial-gradient(circle at 18% 30%, rgba(255, 211, 51, 0.24), transparent 15rem);
}

.hero-shop::after {
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    pointer-events: none;
}

.hero-shop img {
    filter: saturate(1.06) contrast(1.06);
}

.hero-shop__content {
    z-index: 3;
}

.hero-shop__content h1 {
    max-width: 12ch;
    margin-bottom: 12px;
    color: #FFFFFF;
    font-weight: 900;
    line-height: 0.98;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-shop__content p {
    display: inline-flex;
    max-width: 430px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    padding: 9px 14px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.store-search--desktop-below .input-group {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: var(--store-shadow-soft);
}

.store-search--catalog-panel {
    max-width: 620px;
    margin: 0 auto 14px;
}

.store-search--catalog-panel .input-group {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
    overflow: hidden;
}

.store-assurance {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -4px auto 18px;
}

.store-assurance span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--store-muted);
    padding: 7px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
}

.store-assurance i {
    color: var(--brand-dark);
}

.store-assurance--catalog {
    margin-top: -2px;
    margin-bottom: 14px;
}

.home-showcase-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.home-showcase-heading span {
    display: block;
    margin-bottom: 4px;
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-showcase-heading h2 {
    margin: 0;
    color: var(--store-ink);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.05;
}

.home-showcase-heading a,
.home-collection__header a {
    color: var(--brand-dark);
    font-weight: 900;
    text-decoration: none;
}

.home-collections {
    display: grid;
    gap: 30px;
}

.home-collection {
    min-width: 0;
}

.home-collection__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home-collection__header h3 {
    margin: 0;
    color: var(--store-ink);
    font-size: 1.28rem;
    font-weight: 900;
}

.home-collection__viewport {
    position: relative;
    min-width: 0;
}

.home-collection__rail {
    display: grid;
    grid-auto-columns: 280px;
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 2px 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.home-collection__rail .market-card {
    min-width: 280px;
    scroll-snap-align: start;
}

.home-collection__arrow {
    position: absolute;
    top: 42%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-dark);
    box-shadow: 0 14px 28px rgba(17, 24, 39, 0.14);
    transform: translateY(-50%);
}

.home-collection__arrow--prev {
    left: -16px;
}

.home-collection__arrow--next {
    right: -16px;
}

.home-collection__arrow:hover {
    background: var(--brand-dark);
    color: #fff;
}

.home-mini-collections {
    min-width: 0;
}

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

.home-mini-card {
    display: grid;
    grid-template-columns: 88px 1fr;
    align-items: center;
    gap: 12px;
    min-height: 112px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    padding: 10px;
    color: var(--store-ink);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.home-mini-card:hover {
    color: var(--brand-dark);
    text-decoration: none;
    transform: translateY(-1px);
}

.home-mini-card img {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    background: #F5F6F8;
    object-fit: cover;
}

.home-mini-card strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.15;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-mini-card span {
    color: var(--store-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.store-seo-section {
    margin-top: 24px;
    color: var(--store-ink);
}

.store-seo-section .row,
.store-seo-section--catalog {
    border-top: 1px solid rgba(17, 24, 39, 0.10);
    padding-top: 18px;
}

.store-seo-section span {
    display: block;
    margin-bottom: 5px;
    color: var(--store-muted);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.store-seo-section h1,
.store-seo-section h2 {
    margin: 0 0 10px;
    color: var(--store-ink);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
}

.store-seo-section p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--store-muted);
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
}

.seo-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.seo-link-grid a {
    border: 1px solid rgba(17, 24, 39, 0.10);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--store-ink);
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.seo-link-grid a:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #FFFFFF;
    text-decoration: none;
}

body[data-page="home"] .store-search-input,
body[data-page="shop"] .store-search-input {
    border: 0;
    background: transparent;
    color: var(--store-ink);
    font-weight: 700;
}

body[data-page="home"] .input-group-text,
body[data-page="shop"] .input-group-text {
    border: 0;
    background: transparent !important;
    color: var(--brand-dark) !important;
    font-size: 1.04rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--store-ink);
    letter-spacing: 0;
}

.section-title::after {
    position: static;
    flex: 1;
    border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.section-title span {
    background: transparent !important;
    padding-right: 0 !important;
    font-weight: 900;
}

.filter-chip {
    border-color: rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--store-ink);
    font-weight: 800;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
}

.filter-chip.active {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #FFFFFF;
}

.market-grid {
    align-items: start;
}

.market-card {
    display: grid;
    grid-template-rows: auto auto;
    align-self: start;
    border-color: rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--store-shadow-soft);
}

.market-card:hover {
    box-shadow: var(--store-shadow);
}

.market-card__image {
    background:
        linear-gradient(135deg, #F4F6F8, #FFFFFF);
}

.market-card__image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.08));
    pointer-events: none;
}

.market-card__body {
    align-content: start;
}

.market-card__title {
    color: var(--store-ink);
    font-weight: 900;
    text-decoration: none;
}

.market-card__title:hover {
    color: var(--brand-dark);
    text-decoration: none;
}

.market-card__meta {
    color: var(--store-muted);
    font-weight: 700;
}

.market-card__price {
    display: inline-flex;
    align-items: flex-start;
    gap: 2px;
    color: #050816;
    font-weight: 900;
    white-space: nowrap;
}

.market-card__quick {
    margin-top: 6px;
}

.market-icon-button {
    border-color: rgba(17, 24, 39, 0.10);
    background: #FFFFFF;
    color: var(--brand-dark);
    box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.market-icon-button:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #FFFFFF;
}

.variant-swatches span {
    width: 17px;
    height: 17px;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.22), 0 5px 12px rgba(17, 24, 39, 0.12);
}

.catalog-pager {
    margin-top: 28px;
}

.catalog-pager button,
.catalog-pager strong {
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.store-footer {
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 10%, rgba(255, 211, 51, 0.16), transparent 20rem),
        linear-gradient(135deg, var(--brand-dark), #090521) !important;
}

.notification-optin-button {
    background:
        linear-gradient(135deg, var(--brand-dark), #170C61);
    box-shadow: 0 18px 42px rgba(14, 8, 69, 0.28);
}

@media (min-width: 992px) {
    body[data-page="home"] > .container-fluid:first-child,
    body[data-page="shop"] > .container-fluid:first-child,
    body[data-page="detail"] > .container-fluid:first-child,
    body[data-page="home"] > .container-fluid.bg-dark,
    body[data-page="shop"] > .container-fluid.bg-dark,
    body[data-page="detail"] > .container-fluid.bg-dark,
    body[data-page="home"] main,
    body[data-page="shop"] main,
    .store-footer {
        max-width: 1240px;
    }

    body[data-page="home"] > .container-fluid:first-child > .row,
    body[data-page="shop"] > .container-fluid:first-child > .row,
    body[data-page="detail"] > .container-fluid:first-child > .row,
    body[data-page="home"] > .container-fluid.bg-dark > .row,
    body[data-page="shop"] > .container-fluid.bg-dark > .row,
    body[data-page="detail"] > .container-fluid.bg-dark > .row,
    .hero-shop,
    .market-card {
        border-radius: 8px;
    }

    body[data-page="home"] > .container-fluid:first-child,
    body[data-page="shop"] > .container-fluid:first-child,
    body[data-page="detail"] > .container-fluid:first-child {
        margin-top: 24px;
    }

    body[data-page="home"] > .container-fluid:first-child > .row,
    body[data-page="shop"] > .container-fluid:first-child > .row,
    body[data-page="detail"] > .container-fluid:first-child > .row {
        min-height: 74px;
    }

    .hero-shop {
        min-height: 300px;
        margin-bottom: 30px !important;
    }

    .hero-shop__content {
        max-width: 590px;
        padding: 58px 64px;
    }

    .hero-shop__content h1 {
        font-size: 3.35rem;
    }

    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 18px;
    }

    .market-card__image {
        aspect-ratio: 1 / 1.06;
    }

    .market-card__body {
        min-height: 176px;
        gap: 7px;
        padding: 13px 14px 15px;
    }

    .market-card__title {
        min-height: 42px;
        font-size: 1rem;
    }

    .market-card__meta {
        font-size: 0.78rem;
    }

    .market-card__price {
        font-size: 1.55rem;
    }

    .market-card__quick {
        grid-template-columns: repeat(2, 36px);
    }

    .market-icon-button {
        width: 36px;
        height: 36px;
    }

    .store-footer {
        margin-top: 58px !important;
        border-radius: 8px 8px 0 0;
    }
}

@media (max-width: 767.98px) {
    body[data-page="home"],
    body[data-page="shop"] {
        background:
            linear-gradient(180deg, #FFFFFF 0, #F6F7F9 160px, #F6F7F9 100%);
    }

    .hero-shop {
        min-height: 154px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 16px 36px rgba(17, 24, 39, 0.14);
    }

    .hero-shop__content {
        padding: 22px 18px;
    }

    .hero-shop__content h1 {
        max-width: 9ch;
        font-size: 1.84rem;
    }

    .hero-shop__content p {
        max-width: 250px;
        border-radius: 14px;
        padding: 7px 10px;
        font-size: 0.82rem;
    }

    body[data-page="home"] .section-title {
        margin-top: 4px;
        font-size: 1.08rem;
    }

    body[data-page="home"] .store-search--top,
    body[data-page="shop"] .store-search--top {
        display: none;
    }

    .store-search--catalog-panel {
        max-width: none;
        margin: 0 0 10px;
    }

    .store-search--catalog-panel .input-group {
        min-height: 44px;
        border-radius: 8px;
        box-shadow: 0 8px 22px rgba(17, 24, 39, 0.05);
    }

    .store-search--catalog-panel .store-search-input {
        height: 44px;
        padding-left: 14px;
        font-size: 0.9rem;
    }

    .store-assurance {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        margin: -8px 0 14px;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .store-assurance::-webkit-scrollbar {
        display: none;
    }

    .store-assurance span {
        flex: 0 0 auto;
        padding: 6px 10px;
        font-size: 0.72rem;
    }

    .home-showcase-heading {
        align-items: start;
        margin-bottom: 16px;
    }

    .home-showcase-heading h2 {
        font-size: 1.34rem;
    }

    .home-showcase-heading a,
    .home-collection__header a {
        font-size: 0.82rem;
        white-space: nowrap;
    }

    .home-collections {
        gap: 24px;
    }

    .home-collection__header {
        margin-bottom: 10px;
    }

    .home-collection__header h3 {
        font-size: 1.02rem;
    }

    .home-collection__rail {
        grid-auto-columns: 166px;
        gap: 10px;
        margin-right: -15px;
        padding-bottom: 12px;
        scrollbar-width: none;
    }

    .home-collection__rail::-webkit-scrollbar {
        display: none;
    }

    .home-collection__rail .market-card {
        min-width: 166px;
    }

    .home-collection__arrow {
        top: 38%;
        width: 38px;
        height: 38px;
        font-size: 0.86rem;
    }

    .home-collection__arrow--prev {
        left: -8px;
    }

    .home-collection__arrow--next {
        right: 2px;
    }

    .home-mini-collections__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-mini-card {
        display: block;
        min-height: 0;
        padding: 8px;
    }

    .home-mini-card img {
        width: 100%;
        height: 112px;
        margin-bottom: 7px;
    }

    .home-mini-card strong {
        font-size: 0.82rem;
    }

    .home-mini-card span {
        font-size: 0.72rem;
    }

    .store-seo-section {
        margin-top: 18px;
    }

    .store-seo-section .row,
    .store-seo-section--catalog {
        padding-top: 14px;
    }

    .store-seo-section h1,
    .store-seo-section h2 {
        font-size: 0.98rem;
        margin-bottom: 6px;
    }

    .store-seo-section p {
        font-size: 0.76rem;
        line-height: 1.42;
    }

    .market-grid {
        gap: 10px;
    }

    .market-card {
        border-radius: 8px;
    }

    .market-card__image {
        aspect-ratio: 1 / 0.92;
    }

    .market-card__body {
        gap: 5px;
        min-height: 146px;
        padding: 9px;
    }

    .market-card__title {
        min-height: 36px;
        font-size: 0.84rem;
        font-weight: 900;
    }

    .market-card__meta {
        font-size: 0.68rem;
    }

    .market-card__price {
        font-size: 1.18rem;
    }

    .market-card__quick {
        grid-template-columns: repeat(2, 31px);
    }

    .market-icon-button {
        width: 31px;
        height: 31px;
    }

    .filter-chip {
        padding: 8px 12px;
        font-size: 0.88rem;
    }

    .notification-optin-button {
        right: 12px;
        bottom: 84px;
        border-radius: 999px;
    }
}

@media (min-width: 992px) {
    body[data-page="home"] > .container-fluid:first-child,
    body[data-page="shop"] > .container-fluid:first-child,
    body[data-page="detail"] > .container-fluid:first-child {
        margin-top: 18px;
    }

    body[data-page="home"] > .container-fluid:first-child > .row,
    body[data-page="shop"] > .container-fluid:first-child > .row,
    body[data-page="detail"] > .container-fluid:first-child > .row {
        min-height: 64px;
    }

    body[data-page="home"] > .container-fluid.bg-dark,
    body[data-page="shop"] > .container-fluid.bg-dark,
    body[data-page="detail"] > .container-fluid.bg-dark {
        margin-top: 10px !important;
        margin-bottom: 18px !important;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .navbar-dark .navbar-nav .nav-link.active::after {
        bottom: 9px;
    }

    .hero-shop {
        min-height: 260px;
        margin-bottom: 24px !important;
    }

    .hero-shop__content {
        padding: 46px 58px;
    }

    .hero-shop__content h1 {
        font-size: 3.05rem;
    }

    .store-search--desktop-below {
        margin-bottom: 22px;
    }

    .section-title {
        margin-top: 6px;
        margin-bottom: 18px !important;
    }

    .category-menu {
        margin-bottom: 14px;
    }

    .market-card__image {
        aspect-ratio: 1 / 0.98;
    }

    .market-card__body {
        min-height: 164px;
    }
}

/* Social links and richer product cards */
.store-nav-socials {
    align-items: center;
    gap: 10px;
    margin-right: 18px;
}

.store-nav-socials a,
.store-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.store-nav-socials a {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.store-nav-socials a:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.store-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-social-links--center {
    justify-content: center;
}

.store-social-links a {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    color: #FFFFFF;
}

.store-social-links a:hover {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--brand-dark);
    transform: translateY(-2px);
}

.login-panel .store-social-links a {
    border-color: rgba(17, 24, 39, 0.10);
    background: #FFFFFF;
    color: var(--brand-dark);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.login-panel .store-social-links a:hover {
    background: var(--brand-dark);
    color: #FFFFFF;
}

.market-card {
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.80);
}

.market-card__actions {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.market-card__purchase-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.market-card__purchase-row .market-card__quick {
    flex: 0 0 auto;
    margin-top: 0;
}

.market-card__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 36px;
    border-radius: 999px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.market-card__actions .btn-primary {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #FFFFFF !important;
    box-shadow: 0 10px 22px rgba(14, 8, 69, 0.14);
}

.market-card__actions .btn-primary:hover {
    border-color: #13094F;
    background: #13094F;
    color: #FFFFFF !important;
}

.market-card__actions .btn-outline-dark {
    gap: 6px;
    border-color: rgba(14, 8, 69, 0.14);
    background: #FFFFFF;
    color: var(--brand-dark);
}

.market-card__actions .btn-outline-dark:hover {
    border-color: #25D366;
    background: #25D366;
    color: #062B15 !important;
}

@media (min-width: 1200px) {
    .market-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px;
    }

    .market-card__image {
        aspect-ratio: 1 / 0.90;
    }

    .market-card__body {
        min-height: 118px;
        padding: 12px 14px 14px;
    }

    .market-card__title {
        min-height: 34px;
        font-size: 1.02rem;
        line-height: 1.18;
    }

    .market-card__meta {
        font-size: 0.82rem;
    }

    .market-card__price {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .market-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .market-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .market-card__image {
        aspect-ratio: 1 / 0.98;
    }
}

@media (max-width: 767.98px) {
    .market-card__image {
        aspect-ratio: 1 / 0.82;
    }

    .market-card__body {
        gap: 3px;
        min-height: 96px;
        padding: 8px;
    }

    .market-card__title {
        min-height: 28px;
        font-size: 0.77rem;
        line-height: 1.18;
    }

    .market-card__meta {
        font-size: 0.64rem;
    }

    .market-card__swatches {
        min-height: 18px;
    }

    .variant-swatches span {
        width: 15px;
        height: 15px;
    }

    .market-card__price {
        min-width: 0;
        font-size: 1rem;
        line-height: 1.05;
    }

    .market-card__price span {
        font-size: 0.58rem;
    }

    .market-card__price sup {
        font-size: 0.48rem;
    }

    .market-icon-button {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .market-card__actions .btn {
        min-height: 31px;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 0.74rem;
    }

    .market-card__actions .btn-outline-dark span {
        display: none;
    }
}

body .market-card .market-card__actions > .btn-primary {
    border-color: var(--brand-dark) !important;
    background: var(--brand-dark) !important;
    color: #FFFFFF !important;
}

@media (max-width: 767.98px) {
    body[data-page="detail"] .detail-product-image {
        height: clamp(300px, 82vw, 340px) !important;
        max-height: 340px !important;
        aspect-ratio: auto !important;
        background:
            linear-gradient(180deg, #FFFFFF 0%, #F7F7F8 100%);
    }

    body[data-page="detail"] .detail-product-image img {
        object-fit: contain;
        object-position: center center;
    }

    body[data-page="detail"] .detail-info-col {
        position: relative;
        z-index: 5;
        margin-top: -24px;
    }

    body[data-page="detail"] .detail-card {
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -14px 34px rgba(32, 37, 42, 0.10);
    }
}
