/* 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;
    }
}
/* 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-detail/product-detail.bundle.css */
/* 01-hero.css */
/* ============================================================================
   PRODUCT DETAIL · HEADER (01-hero.css)
   ----------------------------------------------------------------------------
   One full-width card (canvas «Страница товара»): the green part carries the
   category sign tilted in the corner, the product icon (96px) beside the title,
   white action buttons top-right (the title flows around them), rating, stock
   and sold counters; «Characteristics» follow on white (16-characteristics.css).
   Markup: views/client/product/hero.php. Zero !important.
   ============================================================================ */

/* tokens */
.product-hero-v3{
  --h-ink:var(--color-slate-800); --h-muted:var(--color-slate-500);
  --h-acc:var(--color-lime-400); --h-acc-deep:var(--color-green-600);
  --h-banner:linear-gradient(135deg,#e9fbdc 0%,#f5fbee 100%);
  --h-card:var(--color-white); --h-shadow:0 4px 36px rgba(0,0,0,.07);
  --h-btn:var(--color-white); --h-btn-ink:var(--color-slate-800); --h-btn-shadow:0 4px 12px rgba(15,23,42,.08);
  --h-star:var(--color-star); --h-star-empty:var(--color-slate-240); --h-star-outline:var(--color-slate-300); --h-fire:#f97316; --h-danger:var(--color-red-500);
}

/* outline icons of the product page (libs/product-page-ui.php) */
.pd-ic{display:block;flex:0 0 auto}

/* section: light, dense top spacing */
.product-hero-v3{
  background:transparent;
  border-bottom:0;
  padding:14px 0 0;
}
.product-hero-v3 .container{position:relative}

/* ── breadcrumbs ─────────────────────────────────────────────────────── */
.product-hero-v3 .breadcrumb-modern{
  display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  margin-bottom:14px;font-size:13px;font-weight:600;color:var(--h-muted);
}
.product-hero-v3 .breadcrumb-modern a{color:var(--h-muted);display:inline-flex;align-items:center;gap:6px;transition:color .15s}
.product-hero-v3 .breadcrumb-modern a:hover{color:var(--h-ink)}
.product-hero-v3 .breadcrumb-modern .separator{color:var(--h-muted)}
.product-hero-v3 .breadcrumb-modern .current{color:var(--h-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:46ch}

/* ── the card ────────────────────────────────────────────────────────── */
.product-hero-v3 .product-hero-main{
  display:block;
  background:var(--h-card);border:0;border-radius:20px;overflow:hidden;
  box-shadow:var(--h-shadow);
}

/* green part: icon | title, actions, counters */
.product-hero-v3 .product-hero-banner{
  position:relative;overflow:hidden;
  background:var(--h-banner);
  padding:24px;min-height:0;
  display:grid;grid-template-columns:96px minmax(0,1fr);gap:22px;align-items:center;
}
.product-hero-v3 .product-hero-watermark{
  position:absolute;right:-12px;bottom:-78px;
  font-size:200px;font-weight:900;letter-spacing:-.05em;line-height:.8;
  color:var(--h-acc-deep);opacity:.10;transform:rotate(-12deg);pointer-events:none;user-select:none;
  /* slow «breathing», off for reduced motion */
  animation:heroWatermarkFloat 7s ease-in-out infinite;
}
/* the category sign peeks out from the bottom-right corner, as on catalog cards */
.product-hero-v3 img.product-hero-watermark{
  width:230px;height:230px;font-size:0;object-fit:contain;opacity:.13;top:auto;bottom:-82px;right:-26px;
}
@keyframes heroWatermarkFloat{0%{transform:rotate(-12deg) translateY(0)}50%{transform:rotate(-12deg) translateY(-9px)}100%{transform:rotate(-12deg) translateY(0)}}
@media (prefers-reduced-motion:reduce){.product-hero-v3 .product-hero-watermark{animation:none}}

/* product icon: the image itself, no tile */
.product-hero-v3 .product-hero-image{position:relative;z-index:1;width:96px;height:96px;margin:0;max-width:none;display:block}
.product-hero-v3 .product-hero-icon{
  display:block;width:96px;height:96px;border-radius:22px;object-fit:contain;
  filter:drop-shadow(0 10px 18px rgba(15,23,42,.14));
}
.product-hero-v3 .product-image-placeholder{
  position:static;width:96px;height:96px;border-radius:22px;display:grid;place-items:center;
  background:var(--color-white);color:var(--h-acc-deep);font-size:32px;font-weight:900;letter-spacing:-.04em;
  box-shadow:0 10px 22px rgba(15,23,42,.14);
}
/* discount chip over the icon's corner, the same as the catalog card's .pc-disc */
.product-hero-v3 .product-hero-discount{
  position:absolute;z-index:2;top:-8px;left:-8px;
  display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:7px;
  background:var(--sf-danger);color:var(--color-white);font-size:12px;font-weight:800;letter-spacing:0;
  box-shadow:0 5px 12px rgba(255,59,59,.30);
}

/* title, actions and counters */
.product-hero-v3 .product-hero-info{position:relative;z-index:1;min-width:0;padding:0;background:transparent;display:block;color:var(--h-ink)}
.product-hero-v3 .product-header-actions{
  float:right;position:static;display:grid;grid-auto-flow:column;grid-auto-columns:40px;gap:8px;
  margin:0 0 6px 18px;
}
.product-hero-v3 .product-hero-action{
  width:40px;height:40px;border-radius:12px;padding:0;
  background:var(--h-btn);border:0;color:var(--h-btn-ink);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:var(--h-btn-shadow);opacity:1;position:static;text-decoration:none;
  transition:transform .16s,background-color .16s,color .16s,box-shadow .16s;
}
.product-hero-v3 .product-hero-action i{color:var(--h-btn-ink);font-size:15px;transition:transform .16s,color .16s}
.product-hero-v3 .product-hero-action:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,23,42,.12)}
.product-hero-v3 .product-hero-action:active{transform:translateY(0) scale(.94)}
/* states */
.product-hero-v3 .product-api-doc-btn:hover,
.product-hero-v3 .product-restock-btn:hover,
.product-hero-v3 .product-affiliate-share-btn:hover{background:var(--h-acc)}
.product-hero-v3 .product-api-doc-btn:hover i,
.product-hero-v3 .product-restock-btn:hover i,
.product-hero-v3 .product-affiliate-share-btn:hover i{color:#0d1f06}
.product-hero-v3 .product-favorite-btn:hover{background:var(--color-red-75)}
.product-hero-v3 .product-favorite-btn:hover i{color:var(--h-danger)}
.product-hero-v3 .product-affiliate-share-btn{position:relative;gap:0}
.product-hero-v3 .affiliate-rate-badge-small{
  position:absolute;top:-7px;right:-6px;min-width:20px;height:16px;padding:0 5px;border-radius:999px;
  background:var(--h-acc);color:var(--color-lime-950);font-size:var(--fs-11);font-weight:800;line-height:16px;text-align:center;border:0;
}

/* Guard: catalog-card rules (`.storefront-autoreg .product-favorite-btn`, product.css
   `transform:scale(.8)`) load after this file; keep every header action a 40px
   rounded square at (0,3,0). Position stays free for the affiliate badge. */
.product-hero-v3 .product-header-actions .product-hero-action{
  width:40px;height:40px;border-radius:12px;
  background:var(--h-btn);box-shadow:var(--h-btn-shadow);
}
.product-hero-v3 .product-favorite-btn{transform:none}
.product-hero-v3 .product-header-actions .product-favorite-btn:hover{background:var(--color-red-75)}
.product-hero-v3 .product-header-actions .product-api-doc-btn:hover,
.product-hero-v3 .product-header-actions .product-restock-btn:hover,
.product-hero-v3 .product-header-actions .product-affiliate-share-btn:hover{background:var(--h-acc)}
/* favourite: thin outline by default, filled red when chosen (favorite.js toggles .active) */
.product-hero-v3 .product-header-actions .product-favorite-btn i{font-weight:400;filter:none;-webkit-filter:none;text-shadow:none;box-shadow:none}
.product-hero-v3 .product-header-actions .product-favorite-btn.active{background:var(--h-danger)}
.product-hero-v3 .product-header-actions .product-favorite-btn.active i{color:var(--color-white);font-weight:900}
/* restock subscribed: filled green bell (restock-notify.php toggles .is-subscribed) */
.product-hero-v3 .product-header-actions .product-restock-btn.is-subscribed{background:var(--h-acc-deep)}
.product-hero-v3 .product-header-actions .product-restock-btn.is-subscribed i{color:var(--color-white);font-weight:900;filter:none;-webkit-filter:none;text-shadow:none;box-shadow:none}

.product-hero-v3 .product-hero-title{
  color:var(--h-ink);font-size:clamp(20px,2.3vw,27px);font-weight:800;
  line-height:1.2;letter-spacing:-.015em;margin:0;text-shadow:none;text-wrap:pretty;
}
.product-hero-v3 .product-hero-stats{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-top:12px;font-size:13.5px;font-weight:600;color:var(--h-muted)}
.product-hero-v3 .product-hero-stats strong{color:var(--h-ink);font-weight:800}

/* rating: outlines before any review; filled stars with a half overlay after */
.product-hero-v3 .product-rating-light{display:inline-flex;align-items:center;gap:6px;margin:0}
.product-hero-v3 .product-rating-stars{display:inline-flex;align-items:center;gap:1px;color:var(--h-star-outline)}
.product-hero-v3 .pd-star{fill:currentColor;stroke:currentColor;stroke-width:1;color:var(--h-star)}
.product-hero-v3 .pd-star.is-empty{color:var(--h-star-empty)}
.product-hero-v3 .pd-star.is-outline{fill:none;stroke-width:2;color:var(--h-star-outline)}
.product-hero-v3 .pd-star-half{position:relative;display:inline-flex;flex:0 0 auto}
.product-hero-v3 .pd-star-fill{position:absolute;left:0;top:0;bottom:0;width:50%;overflow:hidden}
.product-hero-v3 .product-rating-value{color:var(--h-ink);font-weight:800}
.product-hero-v3 .product-rating-count{color:var(--h-muted);text-decoration:none}
.product-hero-v3 .product-rating-count:hover{color:var(--h-ink);text-decoration:underline;text-underline-offset:2px}

.product-hero-v3 .product-hero-stat{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;background:none;border:0;padding:0}
.product-hero-v3 .product-hero-stat .stat-stock{display:inline-flex;color:var(--h-acc-deep)}
.product-hero-v3 .product-hero-stat .stat-fire{display:inline-flex;color:var(--h-fire)}

/* remnants of older headers, if any still render */
.product-hero-v3 .product-hero-short-desc,
.product-hero-v3 .product-hero-meta{display:none}

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width:768px){
  .product-hero-v3 .product-hero-banner{padding:20px;gap:18px;grid-template-columns:80px minmax(0,1fr)}
  .product-hero-v3 .product-hero-image,
  .product-hero-v3 .product-hero-icon,
  .product-hero-v3 .product-image-placeholder{width:80px;height:80px;border-radius:19px}
}
/* Phones: icon and actions share the first row, the title and counters get the
   full width below (a floated strip of four buttons would squeeze the title). */
@media (max-width:640px){
  .product-hero-v3 .breadcrumb-modern .current{max-width:100%}
  .product-hero-v3 .product-hero-banner{
    padding:16px;grid-template-columns:auto minmax(0,1fr);gap:14px 12px;align-items:start;
  }
  .product-hero-v3 .product-hero-info{display:contents}
  .product-hero-v3 .product-hero-image{grid-column:1;grid-row:1}
  .product-hero-v3 .product-hero-image,
  .product-hero-v3 .product-hero-icon,
  .product-hero-v3 .product-image-placeholder{width:64px;height:64px;border-radius:16px}
  .product-hero-v3 .product-image-placeholder{font-size:24px}
  .product-hero-v3 .product-header-actions{
    float:none;grid-column:2;grid-row:1;justify-self:end;align-self:center;margin:0;
    grid-auto-columns:38px;gap:6px;
  }
  .product-hero-v3 .product-header-actions .product-hero-action{width:38px;height:38px;border-radius:11px}
  .product-hero-v3 .product-hero-title{grid-column:1 / -1;grid-row:2;font-size:20px;line-height:1.25}
  .product-hero-v3 .product-hero-stats{grid-column:1 / -1;grid-row:3;margin-top:-2px;gap:8px 14px;font-size:13px}
  /* rating on its own line, stock and sold together below — no lone «Продано» */
  .product-hero-v3 .product-hero-stats .product-rating-section{flex:1 0 100%}
  .product-hero-v3 img.product-hero-watermark{width:170px;height:170px;bottom:-58px;right:-34px}
  .product-hero-v3 .product-hero-watermark{font-size:130px}
}

/* 02-layout.css */
/* === Page Container === */

.product-detail-page {
    padding: 1.5rem 0 3rem;
    min-height: 60vh;
}

.product-detail-page .product-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-slate-50);
}

.product-detail-page .product-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.product-detail-page .product-image-wrapper .product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-indigo-400);
}

.product-detail-page .product-image-wrapper .product-image-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.product-detail-page .product-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* === Favorite Button === */

.product-detail-page .product-favorite-btn:not(.product-hero-action) {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 8px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease-out, background-color 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
    flex-shrink: 0;
    color: var(--color-gray-400);
}

.product-detail-page .product-favorite-btn:not(.product-hero-action):hover {
    border-color: #fca5a5;
    background: var(--color-red-50);
    color: var(--color-red-400);
    transform: translateY(-1px);
}

.product-detail-page .product-favorite-btn:not(.product-hero-action).active {
    border-color: var(--color-red-500);
    background: var(--color-red-500);
    color: var(--color-white);
}

.product-detail-page .product-favorite-btn:not(.product-hero-action).active:hover {
    background: var(--color-red-600);
    transform: translateY(-1px);
}

.product-detail-page .product-favorite-btn:not(.product-hero-action) i {
    font-size: 0.85rem;
    transition: transform 0.12s ease-out;
}

.product-detail-page .product-favorite-btn:not(.product-hero-action):hover i {
    transform: scale(1.05);
}

/* === Rating Section === */

.product-detail-page .product-rating-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.product-detail-page .product-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.product-detail-page .product-rating-stars i {
    font-size: 1rem;
    color: #fbbf24;
}

.product-detail-page .product-rating-stars i:not(.ds-ic--fill):not(.ds-ic--half) {
    color: var(--color-gray-300);
}

.product-detail-page .product-rating-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-gray-800);
}

.product-detail-page .product-rating-count {
    font-size: 0.85rem;
    color: var(--color-gray-500);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.12s ease-out;
}

.product-detail-page .product-rating-count:hover {
    color: var(--primary);
    text-decoration: underline;
}

.product-detail-page .product-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-gray-500);
    background: var(--color-gray-100);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
}

.product-detail-page .product-meta-item i {
    font-size: 0.8rem;
}

.product-detail-page .product-meta-item.sold-count {
    color: #edf3f6;
    background: rgba(249, 115, 22, 0.1);
}

.product-detail-page .product-meta-item.sold-count i {
    color: var(--color-red-500);
}

/* === Content Section (Plans + Order Form) === */

.product-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
}

/* Desktop: Grid layout for 2 columns */

@media (min-width: 993px) {
    .product-detail-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        /* Последняя строка — 1fr: когда правая колонка (форма заказа, span 1/4)
           выше левого контента, лишняя высота уходит в ЭТУ строку (под отзывами),
           а не распределяется между plans/tabs/reviews. Иначе при коротком тексте
           вкладки между блоками появлялись пустые «дыры», и отзывы не подтягивались. */
        grid-template-rows: auto auto 1fr;
        align-items: flex-start;
        gap: 1.5rem;
    }

/* Plans section - column 1, row 1 */

    .product-plans-section {
        grid-column: 1;
        grid-row: 1;
    }

/* Content tabs section - column 1, row 2 */

    .product-content-tabs {
        grid-column: 1;
        grid-row: 2;
    }

/* Reviews section - column 1, row 3 */

    .product-reviews-section {
        grid-column: 1;
        grid-row: 3;
    }

/* Order section - column 2, spans all rows */

    .product-order-section {
        grid-column: 2;
        grid-row: 1 / 4;
    }

/* Single package: the plans block is hidden, so collapse the empty first row —
   pull tabs/reviews up and let the order card span the remaining rows. */

    .product-detail-content.no-plan-selector {
        grid-template-rows: auto 1fr;
    }

    .product-detail-content.no-plan-selector .product-content-tabs {
        grid-row: 1;
    }

    .product-detail-content.no-plan-selector .product-reviews-section {
        grid-row: 2;
    }

    .product-detail-content.no-plan-selector .product-order-section {
        grid-row: 1 / 3;
    }
}

/* 03-plans-description.css */
/* ============================================================================
   PRODUCT DETAIL · PLANS (03-plans-description.css — ПОЛНАЯ ЗАМЕНА, greenfield)
   ----------------------------------------------------------------------------
   Карточки-пакеты (вертикальный стек) + заголовок секции + описание выбранного
   плана (collapse сохранён). Язык корзины. Ноль !important.
   Старый блок .product-description-section НЕ стилизуется — описание ушло в табы.
   Хук-классы/ID сохранены (product-plan-card, plan-card-check, selected-plan-description…).
   ============================================================================ */

.product-plans-section{
  --cr-ink:var(--color-slate-800);--cr-ink2:var(--color-slate-600);--cr-muted:var(--color-slate-500);--cr-light:var(--color-slate-400);
  --cr-line:var(--color-slate-125);--cr-line2:var(--color-slate-150);--cr-soft:var(--color-slate-75);
  --cr-acc:var(--color-lime-400);--cr-acc-deep:var(--color-green-600);--cr-acc-tint:var(--color-lime-100);--cr-red:var(--color-red-450);
  --cr-r:18px;--cr-r-md:13px;--cr-r-sm:10px;
  display:block;
  background:var(--color-white);border-radius:var(--cr-r);
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 12px 28px rgba(15,23,42,.045);
  overflow:visible;
}

/* заголовок секции */
.product-plans-section .plans-section-header{display:flex;align-items:center;gap:9px;padding:16px 20px 13px;border-bottom:1px solid var(--cr-line)}
.product-plans-section .plans-section-header .header-left{display:flex;align-items:center;gap:9px}
.product-plans-section .plans-section-header i{color:var(--cr-acc-deep);font-size:14px}
.product-plans-section .plans-section-header h3{font-size:13px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--cr-light);margin:0}

/* ── сетка пакетов ───────────────────────────────────────────────────── */
.product-plans-section .product-plans-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;padding:20px;margin:0}

.product-plans-section .product-plan-card{
  position:relative;display:flex;flex-direction:column;align-items:stretch;gap:11px;
  background:var(--color-white);border:1.5px solid var(--cr-line2);border-radius:var(--cr-r-md);padding:15px;cursor:pointer;
  transition:border-color .15s,box-shadow .15s,transform .15s;
}
.product-plans-section .product-plan-card:hover{transform:translateY(-2px);border-color:rgba(143,244,81,.6);box-shadow:none}
.product-plans-section .product-plan-card.active{border-color:var(--cr-acc);box-shadow:0 0 0 3px rgba(143,244,81,.18)}

/* картинка плана не нужна в компактной карточке */
.product-plans-section .plan-card-image{display:none}

.product-plans-section .plan-card-content{display:flex;flex-direction:column;gap:9px;min-width:0}
.product-plans-section .plan-card-title{font-size:14px;font-weight:800;color:var(--cr-ink);margin:0;line-height:1.25;padding-right:30px}
.product-plans-section .plan-card-badges{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.product-plans-section .plan-card-badges .product-delivery,
.product-plans-section .plan-card-badges .out-of-stock-badge,
.product-plans-section .plan-card-badges .flash-sale-badge-inline{
  display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:700;line-height:1;white-space:nowrap;
}
.product-plans-section .plan-card-badges .product-delivery i,
.product-plans-section .plan-card-badges .out-of-stock-badge i{font-size:9px}
.product-plans-section .plan-card-badges .product-delivery.delivery-instant{background:var(--cr-acc-tint);color:var(--cr-acc-deep)}
.product-plans-section .plan-card-badges .product-delivery.delivery-order{background:var(--color-sky-100);color:var(--color-sky-700)}
.product-plans-section .plan-card-badges .flash-sale-badge-inline{background:var(--color-red-100);color:var(--color-red-600)}

/* цена */
.product-plans-section .plan-card-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:0}
.product-plans-section .plan-price-main{display:inline-flex;align-items:baseline}
.product-plans-section .plan-current-price{font-size:19px;font-weight:900;color:var(--cr-ink);letter-spacing:-.01em;white-space:nowrap}
.product-plans-section .plan-current-price.flash-price{color:var(--color-red-600)}
.product-plans-section .plan-current-price.free-price{color:var(--cr-acc-deep)}
.product-plans-section .plan-price-extra{display:inline-flex;align-items:baseline;gap:8px}
.product-plans-section .plan-original-price{font-size:13px;font-weight:600;color:var(--cr-light);text-decoration:line-through;white-space:nowrap}
.product-plans-section .plan-discount-badge{background:var(--cr-red);color:var(--color-white);padding:2px 6px;border-radius:6px;font-size:11px;font-weight:800;white-space:nowrap}

/* чек-кружок (верх-право) */
.product-plans-section .plan-card-check{position:absolute;top:15px;right:15px;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--cr-line2);display:grid;place-items:center;color:transparent;font-size:10px;background:transparent;transition:background .15s,border-color .15s}
.product-plans-section .plan-card-check i{font-size:10px;color:transparent;transition:color .15s}
.product-plans-section .product-plan-card.active .plan-card-check{background:var(--cr-acc);border-color:var(--cr-acc)}
.product-plans-section .product-plan-card.active .plan-card-check i{color:var(--color-lime-950)}

/* нет в наличии */
.product-plans-section .out-of-stock-badge{background:var(--color-red-100);color:var(--cr-red)}
.product-plans-section .product-plan-card.out-of-stock{opacity:.55;cursor:not-allowed}
.product-plans-section .product-plan-card.out-of-stock:hover{transform:none;border-color:var(--cr-line2);box-shadow:none}
.product-plans-section .product-plan-card.out-of-stock .plan-card-check{border-color:var(--cr-line2);background:var(--cr-soft)}

/* ── описание выбранного плана (collapse сохранён) ───────────────────── */
.product-plans-section .selected-plan-description{
  background:var(--color-white);border:1px solid var(--cr-line2);border-radius:var(--cr-r-md);overflow:hidden;margin:0 20px 20px;
  animation:planSlideUp .3s ease-out;box-shadow:none;position:relative;
}
@keyframes planSlideUp{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}
.product-plans-section .plan-desc-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;background:transparent;cursor:pointer;user-select:none;transition:background-color .2s}
.product-plans-section .plan-desc-header:hover{background:var(--cr-soft)}
.product-plans-section .plan-desc-header-left{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
.product-plans-section .plan-desc-icon-wrapper{width:38px;height:38px;border-radius:11px;background:var(--cr-acc-tint);display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:none}
.product-plans-section .plan-desc-icon-wrapper i{font-size:15px;color:var(--cr-acc-deep)}
.product-plans-section .plan-desc-title-group{display:flex;flex-direction:column;gap:2px;min-width:0}
.product-plans-section .plan-desc-label{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--cr-light)}
.product-plans-section .selected-plan-name{font-size:14px;font-weight:800;color:var(--cr-ink);line-height:1.3}
.product-plans-section .plan-desc-toggle-btn{width:30px;height:30px;border-radius:50%;background:var(--cr-soft);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .2s}
.product-plans-section .plan-desc-header:hover .plan-desc-toggle-btn{background:var(--cr-line2)}
.product-plans-section .plan-desc-toggle-btn .collapse-icon{font-size:12px;color:var(--cr-muted);transition:transform .25s}
.product-plans-section .plan-desc-header.collapsed .plan-desc-toggle-btn .collapse-icon{transform:rotate(-90deg)}
.product-plans-section .plan-desc-content{overflow:hidden;transition:max-height .3s ease-out,opacity .3s ease-out;max-height:99999px;opacity:1}
.product-plans-section .plan-desc-content.collapsed{max-height:0;opacity:0}
.product-plans-section .plan-desc-inner{padding:12px 15px 15px;font-size:13.5px;color:var(--cr-ink2);line-height:1.7;border-top:1px dashed var(--cr-line2);white-space:pre-line}
.product-plans-section .plan-desc-inner p{margin:0}
.product-plans-section .plan-desc-inner p:not(:last-child){margin-bottom:.75rem}
.product-plans-section .plan-desc-inner ul,.product-plans-section .plan-desc-inner ol{margin:.5rem 0;padding-left:1.5rem}
.product-plans-section .plan-desc-inner li{margin-bottom:.35rem}

/* ── табличный вариант (если активен .plan-layout-table) ─────────────── */
@media (min-width:769px){
  .product-plans-section .plan-layout-table.product-plans-grid{display:flex;flex-direction:column;gap:10px}
}

/* 04-order-form.css */
/* ============================================================================
   PRODUCT DETAIL · ORDER COLUMN (04-order-form.css)
   ----------------------------------------------------------------------------
   Canvas «Страница товара»: «Количество» (unit price in the heading, a stepper
   drawn as one full-width field, stock under it), «Промокод», «Итого» (total in
   the heading, one coloured line per discount, two 48px buttons, payment marks
   under a hairline). Sold out: «Цена» strip + «Нет в наличии» card.
   Markup: views/client/product/order-form.php. Every hook id is kept. Zero !important.
   ============================================================================ */

.product-order-form{
  --cr-ink:var(--color-slate-800);--cr-ink2:var(--color-slate-600);--cr-ink3:var(--color-slate-700);--cr-muted:var(--color-slate-500);--cr-light:var(--color-slate-400);
  --cr-text-subtle:var(--sf-text-subtle);--cr-acc-text:var(--sf-accent-text);
  --cr-line:var(--color-slate-125);--cr-line2:var(--color-slate-150);--cr-soft:var(--color-slate-75);--cr-step:var(--color-slate-50);--cr-step-hover:#eef2f6;
  --cr-acc:var(--color-lime-400);--cr-acc-hover:#84ea45;--cr-acc-deep:var(--color-green-600);--cr-acc-tint:var(--color-lime-100);
  --cr-red:var(--color-red-450);--cr-card:var(--color-white);--cr-r:20px;--cr-r-md:13px;--cr-r-sm:12px;
  --cr-shadow:0 4px 36px rgba(0,0,0,.07);
  display:flex;flex-direction:column;gap:14px;
}
.product-order-form-hook{display:contents}
.product-order-section{position:sticky;top:18px}

/* ── card ──────────────────────────────────────────────────────────────── */
.product-order-form .order-form-card{
  background:var(--cr-card);border:0;border-radius:var(--cr-r);box-shadow:var(--cr-shadow);
  padding:0;display:block;overflow:hidden;
}
.product-order-form .order-card-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:14px}
.product-order-form .order-quantity-card .order-card-body{gap:10px}

/* card heading: icon, uppercase label, value on the right */
.product-order-form .order-form-heading{
  display:flex;align-items:center;gap:9px;padding:16px 18px 13px;margin:0;
  font-size:13px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--cr-muted);
  border-bottom:1px solid var(--cr-line);
}
.product-order-form .order-form-heading>span:first-child{display:inline-flex;align-items:center;gap:9px;min-width:0}
.product-order-form .order-form-heading .pd-ic{color:var(--cr-acc-deep)}
.product-order-form .order-form-heading--solo{border-bottom-color:transparent}
.product-order-form .order-form-heading--muted .pd-ic{color:var(--cr-light)}
.product-order-form .order-from-price,
.product-order-form .order-total-price{margin-left:auto;display:inline-flex;align-items:baseline;gap:6px;text-transform:none;letter-spacing:0;white-space:nowrap}
.product-order-form .order-from-price>span{font-size:11.5px;font-weight:600;color:var(--cr-muted)}
.product-order-form .order-from-price b{font-size:18px;font-weight:800;color:var(--cr-ink);letter-spacing:-.01em}
.product-order-form .order-total-price b{font-size:22px;font-weight:800;color:var(--cr-ink);letter-spacing:-.01em;transition:opacity .15s}
.product-order-form .order-total-price b.loading{opacity:.45}

/* ── quantity: the one stepper of the site (.dm-qty, mod/css/main.css, 19.11 N21); the shake is the page's ── */
@keyframes cr-shake{
  0%     {transform:translateX(0);   animation-timing-function:cubic-bezier(.22,1,.36,1)}
  28.57% {transform:translateX(6px); animation-timing-function:cubic-bezier(.22,1,.36,1)}
  57.14% {transform:translateX(-6px);animation-timing-function:cubic-bezier(.22,1,.36,1)}
  78.57% {transform:translateX(4px); animation-timing-function:cubic-bezier(.22,1,.36,1)}
  100%   {transform:translateX(0)}
}
/* «В наличии 777 шт.» under the stepper */
.product-order-form .order-stock-info{margin:0;text-align:center;font-size:12.5px;font-weight:600;color:var(--cr-muted)}
.product-order-form .order-stock-info strong{font-weight:inherit;color:inherit}

/* ── order fields ──────────────────────────────────────────────────────── */
.product-order-form .order-form-group{display:flex;flex-direction:column;gap:9px;margin-top:4px}
.product-order-form .order-form-group label{font-size:12px;font-weight:700;color:var(--cr-ink2);display:inline-flex;align-items:center;gap:7px;margin:0}
.product-order-form .order-form-group label .pd-ic{color:var(--cr-acc-deep)}
.product-order-form .order-fields-container{display:flex;flex-direction:column;gap:10px}
.product-order-form .order-field{width:100%}
.product-order-form .order-input{width:100%;height:46px;border:0;background:var(--cr-soft);border-radius:var(--cr-r-md);padding:0 14px;font-size:14px;font-weight:600;color:var(--cr-ink);transition:box-shadow .15s}
.product-order-form textarea.order-input{height:auto;padding:12px 14px;min-height:80px;resize:vertical}
.product-order-form .order-input:focus{outline:none;box-shadow:0 0 0 2px rgba(140,255,63,.45)}
.product-order-form .order-input::placeholder{color:var(--cr-light);font-weight:500}
.product-order-form .no-fields-message{font-size:13px;color:var(--cr-muted);background:var(--cr-soft);border-radius:var(--cr-r-md);padding:13px;text-align:center;font-style:normal;margin:0}
/* loading skeleton (plans.js) */
.product-order-form .order-fields-skeleton{display:flex;flex-direction:column;gap:10px}
.product-order-form .skeleton-field{width:100%}
.product-order-form .skeleton-input{height:46px;border-radius:var(--cr-r-md);background:linear-gradient(90deg,var(--color-slate-115) 25%,#e7eaef 50%,var(--color-slate-115) 75%);background-size:200% 100%}
.product-order-form .skeleton-input.shimmer{animation:ofShimmer 1.5s infinite ease-in-out}
@keyframes ofShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ── promo code ────────────────────────────────────────────────────────── */
/* Open and close move the same way: the panel animates its real height through
   grid rows (0fr ↔ 1fr) on one curve and one duration in both directions; a
   max-height animation reached the content early when opening and stood still
   before folding when closing. Closed, the panel is hidden from the keyboard. */
.product-order-form{--cr-ease-io:cubic-bezier(.4,0,.2,1);--cr-fold:.32s}
.product-order-form .order-coupon-section{width:100%;box-sizing:border-box}
.product-order-form .coupon-toggle{
  display:flex;align-items:center;gap:9px;padding:16px 18px 13px;background:transparent;cursor:pointer;user-select:none;
  border-bottom:1px solid transparent;transition:border-color .2s;
}
.product-order-form .coupon-toggle:focus-visible{outline:2px solid var(--color-lime-200);outline-offset:-2px;border-radius:var(--cr-r)}
.product-order-form .coupon-toggle .coupon-toggle-icon{color:var(--cr-acc-deep)}
.product-order-form .coupon-toggle span{flex:1;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:var(--cr-text-subtle);transition:color .18s}
.product-order-form .coupon-toggle:hover span,
.product-order-form .coupon-toggle.active span{color:var(--cr-muted)}
.product-order-form .coupon-toggle-arrow{margin-left:auto;color:var(--cr-light);transition:transform var(--cr-fold) var(--cr-ease-io)}
.product-order-form .coupon-toggle.active .coupon-toggle-arrow{transform:rotate(180deg)}
.product-order-form .order-coupon-section .coupon-form-wrapper{
  display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;max-height:none;padding:0;border-top:0;
  background:transparent;box-sizing:border-box;
  transition:grid-template-rows var(--cr-fold) var(--cr-ease-io),opacity var(--cr-fold) var(--cr-ease-io),visibility 0s linear var(--cr-fold);
}
.product-order-form .order-coupon-section .coupon-form-wrapper.show{
  grid-template-rows:1fr;opacity:1;visibility:visible;max-height:none;padding:0;border-top:0;
  transition:grid-template-rows var(--cr-fold) var(--cr-ease-io),opacity var(--cr-fold) var(--cr-ease-io),visibility 0s linear 0s;
}
.product-order-form .coupon-form-inner{min-height:0;overflow:hidden}
.product-order-form .coupon-form-body{padding:16px 18px 18px;border-top:1px solid var(--cr-line)}

/* code field + «Применить»: one height, one radius; focus and error are an inner
   ring (the theme resets the border on focus) */
.product-order-form .coupon-input-group{display:flex;gap:8px;align-items:stretch;width:100%}
.product-order-form .coupon-input{flex:1;min-width:0;height:46px;padding:0 14px;border:0;background:var(--cr-soft);border-radius:var(--cr-r-md);font-size:14px;font-weight:700;letter-spacing:.04em;color:var(--cr-ink);text-transform:uppercase;transition:box-shadow .18s,background-color .18s}
.product-order-form .order-coupon-section .coupon-input:hover{background:var(--color-slate-125)}
.product-order-form .order-coupon-section .coupon-input:focus{outline:none;background:var(--color-white);box-shadow:inset 0 0 0 1.5px #7fdc45,0 0 0 4px rgba(143,244,81,.2)}
.product-order-form .order-coupon-section .coupon-input.is-invalid{background:var(--color-white);box-shadow:inset 0 0 0 1.5px var(--cr-red),0 0 0 4px rgba(255,59,59,.12)}
.product-order-form .coupon-input::placeholder{text-transform:none;letter-spacing:0;color:var(--cr-light);font-weight:500}
.product-order-form .btn-apply-coupon{position:relative;flex-shrink:0;min-width:116px;height:46px;padding:0 18px;border:0;border-radius:var(--cr-r-md);font-size:14px;font-weight:700;color:var(--color-white);background:var(--cr-ink);cursor:pointer;transition:background-color .18s,color .18s;white-space:nowrap}
/* The autoreg theme paints this button's text black on hover; keep it readable in every state. */
.product-order-form .order-coupon-section .btn-apply-coupon:hover:not(:disabled){background:var(--color-slate-900);color:var(--color-white);border-color:transparent;transform:none;box-shadow:none}
.product-order-form .order-coupon-section .btn-apply-coupon:focus-visible{outline:2px solid var(--color-lime-200);outline-offset:2px}
.product-order-form .order-coupon-section .btn-apply-coupon:disabled{background:var(--cr-ink);color:var(--color-white);border-color:transparent;opacity:1;cursor:not-allowed}
/* Loading keeps the label's width (no jump) and shows a spinner in its place. */
.product-order-form .order-coupon-section .btn-apply-coupon.is-loading{color:transparent;cursor:progress}
.product-order-form .order-coupon-section .btn-apply-coupon.is-loading::after{
  content:"";position:absolute;inset:0;margin:auto;width:18px;height:18px;box-sizing:border-box;border-radius:50%;
  border:2px solid rgba(255,255,255,.3);border-top-color:var(--color-white);animation:ofSpin .7s linear infinite;
}
@keyframes ofSpin{to{transform:rotate(360deg)}}

/* The message folds in and out (grid rows + opacity) instead of jumping; while a
   new answer is loading the old one only dims, so the form does not collapse and
   grow again. */
.product-order-form .coupon-message{display:grid;grid-template-rows:0fr;opacity:0;margin-top:0;transition:grid-template-rows .24s var(--cr-ease-io),opacity .24s var(--cr-ease-io),margin-top .24s var(--cr-ease-io)}
.product-order-form .coupon-message.is-visible{grid-template-rows:1fr;opacity:1;margin-top:10px}
.product-order-form .coupon-message.is-visible.is-stale{opacity:.45}
.product-order-form .coupon-message-text{min-height:0;overflow:hidden;font-size:12.5px;font-weight:700;line-height:1.4}
.product-order-form .coupon-message.success{color:var(--cr-acc-text)}
.product-order-form .coupon-message.error{color:var(--cr-red)}
@media (prefers-reduced-motion:reduce){
  .product-order-form .order-coupon-section .coupon-form-wrapper,
  .product-order-form .coupon-message,
  .product-order-form .coupon-toggle-arrow{transition:none}
  .product-order-form .order-coupon-section .btn-apply-coupon.is-loading::after{animation-duration:1.6s}
}
.product-order-form .applied-coupon{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;margin-top:12px;background:var(--cr-acc-tint);border:0;border-radius:var(--cr-r-md)}
.product-order-form .applied-coupon-info{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.product-order-form .applied-coupon-info .pd-ic{color:var(--cr-acc-deep)}
.product-order-form .applied-coupon-code{font-weight:800;color:var(--cr-acc-text);font-size:13.5px;letter-spacing:.02em;text-transform:uppercase}
.product-order-form .applied-coupon-desc{font-size:12.5px;color:var(--cr-ink2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-order-form .btn-remove-coupon{width:26px;height:26px;display:grid;place-items:center;border:0;border-radius:8px;background:rgba(255,255,255,.75);color:var(--cr-acc-text);cursor:pointer;transition:background .15s,color .15s,outline .15s,outline-offset .15s;flex-shrink:0;padding:0}
.product-order-form .btn-remove-coupon:hover{background:var(--color-white);color:var(--cr-red)}

/* ── «Итого»: one coloured line per discount, no subtotal ─────────────── */
.product-order-form .order-price-summary{display:grid;gap:2px;padding:0;background:transparent;border-radius:0}
/* No discount at all: the empty summary takes no gap above the buttons. */
.product-order-form .order-price-summary:not(:has(> .price-row:not([style*="none"]))){display:none}
.product-order-form .price-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:3px 0;font-size:14px;color:var(--cr-ink2)}
.product-order-form .price-row .price-value{font-weight:700;color:var(--cr-ink);white-space:nowrap}
.product-order-form .price-row .discount-label{display:inline-flex;align-items:center;gap:7px;font-weight:600;min-width:0}
/* member discount — amber */
.product-order-form .price-row.member-discount-row .discount-label,
.product-order-form .price-row.member-discount-row .price-value.discount{color:var(--color-amber-600)}
/* Flash Sale — red */
.product-order-form .price-row.flash-sale-row .discount-label,
.product-order-form .price-row.flash-sale-row .price-value.discount{color:var(--color-red-600)}
/* product sale — blue */
.product-order-form .price-row.sale-row .discount-label,
.product-order-form .price-row.sale-row .price-value.discount{color:var(--color-sky-700)}
/* promo code — green */
.product-order-form .price-row.coupon-discount-row .discount-label,
.product-order-form .price-row.coupon-discount-row .price-value.coupon-discount{color:var(--cr-acc-text)}

/* ── buttons: two of 48px, one under the other ─────────────────────────── */
.product-order-form .order-buttons-row{display:grid;gap:8px}
.product-order-form .btn-order,
.product-order-form .btn-add-cart{
  width:100%;height:48px;padding:0 14px;border-radius:var(--cr-r-md);
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:inherit;font-size:14px;font-weight:700;line-height:1;text-decoration:none;cursor:pointer;
  transition:background-color .18s,border-color .18s,color .18s;
}
.product-order-form .btn-order{border:0;background:var(--cr-acc);color:var(--color-lime-950);box-shadow:none}
@media (hover: hover) {
    .product-order-form .btn-order:hover {background:var(--cr-acc-hover);color:var(--color-lime-950)}
}
.product-order-form .btn-order:disabled{background:var(--color-slate-200);color:var(--color-slate-400);cursor:not-allowed}
.product-order-form .btn-order.btn-login-required{background:var(--cr-acc);color:var(--color-lime-950)}
@media (hover: hover) {
    .product-order-form .btn-order.btn-login-required:hover {background:var(--cr-acc-hover)}
}
.product-order-form .btn-add-cart{border:1px solid var(--color-slate-160);background:var(--cr-card);color:var(--cr-ink2);box-shadow:none}
@media (hover: hover) {
    .product-order-form .btn-add-cart:hover {border-color:var(--color-slate-300);background:var(--cr-card);color:var(--cr-ink)}
}
.product-order-form .btn-add-cart:disabled{opacity:.5;cursor:not-allowed}
.product-order-form .btn-order .pd-ic,
.product-order-form .btn-add-cart .pd-ic{color:currentColor}

/* ── payment marks: methods enabled for this visitor, one slot size ───── */
.product-order-form .order-pay-marks{display:flex;align-items:center;justify-content:center;padding:12px 14px;border-top:1px solid var(--cr-line);background:var(--cr-card)}
.product-order-form .pm-row{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px}
.product-order-form .pm{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:34px;height:24px}
.product-order-form .pm-i{display:block;height:13px;width:auto;max-width:26px;fill:currentColor}
.product-order-form .pm-crypto .pm-i,
.product-order-form .pm-binance_pay .pm-i{height:14px}
.product-order-form .pm-font{font-size:14px;line-height:1;height:auto}
.product-order-form .pm-mc{height:12px}
.product-order-form .pm-vietqr{height:auto;width:30px;max-width:none}
.product-order-form .pm-apple{height:14px}
.product-order-form .pm-coins{display:flex;align-items:center;height:auto;max-width:none}
.product-order-form .pm-coin{display:block;flex:0 0 auto;width:14px;height:14px;border-radius:50%;background:var(--surface,#fff);box-shadow:0 0 0 1.5px var(--surface,#fff)}
.product-order-form .pm-coin+.pm-coin{margin-left:-4px}
.product-order-form .pm-logo--upi{height:auto;width:32px;max-width:none}
.product-order-form .pm-logo--kaspi{height:15px}
.product-order-form .pm-gpay{height:15px;max-width:none}
.product-order-form .pm:has(.pm-gpay){width:auto;padding:0 3px}
.product-order-form .pm-binance-coin{height:15px}
.product-order-form .pm-logo--flag_by,.product-order-form .pm-logo--flag_kz{height:13px;max-width:none}
/* Apple Pay pays only where WebKit has it, like the top-up window's ApplePaySession check. */
.product-order-form .pm-payhot_applepay{display:none}
@supports (-webkit-appearance:-apple-pay-button){.product-order-form .pm-payhot_applepay{display:flex}}
.product-order-form .pm-name{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* The marks' hint (mod/js/product-detail/payment-marks.js): the dark hint of the top-up window. */
.pm-tip{position:fixed;z-index:var(--z-tooltip);width:max-content;max-width:min(300px,calc(100vw - 28px));padding:9px 11px;border:1px solid rgba(15,23,42,.1);border-radius:10px;background:rgba(15,23,42,.96);box-shadow:0 12px 30px rgba(15,23,42,.2);color:var(--color-white);font-size:11.5px;font-weight:650;line-height:1.45;text-align:left;white-space:normal;opacity:0;visibility:hidden;transform:translateY(4px) scale(.98);transform-origin:bottom center;pointer-events:none;transition:opacity .16s ease,transform .2s cubic-bezier(.22,1,.36,1),visibility 0s linear .2s}
.pm-tip::after{content:'';position:absolute;left:var(--pm-tip-arrow,50%);bottom:-5px;width:9px;height:9px;border-right:1px solid rgba(15,23,42,.1);border-bottom:1px solid rgba(15,23,42,.1);background:rgba(15,23,42,.96);transform:translateX(-50%) rotate(45deg)}
.pm-tip.is-below{transform-origin:top center}
.pm-tip.is-below::after{top:-5px;bottom:auto;border:0;border-left:1px solid rgba(15,23,42,.1);border-top:1px solid rgba(15,23,42,.1)}
.pm-tip.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1);transition-delay:0s}
@media (prefers-reduced-motion:reduce){.pm-tip{transition:none;transform:none}}

/* ── sold out / no packages ───────────────────────────────────────────── */
.product-order-form .order-unavailable-note{margin:0;font-size:13px;line-height:1.55;color:var(--cr-muted)}
.product-order-form .btn-order-notify-secondary.is-subscribed{border-color:var(--cr-acc-deep);color:var(--cr-acc-text)}

/* ── no packages (legacy block, kept for other templates) ─────────────── */
.no-plans-message{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;background:var(--color-white);border-radius:var(--cr-r,20px);text-align:center;border:1px dashed var(--color-slate-300);box-shadow:0 1px 2px rgba(15,23,42,.05),0 12px 28px rgba(15,23,42,.045)}
.no-plans-message i{font-size:3rem;color:var(--color-gray-300);margin-bottom:1rem}
.no-plans-message p{font-size:1rem;color:var(--color-slate-500);margin:0}

/* The column is not a card: each block is its own card, with no shared underlay
   between them (the theme gives .product-order-section a surface and a shadow). */
.storefront-autoreg .product-order-section,.product-order-section{background:transparent;box-shadow:none;border-radius:0}

/* «Before» price, struck through next to «за шт.» and «Итого». */
.product-order-form .order-price-was{font-size:13px;font-weight:700;color:var(--cr-text-subtle);text-decoration:line-through;text-decoration-thickness:1.5px}
.product-order-form .order-price-was[hidden]{display:none}

/* 05-responsive.css */
/* ========================================
   Product Detail - Responsive
   ======================================== */

@media (max-width: 1200px) {
    .product-detail-content {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

@media (max-width: 992px) {
/* One column: packages → order → description tabs → reviews. The header (with
   the characteristics) is above, so the order card comes right after it. */

    .product-plans-section {
        order: 1;
    }

.product-order-section {
        order: 2;
        position: relative;
        top: 0;
    }

.product-content-tabs {
        order: 3;
    }

.product-reviews-section {
        order: 4;
    }

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

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

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

.product-plan-card {
        grid-template-columns: 48px 1fr auto;
        gap: 0.2rem 0.625rem;
        padding: 0.75rem;
    }

.plan-card-image {
        width: 48px;
        height: 48px;
    }

.plan-card-check {
        display: none;
    }

.plan-card-title {
        font-size: 0.82rem;
    }

/* Modern Description Sections - Mobile */

    .plan-desc-header,
.desc-section-header {
        padding: 1rem;
    }

.plan-desc-icon-wrapper {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

.plan-desc-icon-wrapper i {
        font-size: 0.95rem;
    }

.plan-desc-label,
.desc-label {
        font-size: 0.65rem;
    }

.selected-plan-name {
        font-size: 0.9rem;
    }

.plan-desc-inner,
.desc-content-wrapper {
        padding: 1rem;
    }
}

@media (max-width: 480px) {.plan-card-title {
        font-size: 0.85rem;
    }

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

/* 07-reviews.css */
/* ============================================================================
   PRODUCT DETAIL · REVIEWS (07-reviews.css — ПОЛНАЯ ЗАМЕНА, greenfield)
   ----------------------------------------------------------------------------
   Заголовок «Отзывы · N», чистые карточки (аватар-инициалы, имя+дата, звёзды).
   Скрыты: пакет в отзыве и «Полезно». Пагинация вместо «Показать ещё».
   Сохранены: модалка написания отзыва, rating-input, admin-reply, no-reviews,
   review-images, состояния hidden-review. Ноль !important.
   ============================================================================ */

.product-reviews-section{
  --cr-ink:var(--color-slate-800);--cr-ink2:var(--color-slate-600);--cr-muted:var(--color-slate-500);--cr-light:var(--color-slate-400);
  --cr-text-subtle:var(--sf-text-subtle);--cr-acc-text:var(--sf-accent-text);
  --cr-line:var(--color-slate-125);--cr-line2:var(--color-slate-150);--cr-soft:var(--color-slate-75);
  --cr-acc:var(--color-lime-400);--cr-acc-deep:var(--color-green-600);--cr-acc-tint:var(--color-lime-100);--cr-red:var(--color-red-450);--cr-star:var(--color-star);
  --cr-r:18px;--cr-r-md:13px;--cr-r-sm:10px;
  background:var(--color-white);border:0;border-radius:var(--cr-r);overflow:hidden;margin-top:0;
  box-shadow:0 1px 2px rgba(15,23,42,.05),0 12px 28px rgba(15,23,42,.045);
}

/* заголовок */
.product-reviews-section .section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px 13px;background:var(--color-white);border-bottom:1px solid var(--cr-line)}
.product-reviews-section .section-header .header-left{display:flex;align-items:center;gap:9px}
.product-reviews-section .section-header .header-left i{color:var(--cr-star);font-size:14px}
.product-reviews-section .section-header h3{margin:0;font-size:13px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--cr-muted)}

/* обзор рейтинга */
/* line-height:normal — гасит глобальный body line-height:26px, который раздувал
   мелкие лейблы рейтинга (12px → строки 26px). В оригинале (preview) фон без него. */
.product-reviews-section .reviews-overview{padding:16px 20px;border-bottom:1px solid var(--cr-line);line-height:normal}
.product-reviews-section .reviews-summary{display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:center}
.product-reviews-section .rating-big{display:grid;justify-items:center;gap:10px;min-width:128px}
.product-reviews-section .rating-big .rating-number{font-size:44px;font-weight:900;color:var(--cr-ink);line-height:1;letter-spacing:-.02em}
.product-reviews-section .rating-stars-big{display:flex;gap:4px}
.product-reviews-section .rating-stars-big i{font-size:15px;color:var(--cr-star)}
.product-reviews-section .rating-stars-big i:not(.ds-ic--fill):not(.ds-ic--half){color:var(--color-slate-240)}
.product-reviews-section .rating-big .rating-label{font-size:12.5px;color:var(--cr-muted);font-weight:600;line-height:1.3}
.product-reviews-section .btn-write-review-inline{display:inline-flex;align-items:center;gap:7px;padding:8px 14px;margin-top:4px;background:var(--color-white);border:1.5px solid var(--cr-acc-deep);border-radius:10px;font-size:12.5px;font-weight:700;color:var(--cr-acc-text);cursor:pointer;transition:background .15s,outline .15s,outline-offset .15s}
.product-reviews-section .btn-write-review-inline:hover{background:var(--cr-acc-tint)}
.product-reviews-section .btn-write-review-inline i{font-size:11px}
.product-reviews-section .rating-bars{display:grid;gap:7px}
.product-reviews-section .rating-bar-row{display:grid;grid-template-columns:54px 1fr 26px;align-items:center;gap:12px}
.product-reviews-section .rating-bar-label{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--cr-muted);font-weight:700}
.product-reviews-section .rating-bar-label i{font-size:10px;color:var(--cr-star)}
.product-reviews-section .rating-bar-track{height:8px;background:var(--cr-soft);border-radius:999px;overflow:hidden}
.product-reviews-section .rating-bar-fill{height:100%;background:var(--cr-acc);border-radius:999px;transition:width .2s}
.product-reviews-section .rating-bar-count{font-size:12px;color:var(--cr-ink);font-weight:700;text-align:right}

/* список отзывов */
.product-reviews-section .reviews-list{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding:20px}
.product-reviews-section .review-item{display:grid;gap:12px;padding:18px;border:1px solid var(--cr-line2);border-radius:var(--cr-r-md);background:var(--color-white)}
.product-reviews-section .review-item:last-child{border-bottom:1px solid var(--cr-line2)}
.product-reviews-section .review-header{display:flex;align-items:center;gap:12px;margin:0}
.product-reviews-section .review-user{display:flex;align-items:center;gap:12px;min-width:0}
.product-reviews-section .review-avatar{width:46px;height:46px;border-radius:50%;background:var(--cr-acc-tint);color:var(--cr-acc-text);display:grid;place-items:center;overflow:hidden;flex-shrink:0;font-weight:800;font-size:15px}
.product-reviews-section .review-avatar img{width:100%;height:100%;object-fit:cover}
.product-reviews-section .review-avatar i{font-size:16px;color:var(--cr-acc-deep)}
.product-reviews-section .review-user-info{display:flex;flex-direction:column;gap:3px;min-width:0}
.product-reviews-section .review-username{font-weight:800;color:var(--cr-ink);font-size:14px;overflow-wrap:anywhere}
.product-reviews-section .review-user-info .review-date{font-size:12px;color:var(--cr-muted);font-weight:600}
.product-reviews-section .verified-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--cr-acc-text);font-weight:700}
.product-reviews-section .verified-badge i{font-size:11px}
.product-reviews-section .review-meta{margin-left:auto;display:flex;align-items:center}
.product-reviews-section .review-rating-stars{display:flex;gap:2px}
.product-reviews-section .review-rating-stars i{font-size:14px;color:var(--cr-star)}
.product-reviews-section .review-rating-stars i:not(.ds-ic--fill){color:var(--color-slate-240)}
.product-reviews-section .review-date{font-size:12px;color:var(--cr-muted)}
.product-reviews-section .review-title{font-size:14px;font-weight:800;color:var(--cr-ink);margin:0}
.product-reviews-section .review-content{font-size:14px;color:var(--cr-ink2);line-height:1.6;font-weight:500;overflow-wrap:anywhere}

/* СКРЫТО по требованию: пакет в отзыве и кнопка «Полезно» */
.product-reviews-section .review-plan{display:none}
.product-reviews-section .review-actions{display:none}
.product-reviews-section .btn-review-helpful__icon{display:inline-flex}
.product-reviews-section .btn-review-helpful__icon--down,
.product-reviews-section .btn-review-helpful.voted .btn-review-helpful__icon--up{display:none}
.product-reviews-section .btn-review-helpful.voted .btn-review-helpful__icon--down{display:inline-flex}

/* картинки в отзыве */
.product-reviews-section .review-images{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.product-reviews-section .review-image-item{width:60px;height:60px;border-radius:8px;overflow:hidden;cursor:pointer;transition:transform .12s}
.product-reviews-section .review-image-item:hover{transform:scale(1.03)}
.product-reviews-section .review-image-item img{width:100%;height:100%;object-fit:cover}

/* ответ админа */
.product-reviews-section .review-admin-reply{margin-top:2px;padding:12px 14px;background:var(--cr-soft);border-radius:var(--cr-r-sm);border:0}
.product-reviews-section .admin-reply-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.product-reviews-section .admin-reply-header i{color:var(--cr-acc-deep);font-size:12px}
.product-reviews-section .admin-reply-label{font-weight:800;color:var(--cr-acc-text);font-size:12px}
.product-reviews-section .admin-reply-date{font-size:11px;color:var(--cr-text-subtle);margin-left:auto}
.product-reviews-section .admin-reply-content{font-size:13px;color:var(--cr-ink2);line-height:1.55}

/* ── пагинация (вместо «Показать ещё») ───────────────────────────────── */
.product-reviews-section .reviews-pagination{display:flex;align-items:center;justify-content:center;gap:6px;padding:6px 20px 20px}
.product-reviews-section .reviews-pagination button,
.product-reviews-section .reviews-pagination a{min-width:38px;height:38px;padding:0 11px;border:0;border-radius:10px;background:var(--cr-soft);color:var(--cr-ink2);font-family:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s,color .15s,opacity .15s,outline .15s,outline-offset .15s;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.product-reviews-section .reviews-pagination button:hover:not(:disabled),
.product-reviews-section .reviews-pagination a:hover{background:var(--cr-acc-tint);color:var(--cr-acc-text)}
.product-reviews-section .reviews-pagination .is-active,
.product-reviews-section .reviews-pagination a.active{background:var(--cr-acc);color:var(--color-lime-950)}
.product-reviews-section .reviews-pagination button:disabled{opacity:.4;cursor:not-allowed}

/* fallback «Показать ещё», если используется */
.product-reviews-section .btn-load-more-reviews{display:inline-flex;align-items:center;gap:8px;border:0;background:var(--cr-soft);color:var(--cr-ink2);font-family:inherit;font-size:13px;font-weight:700;padding:11px 20px;border-radius:11px;cursor:pointer;transition:background .15s,color .15s}
.product-reviews-section .btn-load-more-reviews:hover{background:var(--cr-acc-tint);color:var(--cr-acc-text)}

/* нет отзывов */
.product-reviews-section .no-reviews-message{display:grid;justify-items:center;gap:5px;padding:48px 20px;text-align:center}
.product-reviews-section .no-reviews-badge{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--cr-acc-tint);margin-bottom:10px}
.product-reviews-section .no-reviews-badge i{font-size:26px;color:var(--cr-acc-deep);margin:0}
.product-reviews-section .no-reviews-message p{font-size:15.5px;color:var(--cr-ink);margin:0;font-weight:800}
.product-reviews-section .no-reviews-message > span{font-size:13px;color:var(--cr-muted);font-weight:500}
.product-reviews-section .no-reviews-message .btn-write-review-inline{margin-top:14px}

/* приглашение войти */

/* ── модалка написания отзыва (зелёный акцент) ───────────────────────── */
.review-modal{display:none;position:fixed;inset:0;z-index:var(--z-popup-legacy);align-items:center;justify-content:center}
.review-modal.active{display:flex}
.review-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.5);backdrop-filter:blur(3px)}
.review-modal-content{position:relative;background:var(--color-white);border-radius:var(--cr-r,18px);width:90%;max-width:500px;max-height:90vh;overflow:hidden;box-shadow:0 30px 80px -20px rgba(15,23,42,.5);animation:revModalIn .24s ease-out}
@keyframes revModalIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
/* анимация закрытия (класс .closing ставится из reviews.js перед снятием .active) */
.review-modal.closing{pointer-events:none}
.review-modal.closing .review-modal-backdrop{animation:revBackdropOut .2s ease forwards}
.review-modal.closing .review-modal-content{animation:revModalOut .2s ease-in forwards}
@keyframes revModalOut{from{opacity:1;transform:none}to{opacity:0;transform:translateY(12px) scale(.97)}}
@keyframes revBackdropOut{from{opacity:1}to{opacity:0}}
.review-modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:var(--color-white);border-bottom:1px solid var(--color-slate-125)}
.review-modal-header h3{display:flex;align-items:center;gap:9px;margin:0;font-size:16px;font-weight:800;color:var(--color-slate-800)}
.review-modal-header h3 i{color:var(--color-green-600)}
.review-modal-close{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:10px;background:var(--color-slate-75);color:var(--color-slate-500);cursor:pointer;transition:background .15s,color .15s,outline .15s,outline-offset .15s}
.review-modal-close:hover{background:var(--color-slate-138);color:var(--color-slate-800)}
.review-modal-body{padding:20px;overflow-y:auto;max-height:calc(90vh - 64px)}
.write-review-form{display:flex;flex-direction:column;gap:14px}
.review-form-group{display:flex;flex-direction:column;gap:8px}
.review-form-group label{font-size:12px;font-weight:800;color:var(--color-slate-600);text-transform:uppercase;letter-spacing:.02em}
.review-form-group label .required{color:var(--color-red-450)}
.review-select,.review-textarea,.review-input{padding:12px 14px;border:0;background:var(--color-slate-75);border-radius:13px;font-size:14px;font-weight:600;color:var(--color-slate-800);transition:box-shadow .15s}
.review-select:focus,.review-textarea:focus,.review-input:focus{outline:none;box-shadow:0 0 0 2px rgba(140,255,63,.45)}
.review-input{height:46px}
/* кастомная стрелка вместо нативной (та была «кривая»); ровная высота.
   Высокая специфичность (+ :hover/:focus) — чтобы autoreg-theme не перетирал
   background шорткатом #f6f6f6 и стрелка не пропадала при фокусе/наведении. */
.product-reviews-section .review-modal .review-select,
.product-reviews-section .review-modal .review-select:hover,
.product-reviews-section .review-modal .review-select:focus{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  height:46px;padding:0 42px 0 14px;cursor:pointer;line-height:normal;
  background-color:var(--color-slate-75);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;background-size:14px;
  text-overflow:ellipsis;
}
.review-textarea{resize:vertical;min-height:80px}
.review-char-count{font-size:11px;color:var(--sf-text-subtle);text-align:right}
.rating-input{display:flex;align-items:center;gap:6px}
.rating-input i{font-size:24px;color:var(--color-slate-240);cursor:pointer;transition:color .12s,transform .12s}
.rating-input i:hover,.rating-input i.ds-ic--fill{color:var(--color-star);transform:scale(1.05)}
.rating-text{font-size:13px;color:var(--color-slate-500);margin-left:6px}
.btn-submit-review{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;border:0;border-radius:13px;font-size:14.5px;font-weight:800;color:var(--color-lime-950);background:var(--color-lime-400);cursor:pointer;transition:background .15s,border-color .15s,color .15s,opacity .15s,transform .15s,outline .15s,outline-offset .15s;box-shadow:0 8px 18px rgba(143,244,81,.32)}
.btn-submit-review:hover{background:var(--color-lime-300)}
.btn-submit-review:disabled{opacity:.6;cursor:not-allowed}

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width:768px){
  .product-reviews-section .reviews-summary{grid-template-columns:1fr;gap:18px}
  .product-reviews-section .rating-big{justify-items:start}
}

/* 08-header-actions-affiliate.css */
/* ========================================
   AFFILIATE SHARE BUTTON & MODAL
   ======================================== */

/* === Affiliate Share Button (Legacy, outside Hero V3) === */

.product-detail-page .product-affiliate-share-btn:not(.product-hero-action) {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--color-gray-200);
    border-radius: 8px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease-out, background-color 0.15s ease-out, color 0.15s ease-out;
    flex-shrink: 0;
    color: var(--color-emerald-500);
    position: relative;
    padding: 0;
}

.product-detail-page .product-affiliate-share-btn:not(.product-hero-action):hover {
    border-color: var(--color-emerald-500);
    background: var(--color-green-50);
    color: var(--color-emerald-600);
}

.product-detail-page .product-affiliate-share-btn:not(.product-hero-action) i {
    font-size: 0.85rem;
    transition: transform 0.12s ease-out;
}

.product-detail-page .product-affiliate-share-btn:not(.product-hero-action):hover i {
    transform: scale(1.05);
}

.product-detail-page .product-affiliate-share-btn:not(.product-hero-action) .affiliate-rate-badge-small {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-emerald-500);
    color: var(--color-white);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.3rem;
    border-radius: 8px;
    border: 1.5px solid var(--color-white);
    line-height: 1;
    min-width: 20px;
    text-align: center;
}

/* === Affiliate Modal === */

@keyframes slideUp {from {
        opacity: 0;
        transform: translateY(20px);
    }to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */

/* Modal Body */

/* Info Section */

/* Commission Preview */

/* Affiliate Link Section */

.btn-copy-affiliate {
    min-width: 44px;
    padding: 0.75rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    background: var(--color-white);
    color: var(--color-gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.12s ease-out, border-color 0.12s ease-out, color 0.12s ease-out;
    flex-shrink: 0;
    box-sizing: border-box;
}

.btn-copy-affiliate:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--color-white);
}

.btn-copy-affiliate.copied {
    background: var(--color-emerald-500);
    border-color: var(--color-emerald-500);
    color: var(--color-white);
}

/* Social Share */

/* Modal Footer */

.btn-view-affiliate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.12s ease-out;
}

.btn-view-affiliate:hover {
    opacity: 0.9;
}

/* ========================================
   Affiliate Modal - Responsive
   ======================================== */

/* 15-share-modal.css */
/* ============================================================================
   PRODUCT DETAIL · SHARE / AFFILIATE MODAL (15-share-modal.css — РЕДИЗАЙН .sh-*)
   ----------------------------------------------------------------------------
   Стили модалки «Поделитесь и заработайте» (.sh-*) из product-redesign.
   Размечено под affiliate-modal.php (.sh-*). Ноль !important.
   ВКЛЮЧИТЬ в $product_detail_css_files как '15-share-modal.css?v=1' ПОСЛЕ 08.
   ============================================================================ */

/* токены (дублируем на .sh-ov, чтобы модалка не зависела от scope) */
.sh-ov{
  --cr-ink:var(--color-slate-800);--cr-ink2:var(--color-slate-600);--cr-muted:var(--color-slate-600);--cr-light:var(--color-slate-600);
  --cr-line:var(--color-slate-125);--cr-line2:var(--color-slate-150);--cr-soft:var(--color-slate-75);
  --cr-acc:var(--color-lime-400);--cr-acc-deep:var(--color-green-700);--cr-acc-tint:var(--color-lime-100);--cr-acc-ink:var(--color-lime-900);
  --cr-r:18px;--cr-r-md:13px;
}

.sh-ov{position:fixed;inset:0;z-index:var(--z-overlay);display:none;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.5);backdrop-filter:blur(4px)}
.sh-ov.open{display:flex;animation:shfade var(--dur-dialog) var(--ease-dialog)}
@keyframes shfade{from{opacity:0}to{opacity:1}}
.sh{width:100%;max-width:480px;max-height:calc(100vh - 60px);display:flex;flex-direction:column;background:var(--color-white);border-radius:var(--cr-r);overflow:hidden;box-shadow:0 40px 90px -24px rgba(15,23,42,.6);animation:shin var(--dur-dialog) var(--ease-dialog)}
@keyframes shin{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}

.sh__hd{display:flex;align-items:center;gap:12px;padding:18px 20px;border-bottom:1px solid var(--cr-line)}
.sh__hd .ic{width:42px;height:42px;flex:0 0 auto;border-radius:12px;display:grid;place-items:center;background:var(--cr-acc-tint);color:var(--cr-acc-deep);font-size:17px}
.sh__hd h3{flex:1;font-size:16px;font-weight:800;color:var(--cr-ink);line-height:1.25;margin:0}
.sh__x{width:38px;height:38px;border:0;border-radius:10px;background:var(--cr-soft);color:var(--cr-muted);cursor:pointer;display:grid;place-items:center;font-size:14px;transition:background .15s,color .15s,outline .15s,outline-offset .15s}
.sh__x:hover{background:var(--color-slate-138);color:var(--cr-ink)}

.sh__bd{padding:18px 20px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}
.sh__promo{display:flex;align-items:center;gap:13px;padding:14px 15px;border-radius:var(--cr-r-md);background:var(--cr-acc-tint);border:1px solid rgba(22,163,74,.2)}
.sh__promo .gift{width:40px;height:40px;flex:0 0 auto;border-radius:11px;background:var(--cr-acc-deep);color:var(--color-white);display:grid;place-items:center;font-size:16px}
.sh__promo p{font-size:13.5px;font-weight:600;color:var(--cr-acc-ink);line-height:1.45;margin:0}
.sh__promo b{font-weight:800;color:var(--cr-acc-deep)}

.sh__lbl{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--cr-light)}
.sh__lbl i{color:var(--cr-acc-deep);font-size:12px}

.sh__est{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-radius:var(--cr-r-md);background:var(--cr-soft);margin-top:9px}
.sh__est .nm{font-size:13.5px;font-weight:700;color:var(--cr-ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sh__est .vals{display:flex;align-items:center;gap:9px;flex:0 0 auto}
.sh__est .base{font-size:13px;font-weight:600;color:var(--cr-muted)}
.sh__est .arr{color:var(--cr-light);font-size:11px}
.sh__est .earn{font-size:14px;font-weight:800;color:var(--cr-acc-deep)}

.sh__link{display:flex;gap:8px;margin-top:9px}
.sh__link input{flex:1;min-width:0;height:50px;border:0;background:var(--cr-soft);border-radius:var(--cr-r-md);padding:0 16px;font-family:inherit;font-size:13.5px;font-weight:600;color:var(--cr-ink2)}
.sh__link input:focus{outline:none;box-shadow:0 0 0 2px rgba(140,255,63,.45)}
.sh__copy{width:50px;flex:0 0 auto;border:0;border-radius:var(--cr-r-md);background:var(--cr-ink);color:var(--color-white);cursor:pointer;font-size:15px;transition:background .15s,outline .15s,outline-offset .15s}
.sh__copy:hover{background:var(--color-slate-900)}
.sh__copy.done{background:var(--cr-acc-deep)}
.sh__hint{font-size:12px;font-weight:500;color:var(--cr-muted);margin-top:8px}

.sh__social{display:flex;gap:10px;flex-wrap:wrap;margin-top:9px}
.sh__soc{width:46px;height:46px;border:0;border-radius:50%;color:var(--color-white);cursor:pointer;display:grid;place-items:center;font-size:18px;text-decoration:none;transition:transform .15s,filter .15s}
.sh__soc:hover{transform:translateY(-2px);filter:brightness(1.06)}
.sh__soc.fb{background:var(--color-facebook)}.sh__soc.tw{background:#1d9bf0}.sh__soc.tg{background:var(--color-telegram)}.sh__soc.wa{background:#25d366}.sh__soc.li{background:var(--color-linkedin)}.sh__soc.rd{background:#ff4500}.sh__soc.pin{background:#bd081c}.sh__soc.em{background:var(--color-slate-500)}

.sh__guestnote{display:flex;align-items:flex-start;gap:10px;padding:13px 15px;border-radius:var(--cr-r-md);background:var(--cr-soft);border:1px dashed var(--cr-line2);font-size:13px;font-weight:600;color:var(--cr-muted);line-height:1.45}
.sh__guestnote i{color:var(--cr-acc-deep);font-size:14px;margin-top:1px}

.sh__ft{padding:16px 20px;border-top:1px solid var(--cr-line)}
.sh__stat{display:inline-flex;align-items:center;justify-content:center;gap:9px;width:100%;height:52px;border:0;border-radius:var(--cr-r-md);background:var(--cr-acc);color:var(--color-lime-950);font-family:inherit;font-size:14.5px;font-weight:800;cursor:pointer;text-decoration:none;box-shadow:0 8px 18px rgba(143,244,81,.32);transition:background .18s,transform .18s}
.sh__stat:hover{background:var(--color-lime-300);transform:translateY(-1px)}

/* The windows' one motion (19.11): --dur-dialog and --ease-dialog; none with reduced motion. */
@media (prefers-reduced-motion:reduce){.sh-ov.open,.sh{animation:none}}

@media (max-width:480px){
  .sh{max-height:95vh}
  .sh__soc{width:42px;height:42px;font-size:16px}
}

/* 10-flash-sale.css */
@keyframes boltFlash {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.62;
    }
}

/* Flash Sale plan price */
.plan-current-price.flash-price {
    color: #ba1a1a !important;
}

.product-detail-page .plan-discount-badge.flash-discount {
    align-items: center;
    background: #ffdad6;
    border: 1px solid rgba(186, 26, 26, 0.16);
    border-radius: 999px;
    color: #ba1a1a;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    min-height: 24px;
    padding: 5px 9px;
    white-space: nowrap;
}

.flash-sale-badge-inline {
    align-items: center;
    background: #fff3cd;
    border: 1px solid rgba(255, 159, 28, 0.18);
    border-radius: 999px;
    color: #a15c00;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    gap: 5px;
    line-height: 1;
    min-height: 26px;
    padding: 6px 10px;
    white-space: nowrap;
}

.flash-sale-badge-inline i {
    color: #ff9f1c;
    font-size: 0.75rem;
    line-height: 1;
}

/* Reused Flash Sale countdown visual language from the home page widget */
.product-flash-sale-countdown {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 22px;
}

.product-flash-sale-countdown .flashsale-timer {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: inline-flex;
    gap: 12px;
    max-width: 100%;
    min-height: 66px;
    padding: 9px 12px;
    white-space: nowrap;
}

.product-flash-sale-countdown .timer-label {
    color: #5f6670;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 124px;
    min-width: 116px;
}

.product-flash-sale-countdown .timer-countdown {
    align-items: center;
    display: flex;
    gap: 7px;
}

.product-flash-sale-countdown .timer-block {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: 48px;
    min-width: 76px;
    padding: 7px 9px;
    text-align: center;
}

.product-flash-sale-countdown .timer-number {
    align-items: center;
    color: var(--color-neutral-915);
    display: inline-flex;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    min-height: 21px;
    min-width: 2ch;
    overflow: visible;
    width: 2ch;
}

.product-flash-sale-countdown .timer-text {
    color: #858c96;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.15;
    margin-top: 5px;
    min-height: 12px;
    text-transform: none;
}

.product-flash-sale-countdown .timer-colon {
    color: var(--color-neutral-915);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    margin: 0;
}

@media (max-width: 768px) {
    .product-flash-sale-countdown {
        justify-content: stretch;
    }

    .product-flash-sale-countdown .flashsale-timer {
        width: 100%;
    }

    .product-flash-sale-countdown .timer-countdown {
        flex: 1;
        justify-content: center;
    }

    .product-flash-sale-countdown .timer-block {
        align-items: center;
        flex: 1;
        justify-content: center;
        min-width: 0;
        text-align: center;
    }

    .product-flash-sale-countdown .timer-number {
        justify-content: center;
        margin: 0 auto;
        min-width: 0;
        text-align: center;
        width: 100%;
    }

    .product-flash-sale-countdown .t-digit-group {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .product-flash-sale-countdown .flashsale-timer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .product-flash-sale-countdown .timer-label {
        max-width: none;
        min-width: 0;
    }

    .product-flash-sale-countdown .timer-countdown {
        width: 100%;
    }

    .product-flash-sale-countdown .timer-block {
        padding: 7px 6px;
    }
}

/* 13-content-tabs.css */
/* ============================================================
   Datamoll · Product Content Tabs (13-content-tabs.css) — REDESIGN
   Блок: Описание / Правила / Возврат / FAQ
   Разметка: views/client/product/content-tabs.php
   --------------------------------------------------------------
   Что изменилось vs старой версии:
   1) Чек-лист: голая зелёная «птичка» → ВАРИАНТ D · минимал-рейл
      (маркер-точка с лаймовым кольцом, компактный ритм, без жирных меток).
   2) Шапка табов: добавлен «бегущий» индикатор .pct-runner (едет под
      активный таб). Статичный border-bottom больше не используется.
   3) Переходы: панель — fade+slide, пункты появляются каскадом (stagger),
      всё под @media (prefers-reduced-motion: no-preference).
   Тёмная тема сохранена нашим блоком в конце файла (редизайн её не трогает).
   ============================================================ */

.storefront-autoreg .product-content-tabs {
    background: var(--color-white);
    padding: 6px 0 0;
}

/* ── лента табов (шапка остаётся) ── */
.storefront-autoreg .pct-tablist {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 14px 22px 0;
    position: relative;            /* якорь для бегущего индикатора */
}
.storefront-autoreg .pct-tab {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-slate-500);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px 13px;
    border-radius: 11px 11px 0 0;
    position: relative;
    transition: color .18s, background-color .18s;
}
.storefront-autoreg .pct-tab i { font-size: 13px; opacity: .85; transition: color .18s, opacity .18s; }
.storefront-autoreg .pct-tab:hover { color: var(--color-slate-800); background: var(--color-slate-75); }
.storefront-autoreg .pct-tab.is-active { color: var(--color-slate-800); }
.storefront-autoreg .pct-tab.is-active i { color: var(--color-green-600); opacity: 1; }

/* бегущий индикатор (позиция/ширина задаётся из JS) */
.storefront-autoreg .pct-runner {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--color-green-600), var(--color-lime-400));
    transition: left .34s cubic-bezier(.22,1,.36,1), width .34s cubic-bezier(.22,1,.36,1);
    pointer-events: none;
}
.storefront-autoreg .pct-runner.is-init { transition: none; }  /* без «прыжка» при первой раскладке */

.storefront-autoreg .pct-rule { height: 1px; background: var(--color-slate-125); margin-top: -1px; }

/* ── панель ── */
.storefront-autoreg .pct-panel { padding: 22px; }
.storefront-autoreg .pct-panel[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
    .storefront-autoreg .pct-panel.is-active { animation: pctPaneIn .42s cubic-bezier(.22,1,.36,1) both; }
    @keyframes pctPaneIn {
        from { opacity: 0; transform: translateY(8px); }
        to   { opacity: 1; transform: none; }
    }
    /* каскад пунктов — база видима, эффект только как «плюс» */
    .storefront-autoreg .pct-panel.is-active .product-info-checklist li { animation: pctItemIn .5s cubic-bezier(.22,1,.36,1) both; }
    @keyframes pctItemIn {
        from { opacity: 0; transform: translateY(10px); }
        to   { opacity: 1; transform: none; }
    }
    .storefront-autoreg .product-info-checklist li:nth-child(1){animation-delay:.04s}
    .storefront-autoreg .product-info-checklist li:nth-child(2){animation-delay:.09s}
    .storefront-autoreg .product-info-checklist li:nth-child(3){animation-delay:.14s}
    .storefront-autoreg .product-info-checklist li:nth-child(4){animation-delay:.19s}
    .storefront-autoreg .product-info-checklist li:nth-child(5){animation-delay:.24s}
    .storefront-autoreg .product-info-checklist li:nth-child(6){animation-delay:.29s}
    .storefront-autoreg .product-info-checklist li:nth-child(7){animation-delay:.34s}
    .storefront-autoreg .product-info-checklist li:nth-child(8){animation-delay:.39s}
    .storefront-autoreg .product-info-checklist li:nth-child(n+9){animation-delay:.42s}
}

.storefront-autoreg .pct-content {
    color: var(--color-slate-700);
    font-size: 14.5px;
    line-height: 1.7;
}
.storefront-autoreg .pct-content > *:first-child { margin-top: 0; }
.storefront-autoreg .pct-content > *:last-child { margin-bottom: 0; }
.storefront-autoreg .pct-content p { margin: 0 0 12px; }
.storefront-autoreg .pct-content strong, .storefront-autoreg .pct-content b { font-weight: 500; color: var(--color-slate-700); }
.storefront-autoreg .pct-content a { color: var(--color-green-600); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.storefront-autoreg .pct-content h3, .storefront-autoreg .pct-content h4 { font-size: 16px; font-weight: 800; margin: 18px 0 10px; color: var(--color-slate-800); }
/* «Формат: …» — value оборачивается в <span class="product-format-value">
   (см. datamoll_product_content_tab_render_line_html). Зелёный код-чип. */
.storefront-autoreg .product-format-value {
    display: inline;
    font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-green-700); /* 4.65 on the chip (was #16a34a, 3.06) */
    background: var(--color-lime-100);
    border: 1px solid rgba(22, 163, 74, .22);
    border-radius: 7px;
    padding: 3px 9px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* ── чек-лист: ВАРИАНТ D · минимал-рейл (маркер-точка + хейрлайны) ── */
.storefront-autoreg .pct-content ul,
.storefront-autoreg .product-info-checklist {
    list-style: none;
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.storefront-autoreg .pct-content li,
.storefront-autoreg .product-info-checklist li {
    position: relative;
    padding: 5px 0 5px 26px;
    font-weight: 500;
    color: var(--color-slate-700);
    line-height: 1.5;
}
/* маркер-точка с лаймовым кольцом */
.storefront-autoreg .pct-content li::before,
.storefront-autoreg .product-info-checklist li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-green-600);
    box-shadow: 0 0 0 4px var(--color-lime-100);
}
.storefront-autoreg .pct-content li::after,
.storefront-autoreg .product-info-checklist li::after { content: none; }

/* нумерованные списки — без маркеров-точек */
.storefront-autoreg .pct-content ol {
    display: block;
    margin: 0 0 12px 20px;
    padding-left: 18px;
    list-style: decimal;
}
.storefront-autoreg .pct-content ol li { padding: 0 0 6px; border-bottom: 0; color: var(--color-slate-700); }
.storefront-autoreg .pct-content ol li:last-child { padding-bottom: 0; }
.storefront-autoreg .pct-content ol li::before,
.storefront-autoreg .pct-content ol li::after { content: none; }

/* инлайн-код формата выдачи (login:password:...) */
.storefront-autoreg .pct-content code {
    font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-green-600);
    background: var(--color-lime-100);
    padding: 3px 9px;
    border-radius: 7px;
    border: 1px solid rgba(22, 163, 74, .22);
    white-space: nowrap;
}
.storefront-autoreg .pct-content pre {
    background: var(--color-slate-75);
    border: 1px solid var(--color-slate-150);
    border-radius: 12px;
    padding: 14px 16px;
    overflow-x: auto;
    margin: 0 0 12px;
}
.storefront-autoreg .pct-content pre code { background: none; border: 0; padding: 0; white-space: pre; color: var(--color-slate-800); }

/* FAQ как пары вопрос/ответ */
.storefront-autoreg .pct-panel[data-panel="faq"] .pct-content p strong:first-child {
    display: inline-block;
    color: var(--color-slate-900);
}

/* mobile */
@media (max-width: 680px) {
    .storefront-autoreg .pct-tablist { padding: 12px 14px 0; gap: 2px; }
    .storefront-autoreg .pct-tab { padding: 10px 12px 12px; font-size: 13px; }
    .storefront-autoreg .pct-panel { padding: 18px 16px; }
    .storefront-autoreg .pct-content li,
    .storefront-autoreg .product-info-checklist li { padding-left: 24px; }

    /* One row of tabs: wrapped rows left the runner under the wrong tab (it only
       follows offsetLeft). Tabs share the width; a long translation scrolls. */
    .storefront-autoreg .pct-tablist { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .storefront-autoreg .pct-tablist::-webkit-scrollbar { display: none; }
    .storefront-autoreg .pct-tab { flex: 1 0 auto; justify-content: center; white-space: nowrap; }
    /* inside the scrolling row the runner sits fully inside, not 1px below */
    .storefront-autoreg .pct-runner { bottom: 0; }
}
/* Narrow phones: the icons go so all four tabs fit in one row. */
@media (max-width: 560px) {
    .storefront-autoreg .pct-tablist { padding: 10px 10px 0; gap: 0; }
    .storefront-autoreg .pct-tab { padding: 10px 8px 12px; }
    .storefront-autoreg .pct-tab i { display: none; }
}
/* 320-px phones: a little less padding keeps «Описание · Правила · Возврат · FAQ» in view. */
@media (max-width: 360px) {
    .storefront-autoreg .pct-tablist { padding: 10px 8px 0; }
    .storefront-autoreg .pct-tab { padding: 10px 6px 12px; font-size: 12.5px; }
}

/* 14-restock-notify.css */
/* ============================================================
   Datamoll — Restock Notify (Telegram-only), redesign
   Файл: mod/css/product-detail/14-restock-notify.css
   Подключается из product.php (уже в списке стилей).
   Самодостаточный — токены с фолбэками, не зависит от profile-redesign.
   ============================================================ */
.restock-scope{
  --rn-ink:var(--color-lime-975); --rn-slate:var(--color-slate-600); --rn-muted:var(--color-slate-500); --rn-light:var(--color-slate-400);
  --rn-line:var(--color-slate-150); --rn-line2:#dfe5ec; --rn-surface:var(--color-white); --rn-soft2:var(--color-slate-125); --rn-soft:var(--color-slate-75);
  --rn-green:var(--color-green-600); --rn-green-deep:var(--color-green-700); --rn-acc:var(--color-lime-410); --rn-acc-press:#7bef2a;
  --rn-green-tint:#e9f7df; --rn-green-tint2:#f1fbe9; --rn-green-border:#cdeeb8;
  --rn-tg:var(--color-telegram); --rn-tg-tint:#e7f4fb; --rn-red:var(--color-red-600);
  --rn-r:18px; --rn-r-sm:12px;
}

/* ---- trigger buttons (hero / order form) ---- */
.restock-cta{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;height:52px;
  border-radius:14px;font-family:inherit;font-size:15px;font-weight:800;cursor:pointer;border:2px solid transparent;
  transition:background .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease,transform .16s ease,outline .16s ease,outline-offset .16s ease;}
.restock-cta i{font-size:16px}

/* ---- overlay + modal ---- */
.restock-overlay{position:fixed;inset:0;z-index:var(--z-overlay);display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(30,41,59,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity var(--dur-dialog) var(--ease-dialog),visibility 0s var(--dur-dialog);}
.restock-overlay.is-open{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
.restock-modal{width:100%;max-width:520px;background:var(--rn-surface);border-radius:var(--rn-r);
  box-shadow:0 30px 70px -20px rgba(15,30,12,.4);overflow-x:hidden;overflow-y:auto;
  max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overscroll-behavior:contain;
  transform:translateY(12px);transition:transform var(--dur-dialog) var(--ease-dialog);}
.restock-overlay.is-open .restock-modal{transform:translateY(0)}

.restock-head{display:flex;align-items:center;gap:14px;padding:var(--space-20);border-bottom:1px solid var(--rn-line);}
.restock-ic{flex:0 0 50px;width:50px;height:50px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;font-size:21px;}
.restock-ic--bell{background:var(--rn-green-tint);color:var(--rn-green)}
.restock-ic--tg{background:linear-gradient(180deg,var(--color-telegram-light),var(--color-telegram));color:var(--color-white)}
.restock-head h3{flex:1;margin:0;font-size:22px;font-weight:800;letter-spacing:-.01em;color:var(--rn-ink);}
.restock-x{flex:0 0 auto;width:38px;height:38px;border:0;border-radius:12px;background:var(--rn-soft2);color:var(--rn-muted);
  font-size:16px;cursor:pointer;transition:background .15s ease,color .15s ease,outline .15s ease,outline-offset .15s ease,visibility .15s ease;}
.restock-x:hover{background:var(--color-red-75);color:var(--rn-red)}

.restock-body{padding:var(--space-20);}
.restock-lead{margin:0 0 18px;font-size:16px;font-weight:600;line-height:1.55;color:var(--rn-slate);}

.restock-info{display:flex;gap:13px;align-items:flex-start;padding:16px 18px;border-radius:var(--rn-r-sm);font-weight:700;line-height:1.5;font-size:15px;margin-bottom:18px;}
.restock-info i{margin-top:2px;font-size:17px;flex:0 0 auto}
.restock-info .i{margin-top:3px;flex:0 0 auto}
.restock-info--tg{background:var(--rn-tg-tint);color:#0f6c97}
.restock-info--tg i,.restock-info--tg .i{color:var(--rn-tg)}
.restock-info .u{font-weight:800}

.restock-btn{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;height:var(--dialog-btn-h);border:0;border-radius:14px;
  font-family:inherit;font-size:16px;font-weight:800;cursor:pointer;transition:background .16s ease,transform .16s ease,outline .16s ease,outline-offset .16s ease,filter .16s ease,visibility .16s ease;text-decoration:none;}
.restock-btn i{font-size:17px}
.restock-btn--green{background:var(--rn-acc);color:var(--rn-ink);box-shadow:0 12px 26px rgba(123,239,42,.42);}
.restock-btn--green:hover{background:var(--rn-acc-press);transform:translateY(-1px)}
.restock-btn--tg{background:linear-gradient(180deg,var(--color-telegram-light),var(--color-telegram));color:var(--color-white);box-shadow:0 12px 26px rgba(34,158,217,.4);}
.restock-btn--tg:hover{filter:brightness(1.05);transform:translateY(-1px)}
.restock-btn--wide{width:100%}
.restock-sub{margin:14px 0 0;text-align:center;font-size:13px;font-weight:600;color:var(--rn-muted);}
.restock-sub a{color:var(--rn-green-deep);font-weight:800;text-decoration:none;cursor:pointer;transition:color .15s ease}
.restock-sub a:hover,.restock-sub a:focus-visible{color:var(--rn-green-deep);text-decoration:none}

/* ---- toggle item (manage state) ---- */
.restock-item{display:flex;align-items:center;gap:13px;padding:18px;border:1.5px solid var(--rn-line2);
  border-radius:var(--rn-r-sm);background:var(--rn-soft);margin-bottom:18px;
  transition:background-color .28s ease,border-color .28s ease;}
.restock-item.is-subscribed{background:var(--rn-green-tint2);border-color:var(--rn-green-border)}
.restock-item__ic{flex:0 0 46px;width:46px;height:46px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;
  font-size:18px;color:var(--color-white);background:var(--rn-light);transition:background-color .28s ease;}
.restock-item.is-subscribed .restock-item__ic{background:var(--rn-green)}
.restock-item__txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.restock-item__t{display:block;font-size:14.5px;font-weight:800;color:var(--rn-ink)}
.restock-item__s{display:block;font-size:12.5px;font-weight:600;color:var(--rn-muted)}
/* Both translations participate in layout, keeping each text slot at its larger height. */
.restock-copy{display:grid}
.restock-copy > [data-restock-copy]{grid-area:1 / 1;min-width:0;
  transition:opacity .22s ease,transform .28s cubic-bezier(.22,1,.36,1),visibility 0s;}
.restock-copy > [aria-hidden="true"]{opacity:0;visibility:hidden;transform:translateY(4px);pointer-events:none;
  transition-delay:0s,0s,.28s;}
.restock-copy > [aria-hidden="false"]{opacity:1;visibility:inherit;transform:translateY(0)}
.restock-sw{flex:0 0 46px;position:relative;width:46px;height:27px;border:0;padding:0;border-radius:999px;
  appearance:none;background:var(--color-slate-300);cursor:pointer;
  transition:background-color .28s ease,opacity .2s ease,box-shadow .2s ease;}
.restock-sw::after{content:"";position:absolute;top:3px;left:3px;width:21px;height:21px;border-radius:50%;background:var(--color-white);
  box-shadow:0 2px 5px rgba(0,0,0,.2);transition:transform .3s cubic-bezier(.22,1,.36,1);}
.restock-sw.on{background:var(--rn-green)}
.restock-sw.on::after{transform:translateX(19px)}
.restock-sw.is-busy{opacity:.6;pointer-events:none}
.restock-sw:focus-visible{outline:3px solid var(--rn-green);outline-offset:4px}

/* ---- success ---- */
@keyframes rnPop2{from{transform:scale(.4)}to{transform:scale(1)}}

.restock-msg{font-size:13.5px;font-weight:700;padding:11px 14px;border-radius:var(--rn-r-sm);margin-bottom:14px;}
.restock-msg.is-error{background:var(--color-red-75);color:var(--rn-red)}

.restock-hidden{display:none!important}
@media (max-width:560px){.restock-head h3{font-size:19px}.restock-modal{max-width:none}}
@media (prefers-reduced-motion:reduce){
  .restock-overlay,.restock-modal,.restock-copy > [data-restock-copy],
  .restock-item,.restock-item__ic,.restock-sw,.restock-sw::after{transition:none}
  .restock-modal,.restock-copy > [data-restock-copy]{transform:none}
}

/* 16-characteristics.css */
/* ============================================================
   Datamoll · Product «Characteristics» (16-characteristics.css)
   Markup: views/client/product/characteristics.php, inside the header card.
   Two columns read top to bottom with a line between them; the name and the
   value are joined by a dashed leader; six fields visible, the rest behind
   «Еще N характеристик». One column on narrow cards. Flags for countries,
   Lucide icons for values. Also: the long description folds into «Show more»
   on phones, and the dark theme of the header card.
   ============================================================ */

.product-characteristics {
    --pch-ink: var(--color-slate-800);
    --pch-muted: var(--color-slate-500);
    --pch-line: var(--color-slate-200);
    --pch-dash: var(--color-slate-300);
    --pch-icon: var(--color-green-600);
    --pch-link: var(--color-green-650);
    --pch-hover: #f0fbe8;
    position: relative;
    padding: 16px 24px 18px;
    container-type: inline-size;
}
/* The visible title is off by design; the heading stays for screen readers. */
.pch-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.pch-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pch-col { margin: 0; min-width: 0; }
.pch-col:first-child { padding-right: 36px; }
.pch-col + .pch-col { padding-left: 36px; border-left: 1px solid var(--pch-line); }
.pch-row {
    display: flex;
    align-items: baseline;
    gap: 0;
    min-height: 42px;
    padding: 8px 0;
}
.pch-row dt {
    display: flex;
    align-items: baseline;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--pch-muted);
    white-space: nowrap;
}
.pch-row dt::after {
    content: "";
    flex: 1 1 auto;
    min-width: 24px;
    height: 1px;
    margin: 0 14px;
    background: linear-gradient(90deg, var(--pch-dash) 0 6px, transparent 6px 11px) 0 0 / 11px 1px repeat-x;
    transform: translateY(-4px);
}
.pch-row dd {
    margin: 0;
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 4px 16px;
    min-width: 0;
    text-align: right;
}
/* Scoped twice: global link colours must not win over these links. */
.product-characteristics .pch-value {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pch-ink);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
.product-characteristics a.pch-value:hover { color: var(--pch-link); border-bottom-color: rgba(22, 134, 60, .35); }
.pch-flag { width: 18px; height: 12px; flex: 0 0 auto; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.pch-icon { width: 14px; height: 14px; flex: 0 0 auto; color: var(--pch-icon); }

/* «Еще N характеристик»: the rest opens in place, rows fade in. */
.pch-rest-wrap[hidden] { display: none; }
.pch-rest { animation: pchRestIn .32s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes pchRestIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.product-characteristics .pch-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px 6px 4px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--pch-link);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease;
}
.product-characteristics .pch-toggle:hover { background: var(--pch-hover); }
.pch-toggle svg { transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
.pch-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Narrow cards (tablets in portrait, phones): one column in the category order. */
@container (max-width: 640px) {
    .pch-cols { grid-template-columns: minmax(0, 1fr); }
    .pch-col:first-child { padding-right: 0; }
    .pch-col + .pch-col { padding-left: 0; border-left: 0; }
    .pch-row { min-height: 38px; padding: 7px 0; }
    .pch-row dt { white-space: normal; }
    .pch-row dt::after { margin: 0 10px; min-width: 16px; }
}

@media (max-width: 640px) {
    .product-characteristics { padding: 10px 16px 14px; }
    .pch-row dt { font-size: 13px; }
    .product-characteristics .pch-value { font-size: 14px; }
}

@media (max-width: 768px) {
    /* Phones: the long description folds; the text stays in HTML. */
    .pct-panel.pch-collapsible .pct-content { position: relative; overflow: hidden; transition: max-height .5s cubic-bezier(.22, 1, .36, 1); }
    .pct-panel.pch-collapsible.is-collapsed .pct-content {
        max-height: 260px;
        -webkit-mask-image: linear-gradient(var(--color-black) 62%, transparent);
        mask-image: linear-gradient(var(--color-black) 62%, transparent);
    }
    .pch-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 2px 18px 16px;
        padding: 8px 0;
        border: 0;
        background: none;
        color: var(--color-green-650);
        font: inherit;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
    }
    .pch-more svg { width: 16px; height: 16px; transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
    .pct-panel.pch-collapsible:not(.is-collapsed) .pch-more svg { transform: rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
    .pct-panel.pch-collapsible .pct-content, .pch-more svg, .pch-toggle svg { transition: none; }
    .pch-rest { animation: none; }
}
/* 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/product-detail/11-related-products.css */
/* ============================================================================
   PRODUCT DETAIL · RELATED PRODUCTS (11-related-products.css — greenfield)
   ----------------------------------------------------------------------------
   1:1 перенос блока «Похожие» из эталона export/reference/product-page.html
   (.pp-similar / .pc) на РЕАЛЬНЫЕ классы прод-виджета related-products.php
   (.related-products-section / .product-card.pc-v5 / pc-watermark / pc-tile…).
   Всё scoped под .related-products-section — каталог/главная НЕ затрагиваются.
   ============================================================================ */

.related-products-section{
  --cr-ink:var(--color-slate-800);--cr-ink2:var(--color-slate-600);--cr-muted:var(--color-slate-500);--cr-light:var(--color-slate-400);
  --cr-text-subtle:var(--sf-text-subtle);--cr-acc-text:var(--sf-accent-text);
  --cr-line:var(--color-slate-125);--cr-line2:var(--color-slate-150);--cr-soft:var(--color-slate-75);
  --cr-acc:var(--color-lime-400);--cr-acc-deep:var(--color-green-600);--cr-acc-tint:var(--color-lime-110);--cr-red:var(--color-red-500);--cr-star:var(--color-star);
  --cr-r:18px;--cr-shadow:0 1px 2px rgba(15,23,42,.05),0 12px 28px rgba(15,23,42,.045);
  --banner:linear-gradient(135deg,#e9fbdc 0%,#f5fbee 100%);
  margin-top:clamp(24px,3vw,40px);padding:0;border-top:0;
}

/* заголовок: «Похожие товары» слева, справа «Открыть» — каталог раздела с
   фильтрами этого товара (canvas «Страница товара»); подзаголовок скрыт */
.related-products-section .products-section-header{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.related-products-section .products-section-header-left{display:flex;align-items:baseline;gap:0;flex:0 1 auto;min-width:0}
.related-products-section .products-section-title{margin:0;font-size:clamp(18px,2vw,22px);font-weight:800;color:var(--cr-ink);display:inline-flex;align-items:baseline}
.related-products-section .products-section-title i{display:none}
.related-products-section .products-section-subtitle{display:none}
.related-products-section .btn-explore{
  margin-left:auto;flex:0 0 auto;height:42px;min-height:0;padding:0 14px;border:1px solid rgba(15,23,42,.08);border-radius:12px;
  background:var(--color-white);color:var(--cr-ink);display:inline-flex;align-items:center;gap:8px;
  font-size:13.5px;font-weight:700;text-decoration:none;white-space:nowrap;
  box-shadow:0 4px 12px rgba(15,23,42,.05);transition:box-shadow .18s,transform .18s;
}
.related-products-section .btn-explore .pd-ic{display:block;color:var(--color-green-650);transition:transform .3s cubic-bezier(.22,1,.36,1)}
.related-products-section .btn-explore:hover{color:var(--cr-ink);box-shadow:0 6px 16px rgba(15,23,42,.1);transform:translateY(-1px)}
.related-products-section .btn-explore:hover .pd-ic{transform:translateX(2px)}
@media (prefers-reduced-motion:reduce){.related-products-section .btn-explore,.related-products-section .btn-explore .pd-ic{transition:none}}
/* Phones: the theme stacks section headers into a column and the rule above centred it, so
   «Открыть» sat alone on its own row under a centred title. One line: title left, button right. */
@media (max-width:768px){
  .storefront-autoreg .related-products-section{margin-top:0}
  .storefront-autoreg .related-products-section .products-section-header{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:0;margin-bottom:4px}
  .storefront-autoreg .related-products-section .products-section-header-left{flex:1 1 auto}
  .storefront-autoreg .related-products-section .products-section-title{font-size:19px}
  .storefront-autoreg .related-products-section .btn-explore{height:36px;padding:0 12px;border-radius:11px;font-size:13px;gap:6px}
}

/* горизонтальный скролл, фикс-ширина карточек (как .pp-similar__grid) */
.related-products-section .products-grid{
  display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:248px;
  /* extra padding so the card hover-shadow (0 16px 34px) isn't clipped by overflow-x
     (which forces overflow-y to clip too) */
  gap:14px;overflow-x:auto;padding:10px 10px 32px;scroll-snap-type:x proximity;scrollbar-width:thin;
}

/* карточка (.pc) */
.related-products-section .product-card.pc-v5{
  scroll-snap-align:start;display:flex;flex-direction:column;background:var(--color-white);border:0;
  border-radius:var(--cr-r);box-shadow:var(--cr-shadow);overflow:hidden;cursor:pointer;
  transition:transform .15s,box-shadow .15s;
}
.related-products-section .product-card.pc-v5:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(15,23,42,.1)}
.related-products-section .product-card.pc-v5 .product-card-link{flex:1;display:flex;flex-direction:column}

/* баннер (.pc__banner) */
.related-products-section .pc-v5 .product-card-image{position:relative;width:100%;height:auto;padding-top:40%;overflow:hidden;background:var(--banner);display:block;border:0}
.related-products-section .pc-v5 .product-card-image .pc-watermark{position:absolute;right:-14px;bottom:-22px;top:auto;left:auto;width:auto;height:auto;font-size:88px;font-weight:900;letter-spacing:-.05em;color:var(--cr-acc-deep);opacity:.13;transform:rotate(-12deg);line-height:.8;pointer-events:none;display:flex;align-items:center;justify-content:center;z-index:1}
/* watermark-картинка (иконка категории): явный размер вместо width:auto (иначе 0×0) */
.related-products-section .pc-v5 .product-card-image img.pc-watermark{width:150px;height:150px;font-size:0;object-fit:contain;opacity:.14;transform:rotate(-12deg);top:6px;right:-28px;bottom:auto;left:auto;transition:transform .25s ease,opacity .25s ease}
.related-products-section .pc-v5:hover .product-card-image img.pc-watermark{transform:rotate(-12deg) scale(1.06);opacity:.18}
.related-products-section .pc-v5 .product-card-image .pc-tile{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:56px;height:56px;border-radius:14px;background:var(--color-white);box-shadow:0 8px 18px rgba(15,23,42,.12);display:grid;place-items:center;z-index:2;font-size:26px;color:var(--cr-acc-deep)}
.related-products-section .pc-v5 .product-card-image .pc-tile img{width:76%;height:76%;object-fit:contain}
/* Custom product image in the tile is capped to 64% by product-card-v5.css — make
   it larger here (loads after, equal specificity wins) so the custom icon is bigger. */
.related-products-section .pc-v5 .product-card-image .pc-tile img.pc-tile-img--custom{width:auto;height:auto;max-width:84%;max-height:84%;border-radius:11px}
.related-products-section .pc-v5 .product-card-image .pc-cat{position:absolute;left:80px;top:50%;transform:translateY(-50%);z-index:2;display:inline-flex;align-items:center;gap:5px;max-width:calc(100% - 96px);height:24px;padding:0 10px;border-radius:8px;background:rgba(255,255,255,.82);backdrop-filter:blur(3px);color:var(--color-gray-800);font-size:11.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 2px 6px rgba(15,23,42,.08)}
.related-products-section .pc-v5 .product-card-image .pc-cat i{font-size:9px;color:#9aa6b6}
.related-products-section .pc-v5 .product-card-image .pc-disc{display:none}

/* быстрые действия (.pc__actions) */
.related-products-section .pc-v5 .product-card-actions{position:absolute;top:11px;right:11px;z-index:6;display:inline-flex;flex-direction:column-reverse;align-items:center;gap:8px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-2px) scale(.96);transition:opacity .18s,visibility .18s,transform .18s}
.related-products-section .product-card.pc-v5:hover .product-card-actions,
.related-products-section .product-card.pc-v5:focus-within .product-card-actions,
.related-products-section .pc-v5 .product-card-actions.has-active,
.related-products-section .pc-v5 .product-card-actions:has(.product-restock-card-btn.is-subscribed){opacity:1;visibility:visible;pointer-events:auto;transform:none}
.related-products-section .pc-v5 .product-favorite-btn,
.related-products-section .pc-v5 .product-cart-btn,
.related-products-section .pc-v5 .product-restock-card-btn{position:relative;top:auto;right:auto;width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 4px 12px rgba(15,23,42,.14);color:var(--color-gray-400);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;opacity:1;visibility:visible;pointer-events:auto;transform:none}
.related-products-section .pc-v5 .product-cart-btn:hover,
.related-products-section .pc-v5 .product-cart-btn.cart-just-added,
.related-products-section .pc-v5 .product-restock-card-btn:hover,
.related-products-section .pc-v5 .product-restock-card-btn.is-subscribed,
.related-products-section .pc-v5 .product-restock-card-btn.restock-just-added{background:var(--color-lime-110);color:var(--cr-acc-text)}
.related-products-section .pc-v5 .product-cart-btn:hover i{color:var(--cr-acc-deep)}
.related-products-section .pc-v5 .product-restock-card-btn:hover i,
.related-products-section .pc-v5 .product-restock-card-btn.is-subscribed i,
.related-products-section .pc-v5 .product-restock-card-btn.restock-just-added i{color:var(--cr-acc-deep)}
.related-products-section .pc-v5 .product-favorite-btn:hover{color:var(--cr-red)}
.related-products-section .pc-v5 .product-favorite-btn:hover i{color:var(--cr-red)}
.related-products-section .pc-v5 .product-favorite-btn.active{background:var(--color-red-100);color:var(--cr-red)}
.related-products-section .pc-v5 .product-favorite-btn.active i{color:var(--cr-red)}
.related-products-section .pc-v5 .product-favorite-btn i,
.related-products-section .pc-v5 .product-cart-btn i,
.related-products-section .pc-v5 .product-restock-card-btn i{font-size:13px;color:var(--color-gray-400)}

/* The related-products stylesheet loads after the shared card component and
   intentionally owns a more specific hover rule. Re-assert the touch contract
   here so inactive hearts do not make the whole action rail disappear. */
@media (hover:none), (pointer:coarse), (max-width:768px){
  .related-products-section .pc-v5 .product-card-actions{
    opacity:1;visibility:visible;pointer-events:auto;transform:none;
  }
}

/* контент (.pc__body) */
.related-products-section .pc-v5 .product-card-content{padding:14px 16px 16px;display:flex;flex-direction:column;gap:9px;flex:1}
.related-products-section .pc-v5 .product-card-title{font-size:13.5px;font-weight:700;line-height:1.4;color:var(--cr-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.8em;margin:0}
.related-products-section .pc-v5 .product-card-price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-top:auto}
.related-products-section .pc-v5 .product-price-current{font-size:18px;font-weight:800;letter-spacing:-.02em;color:var(--cr-ink);white-space:nowrap}
.related-products-section .pc-v5 .product-price-original{font-size:12.5px;font-weight:600;color:var(--cr-text-subtle);text-decoration:line-through;white-space:nowrap}
.related-products-section .pc-v5 .product-price-discount{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;background:#ffe9e9;color:var(--cr-red);font-size:11.5px;font-weight:800}
/* мета (.pc__meta) */
.related-products-section .pc-v5 .product-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;border:0;padding:0;margin:0;min-height:24px}
.related-products-section .pc-v5 .product-rating,
.related-products-section .pc-v5 .product-sold,
.related-products-section .pc-v5 .product-delivery{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:24px;min-height:24px;line-height:1;vertical-align:middle}
.related-products-section .pc-v5 .product-rating{gap:6px;font-size:12px;font-weight:700;color:var(--cr-ink2);white-space:nowrap}
.related-products-section .pc-v5 .product-sold{gap:5px;font-size:12px;font-weight:700;white-space:nowrap}
.related-products-section .pc-v5 .product-rating i,
.related-products-section .pc-v5 .product-sold i,
.related-products-section .pc-v5 .product-delivery i{display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;line-height:1}
.related-products-section .pc-v5 .product-rating i{color:var(--cr-star);font-size:11px}
/* Review count: #64748b passes contrast on the white card. */
.related-products-section .pc-v5 .product-rating .rating-count{color:var(--color-slate-500);font-weight:600}
.related-products-section .pc-v5 .product-rating .rating-count::before{content:"· "}
.related-products-section .pc-v5 .product-delivery{gap:5px;padding:0 11px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap;flex:0 0 auto;margin:0}
.related-products-section .pc-v5 .product-delivery.delivery-instant{background:var(--cr-acc-tint);color:var(--cr-acc-text)}
.related-products-section .pc-v5 .product-delivery.delivery-instant i{color:var(--cr-acc-deep)}
.related-products-section .pc-v5 .product-delivery.delivery-order{background:var(--color-slate-110);color:var(--cr-text-subtle)}
/* нет в наличии: серый бейдж «Закончился» с иконкой-запретом (вместо «Сразу») */
.related-products-section .pc-v5 .product-card-meta .product-delivery.delivery-out-of-stock{background:var(--color-slate-110);color:var(--cr-text-subtle);text-decoration:none}
.related-products-section .pc-v5 .product-card-meta .product-delivery.delivery-out-of-stock i{color:var(--cr-light)}
