/* mod/css/product.css */
/* ========================================
   PRODUCT CSS - Match Design 100%
   ======================================== */

/* === Products Section === */
.home-products-section {
    margin-top: -2rem;
    padding: 0;
}

/* === Section Header === */
.products-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.products-section-header-left {
    flex: 1;
}

.products-section-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin: 0;
}

.products-section-subtitle {
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin: 0.25rem 0 0 0;
}

/* === Explore Button === */
.btn-explore {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: opacity 0.12s ease-out;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-explore:hover {
    opacity: 0.9;
    color: white;
}

.btn-explore i {
    font-size: 0.7rem;
}

/* === Products Grid === */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* === Product Card === */
.product-card {
    background: var(--color-white);
    margin-bottom: 0px;
    border-radius: 10px;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-200);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    display: flex;
    flex-direction: column;
}

.product-card:hover,
.rv-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.product-card-link,
.rv-product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* === Product Image === */
.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 50%;
    background: var(--color-gray-100);
    overflow: hidden;
    border-radius: 8px;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.15s ease-out;
}

.product-card:hover .product-card-image img {
    transform: scale(1.02);
}

/* === Lazy Loading === */
.product-card-image img.lazy {
    filter: blur(5px);
    transition: filter 0.2s ease-out;
}

.product-card-image img.lazy.loaded {
    filter: blur(0);
}

/* === Image Placeholder === */
.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
    border-radius: 8px;
}

.product-image-placeholder i {
    font-size: 2rem;
    color: var(--color-gray-300);
}

/* === Product Content === */
.product-card-content {
    padding: 0.75rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

/* === Product Title === */
.product-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-gray-800);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
    transition: color 0.12s ease-out;
}

.product-card:hover .product-card-title {
    color: var(--primary);
}

/* === Product Price Row === */
.product-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.35rem;
}

.product-price-range {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-red-600);
    letter-spacing: -0.01em;
}

.product-price-current {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-red-600);
}

.product-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-price-original {
    font-size: 0.8rem;
    color: var(--sf-text-subtle); /* the struck price is text too: 4.5:1 (owner 18.11) */
    text-decoration: line-through;
}

.product-discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-red-600);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

/* === Product Favorite Button === */
.product-favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: none;
}

.product-favorite-btn i {
    font-size: 1.1rem;
    color: var(--color-white);
    transition: color 0.2s ease, transform 0.15s ease;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.product-card:hover .product-favorite-btn {
    opacity: 1;
    transform: scale(1);
}

/* Always show if active (favorited) */
.product-favorite-btn.active {
    opacity: 1;
    transform: scale(1);
}

.product-favorite-btn.active i {
    color: var(--color-red-500);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.product-favorite-btn:hover {
    transform: scale(1.15);
}

.product-favorite-btn:hover i {
    color: var(--color-red-500);
    transform: scale(1.1);
}

.product-favorite-btn:active i {
    transform: scale(0.9);
}

.product-favorite-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* === Product Meta (Rating, Sold, Delivery) === */
.product-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--color-amber-500);
    line-height: 1;
}

.product-rating i {
    font-size: 0.7rem;
    color: var(--color-amber-500);
    line-height: 1;
}

.product-rating span {
    color: var(--color-amber-500);
    font-weight: 500;
    line-height: 1;
}

.product-rating .rating-count {
    color: var(--text-muted, #6c757d);
    font-weight: 400;
    font-size: 0.75rem;
    line-height: 1;
}

.product-sold {
    color: var(--color-gray-500);
    line-height: 1;
}

.product-delivery {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    line-height: 1;
}

.product-delivery i {
    font-size: 0.7rem;
    line-height: 1;
}

/* Giao ngay - màu xanh lá */
.product-delivery.delivery-instant {
    color: var(--color-emerald-500);
}

.product-delivery.delivery-instant i {
    color: var(--color-emerald-500);
}

/* Order - màu xanh nước */
.product-delivery.delivery-order {
    color: #06b6d4;
}

.product-delivery.delivery-order i {
    color: #06b6d4;
}

.product-meta-divider {
    color: var(--color-gray-300);
    font-size: 0.6rem;
}

/* ========================================
   Loading Skeleton
   ======================================== */
.products-loading {
    position: relative;
}

.product-card-skeleton {
    background: transparent;
}

.skeleton-image {
    width: 100%;
    padding-top: 50%;
    background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-200) 50%, var(--color-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 10px;
}

.skeleton-content {
    padding: 0.75rem 0 0 0;
}

.skeleton-title {
    height: 14px;
    width: 85%;
    background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-200) 50%, var(--color-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-price {
    height: 16px;
    width: 50%;
    background: linear-gradient(90deg, var(--color-gray-100) 25%, var(--color-gray-200) 50%, var(--color-gray-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   Empty State
   ======================================== */
.products-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--color-white);
    border-radius: 12px;
    text-align: center;
    border: 1px dashed var(--color-slate-300);
    min-height: 280px;
}

.products-empty-state .empty-state-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.products-empty-state .empty-state-icon i {
    font-size: 2rem;
    color: var(--primary);
}

.products-empty-state .empty-state-text h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-slate-800);
    margin-bottom: 0.5rem;
}

.products-empty-state .empty-state-text p {
    font-size: 0.9rem;
    color: var(--color-slate-500);
    margin: 0;
    max-width: 320px;
    line-height: 1.5;
}

/* ========================================
   Load More
   ======================================== */
.products-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.btn-load-more {
    background: white;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid var(--primary);
    padding: 0.625rem 1.5rem;
    border-radius: 6px;
    transition: background-color 0.12s ease-out, color 0.12s ease-out;
    cursor: pointer;
}

.btn-load-more:hover {
    background: var(--primary);
    color: white;
}

.btn-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Category Active
   ======================================== */
.category-card.active-category {
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.15);
}

/* ========================================
   Animation
   ======================================== */
.product-card.fade-in {
    animation: dm-motion-item-enter var(--dm-reveal-dur, 220ms) var(--dm-reveal-ease, ease-out) forwards;
    opacity: 0;
}

.product-card.dm-motion-list-item {
    animation-delay: var(--dm-item-delay, 0ms);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card.fade-in,
    .product-card.dm-motion-list-item {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    /* The section head on a phone is the theme's (99-responsive/30-mobile-content.css, up to 767 px): this
       template rule moved it 8 px off the page's left line and, at 768 px, stood it centred in a column (19.11). */

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card-title {
        font-size: 0.85rem;
    }

    .product-price-current {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 0.75rem;
    }

    .product-card-content {
        padding-top: 0.5rem;
    }

    .product-card-title {
        font-size: 0.8rem;
        min-height: auto;
    }

    .product-price-current {
        font-size: 0.85rem;
    }

    .product-price-original {
        font-size: 0.75rem;
    }

    .product-discount-badge {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
}
/* mod/css/products-filter.css */
/* ========================================
   Products Page - Filter & Layout
   ======================================== */

.products-page {
    padding: 1.5rem 0 3rem;
    min-height: calc(100vh - 200px);
    background: var(--color-slate-50);
}

/* Page Header */

/* ========================================
   Filter Section
   ======================================== */

/* Use CSS Grid for consistent sizing */

.filter-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-slate-500);
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Select Wrapper */

.filter-select {
    width: 100%;
    height: 38px;
    padding: 0 2rem 0 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-slate-800);
    background: var(--color-slate-50);
    border: 1px solid var(--color-slate-200);
    border-radius: 6px;
    appearance: none;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease, outline 0.2s ease;
}

.filter-select:hover {
    border-color: var(--color-slate-300);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Input */

/* Price Inputs */

/* Filter Buttons Group */

/* Filter Button */
.btn-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    height: 38px;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease,
        box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-filter:hover {
    background: var(--primary-dark, var(--primary));
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.25);
}

.btn-filter i {
    font-size: 0.7rem;
}

/* Reset Filter Button */
.btn-reset-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
    color: var(--color-slate-500);
    background: var(--color-slate-100);
    border: 1px solid var(--color-slate-200);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-reset-filter:hover {
    color: var(--color-red-500);
    background: var(--color-red-50);
    border-color: var(--color-red-200);
}

/* ========================================
   Results Info
   ======================================== */

/* ========================================
   Products Grid Override
   ======================================== */
.products-page .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {

    .products-page .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {

    /* Move price to second row */

    .products-page .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .products-page {
        padding: 1rem 0 2rem;
    }

    .products-page .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {

    .btn-filter {
        flex: 1;
    }

}
/* mod/css/catalog-filter-bar.css */
/* Catalog filters: «Filters» next to sorting, a row of chosen filters (each removable), the «All filters»
   panel (right drawer; bottom sheet on phones). Unchosen filters live only in the panel. */
.cfb, .cfb-panel, .cfb-empty, .cfb-open, .cfb-applied, .cfb-meta {
    --cfb-ease: cubic-bezier(.22, 1, .36, 1);
    --cfb-ease-in: cubic-bezier(.4, 0, 1, 1);
    /* The drawer and the sheet move as every window of the site (--dur-dialog, --ease-dialog; owner 19.11):
       the sheet from the first frame, as the cabinet's sheets. */
    --cfb-text: var(--color-slate-800);
    --cfb-muted: var(--color-slate-500);
    --cfb-soft: var(--color-slate-400);
    --cfb-card: var(--color-white);
    --cfb-field: var(--color-slate-75);
    --cfb-line: var(--color-slate-125);
    --cfb-hover: #f6f8fa;
    --cfb-on: var(--color-lime-100);
    --cfb-on-ring: var(--color-lime-200);
    --cfb-on-text: var(--color-gray-800);
    --cfb-green: var(--color-green-650);
    --cfb-accent: var(--color-lime-410);
    --cfb-accent-ink: var(--color-lime-950);
    --cfb-shadow: 0 0 14px rgba(15, 23, 42, .08);
}

/* A re-rendered control takes its previous state without transitions, then moves on (replayAnim). */
.cfb-snap, .cfb-snap * { transition: none !important; }

/* The chosen-filters row must not widen the catalog column (it scrolls sideways on phones). */
.catalog-layout > .catalog-main { min-width: 0; }
/* Phones only: the sticky bar with the sort and «Filters» (wider screens keep them in the title row). */
.cfb { display: none; }
.cfb-sentinel { height: 0; }

.cfb-ic { width: 18px; height: 18px; flex: 0 0 auto; }
.cfb-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; flex: 0 0 auto; box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); }
.cfb-flag--pill { width: 16px; height: 12px; border-radius: 2px; }
.cfb-vi { width: 16px; height: 16px; flex: 0 0 auto; color: var(--color-green-600); }
.cfb-vi--pill { width: 13px; height: 13px; }

/* ---------- «Filters» button: same pill as the sort field, green with a count once something is chosen ---------- */
.cfb-open {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 11px;
    background: var(--cfb-card);
    box-shadow: var(--cfb-shadow);
    color: var(--cfb-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--cfb-ease);
}
.cfb-open:hover { transform: translateY(-1px); box-shadow: 0 0 16px rgba(15, 23, 42, .1); }
.cfb-open:active { transform: scale(.98); }
.cfb-open:focus-visible { outline: 2px solid var(--cfb-on-ring); outline-offset: 2px; }
.cfb-open .cfb-ic { color: var(--cfb-green); }
.cfb-open.is-on { background: var(--cfb-on); color: var(--cfb-on-text); box-shadow: inset 0 0 0 1px var(--cfb-on-ring); }
/* One width with and without the count: the empty button carries the badge's room (20 px + 8 px gap)
   as padding, half on each side, so choosing a filter never re-wraps the title row (+28 px moved the
   tools under a long title, «Account Marketplace & Digital Products Catalog» at 1366–1920 px). */
.cfb-open:not(.is-on) { padding-inline: calc(16px + 14px); }
/* A long title gives way to the tools instead of pushing them under it: it takes the rest of the row and
   wraps into balanced lines (the English «All» title fitted with 2 px to spare). The tools have one width
   in every state, so where they stand depends only on the screen; they wrap below ~1100 px. */
@media (min-width: 768px) {
    .catalog-title-row:has(> .catalog-head-tools--filters) > .catalog-title { flex: 1 1 26rem; min-width: 0; text-wrap: balance; }
    .catalog-title-row:has(> .catalog-head-tools--filters) .catalog-title__bar { align-self: stretch; height: auto; min-height: 30px; }
}
.cfb-open.is-on:hover { box-shadow: inset 0 0 0 1px var(--cfb-on-ring), 0 4px 12px rgba(22, 163, 74, .12); }

.cfb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 999px;
    background: var(--cfb-accent);
    color: var(--cfb-accent-ink);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.cfb-badge.is-new { animation: cfb-pill-in .32s var(--cfb-ease) both; }
.cfb-badge.is-swap { animation: cfb-num-in .26s ease both; }
.cfb-badge[hidden] { display: none; }

/* ---------- chosen filters: one removable chip per value, «Reset all» at the end ---------- */
.cfb-applied { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.cfb-applied[hidden] { display: none; }
/* Filtered pages reserve the row until the script fills it, so the cards do not move. */
.cfb-applied[data-reserve] { min-height: 36px; }
.cfb-ach {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px 0 12px;
    border: 0;
    border-radius: 10px;
    background: var(--cfb-on);
    box-shadow: inset 0 0 0 1px var(--cfb-on-ring);
    color: var(--cfb-on-text);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: box-shadow .18s ease, background-color .18s ease;
}
.cfb-ach__k { color: var(--cfb-muted); font-weight: 600; }
.cfb-ach__x { width: 15px; height: 15px; margin-left: 2px; color: var(--cfb-green); transition: transform .2s var(--cfb-ease); }
.cfb-ach:hover { box-shadow: inset 0 0 0 1px #8fd85a, 0 4px 10px rgba(22, 163, 74, .1); }
.cfb-ach:hover .cfb-ach__x { transform: rotate(90deg); }
.cfb-ach:focus-visible { outline: 2px solid var(--cfb-on-ring); outline-offset: 2px; }
/* A chip that goes folds its width away, a new one unfolds (script); the text is clipped meanwhile. */
.cfb-ach.is-leaving, .cfb-ach.is-entering, .cfb-reset.is-leaving, .cfb-reset.is-entering { overflow: hidden; }
.cfb-ach.is-leaving, .cfb-reset.is-leaving { pointer-events: none; }
.cfb-reset {
    flex: 0 0 auto;
    height: 36px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--cfb-green);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s ease;
}
.cfb-reset:hover { background: #f0fbe8; }
.cfb-reset:focus-visible { outline: 2px solid var(--cfb-on-ring); outline-offset: 2px; }
.cfb-notice { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: #fff1f2; color: var(--color-red-700); font-size: 13px; font-weight: 600; animation: cfb-fade-in .24s var(--cfb-ease) both; }

/* ---------- controls inside the panel ---------- */
.cfb-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border-radius: 5px;
    border: 1.5px solid var(--color-slate-300);
    background: var(--color-white);
    transition: background-color .18s ease, border-color .18s ease, transform .18s var(--cfb-ease);
}
/* The tick: never below 14 px (owner 18.11; it was 13, found by the page audit's smallIcon, stage 7b). */
.cfb-box__ic { width: 14px; height: 14px; color: var(--cfb-accent-ink); stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .26s var(--cfb-ease) .04s; }
.cfb-box.is-on, .cfb-opt.is-on .cfb-box { background: var(--cfb-accent); border-color: var(--cfb-accent); }
.cfb-box.is-on .cfb-box__ic, .cfb-opt.is-on .cfb-box__ic { stroke-dashoffset: 0; }
.cfb-opt:active .cfb-box { transform: scale(.9); }

.cfb-search { display: flex; align-items: center; gap: 8px; height: 40px; margin: 12px 0 4px; padding: 0 12px; border-radius: 10px; background: var(--cfb-field); color: var(--cfb-soft); transition: box-shadow .18s ease, background-color .18s ease; }
.cfb-search:focus-within { background: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-slate-260); }
.cfb-search .cfb-ic { width: 16px; height: 16px; }
.cfb-search__input { flex: 1; min-width: 0; height: 38px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--cfb-text); }

.cfb-opts { margin: 8px -10px 0; }
.cfb-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--cfb-text);
    cursor: pointer;
    transition: background-color .16s ease;
}
.cfb-opt:hover { background: var(--cfb-hover); }
.cfb-opt.is-on .cfb-opt__name { font-weight: 600; }
.cfb-opt.is-on .cfb-opt__count { color: var(--cfb-green); }
.cfb-opt.is-off { opacity: .45; cursor: default; }
.cfb-opt.is-off:hover { background: transparent; }
.cfb-opt__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfb-opt__count { font-size: 12.5px; font-weight: 700; color: var(--sf-text-subtle); font-variant-numeric: tabular-nums; transition: color .18s ease; }
.cfb-opt input:focus-visible + .cfb-box { outline: 2px solid var(--cfb-on-ring); outline-offset: 2px; }
.cfb-opts__empty { margin: 0; padding: 10px; font-size: 13px; color: var(--sf-text-subtle); }
.cfb-sr { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cfb-more-link { margin-top: 6px; padding: 6px 0; border: 0; background: none; color: var(--cfb-green); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }

.cfb-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cfb-preset {
    height: 34px;
    padding: 0 13px;
    border: 1px solid var(--color-slate-200);
    border-radius: 999px;
    background: var(--color-white);
    color: var(--cfb-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s var(--cfb-ease);
}
.cfb-preset:hover { border-color: var(--color-slate-300); }
.cfb-preset:active { transform: scale(.96); }
.cfb-preset.is-on { background: var(--cfb-on); border-color: var(--cfb-on-ring); color: var(--color-lime-900); }

.cfb-range { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cfb-range__dash { color: var(--sf-text-subtle); }
.cfb-range__unit { font-size: 13px; font-weight: 600; color: var(--cfb-muted); white-space: nowrap; }
.cfb-rin { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--cfb-field); font-size: 13px; color: var(--sf-text-subtle); transition: box-shadow .18s ease, background-color .18s ease; }
.cfb-rin:focus-within { background: var(--color-white); box-shadow: inset 0 0 0 1px var(--color-slate-260); }
.cfb-rin input, .cfb-rin select { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--cfb-text); }
.cfb-rin input::-webkit-outer-spin-button, .cfb-rin input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cfb-rin input[type=number] { -moz-appearance: textfield; }

.cfb-seg { position: relative; display: grid; grid-template-columns: repeat(var(--seg-n, 3), 1fr); margin-top: 10px; padding: 4px; border-radius: 12px; background: var(--color-slate-100); }
.cfb-seg__thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc((100% - 8px) / var(--seg-n, 3));
    border-radius: 9px;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .1);
    transform: translateX(calc(var(--seg-i, 0) * 100%));
    transition: transform .34s var(--cfb-ease);
}
.cfb-seg__btn { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; background: transparent; border-radius: 9px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--cfb-muted); cursor: pointer; transition: color .2s ease; }
.cfb-seg__btn.is-on { color: var(--cfb-text); font-weight: 700; }
.cfb-seg__count { font-size: 12px; font-weight: 700; color: var(--sf-text-subtle); font-variant-numeric: tabular-nums; }

.cfb-switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--cfb-text); cursor: pointer; }
.cfb-switch { position: relative; flex: 0 0 auto; width: 44px; height: 26px; border-radius: 999px; background: var(--color-slate-200); transition: background-color .22s ease; }
.cfb-switch.is-on { background: var(--color-green-500); }
.cfb-switch__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-white); box-shadow: 0 2px 6px rgba(15, 23, 42, .2); transition: transform .3s var(--cfb-ease); }
.cfb-switch.is-on .cfb-switch__knob { transform: translateX(18px); }
.cfb-switch-row input:focus-visible + .cfb-switch { outline: 2px solid var(--cfb-on-ring); outline-offset: 2px; }

/* Panel footer: secondary «Reset» on the left, main «Show N products» on the right, one height. */
.cfb-cta {
    position: relative;
    height: var(--dialog-btn-h);
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: var(--cfb-accent);
    color: var(--cfb-accent-ink);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s var(--cfb-ease), box-shadow .2s ease, opacity .2s ease, filter .2s ease;
}
.cfb-cta:hover { box-shadow: 0 8px 20px rgba(140, 255, 63, .35); transform: translateY(-1px); }
.cfb-cta:active { transform: scale(.98); }
.cfb-cta[disabled] { opacity: .55; cursor: default; box-shadow: none; transform: none; }
.cfb-cta:focus-visible, .cfb-btn2:focus-visible { outline: 2px solid var(--cfb-on-ring); outline-offset: 2px; }
/* While the count loads the label stays as it is (a spinner, then dimming, made the button blink);
   the new label then rolls in (products-filter.js rollText). */
.cfb-cta__label { display: block; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cfb-cta.is-loading { cursor: progress; }
/* Secondary «Reset»: the site's outline button (product page «В корзину»), same height as Show. */
.cfb-btn2 {
    flex: 0 0 auto;
    height: var(--dialog-btn-h);
    padding: 0 18px;
    border: 1px solid var(--color-slate-160);
    border-radius: 14px;
    background: var(--cfb-card);
    color: var(--color-slate-700);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, color .18s ease, opacity .18s ease, transform .2s var(--cfb-ease);
}
.cfb-btn2:hover:not([disabled]) { border-color: var(--color-slate-300); color: var(--cfb-text); }
.cfb-btn2:active:not([disabled]) { transform: scale(.98); }
.cfb-btn2[disabled] { opacity: .45; cursor: default; }

/* ---------- panel: right drawer / phone sheet ---------- */
/* clip, not hidden: a hidden overflow is still a scroll container, and showModal() focuses the close
   button while the box is still translated off screen, scrolling the dialog by exactly the offset that
   the entrance then removes — the drawer/sheet stood still instead of sliding in. */
.cfb-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; overflow: clip; color: var(--cfb-text); }
/* One motion of every window (owner 19.11, «все окна … плавность»): the shade, the drawer and the sheet move
   in the windows' time and curve (--dur-dialog, --ease-dialog), opening and closing alike. */
.cfb-panel::backdrop { background: rgba(15, 23, 42, .42); animation: cfb-fade-in var(--dur-dialog) var(--ease-dialog) both; }
.cfb-panel.is-closing::backdrop { animation: cfb-fade-out var(--dur-dialog) var(--ease-dialog) both; }
.cfb-panel__box { position: absolute; display: flex; flex-direction: column; background: var(--cfb-card); box-shadow: -18px 0 50px rgba(15, 23, 42, .18); }
.cfb-panel[data-mode="drawer"] .cfb-panel__box { top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; animation: cfb-drawer-in var(--dur-dialog) var(--ease-dialog) backwards; }
.cfb-panel[data-mode="drawer"].is-closing .cfb-panel__box { animation: cfb-drawer-out var(--dur-dialog) var(--ease-dialog) both; }
.cfb-panel[data-mode="sheet"] .cfb-panel__box { left: 0; right: 0; bottom: 0; max-height: 88dvh; border-radius: var(--radius-20) var(--radius-20) 0 0; box-shadow: 0 -18px 50px rgba(15, 23, 42, .2); animation: cfb-sheet-in var(--dur-dialog) var(--ease-dialog) backwards; transition: transform var(--dur-dialog) var(--ease-dialog); }
.cfb-panel[data-mode="sheet"].is-closing .cfb-panel__box { animation: cfb-sheet-out var(--dur-dialog) var(--ease-dialog) both; }
/* Warm-up (catalog-filter-bar.js warmPanel): the closed dialog is laid out for one task, unseen and
   still, so the first opening does not pay for styles, text shaping and code run for the first time. */
.cfb-panel.is-warming { display: block; visibility: hidden; pointer-events: none; }
.cfb-panel.is-warming .cfb-panel__box { animation: none; transition: none; }
/* The windows' rhythm (cabinet-ds.css §16): 20 on every side of the head and the body, the foot 16 above and
   below; the grip of the sheet stands inside the head's 20 above the title. */
.cfb-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: var(--space-20); border-bottom: 1px solid var(--cfb-line); touch-action: none; }
.cfb-panel__grip { display: none; }
.cfb-panel[data-mode="sheet"] .cfb-panel__head { position: relative; }
.cfb-panel[data-mode="sheet"] .cfb-panel__grip { display: block; position: absolute; top: var(--space-8); left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: var(--radius-pill); background: var(--sf-grip); }
.cfb-panel__title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--cfb-text); }
.cfb-panel__sub { margin-top: 4px; font-size: 13px; color: var(--cfb-muted); }
/* The cross of every window: 38 px, on the middle of the title's first line (20 px × 1.2 = 24 px, so it starts
   7 px above it; a subtitle under the title does not move it), still under the pointer. */
.cfb-panel__x { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-top: calc((24px - 38px) / 2); border: 0; border-radius: var(--radius-12); background: var(--cfb-field); color: var(--cfb-text); cursor: pointer; transition: background-color .18s ease; }
@media (hover: hover) {
    .cfb-panel__x:hover { background: #eaeef3; }
}
.cfb-panel__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-4) var(--space-20) var(--space-12); }
.cfb-panel__foot { display: flex; align-items: center; gap: 10px; padding: var(--space-16) var(--space-20); border-top: 1px solid var(--cfb-line); background: var(--cfb-card); }
.cfb-panel__foot .cfb-cta { flex: 1 1 auto; min-width: 0; }
.cfb-panel[data-mode="sheet"] .cfb-panel__foot { padding-bottom: calc(var(--space-16) + env(safe-area-inset-bottom)); }
.cfb-sec { padding: 18px 0; border-bottom: 1px solid var(--cfb-line); }
.cfb-sec:last-child { border-bottom: 0; }
.cfb-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cfb-sec__title { font-size: 15px; font-weight: 800; color: var(--cfb-text); }
.cfb-sec__sum { font-size: 13px; font-weight: 600; color: var(--sf-text-subtle); text-align: right; transition: color .18s ease; }
.cfb-sec__sum.is-on { color: var(--cfb-green); font-weight: 700; }
.cfb-sec__hint { margin: 4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--cfb-muted); }
.cfb-group { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--color-slate-50); font-size: 12.5px; font-weight: 700; color: var(--cfb-muted); }
/* Phones: the page under the sheet does not scroll. Only body is locked: with the root left visible,
   its overflow goes to the viewport. Locking html as well made body a scroll container of its own, and
   the sticky header and filter bar jumped out of view behind the backdrop as the sheet opened (header
   0 -> -1414 px) and back after it closed. */
html.cfb-lock body { overflow: hidden; }

/* ---------- empty result ---------- */
.cfb-empty { display: flex; gap: 26px; align-items: flex-start; margin-top: 4px; padding: 34px 38px; border-radius: 18px; background: var(--cfb-card); box-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 28px rgba(15, 23, 42, .05); animation: cfb-item-in .42s var(--cfb-ease) both; }
.cfb-empty[hidden] { display: none; }
.cfb-empty__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 64px; height: 64px; border-radius: 18px; background: var(--cfb-field); color: var(--cfb-soft); }
.cfb-empty__icon .cfb-ic { width: 28px; height: 28px; }
.cfb-empty__title { margin: 0; font-size: 20px; font-weight: 800; color: var(--cfb-text); }
.cfb-empty__text { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--cfb-muted); }
.cfb-empty__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cfb-sugg { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border: 1px solid var(--color-gray-200); border-radius: 12px; background: var(--color-white); color: var(--cfb-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; animation: cfb-item-in .36s var(--cfb-ease) both; animation-delay: calc(var(--i, 0) * 50ms + .1s); transition: border-color .18s ease, transform .2s var(--cfb-ease), box-shadow .2s ease; }
.cfb-sugg:hover { border-color: var(--cfb-on-ring); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(22, 163, 74, .1); }
.cfb-sugg b { color: var(--cfb-green); }
.cfb-sugg__x { display: inline-flex; color: var(--cfb-soft); }
.cfb-sugg__x .cfb-ic { width: 14px; height: 14px; }
.cfb-sugg--reset { padding: 0 14px; border-color: transparent; background: var(--cfb-on); color: var(--color-lime-900); }
.cfb-empty { transition: opacity .2s ease; }
.cfb-empty.is-loading { opacity: .55; pointer-events: none; }
.catalog-main.cfb-has-empty #productsEmptyState, .catalog-main.cfb-has-empty #productsLoading { display: none !important; }

/* ---------- results motion ----------
   While a filter loads, cards, pagination and «Load more» stay in place, dimmed only after 0.25 s (a quick
   answer, or one waiting for a chip to finish folding, does not blink). The answer is one commit, and the
   page moves once (products-filter.js noteResults / playResults): cards and the blocks around them (category
   list, pagination, SEO block, footer) slide from where they stood, new ones fade in, gone ones fade out as
   inert copies (.results-ghost). Transform and opacity only; no height or margin is animated. */
#resultsCount { font-variant-numeric: tabular-nums; }
/* The total keeps the room of the catalog's largest count (products.php --cfb-count-ch), so a new number
   never changes the width of the title-row tools; tabular digits are a little wider than 1ch. */
.catalog-head-tools--filters #resultsCount { min-width: calc(var(--cfb-count-ch, 3) * 1.15ch); }
.catalog-main #productsGrid.is-filtering,
.catalog-main #productsLoadMore.is-pending,
.catalog-main #catalogPagination.is-pending { opacity: .5; pointer-events: none; transition: opacity .22s ease .25s; }

/* ---------- phone: one block under the category list ----------
   The title row keeps only the title. placeMeta() moves the count into .cfb-meta and the sort with
   «Filters» into the sticky .cfb bar; chosen filters scroll sideways under it. */
.cfb-meta { display: none; }
@media (max-width: 767.98px) {
    .catalog-page .catalog-head-tools--filters { display: none; }
    .cfb-meta { display: flex; align-items: center; min-height: 22px; margin: 0 0 2px; }
    .cfb-meta .catalog-head-count { min-height: 0; font-size: 13.5px; }
    .cfb { position: sticky; top: var(--cfb-top, 0px); z-index: 30; display: flex; align-items: center; gap: 10px; margin: 0 -12px 8px; padding: 8px 12px; background: transparent; transition: background-color .24s ease, box-shadow .24s ease; }
    .cfb.is-stuck { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 18px rgba(15, 23, 42, .08); }
    /* Sort and «Filters» share the line in two equal halves (flex-basis 0 would add each one's own
       padding on top of an equal share: 187 and 169 px). */
    .catalog-page .cfb .cat-field--select { display: flex; flex: 0 0 calc(50% - 5px); min-width: 0; height: 44px; padding: 0 34px 0 14px; border-radius: 11px; box-shadow: var(--cfb-shadow); }
    .cfb .cat-field__label { display: none; }
    .cfb .cat-field select { width: 100%; height: 42px; line-height: 42px; font-size: 14px; text-overflow: ellipsis; }
    .cfb .cat-field--select::after { right: 14px; width: 7px; height: 7px; }
    .cfb .cfb-open { flex: 0 0 calc(50% - 5px); min-width: 0; }
    .cfb-applied { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px 12px; padding: 0 28px 0 12px; -webkit-mask-image: linear-gradient(90deg, var(--color-black) calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, var(--color-black) calc(100% - 28px), transparent); }
    .cfb-applied::-webkit-scrollbar { display: none; }
    .cfb-empty { flex-direction: column; gap: 14px; padding: 22px 18px; }
}

/* ---------- keyframes ---------- */
@keyframes cfb-item-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cfb-pill-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes cfb-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes cfb-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cfb-drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes cfb-drawer-out { to { transform: translateX(100%); } }
@keyframes cfb-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cfb-sheet-out { to { transform: translateY(100%); } }
@keyframes cfb-num-in { from { opacity: .25; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .cfb *, .cfb-panel, .cfb-panel *, .cfb-panel::backdrop, .cfb-empty, .cfb-empty *, .cfb-open, .cfb-open *, .cfb-applied *, .catalog-main #productsGrid {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Text in a field on a phone (below 768 px) is 16 px: iOS does not zoom the page into it (owner 19.11,
   decision 12); a computer keeps the size above. */
@media (max-width: 767.98px) {
    .cfb-search__input, .cfb-rin input, .cfb-rin select { font-size: var(--fs-16); }
}
/* public/autoreg/autoreg-theme-storefront.css */
/* The tokens of the storefront (--autoreg-*, --badge-*) moved to mod/css/ds/tokens.css (17.11.2026),
   linked before this theme on every page; there they refer to --sf-* and the primitives. */

html {
    scroll-behavior: smooth;
    /* Keyboard focus and anchors stop below the sticky header (73 px) and, on phones and tablets,
       above the bottom menu (62–64 px from 8–10 px of the edge) — audit 18.11, E05 (WCAG 2.4.11). */
    scroll-padding-top: 80px;
}

@media (max-width: 991.98px) {
    html {
        scroll-padding-top: 72px;
        scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
}

html.dm-scroll-lock-root {
    scrollbar-gutter: stable;
}

body.dm-scroll-lock {
    overflow: hidden;
    padding-right: var(--dm-scrollbar-width, 0px);
}

body.storefront-autoreg {
    min-width: 340px;
    font-family: Montserrat, Arial, sans-serif;
    background: var(--autoreg-bg);
    color: var(--autoreg-text);
}

/* Languages of the storefront (17.11.2026; the cabinet has its own tokens in cabinet-ds.css).
   Chinese: Montserrat draws the Latin part, the system CJK face the characters; Han text
   takes no tracking and no capitals. */
body.storefront-autoreg:lang(zh) {
    font-family: Montserrat, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

.storefront-autoreg:lang(zh) :not(.pf-app *, .pf-modal *, .pf-side *) {
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Vietnamese: stacked diacritics (Ế, Ỗ, Ặ) need room above the letters, so headings and the
   tight one-line labels of the storefront get at least 1.35. */
.storefront-autoreg:lang(vi) :is(h1, h2, h3, h4, h5, h6):not(.pf-app *, .pf-modal *, .pf-side *),
.storefront-autoreg:lang(vi) :is(.mobile-menu__label, .category-card-label, .catalog-head-count__label,
    .autoreg-side-rail__label, .product-delivery, .btn-explore, .home-section-cta, .btn-order,
    .api-partners__btn, .api-partners__discount, .dm-privacy-button) {
    line-height: 1.35 !important;
}

.storefront-autoreg a {
    text-decoration: none;
}

.storefront-autoreg .backtop {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    right: 42px;
    bottom: 72px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: var(--z-backtop);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-accent);
    color: var(--color-black);
    line-height: 46px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(12px, 12px) scale(0.82);
    box-shadow: 0 12px 30px rgba(17, 17, 17, 0.18);
    transform-origin: center;
    animation: none;
    -webkit-animation: none;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    will-change: transform, opacity;
}

.storefront-autoreg .backtop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    animation: dm-backtop-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
    -webkit-animation: dm-backtop-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.storefront-autoreg .backtop.is-hiding {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    animation: dm-backtop-dismiss 260ms cubic-bezier(0.4, 0, 0.2, 1) both;
    -webkit-animation: dm-backtop-dismiss 260ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.storefront-autoreg .backtop.is-visible[data-covers-focus] {
    visibility: hidden;
    pointer-events: none;
}

.storefront-autoreg .backtop:hover {
    background: var(--autoreg-accent-soft);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.22);
}

.storefront-autoreg .backtop i {
    font-size: 17px;
    line-height: inherit;
}

@keyframes dm-backtop-pop {
    0% {
        opacity: 0;
        transform: translate(12px, 12px) scale(0.82);
    }

    62% {
        opacity: 1;
        transform: translate(0, -2px) scale(1.06);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@keyframes dm-backtop-dismiss {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(12px, 12px) scale(0.82);
    }
}

@media (prefers-reduced-motion: reduce) {
    .storefront-autoreg .backtop {
        animation: none;
        -webkit-animation: none;
        transition: none;
    }

    .storefront-autoreg .backtop.is-visible,
    .storefront-autoreg .backtop.is-hiding {
        animation: none;
        -webkit-animation: none;
    }
}
/* Legacy design-token bridge.
   These tokens are consumed by autoreg components but were defined only in the legacy
   public/client/css/main.css. Relocated here (verbatim values) so the autoreg theme is
   self-sufficient and client/main.css can eventually be dropped. Values are kept exactly
   (legacy values differ from the --autoreg-* tokens, so renaming would change the design);
   a later cosmetic pass can migrate usages to --autoreg-* if a redesign is intended.
   Definition source of truth for these names is now this file; the values are the
   primitives of mod/css/ds/tokens.css (17.11.2026). */
:root {
    --white: var(--color-white);
    --chalk: var(--color-neutral-60);
    --text: var(--color-neutral-600);
    --green-chalk: var(--color-green-chalk-legacy);
}
/* Migrated from legacy main.css (.mobile-menu) — early so autoreg overrides win. */

.mobile-menu {
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    z-index: 3;
    background: var(--white);
    border-radius: 10px 10px 0px 0px;
    -webkit-box-shadow: 0px -5px 15px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px -5px 15px 0px rgba(0, 0, 0, 0.1);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    display: none
}

.mobile-menu a,
.mobile-menu button {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 80px;
    padding: 8px 0px;
    border-radius: 8px;
    position: relative
}

.mobile-menu a:hover,
.mobile-menu button:hover {
    background: var(--chalk)
}

.mobile-menu a i,
.mobile-menu button i {
    font-size: 15px;
    margin-bottom: 5px;
    color: var(--text);
    text-shadow: 2px 3px 8px rgba(0, 0, 0, 0.1)
}

.mobile-menu a span,
.mobile-menu button span {
    font-size: 10px;
    line-height: 12px;
    color: var(--text);
    text-transform: uppercase
}

.mobile-menu a sup,
.mobile-menu button sup {
    position: absolute;
    top: -5px;
    left: 75%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    line-height: 20px;
    border-radius: 50%;
    text-align: center;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    color: var(--white);
    border: 2px solid var(--green-chalk);
    text-shadow: var(--primary-tshadow)
}

@media (max-width: 991px) {
    .mobile-menu {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex
    }
}

.mobile-menu a,
.mobile-menu button {
    border-radius: 0px;
}
.storefront-autoreg .container {
    width: min(var(--autoreg-container-max), calc(100% - (var(--autoreg-page-gutter) * 2))) !important;
    max-width: var(--autoreg-container-max) !important;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--sf-container-room, 0px) !important;
    padding-left: 0 !important;
}

/* «Нужна помощь?» (owner 18.11, decision 5): from 768 to 1359 px the tab at the right edge lay over the
   content (prices, «Войти», the last columns, the keyboard's focus). The page's content keeps its room
   (--sf-rail-room: 64 px there, 0 on a phone and from 1360 px); the header and the footer, outside <main>
   and the cabinet, keep their width; a container inside another takes no second room, the home hero keeps
   its full picture. */
.storefront-autoreg main,
.storefront-autoreg .pf-cabinet {
    --sf-container-room: var(--sf-rail-room);
}

.storefront-autoreg .container .container,
.storefront-autoreg .autoreg-hero {
    --sf-container-room: 0px;   /* the hero's picture keeps the whole width under the tab */
}

.storefront-autoreg .header-top {
    display: none;
}

.storefront-autoreg .header-part {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    padding-bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    box-shadow: 0 10px 34px rgba(17, 24, 39, 0.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.storefront-autoreg .header-part::after {
    display: none;
}

.storefront-autoreg .header-content,
.storefront-autoreg .header-media-group {
    position: relative;
    z-index: 1;
}

.storefront-autoreg .header-content {
    min-height: 72px;
    padding: 10px 0;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
}

.storefront-autoreg .header-media-group {
    display: none;
}

.storefront-autoreg .header-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 0 0 auto;
    margin: 0;
    color: var(--autoreg-text);
}

.storefront-autoreg .header-logo img,
.storefront-autoreg .header-media-group img {
    width: auto;
    max-width: none;
    height: 35px;
    object-fit: contain;
}

.storefront-autoreg .autoreg-logo-name {
    color: var(--autoreg-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.storefront-autoreg .header-search-wrapper {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
}

.storefront-autoreg .header-form {
    height: 40px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0 12px 0 16px;
    border: 1px solid transparent;
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-control-bg);
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.storefront-autoreg .header-form:focus-within {
    border-color: rgba(143, 244, 81, 0.45);
    background: #f8f8f8;
    box-shadow: 0 0 0 3px var(--autoreg-focus-ring);
}

.storefront-autoreg .header-form input {
    height: 40px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--autoreg-text);
    caret-color: var(--autoreg-text);
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    font-family: Montserrat, Arial, sans-serif;
}

.storefront-autoreg .header-form input::placeholder {
    color: var(--color-neutral-400);
}

.storefront-autoreg .header-form button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--autoreg-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.storefront-autoreg .header-form .autoreg-search-clear {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--autoreg-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.storefront-autoreg .autoreg-search-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0);
}

.storefront-autoreg .header-form .autoreg-search-clear {
    opacity: 0;
    pointer-events: none;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    transition: opacity 0.15s ease;
}

.storefront-autoreg .header-form.is-filled .autoreg-search-clear {
    opacity: 0.95;
    pointer-events: auto;
}

/* The cross (the site's Lucide x, 18 px) takes touches 44 px wide (mobile check 18.11, N19: 18 × 24). */
.storefront-autoreg .header-form .autoreg-search-clear {
    position: relative;
}

.storefront-autoreg .header-form .autoreg-search-clear::after {
    content: "";
    position: absolute;
    inset: -10px;
}

.storefront-autoreg .search-autocomplete {
    top: calc(100% + 10px);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
    max-height: min(430px, calc(100vh - 140px));
    overflow: hidden;
}

.storefront-autoreg .search-autocomplete-results {
    max-height: min(366px, calc(100vh - 198px));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 17, 17, 0.22) transparent;
}

.storefront-autoreg .search-autocomplete-results::-webkit-scrollbar {
    width: 8px;
}

.storefront-autoreg .search-autocomplete-results::-webkit-scrollbar-track {
    background: transparent;
}

.storefront-autoreg .search-autocomplete-results::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, 0.18);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: content-box;
}

.storefront-autoreg .search-autocomplete-item {
    min-height: 64px;
    padding: 10px 16px;
    gap: 12px;
    border-bottom-color: rgba(17, 17, 17, 0.06);
}

.storefront-autoreg .search-autocomplete-item:hover,
.storefront-autoreg .search-autocomplete-item.active {
    background: rgba(143, 244, 81, 0.1);
}

.storefront-autoreg .search-autocomplete-image {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f2f3f4;
}

.storefront-autoreg .search-autocomplete-info {
    display: grid;
    gap: 4px;
}

.storefront-autoreg .search-autocomplete-name {
    margin: 0;
    color: #202633;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.storefront-autoreg .search-autocomplete-price {
    margin: 0;
    color: #c82f3a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.storefront-autoreg .search-autocomplete-meta {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    overflow: hidden;
    color: #6a7280;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.storefront-autoreg .search-autocomplete-original-price {
    flex: 0 0 auto;
    color: #9aa2ad;
    font-weight: 600;
    text-decoration: line-through;
}

.storefront-autoreg .search-autocomplete-discount {
    flex: 0 0 auto;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.09);
    color: #c82f3a;
    font-size: 11px;
    font-weight: 700;
}

.storefront-autoreg .search-autocomplete-meta-separator {
    width: 1px;
    height: 13px;
    flex: 0 0 1px;
    background: rgba(32, 38, 51, 0.16);
}

.storefront-autoreg .search-autocomplete-stock {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
    overflow: hidden;
    color: #68717d;
    font-weight: 600;
    text-overflow: ellipsis;
}

.storefront-autoreg .search-autocomplete-stock::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #1fa84f;
    content: '';
}

.storefront-autoreg .search-autocomplete-stock--out_of_stock {
    color: #8b676b;
}

.storefront-autoreg .search-autocomplete-stock--out_of_stock::before {
    background: #a9b0b8;
}

.storefront-autoreg .search-autocomplete-stock--on_demand {
    color: #68717d;
}

.storefront-autoreg .search-autocomplete-stock--on_demand::before {
    background: #8d97a4;
}

.storefront-autoreg .search-autocomplete-empty,
.storefront-autoreg .search-autocomplete-loading {
    padding: 24px 18px;
    color: #6a7280;
    font-size: 14px;
}

.storefront-autoreg .search-autocomplete-footer {
    position: sticky;
    bottom: 0;
    padding: 12px 16px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.storefront-autoreg .search-autocomplete-footer a {
    color: var(--autoreg-text);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.storefront-autoreg .search-autocomplete-footer a:hover {
    background: var(--autoreg-accent-tint);
    color: var(--autoreg-text);
    text-decoration: none;
}
.storefront-autoreg .header-widget-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.storefront-autoreg .header-widget-group > *,
.storefront-autoreg .header-widget,
.storefront-autoreg .autoreg-language,
.storefront-autoreg .autoreg-theme-widget {
    margin: 0 !important;
}

.storefront-autoreg .header-widget.header-widget--catalog {
    order: 1;
    background: var(--autoreg-control-bg);
    color: var(--autoreg-text);
}

.storefront-autoreg .autoreg-catalog-trigger {
    position: relative;
    order: 0;
    flex: 0 0 auto;
    margin-right: -6px;
    z-index: var(--z-catalog-trigger);
}

.storefront-autoreg .autoreg-catalog-trigger::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 330px;
    height: 14px;
    display: none;
}

.storefront-autoreg .autoreg-catalog-trigger.is-hover-open::after,
.storefront-autoreg .autoreg-catalog-trigger:focus-within::after {
    display: block;
}

.storefront-autoreg .autoreg-catalog-trigger.is-hover-open .header-widget.header-widget--catalog {
    background: var(--autoreg-control-active);
    color: var(--autoreg-control-active-icon);
    box-shadow: 0 0 0 1px rgba(143, 244, 81, 0.42);
}

@media (hover: hover) {
    .storefront-autoreg .header-widget.header-widget--catalog:hover {
        background: var(--autoreg-control-active);
        color: var(--autoreg-control-active-icon);
        box-shadow: 0 0 0 1px rgba(143, 244, 81, 0.42);
    }
}

.storefront-autoreg .autoreg-catalog-preview {
    position: absolute;
    z-index: var(--z-catalog-preview);
    top: calc(100% + 12px);
    left: 0;
    width: 340px;
    max-height: min(620px, calc(100vh - 120px));
    padding: 10px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 14px;
    /* Opaque: through 98 % white the hero's black button showed as a grey box behind «GOOGLE» (19.11). */
    background: var(--color-white);
    box-shadow: 0 18px 48px rgba(17, 24, 39, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: top left;
    /* The menus' motion (mod/css/main.css --dm-dropdown-*, as the language menu), 19.11. */
    transition:
        transform var(--dm-dropdown-open-dur, 250ms) var(--dm-dropdown-ease, cubic-bezier(0.22, 1, 0.36, 1)),
        opacity var(--dm-dropdown-open-dur, 250ms) var(--dm-dropdown-ease, cubic-bezier(0.22, 1, 0.36, 1)),
        visibility 0s linear var(--dm-dropdown-open-dur, 250ms);
}

.storefront-autoreg .autoreg-catalog-trigger.is-hover-open .autoreg-catalog-preview,
.storefront-autoreg .autoreg-catalog-trigger:focus-within .autoreg-catalog-preview {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
        transform var(--dm-dropdown-open-dur, 250ms) var(--dm-dropdown-ease, cubic-bezier(0.22, 1, 0.36, 1)),
        opacity var(--dm-dropdown-open-dur, 250ms) var(--dm-dropdown-ease, cubic-bezier(0.22, 1, 0.36, 1)),
        visibility 0s linear 0s;
}

.storefront-autoreg .autoreg-catalog-preview__list {
    max-height: min(536px, calc(100vh - 204px));
    padding-right: 2px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 17, 17, 0.18) transparent;
}

.storefront-autoreg .autoreg-catalog-preview__list::-webkit-scrollbar {
    width: 8px;
}

.storefront-autoreg .autoreg-catalog-preview__list::-webkit-scrollbar-track {
    background: transparent;
}

.storefront-autoreg .autoreg-catalog-preview__list::-webkit-scrollbar-thumb {
    background: rgba(17, 17, 17, 0.18);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: content-box;
}

.storefront-autoreg .autoreg-catalog-preview__group {
    padding: 10px 8px 11px;
    border-radius: 10px;
}

.storefront-autoreg .autoreg-catalog-preview__group + .autoreg-catalog-preview__group {
    border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.storefront-autoreg .autoreg-catalog-preview__group:hover {
    background: rgba(143, 244, 81, 0.08);
}

.storefront-autoreg .autoreg-catalog-preview__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--autoreg-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.storefront-autoreg .autoreg-catalog-preview__heading:hover {
    color: var(--autoreg-text);
}

.storefront-autoreg .autoreg-catalog-preview__icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: var(--autoreg-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.storefront-autoreg .autoreg-catalog-preview__icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.storefront-autoreg .autoreg-catalog-preview__icon--brand {
    background: transparent;
}

.storefront-autoreg .autoreg-category-icon-img,
.storefront-autoreg .autoreg-catalog-preview__icon .autoreg-category-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    object-fit: contain;
    flex: 0 0 24px;
}

.storefront-autoreg .autoreg-catalog-preview__icon i {
    color: var(--color-black);
    font-size: 14px;
    line-height: 1;
}

.storefront-autoreg .autoreg-category-icon {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--category-icon-bg, #f3f4f6);
    color: var(--category-icon-color, #111827);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    box-shadow: inset 0 0 0 1px var(--category-icon-border, transparent);
}

.storefront-autoreg .autoreg-category-icon i,
.storefront-autoreg .autoreg-catalog-preview__icon .autoreg-category-icon i {
    color: currentColor;
    font-size: 15px;
    line-height: 1;
}

.storefront-autoreg .autoreg-category-icon--all {
    --category-icon-bg: var(--color-gray-900);
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--telegram {
    --category-icon-bg: var(--color-telegram);
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--discord {
    --category-icon-bg: #5865f2;
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--linkedin {
    --category-icon-bg: var(--color-linkedin);
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--instagram {
    --category-icon-color: var(--color-white);
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 46%, #6228d7 100%);
}

.storefront-autoreg .autoreg-category-icon--tiktok {
    --category-icon-bg: var(--color-gray-900);
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--threads {
    --category-icon-bg: var(--color-gray-900);
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--facebook {
    --category-icon-bg: var(--color-facebook);
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--twitter {
    --category-icon-bg: var(--color-gray-900);
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--vk {
    --category-icon-bg: #0077ff;
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--google {
    --category-icon-bg: var(--color-white);
    --category-icon-color: #4285f4;
    --category-icon-border: rgba(66, 133, 244, 0.24);
}

.storefront-autoreg .autoreg-category-icon--snapchat {
    --category-icon-bg: #fffc00;
    --category-icon-color: var(--color-gray-900);
}

.storefront-autoreg .autoreg-category-icon--outlook {
    --category-icon-bg: #0078d4;
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--mail {
    --category-icon-bg: #005ff9;
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--proton {
    --category-icon-bg: #6d4cff;
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--gmx {
    --category-icon-bg: #1a73e8;
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-category-icon--deezer {
    --category-icon-color: var(--color-white);
    background: linear-gradient(135deg, #ff0092 0%, #ff6b00 28%, #f5d300 52%, #00c7b1 74%, #7a3cff 100%);
}

.storefront-autoreg .autoreg-category-icon--envato {
    --category-icon-bg: #82b541;
    --category-icon-color: var(--color-white);
}

.storefront-autoreg .autoreg-catalog-preview__children {
    display: grid;
    gap: 3px;
    margin: 10px 0 0;
    padding: 0 0 0 4px;
    list-style: none;
}

.storefront-autoreg .autoreg-catalog-preview__children li {
    min-width: 0;
}

.storefront-autoreg .autoreg-catalog-preview__children a {
    position: relative;
    min-height: 28px;
    padding: 4px 8px 4px 24px;
    border-radius: 8px;
    color: var(--autoreg-muted);
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
}

.storefront-autoreg .autoreg-catalog-preview__children a::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--autoreg-accent);
    transform: translateY(-50%);
}

.storefront-autoreg .autoreg-catalog-preview__children a:hover {
    background: rgba(143, 244, 81, 0.12);
    color: var(--autoreg-text);
}

.storefront-autoreg .autoreg-catalog-preview__all {
    width: fit-content;
    max-width: calc(100% - 48px);
    min-height: 40px;
    margin: 10px auto 2px;
    padding: 0 14px;
    border-radius: 12px;
    background: transparent;
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition:
        background-color 180ms ease,
        color 180ms ease;
}

.storefront-autoreg .autoreg-catalog-preview__all:hover {
    background: rgba(143, 244, 81, 0.16);
    color: var(--color-black);
}
.storefront-autoreg .header-widget-group .autoreg-language {
    order: 6;
}

.storefront-autoreg .header-widget[href*="cart"] {
    order: 2;
}

.storefront-autoreg .header-widget[href*="client/favorites"] {
    order: 3;
}

.storefront-autoreg .header-widget[href*="client/support-tickets"] {
    order: 4;
}

.storefront-autoreg .header-widget[href*="client/profile"],
.storefront-autoreg .header-widget[href*="client/login"] {
    order: 5;
    min-width: 40px;
    width: 40px;
    padding: 0;
}

.storefront-autoreg .header-widget[href*="client/profile"] span,
.storefront-autoreg .header-widget[href*="client/login"] span {
    display: none;
}

.storefront-autoreg .autoreg-language {
    position: relative;
    z-index: var(--z-language-menu);
    flex: 0 0 auto;
}

.storefront-autoreg .autoreg-language::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 245px;
    min-width: 100%;
    height: 12px;
    display: none;
    z-index: 1;
    pointer-events: auto;
}

.storefront-autoreg .autoreg-language.is-hover-open::after {
    display: block;
}

.storefront-autoreg .autoreg-language__button {
    position: relative;
    z-index: 2;
    min-width: 64px;
    width: auto;
    height: 40px;
    padding: 0 8px;
    border: 0;
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-control-bg);
    color: var(--autoreg-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.storefront-autoreg .autoreg-language.is-hover-open .autoreg-language__button,
.storefront-autoreg .autoreg-language__button:hover {
    background: var(--autoreg-control-hover);
    color: var(--autoreg-text);
    transform: translateY(-1px);
}

.storefront-autoreg .autoreg-language__button i {
    font-size: 14px;
    line-height: 1;
}

.storefront-autoreg .autoreg-language__button i:last-child {
    font-size: 10px;
    opacity: 0.75;
}

.storefront-autoreg .autoreg-language__flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
    box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.06);
}

.storefront-autoreg .autoreg-language__arrow {
    /* The site's Lucide chevron, 14 px (owner 18.11: never below 14; was a 6 × 9 image turned down). */
    display: block;
    color: var(--color-black);
}

.storefront-autoreg .autoreg-language__menu {
    position: absolute;
    z-index: 3;
    top: calc(100% + 12px);
    right: 0;
    min-width: 245px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 12px;
    background: var(--color-white); /* opaque, as the catalog menu: the page never shows through a menu (19.11) */
    box-shadow: 0 14px 40px rgba(17, 24, 39, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px) scale(var(--dm-dropdown-pre-scale, 0.97));
    transform-origin: top right;
    transition:
        transform var(--dm-dropdown-open-dur, 250ms) var(--dm-dropdown-ease, cubic-bezier(0.22, 1, 0.36, 1)),
        opacity var(--dm-dropdown-open-dur, 250ms) var(--dm-dropdown-ease, cubic-bezier(0.22, 1, 0.36, 1)),
        visibility 0s linear var(--dm-dropdown-open-dur, 250ms);
    will-change: transform, opacity;
}

.storefront-autoreg .autoreg-language.is-hover-open .autoreg-language__menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition:
        transform var(--dm-dropdown-open-dur, 250ms) var(--dm-dropdown-ease, cubic-bezier(0.22, 1, 0.36, 1)),
        opacity var(--dm-dropdown-open-dur, 250ms) var(--dm-dropdown-ease, cubic-bezier(0.22, 1, 0.36, 1)),
        visibility 0s linear 0s;
}

.storefront-autoreg .autoreg-language__item {
    min-height: 52px;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--autoreg-text);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
}

.storefront-autoreg .autoreg-language__item:hover {
    background: var(--autoreg-control-bg);
    color: var(--autoreg-text);
}

.storefront-autoreg .autoreg-language__item.active {
    background: var(--autoreg-accent-tint);
    color: var(--autoreg-text);
    box-shadow: inset 0 0 0 1px rgba(143, 244, 81, 0.18);
}

.storefront-autoreg .autoreg-language__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storefront-autoreg .autoreg-language__menu-flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
}
.storefront-autoreg .header-widget {
    position: relative;
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-control-bg);
    color: var(--autoreg-text);
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: inset 0 0 0 1px transparent;
}

@media (hover: hover) {
    .storefront-autoreg .header-widget:hover {
        background: var(--autoreg-control-hover);
        color: var(--autoreg-text);
        transform: translateY(-1px);
    }
}

.storefront-autoreg .header-widget i {
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: var(--autoreg-text);
    font-size: 18px;
    line-height: 1;
}

/* The only image left in a header link is the uploaded profile photo (.has-avatar below). */
.storefront-autoreg .header-widget img {
    width: 20px;
    height: 20px;
    border-radius: 0;
    object-fit: contain;
    filter: brightness(0);
    display: block;
}

/* The header's icons are the site's Lucide icons (dm_ui_icon in views/client/nav.php; owner 18.11: they were
   images drawn black by a filter): the size is the component's, the colour black as before. */
.storefront-autoreg .header-widget .header-ic,
.storefront-autoreg .autoreg-mobile-catalog .header-ic {
    display: block;
    color: var(--color-black);
}

/* Uploaded photo replaces the profile glyph as a small rounded square inside
   the tile (the size and corners of the balance "+"), so the button stays as
   light as its neighbours. */
.storefront-autoreg .header-widget.has-avatar {
    --autoreg-avatar-ring: rgba(17, 18, 22, 0.08);
}

.storefront-autoreg .header-widget.has-avatar img.header-widget__avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover;
    filter: none;
    box-shadow: 0 0 0 1px var(--autoreg-avatar-ring);
}

.storefront-autoreg .header-widget span {
    color: var(--autoreg-text);
    font-size: 12px;
    line-height: 1.15;
}

.storefront-autoreg .header-widget span p {
    margin: 0;
    color: inherit;
}

.storefront-autoreg .header-widget sup {
    position: absolute;
    top: -7px;
    right: -7px;
    left: auto;
    z-index: 4;
    width: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 2px solid var(--color-white);
    border-radius: 999px;
    background: var(--color-red-badge);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.24);
}

.storefront-autoreg .header-widget sup.dm-motion-badge,
.storefront-autoreg .t-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    left: auto;
    z-index: 4;
    width: auto;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
    pointer-events: none;
    transform: translate(0, 0);
    will-change: transform;
}

.storefront-autoreg .dm-motion-badge[data-open="true"],
.storefront-autoreg .t-badge[data-open="true"] {
    animation: t-badge-slide-in var(--badge-slide-dur) var(--badge-slide-ease);
}

/* No intro slide on first paint (page load / soft-nav) — only animate real changes */
.storefront-autoreg .dm-motion-badge.dm-badge-no-intro[data-open="true"],
.storefront-autoreg .t-badge.dm-badge-no-intro[data-open="true"] {
    animation: none;
}

.storefront-autoreg .dm-motion-badge .t-badge-dot,
.storefront-autoreg .t-badge-dot {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid var(--color-white);
    border-radius: 999px;
    background: var(--color-red-badge);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    box-shadow: 0 4px 10px rgba(255, 71, 87, 0.24);
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    transform-origin: center;
    transition:
        transform var(--badge-pop-dur) var(--badge-pop-ease),
        opacity var(--badge-fade-dur) var(--badge-pop-ease),
        filter var(--badge-pop-dur) var(--badge-pop-ease);
    will-change: transform, opacity, filter;
}

.storefront-autoreg .dm-motion-badge[data-open="false"] .t-badge-dot,
.storefront-autoreg .t-badge[data-open="false"] .t-badge-dot {
    opacity: 0;
    filter: blur(var(--badge-blur));
    transform: scale(0);
    transition:
        transform var(--badge-pop-close-dur) var(--badge-close-ease),
        opacity var(--badge-fade-close-dur) var(--badge-close-ease),
        filter var(--badge-pop-close-dur) var(--badge-close-ease);
}

@keyframes t-badge-slide-in {
    from {
        transform: translate(var(--badge-offset-x), var(--badge-offset-y));
    }

    to {
        transform: translate(0, 0);
    }
}

.storefront-autoreg .header-widget.cart-added-pulse,
.storefront-autoreg a.cart-added-pulse {
    animation: autoregCartAddedPulse 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes autoregCartAddedPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(143, 244, 81, 0);
    }

    38% {
        box-shadow: 0 0 0 4px rgba(143, 244, 81, 0.22);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(143, 244, 81, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .storefront-autoreg .dm-motion-badge,
    .storefront-autoreg .t-badge,
    .storefront-autoreg .dm-motion-badge .t-badge-dot,
    .storefront-autoreg .t-badge-dot {
        animation: none !important;
        transition: none !important;
    }
}

/* Balance pill + quick top-up (order:1 keeps it left of cart=2 .. theme=7) */
.storefront-autoreg .header-balance {
    order: 1;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px 0 13px;
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-control-bg);
    transition: background-color 0.18s ease;
}

.storefront-autoreg .header-balance:hover {
    background: var(--autoreg-control-hover);
}

.storefront-autoreg .header-balance__view {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: var(--autoreg-text);
}

.storefront-autoreg .header-balance__view i {
    font-size: 15px;
    opacity: 0.5;
}

.storefront-autoreg .header-balance__amt {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.storefront-autoreg .header-balance__add {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--autoreg-accent);
    color: #16320a;
    font-size: 12px;
    transition: transform 0.16s ease, filter 0.16s ease;
}

.storefront-autoreg .header-balance__add:hover {
    filter: brightness(0.96);
    transform: translateY(-1px);
}
.storefront-autoreg .header-balance__add.is-disabled { border: 0; color: #7d8796; background: var(--color-slate-160); box-shadow: none; cursor: not-allowed; }
.storefront-autoreg .header-balance__add.is-disabled:hover { color: #7d8796; background: var(--color-slate-160); transform: none; }
/* Unconfirmed email (owner 12.11): the lock is a link to the email block of «Личные данные». */
.storefront-autoreg .header-balance__add.is-locked { cursor: pointer; }
.storefront-autoreg .header-widget.is-email-unverified { position: relative; }
.storefront-autoreg .header-widget__verify { position: absolute; z-index: 3; top: -7px; right: -5px; box-sizing: border-box; display: grid !important; place-items: center; width: 17px !important; height: 17px; margin: 0 !important; padding: 0 0 2px; color: #694f00 !important; background: #ffdc68; border: 2px solid var(--autoreg-surface, #fff); border-radius: 50%; box-shadow: 0 2px 7px rgba(117, 87, 0, .2); font-family: "Montserrat", system-ui, sans-serif; font-size: 10px !important; font-weight: 900; line-height: 1 !important; }
.storefront-autoreg .sknav-pay-item.is-disabled { opacity: .65; }
.storefront-autoreg .mobile-menu__verify { position: absolute; top: 5px; left: calc(50% + 7px); display: grid; place-items: center; width: 15px; height: 15px; color: #6b5000; background: var(--color-yellow-260); border: 2px solid var(--color-white); border-radius: 50%; font-size: 9px; font-weight: 900; }

/* Mobile header (<=991px): hide the amount, keep just the "+" */
@media (max-width: 991px) {
    .storefront-autoreg .header-balance__amt {
        display: none;
    }
}
.storefront-autoreg .navbar-part {
    display: none;
    position: relative;
    z-index: var(--z-navbar);
    margin-top: -1px;
    border: 0;
    background: var(--autoreg-dark);
    background-image: url("../../../public/autoreg/img/bg.png");
    background-position: center bottom;
    background-size: cover;
    box-shadow: none;
}

.storefront-autoreg .sknav {
    padding: 0 0 22px;
    gap: 10px;
}

.storefront-autoreg .sknav-menu {
    gap: 10px;
}

.storefront-autoreg .sknav-link,
.storefront-autoreg .sknav-contact-item {
    min-height: 40px;
    border: 0;
    border-radius: var(--autoreg-radius-m);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 600;
}

.storefront-autoreg .sknav-item:first-child .sknav-link:not(.sknav-link-admin),
.storefront-autoreg .sknav-link-hot {
    padding: 0 14px;
    background: var(--autoreg-accent);
    color: var(--color-black);
}

.storefront-autoreg .sknav-link:hover,
.storefront-autoreg .sknav-contact-item:hover {
    background: rgba(255, 255, 255, 0.27);
    color: var(--color-white);
}

.storefront-autoreg .sknav-item:first-child .sknav-link:hover,
.storefront-autoreg .sknav-link-hot:hover {
    background: var(--autoreg-accent-soft);
    color: var(--color-black);
}

.storefront-autoreg .sknav-link i:first-child,
.storefront-autoreg .sknav-contact-item i,
.storefront-autoreg .sknav-contact-item small,
.storefront-autoreg .sknav-contact-item strong {
    color: inherit;
}

.storefront-autoreg .sknav-contact {
    gap: 10px;
}

.storefront-autoreg .sknav-contact-item {
    padding: 7px 12px;
}

.storefront-autoreg .sknav-contact-item div {
    gap: 0;
}

.storefront-autoreg .sknav-contact-item small {
    color: rgba(255, 255, 255, 0.55);
}

.storefront-autoreg .sknav-contact-item strong {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.storefront-autoreg .sknav-megamenu,
.storefront-autoreg .sknav-dropdown {
    border: 0;
    border-radius: var(--autoreg-radius-m);
    background: var(--color-white);
    box-shadow: var(--autoreg-shadow);
}

.storefront-autoreg .sknav-pay-item {
    border-radius: var(--autoreg-radius-m);
    background: var(--color-neutral-50);
}

.storefront-autoreg .sknav-pay-item:hover {
    background: var(--autoreg-accent-soft);
    transform: translateY(-1px);
}

body.storefront-autoreg .swal2-container {
    z-index: var(--z-alert);
    padding: var(--space-20);
    transition: none; /* SweetAlert's own background-color transition: the shade below fades with opacity */
}

/* Global support reply popup. It intentionally stays white in both storefront
   themes so the same compact notification reads naturally on every page. */
body.storefront-autoreg .dm-support-reply-popup {
    position: fixed;
    z-index: var(--z-consent);
    top: auto;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    width: min(332px, calc(100vw - 32px));
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) 42px; /* 42 on the sides: the room of the close button in the corner */
    border: 1px solid #e3e9ee;
    border-radius: var(--radius-16);
    background: var(--color-white);
    color: #182338;
    box-shadow: 0 16px 40px rgba(27, 46, 70, 0.15), 0 3px 9px rgba(27, 46, 70, 0.05);
    font-family: Montserrat, Arial, sans-serif;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 14px, 0) scale(0.975);
    transform-origin: right bottom;
    transition:
        opacity var(--dur-dialog) var(--ease-dialog),
        transform var(--dur-dialog) var(--ease-dialog),
        visibility 0s linear var(--dur-dialog); /* one motion of every window and bar (19.11); main.js hides it after 280 ms */
    will-change: opacity, transform;
}

body.storefront-autoreg .dm-support-reply-popup[hidden] {
    display: none !important;
}

body.storefront-autoreg .dm-support-reply-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0s;
}

body.storefront-autoreg .dm-support-reply-popup.is-leaving {
    opacity: 0;
    visibility: visible;
    pointer-events: none;
    transform: translate3d(0, 10px, 0) scale(0.985);
}

body.storefront-autoreg .dm-support-reply-popup__close {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    padding: 7px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #8b98aa;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease;
}

body.storefront-autoreg .dm-support-reply-popup__close {
    --reply-close-on-bg: #f2f5f7;
    --reply-close-on-ink: #34445b;
}

body.storefront-autoreg .dm-support-reply-popup__close:focus-visible {
    background: var(--reply-close-on-bg);
    color: var(--reply-close-on-ink);
    outline: none;
}

@media (hover: hover) {
    body.storefront-autoreg .dm-support-reply-popup__close:hover {
        background: var(--reply-close-on-bg);
        color: var(--reply-close-on-ink);
    }
}

body.storefront-autoreg .dm-support-reply-popup__close svg,
body.storefront-autoreg .dm-support-reply-popup__open svg {
    display: block;
    width: 100%;
    height: 100%;
}

body.storefront-autoreg .dm-support-reply-popup__head {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 2px;
    text-align: center;
}

body.storefront-autoreg .dm-support-reply-popup__status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #20ad55;
    box-shadow: 0 0 0 4px rgba(32, 173, 85, 0.1);
}

/* Invisible twin keeps the title itself, not only the dot+title group,
   mathematically centered. */
body.storefront-autoreg .dm-support-reply-popup__head::after {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
}

body.storefront-autoreg .dm-support-reply-popup__title {
    display: block;
    width: auto;
    min-width: 0;
    margin: 0;
    color: #182338;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.015em;
    text-align: center;
}

body.storefront-autoreg .dm-support-reply-popup__time {
    display: block;
    width: 100%;
    margin-top: 2px;
    color: #92a0b2;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

body.storefront-autoreg .dm-support-reply-popup__message {
    display: -webkit-box;
    width: 100%;
    min-width: 0;
    margin: 10px 0 11px;
    overflow: hidden;
    color: #596a80;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.storefront-autoreg .dm-support-reply-popup__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    margin: 0 auto;
    padding: 0 14px;
    border-radius: 10px;
    background: var(--color-lime-400);
    color: #102009;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(90, 201, 29, 0.2);
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

body.storefront-autoreg .dm-support-reply-popup__open:hover,
body.storefront-autoreg .dm-support-reply-popup__open:focus-visible {
    background: #9cf662;
    color: #102009;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
    box-shadow: 0 12px 26px rgba(90, 201, 29, 0.32);
}

body.storefront-autoreg .dm-support-reply-popup__open svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

@media (max-width: 640px) {
    body.storefront-autoreg .dm-support-reply-popup {
        top: auto;
        right: max(12px, env(safe-area-inset-right));
        bottom: calc(78px + env(safe-area-inset-bottom));
        left: auto;
        width: min(300px, calc(100vw - 24px));
        padding: var(--space-16) 40px;
        border-radius: var(--radius-16);
        transform: translate3d(0, 12px, 0) scale(0.98);
    }

    body.storefront-autoreg .dm-support-reply-popup.is-visible {
        transform: translate3d(0, 0, 0) scale(1);
    }

    body.storefront-autoreg .dm-support-reply-popup__message {
        margin-top: 9px;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }

    body.storefront-autoreg .dm-support-reply-popup.is-leaving {
        transform: translate3d(0, 9px, 0) scale(0.99);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.storefront-autoreg .dm-support-reply-popup,
    body.storefront-autoreg .dm-support-reply-popup__open {
        transition: none;
    }
}

/* Keep SweetAlert's own scrollbar compensation. A forced zero padding makes
   the page widen when a classic scrollbar disappears behind the modal.
   The shade is a layer of its own that fades with opacity in the windows' time and curve, as the
   cabinet's windows do (owner 19.11, «все окна … плавность»): SweetAlert coloured its container, a
   background-color transition of 100 ms that is not the compositor's. A toast has no shade. */
body.storefront-autoreg .swal2-container.swal2-backdrop-show,
body.storefront-autoreg .swal2-container.swal2-noanimation {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.storefront-autoreg:not(.swal2-toast-shown) .swal2-container:not(.dm-toast-container)::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(15, 23, 42, 0.55);
    opacity: 0;
    pointer-events: none;
}

body.storefront-autoreg:not(.swal2-toast-shown) .swal2-container.swal2-backdrop-show:not(.dm-toast-container)::before {
    opacity: 1;
    animation: autoreg-feedback-shade-in var(--dur-dialog) var(--ease-dialog) both;
}

body.storefront-autoreg:not(.swal2-toast-shown) .swal2-container.swal2-noanimation:not(.dm-toast-container)::before {
    opacity: 1;
}

body.storefront-autoreg:not(.swal2-toast-shown) .swal2-container.swal2-backdrop-hide:not(.dm-toast-container)::before {
    animation: autoreg-feedback-shade-out var(--dur-dialog) var(--ease-dialog) both;
}

body.storefront-autoreg .swal2-popup {
    width: min(420px, calc(100vw - 40px));
    /* The windows' rhythm (19.11): 20 on the sides and at the bottom, 24 above the first row; the cross
       stands on the middle of that row (the icon, or the title's line when there is no icon). */
    --swal-pad-top: var(--space-24);
    --swal-icon: 64px;
    --swal-row: calc(var(--swal-title-size, 21px) * 1.25);
    padding: var(--swal-pad-top) var(--space-20) var(--space-20);
    border: 0;
    border-radius: var(--radius-20);
    background: var(--color-white);
    color: var(--color-slate-800);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    text-align: center;
    font-family: Montserrat, Arial, sans-serif;
}

/* One motion of every window: the windows' time and curve (19.11). */
body.storefront-autoreg .swal2-popup.swal2-show {
    animation: autoreg-feedback-enter var(--dur-dialog) var(--ease-dialog) both !important; /* !important: vendor — sweetalert2.client.css animates .swal2-show itself */
}

body.storefront-autoreg .swal2-popup.swal2-hide {
    animation: autoreg-feedback-leave var(--dur-dialog) var(--ease-dialog) both !important; /* !important: vendor — sweetalert2.client.css animates .swal2-hide itself */
}

body.storefront-autoreg .swal2-popup:has(> .swal2-header > .swal2-icon-show) {
    --swal-row: var(--swal-icon);
}

/* Status icon — rounded-square tinted box + the site's Lucide icon (mask, mod/css/ds/icons.css) + soft ring
   (matches the pf-alert design: success/error/warning/info/question). */
body.storefront-autoreg .swal2-icon {
    width: var(--swal-icon);
    height: var(--swal-icon);
    min-width: var(--swal-icon);
    margin: 0 auto var(--space-16);
    border: 0;
    border-radius: 19px;
    position: relative;
    /* Without !important: SweetAlert hides the icon of a window without one by its inline display (a
       field, the loader showed an empty box with a square in it). */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: none;
}

body.storefront-autoreg .swal2-icon.swal2-icon-show {
    animation: autoreg-feedback-icon-in var(--dur-dialog) var(--ease-dialog) both !important; /* !important: vendor — sweetalert2.client.css animates the icon itself */
}

/* Hide SweetAlert's native line-art (check/x/!/?/i + rings); we draw the site's icon. */
body.storefront-autoreg .swal2-icon * {
    display: none !important;
    animation: none !important;
}

/* Soft outer ring (color set per type). */
body.storefront-autoreg .swal2-icon::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    pointer-events: none;
}

/* The icon itself: a Lucide icon of the site's set as a mask in the type's colour (owner 18.11). */
body.storefront-autoreg .swal2-icon:is(.swal2-success, .swal2-error, .swal2-warning, .swal2-info, .swal2-question)::before {
    content: "";
    width: 28px;
    height: 28px;
    background-color: currentColor;
    -webkit-mask: var(--swal-ic) center / contain no-repeat;
    mask: var(--swal-ic) center / contain no-repeat;
}

body.storefront-autoreg .swal2-icon.swal2-success {
    background: var(--color-lime-100);
    color: var(--color-green-600);
}

body.storefront-autoreg .swal2-icon.swal2-success::before {
    --swal-ic: var(--ds-ic-mask-check);
}

body.storefront-autoreg .swal2-icon.swal2-success::after {
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.08);
}

body.storefront-autoreg .swal2-icon.swal2-error {
    background: var(--color-red-100);
    color: var(--color-red-500);
}

body.storefront-autoreg .swal2-icon.swal2-error::before {
    --swal-ic: var(--ds-ic-mask-x);
}

body.storefront-autoreg .swal2-icon.swal2-error::after {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.08);
}

body.storefront-autoreg .swal2-icon.swal2-warning {
    background: var(--color-amber-100);
    color: var(--color-amber-600);
}

body.storefront-autoreg .swal2-icon.swal2-warning::before {
    --swal-ic: var(--ds-ic-mask-alert-triangle);
}

body.storefront-autoreg .swal2-icon.swal2-warning::after {
    box-shadow: 0 0 0 6px rgba(217, 119, 6, 0.08);
}

body.storefront-autoreg .swal2-icon.swal2-info {
    background: var(--color-sky-100);
    color: var(--color-sky-700);
}

body.storefront-autoreg .swal2-icon.swal2-info::before {
    --swal-ic: var(--ds-ic-mask-info);
}

body.storefront-autoreg .swal2-icon.swal2-info::after {
    box-shadow: 0 0 0 6px rgba(3, 105, 161, 0.08);
}

body.storefront-autoreg .swal2-icon.swal2-question {
    background: var(--color-slate-125);
    color: var(--color-slate-500) !important;
}

body.storefront-autoreg .swal2-icon.swal2-question::before {
    --swal-ic: var(--ds-ic-mask-circle-help);
}

/* SweetAlert's 1.8em on each side of the head: the title takes the text's width, the window's one inner
   width (19.11). */
body.storefront-autoreg .swal2-header {
    padding: 0;
}

body.storefront-autoreg .swal2-title {
    margin: 0 0 var(--space-8);
    padding: 0;
    color: var(--color-slate-800);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

body.storefront-autoreg .swal2-html-container,
body.storefront-autoreg .swal2-content {
    margin: 0 auto;
    padding: 0;
    max-width: 320px;
    color: var(--color-slate-500);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

/* A field takes the window's inner width as the buttons do; the text keeps 320 px in .swal2-html-container. */
body.storefront-autoreg .swal2-popup:not(.swal2-toast) .swal2-content {
    width: 100%;
    max-width: none;
}

body.storefront-autoreg .swal2-actions {
    width: 100%;
    margin: var(--space-24) 0 0;
    padding: 0; /* SweetAlert's 1.6em on each side */
    gap: 10px;
    flex-wrap: nowrap;
}

/* Buttons split the footer width evenly (single button = full width). */
body.storefront-autoreg .swal2-styled {
    flex: 1 1 0;
    min-width: 0;
    min-height: var(--dialog-btn-h);
    height: var(--dialog-btn-h);
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 13px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

body.storefront-autoreg .swal2-styled:focus {
    outline: none;
    box-shadow: none;
}

/* Keyboard focus: the site's ring (audit 18.11, E06), a pointer's focus stays without one. */
body.storefront-autoreg .swal2-styled:focus-visible,
body.storefront-autoreg .swal2-close:focus-visible {
    outline: 3px solid var(--color-green-700);
    outline-offset: 2px;
    box-shadow: none;
}

/* Hover only where there is a pointer that hovers (decision 20-1): a touch leaves no lifted button. */
@media (hover: hover) {
    body.storefront-autoreg .swal2-styled:hover {
        transform: translateY(-1px);
    }
}

body.storefront-autoreg .swal2-confirm {
    background: var(--color-lime-400) !important;
    color: var(--color-lime-950);
    box-shadow: 0 8px 18px rgba(143, 244, 81, 0.32) !important;
}

@media (hover: hover) {
    body.storefront-autoreg .swal2-confirm:hover {
        background: var(--color-lime-300) !important;
    }
}

body.storefront-autoreg .swal2-cancel {
    background: var(--color-slate-125) !important;
    color: var(--color-slate-600);
    box-shadow: none !important;
}

@media (hover: hover) {
    body.storefront-autoreg .swal2-cancel:hover {
        background: #e3e8ef !important;
        color: var(--color-slate-800);
    }
}

/* The red buttons take --sf-danger: white text on #ef4444 was 3.8:1 (owner 18.11, decision 6). */
body.storefront-autoreg .swal2-deny {
    background: var(--sf-danger) !important;
    color: var(--color-white);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28) !important;
}

@media (hover: hover) {
    body.storefront-autoreg .swal2-deny:hover {
        filter: brightness(1.05);
    }
}

/* Destructive confirm: error dialog with a Cancel button → red OK
   (mirrors pf-alert, which makes error+confirm the danger action). */
body.storefront-autoreg .swal2-popup:has(.swal2-icon.swal2-error):has(.swal2-cancel) .swal2-confirm {
    background: var(--sf-danger) !important;
    color: var(--color-white);
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28) !important;
}

@media (hover: hover) {
    body.storefront-autoreg .swal2-popup:has(.swal2-icon.swal2-error):has(.swal2-cancel) .swal2-confirm:hover {
        background: var(--sf-danger) !important;
        filter: brightness(1.05);
    }
}

body.storefront-autoreg .swal2-close {
    top: calc(var(--swal-pad-top) + (var(--swal-row) - 38px) / 2);
    right: var(--space-20);
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--autoreg-control-bg);
    color: var(--autoreg-text);
    font-family: var(--font-storefront); /* the site's face for «×», not SweetAlert's serif (audit 18.11, S12) */
    font-size: 26px;
    transition: background-color 0.16s ease;
}

/* The cross keeps its place under the pointer, as the cross of every other window. */
@media (hover: hover) {
    body.storefront-autoreg .swal2-close:hover {
        background: var(--autoreg-accent-soft);
        color: var(--autoreg-text);
    }
}

/* A field of a window: one line in focus (owner 19.11, decision 10), the system's placeholder. */
body.storefront-autoreg .swal2-popup .swal2-input,
body.storefront-autoreg .swal2-popup .swal2-textarea {
    margin: var(--space-16) auto 0;
    border: 1px solid var(--sf-border);
    border-radius: var(--radius-12);
    box-shadow: none;
    transition: none; /* SweetAlert's 300 ms border and shadow fade ran with the window's opening (autofocus) */
}

body.storefront-autoreg .swal2-popup .swal2-input:focus,
body.storefront-autoreg .swal2-popup .swal2-textarea:focus {
    outline: 0;
    border-color: var(--sf-focus-line);
    box-shadow: inset 0 0 0 1px var(--sf-focus-line);
}

body.storefront-autoreg .swal2-popup .swal2-input::placeholder,
body.storefront-autoreg .swal2-popup .swal2-textarea::placeholder {
    color: var(--cab-light);
}

body.storefront-autoreg .swal2-loader {
    margin: 0; /* SweetAlert's 1.875em on each side */
    border-color: var(--autoreg-accent) transparent var(--autoreg-accent) transparent;
}

body.storefront-autoreg .swal2-container.dm-toast-container,
body.storefront-autoreg .swal2-container.swal2-backdrop-show.dm-toast-container,
body.storefront-autoreg .swal2-container.swal2-noanimation.dm-toast-container,
body.storefront-autoreg .swal2-container.swal2-backdrop-show:has(.dm-toast) {
    /* The width SweetAlert gave the toast's container through body.swal2-no-backdrop, which came
       with backdrop: false — an option toasts do not take (audit 18.11, E20: two console warnings
       per toast); datamoll-notifications.js no longer passes it, the toast keeps its place. */
    max-width: calc(100% - 1.25em);
    padding: var(--dm-toast-frame, 18px) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
}

body.storefront-autoreg .swal2-container.dm-toast-container .swal2-popup {
    pointer-events: auto;
}

body.storefront-autoreg .swal2-popup.swal2-toast.dm-toast {
    position: relative;
    width: min(430px, calc(100vw - 32px)) !important;
    min-height: 0;
    display: block !important;
    padding: 0;
    border: 1px solid rgba(17, 17, 17, 0.07);
    border-top: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--autoreg-text);
    box-shadow: 0 18px 46px rgba(17, 17, 17, 0.16);
    overflow: hidden;
    font-family: Montserrat, Arial, sans-serif;
}

body.storefront-autoreg .swal2-popup.swal2-toast.dm-toast.swal2-show {
    animation: autoreg-feedback-enter var(--dur-dialog) var(--ease-dialog) both !important;
}

body.storefront-autoreg .swal2-popup.swal2-toast.dm-toast.swal2-hide {
    animation: autoreg-feedback-leave var(--dur-dialog) var(--ease-dialog) both !important;
}

body.storefront-autoreg .swal2-toast.dm-toast > .swal2-icon,
body.storefront-autoreg .swal2-toast.dm-toast > .swal2-title {
    display: none !important;
}

body.storefront-autoreg .swal2-toast.dm-toast .swal2-header,
body.storefront-autoreg .swal2-toast.dm-toast .swal2-actions,
body.storefront-autoreg .swal2-toast.dm-toast .swal2-footer {
    display: none !important;
}

body.storefront-autoreg .swal2-toast.dm-toast .swal2-content {
    width: 100% !important;
    margin: 0;
    padding: 0;
    display: block;
}

body.storefront-autoreg .swal2-toast.dm-toast .swal2-html-container.dm-toast-html {
    width: 100% !important;
    margin: 0;
    padding: 0;
    overflow: visible;
    color: inherit;
    text-align: left;
}

body.storefront-autoreg .dm-toast-content {
    min-height: 78px;
    padding: 18px 20px 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
}

body.storefront-autoreg .dm-toast-icon {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--autoreg-accent);
    color: #071004;
}

body.storefront-autoreg .dm-toast-icon--success::before {
    content: "";
    width: 21px;
    height: 12px;
    margin-top: -3px;
    border-left: 5px solid currentColor;
    border-bottom: 5px solid currentColor;
    border-radius: 3px;
    transform: rotate(-45deg);
}

body.storefront-autoreg .dm-toast-icon--error {
    background: var(--color-red-110);
    color: var(--color-red-550);
}

body.storefront-autoreg .dm-toast-icon--error::before,
body.storefront-autoreg .dm-toast-icon--error::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
}

body.storefront-autoreg .dm-toast-icon--error::before {
    transform: rotate(45deg);
}

body.storefront-autoreg .dm-toast-icon--error::after {
    transform: rotate(-45deg);
}

body.storefront-autoreg .dm-toast-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.storefront-autoreg .dm-toast-title {
    display: block;
    color: var(--autoreg-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

body.storefront-autoreg .dm-toast-title--single {
    font-size: 16px;
}

body.storefront-autoreg .dm-toast-message {
    display: block;
    margin-top: 4px;
    color: color-mix(in srgb, var(--autoreg-text) 68%, transparent);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

body.storefront-autoreg .swal2-toast.dm-toast .swal2-timer-progress-bar-container {
    height: 3px;
    right: 0;
    bottom: 0;
    left: 0;
    background: transparent;
}

body.storefront-autoreg .swal2-toast.dm-toast .swal2-timer-progress-bar {
    height: 3px;
    background: var(--autoreg-accent);
    opacity: 0.9;
}

body.storefront-autoreg .swal2-toast.dm-toast.dm-toast--error .swal2-timer-progress-bar {
    background: var(--color-red-500);
}

@media (max-width: 640px) {
    body.storefront-autoreg .swal2-container {
        align-items: center;
        padding: var(--space-16);
    }

    body.storefront-autoreg .swal2-popup {
        width: min(100%, 420px);
        --swal-icon: 58px;
        --swal-title-size: 20px;
    }

    body.storefront-autoreg .swal2-icon::before {
        font-size: 25px;
    }

    body.storefront-autoreg .swal2-title {
        font-size: 20px;
    }

    body.storefront-autoreg .swal2-html-container,
    body.storefront-autoreg .swal2-content {
        max-width: 100%;
        font-size: 13.5px;
    }

    body.storefront-autoreg .swal2-actions {
        width: 100%;
        gap: 10px;
    }

    body.storefront-autoreg .swal2-styled {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 14px;
        font-size: 14px;
    }

    body.storefront-autoreg .swal2-popup.swal2-toast.dm-toast {
        width: calc(100vw - 28px) !important;
        border-radius: 18px;
    }

    /* The toast in the middle of a phone, 14 px from both sides as its width says. */
    body.storefront-autoreg .swal2-container.dm-toast-container,
    body.storefront-autoreg .swal2-container.swal2-backdrop-show.dm-toast-container,
    body.storefront-autoreg .swal2-container.swal2-noanimation.dm-toast-container,
    body.storefront-autoreg .swal2-container.swal2-backdrop-show:has(.dm-toast) {
        --dm-toast-frame: var(--space-14);
        max-width: 100%;
    }

    body.storefront-autoreg .dm-toast-content {
        min-height: 72px;
        padding: 16px 16px 15px 15px;
        gap: 12px;
    }

    body.storefront-autoreg .dm-toast-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    body.storefront-autoreg .dm-toast-title {
        font-size: 16px;
    }

    body.storefront-autoreg .dm-toast-title--single,
    body.storefront-autoreg .dm-toast-message {
        font-size: 13px;
    }
    }

@keyframes autoreg-feedback-enter {
    from {
        opacity: 0;
        transform: translateY(var(--space-16)) scale(0.98); /* the cabinet's windows: the same way in */
    }

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

@keyframes autoreg-feedback-leave {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(var(--space-16)) scale(0.98);
    }
}

@keyframes autoreg-feedback-shade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes autoreg-feedback-shade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Reduced motion: a window and its shade appear and leave at once. */
@media (prefers-reduced-motion: reduce) {
    body.storefront-autoreg .swal2-popup.swal2-show,
    body.storefront-autoreg .swal2-popup.swal2-hide,
    body.storefront-autoreg .swal2-icon.swal2-icon-show {
        animation: none !important; /* !important: motion — the animations above carry it against SweetAlert's own */
    }

    body.storefront-autoreg .swal2-container::before {
        animation: none !important; /* !important: motion — as the window above */
    }
}

@keyframes autoreg-feedback-icon-in {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
.autoreg-hero {
    position: relative;
    min-height: 0;
    height: auto;
    aspect-ratio: 1300 / 363;
    margin: 30px auto 0;
    padding: 0;
    overflow: hidden;
    border-radius: 28px;
    background: var(--color-moss-900);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.autoreg-hero__slides,
.autoreg-hero__slide,
.autoreg-hero__bg {
    position: absolute;
    inset: 0;
}

.autoreg-hero__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.autoreg-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.autoreg-hero__bg {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.autoreg-hero__hit {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
}

.autoreg-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: none;
    padding: 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.autoreg-hero__title {
    margin: 0;
    color: var(--color-white);
    max-width: 640px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
}

.autoreg-hero__text {
    max-width: 445px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.4;
}

.autoreg-hero__btn {
    width: fit-content;
    min-height: 40px;
    height: 40px;
    margin-top: 18px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-accent);
    color: var(--color-black);
    font-size: 14px;
    font-weight: 600;
}

.autoreg-hero__btn:hover {
    background: var(--autoreg-accent-soft);
    color: var(--color-black);
}

.autoreg-hero__slide--datamoll-promo {
    background: var(--color-neutral-60);
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__content {
    padding: 0 72px;
    color: var(--color-neutral-950);
}

.autoreg-hero__slide--api .autoreg-hero__content,
.autoreg-hero__slide--supplier .autoreg-hero__content {
    padding-left: 632px;
}

.autoreg-hero__slide--catalog .autoreg-hero__content {
    padding-left: 126px;
    padding-right: 70px;
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__title {
    color: var(--color-neutral-950);
    max-width: 560px;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.08;
}

.autoreg-hero__slide--catalog .autoreg-hero__title {
    max-width: 1020px;
    color: var(--color-neutral-950);
    font-size: 46px;
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__text {
    max-width: 560px;
    margin-top: 18px;
    color: var(--color-neutral-875);
    font-size: 17px;
    line-height: 1.45;
}

.autoreg-hero__slide--catalog .autoreg-hero__text {
    max-width: 880px;
    color: var(--color-neutral-875);
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__btn {
    position: relative;
    min-height: 42px;
    height: 42px;
    margin-top: 20px;
    padding: 0 22px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--color-neutral-950);
    color: var(--color-white);
    font-size: 15px;
    isolation: isolate;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
    transform: translateZ(0);
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.14s ease;
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__btn::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__btn::after {
    left: 50%;
    top: 50%;
    width: 160%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(143, 244, 81, 0.34) 0%, rgba(143, 244, 81, 0.18) 42%, transparent 68%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.18);
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__btn:hover {
    background: #1e1e1e;
    color: var(--color-lime-400);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(143, 244, 81, 0.2);
    transform: translateY(-1px);
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__btn:active {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(143, 244, 81, 0.28);
    transform: translateY(1px) scale(0.985);
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__btn:active::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.autoreg-hero__slide--datamoll-promo .autoreg-hero__btn:focus-visible {
    outline: 3px solid rgba(143, 244, 81, 0.56);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .autoreg-hero__slide--datamoll-promo .autoreg-hero__btn,
    .autoreg-hero__slide--datamoll-promo .autoreg-hero__btn::after {
        transition: none;
    }
}

.autoreg-hero__side {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 56px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.autoreg-hero__side--left {
    left: 8px;
}

.autoreg-hero__side--right {
    right: 8px;
}

.autoreg-hero__arrow {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(5, 5, 5, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--color-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
    pointer-events: auto;
    transition: transform 0.16s ease;
}

.autoreg-hero__arrow:active,
.autoreg-hero__arrow.is-pressed {
    transform: translateY(1px) scale(0.94);
}

.autoreg-hero__arrow .autoreg-hero__arrow-ic {
    /* The site's Lucide chevron (was a 9 × 14 image; owner 18.11: an icon is never below 14 px). */
    width: 16px;
    height: 16px;
    color: var(--color-black);
    opacity: 0.78;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.autoreg-hero__arrow--prev .autoreg-hero__arrow-ic {
    transform: rotate(180deg);
}

.autoreg-hero__arrow.is-pressed .autoreg-hero__arrow-ic {
    opacity: 1;
}

.autoreg-hero__arrow--next.is-pressed .autoreg-hero__arrow-ic {
    transform: translateX(2px);
}

.autoreg-hero__arrow--prev.is-pressed .autoreg-hero__arrow-ic {
    transform: translateX(-2px) rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
    .autoreg-hero__arrow:hover {
        transform: translateY(-1px);
    }

    .autoreg-hero__arrow:hover .autoreg-hero__arrow-ic {
        opacity: 1;
    }

    .autoreg-hero__arrow--next:hover .autoreg-hero__arrow-ic {
        transform: translateX(2px);
    }

    .autoreg-hero__arrow--prev:hover .autoreg-hero__arrow-ic {
        transform: translateX(-2px) rotate(180deg);
    }
}

/* The dots of a phone (decision 18-1; shown by 99-responsive/30-mobile-content.css below 768 px): each a 24 px
   button around a 6 px dot, the current one a 18 px bar. */
.autoreg-hero__dots {
    display: none;
}

.autoreg-hero__dot {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.autoreg-hero__dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: var(--radius-pill);
    background: var(--color-slate-300);
}

.autoreg-hero__dot.is-active::before {
    width: 18px;
    background: var(--sf-text);
}

.autoreg-hero__dot:focus-visible {
    outline: 3px solid var(--sf-focus-line);
    outline-offset: -3px;
    border-radius: var(--radius-pill);
}

.autoreg-hero__arrow:focus-visible {
    outline: 3px solid rgba(5, 5, 5, 0.24);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .autoreg-hero__arrow,
    .autoreg-hero__arrow .autoreg-hero__arrow-ic {
        transition: none;
    }
}

/* «−15%» price tag of the API slide (owner 17.11). On desktop it hangs from the API tag of the
   picture: same viewBox and cover crop as the image, so it stays on it at every width. On phones
   (30-mobile-content.css) it hangs from the top edge above the title instead. */
.autoreg-hero__tag {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.autoreg-hero__tag-m {
    display: none;
}

.autoreg-hero__tag-swing {
    transform-box: view-box;
}

.autoreg-hero__tag .autoreg-hero__tag-swing {
    transform-origin: 418px 146px;
}

.autoreg-hero__tag-m .autoreg-hero__tag-swing {
    transform-origin: 60px 0;
}

/* Swings each time the slide comes in, then once every five seconds. */
.autoreg-hero__slide.is-active .autoreg-hero__tag-swing {
    animation: autoreg-hero-tag-swing 5s ease-in-out 0.4s infinite;
}

@keyframes autoreg-hero-tag-swing {
    0% { transform: rotate(0deg); }
    6% { transform: rotate(10deg); }
    14% { transform: rotate(-8deg); }
    22% { transform: rotate(5deg); }
    30% { transform: rotate(-3deg); }
    38% { transform: rotate(1.5deg); }
    46%, 100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .autoreg-hero__slide.is-active .autoreg-hero__tag-swing {
        animation: none;
    }
}
.storefront-autoreg .feature-part,
.storefront-autoreg .products-page,
.storefront-autoreg .product-detail-page,
.storefront-autoreg .cart-page,
.storefront-autoreg .profile-part {
    background: var(--autoreg-bg);
}

.storefront-autoreg .feature-part {
    padding-top: 0;
}

.storefront-autoreg .home-categories-section {
    margin-top: 0;
    padding: 0;
}

.storefront-autoreg .parent-categories-filter .d-flex,
.storefront-autoreg .categories-grid {
    gap: 10px !important;
}

.storefront-autoreg .btn-parent-category,
.storefront-autoreg .category-card {
    min-height: 47px;
    border: 0;
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-surface);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    color: var(--autoreg-text);
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.storefront-autoreg .btn-parent-category.active,
.storefront-autoreg .btn-parent-category:hover,
.storefront-autoreg .category-card:hover,
.storefront-autoreg .category-card.active-category {
    background: var(--autoreg-accent);
    color: var(--color-black);
    box-shadow: none;
    transform: translateY(-1px);
}

.storefront-autoreg .category-card {
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.storefront-autoreg .category-card-icon,
.storefront-autoreg .category-icon-placeholder {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 0;
    background: transparent;
}

.storefront-autoreg .category-card-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.storefront-autoreg .category-card-label {
    white-space: nowrap;
}

.storefront-autoreg .products-section-header,
.storefront-autoreg .products-table__header {
    margin-bottom: 20px;
}

.storefront-autoreg .products-section-title,
.storefront-autoreg .section-header h3,
.storefront-autoreg .cart-page-header-title {
    color: var(--autoreg-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
}

.storefront-autoreg .products-section-subtitle,
.storefront-autoreg .cart-page-header-count {
    color: var(--autoreg-muted);
    font-size: 13px;
}

.storefront-autoreg .products-section-subtitle {
    color: var(--autoreg-muted-strong);
}

.storefront-autoreg .btn-explore,
.storefront-autoreg .btn-load-more,
.storefront-autoreg .btn-filter,
.storefront-autoreg .cart-header-btn,
.storefront-autoreg .btn-order,
.storefront-autoreg .btn-add-cart,
.storefront-autoreg .form-button button,
.storefront-autoreg .btn-submit-review {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-accent);
    color: var(--color-black);
    font-size: 15px;
    font-weight: 600;
    box-shadow: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.storefront-autoreg .btn-explore:hover,
.storefront-autoreg .btn-load-more:hover,
.storefront-autoreg .btn-filter:hover,
.storefront-autoreg .cart-header-btn:hover,
.storefront-autoreg .btn-order:hover,
.storefront-autoreg .btn-add-cart:hover,
.storefront-autoreg .form-button button:hover,
.storefront-autoreg .btn-submit-review:hover {
    background: var(--autoreg-accent-soft);
    border-color: var(--autoreg-accent);
    color: var(--color-black);
    transform: translateY(-1px);
}

.storefront-autoreg .products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    overflow: visible;
    --dm-reveal-dur: 420ms;
    --dm-reveal-distance: 10px;
    --dm-reveal-blur: 1.5px;
    transition: min-height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-autoreg .products-grid.is-filtering {
    opacity: 0.7;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        min-height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-autoreg .product-card {
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.storefront-autoreg .product-card:hover {
    transform: none;
    box-shadow: none;
}

.storefront-autoreg .product-card-link {
    height: 100%;
    color: inherit;
    text-decoration: none;
    overflow: visible;
}

.storefront-autoreg .product-card-link:hover,
.storefront-autoreg .product-card-link:focus,
.storefront-autoreg .product-card-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.storefront-autoreg .product-card-image {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 14px;
    padding: 0;
    border-radius: var(--autoreg-radius-l);
    background: transparent;
    overflow: visible;
}

.storefront-autoreg .product-card-image img,
.storefront-autoreg .product-image-placeholder {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: var(--autoreg-radius-l);
    object-fit: contain;
    background: transparent;
    z-index: 1;
}

.storefront-autoreg .product-card:hover .product-card-image img {
    transform: none;
}

.storefront-autoreg .product-card .product-favorite-btn {
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    opacity: 1;
    transform: none;
    z-index: 3;
}

.storefront-autoreg .product-card .product-favorite-btn.active {
    background: #ffe8ee;
    color: #e11d48;
}

.storefront-autoreg .product-card .product-favorite-btn.favorite-just-added,
.storefront-autoreg .rv-product-favorite-btn.favorite-just-added {
    animation: autoregFavoriteButtonPop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.storefront-autoreg .product-card .product-favorite-btn.favorite-just-added i,
.storefront-autoreg .rv-product-favorite-btn.favorite-just-added i {
    animation: autoregFavoriteIconPop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.storefront-autoreg .product-card .product-favorite-btn.favorite-just-added::after,
.storefront-autoreg .rv-product-favorite-btn.favorite-just-added::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(239, 68, 68, 0.34);
    border-radius: 999px;
    pointer-events: none;
    animation: autoregFavoriteRing 520ms ease-out both;
}

.storefront-autoreg .product-card .product-favorite-btn.favorite-just-removed,
.storefront-autoreg .rv-product-favorite-btn.favorite-just-removed {
    animation: autoregFavoriteButtonRemove 220ms ease-out both;
}

@keyframes autoregFavoriteButtonPop {
    0% { transform: scale(0.92); }
    45% { transform: scale(1.16); }
    100% { transform: scale(1); }
}

@keyframes autoregFavoriteIconPop {
    0% { transform: scale(0.74); }
    45% { transform: scale(1.28); }
    100% { transform: scale(1); }
}

@keyframes autoregFavoriteRing {
    0% {
        opacity: 0.58;
        transform: scale(0.72);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@keyframes autoregFavoriteButtonRemove {
    0% { transform: scale(1); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.storefront-autoreg .product-card-content {
    padding: 0;
    gap: 10px;
}

.storefront-autoreg .product-card-title {
    min-height: calc(1.35em * 2);
    color: var(--autoreg-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.storefront-autoreg .product-card:hover .product-card-title,
.storefront-autoreg .product-card-link:hover .product-card-title,
.storefront-autoreg .product-card-link:focus .product-card-title,
.storefront-autoreg .product-card-link:focus-visible .product-card-title {
    color: var(--autoreg-text);
    text-decoration: none;
}

.storefront-autoreg .product-card-price {
    margin-top: auto;
    padding-top: 0;
    gap: 5px;
}

.storefront-autoreg .product-price-current,
.storefront-autoreg .product-price-range,
.storefront-autoreg .plan-current-price {
    color: var(--autoreg-text);
    font-size: 13px;
    font-weight: 700;
}

.storefront-autoreg .product-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--autoreg-muted);
    font-size: 12px;
    font-weight: 600;
}

.storefront-autoreg .product-delivery,
.storefront-autoreg .product-rating,
.storefront-autoreg .product-sold {
    min-height: 22px;
    padding: 2px 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: var(--autoreg-row);
    color: var(--autoreg-text);
}

.storefront-autoreg .delivery-instant {
    background: var(--autoreg-accent-soft);
    color: var(--autoreg-text);
}

.storefront-autoreg .delivery-instant i,
.storefront-autoreg .product-delivery.delivery-instant i {
    color: var(--autoreg-text);
}

.storefront-autoreg .product-discount-badge,
.storefront-autoreg .plan-discount-badge {
    background: var(--color-neutral-900);
    color: var(--autoreg-accent);
    border-radius: var(--autoreg-radius-s);
}

/* Shared animated FAQ disclosure for homepage and category SEO blocks. */
.storefront-autoreg .autoreg-faq-details > summary {
    position: relative;
    padding-left: 30px;
    padding-right: 0;
    list-style: none;
}

.storefront-autoreg .autoreg-faq-details > summary::-webkit-details-marker {
    display: none;
}

.storefront-autoreg .autoreg-faq-details > summary::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    width: 9px;
    height: 9px;
    border-right: 2.5px solid var(--color-lime-430);
    border-bottom: 2.5px solid var(--color-lime-430);
    transform: translateY(-68%) rotate(45deg);
    transform-origin: 62% 62%;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-autoreg .autoreg-faq-details[open] > summary::after {
    transform: translateY(-28%) rotate(225deg);
}

.storefront-autoreg .autoreg-faq-details__answer {
    overflow: hidden;
    opacity: 1;
    will-change: height, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .storefront-autoreg .autoreg-faq-details > summary::after {
        transition: none;
    }
}
body.storefront-autoreg .hotline-phone-ring-wrap,
body.storefront-autoreg #linkzalo,
body.storefront-autoreg .giuseart-pc-contact-bar,
.storefront-autoreg-home .home-sidebar-banners,
.storefront-autoreg-home .home-banner-top,
.storefront-autoreg-home .home-slider-wrapper,
.storefront-autoreg-home .home-banner-below,
.storefront-autoreg-home .flash-sale-section,
.storefront-autoreg-home .home-section-divider {
    display: none !important;
}

.storefront-autoreg .sknav-contact {
    display: none;
}

.storefront-autoreg-home .feature-part {
    padding: 0 0 72px;
    margin-bottom: 0;
}

.storefront-autoreg-home .feature-part > .container {
    display: grid;
    gap: 88px;
}

.storefront-autoreg-home .autoreg-social {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
    margin: 38px 0 0;
    padding: 0;
    overflow: visible;
}

.storefront-autoreg-home .autoreg-social__row {
    width: 100%;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding: 0;
    margin: 0;
    scrollbar-width: none;
}

.storefront-autoreg-home .autoreg-social__row::-webkit-scrollbar {
    display: none;
}

.storefront-autoreg-home .autoreg-social-chip {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 14px;
    appearance: none;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: var(--color-slate-75);
    box-shadow: none;
    color: var(--color-slate-600);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    overflow: visible;
    cursor: pointer;
    vertical-align: top;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) {
    .storefront-autoreg-home .autoreg-social-chip:hover {
        background: var(--color-slate-125);
        border-color: transparent;
        box-shadow: none;
        transform: translateY(-1px);
    }
}

.storefront-autoreg-home .autoreg-social-chip.active,
.storefront-autoreg-home .autoreg-social-chip.active-category {
    background: var(--color-lime-100);
    color: var(--color-gray-800);
    border-color: var(--color-lime-200);
    box-shadow: none;
}

.storefront-autoreg-home .autoreg-social-chip__icon,
.storefront-autoreg-home .category-card-icon,
.storefront-autoreg-home .autoreg-social-chip__icon img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    object-fit: contain;
    border-radius: 7px;
    background: var(--autoreg-accent);
}

.storefront-autoreg-home .autoreg-social-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #071006;
    line-height: 1;
}

.storefront-autoreg-home .autoreg-social-chip__icon img {
    border-radius: 7px;
    background: transparent;
}

.storefront-autoreg-home .autoreg-social-chip__icon i {
    font-size: 15px;
    line-height: 1;
    display: block;
}

.storefront-autoreg-home .category-card-label {
    min-width: 0;
    height: auto;
    display: block;
    overflow: hidden;
    color: inherit;
    line-height: 1.2;
    text-align: left;
    text-overflow: ellipsis;
}

.storefront-autoreg-home .autoreg-social-chip--all {
    min-width: 0;
}

/* "All" icon — green 2x2 dot grid, no tile background */
.storefront-autoreg-home .autoreg-social-chip__icon--all {
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    background: transparent;
    border-radius: 0 !important;
}

.storefront-autoreg-home .all-dots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
    width: 18px;
    height: 18px;
}

.storefront-autoreg-home .all-dots span {
    display: block;
    background: var(--color-green-600);
    border-radius: 3px;
}

.storefront-autoreg-home .autoreg-top-products {
    margin: 0;
    padding: 0;
}

.storefront-autoreg-home .products-section-header {
    margin-bottom: 24px;
    align-items: center;
}

.storefront-autoreg-home .autoreg-section-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--autoreg-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.storefront-autoreg-home .autoreg-section-title__icon {
    width: 42px;
    height: 41px;
    object-fit: contain;
}

/* Section header badges — unified system (Variant A) */
.storefront-autoreg-home .section-badge,
.storefront-autoreg-home .autoreg-section-title__fire {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.storefront-autoreg-home .section-badge--reco,
.storefront-autoreg-home .autoreg-section-title__fire { background: #ffe4e9; color: #f43f5e; }
.storefront-autoreg-home .section-badge--hit    { background: #e8e9fe; color: #6366f1; }
.storefront-autoreg-home .section-badge--recent { background: #d8f5f0; color: #14b8a6; }
.storefront-autoreg-home .section-badge--flash  { background: #fff3dd; color: var(--color-amber-500); }

.storefront-autoreg-home .products-section-subtitle {
    margin-top: 8px;
    font-size: 13px;
}

.storefront-autoreg-home .products-section-header .btn-explore {
    min-height: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-surface);
    color: var(--autoreg-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 6px 14.4px rgba(0, 0, 0, 0.06);
}

.storefront-autoreg-home .products-section-header .btn-explore i {
    font-size: 12px;
    line-height: 1;
}

.storefront-autoreg-home .products-section-header .btn-explore:hover {
    background: var(--autoreg-control-hover);
    border-color: rgba(15, 23, 42, 0.12);
    color: var(--autoreg-text);
    box-shadow: none;
    transform: translateY(-1px);
}
.storefront-autoreg-home .products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    padding-top: 0;
    margin-top: 0;
    overflow: visible;
    transition: min-height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-autoreg-home .products-grid.is-filtering {
    opacity: 0.7;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        min-height 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.storefront-autoreg-home .product-card,
.storefront-autoreg-home .rv-product-card {
    min-width: 0;
    min-height: 220px;
    padding: 16px;
    position: relative;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 10px;
    background: var(--autoreg-surface);
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.storefront-autoreg-home .product-card:hover,
.storefront-autoreg-home .rv-product-card:hover {
    transform: translateY(-1px);
    border-color: rgba(143, 244, 81, 0.5);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.storefront-autoreg-home .product-card-link {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    color: inherit;
    text-decoration: none;
}

.storefront-autoreg-home .product-card-link:hover,
.storefront-autoreg-home .product-card-link:focus,
.storefront-autoreg-home .product-card-link:focus-visible {
    color: inherit;
    text-decoration: none;
}

.storefront-autoreg-home .product-card-image {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    margin: 0;
    padding: 0;
    position: static;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    background: var(--color-slate-60);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    box-sizing: border-box;
}

.storefront-autoreg-home .product-card-image.has-product-image,
.storefront-autoreg-home .product-card-image.has-category-icon {
    border-color: transparent;
    background: transparent;
}

.storefront-autoreg-home .product-card-image.has-product-placeholder {
    border-color: rgba(15, 23, 42, 0.06);
    background: var(--color-slate-60);
}

.storefront-autoreg-home .product-card-image img,
.storefront-autoreg-home .product-image-placeholder {
    position: static;
    width: 100%;
    height: 100%;
    border-radius: 9px;
    object-fit: contain;
    background: transparent;
}

.storefront-autoreg-home .product-card-content {
    min-width: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 0 0;
}

.storefront-autoreg-home .product-card-title {
    min-height: calc(1.35em * 2);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--autoreg-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.storefront-autoreg-home .product-card:hover .product-card-title,
.storefront-autoreg-home .product-card-link:hover .product-card-title,
.storefront-autoreg-home .product-card-link:focus .product-card-title,
.storefront-autoreg-home .product-card-link:focus-visible .product-card-title {
    color: var(--autoreg-text);
    text-decoration: none;
}

.storefront-autoreg-home .product-card-description {
    display: none;
}

.storefront-autoreg-home .product-card-price {
    min-height: 0;
    margin-top: 0;
    padding-top: 0;
    justify-content: flex-start;
}

.storefront-autoreg-home .product-card-meta {
    min-height: 0;
    margin-top: auto;
    padding-top: 6px;
    gap: 6px;
    align-content: flex-start;
}

.storefront-autoreg-home .product-card-skeleton {
    min-height: 220px;
    padding: 16px;
    display: block;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 10px;
    background: var(--autoreg-surface);
}

.storefront-autoreg-home .product-card-skeleton .skeleton-image {
    width: 74px;
    height: 74px;
    padding-top: 0;
    border-radius: 10px;
}

.storefront-autoreg-home .product-card-skeleton .skeleton-content {
    min-width: 0;
    padding: 16px 0 0;
}

.storefront-autoreg-home .product-delivery,
.storefront-autoreg-home .product-rating,
.storefront-autoreg-home .product-sold {
    min-height: 20px;
    padding: 1px 6px;
    font-size: 11px;
}

.storefront-autoreg-home .product-card-meta .product-rating,
.storefront-autoreg-home .product-card-meta .product-sold {
    min-height: 16px;
    padding: 0;
    background: transparent;
    color: var(--autoreg-muted);
    font-size: 11px;
    font-weight: 600;
}

.storefront-autoreg-home .product-card-meta .product-rating,
.storefront-autoreg-home .product-card-meta .product-rating i,
.storefront-autoreg-home .product-card-meta .product-rating span {
    color: var(--color-amber-500);
}

.storefront-autoreg-home .product-card-meta .product-rating .rating-count {
    color: var(--autoreg-muted);
}

.storefront-autoreg-home .product-card-cta {
    display: none;
}

.storefront-autoreg-home .product-card-image .product-favorite-btn,
.storefront-autoreg-home .rv-product-image .rv-product-favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    color: var(--color-gray-400);
    opacity: 1;
    transform: none;
    z-index: 5;
    cursor: pointer;
}

.storefront-autoreg-home .product-card-image .product-favorite-btn i,
.storefront-autoreg-home .rv-product-image .rv-product-favorite-btn i {
    color: var(--color-gray-400);
    font-size: 15px;
    filter: none;
}

.storefront-autoreg-home .product-card-image .product-favorite-btn:hover,
.storefront-autoreg-home .rv-product-image .rv-product-favorite-btn:hover {
    background: #fff1f2;
    border-color: rgba(239, 68, 68, 0.18);
}

.storefront-autoreg-home .product-card-image .product-favorite-btn:hover i,
.storefront-autoreg-home .rv-product-image .rv-product-favorite-btn:hover i {
    color: var(--color-red-500);
}

.storefront-autoreg-home .product-card-image .product-favorite-btn.active,
.storefront-autoreg-home .rv-product-image .rv-product-favorite-btn.active {
    background: var(--color-red-100);
    border-color: rgba(239, 68, 68, 0.2);
}

.storefront-autoreg-home .product-card-image .product-favorite-btn.active i,
.storefront-autoreg-home .rv-product-image .rv-product-favorite-btn.active i {
    color: var(--color-red-500);
    filter: drop-shadow(0 1px 3px rgba(239, 68, 68, 0.22));
}

.storefront-autoreg-home .best-sellers-section,
.storefront-autoreg-home .recently-viewed-section {
    margin: 0 !important;
    padding: 0 !important;
}

.storefront-autoreg-home .recently-viewed-carousel-wrapper {
    margin: 0;
    position: relative;
}

.storefront-autoreg-home .recently-viewed-nav {
    display: none !important;
}

.storefront-autoreg-home .recently-viewed-carousel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 0;
    overflow: visible;
    scrollbar-width: auto;
}

.storefront-autoreg-home .rv-product-card-link {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    color: inherit;
    text-decoration: none !important;
}

.storefront-autoreg-home .rv-product-card-link:hover,
.storefront-autoreg-home .rv-product-card-link:focus,
.storefront-autoreg-home .rv-product-card-link:focus-visible {
    color: inherit !important;
    text-decoration: none !important;
}

.storefront-autoreg-home .products-load-more {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storefront-autoreg-home .btn-load-more {
    min-width: 190px;
    min-height: 46px;
    padding: 0 24px;
    border: 1px solid var(--autoreg-border);
    border-radius: 8px;
    background: var(--autoreg-surface);
    color: var(--autoreg-text);
    font-size: 15px;
    font-weight: 600;
}

.storefront-autoreg-home .btn-load-more:hover {
    border-color: var(--autoreg-accent);
    background: var(--autoreg-accent-soft);
    color: var(--color-gray-900);
}



.storefront-autoreg .breadcrumb-modern {
    color: rgba(255, 255, 255, 0.62);
}

.storefront-autoreg .breadcrumb-modern a,
.storefront-autoreg .breadcrumb-modern .current,
.storefront-autoreg .breadcrumb-modern .separator {
    color: inherit;
}

.storefront-autoreg .products-filter-section,
.storefront-autoreg .product-page__head,
.storefront-autoreg .product-page__panel,
.storefront-autoreg .product-buy,
.storefront-autoreg .product-plans-section,
.storefront-autoreg .product-order-section,
.storefront-autoreg .product-reviews-section,
.storefront-autoreg .product-content-tabs,
.storefront-autoreg .cart-page-header,
.storefront-autoreg .cart-summary-card,
.storefront-autoreg .cart-items-card,
.storefront-autoreg .cart-items-wrapper,
.storefront-autoreg .cart-summary,
.storefront-autoreg .cart-coupon-card,
.storefront-autoreg .cart-payment-card,
.storefront-autoreg .cart-actions-card,
.storefront-autoreg .cart-empty,
.storefront-autoreg .user-form-card {
    border: 0;
    border-radius: var(--autoreg-radius-l);
    background: var(--autoreg-surface);
    box-shadow: 0 4px 36px rgba(0, 0, 0, 0.07);
}

.storefront-autoreg .filter-select,
.storefront-autoreg .filter-input,
.storefront-autoreg .form-control,
.storefront-autoreg .order-input,
.storefront-autoreg .qty-input,
.storefront-autoreg .coupon-input,
.storefront-autoreg .review-select,
.storefront-autoreg .review-textarea {
    border: 0;
    border-radius: var(--autoreg-radius-m);
    background: var(--color-neutral-50);
    color: var(--color-neutral-900);
    box-shadow: none;
}

.storefront-autoreg .filter-select:focus,
.storefront-autoreg .filter-input:focus,
.storefront-autoreg .form-control:focus,
.storefront-autoreg .order-input:focus,
.storefront-autoreg .qty-input:focus,
.storefront-autoreg .coupon-input:focus,
.storefront-autoreg .review-select:focus,
.storefront-autoreg .review-textarea:focus {
    border: 0;
    background: var(--color-neutral-50);
    box-shadow: 0 0 0 2px rgba(143, 244, 81, 0.55);
}

/* Product Hero V3 styling lives entirely in mod/css/product-detail/01-hero.css
   (greenfield). Legacy hero-grid/white-text overrides removed so they no longer
   beat 01-hero.css in the cascade. */

.storefront-autoreg .product-detail-content {
    /* Match the hero→content gap (product-detail-page padding = 1.5rem) so the
       spacing between hero / tabs / reviews / order is even (was 30px → uneven). */
    gap: 24px;
    align-items: start;
}

.storefront-autoreg .product-detail-content > *,
.storefront-autoreg .product-plans-section {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.storefront-autoreg .product-plans-grid {
    gap: 10px;
}

.storefront-autoreg .product-plan-card {
    border: 0;
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-row);
    box-shadow: none;
}

.storefront-autoreg .product-plan-card.active {
    outline: 2px solid var(--autoreg-accent);
    background: var(--autoreg-accent-soft);
}

.storefront-autoreg .plan-card-image,
.storefront-autoreg .plan-card-image img,
.storefront-autoreg .plan-image-placeholder {
    border-radius: var(--autoreg-radius-m);
}

.storefront-autoreg .product-description-section,
.storefront-autoreg .selected-plan-description,
.storefront-autoreg .review-item,
.storefront-autoreg .order-form-card {
    border: 0;
    border-radius: var(--autoreg-radius-m);
    background: var(--color-neutral-50);
}

.storefront-autoreg .product-order-section {
    position: sticky;
    top: 18px;
}

.storefront-autoreg .qty-btn {
    border: 0;
    background: var(--color-neutral-120);
    color: var(--color-neutral-900);
}

.storefront-autoreg .order-summary,
.storefront-autoreg .stock-info-card {
    border: 0;
    border-radius: var(--autoreg-radius-m);
    background: var(--color-neutral-50);
}

.storefront-autoreg .cart-page-header {
    overflow: hidden;
}

.storefront-autoreg .cart-content {
    gap: 30px;
}

.storefront-autoreg .cart-summary-wrapper {
    position: sticky;
    top: 18px;
}

.storefront-autoreg .cart-items-header,
.storefront-autoreg .cart-summary-header,
.storefront-autoreg .cart-coupon-header {
    border-color: var(--autoreg-border);
    background: var(--color-neutral-50);
    color: var(--autoreg-text);
    font-weight: 700;
}

.storefront-autoreg .cart-item {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.06);
}

.storefront-autoreg .cart-item:hover {
    background: var(--autoreg-row);
}

.storefront-autoreg .cart-item-image {
    border-radius: var(--autoreg-radius-m);
    background: var(--color-neutral-50);
}

.storefront-autoreg .cart-item-image img {
    object-fit: contain;
}

.storefront-autoreg .cart-item-name,
.storefront-autoreg .cart-summary-value,
.storefront-autoreg .cart-item-final-price {
    color: var(--autoreg-text);
}

.storefront-autoreg .cart-item-plan,
.storefront-autoreg .cart-summary-label,
.storefront-autoreg .cart-empty-content p {
    color: var(--autoreg-muted);
}

.storefront-autoreg .cart-item-fields,
.storefront-autoreg .cart-coupon-input input {
    border: 0;
    border-radius: var(--autoreg-radius-m);
    background: var(--color-neutral-50);
}

.storefront-autoreg .btn-pay-balance,
.storefront-autoreg .btn-topup,
.storefront-autoreg .btn-login,
.storefront-autoreg .btn-browse-products,
.storefront-autoreg .btn-view-history,
.storefront-autoreg .btn-view-orders,
.storefront-autoreg .btn-refresh-prices,
.storefront-autoreg .btn-apply-coupon {
    border: 1px solid transparent;
    border-radius: var(--autoreg-radius-m);
    background: var(--autoreg-accent);
    color: var(--color-black);
    font-weight: 600;
}

.storefront-autoreg .btn-pay-balance:hover,
.storefront-autoreg .btn-topup:hover,
.storefront-autoreg .btn-login:hover,
.storefront-autoreg .btn-browse-products:hover,
.storefront-autoreg .btn-view-history:hover,
.storefront-autoreg .btn-view-orders:hover,
.storefront-autoreg .btn-refresh-prices:hover,
.storefront-autoreg .btn-apply-coupon:hover {
    background: var(--autoreg-accent-soft);
    border-color: var(--autoreg-accent);
    color: var(--color-black);
}

.storefront-autoreg .btn-clear-cart,
.storefront-autoreg .btn-remove-coupon,
.storefront-autoreg .cart-item-remove {
    border-radius: var(--autoreg-radius-m);
}

.storefront-autoreg .cart-page-header-bg {
    background: var(--autoreg-dark);
    background-image: url("../../../public/autoreg/img/bg.png");
    background-size: cover;
}

.storefront-autoreg .cart-page-header-icon {
    background: var(--autoreg-accent);
    color: var(--color-black);
}

.storefront-autoreg .user-form-card {
    max-width: 520px;
    margin-inline: auto;
    padding: 28px;
}

.storefront-autoreg .user-form-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--autoreg-text);
}

.storefront-autoreg .user-form-title p,
.storefront-autoreg .user-form-remind {
    color: var(--autoreg-muted);
}

.storefront-autoreg .social-login-divider span {
    background: var(--autoreg-surface);
}
.footer-modern,
.storefront-autoreg .footer-modern {
    margin-top: 56px;
    padding: 38px 0 34px;
    background: var(--color-neutral-925);
    color: var(--color-white);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 100vh 0 100vh var(--color-neutral-925);
}

.footer-modern::before,
.storefront-autoreg .footer-modern::before {
    display: none;
}

.storefront-autoreg-home .footer-modern {
    margin-top: 0;
}

.footer-modern-content,
.storefront-autoreg .footer-modern-content {
    padding: 0;
}

.footer-modern-widget,
.storefront-autoreg .footer-modern-widget {
    min-height: 0;
    margin: 0;
}

.footer-modern-widget--brand,
.storefront-autoreg .footer-modern-widget--brand {
    max-width: 470px;
}

.footer-modern-brand,
.storefront-autoreg .footer-modern-brand {
    display: grid;
    gap: 0;
}

.footer-modern-logo,
.storefront-autoreg .footer-modern-logo {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--color-white);
    text-decoration: none;
}

.footer-modern-grid,
.storefront-autoreg .footer-modern-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) repeat(3, minmax(148px, 0.46fr));
    align-items: flex-start;
    gap: 34px 54px;
    margin: 0;
}

.footer-modern-grid > [class*="col-"],
.storefront-autoreg .footer-modern-grid > [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    flex: none;
}

.footer-modern-logo img,
.storefront-autoreg .footer-modern-logo img {
    width: 35px;
    max-width: none;
    height: 35px;
    object-fit: contain;
}

.footer-modern-brandname,
.storefront-autoreg .footer-modern-brandname {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.footer-modern-desc,
.storefront-autoreg .footer-modern-desc {
    max-width: 390px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

.footer-modern-social,
.storefront-autoreg .footer-modern-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0;
}

.footer-tg,
.storefront-autoreg .footer-tg {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 16px 0 13px;
    border-radius: 10px;
    background: #1877aa; /* white text contrast 4.93 (was #229ed9, 3.02) */
    color: var(--color-white);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: filter 0.16s ease, transform 0.16s ease;
}

.footer-tg i,
.storefront-autoreg .footer-tg i {
    font-size: 17px;
    line-height: 1;
}

.footer-tg small,
.storefront-autoreg .footer-tg small {
    opacity: 0.94; /* 4.56 on #1877aa (0.82 gave 3.87) */
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.footer-tg:hover,
.storefront-autoreg .footer-tg:hover {
    color: var(--color-white);
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.footer-modern-title,
.storefront-autoreg .footer-modern-title {
    margin: 0 0 16px;
    padding: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.footer-modern-title::after,
.storefront-autoreg .footer-modern-title::after {
    display: none;
}

.footer-modern-links,
.storefront-autoreg .footer-modern-links {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-modern-links li,
.storefront-autoreg .footer-modern-links li {
    margin: 0;
}

.footer-modern-contact li,
.storefront-autoreg .footer-modern-contact li,
.footer-modern-links li a,
.storefront-autoreg .footer-modern-links li a {
    min-height: 24px;
    padding: 0;
    color: rgba(255, 255, 255, 0.68);
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: color 0.16s ease, transform 0.16s ease;
}

.footer-modern-links li a::before,
.storefront-autoreg .footer-modern-links li a::before {
    display: none;
}

.footer-modern-contact li:hover,
.storefront-autoreg .footer-modern-contact li:hover,
.footer-modern-links li a:hover,
.storefront-autoreg .footer-modern-links li a:hover {
    color: var(--autoreg-accent);
    background: transparent;
    transform: translateX(2px);
}

.footer-modern-copytext,
.storefront-autoreg .footer-modern-copytext {
    width: fit-content;
    max-width: 100%;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.autoreg-side-rails {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: var(--z-rail);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.autoreg-side-rail {
    --rail-bg: var(--autoreg-accent);
    --rail-bg-hover: var(--autoreg-accent-soft);
    --rail-text: #071004;
    --rail-shadow: rgba(103, 232, 62, 0.18);
    --rail-border: rgba(17, 24, 39, 0.08);
    width: 48px;
    min-height: 164px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    position: relative;
    border: 1px solid var(--rail-border);
    border-right: 0;
    border-radius: 18px 0 0 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 42%),
        var(--rail-bg);
    color: var(--rail-text);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.14),
        0 10px 26px var(--rail-shadow);
    text-decoration: none;
    outline: none;
    pointer-events: auto;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.autoreg-side-rail::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 1px;
    background: color-mix(in srgb, var(--rail-text) 14%, transparent);
}

.autoreg-help-rail {
    border-color: transparent;
    background: var(--rail-bg);
    box-shadow: 0 16px 34px rgba(143, 244, 81, 0.2);
}

.autoreg-help-rail::before {
    display: none;
}

.autoreg-side-rail--admin {
    --rail-bg: rgba(255, 255, 255, 0.96);
    --rail-bg-hover: var(--autoreg-accent-tint);
    --rail-text: var(--color-neutral-900);
    --rail-shadow: rgba(143, 244, 81, 0.22);
    --rail-border: transparent;
    border-color: transparent;
    min-height: 118px;
}

.autoreg-side-rail--admin::before {
    display: none;
}

.autoreg-side-rail__icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(7, 16, 4, 0.07);
}

.autoreg-side-rail__icon i {
    display: block;
    color: currentColor;
    font-size: 16px;
    line-height: 1;
    transform: none;
}

.autoreg-help-rail .autoreg-side-rail__icon i {
    font-size: 17px;
}

.autoreg-side-rail--admin .autoreg-side-rail__icon {
    background: var(--autoreg-accent);
    color: var(--color-neutral-900);
    box-shadow:
        inset 0 0 0 1px rgba(17, 17, 17, 0.08),
        0 6px 16px rgba(143, 244, 81, 0.28);
}

.autoreg-side-rail__label {
    display: inline-flex;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.autoreg-side-rail:focus-visible {
    background: var(--rail-bg-hover);
    color: var(--rail-text);
    border-color: color-mix(in srgb, var(--rail-border) 70%, var(--rail-text) 30%);
    box-shadow:
        0 20px 48px rgba(15, 23, 42, 0.18),
        0 12px 32px var(--rail-shadow);
    transform: translateX(-4px);
}

/* Under a hovering pointer only (decision 20-1): a tablet's tap leaves no tab slid out. */
@media (hover: hover) {
    .autoreg-side-rail:hover {
        background: var(--rail-bg-hover);
        color: var(--rail-text);
        border-color: color-mix(in srgb, var(--rail-border) 70%, var(--rail-text) 30%);
        box-shadow:
            0 20px 48px rgba(15, 23, 42, 0.18),
            0 12px 32px var(--rail-shadow);
        transform: translateX(-4px);
    }
}

.autoreg-side-rail img {
    width: 16px;
    height: 16px;
    display: block;
    object-fit: contain;
    transform: none;
}
@media (max-width: 1599px) and (min-width: 1200px) {
    .storefront-autoreg .header-content {
        display: flex;
    }

    .storefront-autoreg .header-logo {
        min-width: 0;
    }

    .storefront-autoreg .autoreg-logo-name {
        display: inline;
    }

    .storefront-autoreg .header-widget-group {
        width: auto;
    }

}

@media (max-width: 1199px) {
    .storefront-autoreg .header-content {
        min-height: 0;
        display: flex;
        gap: 12px;
    }

    .storefront-autoreg .header-logo {
        min-width: 0;
    }

    .storefront-autoreg .autoreg-logo-name,
    .storefront-autoreg .autoreg-header-action--about {
        display: none;
    }

    .storefront-autoreg .autoreg-header-action,
    .storefront-autoreg .autoreg-theme-widget,
    .storefront-autoreg .header-widget,
    .storefront-autoreg .autoreg-language__button {
        height: 40px;
    }

    .storefront-autoreg .header-widget,
    .storefront-autoreg .autoreg-theme-widget,
    .storefront-autoreg .header-widget[href*="client/profile"],
    .storefront-autoreg .header-widget[href*="client/login"] {
        min-width: 40px;
        width: 40px;
    }

    .storefront-autoreg .autoreg-language__button {
        min-width: 64px;
    }

    .storefront-autoreg .header-form,
    .storefront-autoreg .header-form input {
        height: 40px;
    }

    .storefront-autoreg .sknav-contact {
        display: none;
    }

    .storefront-autoreg .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .storefront-autoreg-home .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .storefront-autoreg-home .recently-viewed-carousel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* The home hero from 768 to 1199 px (owner 18.11, decision 4): the block kept the picture's proportion
   (1300 / 363) and grew lower than its text, so the title was cut at the top and the button at the bottom.
   Here its height follows the content, at least 290 px: the slides stand in one grid cell (the tallest
   slide sets the height, so the block does not jump between slides), the picture covers the taller box
   (object-fit: cover, cut at the sides, never stretched), and the API and supplier slides, whose text
   stood in a 40-90 px column here, keep it right of the picture's drawing (from 992 px; below that see the next block). The phone (≤767 px)
   and the desktop keep theirs. */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .autoreg-hero {
        aspect-ratio: auto;
        min-height: 290px;
    }

    .autoreg-hero__slides {
        position: relative;
        inset: auto;
        display: grid;
        min-height: 290px;
    }

    .autoreg-hero__slide {
        position: relative;
        inset: auto;
        grid-area: 1 / 1;
    }

    .autoreg-hero .autoreg-hero__content {
        padding-top: 32px;
        padding-bottom: 32px;
    }

    /* The API and supplier slides keep their text right of the picture's drawing, in proportion (632 of
       1300 px on the desktop): 632 px of padding left 40 px for the text at 768 px. */
    .autoreg-hero__slide--api .autoreg-hero__content,
    .autoreg-hero__slide--supplier .autoreg-hero__content {
        padding-left: 48.6%;
    }
}

/* From 768 to 991 px a column right of the drawing leaves the API and supplier slides 300 px of text, and the
   hero grew to 450-560 px for all slides. There these two slides take the phone's composition at the hero's
   width: the text centred over the faded picture, the «−15%» tag hanging above the title (the picture's own
   tag cannot follow a crop this tall). */
@media (min-width: 768px) and (max-width: 991.98px) {
    .autoreg-hero__slide--api .autoreg-hero__content,
    .autoreg-hero__slide--supplier .autoreg-hero__content {
        padding-left: 72px;
        padding-right: 72px;
        align-items: center;
        text-align: center;
    }

    .autoreg-hero__slide--api .autoreg-hero__bg,
    .autoreg-hero__slide--supplier .autoreg-hero__bg {
        opacity: 0.38;
    }

    .autoreg-hero__slide--hang-tag .autoreg-hero__tag {
        display: none;
    }

    .autoreg-hero__slide--hang-tag .autoreg-hero__content {
        justify-content: flex-start;
        padding-top: 0;
    }

    .autoreg-hero__slide--hang-tag .autoreg-hero__tag-m {
        display: block;
        flex: none;
        width: 58px;
        height: 58px;
        margin-bottom: 8px;
        overflow: visible;
    }
}

@media (max-width: 991px) {
    .storefront-autoreg .header-content {
        min-height: 64px;
        display: block;
        padding: 8px 0;
    }

    .storefront-autoreg .header-logo,
    .storefront-autoreg .autoreg-catalog-trigger,
    .storefront-autoreg .header-widget-group,
    .storefront-autoreg .autoreg-header-action {
        display: none;
    }

    .storefront-autoreg .header-media-group {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 48px;
        width: 100%;
    }

    .storefront-autoreg .autoreg-mobile-logo,
    .storefront-autoreg .autoreg-mobile-catalog {
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        line-height: 1;
    }

    .storefront-autoreg .autoreg-mobile-logo {
        justify-self: start;
        margin-right: auto;
    }

    .storefront-autoreg .autoreg-mobile-catalog {
        justify-self: start;
        position: relative;
        box-sizing: border-box;
        border: 1px solid transparent;
        border-radius: 16px;
        background: var(--color-neutral-75);
        color: var(--color-gray-650);
        box-shadow: none;
        touch-action: manipulation;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        transition:
            transform 120ms ease,
            background-color 160ms ease,
            border-color 160ms ease,
            box-shadow 160ms ease;
    }

    .storefront-autoreg .autoreg-mobile-catalog:hover {
        background: var(--color-slate-135);
        color: var(--autoreg-text);
    }

    .storefront-autoreg .autoreg-mobile-catalog.active {
        border-color: rgba(77, 184, 38, 0.58);
        background: var(--autoreg-control-active, var(--autoreg-accent-tint));
        color: var(--autoreg-text);
        box-shadow: 0 3px 10px rgba(55, 139, 25, 0.12);
    }

    .storefront-autoreg .autoreg-mobile-catalog:focus-visible {
        outline: none;
        border-color: rgba(77, 184, 38, 0.72);
        box-shadow: 0 0 0 4px rgba(83, 196, 43, 0.2);
    }

    .storefront-autoreg .autoreg-mobile-catalog:active {
        transform: scale(0.9);
        border-color: rgba(77, 184, 38, 0.78);
        background: var(--autoreg-control-active, var(--autoreg-accent-soft));
        box-shadow:
            0 0 0 4px rgba(83, 196, 43, 0.16),
            inset 0 2px 4px rgba(28, 74, 12, 0.16);
    }

    .storefront-autoreg .autoreg-mobile-logo img.logo-light {
        width: 36px;
        height: 36px;
        max-height: 36px;
        object-fit: contain;
    }

    .storefront-autoreg .autoreg-mobile-catalog .header-ic {
        width: 22px;
        height: 22px;
        max-width: 22px;
        max-height: 22px;
        object-fit: contain;
        transition: transform 120ms ease;
    }

    .storefront-autoreg .autoreg-mobile-catalog:active .header-ic {
        transform: scale(0.88);
    }

    .storefront-autoreg .header-mobile-actions {
        display: flex;
        align-items: center;
        justify-self: end;
        min-width: 0;
        height: 44px;
        gap: 8px;
    }

    .storefront-autoreg .header-user,
    .storefront-autoreg .header-src {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        border: 0;
        border-radius: 16px;
        background: var(--color-neutral-75);
        color: var(--color-gray-650);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: none;
    }

    .storefront-autoreg .header-user i,
    .storefront-autoreg .header-src i {
        width: auto;
        height: auto;
        font-size: 21px;
        line-height: 1;
        border-radius: 0;
        color: currentColor;
        background: transparent;
        text-shadow: none;
    }

    @media (prefers-reduced-motion: reduce) {
        .storefront-autoreg .autoreg-mobile-catalog,
        .storefront-autoreg .autoreg-mobile-catalog .header-ic {
            transition: none;
        }

        .storefront-autoreg .autoreg-mobile-catalog:active,
        .storefront-autoreg .autoreg-mobile-catalog:active .header-ic {
            transform: none;
        }
    }

    /* The open search: the button says «Отмена» (19.11, N24; the word is [hidden] until main.js shows it). */
    .storefront-autoreg .header-src.is-cancel {
        width: auto;
        flex: 0 0 auto;
        padding: 0 14px;
        color: var(--autoreg-text);
        font-size: var(--fs-14);
        font-weight: var(--fw-semibold);
    }

    .storefront-autoreg .header-src.is-cancel .ds-ic {
        display: none;
    }


    .storefront-autoreg .header-user:hover,
    .storefront-autoreg .header-src:hover {
        background: var(--color-slate-135);
        color: var(--autoreg-text);
        transform: none;
    }

    .storefront-autoreg .header-user:hover i,
    .storefront-autoreg .header-src:hover i {
        color: currentColor;
        background: transparent;
    }

    .storefront-autoreg .header-search-wrapper {
        position: absolute;
        z-index: 40;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        display: block;
        width: 100%;
        margin: 0;
        pointer-events: none;
    }

    .storefront-autoreg .header-search-wrapper .header-form {
        display: none;
        width: 100%;
        height: 48px;
        margin: 0;
        border: 1px solid rgba(15, 23, 42, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
        pointer-events: auto;
    }

    .storefront-autoreg .header-search-wrapper .header-form.active {
        display: flex;
    }

    .storefront-autoreg .header-search-wrapper .header-form input {
        height: 48px;
        font-size: 15px;
    }

    .storefront-autoreg .header-search-wrapper .header-form button[type="submit"] {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .storefront-autoreg .header-search-wrapper .search-autocomplete {
        pointer-events: auto;
    }

    .storefront-autoreg .autoreg-language--mobile .autoreg-language__button {
        min-width: 44px;
        max-width: 44px;
        height: 44px;
        padding: 0 10px;
        gap: 0;
        border-radius: 16px;
        box-sizing: border-box;
        font-size: 13px;
    }

    .storefront-autoreg .header-media-group .autoreg-language--mobile .autoreg-language__flag {
        width: 28px;
        height: 19px;
        flex: 0 0 28px;
        border-radius: 3px;
    }

    .storefront-autoreg .autoreg-language--mobile .autoreg-language__button i {
        display: none;
    }

    .storefront-autoreg .autoreg-language--mobile .autoreg-language__menu {
        position: fixed;
        left: 12px;
        right: 12px;
        top: 74px;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: calc(100vh - 92px);
        max-height: calc(100dvh - 92px);
        padding: 8px;
        overflow-y: auto;
        transform-origin: top center;
    }

    .storefront-autoreg .autoreg-language--mobile:not(.is-open) .autoreg-language__menu {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(6px) scale(var(--dm-dropdown-pre-scale, 0.97));
    }

    .storefront-autoreg .autoreg-language--mobile.is-open .autoreg-language__menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .storefront-autoreg .header-media-group .autoreg-language__item {
        min-height: 46px;
        padding: 0 10px;
        gap: 10px;
        border-radius: 9px;
        font-size: 14px;
    }

    .storefront-autoreg .header-media-group .autoreg-language__menu-flag {
        width: 32px;
        height: 22px;
        flex: 0 0 32px;
        border-radius: 3px;
    }

    .storefront-autoreg .navbar-part {
        display: none;
    }

    body.storefront-autoreg {
        padding-bottom: 0;
    }

    .footer-modern,
    .storefront-autoreg .footer-modern {
        padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px));
    }

    .storefront-autoreg .backtop {
        right: 28px;
        bottom: 102px;
        bottom: calc(102px + env(safe-area-inset-bottom, 0px));
        z-index: var(--z-backtop-mobile);
    }

    .storefront-autoreg .mobile-menu {
        left: max(10px, env(safe-area-inset-left, 0px));   /* clear of the notch in landscape (N17) */
        right: max(10px, env(safe-area-inset-right, 0px));
        bottom: max(8px, env(safe-area-inset-bottom, 0px));
        z-index: var(--z-mobile-menu);
        width: auto;
        height: 64px;
        padding: 6px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: center;
        justify-content: normal;
        gap: 2px;
        border: 1px solid rgba(17, 17, 17, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 -10px 34px rgba(17, 24, 39, 0.14);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .storefront-autoreg .mobile-menu a,
    .storefront-autoreg .mobile-menu button {
        width: 100%;
        min-width: 0;
        height: 52px;
        padding: 4px 2px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: #5f6368;
        appearance: none;
        -webkit-appearance: none;
        font-family: Montserrat, Arial, sans-serif;
        text-decoration: none;
        box-shadow: none;
        transition: background-color 0.16s ease, color 0.16s ease;
    }

    .storefront-autoreg .mobile-menu a.mobile-menu-active,
    .storefront-autoreg .mobile-menu button.mobile-menu-active,
    .storefront-autoreg .mobile-menu a.active,
    .storefront-autoreg .mobile-menu button.active {
        border-top: 0;
        background: rgba(143, 244, 81, 0.18);
        color: var(--autoreg-text);
    }

    @media (hover: hover) {
        .storefront-autoreg .mobile-menu a:hover,
        .storefront-autoreg .mobile-menu button:hover {
            border-top: 0;
            background: rgba(143, 244, 81, 0.18);
            color: var(--autoreg-text);
        }
    }

    .storefront-autoreg .mobile-menu__icon {
        width: 24px;
        height: 24px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 24px;
        color: currentColor;
    }

    .storefront-autoreg .mobile-menu__icon svg {
        /* The site's Lucide icon (dm_ui_icon in views/client/nav.php): its size and line are the component's. */
        display: block;
    }

    .storefront-autoreg .mobile-menu__label {
        max-width: 100%;
        display: block;
        color: currentColor;
        font-size: var(--fs-12);      /* owner 19.11 (13-1): as written, 12 px, semibold, every language */
        font-weight: var(--fw-semibold);
        line-height: 1.05;
        letter-spacing: 0;
        text-align: center;
        text-transform: none;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .storefront-autoreg .mobile-menu .mobile-menu__ticket-badge,
    .storefront-autoreg .mobile-menu .mobile-menu__cart-badge {
        position: absolute;
        top: 1px;
        right: auto;
        left: 50%;
        z-index: 2;
        width: auto;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        border: 2px solid var(--color-white);
        border-radius: 999px;
        background: var(--color-red-badge);
        color: var(--color-white);
        font-size: var(--fs-11); /* 10 px before (owner 18.11, N20) */
        font-weight: 800;
        line-height: 1;
        text-shadow: none;
        box-shadow: 0 4px 10px rgba(255, 71, 87, 0.24);
        transform: translateX(7px);
        pointer-events: none;
    }

    .storefront-autoreg .mobile-menu a i,
    .storefront-autoreg .mobile-menu button i {
        display: none;
    }

    .storefront-autoreg .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .storefront-autoreg-home .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .storefront-autoreg-home .recently-viewed-carousel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .storefront-autoreg .product-detail-content,
    .storefront-autoreg .product-page__top {
        grid-template-columns: 1fr;
    }

    .storefront-autoreg .product-order-section {
        position: static;
    }

    .storefront-autoreg .client-sidebar {
        position: static;
    }

    .storefront-autoreg .data-filter-grid,
    .storefront-autoreg .ticket-filter-grid,
    .storefront-autoreg .affiliate-filter-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .storefront-autoreg .data-filter-actions,
    .storefront-autoreg .ticket-filter-actions,
    .storefront-autoreg .affiliate-filter-buttons {
        grid-column: 1 / -1;
    }

}
@media (max-width: 767px) {
    :root {
        --autoreg-page-gutter: max(12px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); /* N17 */
    }

    .storefront-autoreg .container {
        width: calc(100% - var(--autoreg-page-gutter) * 2) !important; /* 24 px, or the side insets (N17) */
    }

    .autoreg-hero {
        height: auto;
        min-height: 350px;
        aspect-ratio: auto;
        margin-top: 26px;
        border-radius: 22px;
    }

    .autoreg-hero__content {
        max-width: none;
        padding: 34px 22px 50px;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    .autoreg-hero__title {
        max-width: 330px;
        font-size: 28px;
        line-height: 1.12;
    }

    .autoreg-hero__text {
        max-width: 330px;
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.48;
    }

    .autoreg-hero__slide--datamoll-promo .autoreg-hero__content,
    .autoreg-hero__slide--api .autoreg-hero__content,
    .autoreg-hero__slide--supplier .autoreg-hero__content,
    .autoreg-hero__slide--catalog .autoreg-hero__content {
        padding: 30px 22px 58px;
        align-items: center;
        justify-content: flex-start;
        text-align: center;
    }

    /* The picture is faded and cropped here, so the «−15%» tag hangs from the top edge instead. */
    .autoreg-hero__tag {
        display: none;
    }

    .autoreg-hero__slide--hang-tag .autoreg-hero__content {
        padding-top: 0;
    }

    .autoreg-hero__tag-m {
        display: block;
        flex: none;
        width: 58px;
        height: 58px;
        margin-bottom: 8px;
        overflow: visible;
    }

    .autoreg-hero__slide--datamoll-promo .autoreg-hero__title,
    .autoreg-hero__slide--catalog .autoreg-hero__title {
        max-width: 330px;
        font-size: 24px;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .autoreg-hero__slide--datamoll-promo .autoreg-hero__text,
    .autoreg-hero__slide--catalog .autoreg-hero__text {
        max-width: 330px;
        margin-top: 14px;
        font-size: 14px;
        line-height: 1.42;
    }

    .autoreg-hero__slide--datamoll-promo .autoreg-hero__btn {
        min-height: 38px;
        height: 38px;
        margin-top: 16px;
        padding: 0 18px;
        font-size: 14px;
    }

    .autoreg-hero__slide--supplier .autoreg-hero__btn {
        margin-top: 16px;
        transform: translateY(-6px);
    }

    .autoreg-hero__bg {
        opacity: 0.38;
        background-position: 60% center;
    }

    /* The hero on a phone (owner 19.11, decision 18-1): no arrows and no autoplay; a swipe or a dot turns
       the slide (src/js/10-hero.js), the vertical move stays the page's scroll. */
    .autoreg-hero__side {
        display: none;
    }

    .autoreg-hero__slides {
        touch-action: pan-y;
    }

    .autoreg-hero__dots {
        position: absolute;
        z-index: 3;
        left: 0;
        right: 0;
        bottom: var(--space-8);
        display: flex;
        justify-content: center;
    }

    .storefront-autoreg .search-autocomplete {
        top: calc(100% + 8px);
        max-height: min(360px, calc(100vh - 112px));
        border-radius: 12px;
    }

    .storefront-autoreg .search-autocomplete-results {
        max-height: min(304px, calc(100vh - 166px));
    }

    .storefront-autoreg .search-autocomplete-item {
        min-height: 58px;
        padding: 9px 12px;
        gap: 10px;
    }

    .storefront-autoreg .search-autocomplete-image {
        width: 40px;
        height: 40px;
        border-radius: 9px;
    }

    .storefront-autoreg .search-autocomplete-meta {
        gap: 6px;
        font-size: 11px;
    }

    .storefront-autoreg .search-autocomplete-discount {
        padding: 1px 5px;
        font-size: 10px;
    }

    .storefront-autoreg .products-section-header,
    .storefront-autoreg .cart-page-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .storefront-autoreg .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 16px;
    }

    .storefront-autoreg-home .feature-part > .container {
        --home-section-gap: 68px;
        gap: var(--home-section-gap);
    }

    /* The categories are one row of tiles on a phone (decision 17-1): the next section follows 32 px under the
       row; the 68 px between sections was the room under the old two-column grid of tiles. */
    .storefront-autoreg-home .feature-part > .container > .home-categories-section {
        margin-bottom: calc(var(--space-32) - var(--home-section-gap));
    }

    .storefront-autoreg-home .feature-part {
        padding-bottom: 56px;
    }

    .storefront-autoreg-home .autoreg-social {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 28px;
    }

    .storefront-autoreg-home .products-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .storefront-autoreg-home .recently-viewed-carousel {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .storefront-autoreg-home .autoreg-social-chip {
        flex: 1 1 calc(50% - 5px);
        max-width: 100%;
        min-height: 54px;
        height: 54px;
        padding: 0 16px;
        gap: 12px;
        border-radius: 14px;
    }

    .storefront-autoreg-home .autoreg-social-chip__icon,
    .storefront-autoreg-home .category-card-icon,
    .storefront-autoreg-home .autoreg-social-chip__icon img,
    .storefront-autoreg-home .autoreg-social-chip__icon .autoreg-category-icon,
    .storefront-autoreg-home .autoreg-social-chip__icon .autoreg-category-icon-img {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        border-radius: 9px;
    }

    .storefront-autoreg-home .autoreg-social-chip__icon i,
    .storefront-autoreg-home .autoreg-social-chip__icon .autoreg-category-icon i {
        font-size: 18px;
    }

    .storefront-autoreg-home .product-card-cta {
        min-height: 44px;
        font-size: 14px;
    }

    .storefront-autoreg .product-card-image,
    .storefront-autoreg .product-card-image img,
    .storefront-autoreg .product-image-placeholder {
        width: 70px;
        height: 70px;
    }

    .storefront-autoreg-home .product-card,
    .storefront-autoreg-home .rv-product-card {
        min-height: 204px;
        padding: 12px;
    }

    .storefront-autoreg-home .product-card-link,
    .storefront-autoreg-home .rv-product-card-link {
        gap: 0;
    }

    .storefront-autoreg-home .product-card-content {
        padding: 14px 0 0;
        gap: 7px;
    }

    .storefront-autoreg-home .product-card-image {
        width: 70px;
        height: 70px;
        padding: 0;
        aspect-ratio: 1;
    }

    .storefront-autoreg-home .product-card-image img,
    .storefront-autoreg-home .product-image-placeholder,
    .storefront-autoreg-home .rv-product-image img,
    .storefront-autoreg-home .rv-image-placeholder {
        width: 100%;
        height: 100%;
    }

    .storefront-autoreg-home .product-card-skeleton {
        min-height: 204px;
        padding: 12px;
        display: block;
    }

    .storefront-autoreg-home .product-card-skeleton .skeleton-image {
        width: 70px;
        height: 70px;
    }

    .storefront-autoreg .inner-section,
    .storefront-autoreg .profile-part,
    .storefront-autoreg .support-tickets-page,
    .storefront-autoreg .affiliate-page {
        padding: 24px 0 54px !important;
    }

    .storefront-autoreg .card-modern-header,
    .storefront-autoreg .card-modern-body,
    .storefront-autoreg .data-card-header,
    .storefront-autoreg .orders-header,
    .storefront-autoreg .ticket-card-header,
    .storefront-autoreg .affiliate-page-header,
    .storefront-autoreg .affiliate-table-header,
    .storefront-autoreg .affiliate-table-body,
    .storefront-autoreg .affiliate-withdraw-header,
    .storefront-autoreg .affiliate-withdraw-body {
        padding: 16px;
    }

    .storefront-autoreg .wallet-stats-grid,
    .storefront-autoreg .profile-info-grid,
    .storefront-autoreg .affiliate-mini-stats,
    .storefront-autoreg .ticket-stats-wrapper,
    .storefront-autoreg .affiliate-stats-grid,
    .storefront-autoreg .data-filter-grid,
    .storefront-autoreg .ticket-filter-grid,
    .storefront-autoreg .affiliate-filter-row {
        grid-template-columns: 1fr;
    }

    .storefront-autoreg .security-setting-item,
    .storefront-autoreg .session-item,
    .storefront-autoreg .data-card-header,
    .storefront-autoreg .orders-header,
    .storefront-autoreg .ticket-card-header,
    .storefront-autoreg .affiliate-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .storefront-autoreg .orders-search-form,
    .storefront-autoreg .data-filter-actions,
    .storefront-autoreg .ticket-filter-actions,
    .storefront-autoreg .affiliate-filter-buttons,
    .storefront-autoreg .custom-modal-footer,
    .storefront-autoreg .ticket-modal-footer {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .storefront-autoreg .shop-widget-btn,
    .storefront-autoreg .security-update-btn,
    .storefront-autoreg .btn-save,
    .storefront-autoreg .form-btn,
    .storefront-autoreg .create-invoice-btn-enhanced,
    .storefront-autoreg .crypto-submit-btn,
    .storefront-autoreg .btn-filter-search,
    .storefront-autoreg .btn-filter-reset,
    .storefront-autoreg .btn-load-more,
    .storefront-autoreg .btn-create-ticket,
    .storefront-autoreg .affiliate-submit-btn,
    .storefront-autoreg .affiliate-filter-btn,
    .storefront-autoreg .custom-btn {
        width: 100%;
    }

    .storefront-autoreg .favorite-item {
        grid-template-columns: 76px minmax(0, 1fr);
        align-items: flex-start;
    }

    .storefront-autoreg .news-page-header,
    .storefront-autoreg .single-banner {
        padding: 24px 0 28px;
    }

    .storefront-autoreg .news-page-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .storefront-autoreg .news-section-header,
    .storefront-autoreg .article-share,
    .storefront-autoreg .article-tags {
        align-items: flex-start;
        flex-direction: column;
    }

    .storefront-autoreg .news-search-form {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .storefront-autoreg .article-nav {
        flex-direction: column;
    }

    .storefront-autoreg .article-nav-item {
        width: 100%;
    }

    .footer-modern,
    .storefront-autoreg .footer-modern {
        margin-top: 46px;
        padding: 32px 0 calc(104px + env(safe-area-inset-bottom, 0px));
    }

    .storefront-autoreg-home .footer-modern {
        margin-top: 0;
    }

    .footer-modern-content,
    .storefront-autoreg .footer-modern-content {
        padding-bottom: 0;
    }

    .footer-modern-grid,
    .storefront-autoreg .footer-modern-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 24px;
    }

    .footer-modern-widget--brand,
    .storefront-autoreg .footer-modern-widget--brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .footer-modern-logo img,
    .storefront-autoreg .footer-modern-logo img {
        width: 35px;
        height: 35px;
    }

    .footer-modern-brandname,
    .storefront-autoreg .footer-modern-brandname {
        font-size: 20px;
    }

    .footer-modern-desc,
    .storefront-autoreg .footer-modern-desc {
        max-width: 100%;
        margin-top: 14px;
        font-size: 13px;
    }

    .footer-modern-title,
    .storefront-autoreg .footer-modern-title {
        margin-bottom: 14px;
        font-size: 16px;
    }

    .footer-modern-links,
    .storefront-autoreg .footer-modern-links {
        gap: 11px;
    }

    .footer-modern-links li a,
    .storefront-autoreg .footer-modern-links li a {
        font-size: 13px;
    }

    .footer-modern-copytext,
    .storefront-autoreg .footer-modern-copytext {
        margin-top: 18px;
        font-size: 13px;
    }

    .autoreg-side-rails {
        display: none;
    }
}

/* Text in a field on a phone (below 768 px) is 16 px: iOS does not zoom the page into it (owner 19.11,
   decision 12); a computer keeps the size above. */
@media (max-width: 767.98px) {
    .storefront-autoreg .header-search-wrapper .header-form input { font-size: var(--fs-16); }
}
@media (max-width: 420px) {
    body.storefront-autoreg {
        min-width: 0;
    }

    .footer-modern-grid,
    .storefront-autoreg .footer-modern-grid {
        grid-template-columns: 1fr;
    }

    .storefront-autoreg .mobile-menu {
        left: max(8px, env(safe-area-inset-left, 0px));   /* clear of the notch (N17) */
        right: max(8px, env(safe-area-inset-right, 0px));
        height: 62px;
        padding: 5px;
        border-radius: 17px;
    }

    .storefront-autoreg .backtop {
        right: 24px;
        bottom: 98px;
        bottom: calc(98px + env(safe-area-inset-bottom, 0px));
    }

    .storefront-autoreg .mobile-menu a,
    .storefront-autoreg .mobile-menu button {
        height: 52px;
        border-radius: 13px;
    }

    .storefront-autoreg .mobile-menu__icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }

    .autoreg-hero__title {
        max-width: 300px;
        font-size: 26px;
        line-height: 1.12;
    }

    .autoreg-hero__text {
        max-width: 302px;
        font-size: 14px;
        line-height: 1.42;
    }

    .storefront-autoreg .products-grid {
        gap: 16px 12px;
    }

    .storefront-autoreg-home .products-grid {
        grid-template-columns: 1fr;
    }

    .storefront-autoreg-home .recently-viewed-carousel {
        grid-template-columns: 1fr;
    }

    .storefront-autoreg-home .product-card,
    .storefront-autoreg-home .rv-product-card {
        min-height: 204px;
    }

    .storefront-autoreg .product-card-title {
        font-size: 13px;
    }
}
/* ============================================================
   The phone's shared parts (owner 19.11, decisions 16-1, 17-1, 20-1), one place for the
   storefront and the cabinet; shown on /client/ds; values only through mod/css/ds/tokens.css.
   • .ds-press / .ds-pressed / .ds-navigating — the answer to a touch (initPressFeedback,
     src/js/96-press-feedback.js): darker and a little smaller under the finger, the link's
     icon a loader until the next page;
   • .ds-actionbar — the sticky «price · Buy» bar above the bottom menu (dm_ui_actionbar(),
     src/js/97-action-bar.js);
   • .ds-chiprow > .ds-chip — a row of tiles that scrolls sideways (categories).
   ============================================================ */

/* ---------- The answer to a touch (20-1) ----------
   :root:not(#ds-press-off) lifts the press over each element's own resting look (its
   background shorthand, its transform) without !important: a press is a state of every
   element, not a component of its own. The tone is a layer over the background
   (background-image), the size the independent scale property, so neither replaces the
   element's own colour or transform. */
:root:not(#ds-press-off) .ds-press {
    transition: scale var(--dur-press) var(--ease-standard), background-image 0s linear;
}

:root:not(#ds-press-off) .ds-pressed,
:root:not(#ds-press-off) .ds-navigating {
    background-image: linear-gradient(var(--sf-press), var(--sf-press));
}

:root:not(#ds-press-off) .ds-pressed {
    scale: var(--press-scale);
}

:root:not(#ds-press-off) .ds-pressed.ds-press--wide {
    scale: var(--press-scale-wide);
}

.ds-navigating [data-ds-press-hidden] {
    display: none !important; /* !important: hide — the link's own icon while its loader turns */
}

.ds-press__spin {
    flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    :root:not(#ds-press-off) .ds-press {
        transition: none;
    }

    :root:not(#ds-press-off) .ds-pressed,
    :root:not(#ds-press-off) .ds-pressed.ds-press--wide {
        scale: none;
    }
}

/* ---------- The sticky action bar (16-1) ---------- */
.ds-actionbar {
    display: none;
}

@media (max-width: 767.98px) {
    /* [data-ds-actionbar] and the page's class: the bar stands wherever its helper is called, also as a child
       of a page block that sizes its children (the product page: .product-detail-content > * is 100% wide). */
    .storefront-autoreg .ds-actionbar[data-ds-actionbar] {
        position: fixed;
        z-index: var(--z-actionbar);
        left: var(--sf-menu-left);
        right: var(--sf-menu-right);
        bottom: var(--sf-above-menu);
        width: auto;
        max-width: none;
        margin: 0;
        display: flex;
        align-items: center;
        gap: var(--space-12);
        padding: var(--space-8) var(--space-8) var(--space-8) var(--space-16);
        border: 1px solid var(--sf-border);
        border-radius: var(--radius-16);
        background: var(--sf-surface);
        box-shadow: var(--sf-shadow-bar);
        opacity: 0;
        visibility: hidden;
        transform: translateY(var(--space-16));
        transition: transform var(--dur-dialog) var(--ease-dialog), opacity var(--dur-dialog) var(--ease-dialog), visibility 0s linear var(--dur-dialog);
    }

    .storefront-autoreg .ds-actionbar[data-ds-actionbar].is-shown {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: transform var(--dur-dialog) var(--ease-dialog), opacity var(--dur-dialog) var(--ease-dialog), visibility 0s linear 0s;
    }

    .ds-actionbar__sum {
        display: grid;
        flex: 0 0 auto;
        min-width: 0;
        line-height: var(--lh-tight);
    }

    .ds-actionbar__price {
        color: var(--sf-text);
        font-size: var(--fs-18);
        font-weight: var(--fw-heavy);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
    }

    .ds-actionbar__note {
        color: var(--sf-text-subtle);
        font-size: var(--fs-12);
        font-weight: var(--fw-semibold);
        white-space: nowrap;
    }

    .ds-actionbar__btn {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 48px;
        padding: 0 var(--space-16);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-8);
        border: 0;
        border-radius: var(--radius-12);
        background-color: var(--sf-accent-fill);
        color: var(--sf-accent-ink);
        font: inherit;
        font-size: var(--fs-15);
        font-weight: var(--fw-heavy);
        line-height: var(--lh-tight);
        cursor: pointer;
    }

    .ds-actionbar__btn:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

    .ds-actionbar__btn :is(svg, .ds-ic) {
        flex: 0 0 auto;
    }

    /* While the bar is shown: «Наверх» stays above it, the page keeps room under its last line (the footer's
       room for the bottom menu plus the bar) and a focused element scrolls above the bar, not under it. */
    .ds-actionbar-on .storefront-autoreg .backtop {
        bottom: calc(var(--sf-above-menu) + 80px);
    }

    html.ds-actionbar-on {
        scroll-padding-bottom: calc(var(--sf-above-menu) + 80px);
    }

    .ds-actionbar-on .storefront-autoreg .footer-modern {
        padding-bottom: calc(112px + 80px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .storefront-autoreg .ds-actionbar[data-ds-actionbar],
    .storefront-autoreg .ds-actionbar[data-ds-actionbar].is-shown {
        transform: none;
        transition: opacity 0s linear, visibility 0s linear;
    }
}

/* ---------- A row of tiles that scrolls sideways (17-1) ----------
   On a phone the categories of the home page and of the catalog are one row of the home
   page's chip (its colours, 44 px high, the icon 28 px); the row runs to the screen's right
   edge, so the next tile shows that there is more. A tile is .ds-chip, its icon .ds-chip__ic;
   the chosen one .active. */
@media (max-width: 767.98px) {
    .storefront-autoreg .ds-chiprow {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: var(--space-8);
        margin-right: calc(-1 * var(--autoreg-page-gutter));
        padding: var(--space-2) var(--autoreg-page-gutter) var(--space-2) 0;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .storefront-autoreg .ds-chiprow::-webkit-scrollbar {
        display: none;
    }

    .storefront-autoreg .ds-chiprow .ds-chip {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        height: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0 var(--space-14) 0 var(--space-8);
        display: inline-flex;
        align-items: center;
        gap: var(--space-8);
        border: 1px solid transparent;
        border-radius: var(--radius-12);
        background-color: var(--color-slate-75);
        color: var(--color-slate-600);
        font-size: var(--fs-14);
        font-weight: var(--fw-semibold);
        line-height: var(--lh-tight);
        white-space: nowrap;
        text-decoration: none;
        transform: none;
        scroll-snap-align: start;
    }

    .storefront-autoreg .ds-chiprow .ds-chip.active {
        border-color: var(--color-lime-200);
        background-color: var(--color-lime-100);
        color: var(--color-gray-800);
    }

    .storefront-autoreg .ds-chiprow .ds-chip__ic,
    .storefront-autoreg .ds-chiprow .ds-chip__ic img {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }
}
/* mod/css/product-card-v5.css */
/* ============================================================
   Datamoll · Product Card V5 «Мини-баннер» — drop-in override
   ------------------------------------------------------------
   Подключать ПОСЛЕ mod/css/product.css:
     <link rel="stylesheet" href="<?= base_url('mod/css/product-card-v5.css?v=1') ?>">

   Изоляция: все правила под .product-card.pc-v5 — карточка получает
   класс pc-v5 в обоих рендерерах (JS createElement + PHP
   datamoll_render_product_card). Карусели сохраняют rv-product-card
   только как внешнюю обёртку для существующего скролла.
   Откат = убрать <link> и класс pc-v5.

   Акценты берутся из темы магазина: var(--primary) / var(--primary-rgb).
   Семейство шрифта наследуется от страницы; ритм и насыщенность карточки V5
   задаются здесь, чтобы не зависеть от контейнера страницы.
   ============================================================ */

/* Карточка: full-bleed баннер сверху, контент с полем */
.product-card.pc-v5 {
    --pc-card-radius: 12px;
    container-type: inline-size;
    line-height: 26px;
    padding: 0;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--pc-card-radius);
    background: var(--color-white);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.storefront-autoreg .product-card.pc-v5,
.storefront-autoreg-home .product-card.pc-v5,
.storefront-autoreg-home .rv-product-card.product-card.pc-v5 {
    --pc-card-radius: 12px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--pc-card-radius);
    background: var(--color-white);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

@media (hover: hover) {
    .product-card.pc-v5:hover,
    .storefront-autoreg .product-card.pc-v5:hover,
    .storefront-autoreg-home .product-card.pc-v5:hover,
    .storefront-autoreg-home .rv-product-card.product-card.pc-v5:hover {
        border-color: var(--color-gray-200) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
        transform: translateY(-1px);
    }
}

.product-card.pc-v5 .product-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* === Баннер (переопределяет .product-card-image) === */
.product-card.pc-v5 .product-card-image {
    position: relative;
    width: 100%;
    height: 104px;
    padding-top: 0;                       /* убираем aspect-ratio хак базы */
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    isolation: isolate;
    background: var(--pc-tint, linear-gradient(135deg, #f6f8fb, #eef2f7));
}

/* Тон-фон применяется для иконки/плейсхолдера; реальное фото — обложка */
.product-card.pc-v5 .product-card-image.has-product-image {
    background: var(--color-gray-100);
}

.product-card.pc-v5 .product-card-image.has-product-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Крупный логотип-вотермарк — обыгрывает пустой фон */
.product-card.pc-v5 .product-card-image .pc-watermark {
    position: absolute;
    right: -24px;
    bottom: auto;
    top: 4px;
    left: auto;
    width: 132px;
    height: 132px;
    object-fit: contain;
    opacity: 0.14;
    transform: rotate(-12deg);
    transform-origin: center;
    pointer-events: none;
    border-radius: 0;
    z-index: 1;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

@media (hover: hover) {
    .product-card.pc-v5:hover .product-card-image .pc-watermark {
        transform: rotate(-12deg) scale(1.06);
        opacity: 0.17;
    }
}

/* Белая плитка с иконкой сервиса — слева, по центру */
.product-card.pc-v5 .product-card-image .pc-tile {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--color-white);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.product-card.pc-v5 .product-card-image .pc-tile img {
    position: static;
    inset: auto;
    width: 60%;
    height: 60%;
    object-fit: contain;
    border-radius: 0;
    transition: none;
}

.product-card.pc-v5 .product-card-image .pc-tile img.pc-tile-img--custom {
    width: auto;
    height: auto;
    max-width: 64%;
    max-height: 64%;
    border-radius: 9px;
}

@media (hover: hover) {
    .product-card.pc-v5:hover .product-card-image .pc-tile img {
        transform: none;                      /* отменяем hover-zoom базы */
    }
}

/* Чип скидки — поверх верхнего-левого угла плитки */
.product-card.pc-v5 .product-card-image .pc-disc {
    position: absolute;
    top: 9px;
    left: 9px;
    right: auto;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    height: 21px;
    padding: 0 8px;
    border-radius: 7px;
    background: var(--sf-danger); /* white text on #ff3b3b was 3.5:1 (owner 18.11: 4.5:1 for all small text) */
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 5px 12px rgba(255, 59, 59, 0.30);
}

/* Чип категории — на «стекле», справа от плитки */
.product-card.pc-v5 .product-card-image .pc-cat {
    position: absolute;
    left: 82px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 98px);
    height: 23px;
    padding: 0 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.80);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    color: var(--color-gray-800);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.product-card.pc-v5 .product-card-image .pc-cat i {
    flex: 0 0 auto;
    font-size: 0.62rem;
    color: #9aa6b6;
}

.product-card.pc-v5 .product-card-image .pc-cat__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card.pc-v5 .product-card-image .pc-cat__line,
.product-card.pc-v5 .product-card-image .pc-cat__joiner {
    display: inline;
}

/* В каталоге карточки шире, а чип категории может уходить под быстрые действия.
   Держим действия вертикально и резервируем место справа только на этой странице. */
.catalog-page .product-card.pc-v5 .product-card-image .pc-cat {
    max-width: calc(100% - 136px);
}

/* Быстрые действия — избранное + корзина в одном компактном блоке */
.product-card.pc-v5 .product-card-actions {
    position: absolute;
    top: 11px;
    right: 11px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-2px) scale(0.96);
    transform-origin: top right;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.catalog-page .product-card.pc-v5 .product-card-actions {
    flex-direction: column;
    gap: 7px;
}

/* A touch screen shows the buttons all the time (below); hover reveals them only where a pointer hovers
   (decision 20-1: a tap no longer leaves a card «hovered»). */
@media (hover: hover) {
    .product-card.pc-v5:hover .product-card-actions {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
}

.product-card.pc-v5:focus-within .product-card-actions,
.product-card.pc-v5 .product-card-actions.has-active,
.product-card.pc-v5 .product-card-actions:has(.product-favorite-btn.active),
.product-card.pc-v5 .product-card-actions:has(.product-restock-card-btn.is-subscribed) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.product-card.pc-v5 .product-favorite-btn,
.product-card.pc-v5 .product-cart-btn,
.product-card.pc-v5 .product-restock-card-btn {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.88);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.product-card.pc-v5 .product-card-actions .product-favorite-btn,
.product-card.pc-v5 .product-card-actions .product-cart-btn,
.product-card.pc-v5 .product-card-actions .product-restock-card-btn,
.storefront-autoreg-home .product-card.pc-v5 .product-card-image .product-card-actions .product-favorite-btn,
.storefront-autoreg-home .product-card.pc-v5 .product-card-image .product-card-actions .product-cart-btn,
.storefront-autoreg-home .product-card.pc-v5 .product-card-image .product-card-actions .product-restock-card-btn {
    position: relative;
    top: auto;
    right: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.product-card.pc-v5 .product-favorite-btn i,
.product-card.pc-v5 .product-cart-btn i,
.product-card.pc-v5 .product-restock-card-btn i {
    font-size: 0.92rem;
    /* The icon of an icon-only button needs 3:1 against its white circle (mobile check 18.11, N5): the
       storefront's small-text grey (4.6:1), not #9ca3af (2.5:1). */
    color: var(--sf-text-subtle);
    filter: none;
}

/* The phone (mobile check 18.11, N5): the card's icon buttons grow to 36 px and take touches 44 px wide. */
@media (max-width: 767.98px) {
    .product-card.pc-v5 .product-favorite-btn,
    .product-card.pc-v5 .product-cart-btn,
    .product-card.pc-v5 .product-restock-card-btn {
        width: 36px;
        height: 36px;
    }

    .product-card.pc-v5 .product-favorite-btn::after,
    .product-card.pc-v5 .product-cart-btn::after,
    .product-card.pc-v5 .product-restock-card-btn::after {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 50%;
    }
}

.product-card.pc-v5 .product-favorite-btn.active {
    background: var(--color-red-100);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.storefront-autoreg-home .product-card.pc-v5 .product-card-image .product-favorite-btn.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.product-card.pc-v5 .product-favorite-btn.active i {
    color: var(--color-red-500);
    filter: none;
}

.product-card.pc-v5 .product-cart-btn.cart-just-added {
    background: var(--color-lime-110);
}

@media (hover: hover) {
    .product-card.pc-v5 .product-cart-btn:hover {
        background: var(--color-lime-110);
    }
}

.product-card.pc-v5 .product-cart-btn.cart-just-added i {
    color: var(--color-green-600);
}

@media (hover: hover) {
    .product-card.pc-v5 .product-cart-btn:hover i {
        color: var(--color-green-600);
    }
}

.product-card.pc-v5 .product-restock-card-btn.is-subscribed,
.product-card.pc-v5 .product-restock-card-btn.restock-just-added {
    background: var(--color-lime-110);
}

@media (hover: hover) {
    .product-card.pc-v5 .product-restock-card-btn:hover {
        background: var(--color-lime-110);
    }
}

.product-card.pc-v5 .product-restock-card-btn.is-subscribed i,
.product-card.pc-v5 .product-restock-card-btn.restock-just-added i {
    color: var(--color-green-600);
}

@media (hover: hover) {
    .product-card.pc-v5 .product-restock-card-btn:hover i {
        color: var(--color-green-600);
    }
}

.product-card.pc-v5 .product-cart-btn.needs-options i {
    color: var(--color-slate-500);
}

@media (hover: hover) {
    .product-card.pc-v5 .product-favorite-btn:hover i {
        color: var(--color-red-500);
    }
}

@media (hover: hover) {
    .product-card.pc-v5:hover .product-favorite-btn,
    .product-card.pc-v5:hover .product-cart-btn,
    .product-card.pc-v5:hover .product-restock-card-btn {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: scale(1);
    }
}

.product-card.pc-v5:focus-within .product-favorite-btn,
.product-card.pc-v5:focus-within .product-cart-btn,
.product-card.pc-v5:focus-within .product-restock-card-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

@media (hover: hover) {
    .storefront-autoreg-home .product-card.pc-v5:hover .product-card-image .product-favorite-btn,
    .storefront-autoreg-home .product-card.pc-v5:hover .product-card-image .product-cart-btn,
    .storefront-autoreg-home .product-card.pc-v5:hover .product-card-image .product-restock-card-btn {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: scale(1);
    }
}

.storefront-autoreg-home .product-card.pc-v5:focus-within .product-card-image .product-favorite-btn,
.storefront-autoreg-home .product-card.pc-v5:focus-within .product-card-image .product-cart-btn,
.storefront-autoreg-home .product-card.pc-v5:focus-within .product-card-image .product-restock-card-btn {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
}

.product-card.pc-v5 .product-cart-btn.cart-just-added,
.product-card.pc-v5 .product-restock-card-btn.restock-just-added {
    animation: pc-card-action-pop 560ms cubic-bezier(0.34, 1.36, 0.64, 1);
}

.product-card.pc-v5 .product-cart-btn.cart-just-added::after,
.product-card.pc-v5 .product-restock-card-btn.restock-just-added::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: inherit;
    border: 2px solid rgba(132, 245, 70, 0.55);
    animation: pc-card-action-ring 560ms ease-out both;
}

@keyframes pc-card-action-pop {
    0% { transform: scale(0.86); }
    55% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes pc-card-action-ring {
    0% {
        opacity: 0.8;
        transform: scale(0.82);
    }
    100% {
        opacity: 0;
        transform: scale(1.28);
    }
}

/* Скрываем базовый бейдж скидки на изображении — у нас свой .pc-disc */
.product-card.pc-v5 .product-card-image > .product-discount-badge {
    display: none;
}

/* === Контент === */
.product-card.pc-v5 .product-card-content {
    padding: 14px 16px 16px;
    gap: 0.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card.pc-v5 .product-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    min-height: 5.6em;                    /* 4 строки как в макете */
    min-height: 4lh;                      /* four lines at the language's own line height: vi takes 1.35, and
                                             5.6em (4 × 1.4) showed the top of a fifth line (19.11, N8) */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;              /* a long word (an e-mail) breaks instead of being cut (audit 18.11, E11) */
}

/* Цена в одну строку (текущая + зачёркнутая рядом) */
.product-card.pc-v5 .product-card-price {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.product-card.pc-v5 .product-card-price .product-price-row {
    display: contents;                    /* распрямляем вложенную обёртку базы */
}

.product-card.pc-v5 .product-price-current,
.product-card.pc-v5 .product-price-range {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0;
}

.product-card.pc-v5 .product-price-original {
    font-size: 0.8rem;
}

/* Бейдж скидки в строке цены не нужен (он на баннере) */
.product-card.pc-v5 .product-card-price .product-discount-badge {
    display: none;
}

/* Мета в одну строку: рейтинг/продажи слева, точный остаток справа.
   Единицы остаются в локализованной подсказке обоих рендереров. */
.product-card.pc-v5 .product-card-meta {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--color-slate-125);
    font-size: 0.8rem;
}

.product-card.pc-v5 .product-card-meta .product-rating,
.product-card.pc-v5 .product-card-meta .product-sold,
.product-card.pc-v5 .product-card-meta .product-delivery {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: 3px;
    height: 24px;
    min-height: 24px;
    line-height: 1;
    padding: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
    vertical-align: middle;
}

.product-card.pc-v5 .product-card-meta .product-rating i,
.product-card.pc-v5 .product-card-meta .product-sold i,
.product-card.pc-v5 .product-card-meta .product-rating span,
.product-card.pc-v5 .product-card-meta .product-sold span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.product-card.pc-v5 .product-card-meta .product-rating i {
    color: var(--color-amber-500);
    font-size: 0.85rem;
    width: 1em;
    height: 1em;
}

.product-card.pc-v5 .product-card-meta .product-rating > span:not(.rating-count) {
    color: var(--color-gray-800);
    font-size: 0.82rem;
    font-weight: 700;
}

.product-card.pc-v5 .product-card-meta .product-rating .rating-count {
    color: var(--color-slate-500); /* contrast 4.76 (was #94a3b8, 2.56) */
    font-size: 0.8rem;
    font-weight: 600;
}

.product-card.pc-v5 .product-card-meta .product-sold {
    flex: 0 0 auto;
    min-width: 0;
    color: var(--color-neutral-450);
    font-size: 0.82rem;
    font-weight: 700;
}

.product-card.pc-v5 .product-card-meta .product-sold i {
    color: var(--color-neutral-450);
    font-size: 0.78rem;
    width: 1em;
    height: 1em;
}

.product-card.pc-v5 .product-card-meta .product-sold span {
    color: var(--color-neutral-550); /* contrast 5.33 (was #8a8a8a, 3.45) */
}

.product-card.pc-v5 .product-card-meta .product-delivery {
    flex: 0 0 auto;
    margin-left: auto;
    gap: 4px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
}

/* Доставка: instant — зелёная капсула из макета, order — нейтральный серый */
.product-card.pc-v5 .product-card-meta .product-delivery.delivery-instant {
    background: var(--color-lime-110);
    color: var(--color-green-700); /* contrast 4.58 on the pill (was #16a34a, 3.01) */
}

.product-card.pc-v5 .product-card-meta .product-delivery.delivery-instant i {
    color: var(--color-green-600);
}

.product-card.pc-v5 .product-card-meta .product-delivery.delivery-order,
.product-card.pc-v5 .product-card-meta .product-delivery.delivery-out-of-stock {
    background: var(--color-slate-110);
    color: var(--sf-text-subtle); /* #64748b was 4.2:1 on this grey (owner 18.11: the cabinet's grey) */
}

.product-card.pc-v5 .product-card-meta .product-delivery.delivery-order i,
.product-card.pc-v5 .product-card-meta .product-delivery.delivery-out-of-stock i {
    color: var(--color-slate-400);
}

.product-card.pc-v5 .product-card-meta .product-delivery.delivery-out-of-stock i {
    font-size: 0.64rem;
}

/* === Сетка: 4 в ряд (как сейчас), адаптив === */
.products-grid {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch devices have no reliable hover discovery. Keep every available card
   action visible: cart for purchasable items, restock for sold-out items and
   favorite in both states. The width fallback also covers responsive QA and
   browsers that do not expose pointer capabilities correctly. */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
    .product-card.pc-v5 .product-card-actions {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card.pc-v5 .product-card-image {
        height: 96px;
    }
    .product-card.pc-v5 .product-card-image .pc-cat {
        display: none !important;
    }
}

/* Размер самой карточки важнее viewport: узкие колонки есть и на desktop. */
@container (max-width: 205px) {
    .product-card.pc-v5 .product-card-content {
        padding-right: 8px;
        padding-left: 8px;
    }

    .product-card.pc-v5 .product-card-meta {
        gap: 3px;
    }

    .product-card.pc-v5 .product-card-meta .product-rating,
    .product-card.pc-v5 .product-card-meta .product-rating > span:not(.rating-count),
    .product-card.pc-v5 .product-card-meta .product-sold,
    .product-card.pc-v5 .product-card-meta .product-delivery {
        font-size: 11px;
        gap: 2px;
    }

    .product-card.pc-v5 .product-card-meta .product-rating i,
    .product-card.pc-v5 .product-card-meta .product-sold i,
    .product-card.pc-v5 .product-card-meta .product-delivery i {
        font-size: 10px;
    }

    .product-card.pc-v5 .product-card-meta .product-delivery {
        padding-right: 4px;
        padding-left: 4px;
    }

    .product-card.pc-v5 .product-card-meta .product-rating .rating-count {
        display: none;                    /* на узких прячем счётчик отзывов */
    }
}

/* На самых узких двухколоночных экранах числа важнее декоративных иконок. */
@container (max-width: 155px) {
    .product-card.pc-v5 .product-card-meta .product-delivery {
        padding-right: 2px;
        padding-left: 2px;
    }

    .product-card.pc-v5 .product-card-meta .product-delivery i,
    .product-card.pc-v5 .product-card-meta .product-sold i {
        display: none;
    }
}
/* mod/css/catalog.css */
/* ============================================================
   CATALOG — sidebar layout, aligned with the homepage style.
   Light, clean, green accents, Montserrat. Sticky left filter
   rail (categories + nested subcategories + price + delivery),
   right toolbar + 3-up product grid.
   Loaded AFTER autoreg-theme.css, scoped to .catalog-page.
   ============================================================ */

.catalog-page {
    background: var(--color-slate-50);
    padding: 0 0 72px;
    min-height: calc(100vh - 200px);
}

/* Hidden legacy filter controls that products-filter.js binds to */
.catalog-legacy-controls { display: none !important; }

/* ---------- Light page header ---------- */
.catalog-head {
    padding: 16px 0 20px;
    scroll-margin-top: 92px;
}

/* A long path wraps between crumbs, never inside one (audit 18.11, E10: vi «Trang / chủ»);
   the current page is cut with an ellipsis when it alone is wider than the line. */
.catalog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    row-gap: 4px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-slate-400);
}

.catalog-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-slate-500);
    text-decoration: none;
    transition: color 0.2s ease;
}

.catalog-breadcrumb a:hover { color: var(--color-slate-600); }
.catalog-breadcrumb .sep { color: var(--color-slate-500); }
.catalog-breadcrumb .current { color: var(--color-slate-600); }
.catalog-breadcrumb a,
.catalog-breadcrumb .current { white-space: nowrap; }
.catalog-breadcrumb .current { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* Title + subtitle on one line — title left, subtitle right (fills the width, cuts height) */
.catalog-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* Page-level toolbar on the right of the title row */
.catalog-head-tools {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.catalog-head-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: var(--color-slate-500);
}
.catalog-head-count b {
    display: inline-block;
    color: var(--color-slate-800);
    font-weight: 800;
    line-height: 1;
}

.catalog-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
    color: var(--color-slate-800);
}

/* Variant B — green accent bar instead of an icon badge */
.catalog-title__bar {
    flex: 0 0 auto;
    width: 5px;
    height: 30px;
    border-radius: 3px;
    background: var(--autoreg-accent, #8ff451);
}

/* Segment/collection landing — subtitle under the title */
.catalog-title-wrap { display: flex; flex-direction: column; gap: 7px; }
.catalog-collection-sub {
    margin: 0 0 0 17px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-slate-400);
}

.catalog-page .section-badge {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    line-height: 1;
    background: var(--color-lime-100);
    color: var(--color-green-600);
}

.catalog-subtitle {
    margin: 0;
    max-width: 420px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--color-slate-400);
    text-align: right;
}

/* ---------- Layout: sidebar + main ---------- */
.catalog-layout {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.catalog-main {
    overflow-anchor: none;
}

.catalog-aside {
    position: sticky;
    top: 93px;
    align-self: start;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---------- Filter card ---------- */
.filter-card {
    flex: 0 0 auto;
    background: var(--color-white);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 28px rgba(15, 23, 42, 0.04);
    padding: 8px;
}

.filter-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 12px 10px;
}

.filter-card__head h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-slate-500);
}

/* Category list */
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cat-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 9px 12px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-slate-600);
    cursor: pointer;
    text-align: left;
    transform: translateX(0);
    transition:
        background-color 0.24s ease,
        color 0.24s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .cat-item:hover { background: var(--color-slate-75); }
}

.cat-item.active {
    background: var(--color-lime-100);
    color: var(--color-lime-900);
    transform: translateX(2px);
}

.cat-item__ic {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--color-slate-75);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-item.active .cat-item__ic { background: var(--color-white); transform: scale(1.03); }
.cat-item__ic img { width: 18px; height: 18px; object-fit: contain; }

.cat-item__ic .all-dots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    width: 14px;
    height: 14px;
}
.cat-item__ic .all-dots span { background: var(--color-green-600); border-radius: 2px; }

.cat-item__label,
.cat-sub__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-item__label {
    flex: 1 1 auto;
}

.cat-item__cnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 29px;
    height: 23px;
    margin-left: auto;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--color-slate-100);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: var(--color-slate-570); /* contrast ~5 (was #7c8ba1) */
    font-variant-numeric: tabular-nums;
    transition: background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}
.cat-item.active .cat-item__cnt {
    background: var(--color-white);
    color: var(--color-green-650);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}

/* Nested subcategories with a guide line */
.cat-subs {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    max-height: 0;
    margin: 0 0 0 28px;
    padding-left: 13px;
    overflow: hidden;
    border-left: 2px solid #edf0f4;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
        max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        margin 0.38s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease,
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0s linear 0.38s;
}

.cat-subs.open {
    max-height: var(--cat-subs-height, 640px);
    margin-top: 3px;
    margin-bottom: 7px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.cat-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 7px 13px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-slate-500);
    cursor: pointer;
    transform: translateX(0);
    transition:
        background-color 0.24s ease,
        color 0.24s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .cat-sub:hover { background: var(--color-slate-75); color: var(--color-slate-800); }
}
.cat-sub.active { background: #f1fae8; color: var(--color-green-700); transform: translateX(3px); }

.cat-sub__label {
    flex: 1 1 auto;
}

.cat-sub__cnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 25px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-slate-75);
    color: var(--color-slate-570); /* contrast ~5 (was #94a3b8) */
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

@media (hover: hover) {
    .cat-sub:hover .cat-sub__cnt {
        background: var(--color-white);
        color: var(--color-slate-500);
    }
}

.cat-sub.active .cat-sub__cnt {
    background: var(--color-white);
    color: var(--color-green-650);
    box-shadow: 0 3px 10px rgba(22, 163, 74, 0.1);
}

/* Generic filter block (price, delivery) */
.filter-divider { height: 1px; background: #f1f4f8; margin: 6px 12px; }

.filter-block { padding: 4px 12px 12px; }

.filter-block__label {
    display: block;
    margin: 8px 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-slate-400);
}

.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-row input {
    width: 100%;
    height: 40px;
    border: 0;
    background: var(--color-slate-75);
    border-radius: 10px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-slate-800);
}

.price-row input::placeholder { color: var(--color-slate-370); font-weight: 500; }
.price-row input:focus { outline: none; box-shadow: 0 0 0 2px rgba(140, 255, 63, 0.45); }
.price-row .dash { color: var(--color-slate-300); font-weight: 700; }

/* Delivery toggle (instant only) */

.switch {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    height: 23px;
    border-radius: 999px;
    background: var(--color-slate-200);
    transition: background 0.2s ease;
}

.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

/* ---------- Main column ---------- */
.catalog-main__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.catalog-main__count {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-slate-500);
}
.catalog-main__count b { color: var(--color-slate-800); font-weight: 800; }

/* Sort pill */
.cat-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 44px;
    box-sizing: border-box;
    padding: 0 14px;
    gap: 8px;
    border-radius: 11px;
    background: var(--color-white);
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.cat-field--select {
    display: grid;
    grid-template-columns: auto minmax(148px, 1fr);
    column-gap: 16px;
    align-items: center;
    min-width: 310px;
    padding: 0 46px 0 18px;
    cursor: pointer;
}

.cat-field:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
.cat-field:focus-within { border-color: var(--color-slate-200); box-shadow: 0 3px 10px rgba(15, 23, 42, 0.07); }
/* The select itself draws no outline: the keyboard ring goes on its box (audit 18.11, E06). */
.cat-field:has(select:focus-visible) { outline: 3px solid var(--color-green-700); outline-offset: 2px; }

.catalog-page .catalog-head-tools .cat-field--select {
    box-shadow: 0 0 14px rgba(15, 23, 42, 0.08);
}

.catalog-page .catalog-head-tools .cat-field--select:hover,
.catalog-page .catalog-head-tools .cat-field--select:focus-within {
    box-shadow: 0 0 16px rgba(15, 23, 42, 0.1);
}

.cat-field__label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    height: 42px;
    line-height: 42px;
    color: var(--color-slate-500);
    white-space: nowrap;
    cursor: pointer;
}

.cat-field select {
    width: 100%;
    min-width: 0;
    height: 42px;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 42px;
    color: var(--color-slate-800);
    cursor: pointer;
    padding: 0;
    transform: translateY(0);
}

.cat-field--select::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-slate-400);
    border-bottom: 2px solid var(--color-slate-400);
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

/* Grid: V5 product card spec uses four cards per desktop row. */
.catalog-main .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1024px) {
    .catalog-main .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Product card polish ---------- */
/* Price: keep current + struck original on ONE line so sale cards
   don't get taller than the rest (home stacks them; catalog keeps inline). */
.catalog-page .product-card-price {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-page .product-discount-badge {
    background: var(--color-red-450) !important;
    color: var(--color-white) !important;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(255, 59, 59, 0.28);
}
.catalog-page .product-price-row .product-discount-badge { display: none; }

/* ---------- Pagination ---------- */
.catalog-page .seo-pagination { margin-top: 36px; }
.catalog-page .pagination { display: flex; gap: 8px; padding: 0; list-style: none; }

.catalog-page .page-item .page-link {
    appearance: none;
    box-sizing: border-box;
    cursor: pointer;
    width: 40px;
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: var(--color-white);
    color: var(--color-slate-600);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.catalog-page .page-item--control .page-link {
    width: 84px;
    min-width: 84px;
    padding: 0 12px;
}

.catalog-page .page-item--gap .page-link {
    cursor: default;
    background: transparent;
    box-shadow: none;
    color: var(--color-slate-500);
}

.catalog-page .page-item.active .page-link {
    cursor: default;
}

.catalog-page .page-item:not(.page-item--gap) .page-link:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08); }
.catalog-page .page-item.active .page-link { background: var(--color-lime-100); color: var(--color-gray-800); box-shadow: inset 0 0 0 1px var(--color-lime-200); }

/* ---------- Category SEO content ---------- */
.catalog-seo-panel {
    margin-top: 64px;
    padding: 0;
    color: var(--color-slate-850);
    letter-spacing: 0;
}

.catalog-seo-panel__intro {
    max-width: 1040px;
}

.catalog-seo-panel__intro h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: 0;
    color: var(--color-slate-850);
}

.catalog-seo-panel__intro p {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-slate-530);
}

.catalog-seo-panel__intro a {
    color: #19803d;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.catalog-seo-panel__intro span {
    display: inline-flex;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-green-700);
}

.catalog-seo-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.catalog-seo-point {
    min-width: 0;
    padding-left: 18px;
    border-left: 3px solid var(--color-lime-430);
}

.catalog-seo-point strong {
    display: block;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4;
    color: var(--color-slate-850);
}

.catalog-seo-point p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-slate-530);
}

.catalog-seo-related {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    margin-top: 36px;
    padding: 24px 0;
    border-top: 1px solid rgba(53, 74, 106, 0.1);
    border-bottom: 1px solid rgba(53, 74, 106, 0.1);
}

.catalog-seo-guides {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(53, 74, 106, 0.1);
}

.catalog-seo-guides--standalone {
    margin-top: 36px;
    border-top: 1px solid rgba(53, 74, 106, 0.1);
}

.catalog-seo-guides > strong {
    color: var(--color-slate-850);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
}

.catalog-seo-guides__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    min-width: 0;
}

.catalog-seo-guides__links a {
    color: #19803d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: underline;
    text-decoration-color: rgba(25, 128, 61, 0.3);
    text-underline-offset: 4px;
}

.catalog-seo-guides__links a:hover {
    color: var(--color-green-600);
    text-decoration-color: currentColor;
}

.catalog-seo-related > strong,
.catalog-seo-faq h3 {
    color: var(--color-slate-850);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
}

.catalog-seo-related__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    min-width: 0;
}

.catalog-seo-related__links a,
.catalog-seo-related__current {
    display: inline-flex;
    align-items: center;
    color: var(--color-green-750);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.5;
    text-decoration: underline;
    text-decoration-color: rgba(22, 118, 59, 0.32);
    text-underline-offset: 4px;
}

.catalog-seo-related__current {
    color: var(--color-slate-850);
    font-weight: 750;
    text-decoration: none;
    border-bottom: 2px solid var(--color-lime-400);
}

.catalog-seo-related__links a:hover,
.catalog-seo-related__links a:focus-visible {
    color: #0f9f45;
    text-decoration-color: currentColor;
}

.catalog-seo-faq {
    max-width: 1040px;
    margin-top: 32px;
}

.catalog-seo-faq h3 {
    margin: 0 0 22px;
}

.catalog-seo-faq details {
    border-bottom: 1px solid rgba(53, 74, 106, 0.1);
}

.catalog-seo-faq summary {
    cursor: pointer;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-slate-850);
}

.catalog-seo-faq p {
    margin: -4px 0 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-slate-530);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .catalog-layout { grid-template-columns: minmax(0, 1fr); }
    .catalog-aside { position: static; }
    .catalog-main .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .catalog-seo-points { grid-template-columns: 1fr; gap: 20px; }
    .catalog-seo-related { grid-template-columns: 1fr; gap: 14px; }
    .catalog-seo-guides { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 768px) {
    .catalog-title {
        display: grid;
        grid-template-columns: 5px minmax(0, 1fr);
        align-items: stretch;
        column-gap: 14px;
        font-size: 23px;
        line-height: 1.06;
        max-width: 100%;
    }
    .catalog-title__bar {
        align-self: stretch;
        height: auto;
        min-height: 30px;
    }
    .catalog-main .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .catalog-seo-panel { margin-top: 48px; }
    .catalog-seo-panel__intro h2 { font-size: 23px; }
    .catalog-seo-panel__intro p { font-size: 14px; line-height: 1.65; }
    .catalog-seo-points { margin-top: 24px; }
    .catalog-seo-related { margin-top: 28px; padding: 20px 0; }
    .catalog-seo-guides { padding: 20px 0; }
    .catalog-seo-guides--standalone { margin-top: 28px; }
    .catalog-seo-related__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
    }
    .catalog-seo-guides__links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
    }
    .catalog-seo-faq { margin-top: 26px; }
    .catalog-seo-faq h3 { margin-bottom: 18px; }
    .catalog-seo-faq summary { padding-top: 15px; padding-bottom: 15px; font-size: 14px; }
}

@media (max-width: 420px) {
    .catalog-seo-related__links,
    .catalog-seo-guides__links { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .cat-item, .cat-item__ic, .cat-subs, .cat-sub, .cat-field, .switch, .switch::after, .catalog-page .page-item .page-link { transition: none; }
}

/* Text in a field on a phone (below 768 px) is 16 px: iOS does not zoom the page into it (owner 19.11,
   decision 12); a computer keeps the size above. */
@media (max-width: 767.98px) {
    .storefront-autoreg .cat-field select { font-size: var(--fs-16); }
}

/* The categories on a phone are one row (owner 19.11, decision 17-1: .ds-chiprow, public/autoreg/src/css/
   99-responsive/50-phone-components.css): the card around them steps back, the row runs to the screen's edge,
   the open parent's subcategories stand in the row right after it. */
@media (max-width: 767.98px) {
    .catalog-aside .filter-card { padding: 0; border-radius: 0; background: transparent; box-shadow: none; }
    .catalog-aside .filter-card__head { display: none; }
    .ds-chiprow > .cat-subs { display: none; }
    .ds-chiprow > .cat-subs.open { display: contents; }
}
