* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    -webkit-user-select: none;
    user-select: none;
    background: #fafafa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    overflow: auto;
}

/* ===== HEADER STICKY ===== */
.header-top {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 16px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.header-logo {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    letter-spacing: 1px;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
}

.header-logo-icon,
a.header-logo .header-logo-icon,
a.header-logo > .header-logo-icon,
.header-logo .header-logo-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    letter-spacing: 1px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header-logo-text {
    display: inline-block;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.header-left {
    flex: 1 1 auto;
    min-width: 0;
}

.header-right {
    flex: 0 0 auto;
    gap: 12px;
}

/* DESKTOP NAVIGATION - hidden on mobile */
.header-nav-desktop {
    display: none;
}

/* DESKTOP SEARCH - hidden on mobile */
.header-search-desktop {
    display: none;
}

.icon-circle {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease, transform 150ms ease;
    position: relative;
    color: #111;
    padding: 0;
    line-height: 0;
    flex: 0 0 36px;
}

.icon-circle:active {
    background: #e8e8e8;
    transform: scale(0.97);
}

.notification-btn {
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms ease, transform 150ms ease;
    position: relative;
    color: #111;
    padding: 0;
    line-height: 0;
    flex: 0 0 36px;
}

.notification-btn:active {
    background: #e8e8e8;
    transform: scale(0.97);
}

.header-top svg {
    width: 20px;
    height: 20px;
    display: block;
    vertical-align: middle;
}

.header-search {
    display: none;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.header-top.search-open .header-search {
    display: flex;
}

.header-top.search-open .header-left {
    display: none;
}

.header-top.search-open .search-trigger,
.header-top.search-open .notification-btn {
    display: none;
}

.header-top.search-open .header-right .icon-circle,
.header-top.search-open .header-right .notification-btn {
    display: none;
}

.header-top.search-open .header-right .icon-circle[aria-label="Корзина"] {
    display: flex;
}

.header-search-box {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 6px 10px 6px 12px;
}

.header-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #222;
}

.header-search-input::placeholder {
    color: #999;
}

.search-back,
.search-submit {
    background: #f5f5f5;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: none;
    pointer-events: none;
}

.mobile-menu.open {
    display: block;
    pointer-events: auto;
}

.mobile-menu.closing {
    display: block;
    pointer-events: auto;
}

.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 360ms ease;
}

.mobile-menu.open .mobile-menu__overlay {
    opacity: 1;
}

.mobile-menu.closing .mobile-menu__overlay {
    opacity: 0;
}

.mobile-menu__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 600px;
    margin: 0 auto;
    transform: translateY(100%);
    transition: transform 500ms ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open .mobile-menu__panel {
    transform: translateY(0);
}

.mobile-menu.closing .mobile-menu__panel {
    transform: translateY(100%);
}

.mobile-menu__content {
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu__header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 16px 10px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-menu__grab {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d8d8d8;
    margin: 0 auto 10px;
}

.mobile-menu__chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;      /* без горизонтального скролла */
    align-items: center;
}

.mobile-menu__chip {
    appearance: none;
    border: 1px solid #e5e5e5;
    color: #222;
    cursor: pointer;
    padding: 10px 14px;  /* “стандартный” размер + отступы */
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 13px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.mobile-menu__chip.is-active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.mobile-menu__chip:focus-visible {
    outline: 2px solid rgba(17, 17, 17, 0.25);
    outline-offset: 2px;
}

.mobile-menu__shortcut--disabled {
    opacity: 0.55;
    cursor: default;
}

.mobile-menu__shortcut--disabled:active {
    opacity: 0.55;
}

.mobile-menu__search {
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.mobile-menu__search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 8px 10px 8px 12px;
}

.mobile-menu__search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #222;
    min-width: 0;
}

.mobile-menu__shortcuts {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
}

.mobile-menu__shortcut {
    flex: 1;
    background: #f7f7f7;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-align: center;
}

.mobile-menu__shortcut-icon {
    font-size: 18px;
}

.mobile-menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

.mobile-menu__section {
    display: none;
    padding: 16px;
}

.mobile-menu__section.is-active {
    display: block;
}

.mobile-menu__categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.mobile-menu__categories--two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
}

.mobile-menu__card {
    background: #f9f9f9;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
}

.mobile-menu__col {
    background: #f9f9f9;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px;
}

.mobile-menu__title {
    margin: 0 0 8px 0;
    font-weight: 700;
    font-size: 13px;
    color: #222;
}

.mobile-menu__link {
    display: block;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    padding: 6px 0;
}

.mobile-menu__link:active {
    opacity: 0.7;
}

.mobile-menu__help {
    padding: 0 16px 24px 16px;
}

.mobile-menu__help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 4px;
}

body.mobile-menu-open {
    overflow: hidden;
}
.header-search .icon-circle,
.header-search .notification-btn {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.header-search svg {
    width: 16px;
    height: 16px;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 32px;
    padding: 28px 16px 36px;
    background: #f5f5f5;
    color: #333;
    border-top: 1px solid #e6e6e6;
}

.footer__inner {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.footer__brand {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.footer__brand-logo,
.footer__brand .footer__brand-logo,
.footer__brand > .footer__brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #000;
    background-color: #000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    flex-shrink: 0;
    line-height: 1 !important;
    text-align: center;
    vertical-align: middle;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.footer__col {
    min-width: 0;
    overflow: hidden;
}

.footer__col-title {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 13px;
    color: #111;
    line-height: 1.4;
}

.footer__link {
    display: block;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    padding: 4px 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer__link:hover {
    color: #000;
}

.footer__link:active {
    opacity: 0.7;
}

.footer__payments {
    grid-column: 1 / -1;
    margin-top: 0;
}

.footer__payment-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 0 8px;
    margin: 0 auto;
    width: fit-content;
}

.footer__payment-img {
    height: 16px !important;
    width: auto !important;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

/* Mobile footer: одинаковые отступы (и между иконками, и от краёв) */
@media (max-width: 1023px) {
    footer.footer .footer__inner {
        max-width: 600px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    footer.footer .footer__payments {
        grid-column: 1 / -1;
    }

    footer.footer .footer__payment-badges {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        padding: 0;
        margin: 0 auto;
        width: fit-content;
    }

    footer.footer .footer__payment-img {
        height: 16px;
        width: auto;
        flex: 0 0 auto;
        display: block;
    }

    footer.footer .footer__bottom {
        grid-column: 1 / -1;
        margin-top: 12px;
        font-size: 12px;
        color: #666;
        padding-top: 0;
        border-top: none;
    }
}

/* ===== CART SHEET ===== */
.cart-sheet {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    pointer-events: none;
}

.cart-sheet.open {
    display: block;
    pointer-events: auto;
}

.cart-sheet__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 360ms ease;
}

.cart-sheet.open .cart-sheet__overlay {
    opacity: 1;
}

.cart-sheet.closing .cart-sheet__overlay {
    opacity: 0;
}

.cart-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 500ms ease;
}

.cart-sheet.open .cart-sheet__panel {
    transform: translateY(0);
}

.cart-sheet__content {
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-sheet__header {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 12px 16px 8px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.cart-sheet__grab {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d8d8d8;
    margin: 0 auto 10px;
}

.cart-sheet__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.cart-sheet__body {
    padding: 16px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
}

.cart-item.is-removing {
    opacity: 0.45;
    filter: grayscale(1);
    pointer-events: none;
    transition: opacity 220ms ease;
}

.cart-item__img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item__name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.cart-item__meta {
    margin: 0;
    font-size: 12px;
    color: #777;
}

.cart-item__price {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.cart-item__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    overflow: hidden;
}

.cart-qty__btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 16px;
}

.cart-qty__input {
    width: 38px;
    border: none;
    text-align: center;
    font-size: 14px;
    outline: none;
}

.cart-item__remove {
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.cart-section {
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 16px;
}

.cart-section__title {
    margin: 0 0 8px 0;
    font-weight: 700;
    font-size: 14px;
    color: #111;
}

.cart-note {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #222;
    margin: 6px 0;
}

.cart-line--total {
    font-weight: 700;
    font-size: 14px;
    color: #000;
}

.cart-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.cart-field label {
    font-size: 12px;
    color: #666;
}

.cart-field__error {
    font-size: 12px;
    color: #e74c3c;
    line-height: 1.4;
    margin-top: 2px;
}

.cart-field input.is-error,
.cart-field textarea.is-error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.cart-field input,
.cart-field textarea {
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px;
    font-size: 14px;
    outline: none;
    background: #f9f9f9;
}

.cart-field--with-reset .cart-input-wrap,
.cart-field--with-button .cart-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-input-wrap input {
    flex: 1;
    background: #fff;
}

.cart-reset,
.cart-map {
    border: 1px solid #e6e6e6;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
}

.cart-badge {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
}

.cart-badge--green {
    background: #ecf8ef;
    color: #0b7a3a;
}

.cart-messengers {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.cart-messenger__icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.cart-messenger__icon.tg { background: #229ed9; }
.cart-messenger__icon.wa { background: #25d366; }
.cart-messenger__icon.vk { background: #2787f5; }

.cart-comment__toggle {
    border: none;
    background: none;
    color: #0070f3;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.cart-comment__field {
    margin-top: 8px;
    display: none;
}

.cart-comment__field textarea {
    background: #fff;
}

.cart-summary {
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-submit {
    margin-top: 10px;
    width: 100%;
    border: none;
    border-radius: 12px;
    background: #000;
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
}

.cart-submit.cart-submit--secondary {
    background: #f5f5f5;
    color: #111;
}

.cart-submit.cart-submit--secondary:hover {
    background: #e9e9e9;
}

.cart-submit:hover {
    background: #333;
}

.cart-submit small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
}

.cart-step {
    padding: 0;
}

.cart-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.cart-payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.cart-payment-method.is-selected {
    border-color: #111;
}

.cart-payment-method input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.cart-payment-method__label {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.cart-success {
    padding: 24px 12px;
    text-align: center;
}

.cart-success__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    margin: 0 auto 12px;
}

.cart-success__title {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.cart-success__text {
    margin: 0 0 16px 0;
    font-size: 13px;
    line-height: 1.45;
    color: #666;
}

.cart-success__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
}

/* ===== PRODUCT PAGE ===== */
.product-page {
    padding: 12px 16px 80px;
    background: #f5f5f5;
}

.product-breadcrumbs {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}

.product-breadcrumbs a {
    color: #555;
}

.product-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.product-collection {
    margin: 0;
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.product-sku {
    margin: 0;
    font-size: 12px;
    color: #888;
}

.product-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f1f1;
    font-size: 12px;
    color: #333;
    font-weight: 600;
}

.product-badge--green { background: #e8f5e9; color: #0b7a3a; }
.product-badge--dark { background: #111; color: #fff; }

.product-gallery {
    position: relative;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.product-gallery__track {
    position: relative;
    height: 460px;
    overflow: hidden;
}

.product-gallery__slide {
    position: absolute;
    inset: 0;
    transition: transform 320ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    overflow: hidden;
}

.product-gallery__slide img {
    /* Обрезаем только по ширине: подгоняем по высоте */
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
    margin: 0 auto;
}

.product-gallery__label {
    padding: 10px 12px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border-radius: 999px;
}

.product-gallery__dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.product-gallery__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.7);
    cursor: pointer;
}

.product-gallery__dot.active {
    background: #111;
}

.product-pricing {
    padding: 12px;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.product-price-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price-current {
    font-size: 22px;
    font-weight: 800;
    color: #111;
}

.product-price-old {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
}

.product-price-discount {
    font-size: 13px;
    color: #0b7a3a;
    font-weight: 700;
}

.product-note {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.product-option {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.product-option__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #222;
}

.product-option__value {
    font-size: 12px;
    color: #777;
}

/* ===== PrestaShop variants (colors/sizes) - keep original inputs working ===== */
.product-variants {
    margin-top: 8px;
}

.product-variants .product-variants-item + .product-variants-item {
    margin-top: 10px;
}

.product-variants .control-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.product-variants ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-variants .input-container {
    float: none !important;
    margin: 0 !important;
}

.product-variants label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Color swatches */
.product-variants input.input-color {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-variants span.color,
.product-variants span.color.texture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: inline-block;
    box-sizing: border-box;
}

.product-variants input.input-color:focus-visible + span.color {
    outline: 2px solid rgba(0,0,0,0.35);
    outline-offset: 2px;
}

.product-variants input.input-color:checked + span.color {
    border-color: #111;
}

/* Select */
.product-variants select.form-control-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background: #fff;
    font-size: 14px;
}

/* Radio (sizes/etc) */
.product-variants input.input-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.product-variants .radio-label {
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    min-width: 44px;
    text-align: center;
}

.product-variants input.input-radio:checked + .radio-label {
    border-color: #111;
    background: #111;
    color: #fff;
}

.product-variants input.input-radio:focus-visible + .radio-label {
    outline: 2px solid rgba(0,0,0,0.35);
    outline-offset: 2px;
}

.product-colors {
    display: flex;
    gap: 10px;
}

.product-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
}

.product-color.active {
    border-color: #111;
}

.product-sizes {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.product-size {
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.product-size.active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.product-link {
    background: none;
    border: none;
    color: #0070f3;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.zt-product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.product-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.product-add-btn {
    background: #111;
    color: #fff;
}

.product-btn--ghost {
    background: #f5f5f5;
    color: #111;
    border: 1px solid #e0e0e0;
}

/* ===== CATEGORY PAGE ===== */
.category-page {
    padding: 12px 16px 90px;
    background: #f5f5f5;
}

.category-head {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.category-breadcrumbs {
    display: flex;
    gap: 6px;
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}

.category-title-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.category-title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.category-count {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #666;
}

.category-filter-btn {
    display: none !important;
}

.category-subcats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0;
    margin-bottom: 8px;
}

.category-subcats::-webkit-scrollbar {
    display: none;
}

.category-chip {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-size: 12px;
    white-space: nowrap;
}

.category-chip.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.category-sublist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.category-sublist.collapsed .subcat-btn[data-extra="1"] {
    display: none;
}

.subcat-btn {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e6e6e6;
    background: #fafafa;
    font-size: 13px;
    text-align: left;
    color: #111;
}

.category-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    margin-top: 12px;
    padding: 12px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    border-radius: 12px;
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: -12px;
}

.category-sort-icon {
    width: 18px;
    height: 18px;
    color: #666;
    flex-shrink: 0;
}

.category-sort-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin: 0;
    white-space: nowrap;
    display: none;
}

.category-sort-label-short {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin: 0;
    white-space: nowrap;
    display: block;
}

.category-sort-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
}

.category-sort-select {
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px 32px 10px 12px;
    background: #fafafa;
    font-size: 13px;
    font-weight: 500;
    color: #111;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: background 200ms ease, border-color 200ms ease;
}

.category-sort-select:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.category-sort-select:focus {
    outline: none;
    background: #fff;
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.category-sort-select:active {
    background: #f5f5f5;
}

.category-sort-wrapper::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    pointer-events: none;
    transition: border-top-color 200ms ease;
}

.category-sort-select:focus {
    border-color: #111;
}

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

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.category-card__img {
    height: 180px;
    background: linear-gradient(135deg, #e9f0ff, #dce8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #333;
}

.category-card__body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.category-card__meta {
    margin: 0;
    font-size: 12px;
    color: #777;
}

.category-card__price {
    margin: 2px 0 0 0;
    font-size: 14px;
    font-weight: 800;
    color: #111;
}

.category-card__old {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
    margin-left: 6px;
}

.category-card__discount {
    font-size: 12px;
    color: #0b7a3a;
    font-weight: 700;
    margin-left: 6px;
}

.category-loader,
.category-end {
    text-align: center;
    font-size: 13px;
    color: #666;
    padding: 14px 0;
}

.category-end {
    display: none;
}

.product-delivery {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-delivery__item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
}

.product-delivery__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.product-delivery__text {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #666;
}

.product-delivery__badge {
    background: #111;
    color: #fff;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.product-delivery__badge--gray {
    background: #f0f0f0;
    color: #333;
}

.product-delivery__badgebar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 auto;
    width: fit-content;
}

.product-delivery__badgebar img {
    height: 18px;
    width: auto;
}

.product-accordion {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.product-accordion__header {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #111;
}

.product-accordion__body {
    padding: 0 12px 12px;
    font-size: 13px;
    color: #444;
    display: none;
    line-height: 1.5;
}

.product-accordion.open .product-accordion__body {
    display: block;
}

.product-accordion__chevron {
    font-size: 14px;
    color: #777;
}

body.cart-open {
    overflow: hidden;
}

.social-sharing {
    margin: 8px 0 16px;
}

.social-sharing + .product-accordion {
    margin-top: 8px;
}

/* Alert “Your cart contains …” */
body#product main .alert.alert-info {
    margin: 8px 16px 16px !important;
    border-radius: 12px !important;
}

/* на мобиле футер не должен “проваливаться” под нижнюю навигацию */
@media (max-width: 1023px) {
    body#product main {
        padding-top: 8px !important;
    }

    footer.footer {
        padding-bottom: 96px;
    }
}

.zt-cart-bump {
    animation: ztCartBump 520ms cubic-bezier(.2, .9, .2, 1);
}

.zt-badge-pop {
    animation: ztBadgePop 520ms cubic-bezier(.2, .9, .2, 1);
}

@keyframes ztCartBump {
    0% { transform: translateZ(0) scale(1); }
    20% { transform: translateZ(0) scale(1.06); }
    50% { transform: translateZ(0) scale(0.98); }
    100% { transform: translateZ(0) scale(1); }
}

@keyframes ztBadgePop {
    0% { transform: translateZ(0) scale(1); }
    20% { transform: translateZ(0) scale(1.22); }
    100% { transform: translateZ(0) scale(1); }
}

.footer__bottom {
    grid-column: span 2;
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #e74c3c;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== SEARCH BAR STICKY ===== */
.search-container {
    position: sticky;
    top: 56px;
    z-index: 35;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 16px;
    height: 56px;
    display: flex;
    align-items: center;
}

.search-box {
    flex: 1;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 200ms ease;
}

.search-box:focus-within {
    background: #ffffff;
    border-color: #d0d0d0;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    color: #222;
}

.search-box input::placeholder {
    color: #bbb;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: #999;
    flex-shrink: 0;
}

.filter-btn {
    margin-left: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 200ms ease;
}

.filter-btn:active {
    opacity: 0.6;
}

.filter-icon {
    width: 18px;
    height: 18px;
    color: #666;
}

/* ===== CATEGORIES HORIZONTAL SCROLL ===== */
.categories-wrapper {
    padding: 12px 0;
    background: #fafafa;
}

.categories-scroll {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 0 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.section-block {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin: 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.section-block:nth-of-type(2n) {
    background: #f9f9f9;
}

.section-block .banner-carousel {
    margin: 0;
}

.categories-scroll::-webkit-scrollbar {
    height: 0;
    display: none;
}

.category-tag {
    flex: 0 0 auto;
    background: white;
    border: 1px solid #e8e8e8;
    color: #333;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 200ms ease;
    height: 36px;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    text-decoration: none;
}

.category-tag-icon {
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 200ms ease;
}

.category-tag-text {
    display: flex;
    align-items: center;
}

.category-tag:active {
    transform: scale(0.98);
}

    .category-tag.active {
        background: #000;
        color: white;
        border-color: #000;
    }

/* ===== MAIN CONTENT SCROLL ===== */
.main-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding-bottom: 80px;
    width: 100%;
}

.main-content::-webkit-scrollbar {
    width: 3px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 2px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 20px 16px 12px 16px;
    letter-spacing: -0.3px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 16px 12px 16px;
}

.section-title-row h3 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.see-all-link {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-decoration: none;
    cursor: pointer;
    transition: color 200ms ease;
}

.see-all-link:active {
    color: #666;
}

/* ===== PROMO BANNER CAROUSEL ===== */
.banner-carousel {
    margin: 16px;
    padding: 0;
    overflow: hidden;
    position: relative;
    height: 180px;
    touch-action: pan-y;
}

.banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    opacity: 0;
    transform: translateX(110vw);
    transition: transform 320ms ease, opacity 320ms ease;
}

.banner-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.banner-subtitle {
    font-size: 13px;
    font-weight: 400;
    margin: 0 0 12px 0;
    opacity: 0.95;
}

.banner-btn {
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
    width: fit-content;
    backdrop-filter: blur(5px);
}

.banner-btn:active {
    background: rgba(255,255,255,0.35);
    transform: scale(0.97);
}

.banner-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 12px;
    padding: 0 16px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 200ms ease;
}

.banner-dot.active {
    background: #000;
    width: 24px;
    border-radius: 4px;
}

/* ===== PRODUCTS GRID 2 COLUMNS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 24px;
}

/* В теме PrestaShop часто есть дополнительные контейнеры/паддинги.
   Для прототипа внутри наших секций/страниц убираем двойные отступы. */
.section-block .products-grid,
.category-page .products-grid {
    padding-left: 0;
    padding-right: 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    cursor: pointer;
    transition: all 200ms ease;
    position: relative;
    display: block;
    text-decoration: none;
}

.product-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-image-container {
    /* Важно: "заходим" под рамку карточки, чтобы картинка упиралась в радиус/обводку
       без видимого зазора (рамка не съедает пиксели контента). */
    width: calc(100% + 2px);
    margin: -1px -1px 0 -1px;
    aspect-ratio: 1 / 1.25;
    background: linear-gradient(135deg, #f5f5f5 0%, #ececec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-image-container img {
    /* В прототипе картинка визуально "перелезает" вверх/вниз (сильнее кадрируется),
       но по левому/правому краю должна быть впритык к обводке карточки. */
    position: absolute;
    /* На практике браузер может оставлять субпиксельные "щели" по бокам —
       поэтому даём небольшой горизонтальный оверскан. */
    /* Убираем визуальную "рамку" вокруг фото:
       - отменяем глобальный margin-bottom у img из темы
       - увеличиваем оверскан по X, чтобы фото реально упиралось в скругления */
    margin: 0 !important;
    max-width: none !important;
    left: -12px;
    right: -12px;
    top: -12px;
    bottom: -12px;
    width: calc(100% + 24px) !important;
    height: calc(100% + 24px) !important;
    object-fit: cover;
    /* Смещаем кадр вверх: сохраняем головы, сильнее режем низ */
    object-position: 50% 18%;
    display: block;
    /* Лёгкий зум, чтобы убрать ощущение "в рамке" */
    transform-origin: 50% 18%;
    transform: translateZ(0) scale(1.07);
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.product-price {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    margin: 6px 0 0 0;
}

.product-rating {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== SPECIAL OFFER BLOCK ===== */
.offer-block {
    margin: 20px 16px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 12px;
}

.offer-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.offer-content {
    flex: 1;
}

.offer-title {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 0 0 6px 0;
}

.offer-desc {
    font-size: 12px;
    color: #666;
    margin: 0 0 8px 0;
}

.offer-link {
    font-size: 11px;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
    cursor: pointer;
    transition: color 200ms ease;
}

.offer-link:active {
    color: #666;
}

/* ===== BOTTOM NAVIGATION FIXED ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding-bottom: max(0, env(safe-area-inset-bottom));
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: all 200ms ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.nav-item:active {
    opacity: 0.7;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color 200ms ease;
}

.nav-item.active .nav-icon {
    color: #000;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    color: #999;
    transition: color 200ms ease;
}

.nav-item.active .nav-label {
    color: #000;
    font-weight: 600;
}

.nav-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    background: #e74c3c;
    color: white;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

svg {
    pointer-events: none;
}

/* ===== NOTIFICATIONS TOAST ===== */
.toast-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    z-index: 60;
    animation: slideUp 200ms ease;
    max-width: 80%;
    text-align: center;
}

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

/* ===== CONTAINER FIT ===== */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 600px;
    margin: 0 auto;
    background: #fafafa;
}

/* ===== DESKTOP STYLES (min-width: 1024px) ===== */
@media (min-width: 1024px) {
    .app-container {
        max-width: 100%;
        margin: 0;
    }

    /* HEADER DESKTOP */
    .header-top {
        height: 80px;
        padding: 0 40px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: box-shadow 200ms ease;
    }

    body.scrolled .header-top {
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

    .burger-btn {
        display: none;
    }

    .header-logo {
        font-size: 24px;
        text-decoration: none;
        transition: opacity 200ms ease;
        gap: 12px;
    }

    .header-logo:hover {
        opacity: 0.7;
    }

    .header-logo-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 24px;
    }

    .header-logo-text {
        font-size: 24px;
    }

    .header-nav-desktop {
        display: flex;
        align-items: center;
        gap: 32px;
        flex: 1;
        justify-content: center;
    }

    .header-nav-item {
        position: relative;
    }

    .header-nav-link {
        font-size: 15px;
        font-weight: 600;
        color: #111;
        text-decoration: none;
        padding: 8px 0;
        position: relative;
        transition: color 200ms ease;
        display: block;
    }

    .header-nav-link:hover {
        color: #666;
    }

    .header-nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #111;
        transition: width 200ms ease;
    }

    .header-nav-link:hover::after {
        width: 100%;
    }

    /* Dropdown menu - крутой стиль */
    .header-nav-dropdown {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.1);
        min-width: 220px;
        max-width: 280px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 8px 0;
        pointer-events: none;
    }

    .header-nav-item:hover .header-nav-dropdown,
    .header-nav-item:focus-within .header-nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%);
        pointer-events: auto;
    }

    /* Двухколоночный режим для длинных списков */
    .header-nav-dropdown--two-columns {
        max-width: 500px;
        min-width: 440px;
    }

    .header-nav-dropdown-inner {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .header-nav-dropdown--two-columns .header-nav-dropdown-inner {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .header-nav-dropdown-link {
        display: block;
        padding: 14px 24px;
        font-size: 14px;
        font-weight: 500;
        color: #111;
        text-decoration: none;
        transition: background 200ms ease, color 200ms ease, padding-left 200ms ease;
        white-space: nowrap;
    }

    .header-nav-dropdown-link:hover {
        background: #f5f5f5;
        color: #111;
        padding-left: 28px;
    }

    /* Скругление углов для одноколоночного меню */
    .header-nav-dropdown:not(.header-nav-dropdown--two-columns) .header-nav-dropdown-link:first-child {
        border-radius: 12px 12px 0 0;
    }

    .header-nav-dropdown:not(.header-nav-dropdown--two-columns) .header-nav-dropdown-link:last-child {
        border-radius: 0 0 12px 12px;
    }

    /* Скругление углов для двухколоночного меню */
    .header-nav-dropdown--two-columns .header-nav-dropdown-link:nth-child(1) {
        border-radius: 12px 0 0 0;
    }

    .header-nav-dropdown--two-columns .header-nav-dropdown-link:nth-child(2) {
        border-radius: 0 12px 0 0;
    }

    /* Последний элемент - четный (вторая колонка) */
    .header-nav-dropdown--two-columns .header-nav-dropdown-link:last-child:nth-child(even) {
        border-radius: 0 0 12px 0;
    }

    /* Последний элемент - нечетный (первая колонка) */
    .header-nav-dropdown--two-columns .header-nav-dropdown-link:last-child:nth-child(odd) {
        border-radius: 0 0 0 12px;
    }

    /* Предпоследний элемент - нечетный (первая колонка, последний в колонке) */
    .header-nav-dropdown--two-columns .header-nav-dropdown-link:nth-last-child(2):nth-child(odd) {
        border-radius: 0 0 0 12px;
    }

    /* Предпоследний элемент - четный (вторая колонка, последний в колонке) */
    .header-nav-dropdown--two-columns .header-nav-dropdown-link:nth-last-child(2):nth-child(even) {
        border-radius: 0 0 12px 0;
    }

    .header-search-desktop {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #f5f5f5;
        border-radius: 24px;
        padding: 8px 16px;
        width: 300px;
        transition: background 200ms ease, box-shadow 200ms ease;
    }

    .header-search-desktop:focus-within {
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .header-search-desktop-form {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .header-search-desktop-input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 14px;
        outline: none;
        color: #111;
        min-width: 0;
    }

    .header-search-desktop-input::placeholder {
        color: #999;
    }

    .header-search-desktop-btn {
        border: none;
        background: transparent;
        cursor: pointer;
        color: #666;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .header-search-desktop-btn:hover {
        color: #111;
    }

    .search-trigger {
        display: none;
    }

    .header-right {
        gap: 16px;
    }

    .icon-circle {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .icon-circle:hover {
        background: #e8e8e8;
    }

    /* HIDE MOBILE SEARCH */
    .header-search {
        display: none;
    }

    /* HIDE MOBILE MENU ON DESKTOP */
    .mobile-menu {
        display: none;
    }

    /* HIDE BOTTOM NAV ON DESKTOP */
    .bottom-nav {
        display: none;
    }

    /* SCROLL TO TOP BUTTON */
    .scroll-top-btn {
        position: fixed;
        bottom: 40px;
        right: 40px;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #111;
        color: #fff;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        opacity: 0;
        visibility: hidden;
        transition: opacity 200ms ease, visibility 200ms ease, transform 200ms ease;
        z-index: 100;
    }

    .scroll-top-btn.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top-btn:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    /* MAIN CONTENT DESKTOP */
    .main-content {
        padding: 40px;
        max-width: 1400px;
        margin: 0 auto;
        width: 100%;
        padding-bottom: 40px;
        overflow-y: visible;
    }

    /* BANNER DESKTOP */
    .banner-carousel {
        height: 500px;
        margin: 0 0 40px 0;
        border-radius: 16px;
        overflow: hidden;
    }

    .banner-content {
        max-width: 600px;
    }

    .banner-title {
        font-size: 48px;
        margin-bottom: 16px;
    }

    .banner-subtitle {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .banner-btn {
        padding: 16px 32px;
        font-size: 16px;
    }

    /* PRODUCT GRID DESKTOP */
    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }

    .product-card {
        transition: transform 200ms ease, box-shadow 200ms ease;
        cursor: pointer;
    }

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

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

    .product-image-container img {
        transition: transform 300ms ease;
    }

    .category-card {
        transition: transform 200ms ease, box-shadow 200ms ease;
        cursor: pointer;
    }

    .category-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    .category-card:hover .category-card__img {
        transform: scale(1.05);
    }

    .category-card__img {
        transition: transform 300ms ease;
    }

    /* CATEGORIES BUTTONS DESKTOP */
    .categories-wrapper {
        padding: 20px 0;
        background: #fafafa;
    }

    .categories-scroll {
        padding: 0 40px;
        gap: 12px;
        justify-content: center;
        overflow-x: visible;
    }

    .category-tag {
        padding: 16px 24px;
        font-size: 14px;
        height: auto;
        flex-direction: column;
        gap: 8px;
        min-width: 120px;
        border-radius: 16px;
    }

    .category-tag-icon {
        font-size: 32px;
        line-height: 1;
        margin-bottom: 4px;
    }

    .category-tag-text {
        font-size: 13px;
        font-weight: 500;
        text-align: center;
        line-height: 1.3;
    }

    /* Remove active state on desktop - no button should be active by default */
    .category-tag.active {
        background: white;
        color: #333;
        border-color: #e8e8e8;
    }

    /* Beautiful hover effect for desktop */
    .category-tag:hover {
        background: #000;
        color: white;
        border-color: #000;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .category-tag:hover .category-tag-icon {
        transform: scale(1.1);
    }

    .category-tag:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .section-block {
        margin: 0 0 40px 0;
        padding: 24px;
    }

    /* FOOTER DESKTOP */
    .footer {
        padding: 60px 40px 40px;
    }

    .footer__inner {
        max-width: 1400px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        gap: 40px;
        align-items: start;
    }

    .footer__brand {
        grid-column: 1;
        margin-bottom: 0;
    }

    .footer__brand-logo,
    .footer__brand .footer__brand-logo,
    .footer__brand >     .footer__brand-logo {
        font-size: 24px;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        line-height: 1 !important;
        text-align: center;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* Footer columns - explicit positioning */
    .footer__col {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .footer__col--categories {
        grid-column: 2 !important;
        grid-column-end: 3 !important;
    }

    .footer__col--help {
        grid-column: 3 !important;
        grid-column-end: 4 !important;
    }

    .footer__col--company {
        grid-column: 4 !important;
        grid-column-end: 5 !important;
    }

    .footer__col--documents {
        grid-column: 5 !important;
        grid-column-end: 6 !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer__col-title {
        font-size: 14px;
        font-weight: 700;
        margin: 0 0 16px 0;
        color: #111;
        line-height: 1.4;
    }

    .footer__link {
        font-size: 14px;
        margin-bottom: 10px;
        padding: 0;
        line-height: 1.5;
        display: block;
        color: #333;
        text-decoration: none;
        transition: color 200ms ease;
    }

    .footer__link:hover {
        color: #000;
    }

    .footer__payments {
        grid-column: 1 / -1 !important;
        margin-top: 0;
    }

    .footer__payment-badges {
        margin-top: 20px;
        flex-wrap: wrap;
        gap: 18px;
        display: flex;
        justify-content: center;
        align-items: center;
        width: fit-content;
        padding: 0 8px;
    }

    .footer__payment-img {
        height: 20px;
        width: auto;
        display: block;
        object-fit: contain;
    }

    .footer__bottom {
        grid-column: 1 / -1;
        margin-top: 40px;
        padding-top: 40px;
        border-top: 1px solid #e6e6e6;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    .footer__bottom p {
        margin: 0;
        font-size: 12px;
        color: #666;
        line-height: 1.5;
    }

    /* CART SIDEBAR DESKTOP */
    .cart-sheet__panel {
        right: 0;
        left: auto;
        width: clamp(420px, 33vw, 720px) !important;
        max-width: none !important;
        height: 100%;
        transform: translateX(100%);
        transition: transform 400ms ease;
    }

    .cart-sheet.open .cart-sheet__panel {
        transform: translateX(0);
    }

    .cart-sheet.closing .cart-sheet__panel {
        transform: translateX(100%);
    }

    /* CATEGORY PAGE DESKTOP */
    .category-page {
        padding: 0;
        max-width: 1400px;
        margin: 0 auto;
        display: block;
    }

    .category-head {
        padding: 24px;
        margin-bottom: 24px;
        background: #fff;
        border-radius: 12px;
    }

    /* Category sort desktop */
    .category-sort {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #e6e6e6;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
        padding: 20px 0 0 0;
        background: transparent;
        border-radius: 0;
    }

    .category-sort-label {
        display: block;
    }

    .category-sort-label-short {
        display: none;
    }

    .category-sort-select {
        padding: 12px 40px 12px 16px;
        font-size: 14px;
        min-width: 200px;
    }

    /* Products section in category page */
    .category-page #products {
        width: 100%;
    }

    /* Products grid in category page - 4 columns on desktop */
    .category-page .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
        padding: 0;
        margin-bottom: 24px;
    }

    .category-filters {
        background: #fff;
        border-radius: 12px;
        padding: 24px;
        position: sticky;
        top: 100px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    }

    .category-filters-title {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 20px 0;
        color: #111;
    }

    .category-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 24px;
    }

    .category-subcats {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    /* PRODUCT PAGE DESKTOP */
    .product-page {
        padding: 24px 40px 40px;
        max-width: 1600px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: minmax(520px, 1fr) minmax(420px, 560px);
        gap: 24px 60px !important;
        grid-auto-rows: min-content;
        align-items: start;
    }
    
    /* SECTION TITLE DESKTOP */
    .section-title-row {
        margin: 40px 0 20px 0;
    }
    
    .section-title {
        margin: 40px 0 20px 0;
        font-size: 24px;
    }
    
    .see-all-link {
        font-size: 14px;
    }
    
    .see-all-link:hover {
        color: #666;
    }

    .product-breadcrumbs {
        grid-column: 1 / -1;
        grid-row: 1;
        margin-bottom: 12px;
        font-size: 14px;
        color: #666;
    }

    .product-title-wrap {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-bottom: 20px;
        gap: 8px;
        background: #fff;
        border-radius: 16px;
        padding: 18px 20px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    }

    .product-collection {
        margin: 0;
        font-size: 13px;
        letter-spacing: 0.6px;
        color: #555;
    }

    .product-title {
        margin: 0;
        font-size: 32px;
        line-height: 1.12;
    }

    .product-sku {
        margin: 0;
        font-size: 13px;
        color: #7a7a7a;
        line-height: 1.4;
    }

    .product-gallery {
        grid-column: 1;
        grid-row: 3 / span 20;
        position: sticky;
        top: 100px;
        align-self: start;
        margin-bottom: 0;
        border-radius: 16px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    }

    .product-gallery__track {
        height: 840px;
    }

    .product-gallery__slide img {
        position: absolute;
        left: 50%;
        top: 0;
        height: 100%;
        width: auto;
        height: 100%;
        max-width: none;
        transform: translateX(-50%);
        /* режем только по ширине: низ/верх не трогаем */
        object-fit: contain;
    }

    body#product main .alert.alert-info {
        max-width: 1600px;
        margin: 12px auto 18px !important;
        padding: 14px 18px !important;
        border-radius: 14px !important;
    }

    body#product main {
        padding-top: 16px !important;
    }

    .product-pricing,
    .product-options,
    .product-actions,
    .product-delivery,
    .product-accordion {
        grid-column: 2;
    }

    .product-pricing {
        grid-row: 3;
    }

    /* В Prestashop варианты/кнопки внутри формы; grid-колонку нужно задавать форме (прямому ребёнку .product-page) */
    .product-page > .js-product-actions {
        grid-column: 2;
        grid-row: 4;
        width: 100%;
        min-width: 0;
    }

    /* Аккордеоны у нас идут прямыми детьми .product-page — фиксируем правую колонку явно (на случай конфликтов из родительской темы) */
    .product-page > .product-accordion {
        grid-column: 2;
    }

    /* Отзывы/комментарии тоже в правой колонке */
    .product-page > .product-comments-wrapper {
        grid-column: 2;
    }

    .product-actions {
        display: flex;
        flex-direction: row;
        gap: 12px;
    }

    .product-btn {
        flex: 1;
    }

}

/* FORCE LOGO STYLES - Added at end to override any other styles */
.header-logo-icon,
a.header-logo .header-logo-icon,
a.header-logo > .header-logo-icon,
.header-logo .header-logo-icon,
span.header-logo-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    letter-spacing: 1px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer__brand-logo,
.footer__brand .footer__brand-logo,
.footer__brand > .footer__brand-logo,
span.footer__brand-logo {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    background: #000 !important;
    background-color: #000 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    letter-spacing: 1px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

@media (min-width: 1024px) {
    .header-logo-icon,
    a.header-logo .header-logo-icon,
    a.header-logo > .header-logo-icon,
    .header-logo .header-logo-icon,
    span.header-logo-icon {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        font-size: 24px !important;
    }

    .footer__brand-logo,
    .footer__brand .footer__brand-logo,
    .footer__brand > .footer__brand-logo,
    span.footer__brand-logo {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        font-size: 24px !important;
        line-height: 1 !important;
    }
}

/* ===== STATIC CONTENT PAGES (CMS) ===== */
.page-header {
    padding: 16px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.page-content {
    background: #fafafa;
    min-height: calc(100vh - 200px);
}

.page-cms {
    padding: 0;
    background: #fafafa;
}

.page-cms.section-block {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    padding: 0;
}

.cms-content {
    padding: 16px;
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

.cms-content.rich-text {
    user-select: text;
    -webkit-user-select: text;
}

.cms-content.rich-text h1,
.cms-content.rich-text h2,
.cms-content.rich-text h3,
.cms-content.rich-text h4,
.cms-content.rich-text h5,
.cms-content.rich-text h6 {
    font-weight: 700;
    color: #000;
    margin: 24px 0 12px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.cms-content.rich-text h1 {
    font-size: 22px;
}

.cms-content.rich-text h2 {
    font-size: 20px;
}

.cms-content.rich-text h3 {
    font-size: 18px;
}

.cms-content.rich-text h4 {
    font-size: 16px;
}

.cms-content.rich-text h5,
.cms-content.rich-text h6 {
    font-size: 15px;
}

.cms-content.rich-text h1:first-child,
.cms-content.rich-text h2:first-child,
.cms-content.rich-text h3:first-child {
    margin-top: 0;
}

.cms-content.rich-text p {
    margin: 0 0 16px 0;
    color: #333;
}

.cms-content.rich-text p:last-child {
    margin-bottom: 0;
}

.cms-content.rich-text ul,
.cms-content.rich-text ol {
    margin: 16px 0;
    padding-left: 24px;
    color: #333;
}

.cms-content.rich-text li {
    margin: 8px 0;
    line-height: 1.6;
}

.cms-content.rich-text a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 200ms ease;
}

.cms-content.rich-text a:active {
    opacity: 0.7;
}

.cms-content.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
    display: block;
}

.cms-content.rich-text blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f5f5f5;
    border-left: 3px solid #000;
    border-radius: 4px;
    font-style: italic;
    color: #555;
}

.cms-content.rich-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px;
}

.cms-content.rich-text table th,
.cms-content.rich-text table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e8e8e8;
}

.cms-content.rich-text table th {
    font-weight: 700;
    background: #f9f9f9;
    color: #000;
}

.cms-content.rich-text table tr:last-child td {
    border-bottom: none;
}

.cms-content.rich-text strong,
.cms-content.rich-text b {
    font-weight: 700;
    color: #000;
}

.cms-content.rich-text em,
.cms-content.rich-text i {
    font-style: italic;
}

.page-footer {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    margin-top: 24px;
}

/* Responsive adjustments for CMS pages */
@media (min-width: 768px) {
    .page-content {
        padding: 24px;
    }

    .page-cms .section-block {
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        margin: 0 0 16px 0;
    }

    .cms-content {
        padding: 24px;
        font-size: 16px;
    }

    .cms-content.rich-text h1 {
        font-size: 28px;
    }

    .cms-content.rich-text h2 {
        font-size: 24px;
    }

    .cms-content.rich-text h3 {
        font-size: 20px;
    }
}

/* ===== ZT HOTFIX: product Options desktop width (2026-01-12) ===== */
@media (min-width: 1024px) {
  /* На десктопе .product-actions не должен быть "row", иначе .product-options ужимается */
  body#product .product-page.product-container .product-actions,
  body#product .product-page.product-container .js-product-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    min-width: 0;
  }

  body#product .product-page.product-container .product-actions .product-options {
    width: 100% !important;
    min-width: 0;
  }

  body#product .product-page.product-container .product-actions .zt-product-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
  }

  body#product .product-page.product-container .product-actions .zt-product-actions .product-btn {
    flex: 1;
  }
}
