html {
    scroll-behavior: smooth;
}

:root {
    --bg-page: #f5f5f5;
    --bg-surface: #ffffff;
    --bg-footer: #2d2d2d;
    --text-main: #1f2d3d;
    --text-muted: #8b92a0;
    --line: #e8ebf0;
    --accent: #ffc928;
    --accent-dark: #f3b500;
    --accent-text: #272727;
    --white: #ffffff;
    --shadow: 0 2px 6px rgba(24, 39, 75, 0.04);
    --container: 1280px;
}

/* Toast */
.phone-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-left: 4px solid #e53935;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateX(calc(100% + 30px));
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 320px;
    font-size: 14px;
}
.phone-toast.is-visible {
    transform: translateX(0);
}
.phone-toast__icon {
    background: #e53935;
    color: #fff;
    font-weight: bold;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.phone-toast__close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #999;
    padding: 0 4px;
}

/* Поле з помилкою */
[data-cart-phone].is-error {
    border-color: #e53935 !important;
    background-color: #fff5f5 !important;
    outline-color: #e53935 !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-main);
    background: var(--bg-page);
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.hero-slider,
.category-sidebar,
.section,
.footer,
.info-page {
    animation: fadeSlideUp 0.45s ease both;
}

.featured-product-card,
.benefit-card,
.tile-card,
.checkout-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.featured-product-card:hover,
.benefit-card:hover,
.tile-card:hover,
.checkout-card:hover {
    transform: translateY(-3px);
}

.info-page {
    min-height: 100vh;
    padding: 48px 0;
    background: var(--bg-page);
}

.info-page h1 {
    margin: 24px 0 18px;
    font-size: 38px;
}

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

.info-grid section,
.info-page .container > p {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: var(--shadow);
}

body.sidebar-focus {
    /* overflow залишаємо нормальним щоб не зникав скролбар */
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

img,
svg {
    display: block;
    max-width: 100%;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.section {
    padding: 18px 0;
}

.section--compact {
    padding-top: 6px;
}

.section-heading {
    margin-bottom: 14px;
}

.section-heading h2,
.category-page__title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.page-dim {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(33, 35, 40, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
}

body.sidebar-focus .page-dim {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.top-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--line);
}

.top-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 54px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand svg {
    flex-shrink: 0;
    border-radius: 12px;
}
.brand__name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}
.brand__kamin {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}
.brand__house {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--accent-dark);
    letter-spacing: -0.3px;
}


.top-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    font-weight: 700;
}

.top-links a:hover,
.footer a:hover {
    color: var(--accent-dark);
}

.top-contacts {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 800;
}

.top-contacts button {
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--accent-text);
    background: #fff6d9;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(245, 245, 245, 0.97);
    border-bottom: 1px solid var(--line);
}

.header-toolbar {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 10px 0;
}

.catalog-trigger {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px;
    font-weight: 700;
    background: var(--accent);
    color: var(--accent-text);
}

.search-form {
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.search-form input {
    flex: 1;
    height: 100%;
    padding: 0 16px;
    border: 0;
    background: transparent;
    outline: none;
}

.search-form button {
    width: 52px;
    height: 100%;
    color: #4b5563;
    background: var(--bg-surface);
    border-left: 1px solid var(--line);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icons a,
.header-cart-button {
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
    font-size: 11px;
    color: #5f6775;
    background: transparent;
    position: relative;
}

.header-icons a i,
.header-cart-button i {
    font-size: 16px;
}

.cart-counter {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #e94c41;
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-main {
    position: relative;
    padding-bottom: 22px;
    flex: 1;
}

.hero-section {
    padding: 18px 0 8px;
}

.hero-layout,
.category-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
}

.hero-layout {
    align-items: stretch;
}

.category-layout {
    align-items: start;
}

.hero-layout--no-categories {
    grid-template-columns: 1fr;
}

.category-sidebar,
.hero-slider,
.benefit-card,
.tile-card,
.empty-state-card,
.review-form-card,
.latest-reviews-card,
.featured-product-card,
.catalog-product-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.category-sidebar {
    position: relative;
    z-index: 50;
    isolation: isolate;
    max-height: 560px;
    overflow-y: auto;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
}

.category-sidebar__list a {
    touch-action: manipulation;
}

.category-sidebar--stretch {
    height: 100%;
}

.category-sidebar__list {
    display: grid;
}

.category-sidebar__list a {
    min-height: 56px;
    display: grid;
    grid-template-columns: 22px 1fr 12px;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s ease;
}

.category-sidebar__list a:hover {
    background: #fbfbfb;
}

.category-sidebar__list li:last-child a {
    border-bottom: 0;
}

.category-sidebar__icon {
    text-align: center;
    color: #4d5665;
}

.category-sidebar__name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: anywhere;
}

.category-sidebar__arrow {
    color: #a4acb9;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    align-self: stretch;
}

.hero-track {
    display: flex;
    transition: transform 0.45s ease;
    height: 100%;
}

.hero-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(200px, 0.9fr);
    align-items: center;
    min-height: 340px;
    height: 100%;
    padding: 32px 28px 56px;
    background: #ffffff;
    box-sizing: border-box;
}

.hero-slide--fire   { background: linear-gradient(135deg, #fff8f0 0%, #fff3e0 100%); }
.hero-slide--chimney { background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%); }
.hero-slide--sauna  { background: linear-gradient(135deg, #f0fff4 0%, #e8faf0 100%); }

.hero-slide__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.hero-slide__content h1,
.hero-slide__content h2 {
    margin: 0 0 12px;
    max-width: 480px;
    font-size: clamp(1.6rem, 2.5vw, 2.6rem);
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
}

.hero-slide__sub {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 22px;
    max-width: 400px;
}

.hero-slide__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-banner-img {
    width: 200px;
    height: 200px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
}

.hero-banner-img--1 {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    box-shadow: 0 12px 40px rgba(230, 81, 0, 0.2);
}

.hero-banner-img--2 {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    color: #283593;
    box-shadow: 0 12px 40px rgba(40, 53, 147, 0.15);
}

.hero-banner-img--3 {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #1b5e20;
    box-shadow: 0 12px 40px rgba(27, 94, 32, 0.15);
}

.hero-slider__controls {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #d6d9df;
}

.hero-dot.is-active {
    background: var(--accent);
}

.hero-arrows {
    display: flex;
    gap: 8px;
}

.hero-arrow {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    color: #444;
    background: #ffffff;
    border: 1px solid var(--line);
}

.button {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 6px;
    font-weight: 800;
}

.button--accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-text);
    background: var(--accent);
}

.featured-products-grid,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.featured-slider {
    position: relative;
    overflow: hidden;
    padding-bottom: 56px;
}

.featured-slider__track {
    display: flex;
    transition: transform 0.45s ease;
}

.featured-slide {
    flex: 0 0 100%;
}

.featured-slider__controls {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-product-card,
.catalog-product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.featured-product-card__image-wrap,
.catalog-product-card__image {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.featured-product-card__image-wrap img,
.catalog-product-card__image img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.featured-product-card__empty-image {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    background: #f0f2f5;
}

.featured-product-card__body,
.catalog-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    flex: 1;
}

.featured-product-card__title,
.catalog-product-card__body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.featured-product-card__category,
.catalog-product-card__meta {
    color: var(--text-muted);
}

.featured-product-card__footer,
.catalog-product-card__price-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
    margin-top: auto;
}

.featured-product-card__price strong,
.catalog-product-card__price-row strong {
    font-size: 20px;
    color: #0f172a;
}

.price-old {
    color: #8b919c;
    text-decoration: line-through;
    display: block;
    margin-bottom: 4px;
}

.add-cart-button {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--accent-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.add-cart-button.is-in-cart {
    background: #1f9d55;
    color: #ffffff;
}

.add-cart-button:hover {
    transform: translateY(-1px);
}

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

.benefit-card {
    min-height: 142px;
    padding: 18px 14px;
    text-align: center;
}

.benefit-card__icon,
.tile-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5561d8;
    font-size: 30px;
    margin-bottom: 16px;
}

.benefit-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.benefit-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

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

.tile-card {
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.tile-card__icon {
    font-size: 42px;
    color: #252525;
}

.tile-card strong {
    max-width: 150px;
    font-size: 15px;
}

.empty-state-card {
    padding: 28px;
}

.empty-state-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.empty-state-card p {
    margin: 0;
    max-width: 720px;
    color: var(--text-muted);
}

.empty-state-card--compact {
    padding: 20px;
}

.reviews-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    align-items: start;
}

.review-form-card,
.latest-reviews-card {
    padding: 22px;
}

.review-form-card h3,
.latest-reviews-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.review-form-card > p {
    margin: 0 0 18px;
    color: var(--text-muted);
}

.guest-review-form {
    display: grid;
    gap: 14px;
}

.guest-review-form span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.guest-review-form input,
.guest-review-form select,
.guest-review-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dbe2eb;
    border-radius: 4px;
    outline: none;
    background: #fff;
}

.guest-review-form textarea {
    resize: vertical;
    min-height: 120px;
}

.inline-notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #e7f8f0;
    color: #0c8a5b;
    font-weight: 700;
}

.reviews-list {
    display: grid;
    gap: 14px;
}

.review-item {
    padding: 16px;
    border-radius: 14px;
    background: #fafbfc;
    border: 1px solid var(--line);
}

.review-item__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.review-item__head span {
    color: #ffb400;
}

.review-item p {
    margin: 0 0 8px;
}

.review-item small {
    color: var(--text-muted);
}

.footer {
    padding: 22px 0 0;
    color: #ffffff;
    background: var(--bg-footer);
}

.footer__top,
.footer__middle {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 34px;
    padding: 16px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom {
    padding: 18px 0 24px;
    text-align: center;
}

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

.footer-column h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.footer-column p,
.footer-column a {
    color: #f0f0f0;
}

.subscribe-form {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 0;
    max-width: 420px;
}

.subscribe-form input {
    height: 40px;
    padding: 0 14px;
    border: 0;
    outline: none;
}

.subscribe-form button {
    height: 40px;
    font-weight: 700;
    color: #272727;
    background: var(--accent);
}

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #2d2d2d;
    background: #ffffff;
}

.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(33, 35, 40, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
}

.cart-modal__dialog {
    width: min(100% - 24px, 430px);
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transform: translateY(48px);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.cart-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-modal.is-open .cart-modal__dialog {
    transform: translateY(0);
    opacity: 1;
}

.cart-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.cart-modal__header h2 {
    margin: 0;
    font-size: 18px;
}

.cart-modal__close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    color: #394150;
}

.cart-modal__body {
    padding: 16px 20px 20px;
}

.cart-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 10px;
}

.cart-empty__icon {
    font-size: 56px;
    color: #687184;
}

.cart-summary {
    margin-bottom: 14px;
    text-align: center;
}

.cart-summary p {
    margin: 0;
}

.cart-items {
    display: grid;
    gap: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 42px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
}

.cart-item__image img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.cart-item__content {
    display: grid;
    gap: 8px;
}

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}

.cart-qty button,
.cart-qty span {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.cart-delete {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    color: #fff;
    background: #ef4444;
}

.cart-checkout {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.cart-checkout__row {
    display: grid;
    grid-template-columns: 1fr 58px;
}

/* Обгортка поля з префіксом +380 */
.cart-phone-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    min-height: 44px;
}
.cart-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background: #f3f4f6;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    border-right: 1px solid var(--line);
    white-space: nowrap;
    user-select: none;
}
.cart-phone-wrap input {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 10px;
    min-height: 44px;
    flex: 1;
    width: 0;
}
.cart-phone-wrap input:focus { outline: none; }
.cart-checkout__row.has-error .cart-phone-wrap {
    border-color: #d92d20;
}

.cart-checkout__row button,
.cart-submit,
.cart-continue {
    min-height: 44px;
    border-radius: 10px;
    font-weight: 800;
}

.cart-checkout__row button {
    border-radius: 0 10px 10px 0;
    background: var(--accent);
}

.cart-phone-error {
    color: #d92d20;
    font-size: 13px;
    font-weight: 700;
    min-height: 18px;
    line-height: 1.4;
}

.cart-submit,
.cart-continue {
    background: var(--accent);
    color: var(--accent-text);
}

.category-page__title-wrap {
    display: flex;
    align-items: center;
    min-width: 0;
}

.category-content {
    min-width: 0;
}

.category-layout .category-sidebar {
    min-width: 280px;
}

.checkout-page {
    display: grid;
    gap: 18px;
}

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

.checkout-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 24px;
}

.checkout-card__icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff6d9;
    color: #644800;
    font-size: 24px;
    margin-bottom: 16px;
}

.checkout-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.checkout-card p {
    margin: 0 0 16px;
    color: var(--text-muted);
}

.checkout-manager-box {
    padding: 16px;
    border-radius: 14px;
    background: #fafbfc;
    border: 1px solid var(--line);
    display: grid;
    gap: 8px;
}

.checkout-manager-box a {
    font-size: 22px;
    font-weight: 800;
}

.checkout-mail-form {
    display: grid;
    gap: 14px;
}

.checkout-mail-form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.checkout-mail-form input,
.checkout-mail-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px;
    font: inherit;
}

.checkout-mail-form textarea {
    resize: vertical;
    min-height: 96px;
}

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

.delivery-service-card {
    display: block;
    cursor: pointer;
}

.delivery-service-card input {
    display: none;
}

.delivery-service-card span {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    font-weight: 700;
}

.checkout-help {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafbfc;
    color: var(--text-muted);
}

.checkout-payment-note {
    padding: 14px;
    border-radius: 12px;
    background: #fff8df;
    border: 1px solid #ffe8a3;
    color: var(--text-main);
    line-height: 1.55;
}

.is-anchor-highlight {
    animation: anchorHighlight 2.4s ease;
    outline: 2px solid rgba(255, 199, 44, 0.55);
    box-shadow: 0 0 0 6px rgba(255, 199, 44, 0.12);
    border-radius: 18px;
}

.checkout-card__note {
    margin: 8px 0 0;
    color: var(--text-muted);
}

#reviews,
#footer {
    scroll-margin-top: 110px;
}

@keyframes anchorHighlight {
    0%, 100% {
        box-shadow: none;
    }

    18%, 72% {
        box-shadow: 0 0 0 6px rgba(255, 204, 51, 0.24);
    }
}

[data-city-field][hidden],
[data-branch-field][hidden] {
    display: none !important;
}

.delivery-service-card input:checked + span {
    border-color: var(--accent);
    background: #fff6d9;
}

@media (max-width: 1180px) {
    .header-toolbar,
    .hero-layout,
    .hero-slide,
    .footer__top,
    .footer__middle,
    .reviews-layout,
    .category-layout {
        grid-template-columns: 1fr;
    }

    .featured-products-grid,
    .catalog-grid,
    .benefits-grid,
    .checkout-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .header-icons,
    .top-header__inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 860px) {
    .top-header__inner,
    .top-contacts {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .featured-products-grid,
    .catalog-grid,
    .benefits-grid,
    .tiles-grid,
    .checkout-options,
    .delivery-services {
        grid-template-columns: 1fr;
    }

    .header-icons {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(var(--container), calc(100% - 20px));
    }

    .main-header {
        position: static;
    }

    .hero-slide {
        min-height: 0;
        padding: 18px 18px 54px;
    }

    .hero-slide__content h1,
    .hero-slide__content h2 {
        font-size: 34px;
        margin-bottom: 16px;
    }

    .hero-arrow {
        width: 32px;
        height: 32px;
    }

    .header-icons a,
    .header-cart-button {
        min-width: 62px;
        font-size: 10px;
    }

    .catalog-trigger,
    .search-form,
    .guest-review-form .button {
        width: 100%;
    }

    .subscribe-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .cart-delete {
        width: 100%;
    }
}

.product-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(25, 29, 39, 0.58);
    z-index: 1200;
}

.product-modal.is-open {
    display: flex;
}

.product-modal__dialog {
    width: min(920px, 100%);
    max-height: min(90vh, 920px);
    overflow: auto;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.product-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.product-modal__header h2 {
    margin: 0;
    font-size: 22px;
}

.product-modal__close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.product-modal__body {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 24px;
    padding: 22px;
}

.product-modal__media {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fafbfc;
    padding: 20px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal__media img {
    max-width: 100%;
    max-height: 360px;
    object-fit: contain;
}

.product-modal__empty {
    width: 100%;
    height: 320px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f3f5f8, #e9edf2);
}

.product-modal__content {
    display: grid;
    gap: 16px;
    align-content: start;
}

.product-modal__price-row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 20px;
}

.product-modal__description {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.product-modal__specs {
    margin: 0;
    display: grid;
    gap: 12px;
}

.product-modal__specs div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fafbfc;
    border: 1px solid var(--line);
}

.product-modal__specs dt {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.product-modal__specs dd {
    margin: 0;
    font-weight: 700;
}

.product-modal__dimensions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-modal__dimensions span {
    padding: 8px 12px;
    border-radius: 999px;
    background: #f6f7fb;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 700;
}

.product-modal__actions {
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 860px) {
    .product-modal__body {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRODUCT PAGE (product.php)
   ============================================ */

.pp-wrap {
    padding: 16px 0 48px;
}

/* Breadcrumbs */
.pp-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.pp-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color .2s;
}
.pp-breadcrumbs a:hover { color: var(--text-main); }
.pp-breadcrumbs__sep { opacity: .4; }

/* Tabs */
.pp-tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-bottom: 2px solid var(--line);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pp-tabs::-webkit-scrollbar { display: none; }

.pp-tab {
    flex-shrink: 0;
    padding: 10px 18px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
.pp-tab:hover { color: var(--text-main); }
.pp-tab--active {
    color: var(--text-main);
    font-weight: 700;
    border-bottom-color: var(--accent);
}

/* Main grid */
.pp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 40px;
}

/* Gallery */
.pp-gallery__main {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pp-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease, opacity .25s ease;
}
.pp-gallery__main img.is-switching {
    opacity: 0;
    transform: scale(0.97);
}
.pp-gallery__main img:hover { transform: scale(1.04); }

.pp-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.pp-gallery__thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-surface);
    padding: 0;
    cursor: pointer;
    transition: border-color .2s;
}
.pp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pp-gallery__thumb--active,
.pp-gallery__thumb:hover {
    border-color: var(--accent);
}

/* Product info */
.pp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px;
}
.pp-meta__item {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 10px;
}
.pp-meta__item strong { color: var(--text-main); }

.pp-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0 0 16px;
}

.pp-price-block {
    margin-bottom: 20px;
}
.pp-price__old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
}
.pp-price__current {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
}

/* Actions row */
.pp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.pp-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-surface);
    height: 46px;
}
.pp-qty__btn {
    width: 38px;
    height: 46px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-main);
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}
.pp-qty__btn:hover { background: var(--bg-page); }
.pp-qty__input {
    width: 44px;
    border: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    background: none;
    -moz-appearance: textfield;
    height: 46px;
}
.pp-qty__input::-webkit-outer-spin-button,
.pp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; }

.pp-btn-cart {
    flex: 1;
    height: 46px;
    background: var(--accent);
    color: var(--accent-text);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .1s;
}
.pp-btn-cart:hover { background: var(--accent-dark); }
.pp-btn-cart:active { transform: scale(.98); }
.pp-btn-cart.is-in-cart {
    background: var(--bg-surface);
    border: 2px solid var(--accent);
}

/* One-click */
.pp-oneclick {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.pp-oneclick__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}
.pp-oneclick .cart-checkout__row {
    display: flex;
    flex: 1;
    min-width: 200px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-surface);
}
.pp-oneclick__input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    background: none;
    color: var(--text-main);
    outline: none;
    min-width: 0;
}
.pp-oneclick__input.is-error {
    background: #fff5f5;
    border-color: #e53935;
}
.pp-oneclick__btn {
    width: 44px;
    background: var(--accent);
    border: none;
    cursor: pointer;
    color: var(--accent-text);
    font-size: 15px;
    transition: background .2s;
    flex-shrink: 0;
}
.pp-oneclick__btn:hover { background: var(--accent-dark); }

/* Delivery badge */
.pp-delivery-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 20px;
}
.pp-delivery-badge i { color: #16a34a; font-size: 16px; }
.pp-delivery-badge--paid {
    background: var(--bg-page);
    border-color: var(--line);
    color: var(--text-main);
}
.pp-delivery-badge--paid i { color: var(--accent-dark); }

/* Attrs preview */
.pp-attrs-preview {
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
}
.pp-attrs-preview__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pp-attrs-preview__link {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-dark);
    text-decoration: none;
}
.pp-attrs-preview__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}
.pp-attrs-preview__row:last-child { border-bottom: none; }
.pp-attrs-preview__row span:first-child { color: var(--text-muted); }
.pp-attrs-preview__row span:last-child { font-weight: 600; color: var(--text-main); text-align: right; }

/* Content sections */
.pp-content { display: flex; flex-direction: column; gap: 32px; }

.pp-section {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}
.pp-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
}
.pp-section__title i {
    width: 32px;
    height: 32px;
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--accent-dark);
    flex-shrink: 0;
}

/* Description collapse */
.pp-desc-text {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-main);
    overflow: hidden;
    transition: max-height .35s ease;
}
.pp-desc-text.collapsed { -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%); mask-image: linear-gradient(to bottom, black 60%, transparent 100%); }

.pp-read-more {
    display: inline-block;
    margin-top: 12px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: background .2s, border-color .2s;
}
.pp-read-more:hover { background: var(--bg-page); border-color: var(--accent); }

/* Attributes table */
.pp-attrs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.pp-attr-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 14px 13px;
    border: 1px solid #dde4ef;
    border-radius: 10px;
    background: #f8f9fb;
}
.pp-attr-card__icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #000;
    font-size: 13px;
}
.pp-attr-card__body { min-width: 0; }
.pp-attr-card__name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 4px;
}
.pp-attr-card__val {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Rich text */
.rich-text h2 { font-size: 18px; margin: 16px 0 8px; }
.rich-text p  { margin: 0 0 12px; }
.rich-text ol, .rich-text ul { padding-left: 20px; margin: 0 0 12px; }
.rich-text li { margin-bottom: 6px; }

/* Responsive */
@media (max-width: 860px) {
    .pp-grid { grid-template-columns: 1fr; }
    .pp-title { font-size: 18px; }
    .pp-price__current { font-size: 24px; }
    .pp-section { padding: 16px; }
    .pp-oneclick { flex-direction: column; align-items: stretch; }
    .pp-oneclick__label { text-align: center; }
    .pp-attrs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .pp-tabs { gap: 0; }
    .pp-tab { padding: 10px 12px; font-size: 13px; }
    .pp-actions { flex-wrap: wrap; }
    .pp-btn-cart { min-width: 100%; }
    .pp-attrs-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ATTRIBUTES TABLE
   ============================================ */
.pp-attrs-table-wrap {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8eaed;
}
.pp-attrs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.pp-attrs-table tbody tr {
    border-bottom: 1px solid #e8eaed;
}
.pp-attrs-table tbody tr:last-child {
    border-bottom: none;
}
.pp-attrs-table tbody tr:nth-child(even) {
    background: #f8f9fb;
}
.pp-attrs-table tbody tr:nth-child(odd) {
    background: #ffffff;
}
.pp-attrs-table__name {
    padding: 11px 20px;
    color: #6b7280;
    font-weight: 400;
    width: 45%;
    vertical-align: middle;
}
.pp-attrs-table__val {
    padding: 11px 20px;
    color: #111827;
    font-weight: 500;
    vertical-align: middle;
}
@media (max-width: 600px) {
    .pp-attrs-table__name,
    .pp-attrs-table__val { padding: 10px 14px; font-size: 13px; }
    .pp-attrs-table__name { width: 50%; }
}

/* ============================================
   PRODUCT PAGE REVIEWS
   ============================================ */
.pp-reviews-section {
    margin-top: 32px;
    margin-bottom: 40px;
}
.pp-reviews-header {
    margin-bottom: 20px;
}
.pp-reviews-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.pp-reviews-title i { color: var(--accent); }
.pp-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pp-review-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 20px;
}
.pp-review-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.pp-review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}
.pp-review-card__info {
    flex: 1;
    min-width: 0;
}
.pp-review-card__info strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}
.pp-review-card__info small {
    font-size: 12px;
    color: var(--text-muted);
}
.pp-review-card__stars {
    color: var(--accent);
    font-size: 16px;
    letter-spacing: 2px;
}
.pp-review-card__text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}
.pp-reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px dashed var(--line);
    border-radius: 10px;
    text-align: center;
}
.pp-reviews-empty i { font-size: 32px; }
.pp-reviews-empty p { margin: 0; font-size: 14px; }
.pp-review-toggle-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.pp-review-toggle-btn:hover { opacity: 0.85; }
.pp-review-toggle-btn--cancel {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--line);
}
.pp-review-form-wrap {
    margin-top: 20px;
}
.pp-review-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
}
.pp-review-form-card h3 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 700;
}
.pp-review-form-group {
    margin-bottom: 16px;
}
.pp-review-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.pp-review-form-group input[type="text"],
.pp-review-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-page);
    color: var(--text-main);
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.pp-review-form-group input[type="text"]:focus,
.pp-review-form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.pp-review-form-group textarea { resize: vertical; }
.pp-star-picker { display: flex; gap: 6px; cursor: pointer; }
.pp-star { font-size: 24px; color: #d1d5db; transition: color 0.1s; }
.pp-star--on { color: var(--accent); }
.pp-review-submit {
    padding: 12px 28px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.15s;
}
.pp-review-submit:hover { opacity: 0.85; }
.pp-review-success {
    margin-top: 16px;
    padding: 12px 18px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    color: #065f46;
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   NEW ELEMENTS (reviews grid, search, prices)
   ============================================ */

/* Sale price */
.pp-price__current--sale { color: #e53935 !important; }
.price-sale { color: #e53935 !important; }

/* Reviews grid on homepage */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.review-item {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.review-item__product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}
.review-item__product-img-wrap { flex-shrink: 0; display: block; }
.review-item__product-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: var(--bg-page);
    flex-shrink: 0;
    display: block;
}
.review-item__product-img--empty {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: var(--bg-page);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    flex-shrink: 0;
}
.review-item__product-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.review-item__product-title:hover { color: var(--accent); }
.review-item__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 6px;
}
.review-item__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}
.review-item__author {
    flex: 1;
    min-width: 0;
}
.review-item__author strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-item__author small {
    font-size: 11px;
    color: var(--text-muted);
}
.review-item__stars {
    color: var(--accent);
    font-size: 13px;
    flex-shrink: 0;
}
.review-item__text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 6px 14px 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.review-item p {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 900px) {
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .reviews-grid { grid-template-columns: 1fr; }
}
.reviews-more-link {
    text-align: center;
    margin-top: 24px;
}

/* Live Search dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 999;
    max-height: 420px;
    overflow-y: auto;
    display: none;
}
.search-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid var(--line);
    transition: background .15s;
}
.search-dropdown__item:last-child { border-bottom: none; }
.search-dropdown__item:hover { background: var(--bg-page); }
.search-dropdown__img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: var(--text-muted);
}
.search-dropdown__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.search-dropdown__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-dropdown__price {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
.search-dropdown__empty {
    padding: 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   ADVANTAGE CARDS (product description)
   ============================================ */
.pp-advantages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 20px 0;
}
.pp-advantage-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color .2s, box-shadow .2s;
}
.pp-advantage-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.pp-advantage-card__icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
    color: #000;
}
.pp-advantage-card__body { flex: 1; min-width: 0; }
.pp-advantage-card__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 3px;
}
.pp-advantage-card__text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Sale price — red current price */
.pp-price__current--sale,
.price-sale { color: #e53935 !important; }

/* Reviews page buttons */
.reviews-more-link {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.button--outline {
    background: none;
    border: 2px solid var(--accent);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s;
}
.button--outline:hover { background: var(--accent); }

/* ============================================
   REVIEWS GRID — Leyka style (index.php)
   ============================================ */
.reviews-grid-leyka {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.review-card-leyka {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.review-card-leyka__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.review-card-leyka__product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.review-card-leyka__product img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg-page);
    flex-shrink: 0;
}
.review-card-leyka__no-img {
    width: 48px;
    height: 48px;
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}
.review-card-leyka__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.review-card-leyka__meta strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.review-card-leyka__meta small {
    font-size: 12px;
    color: var(--text-muted);
}
.review-card-leyka__stars {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}
.review-card-leyka__stars .fa-star { color: var(--accent); font-size: 13px; }
.review-card-leyka__stars .fa-star.star-empty { color: var(--line); }
.review-card-leyka__product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}
.review-card-leyka__product-name a {
    color: inherit;
    text-decoration: none;
}
.review-card-leyka__product-name a:hover { color: var(--accent-dark); }
.review-card-leyka__text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 860px) {
    .reviews-grid-leyka { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .reviews-grid-leyka { grid-template-columns: 1fr; }
}

/* Read-more description */
.pp-desc-text {
    transition: max-height .35s ease;
}
.pp-desc-collapsed {
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

/* ============================================
   REVIEWS PAGE (reviews.php)
   ============================================ */
.rv-page-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--text-main);
}
.rv-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.rv-notice--success { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.rv-notice--error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.rv-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.rv-sidebar { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 16px; }
.rv-rating-box { background: var(--bg-surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.rv-rating-box__score { font-size: 48px; font-weight: 800; color: var(--text-main); line-height: 1; }
.rv-rating-box__max { font-size: 20px; color: var(--text-muted); margin-bottom: 8px; }
.rv-rating-box__stars { font-size: 20px; margin-bottom: 6px; }
.rv-rating-box__label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.rv-rating-box__count { font-size: 13px; font-weight: 600; color: var(--text-main); margin-bottom: 16px; }
.rv-rating-bars { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.rv-rating-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.rv-rating-bar__track { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.rv-rating-bar__fill { height: 100%; background: var(--accent); border-radius: 3px; }
.rv-form-card { background: var(--bg-surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.rv-form-title { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.rv-form-group { margin-bottom: 14px; }
.rv-form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.rv-form-group input[type="text"], .rv-form-group textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
    font-size: 13px; font-family: inherit; background: var(--bg-page); color: var(--text-main); box-sizing: border-box;
}
.rv-form-group input:focus, .rv-form-group textarea:focus { outline: none; border-color: var(--accent); }
.rv-form-group textarea { resize: vertical; }
.rv-star-picker { display: flex; gap: 4px; cursor: pointer; margin-bottom: 4px; }
.rv-star-pick { font-size: 22px; color: #d1d5db; transition: color 0.1s; }
.rv-star-pick--on { color: var(--accent); }
.rv-submit { width: 100%; padding: 11px; background: var(--accent); color: #000; font-weight: 700; font-size: 14px; border: none; border-radius: 8px; cursor: pointer; }
.rv-submit:hover { opacity: 0.85; }
.rv-list { display: flex; flex-direction: column; gap: 12px; }
.rv-item { background: var(--bg-surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.rv-item__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rv-item__avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--bg-page); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; font-size: 16px;
}
.rv-item__info { flex: 1; min-width: 0; }
.rv-item__author { display: block; font-size: 14px; font-weight: 700; color: var(--text-main); }
.rv-item__date { font-size: 12px; color: var(--text-muted); }
.rv-item__stars { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.rv-item__stars i { font-size: 14px; }
.rv-item__rating-label { font-size: 11px; color: var(--text-muted); margin-left: 4px; }
.rv-item__text { font-size: 14px; color: var(--text-main); line-height: 1.6; margin: 0 0 6px; }
.rv-item__reply { background: var(--bg-page); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 10px 14px; margin-top: 10px; }
.rv-item__reply-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--text-muted); }
.rv-item__reply-head strong { color: var(--text-main); }
.rv-item__reply p { margin: 0; font-size: 13px; color: var(--text-main); line-height: 1.5; }
.rv-reply-form { margin-top: 12px; display: flex; gap: 8px; }
.rv-reply-form textarea { flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; resize: none; background: var(--bg-page); color: var(--text-main); }
.rv-reply-form button { padding: 8px 16px; background: var(--accent); color: #000; font-weight: 700; font-size: 13px; border: none; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.rv-empty { padding: 40px; text-align: center; color: var(--text-muted); background: var(--bg-surface); border: 1px dashed var(--line); border-radius: 12px; }
@media (max-width: 800px) { .rv-layout { grid-template-columns: 1fr; } .rv-sidebar { position: static; } }

/* Rating top block */
.rv-rating-top {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 28px;
    margin-bottom: 24px;
}
.rv-rating-top__left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.rv-rating-top__star {
    width: 32px; height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 14px;
}
.rv-rating-top__info strong { font-size: 16px; font-weight: 700; }
.rv-rating-top__center { text-align: center; flex-shrink: 0; }
.rv-rating-top__score { display: flex; align-items: baseline; gap: 4px; justify-content: center; }
.rv-rating-top__num { font-size: 40px; font-weight: 800; line-height: 1; color: var(--text-main); }
.rv-rating-top__denom { font-size: 18px; color: var(--text-muted); }
.rv-rating-top__label { font-size: 11px; color: var(--text-muted); margin: 2px 0 6px; }
.rv-rating-top__stars { font-size: 18px; }
.rv-rating-top__right { flex: 1; display: flex; flex-direction: column; gap: 5px; }

/* Layout: list left, form right */
.rv-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.rv-sidebar { position: sticky; top: 20px; }

@media (max-width: 860px) {
    .rv-rating-top { flex-wrap: wrap; gap: 16px; }
    .rv-layout { grid-template-columns: 1fr; }
    .rv-sidebar { position: static; }
}

/* LiqPay button in cart */
.cart-pay-online {
    width: 100%;
    padding: 12px;
    background: #0a7aff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    transition: opacity 0.15s;
}
.cart-pay-online:hover { opacity: 0.9; }

/* ============================================
   INFO PAGES (about, delivery)
   ============================================ */
.info-page-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--text-main);
}
.info-page-content { min-width: 0; }
.info-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 28px 0 14px;
    color: var(--text-main);
}
.info-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 14px;
    color: #065f46;
    margin-bottom: 20px;
}
.info-banner i { font-size: 18px; flex-shrink: 0; }

.info-delivery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}
.info-delivery-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 14px;
}
.info-delivery-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fef9c3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #854d0e;
    flex-shrink: 0;
}
.info-delivery-card h3 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.info-delivery-card p { font-size: 13px; color: var(--text-main); margin: 0 0 6px; line-height: 1.5; }
.info-delivery-card ul, .info-delivery-card ol { margin: 6px 0 0 16px; padding: 0; font-size: 13px; color: var(--text-main); }
.info-delivery-card li { margin-bottom: 4px; line-height: 1.5; }
.info-delivery-card a { color: var(--accent); font-weight: 600; text-decoration: none; }

.info-faq { display: flex; flex-direction: column; gap: 8px; margin-bottom: 28px; }
.info-faq__item {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.info-faq__item summary {
    padding: 13px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main);
}
.info-faq__item summary::-webkit-details-marker { display: none; }
.info-faq__item summary::after { content: '+'; font-size: 18px; color: var(--accent); }
.info-faq__item[open] summary::after { content: '−'; }
.info-faq__item p { padding: 0 18px 14px; margin: 0; font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.info-block {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    font-size: 14px;
    line-height: 1.6;
}
.info-block p { margin: 0 0 8px; }
.info-block p:last-child { margin-bottom: 0; }
.info-block h2 { font-size: 16px; font-weight: 700; margin: 0 0 10px; }
.info-block--accent {
    background: #fefce8;
    border-color: #fde68a;
}
.info-list { list-style: none; padding: 0; margin: 8px 0 0; }
.info-list li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list li i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.info-steps { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 10px; }
.info-steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.info-step-num {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--accent); color: #000;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px; flex-shrink: 0;
}

@media (max-width: 700px) {
    .info-delivery-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CALLBACK MODAL
   ============================================ */
.callback-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(33, 35, 40, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.callback-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.callback-modal {
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.25s ease;
    text-align: center;
}
.callback-overlay.is-open .callback-modal {
    transform: translateY(0) scale(1);
}
.callback-modal__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border: none; background: var(--bg-page);
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 14px;
    transition: background 0.15s;
}
.callback-modal__close:hover { background: var(--line); }

.callback-modal__screen { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.callback-modal__screen--hidden { display: none; }

.callback-modal__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #fef9c3;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #854d0e;
    margin-bottom: 4px;
}
.callback-modal__icon--success {
    background: #dcfce7;
    color: #166534;
    animation: popIn 0.35s ease;
}
@keyframes popIn {
    0%   { transform: scale(0.5); opacity: 0; }
    70%  { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.callback-modal__title {
    font-size: 20px; font-weight: 800;
    color: var(--text-main); margin: 0;
}
.callback-modal__subtitle {
    font-size: 13px; color: var(--text-muted);
    margin: 0; line-height: 1.6;
}
.callback-modal__input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    background: var(--bg-page);
    transition: border-color 0.15s;
}
.callback-modal__input-wrap:focus-within { border-color: var(--accent); }
.callback-modal__prefix {
    padding: 12px 10px 12px 14px;
    font-size: 15px; font-weight: 700;
    color: var(--text-main);
    background: var(--bg-page);
    border-right: 1.5px solid var(--line);
    flex-shrink: 0;
}
.callback-modal__input {
    flex: 1;
    padding: 12px 14px;
    border: none; outline: none;
    font-size: 16px; font-weight: 600;
    background: transparent;
    color: var(--text-main);
    font-family: inherit;
    letter-spacing: 1px;
}
.callback-modal__input.is-error { color: #e53935; }
.callback-modal__error {
    font-size: 12px; color: #e53935;
    min-height: 16px; width: 100%;
    text-align: left;
}
.callback-modal__submit {
    width: 100%;
    padding: 13px;
    background: var(--accent);
    color: #000; font-weight: 800;
    font-size: 15px; border: none;
    border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity 0.15s;
}
.callback-modal__submit:hover { opacity: 0.85; }
.callback-modal__submit--green {
    background: #22c55e; color: #fff;
}

/* Checkout LiqPay block */
.checkout-liqpay-wrap { margin-top: 20px; text-align: center; }
.checkout-liqpay-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--text-muted); font-size: 13px; }
.checkout-liqpay-divider::before, .checkout-liqpay-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.checkout-liqpay-hint { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; }
.checkout-liqpay-btn { width: 100%; padding: 14px; background: #0a7aff; color: #fff; font-size: 15px; font-weight: 700; border: none; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity 0.15s; }
.checkout-liqpay-btn:hover { opacity: 0.9; }
.checkout-liqpay-note { font-size: 11px; color: var(--text-muted); margin-top: 8px; }

/* Checkout two-step */
.co-delivery-confirmed {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}
.co-delivery-confirmed i { color: #22c55e; font-size: 16px; }
.co-pay-option {
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
}
.co-pay-option__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.co-pay-option__head > i {
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.co-pay-option__head strong { display: block; font-size: 14px; font-weight: 700; }
.co-pay-option__head small { font-size: 12px; color: var(--text-muted); }
.co-pay-btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.15s;
}
.co-pay-btn:hover { opacity: 0.88; }
.co-pay-btn--blue { background: #0a7aff; color: #fff; }
.co-pay-btn--yellow { background: var(--accent); color: #000; }

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.chat-widget__fab {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    flex-shrink: 0;
}
.chat-widget__fab:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
.chat-widget__badge {
    position: absolute;
    top: -4px; right: -4px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

.chat-widget__window {
    width: 380px;
    max-height: 600px;
    min-width: 300px;
    min-height: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: bottom right;
    /* Абсолютне позиціонування — щоб закрите (невидиме) вікно чату
       НЕ займало місце в layout і не блокувало тапи на кнопках під ним
       на мобільних пристроях. Раніше воно було position:relative і,
       навіть будучи прозорим, "з'їдало" величезну область екрана. */
    position: absolute;
    right: 0;
    bottom: 68px;
}
/* Resize handle — верхній лівий кут */
.chat-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    cursor: nw-resize;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px 0 12px 0;
    background: rgba(0,0,0,0.09);
    transition: background 0.2s, transform 0.15s;
}
.chat-resize-handle:hover {
    background: rgba(0,0,0,0.2);
    transform: scale(1.08);
}
.chat-resize-handle::after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background-image: radial-gradient(circle, rgba(0,0,0,0.5) 1.5px, transparent 1.5px);
    background-size: 5px 5px;
    background-repeat: repeat;
}
.chat-resize-handle:hover .chat-resize-icon {
    transform: scale(1.15);
}
.chat-resize-icon { display: none; }
.chat-widget__window.is-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}
.chat-widget__head {
    background: var(--accent);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.chat-widget__head-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-widget__avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #000;
    flex-shrink: 0;
}
.chat-widget__head-info strong { display: block; font-size: 14px; font-weight: 700; color: #000; }
.chat-widget__head-info small { font-size: 11px; color: rgba(0,0,0,0.6); }
.chat-widget__close {
    width: 30px; height: 30px;
    border: none; background: rgba(0,0,0,0.1);
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 13px;
    flex-shrink: 0;
}
.chat-widget__close:hover { background: rgba(0,0,0,0.2); }

.chat-widget__messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.chat-msg { display: flex; flex-direction: column; gap: 2px; max-width: 80%; }
.chat-msg--admin { align-self: flex-start; }
.chat-msg--client { align-self: flex-end; }
.chat-msg__bubble {
    padding: 9px 13px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
}
.chat-msg--admin .chat-msg__bubble {
    background: #f3f4f6;
    border-bottom-left-radius: 4px;
    color: #111827;
}
.chat-msg--client .chat-msg__bubble {
    background: var(--accent);
    border-bottom-right-radius: 4px;
    color: #000;
}
.chat-msg__meta { font-size: 10px; color: #9ca3af; }
.chat-msg--client .chat-msg__meta { text-align: right; }

.chat-quick-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: flex-start;
    width: 100%;
}
.chat-quick-btn {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s;
}
.chat-quick-btn:hover { background: #fef9c3; border-color: var(--accent); }

.chat-waiting {
    align-self: flex-start;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 9px 13px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-dots span {
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #9ca3af;
    animation: chatDot 1.2s infinite;
}
.chat-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chatDot {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.1); opacity: 1; }
}

.chat-widget__input-wrap {
    border-top: 1px solid #e5e7eb;
    padding: 10px 12px;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    background: #fff;
}
.chat-widget__input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 80px;
    line-height: 1.4;
}
.chat-widget__input:focus { border-color: var(--accent); }
.chat-widget__send {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.chat-widget__send:hover { opacity: 0.85; }

@media (max-width: 400px) {
    .chat-widget { bottom: 12px; right: 12px; }
    .chat-widget__window { width: calc(100vw - 24px); }
}

/* Chat system message and close ticket button */
.chat-msg-system {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    align-self: center;
    max-width: 80%;
}
.chat-close-ticket-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 0.15s;
}
.chat-close-ticket-btn:hover { background: #fecaca; }

/* Chat history screen */
.chat-widget__history-btn {
    width: 28px; height: 28px;
    border: none; background: rgba(0,0,0,0.1);
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #000; font-size: 12px;
    flex-shrink: 0;
    transition: background 0.15s;
}
.chat-widget__history-btn:hover { background: rgba(0,0,0,0.2); }
.chat-history-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-history-title {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid #e5e7eb;
}
.chat-history-list {
    flex: 1;
    overflow-y: auto;
}
.chat-history-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.15s;
}
.chat-history-item:hover { background: #fef9c3; }
.chat-history-item__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.chat-history-item__status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}
.chat-history-item__status--open { background: #dbeafe; color: #1d4ed8; }
.chat-history-item__status--answered { background: #dcfce7; color: #166534; }
.chat-history-item__status--closed { background: #f3f4f6; color: #6b7280; }
.chat-history-item__date { font-size: 11px; color: #9ca3af; margin-left: auto; }
.chat-history-item__subject { font-size: 13px; font-weight: 600; color: #111827; }
.chat-history-item__preview { font-size: 12px; color: #6b7280; margin-top: 2px; }
.chat-history-new {
    margin: 12px 16px;
    padding: 10px;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: calc(100% - 32px);
}
.chat-history-new:hover { opacity: 0.85; }

/* ── Сторінка контактів ──────────────────────────────────────── */
.contacts-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 24px;
}
.contacts-card__top { padding: 24px; }
.contacts-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.contacts-brand__name {
    display: block;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}
.contacts-brand__addr {
    font-size: 13px;
    color: var(--text-muted);
}
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.contacts-block {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.contacts-block > i {
    font-size: 16px;
    color: var(--accent-dark);
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
}
.contacts-block strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-main);
}
.contacts-block p, .contacts-block a {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
    line-height: 1.6;
}
.contacts-block a:hover { color: var(--accent-dark); }
.contacts-phone {
    font-size: 16px !important;
    font-weight: 700;
    color: var(--text-main) !important;
}
.contacts-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.contacts-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s;
}
.contacts-btn:hover { opacity: 0.85; }
.contacts-btn--yellow {
    background: var(--accent);
    color: var(--accent-text);
}
.contacts-btn--outline {
    background: transparent;
    border: 2px solid var(--line);
    color: var(--text-main);
}
.contacts-map { line-height: 0; }
.contacts-quick {
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
}
.contacts-quick h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}
.contacts-quick p { font-size: 14px; color: var(--text-muted); }
@media (max-width: 640px) {
    .contacts-grid { grid-template-columns: 1fr; }
    .contacts-actions { flex-direction: column; }
}

/* ── Checkout месенджери ─────────────────────────────────────── */
.checkout-messengers {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
.co-messenger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
}
.co-messenger i { font-size: 19px; }
.co-messenger:hover { opacity: 0.88; transform: translateX(2px); }
.co-messenger--tg    { background: #29A9EB; color: #fff; }
.co-messenger--viber { background: #7360F2; color: #fff; }
.co-messenger--wa    { background: #25D366; color: #fff; }

/* Накладний платіж — зелена кнопка */
.co-pay-btn--green {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 10px;
    border-radius: 10px;
    border: none;
    background: #16a34a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.co-pay-btn--green:hover { opacity: 0.88; }

/* Футер — месенджери як великі кнопки */
.footer-column a[id^="footer-"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    width: fit-content;
    transition: opacity 0.15s, transform 0.15s;
}
.footer-column a[id^="footer-"]:hover { opacity: 0.85; transform: translateX(2px); }
.footer-column a[id^="footer-"] i { font-size: 17px; }
#footer-telegram, #ct-telegram { background: #29A9EB; color: #fff !important; }
#footer-viber, #ct-viber       { background: #7360F2; color: #fff !important; }
#footer-whatsapp, #ct-whatsapp { background: #25D366; color: #fff !important; }

/* Messenger buttons in contacts */
.contacts-messengers {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.contacts-messenger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}
.contacts-messenger-btn:hover { opacity: 0.85; }
.contacts-messenger-btn--tg {
    background: #229ED9;
    color: #fff !important;
}
.contacts-messenger-btn--viber {
    background: #7360F2;
    color: #fff !important;
}
