:root {
    --brand: #db232a;
    --brand-dark: #bc0b1d;
    --ink: #1f2933;
    --muted: #667085;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #f5f7fa;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.storefront-sticky-bar .btn-secondary,
[data-storefront-product-section] .btn-primary,
.management-page :is(.btn-primary, .btn-success) {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-focus-box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--brand) 30%, transparent);
}

.storefront-sticky-bar .btn-outline-secondary,
[data-storefront-product-section] :is(.btn-outline-secondary, .btn-outline-danger),
.management-page :is(.btn-outline-secondary, .btn-outline-success) {
    --bs-btn-color: var(--brand-dark);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark);
    --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-disabled-color: var(--brand-dark);
    --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-focus-box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--brand) 30%, transparent);
}

.site-preview-badge {
    position: fixed;
    z-index: 2000;
    top: 0.35rem;
    left: 50%;
    padding: 0.25rem 0.65rem;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: #fff;
    background: rgba(31, 41, 51, 0.9);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    pointer-events: none;
}

@media (min-width: 1400px) {
    .container {
        max-width: min(1600px, calc(100% - 2rem));
    }
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1 0 auto;  /* расте и запълва мястото между navbar и footer */
}

a {
    color: var(--brand-dark);
}

.breadcrumb {
    --bs-breadcrumb-divider: "›";
    flex-wrap: nowrap;
    align-items: center;
    max-width: 100%;
    margin-top: 0.2rem;
    padding: 0.2rem 0 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.breadcrumb-item {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb-item a:hover,
.breadcrumb-item a:focus,
.breadcrumb-item a:active {
    color: var(--brand);
    text-decoration: none;
}

.breadcrumb-item a:focus-visible {
    border-radius: 3px;
    outline: 2px solid color-mix(in srgb, var(--brand) 42%, transparent);
    outline-offset: 3px;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 0.55rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    float: none;
    padding-right: 0.55rem;
    color: #475569;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1;
}

.breadcrumb::-webkit-scrollbar {
    display: none;
}

.top-strip {
    background: #17202a;
    color: #eef2f6;
    font-size: 0.85rem;
    padding: 0.45rem 0;
}

.site-search {
    width: min(100%, 520px);
}

.search-suggestions {
    position: absolute;
    z-index: 1000;
    left: 0;
    right: 0;
    top: calc(100% + 0.4rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    overflow: hidden;
}

.btn-cart {
    position: relative;
    background: #fff;
    color: var(--brand-dark);
    border: 0;
    font-weight: 700;
}

.page-shell {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.messages-stack {
    position: fixed;
    z-index: 1090;
    top: 1rem;
    right: 1rem;
    display: flex;
    width: min(390px, calc(100vw - 2rem));
    flex-direction: column;
    gap: 0.75rem;
    padding: 0;
}

.site-message {
    position: relative;
    display: flex;
    width: 100%;
    max-width: none;
    align-items: flex-start;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
}

.site-message-accent {
    align-self: stretch;
    width: 5px;
    flex: 0 0 5px;
    background: #2563eb;
}

.site-message-icon {
    display: flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    align-items: center;
    justify-content: center;
    margin: 0.9rem 0 0.9rem 0.85rem;
    border-radius: 50%;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 1.05rem;
}

.site-message-content {
    min-width: 0;
    flex: 1;
    padding: 0.85rem 0.75rem;
}

.site-message-title {
    margin-bottom: 0.1rem;
    font-size: 0.9rem;
    font-weight: 800;
}

.site-message-text {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.site-message-close {
    margin: 0.75rem 0.75rem 0 0;
    flex: 0 0 auto;
    font-size: 0.72rem;
}

.site-message.message-success .site-message-accent {
    background: #16a34a;
}

.site-message.message-success .site-message-icon {
    color: #15803d;
    background: #dcfce7;
}

.site-message.message-error .site-message-accent {
    background: #dc2626;
}

.site-message.message-error .site-message-icon {
    color: #b91c1c;
    background: #fee2e2;
}

.site-message.message-warning .site-message-accent {
    background: #d97706;
}

.site-message.message-warning .site-message-icon {
    color: #b45309;
    background: #fef3c7;
}

@media (max-width: 575.98px) {
    .messages-stack {
        top: 0.75rem;
        right: 0.75rem;
        width: calc(100vw - 1.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-message {
        transition: none;
    }
}

.page-header h1,
.product-summary h1,
.auth-panel h1 {
    margin: 0;
    font-weight: 800;
}

.hero-copy {
    max-width: 620px;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.legal-page {
    width: min(100%, 920px);
    margin: clamp(1.5rem, 4vw, 3rem) auto;
}

.legal-page-header,
.legal-page-content {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.legal-page-header {
    margin-bottom: 1rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.legal-page-header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

.legal-page-intro {
    max-width: 720px;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.legal-page-updated {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.legal-page-content {
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.legal-page-content section + section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.legal-page-content h2 {
    margin: 0 0 0.75rem;
    color: var(--brand-dark);
    font-size: 1.25rem;
    font-weight: 800;
}

.legal-page-content p {
    margin: 0;
    line-height: 1.75;
}

.legal-page-content ul {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.legal-page-content li {
    padding-left: 0.25rem;
    line-height: 1.7;
}

.legal-page-content li + li {
    margin-top: 0.35rem;
}

.legal-page-content p + p {
    margin-top: 0.85rem;
}

.legal-table-wrap {
    margin-top: 1rem;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.legal-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: var(--surface);
}

.legal-table th,
.legal-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.legal-table th {
    color: var(--brand-dark);
    background: var(--soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.legal-table tr:last-child td {
    border-bottom: 0;
}

.legal-table code {
    color: var(--brand-dark);
    font-weight: 700;
}

.eyebrow {
    margin-bottom: 0.35rem;
    color: var(--brand-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
}

.home-banner-section {
    margin-top: clamp(1rem, 3vw, 1.75rem);
}

.home-banner-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(21, 101, 192, 0.12);
    border-radius: clamp(14px, 2vw, 22px);
    background: #fff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.16);
    isolation: isolate;
}

.home-banner-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.home-banner-image {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 6;
    min-height: 190px;
    max-height: 420px;
    object-fit: contain;
    background: #fff;
}

.home-banner-title {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(3.25rem, 5vw, 4.25rem);
    margin: 0;
    padding: 0.65rem clamp(1rem, 3vw, 2rem) 0.75rem;
    border-top: 1px solid rgba(21, 101, 192, 0.1);
    color: var(--ink);
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 750;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.home-banner-control {
    z-index: 3;
    width: clamp(3.5rem, 8%, 5.5rem);
    opacity: 1;
}

.home-banner-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.25rem, 4vw, 3rem);
    height: clamp(2.25rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(8px);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-banner-control:focus-visible .home-banner-arrow {
    background: var(--brand);
    transform: scale(1.08);
}

@media (hover: hover) and (pointer: fine) {
    .home-banner-arrow:hover {
        background: var(--brand);
        transform: scale(1.08);
    }
}

.home-banner-indicators {
    position: static;
    justify-content: center;
    gap: 0.35rem;
    margin: 0.8rem 0 0;
}

.home-banner-indicators [data-bs-target] {
    flex: 0 0 0.6rem;
    width: 0.6rem;
    height: 0.6rem;
    aspect-ratio: 1;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background-color: #94a3b8;
    box-shadow: none;
    opacity: 0.7;
    transform: scale(1);
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.home-banner-indicators .active {
    background-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
    opacity: 1;
    transform: scale(1.2);
}

.home-category-section {
    margin-top: clamp(1.35rem, 3vw, 2.25rem);
}

.home-category-carousel {
    --category-gap: clamp(0.75rem, 1.4vw, 1.1rem);
    --items-per-page: 5;
    position: relative;
    padding-bottom: 1.65rem;
}

.home-category-viewport {
    width: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.home-category-viewport::-webkit-scrollbar {
    display: none;
}

.home-category-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(
        (100% - (var(--items-per-page) - 1) * var(--category-gap))
        / var(--items-per-page)
    );
    gap: var(--category-gap);
}

.home-category-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 2px;
    color: var(--ink);
    background: #fff;
    flex-direction: column;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-category-card:focus-visible {
    border-color: var(--brand);
    outline: 3px solid color-mix(in srgb, var(--brand) 22%, transparent);
    outline-offset: -3px;
}

@media (hover: hover) and (pointer: fine) {
    .home-category-card:hover {
        border-color: color-mix(in srgb, var(--brand) 45%, #e5e7eb);
        color: var(--ink);
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.11);
        transform: translateY(-3px);
    }
}

.home-category-image-wrap {
    display: flex;
    width: 100%;
    aspect-ratio: 1;
    padding: clamp(0.85rem, 1.6vw, 1.4rem);
    align-items: center;
    justify-content: center;
    background: #fff;
}

.home-category-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-category-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    color: color-mix(in srgb, var(--brand) 78%, #334155);
    background:
        radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.95), transparent 58%),
        linear-gradient(145deg, #f8fafc, #eef2f7);
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 7vw, 6.5rem);
}

.home-category-copy {
    display: flex;
    min-height: 5.7rem;
    padding: 0.8rem 0.75rem 1rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.home-category-copy strong {
    font-size: clamp(0.98rem, 1.35vw, 1.15rem);
    font-weight: 800;
    line-height: 1.2;
    text-wrap: balance;
}

.home-category-copy span {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.2;
}

.home-category-control {
    position: absolute;
    z-index: 2;
    top: calc(50% - 0.825rem);
    display: flex;
    width: clamp(2.35rem, 3.6vw, 3rem);
    height: clamp(2.35rem, 3.6vw, 3rem);
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.home-category-control-prev {
    left: clamp(0.35rem, 1vw, 0.75rem);
}

.home-category-control-next {
    right: clamp(0.35rem, 1vw, 0.75rem);
}

.home-category-control:focus-visible {
    background: var(--brand);
    outline: 3px solid color-mix(in srgb, var(--brand) 25%, transparent);
    transform: translateY(-50%) scale(1.08);
}

@media (hover: hover) and (pointer: fine) {
    .home-category-control:hover {
        background: var(--brand);
        transform: translateY(-50%) scale(1.08);
    }
}

.home-category-control[hidden] {
    display: none;
}

.home-category-indicators {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    min-height: 0.75rem;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
}

.home-category-indicator {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #a8b0bb;
    opacity: 0.7;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.home-category-indicator.is-active {
    background: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
    opacity: 1;
    transform: scale(1.18);
}

.home-products-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 1.5vw, 1rem);
    margin: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(1rem, 2vw, 1.4rem);
}

.home-products-heading h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    text-align: center;
    white-space: nowrap;
}

.home-products-heading-line {
    width: min(11vw, 7rem);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--brand));
    opacity: 0.55;
}

.home-products-heading-line:last-child {
    background: linear-gradient(90deg, var(--brand), transparent);
}

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

/* Keep catalog cards wide enough for their product specifications. */
.product-grid.catalog-product-grid {
    grid-template-columns: minmax(0, 1fr);
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.product-promo-badge {
    position: absolute;
    top: 0.8rem;
    left: 0;
    z-index: 2;
    padding: 0.38rem 0.75rem;
    border-radius: 0 999px 999px 0;
    color: #fff;
    background: #e3062f;
    box-shadow: 0 5px 12px rgba(227, 6, 47, 0.2);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.favorite-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand-dark);
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.favorite-button:hover,
.favorite-button.is-active {
    color: #fff;
    background: var(--brand);
    transform: translateY(-1px);
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;          /* фиксирана височина за всички карти */
    padding: 0.9rem;
    background: #fff;
}

.product-image img,
.detail-image img,
.cart-row-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 1rem 0.85rem;
}

.product-brand {
    min-height: 1.2rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.product-title {
    min-height: 2.7rem;
    margin: 0.2rem 0 0.5rem;
    font-size: 0.98rem;
    line-height: 1.35;
}

.product-title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--ink);
    text-decoration: none;
}

.product-description,
.product-specs {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.product-specs {
    padding-left: 1rem;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid var(--line);
}

.product-footer-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-price-stack {
    display: flex;
    min-height: 2.8rem;
    flex-direction: column;
    justify-content: flex-end;
}

.product-price,
.detail-price {
    color: var(--brand-dark);
    font-size: 1.25rem;
    font-weight: 800;
}

.product-price-original,
.detail-price-original,
.cart-price-original,
.checkout-price-original {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: line-through;
}

.product-price-promo,
.detail-price-promo,
.cart-price-promo,
.checkout-price-promo {
    color: #e3062f;
}

.detail-promo-heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.25rem;
}

.detail-promo-badge {
    display: inline-flex;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: #fff;
    background: #e3062f;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.detail-price-promo {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cart-price-original,
.checkout-price-original {
    margin-right: 0.35rem;
}

.stock-badge {
    display: inline-flex;
    margin-top: 0.25rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    color: #fff;
    background: var(--brand);
    font-size: 0.78rem;
    font-weight: 700;
}

.filters-card,
.content-section,
.auth-panel,
.order-summary,
.cart-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.filters-card {
    position: sticky;
    top: 1rem;
}

.search-category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.125rem;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    background: var(--soft);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.search-category-link:is(:hover, :focus-visible) {
    background: color-mix(in srgb, var(--brand) 8%, var(--surface));
    color: var(--brand-dark);
}

.search-category-link:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.search-category-count {
    flex: none;
    min-width: 1.65rem;
    padding: 0 0.3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.search-category-link > i {
    flex: none;
    color: var(--muted);
    font-size: 0.65rem;
}

.filters-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.filters-toggle > i {
    transition: transform 0.2s ease;
}

.filters-toggle[aria-expanded="true"] > i {
    transform: rotate(180deg);
}

.price-filter {
    margin: 0 -0.2rem 1.15rem;
}

.price-filter details {
    border-bottom: 1px solid var(--line);
    padding: 0 0.2rem 1rem;
}

.price-filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--brand);
    color: var(--brand-dark);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.price-filter-title::-webkit-details-marker {
    display: none;
}

.price-filter-title i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.price-filter details:not([open]) .price-filter-title {
    margin-bottom: 0;
}

.price-filter details:not([open]) .price-filter-title i {
    transform: rotate(180deg);
}

.price-filter-body {
    padding-top: 0.1rem;
}

.price-range-slider {
    position: relative;
    isolation: isolate;
    height: 1.35rem;
    margin: 0 0.2rem;
}

.price-range-track {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 0.38rem;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        #c8ccd1 0 var(--price-start),
        var(--brand) var(--price-start) var(--price-end),
        #c8ccd1 var(--price-end) 100%
    );
    transform: translateY(-50%);
    z-index: 1;
}

.price-range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.35rem;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
}

.price-range-input::-webkit-slider-runnable-track {
    height: 0.38rem;
    background: transparent;
}

.price-range-input::-moz-range-track {
    height: 0.38rem;
    background: transparent;
}

.price-range-input::-webkit-slider-thumb {
    width: 0.72rem;
    height: 1.2rem;
    margin-top: -0.41rem;
    border: 0;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    background: #aeb3b9;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
    cursor: grab;
    pointer-events: auto;
}

.price-range-input::-moz-range-thumb {
    width: 0.72rem;
    height: 1.2rem;
    border: 0;
    border-radius: 2px;
    background: #aeb3b9;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
    cursor: grab;
    pointer-events: auto;
}

.price-range-input:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.price-range-input:focus-visible::-moz-range-thumb {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.price-range-slider.is-disabled {
    opacity: 0.7;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.15rem;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 600;
}

.price-filter-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 2rem;
    width: 100%;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    white-space: nowrap;
}

.price-number-input {
    min-width: 0;
    padding-right: 0.3rem;
    padding-left: 0.45rem;
    border-color: #9ca3af;
    border-radius: 2px;
}

.price-number-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.15rem rgba(219, 35, 42, 0.16);
}

.price-filter-separator {
    color: var(--muted);
}

.price-filter-submit {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    color: var(--brand-dark);
    background: transparent;
    font-size: 1rem;
    cursor: pointer;
    flex: 0 0 auto;
}

.price-filter-submit:hover,
.price-filter-submit:focus-visible {
    color: var(--brand);
}

.category-products {
    transition: opacity 0.16s ease;
}

.category-products.is-price-filter-loading {
    opacity: 0.48;
    pointer-events: none;
}

.property-filter-more {
    margin-top: 0.15rem;
}

.property-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0;
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
}

.property-filter-toggle:hover {
    color: var(--brand);
    text-decoration: underline;
}

.property-filter-toggle .property-filter-hide-label {
    display: none;
}

.property-filter-toggle i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.property-filter-toggle[aria-expanded="true"] .property-filter-show-label {
    display: none;
}

.property-filter-toggle[aria-expanded="true"] .property-filter-hide-label {
    display: inline;
}

.property-filter-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.sorting-select {
    min-width: 190px;
}

.per-page-select {
    min-width: 90px;
}

.sorting-label {
    white-space: nowrap;
}

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

.catalog-sort-group,
.catalog-per-page-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.catalog-per-page-group > span {
    white-space: nowrap;
}

.category-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.category-search-header {
    flex: 1 1 24rem;
    max-width: 42rem;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .catalog-heading-column {
        width: 25%;
        flex: 0 0 25%;
        min-width: 0;
    }
}

.category-search-header .category-search-controls {
    flex: 1 1 14rem;
    width: auto;
    max-width: 28rem;
}

.category-search-summary {
    color: var(--muted);
    font-size: 0.92rem;
    white-space: nowrap;
}

.category-search-summary strong {
    color: var(--ink);
}

.category-search-controls {
    display: flex;
    min-width: 0;
    width: min(100%, 36rem);
}

.category-search-input {
    min-width: 0;
    width: 100%;
    height: 2.25rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-right: 0;
    border-radius: 5px 0 0 5px;
    color: var(--ink);
    background: #fff;
    font-size: 0.9rem;
    outline: none;
}

.category-search-input::placeholder {
    color: #94a3b8;
}

.category-search-input:focus {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.category-search-submit {
    display: inline-flex;
    width: 2.5rem;
    height: 2.25rem;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--brand);
    border-radius: 0 5px 5px 0;
    color: #fff;
    background: var(--brand);
    cursor: pointer;
}

.category-search-submit:hover,
.category-search-submit:focus-visible {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 42%) minmax(0, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.product-gallery,
.product-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.product-gallery {
    padding: 1rem;
}

.product-gallery .main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: #f8fafc;
}

.product-gallery .main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-gallery .main-image-button {
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: inherit;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: zoom-in;
}

.product-gallery .image-thumbnails {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.product-gallery .image-thumbnails button {
    border: 1px solid transparent;
    padding: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.product-gallery .image-thumbnails button.active,
.product-gallery .image-thumbnails button:hover {
    border-color: var(--primary);
}

.product-gallery .image-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

#product-gallery-modal .modal-dialog {
    width: min(94vw, 1320px);
    max-width: 1320px;
    margin-inline: auto;
}

#product-gallery-modal .modal-content {
    height: min(88vh, 900px);
}

#product-gallery-modal .modal-body {
    height: 100%;
    padding: clamp(1rem, 3vw, 3rem) !important;
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

#product-gallery-modal .modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-dark);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.18);
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 20;
    font-size: 1.1rem;
    transition: background-color 180ms ease, border-color 180ms ease,
        box-shadow 180ms ease, transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
    #product-gallery-modal .modal-nav:hover {
        transform: translateY(-50%) scale(1.08);
        color: #fff;
        border-color: var(--brand);
        background: var(--brand);
        box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 35%, transparent);
    }
}

#product-gallery-modal .modal-nav:active {
    transform: translateY(-50%) scale(0.96);
}

#product-gallery-modal .modal-nav:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
}

#product-gallery-modal .modal-nav.prev {
    left: clamp(0.6rem, 1.5vw, 1.25rem);
}

#product-gallery-modal .modal-nav.next {
    right: clamp(0.6rem, 1.5vw, 1.25rem);
}

#product-gallery-modal .modal-body > img {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
}

#product-gallery-modal .modal-body > img.gallery-enter-next {
    animation: gallery-enter-next 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

#product-gallery-modal .modal-body > img.gallery-enter-prev {
    animation: gallery-enter-prev 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes gallery-enter-next {
    from {
        opacity: 0;
        transform: translateX(28px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes gallery-enter-prev {
    from {
        opacity: 0;
        transform: translateX(-28px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #product-gallery-modal .modal-body > img.gallery-enter-next,
    #product-gallery-modal .modal-body > img.gallery-enter-prev {
        animation: none;
    }
}

@media (max-width: 991px) {
    .product-gallery .image-thumbnails {
        justify-content: center;
    }

    #product-gallery-modal .modal-content {
        height: min(82vh, 760px);
    }

    #product-gallery-modal .modal-body {
        padding: 0.75rem !important;
        border-radius: 12px;
        touch-action: pan-y;
    }

    #product-gallery-modal .modal-nav {
        width: 46px;
        height: 46px;
    }
}

.detail-image {
    aspect-ratio: 1 / 1;
}

.product-summary {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.product-summary h1 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-pills span {
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: #f8fafc;
    font-size: 0.86rem;
}

.buy-box {
    position: relative;
    display: grid;
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1rem 4.25rem 1rem 1rem;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    background: #f5f7fa;
}

.product-detail-favorite-control {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.delivery-estimate {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.delivery-estimate i {
    color: var(--brand);
    font-size: 1.05rem;
}

.free-delivery-label {
    color: #00cc33;
}

.pagination {
    --bs-pagination-color: var(--brand-dark);
    --bs-pagination-hover-color: #fff;
    --bs-pagination-hover-bg: var(--brand);
    --bs-pagination-hover-border-color: var(--brand);
    --bs-pagination-focus-color: var(--brand-dark);
    --bs-pagination-focus-bg: #fff;
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem
        color-mix(in srgb, var(--brand) 25%, transparent);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-border-color: var(--brand);
}

.qty-input {
    max-width: 110px;
}

.product-meta,
.details-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.product-meta {
    overflow-wrap: anywhere;
}

.product-meta > div,
.details-list div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
}

.product-meta dt,
.details-list dt {
    color: var(--muted);
    font-weight: 700;
}

.product-meta dd,
.details-list dd {
    margin: 0;
}

.content-section {
    padding: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1.25rem;
}

.content-section h1,
.content-section h2,
.order-summary h2 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.spec-table th {
    width: 34%;
    color: var(--muted);
}

.auth-layout {
    display: grid;
    place-items: start center;
}

.auth-panel {
    width: min(100%, 460px);
    padding: clamp(1.25rem, 3vw, 2rem);
}

.auth-panel.wide {
    width: min(100%, 620px);
}

.stacked-form {
    display: grid;
    gap: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.google-signin-button {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #747775;
    border-radius: 4px;
    color: #1f1f1f;
    background: #fff;
    box-shadow: none;
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.25px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.google-signin-button:hover {
    color: #1f1f1f;
    background: #f8faff;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}

.google-signin-button:active {
    background: #eef3fe;
    box-shadow: none;
}

.google-signin-button:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.3);
    outline-offset: 2px;
}

.google-signin-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
}

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

.full-span {
    grid-column: 1 / -1;
}

.form-error {
    margin-top: 0.25rem;
    color: var(--brand-dark);
    font-size: 0.85rem;
}

.recaptcha-field {
    min-height: 78px;
    overflow-x: auto;
}

.form-hint {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.auth-switch {
    margin: 1rem 0 0;
    text-align: center;
}

.auth-forgot-password {
    justify-self: end;
    margin-top: -0.35rem;
    font-size: 0.9rem;
}

.account-layout,
.cart-layout,
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.25rem;
    align-items: start;
}

.checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
}

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

.order-mini-list a,
.order-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
}

.order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 10rem 7rem;
    align-items: center;
}

.order-row-info {
    min-width: 0;
}

.order-row-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    min-width: 10rem;
    padding: 0.2rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}

.order-status-pending {
    border-color: #f2c35b;
    background: #fff4d6;
    color: #7a4b00;
}

.order-status-awaiting_bank_transfer {
    border-color: #e4b64c;
    background: #fff4d6;
    color: #7a4b00;
}

.order-status-processing {
    border-color: #87b9e8;
    background: #e8f2ff;
    color: #07549a;
}

.order-status-completed {
    border-color: #83c99c;
    background: #e7f7ed;
    color: #176b3a;
}

.order-status-cancelled {
    border-color: #e3a1a8;
    background: #fdebec;
    color: #9c2531;
}

.cart-items,
.orders-list,
.order-items {
    display: grid;
    gap: 0.75rem;
}

.danger-link {
    color: var(--brand-dark);
    text-decoration: none;
}

.order-summary {
    position: sticky;
    top: 1rem;
    padding: 1rem;
}

.order-detail-header {
    display: block;
}

.favorites-page-header {
    display: block;
}

.summary-line,
.summary-total,
.summary-product,
.order-item-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}

.checkout-summary-products {
    display: grid;
}

.checkout-summary-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.8rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}

.checkout-summary-product-image {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.checkout-summary-product-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.checkout-summary-product-info {
    min-width: 0;
    padding-top: 0.1rem;
}

.checkout-summary-product-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.checkout-summary-product-title:hover {
    color: var(--brand-dark);
}

.checkout-summary-product-meta {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.checkout-summary-product-total {
    padding-top: 0.1rem;
    font-size: 0.92rem;
    text-align: right;
    white-space: nowrap;
}

.summary-total {
    align-items: center;
    border-bottom: 0;
    font-size: 1.1rem;
}

.summary-total strong {
    color: var(--brand-dark);
    font-size: 1.3rem;
}

.order-item-line strong,
.summary-product strong,
.summary-line strong,
.summary-total strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

.order-row small {
    display: block;
    color: var(--muted);
}

.order-row-total {
    flex: 0 0 auto;
    justify-self: end;
    width: 7rem;
    text-align: right;
    white-space: nowrap;
}

.empty-state {
    padding: 2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.search-empty-state {
    grid-column: 1 / -1;
    display: flex;
    min-height: clamp(280px, 42vh, 420px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: clamp(2rem, 6vw, 4rem);
    border-style: solid;
    background:
        radial-gradient(circle at 50% 15%, color-mix(in srgb, var(--brand) 8%, transparent), transparent 42%),
        #fff;
}

.search-empty-state-icon {
    display: inline-flex;
    width: 4.25rem;
    height: 4.25rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand) 10%, #fff);
    color: var(--brand);
    font-size: 1.55rem;
}

.search-empty-state h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 800;
}

.search-empty-state p {
    max-width: 36rem;
    margin: 0.75rem auto 0;
    line-height: 1.65;
}

.search-empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-cart-primary {
    background: var(--brand-action, var(--brand));
    border-color: var(--brand);
    color: #fff;
}

#speedy-office-locator {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
}

#speedy-office-locator iframe {
    display: block;
}

.delivery-method-selector {
    padding: 0;
    border: 0;
}

.delivery-method-selector legend {
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
}

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

.delivery-method-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.delivery-method-option:has(input:checked) {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 7%, #fff);
    box-shadow: 0 0 0 1px var(--brand);
}

.delivery-method-option input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--brand);
}

.delivery-method-block[hidden] {
    display: none;
}

.checkout-section-block {
    margin-top: 0.25rem;
    padding-top: 1.25rem;
    border: 0;
    border-top: 1px solid var(--line);
}

.payment-method-selector legend {
    margin-bottom: 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
}

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

.payment-method-option {
    display: flex;
    min-height: 4.35rem;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease,
        background-color 0.15s ease;
}

.payment-method-option:has(input:checked) {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 7%, #fff);
    box-shadow: 0 0 0 1px var(--brand);
}

.payment-method-option input,
.invoice-choice-options input,
.invoice-recipient-options input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    flex: 0 0 auto;
    accent-color: var(--brand);
}

.payment-method-copy {
    display: grid;
    min-width: 0;
    gap: 0.18rem;
}

.payment-method-copy strong {
    color: var(--ink);
    line-height: 1.3;
}

.payment-method-copy small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.35;
}

.bank-transfer-details {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #b9cfdf;
    border-radius: 10px;
    background: #f4f8fb;
}

.bank-transfer-details[hidden] {
    display: none;
}

.bank-transfer-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.bank-transfer-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.05rem;
}

.bank-transfer-heading p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.bank-transfer-icon {
    display: inline-flex;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #dceaf4;
    color: #245a7a;
    font-size: 1.1rem;
    font-weight: 800;
}

.bank-account-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    overflow: hidden;
    border: 1px solid #d4e1ea;
    border-radius: 8px;
    background: #fff;
}

.bank-account-details div {
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e5edf2;
}

.bank-account-details div:nth-child(odd) {
    border-right: 1px solid #e5edf2;
}

.bank-account-details div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.bank-account-details dt {
    margin-bottom: 0.15rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bank-account-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-weight: 700;
}

.bank-transfer-notice {
    padding: 0.85rem 0.95rem;
    border-left: 3px solid #3d7fa5;
    border-radius: 0 7px 7px 0;
    background: #fff;
}

.bank-transfer-notice p {
    margin: 0;
    color: #34475a;
    font-size: 0.88rem;
    line-height: 1.5;
}

.bank-transfer-notice p + p {
    margin-top: 0.45rem;
}

.order-payment-note {
    margin: 1rem 0 0;
    padding: 0.8rem 0.9rem;
    border-left: 3px solid #3d7fa5;
    border-radius: 0 7px 7px 0;
    background: #f4f8fb;
    color: #34475a;
    line-height: 1.55;
}

.invoice-choice {
    padding: 0;
    border: 0;
}

.invoice-choice legend {
    margin-bottom: 0.55rem;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.invoice-choice-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.invoice-choice-options label {
    display: inline-flex;
    min-width: 5.5rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid #cad8e2;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.invoice-choice-options label:has(input:checked) {
    border-color: var(--brand);
    box-shadow: 0 0 0 1px var(--brand);
}

.invoice-details {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d4e1ea;
}

.invoice-details[hidden],
.invoice-recipient-fields[hidden] {
    display: none;
}

.invoice-recipient-choice,
.invoice-address-fields {
    padding: 0;
    border: 0;
}

.invoice-recipient-choice legend,
.invoice-address-fields legend {
    margin-bottom: 0.6rem;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 800;
}

.invoice-recipient-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.invoice-recipient-options label {
    display: inline-flex;
    min-width: 10rem;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cad8e2;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.invoice-recipient-options label:has(input:checked) {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 5%, #fff);
    box-shadow: 0 0 0 1px var(--brand);
}

.invoice-form-grid,
.invoice-address-grid {
    display: grid;
    gap: 0.85rem;
}

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

.invoice-address-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.4fr);
}

.invoice-form-grid .form-label span,
.invoice-address-grid .form-label span {
    color: #dc2626;
}

.invoice-notes-field {
    grid-column: 1 / -1;
}

.invoice-notes-field textarea {
    min-height: 5rem;
    resize: vertical;
}

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

.speedy-address-grid .form-label span {
    color: #dc2626;
}

.address-region-field,
.address-site-field {
    grid-column: span 6;
}

.address-street-field {
    grid-column: span 7;
}

.address-number-fields {
    display: grid;
    grid-column: span 5;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
}

.address-complex-field {
    grid-column: span 5;
}

.address-note-field {
    grid-column: span 7;
}

.saved-delivery-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--brand) 5%, #fff);
}

.saved-delivery-address > div:first-child {
    display: grid;
    gap: 0.2rem;
}

.saved-delivery-address span {
    color: var(--muted);
}

.saved-delivery-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.account-legacy-address {
    padding: 0.8rem 1rem;
    border: 1px solid #f0c36d;
    border-radius: 8px;
    background: #fff8df;
}

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

.speedy-combobox {
    position: relative;
}

.speedy-combobox:focus-within {
    z-index: 2;
}

.speedy-combobox .form-label span {
    color: #dc2626;
}

.speedy-combobox-control {
    position: relative;
}

.speedy-combobox-control .form-control {
    padding-right: 2.5rem;
}

.speedy-combobox-control .form-control[aria-expanded="true"] {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.speedy-combobox-arrow {
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 6px solid var(--ink);
    pointer-events: none;
    transform: translateY(-50%);
}

.speedy-combobox-control .form-control:disabled
    + .speedy-combobox-arrow {
    opacity: 0.4;
}

.speedy-combobox-menu {
    --speedy-option-height: 3rem;
    position: absolute;
    z-index: 100;
    top: 100%;
    right: 0;
    left: 0;
    max-height: calc(var(--speedy-option-height) * 6 + 2px);
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #b8bec7;
    border-radius: 0 0 8px 8px;
    background: #fff;
    box-shadow: 0 10px 22px rgb(15 23 42 / 16%);
    scrollbar-color: #92969c #f1f2f3;
    scrollbar-width: auto;
}

.speedy-combobox-menu::-webkit-scrollbar {
    width: 12px;
}

.speedy-combobox-menu::-webkit-scrollbar-track {
    background: #f1f2f3;
}

.speedy-combobox-menu::-webkit-scrollbar-thumb {
    border: 2px solid #f1f2f3;
    border-radius: 999px;
    background: #92969c;
}

.speedy-combobox-menu[hidden] {
    display: none;
}

.speedy-combobox-option {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--speedy-option-height);
    min-height: var(--speedy-option-height);
    padding: 0 0.75rem;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
    color: var(--ink);
    font: inherit;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.speedy-combobox-option > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.speedy-combobox-option:last-child {
    border-bottom: 0;
}

.speedy-combobox-option:hover,
.speedy-combobox-option:focus-visible {
    outline: 0;
    background: #edf3f8;
}

.speedy-combobox-message {
    min-height: var(--speedy-option-height);
    padding: 0.8rem 0.75rem;
    color: var(--muted);
}

.speedy-selected-office {
    margin: 1rem 0 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid #b8d7c2;
    border-radius: 8px;
    background: #f0f9f3;
}

.speedy-map-choice summary {
    width: fit-content;
    color: var(--brand-dark);
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 767.98px) {
    .delivery-method-options,
    .payment-method-options,
    .speedy-search-grid {
        grid-template-columns: 1fr;
    }

    .bank-account-details {
        grid-template-columns: 1fr;
    }

    .bank-account-details div,
    .bank-account-details div:nth-child(odd),
    .bank-account-details div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid #e5edf2;
    }

    .bank-account-details div:last-child {
        border-bottom: 0;
    }

    .invoice-form-grid,
    .invoice-address-grid {
        grid-template-columns: 1fr;
    }

    .invoice-notes-field {
        grid-column: 1;
    }

    .saved-delivery-address {
        align-items: stretch;
        flex-direction: column;
    }

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

    .address-region-field,
    .address-site-field,
    .address-street-field,
    .address-number-fields,
    .address-complex-field,
    .address-note-field {
        grid-column: 1;
    }
}

@media (max-width: 575.98px) {
    .address-number-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.btn-cart-primary:hover,
.btn-cart-primary:focus {
    background: var(--brand-action-hover, var(--brand-dark));
    border-color: var(--brand-dark);
    color: #fff;
}

.gpu-benchmark-box {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f9fafb;
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gpu-benchmark-score .label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.gpu-benchmark-score .value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.gpu-benchmark-note {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
}

.gpu-bar-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.5rem;
    row-gap: 0.15rem;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
}

.gpu-bar-label {
    grid-column: 1 / 2;
    color: var(--muted);
    font-weight: 600;
}

.gpu-bar-value {
    grid-column: 2 / 3;
    justify-self: end;
    color: var(--ink);
    font-weight: 700;
}

.gpu-bar-track {
    grid-column: 1 / 3;
    position: relative;
    width: 100%;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
}

.gpu-bar-fill {
    height: 100%;
    border-radius: 999px;
    background-image: linear-gradient(
        to right,
        #22c55e,   /* зелено за ниски */
        #eab308,   /* жълто за средни */
        #ef4444    /* червено за високи */
    );
}

/* Subcategory pill styles for category listing */
.subcategories-list {
    align-items: center;
}

.subcategory-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    background: #f6f8ff;
    color: var(--brand-dark);
    border-radius: 999px;
    border: 1px solid rgba(30,41,59,0.06);
    box-shadow: 0 1px 0 rgba(15,23,42,0.02);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.subcategory-pill:hover,
.subcategory-pill:focus {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

.subcategory-pill:active {
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .site-search
    {
        width: 100%;
    }

    .product-detail-layout,
    .account-page,
    .account-layout,
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar,
    .account-side,
    .order-summary {
        position: static;
    }
}

@media (min-width: 768px) {
    .filters-collapse {
        display: contents !important;
    }

    .filters-card {
        box-sizing: border-box;
        /*
         * The filter starts below the two-row header, breadcrumbs and page title.
         * Leave room for them so the bottom of the internal scroller is reachable
         * before the document itself has been scrolled.
         */
        max-height: calc(100vh - 14rem);
        max-height: calc(100dvh - 14rem);
        padding-bottom: 1.25rem !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    .filters-actions {
        position: relative;
        scroll-margin-bottom: 1rem;
    }

    .filters-card::-webkit-scrollbar {
        width: 0.55rem;
    }

    .filters-card::-webkit-scrollbar-thumb {
        border: 2px solid #fff;
        border-radius: 999px;
        background: #cbd5e1;
    }

    .filters-card::-webkit-scrollbar-track {
        background: transparent;
    }
}

@media (max-width: 767.98px) {
    .page-shell {
        padding-top: 1rem;
    }

    .page-header {
        display: block;
    }

    .home-banner-image {
        aspect-ratio: 16 / 7;
        min-height: 150px;
    }

    .home-banner-title {
        min-height: 3rem;
        padding: 0.5rem 0.85rem 0.6rem;
        font-size: 0.9rem;
        line-height: 1.2;
    }

    .home-banner-arrow {
        width: 2.15rem;
        height: 2.15rem;
        font-size: 0.8rem;
    }

    .home-category-carousel {
        --category-gap: 0.75rem;
        --items-per-page: 1;
    }

    .home-category-image-wrap {
        max-height: 19rem;
    }

    .home-category-control {
        width: 2.35rem;
        height: 2.35rem;
    }

    .home-products-heading {
        gap: 0.55rem;
        margin-top: 1.35rem;
    }

    .home-products-heading-line {
        flex: 1 1 auto;
        width: auto;
        max-width: 3rem;
    }

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

    .product-footer .btn {
        width: 100%;
    }

    .form-grid,
    .product-meta > div,
    .details-list div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

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

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

    .cart-row {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .cart-row-total {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .page-header > h1,
    .page-header > div {
        width: 100%;
    }

    .catalog-sort-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .catalog-sort-group {
        width: 100%;
    }

    .catalog-sort-group .sorting-select {
        min-width: 0;
        flex: 1 1 auto;
    }

    .catalog-per-page-group {
        width: 100%;
        justify-content: flex-end;
    }

    .filters-card {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .filters-collapse.collapsing {
        overflow: hidden;
        transition: height 0.2s ease-out;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .home-category-carousel {
        --items-per-page: 3;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-category-viewport {
        scroll-behavior: auto;
    }

    .home-category-card,
    .home-category-control,
    .home-category-indicator {
        transition: none;
    }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .filters-collapse.collapsing {
        transition: none;
    }
}

@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }

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

@media (min-width: 992px) {
    .product-grid.catalog-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

@media (min-width: 1400px) {
    .home-product-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .checkout-summary-product {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 0.65rem;
    }

    .checkout-summary-product-image {
        grid-row: 1 / span 2;
        width: 64px;
        height: 64px;
    }

    .checkout-summary-product-total {
        grid-column: 2;
        justify-self: end;
        padding-top: 0;
    }

    .order-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        column-gap: 0.75rem;
        row-gap: 0.6rem;
        padding: 0.85rem;
    }

    .order-row-total {
        grid-column: 2;
        grid-row: 1;
        width: auto;
    }

    .order-row-status {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
        min-width: 0;
        font-size: 0.88rem;
    }

    .sorting-label {
        width: 100%;
    }

    .catalog-sort-group {
        flex-wrap: wrap;
    }

    .catalog-per-page-group {
        justify-content: flex-start;
    }

    .per-page-select {
        min-width: 0;
        width: 90px;
    }
}

@media (max-width: 399.98px) {
    .category-search-form {
        align-items: stretch;
        flex-direction: column;
        gap: 0.45rem;
    }

    .category-search-controls {
        width: 100%;
    }
}
