/* ==========================================
   1. БАЗОВІ НАЛАШТУВАННЯ ТА ШРИФТИ
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    color: #333333;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   2. ШАПКА САЙТУ (HEADER)
   ========================================== */
header {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
}

.top-bar {
    background-color: #ffffff;
    padding: 10px 0 5px 0;
    font-size: 13px;
}

.top-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-menu ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.top-menu a {
    color: #555555;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.top-menu a:hover {
    color: #b55a6b;
}

.top-right-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Кнопки соцмереж у шапці та футері */
.header-socials { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}
.social-circle-btn, .footer-social-btn { 
    width: 30px; 
    height: 30px; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: transform 0.2s ease, opacity 0.2s ease; 
    flex-shrink: 0; 
}
.social-circle-btn:hover, .footer-social-btn:hover { 
    transform: translateY(-2px); 
    opacity: 0.9; 
}
.social-circle-btn svg, .footer-social-btn svg { 
    width: 100%; 
    height: 100%; 
    display: block; 
}
.footer-social-btn { 
    width: 34px; 
    height: 34px; 
}
.footer-social-btn:hover { 
    transform: translateY(-3px); 
    opacity: 1; 
}

/* Випадаюче меню телефонів */
.phone-container {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-trigger {
    font-size: 13px;
    color: #222222;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.phone-trigger:hover {
    color: #b55a6b;
}

.phone-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e2d9d0;
    border-radius: 6px;
    padding: 15px;
    width: 260px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.phone-container:hover .phone-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.phone-item {
    width: 100%;
    font-size: 13px;
    color: #333333;
    font-weight: 600;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 8px;
}

.phone-item:last-of-type {
    border-bottom: none;
}

.phone-item span {
    display: block;
    color: #888;
    font-size: 11px;
    font-weight: normal;
    margin-top: 2px;
}

.phone-note {
    width: 100%;
    font-size: 11px;
    color: #666666;
    line-height: 1.4;
    background-color: #fdfaf7;
    padding: 8px;
    border-radius: 4px;
    border-left: 2px solid #b55a6b;
    text-align: left;
    margin-top: 4px;
}

/* Основна шапка */
.main-header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 10px 20px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.logo-catalog-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.logo-box .main-logo {
    height: 70px;
    width: auto;
    display: block;
}

.catalog-btn-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #b55a6b;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 24px;
    border-radius: 25px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.catalog-btn-link:hover {
    background-color: #944453;
    box-shadow: 0 4px 12px rgba(181, 90, 107, 0.25);
}

/* Пошук у шапці */
.header-search-bar {
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
}

.header-search-bar input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    border: 1px solid #e2d9d0;
    border-radius: 25px;
    background-color: #fdfaf7;
    color: #333333;
    outline: none;
    transition: all 0.3s ease;
}

.header-search-bar input:focus {
    border-color: #b55a6b;
    background-color: #ffffff;
    box-shadow: 0 0 8px rgba(181, 90, 107, 0.15);
}

.search-submit-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: #b55a6b;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.search-submit-btn:hover {
    background-color: #944453;
}

.search-submit-btn svg {
    width: 15px;
    height: 15px;
    stroke: #ffffff;
    stroke-width: 2.5;
    fill: none;
}

/* Іконки шапки */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.admin-gear-link, .login-link, .cart-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333333;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.admin-gear-link {
    display: none;
    color: #b55a6b;
}

.admin-gear-link:hover {
    transform: rotate(45deg);
}

.admin-gear-link svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #b55a6b;
    stroke-width: 2;
}

.login-link:hover, .cart-link:hover {
    color: #b55a6b;
}

.header-icons svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.cart-badge {
    background-color: #b55a6b;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Рядок хлібних крихт та сортування в каталозі */
.breadcrumbs-bar {
    max-width: 1300px;
    margin: 20px auto 10px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Стилі хлібних крихт */
.breadcrumbs {
    max-width: 1300px;
    width: 100%;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 13px;
    color: #888888;
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumbs a {
    color: #888888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #b55a6b;
}

.breadcrumbs span {
    color: #ccc;
    margin: 0;
}

#breadCurrent {
    color: #222222;
    font-weight: 500;
}

.desktop-sort-wrapper { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 13px; 
    color: #666; 
}

.desktop-sort-select {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #e2d9d0;
    background: #fdfaf7;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    outline: none;
    cursor: pointer;
}

/* ==========================================
   3. СЛАЙДЕР БАНЕРІВ (ГОЛОВНА)
   ========================================== */
.hero-slider-section {
    position: relative;
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
    overflow: hidden;
}

.hero-slider-wrapper {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #e2d9d0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.hero-slider-container {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    min-width: 100%;
    min-height: 420px;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 60px;
    background-size: cover;
    background-position: right center;
    background-color: #fdfaf7;
    color: #222222;
    overflow: hidden;
}

.slide-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 0;
    pointer-events: none;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fdfaf7 45%, rgba(253, 250, 247, 0.6) 75%, transparent 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
    text-align: left;
}

.hero-content h1, .hero-content h2 {
    font-family: 'Forum', serif;
    font-size: 44px;
    color: #222222;
    
    line-height: 1.2;
    margin-bottom: 12px; font-weight: 400; }

.hero-content p {
    font-size: 16px;
    color: #555555;
    margin-bottom: 25px;
    font-weight: 500;
    line-height: 1.5;
}

.btn-archive-catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #b55a6b;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(181, 90, 107, 0.3);
}

.btn-archive-catalog:hover {
    background-color: #944453;
    color: #ffffff;
    transform: translateY(-2px);
}

.banner-social-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    min-width: 170px;
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-social svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-social.telegram {
    background-color: #24A1DE;
}

.btn-social.telegram:hover {
    background-color: #1d88c2;
    transform: translateY(-2px);
}

.btn-social.viber {
    background-color: #7360F2;
}

.btn-social.viber:hover {
    background-color: #5c4cd4;
    transform: translateY(-2px);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e2d9d0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slider-arrow:hover {
    background: #b55a6b;
    color: #ffffff;
    border-color: #b55a6b;
}

.slider-arrow.prev {
    left: 5px;
}

.slider-arrow.next {
    right: 5px;
}

.slider-progress-bar {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.progress-line {
    height: 4px;
    flex: 1;
    max-width: 100px;
    background: #e2e8f0;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-line-fill {
    height: 100%;
    width: 100%;
    background: #b55a6b;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.05s linear;
    will-change: transform;
}

/* ==========================================
   4. КАТАЛОГ ТА СІТКА ТОВАРІВ (PRODUCTS GRID)
   ========================================== */
.products-section {
    max-width: 1300px;
    margin: 40px auto 80px auto;
    padding: 0 20px;
}

.section-title {
    font-family: 'Forum', serif;
    font-size: 36px;
    color: #222222;
    text-align: center;
    margin-bottom: 40px;
    position: relative; font-weight: 400; }

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: #b55a6b;
    margin: 15px auto 0;
}

.catalog-container { 
    max-width: 1600px; 
    margin: 15px auto 80px auto; 
    padding: 0 20px; 
}

.mobile-filter-header { 
    display: none; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-bottom: 15px; 
}

.mobile-btn-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2d9d0;
    padding: 10px 14px;
    border-radius: 25px;
    color: #222222;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    width: 100%;
    height: 42px;
    outline: none;
    transition: all 0.2s ease;
}
.mobile-btn-control svg { 
    width: 16px; 
    height: 16px; 
    stroke: #b55a6b; 
    fill: none; 
    stroke-width: 2; 
    flex-shrink: 0; 
}

.mobile-sort-wrapper { 
    position: relative; 
    width: 100%; 
}
.mobile-sort-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.catalog-layout { 
    display: grid; 
    grid-template-columns: 260px 1fr; 
    gap: 30px; 
    align-items: flex-start; 
}

/* Бічна панель фільтрів */
.catalog-sidebar { 
    background-color: #fdfaf7; 
    border: 1px solid #e2d9d0; 
    border-radius: 15px; 
    padding: 25px; 
    position: sticky; 
    top: 20px; 
}
.filter-section { 
    margin-bottom: 25px; 
    border-bottom: 1px solid #ebdcd0; 
    padding-bottom: 20px; 
}
.filter-section:last-child { 
    margin-bottom: 0; 
    border-bottom: none; 
    padding-bottom: 0; 
}
.filter-title { 
    font-family: 'Forum', serif; 
    font-size: 16px; 
     
    color: #222222; 
    margin-bottom: 15px; font-weight: 400; }
.filter-list { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
}
.filter-item label { 
    font-size: 13px; 
    color: #555555; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    user-select: none; 
}
.filter-item input[type="checkbox"] { 
    appearance: none; 
    width: 16px; 
    height: 16px; 
    border: 1px solid #b55a6b; 
    border-radius: 3px; 
    outline: none; 
    cursor: pointer; 
    display: grid; 
    place-content: center; 
    background-color: #ffffff; 
    transition: all 0.2s ease; 
}
.filter-item input[type="checkbox"]::before { 
    content: ""; 
    width: 8px; 
    height: 8px; 
    transform: scale(0); 
    transition: 120ms transform ease-in-out; 
    background-color: #ffffff; 
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); 
}
.filter-item input[type="checkbox"]:checked { 
    background-color: #b55a6b; 
}
.filter-item input[type="checkbox"]:checked::before { 
    transform: scale(1); 
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* КАРТКА ТОВАРУ */
.product-card {
    position: relative !important;
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.product-card-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    text-indent: -9999px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(181, 90, 107, 0.08);
    border-color: #e2d9d0;
}

.product-image-box, .product-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: 280px;
    background-color: #fdfaf7;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.product-image-box img, .product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #b55a6b;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 6;
}

.product-badge.custom {
    background-color: #2c3e50;
}

.product-details, .product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.product-category {
    font-size: 11px;
    color: #888888;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 6px;
    text-decoration: none;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title:hover {
    color: #b55a6b;
}

.product-meta, .product-fabric {
    font-size: 12px;
    color: #666666;
    margin-bottom: 12px;
}
.product-fabric span {
    color: #b55a6b;
    font-weight: 500;
}

.product-bottom, .product-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f9f9f9;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
}

.product-price span {
    font-size: 13px;
    font-weight: 400;
    color: #888888;
    margin-left: 2px;
}

.btn-add-to-cart, .product-btn {
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    border: 1px solid #b55a6b;
    color: #b55a6b;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    padding: 0;
}
.product-btn {
    width: auto;
    height: auto;
    border-radius: 20px;
    padding: 9px 16px;
    background-color: #b55a6b;
    color: #ffffff;
}

.btn-add-to-cart:hover, .product-btn:hover {
    background-color: #b55a6b;
    color: #ffffff;
    transform: scale(1.05);
}
.product-btn:hover {
    transform: translateY(-2px);
    background-color: #222222;
    border-color: #222222;
}

.btn-add-to-cart svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* ==========================================
   5. ВИСУВНА ПАНЕЛЬ КОШИКА (DRAWER)
   ========================================== */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer-window {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-window.active {
    right: 0;
}

.cart-drawer-header {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0e9e0;
}

.cart-drawer-header h2 {
    font-family: 'Forum', serif;
    font-size: 20px;
    color: #222;
    margin: 0; font-weight: 400; }

.cart-drawer-count {
    background: #fdfaf7;
    border: 1px solid #ebdcd0;
    color: #b55a6b;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

.cart-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.cart-modal-close:hover {
    color: #b55a6b;
}

.shipping-progress-box {
    padding: 14px 24px;
    background: #fdfaf7;
    border-bottom: 1px solid #f0e9e0;
    font-size: 12px;
    color: #444;
}

.shipping-text {
    margin-bottom: 8px;
    font-weight: 500;
}

.shipping-bar-track {
    width: 100%;
    height: 6px;
    background: #ebdcd0;
    border-radius: 3px;
    overflow: hidden;
}

.shipping-bar-fill {
    height: 100%;
    width: 0%;
    background: #b55a6b;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.cart-drawer-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #ffffff;
}

.cart-card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #fdfaf7;
    border: 1px solid #ebdcd0;
    border-radius: 12px;
    position: relative;
}

.cart-card-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #f0f0f0;
}

.cart-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    padding-right: 15px;
}

.cart-remove-btn {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
}

.cart-remove-btn:hover {
    color: #b55a6b;
}

.cart-card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-card-price {
    font-size: 13px;
    font-weight: 700;
    color: #b55a6b;
}

.cart-counter-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #ebdcd0;
    border-radius: 20px;
    overflow: hidden;
}

.counter-btn {
    background: none;
    border: none;
    width: 26px;
    height: 26px;
    font-size: 14px;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: #ebdcd0;
    color: #b55a6b;
}

.counter-val {
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.cart-drawer-footer {
    padding: 20px 24px;
    background: #ffffff;
    border-top: 1px solid #f0e9e0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-drawer-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.cart-drawer-subtotal b {
    font-size: 18px;
    color: #b55a6b;
}

.btn-main-checkout {
    width: 100%;
    background-color: #b55a6b;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 25px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(181, 90, 107, 0.25);
    transition: background 0.2s;
    text-align: center;
}

.btn-main-checkout:hover {
    background-color: #944453;
}

.btn-continue-shopping {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    text-align: center;
}

.btn-continue-shopping:hover {
    color: #b55a6b;
}

/* ==========================================
   6. ВІКНО ОФОРМЛЕННЯ ЗАМОВЛЕННЯ (CHECKOUT)
   ========================================== */
.checkout-modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 96vh;
    background: #ffffff;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2) !important;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-sizing: border-box !important;
    width: 95vw !important;
    max-width: 1250px !important;
    padding: 25px 35px !important;
    overflow-y: auto !important;
}

.checkout-modal-window.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.checkout-two-columns {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr !important;
    gap: 30px !important;
}

.checkout-block {
    background: #fdfaf7;
    border: 1px solid #ebdcd0;
    border-radius: 14px;
    padding: 14px 18px !important;
    margin-bottom: 12px !important;
}

.checkout-block h3 {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-top: 0;
    margin-bottom: 10px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #444;
}

.custom-radio input {
    display: none;
}

.radio-mark {
    width: 16px;
    height: 16px;
    border: 2px solid #ebdcd0;
    border-radius: 50%;
    background: #fff;
    position: relative;
    transition: all 0.2s;
}

.custom-radio input:checked + .radio-mark {
    border-color: #b55a6b;
    background: #b55a6b;
}

.custom-radio input:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 4px !important;
    margin-bottom: 8px !important;
}

.input-field label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.input-field input,
.input-field select,
.input-field textarea {
    padding: 8px 12px !important;
    border: 1px solid #ebdcd0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    background: #ffffff;
    transition: all 0.2s;
    width: 100%;
}

.input-field textarea {
    resize: vertical;
    min-height: 48px !important;
    height: 52px;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
    border-color: #b55a6b;
    box-shadow: 0 0 8px rgba(181, 90, 107, 0.15);
}

.order-summary-card {
    background: #fdfaf7;
    border: 1px solid #ebdcd0;
    border-radius: 14px;
    padding: 18px;
    position: sticky;
    top: 0;
}

.summary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ebdcd0;
}

.summary-card-header h3 {
    font-size: 15px;
    color: #222;
    margin: 0;
}

.btn-change-order {
    background: none;
    border: none;
    color: #b55a6b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

.checkout-items-preview {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.preview-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #ebdcd0;
}

.preview-item-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 6px;
}

.preview-item-details {
    flex-grow: 1;
}

.preview-item-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

.preview-item-qty {
    font-size: 11px;
    color: #888;
}

.preview-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #222;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    font-size: 14px;
}

.checkout-final-sum {
    font-size: 22px;
    color: #b55a6b;
}

.btn-submit-final-order {
    width: 100%;
    background-color: #b55a6b;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(181, 90, 107, 0.3);
    transition: all 0.2s;
}

.btn-submit-final-order:hover {
    background-color: #944453;
}

/* ==========================================
   7. ФУТЕР
   ========================================== */
footer {
    background-color: #fcf9f6;
    border-top: 1px solid #e2d9d0;
    padding: 60px 0 30px 0;
    margin-top: 80px;
    font-size: 14px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.1fr;
    gap: 50px;
}

.footer-column h3 {
    font-family: 'Forum', serif;
    font-size: 18px;
    color: #222222;
    margin-bottom: 25px;
    
    letter-spacing: 0.5px; font-weight: 400; }

.footer-column p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-column p svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #b55a6b;
    stroke-width: 2;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Десктопний вигляд посилань у футері */
.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    text-align: center;
    margin: 25px auto;
    font-size: 13px;
    color: #666;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #b55a6b;
}

.footer-bottom {
    max-width: 1100px;
    margin: 30px auto 0 auto;
    padding: 20px 20px 0 20px;
    border-top: 1px solid #ebdcd0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888888;
    font-size: 12px;
}

/* ==========================================
   8. ШІ-КОНСУЛЬТАНТ
   ========================================== */
#ai-chat-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: 'Montserrat', sans-serif;
}

.ai-tooltip-bubble {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: #ffffff;
    color: #222222;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid #b55a6b;
    box-shadow: 0 10px 25px rgba(181, 90, 107, 0.25);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    animation: pulseBounce 2.5s infinite ease-in-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9998;
}

.ai-tooltip-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-right: 1px solid #b55a6b;
    border-bottom: 1px solid #b55a6b;
    transform: rotate(45deg);
}

.ai-tooltip-bubble.tooltip-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    animation: none;
    pointer-events: none;
}

.ai-tooltip-close {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    padding: 0 0 0 4px;
    line-height: 1;
}

.ai-tooltip-close:hover {
    color: #b55a6b;
}

@keyframes pulseBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.03); }
}

#ai-chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #b55a6b;
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(181, 90, 107, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease, background-color 0.3s;
}

#ai-chat-toggle:hover {
    transform: scale(1.08);
    background-color: #944453;
}

#ai-chat-toggle svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    position: absolute;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

#ai-chat-toggle .icon-open {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

#ai-chat-toggle .icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

#ai-chat-toggle.active .icon-open {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

#ai-chat-toggle.active .icon-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.ai-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #0f172a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    border: 2px solid #fff;
}

#ai-chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 395px;
    height: 550px;
    max-height: calc(100vh - 110px);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 45px -8px rgba(115, 38, 52, 0.22), 0 4px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(132, 46, 63, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
    z-index: 10000;
}

#ai-chat-window.ai-chat-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.88) translateY(16px);
    pointer-events: none;
}

.ai-chat-header {
    background: linear-gradient(135deg, #a43e52 0%, #7d2637 100%);
    color: #ffffff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 11px;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(125, 38, 55, 0.15);
}

.ai-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.ai-avatar {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ai-online-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    animation: pulseGreen 2.2s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.ai-header-info {
    flex-grow: 1;
    min-width: 0;
}

.ai-header-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-header-info p {
    font-size: 11px;
    color: #fbe4e9;
    margin: 2px 0 0 0;
    opacity: 0.95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#ai-chat-close-btn {
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
    padding: 0;
}

#ai-chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

#ai-chat-messages {
    flex-grow: 1;
    padding: 14px 14px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fbf9f8;
}

#ai-chat-messages::-webkit-scrollbar {
    width: 5px;
}
#ai-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}
#ai-chat-messages::-webkit-scrollbar-thumb {
    background: #e2d1d4;
    border-radius: 4px;
}
#ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #b55a6b;
}

.ai-message {
    max-width: 86%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13.5px;
    line-height: 1.48;
    white-space: normal;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    width: fit-content;
    word-break: break-word;
}

.ai-message.bot {
    background: #ffffff;
    color: #2b2524;
    border: 1px solid #ebdcd5;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-message.user {
    background: linear-gradient(135deg, #b0495c, #842e3f);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(132, 46, 63, 0.22);
}

.ai-text-block {
    width: 100%;
}

.ai-text-p {
    margin: 0 0 6px 0;
    line-height: 1.48;
}

.ai-text-p:last-child {
    margin-bottom: 0;
}

.ai-message.ai-has-chips,
.ai-message.ai-has-cards {
    max-width: 100%;
    width: 100%;
    padding: 12px 13px;
}

/* Інтерактивні чіпси-кнопки вибору */
.ai-chips-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    margin-top: 9px;
    width: 100%;
}

.ai-chip-btn {
    background: #fdfbfb;
    border: 1.2px solid #ecd3d8;
    color: #7b2638;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.16s ease;
    box-shadow: 0 1px 2px rgba(132, 46, 63, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    white-space: normal;
    word-break: normal;
    box-sizing: border-box;
}

.ai-chip-btn:hover {
    background: #842e3f;
    color: #ffffff;
    border-color: #842e3f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(132, 46, 63, 0.22);
}

.ai-chip-btn:active {
    transform: scale(0.97);
}

.ai-chips-wrap .ai-chip-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

/* Міні-картки товарів */
.ai-product-card {
    background: #ffffff;
    border: 1.2px solid #ebd7dc;
    border-radius: 14px;
    padding: 10px;
    margin-top: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 9px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.ai-product-card:hover {
    border-color: #d89aa6;
    box-shadow: 0 4px 14px rgba(132, 46, 63, 0.12);
    transform: translateY(-1px);
}

.ai-card-top {
    display: flex;
    gap: 11px;
    align-items: center;
}

.ai-card-img {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid #ebdcd5;
}

.ai-card-info {
    flex-grow: 1;
    min-width: 0;
}

.ai-card-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #2b2524;
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ai-card-meta {
    font-size: 11px;
    color: #7d6b6a;
    margin-bottom: 4px;
}

.ai-card-price {
    font-size: 13.5px;
    font-weight: 700;
    color: #842e3f;
}

.ai-card-actions {
    display: flex;
    gap: 6px;
    width: 100%;
}

.ai-card-btn {
    flex: 1;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    border: none;
    transition: all 0.16s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
    white-space: nowrap;
    box-sizing: border-box;
}

.ai-card-btn-view {
    background: #fdf5f6;
    color: #842e3f;
    border: 1px solid #ebd0d5;
}

.ai-card-btn-view:hover {
    background: #f5dfe3;
    color: #6a1f2e;
}

.ai-card-btn-buy {
    background: linear-gradient(135deg, #b84c60, #842e3f);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(132, 46, 63, 0.22);
}

.ai-card-btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(132, 46, 63, 0.32);
}

.ai-card-btn-buy.added {
    background: #2e7d5a !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(46, 125, 90, 0.3) !important;
}

/* Панель швидких підказок */
.ai-quick-prompts {
    padding: 7px 12px;
    background: #faf7f5;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-top: 1px solid #f0e6e1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 0;
    max-height: 50px;
    opacity: 1;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease, border-color 0.25s ease;
}

.ai-quick-prompts::-webkit-scrollbar {
    display: none;
}

.ai-quick-prompts.hidden {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
    pointer-events: none;
    overflow: hidden;
}

.quick-btn {
    background: #ffffff;
    border: 1px solid #ebd3d8;
    color: #842e3f;
    padding: 5px 11px;
    border-radius: 14px;
    font-size: 11px;
    font-family: inherit;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
    transition: all 0.16s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(132, 46, 63, 0.05);
}

.quick-btn:hover {
    background: #842e3f;
    border-color: #842e3f;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(132, 46, 63, 0.22);
}

/* Поле введення повідомлення */
.ai-chat-input-area {
    padding: 8px 12px 10px;
    background: #ffffff;
    border-top: 1px solid #f0e6e1;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

#ai-user-input {
    flex-grow: 1;
    border: 1.2px solid #ebdcd5;
    background: #faf7f5;
    border-radius: 20px;
    padding: 9px 15px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

#ai-user-input:focus {
    border-color: #ad4a5e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(173, 74, 94, 0.12);
}

#ai-send-btn {
    background: linear-gradient(135deg, #b84c60, #842e3f);
    color: #ffffff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 7px rgba(132, 46, 63, 0.25);
    transition: transform 0.16s, box-shadow 0.16s;
}

#ai-send-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 10px rgba(132, 46, 63, 0.35);
}

#ai-send-btn:active {
    transform: scale(0.95);
}

#ai-send-btn svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.ai-message.typing-box {
    padding: 6px 10px !important;
    line-height: 1 !important;
    display: inline-flex;
    align-items: center;
}

.typing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 10px;
}

.typing-dot {
    width: 5px;
    height: 5px;
    background-color: #b55a6b;
    border-radius: 50%;
    animation: typingBounce 1.2s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1.2); opacity: 1; }
}

/* ==========================================
   9. СТОРІНКА ТОВАРУ (PRODUCT.HTML)
   ========================================== */
.product-page-container { 
    max-width: 1300px; 
    margin: 30px auto 80px auto; 
    padding: 0 20px; 
    display: grid; 
    grid-template-columns: 1.1fr 1fr; 
    gap: 60px; 
    align-items: start; 
}

.product-gallery { 
    position: relative; 
    background-color: #fcf9f6; 
    border: 1px solid #e2d9d0; 
    border-radius: 12px; 
    overflow: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 450px; 
}

.product-gallery img { 
    width: 100%; 
    height: 100%; 
    max-height: 550px; 
    object-fit: cover; 
    display: block; 
}

.product-badge-stock { 
    position: absolute; 
    top: 20px; 
    left: 20px; 
    background-color: #b55a6b; 
    color: #fff; 
    font-size: 11px; 
    font-weight: 700; 
    text-transform: uppercase; 
    padding: 6px 14px; 
    border-radius: 20px; 
    z-index: 2; 
}

.product-info-box { 
    display: flex; 
    flex-direction: column; 
}

.product-info-box h1 { 
    font-family: 'Forum', serif; 
    font-size: 34px; 
    color: #222222; 
    margin-bottom: 12px; 
    line-height: 1.25; font-weight: 400; }

.product-sku-meta { 
    font-size: 13px; 
    color: #888888; 
    margin-bottom: 20px; 
    display: flex; 
    gap: 20px; 
}

.product-price-main { 
    font-size: 36px; 
    font-weight: 800; 
    color: #b55a6b; 
    margin-bottom: 25px; 
    display: flex; 
    align-items: baseline; 
    gap: 6px; 
    letter-spacing: -0.5px; 
}

.product-price-main .currency { 
    font-size: 20px; 
    font-weight: 600; 
    color: #b55a6b; 
}

.extra-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extra-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #f0e5db;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-size: 13px;
    font-weight: 600;
    color: #4a3f38;
}
.extra-service-item:hover { background: #f3e9de; border-color: #e7ddd2; }
.extra-service-item:has(input:checked) {
    background: #fbeef1;
    border-color: #eec4cf;
}
.extra-service-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #d9c4b5;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    transition: all 0.18s ease;
}
.extra-service-item input[type="checkbox"]:hover {
    border-color: #c06478;
}
.extra-service-item input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #c06478, #944453);
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(148, 68, 83, 0.3);
}
.extra-service-item input[type="checkbox"]:checked::after {
    content: '';
    width: 5px;
    height: 9px;
    margin-bottom: 2px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.extra-service-item span:nth-child(2) { flex: 1; }
.extra-service-price {
    font-weight: 700;
    color: #944453;
    flex-shrink: 0;
}

.size-selector-block { 
    margin-bottom: 25px; 
    background: #fdfaf7; 
    padding: 18px; 
    border-radius: 14px; 
    border: 1px solid #eee1d8; 
    display: none; 
}

.size-selector-block > label { 
    display: block; 
    font-size: 11.5px; 
    font-weight: 700; 
    letter-spacing: 0.4px;
    text-transform: uppercase; 
    color: #8a7a70; 
    margin-bottom: 12px; 
}

.size-buttons-grid { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
}

.size-btn { 
    background: #ffffff; 
    border: 1.5px solid #e7ddd2; 
    padding: 9px 20px; 
    border-radius: 22px; 
    font-size: 13px; 
    font-weight: 600; 
    color: #4a3f38;
    cursor: pointer; 
    transition: all 0.2s ease; 
    box-shadow: 0 1px 3px rgba(80, 50, 40, 0.05);
}

.size-btn:hover { 
    border-color: #c06478;
    color: #944453;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(148, 68, 83, 0.12);
}

.size-btn.active { 
    border-color: transparent; 
    background: linear-gradient(135deg, #c06478, #944453); 
    color: #ffffff; 
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(148, 68, 83, 0.3);
}

.action-row { 
    margin-bottom: 30px; 
    padding-bottom: 25px; 
    border-bottom: 1px solid #f0e9e0; 
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-buy-now { 
    background-color: #b55a6b; 
    color: #ffffff; 
    border: none; 
    padding: 14px 28px; 
    border-radius: 22px; 
    font-weight: 700; 
    font-size: 13px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    cursor: pointer; 
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 4px 12px rgba(181, 90, 107, 0.22); 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: 10px; 
    flex: 1;
}

.btn-buy-now:hover { 
    background-color: #944453; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(181, 90, 107, 0.32); 
}

.btn-buy-now:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(181, 90, 107, 0.2);
}

.btn-buy-now svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.product-desc-box { 
    font-size: 14px; 
    line-height: 1.65; 
    color: #555555; 
    margin-bottom: 30px; 
}

.specs-title { 
    font-family: 'Forum', serif; 
    font-size: 22px; 
    color: #222; 
    margin-bottom: 15px; font-weight: 400; }

.product-specs-list { 
    margin-bottom: 30px; 
}

.spec-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 10px 0; 
    border-bottom: 1px solid #f5efeb; 
    font-size: 13px; 
}

.spec-item span:first-child { 
    color: #888888; 
    font-weight: 500; 
}

.spec-item span:last-child { 
    color: #222222; 
    font-weight: 600; 
}

/* ==========================================
   10. АДАПТИВНІСТЬ ТА МОБІЛЬНА ВЕРСІЯ
   ========================================== */
.bottom-nav {
    display: none;
}

@media (max-width: 992px) {
    .top-bar-container { flex-direction: column; gap: 10px; text-align: center; }
    .main-header-container { flex-direction: column; gap: 15px; }
    .logo-catalog-group { width: 100%; justify-content: center; }
    .header-search-bar { width: 100%; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr; gap: 30px; }
    .checkout-two-columns { grid-template-columns: 1fr !important; gap: 15px !important; }
    .catalog-layout { grid-template-columns: 1fr; }
    .desktop-sort-wrapper { display: none; }
    .product-page-container { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    body { padding-bottom: 70px; }

    header {
        border-bottom: none !important;
    }

    .action-row {
        display: none !important;
    }

    .product-info-box h1 {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .product-price-main {
        font-size: 26px !important;
        margin-bottom: 15px !important;
    }

    .product-price-main .currency {
        font-size: 16px !important;
    }

    .product-page-container {
        margin: 8px auto 60px auto !important;
        gap: 20px !important;
    }

    .top-bar {
        display: none !important;
    }

    .login-link {
        display: none !important;
    }
    .breadcrumbs, .breadcrumbs-bar {
        display: none !important;
    }

    .mobile-back-btn {
        display: inline-flex !important;
        width: fit-content !important;
        max-width: max-content !important;
        justify-self: start !important;
        grid-column: 1 / -1;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 600;
        color: #555;
        background: #ffffff;
        border: 1px solid #ebdcd0;
        padding: 5px 12px;
        border-radius: 16px;
        text-decoration: none;
        margin: 0 0 8px 0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
        transition: all 0.2s ease;
    }
    .mobile-back-btn:hover {
        color: #b55a6b;
        border-color: #b55a6b;
    }
    .mobile-back-btn svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        stroke-width: 2.5;
        fill: none;
    }

    .main-header-container {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        padding: 12px 15px 10px 15px;
        row-gap: 12px;
        border-bottom: none;
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 100;
    }

    .logo-catalog-group { grid-column: 2; grid-row: 1; display: flex; justify-content: center; }
    .logo-box .main-logo { height: 50px; margin: 0 auto; }
    .catalog-btn-link { display: none; }

    .header-icons { display: contents; }

    .admin-gear-link { grid-column: 1; grid-row: 1; justify-self: start; }
    .admin-gear-link svg { width: 28px; height: 28px; stroke: #b55a6b; fill: none; }

    .cart-link { display: none; }

    .header-search-bar { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
    .header-search-bar input { border-radius: 30px; padding: 12px 45px 12px 20px; background-color: #ffffff; border: 1px solid #ebdcd0; }
    .search-submit-btn { background: #b55a6b; width: 32px; height: 32px; right: 6px; }

    .hero-slider-section { margin: 10px auto; padding: 0 15px; }
    .slide { min-height: 200px; padding: 25px 20px; }
    .hero-content h1, .hero-content h2 { font-size: 26px; }
    .hero-content p { font-size: 13px; }
    .btn-archive-catalog { padding: 10px 20px; font-size: 11px; }
    .slider-arrow { display: none; }

    .products-section { margin: 20px auto 80px auto; padding: 0 20px; }
    .section-title { font-size: 24px; margin-bottom: 25px; }
    .section-title::after { width: 40px; margin-top: 10px; height: 1px; }

    .mobile-filter-header { display: grid; }
    .catalog-sidebar { display: none; margin-bottom: 20px; border-radius: 16px; position: static; }
    .catalog-sidebar.active { display: block; }
    
    .products-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px; 
    }
    .product-card { 
        width: 100%; 
        max-width: none;
        border-radius: 12px; 
    }
    .product-image-box, .product-img-box { height: 180px; } 
    .product-details { padding: 12px; }

    .product-price-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 10px;
    }
    
    .product-price {
        font-size: 16px !important;
        font-weight: 700;
        text-align: left;
    }
    
    .product-price span {
        font-size: 12px !important;
    }

    .product-btn {
        width: 100% !important;
        padding: 9px 12px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        text-align: center !important;
        border-radius: 20px !important;
        background-color: #b55a6b !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 3px 10px rgba(181, 90, 107, 0.25);
    }

    .product-gallery {
        min-height: 260px !important;
        max-height: 320px !important;
    }
    .product-gallery img {
        max-height: 320px !important;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        justify-content: space-around;
        align-items: center;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); 
        z-index: 1000;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(0,0,0,0.03);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #222222;
        font-size: 10px;
        font-weight: 600;
        gap: 6px;
        position: relative;
        flex: 1;
        transition: color 0.3s ease;
    }
    .nav-item svg { 
        display: block !important;
        width: 22px; 
        height: 22px; 
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke-width 0.2s ease;
    }

    .nav-item.active { color: #b55a6b; }
    .nav-item.active svg {
        transform: translateY(-3px) scale(1.15);
        filter: drop-shadow(0 4px 6px rgba(181, 90, 107, 0.3));
        stroke-width: 2.5;
    }

    .nav-cart-badge {
        position: absolute;
        top: -6px;
        right: calc(50% - 16px);
        background-color: #b55a6b;
        color: #ffffff;
        font-size: 9px;
        font-weight: 800;
        padding: 3px 6px;
        border-radius: 12px;
        border: 2px solid #ffffff;
        min-width: 20px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(181, 90, 107, 0.4);
    }

    #ai-chat-widget { 
        bottom: calc(72px + env(safe-area-inset-bottom)) !important; 
        right: 14px !important; 
    }
    /* На сторінці товару внизу є панель «Купити» — піднімаємо кнопку чату над нею */
    body:has(.mobile-sticky-buy-bar) #ai-chat-widget {
        bottom: calc(135px + env(safe-area-inset-bottom)) !important;
    }

    #ai-chat-toggle { width: 50px; height: 50px; }
    #ai-chat-toggle svg { width: 22px; height: 22px; }
    #ai-chat-window { width: calc(100vw - 30px); height: 65vh; max-height: 620px; right: 0; bottom: 60px; }
    .ai-tooltip-bubble { bottom: 62px; max-width: 200px; white-space: normal; font-size: 11px; line-height: 1.4; padding: 10px 12px; }
    .ai-tooltip-bubble::after { right: 18px; }

    .mobile-sticky-buy-bar {
        display: flex;
        position: fixed;
        bottom: 60px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 10px 15px;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
        border-top: 1px solid #ebdcd0;
        z-index: 999;
    }

    .sticky-bar-price {
        font-size: 18px;
        font-weight: 800;
        color: #b55a6b;
    }

    .btn-sticky-buy {
        flex-grow: 1;
        background-color: #b55a6b;
        color: #ffffff;
        border: none;
        padding: 12px 20px;
        border-radius: 20px;
        font-weight: 700;
        font-size: 13px;
        text-transform: uppercase;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-shadow: 0 3px 10px rgba(181, 90, 107, 0.25);
    }

    .btn-sticky-buy svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .footer-legal {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px 10px !important;
        padding: 0 15px !important;
        margin: 20px 0 !important;
    }
    
    .footer-legal a:nth-child(3) {
        grid-column: span 2;
    }

    .footer-legal a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 8px 10px !important;
        margin: 0 !important;
        background: #fdfaf7;
        border: 1px solid #ebdcd0;
        border-radius: 14px;
        color: #555;
        font-weight: 500;
        font-size: 12px;
    }

    .footer-legal a:hover {
        color: #b55a6b;
        border-color: #b55a6b;
    }
}

@media (min-width: 769px) {
    .mobile-sticky-buy-bar {
        display: none !important;
    }
    .mobile-back-btn {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .cart-drawer-window {
        max-width: 100% !important;
        right: -100%;
    }
}

/* ==========================================
   11. СТОРІНКА КОНТАКТІВ (CONTACTS.HTML)
   ========================================== */
.contacts-wrapper { 
    max-width: 1300px; 
    margin: 30px auto 80px auto; 
    padding: 0 20px; 
}

.contacts-hero { 
    text-align: center; 
    margin-bottom: 40px; 
}
.contacts-hero h1 { 
    font-family: 'Forum', serif; 
    font-size: 38px; 
    color: #222222; 
    margin-bottom: 10px; font-weight: 400; }
.contacts-hero p { 
    font-size: 15px; 
    color: #666; 
    max-width: 600px; 
    margin: 0 auto; 
    line-height: 1.5; 
}
.contacts-hero::after { 
    content: ''; 
    display: block; 
    width: 50px; 
    height: 2px; 
    background-color: #b55a6b; 
    margin: 15px auto 0; 
}

.contacts-main-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 30px; 
    align-items: stretch; 
}

.contacts-info-cards { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.contact-card-box { 
    background: #ffffff; 
    border: 1px solid #ebdcd0; 
    border-radius: 16px; 
    padding: 25px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.02); 
}

.contact-card-header { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
    margin-bottom: 15px; 
}
.contact-icon-wrap { 
    width: 44px; 
    height: 44px; 
    background: #fdfaf7; 
    border: 1px solid #ebdcd0; 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #b55a6b; 
    flex-shrink: 0; 
}
.contact-icon-wrap svg { 
    width: 22px; 
    height: 22px; 
    fill: none; 
    stroke: currentColor; 
    stroke-width: 2; 
}
.contact-card-header h3 { 
    font-family: 'Forum', serif; 
    font-size: 18px; 
    color: #222; font-weight: 400; }

.contacts-phones-list { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    margin-bottom: 12px; 
}
.contact-phone-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 14px; 
    font-weight: 600; 
    color: #222; 
    padding: 8px 12px; 
    background: #fdfaf7; 
    border-radius: 8px; 
}
.contact-phone-row span { 
    font-size: 12px; 
    font-weight: 400; 
    color: #777; 
}

.contact-socials-row { 
    display: flex; 
    gap: 10px; 
    margin-top: 12px; 
}
.contact-soc-btn { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    padding: 8px 16px; 
    border-radius: 20px; 
    font-size: 12px; 
    font-weight: 600; 
    text-decoration: none; 
    transition: transform 0.2s ease, opacity 0.2s ease; 
    color: #fff; 
}
.contact-soc-btn.telegram { 
    background: #229ED9; 
}
.contact-soc-btn.viber { 
    background: #7360F2; 
}
.contact-soc-btn:hover { 
    transform: translateY(-2px); 
    opacity: 0.92; 
}
.contact-soc-btn svg { 
    width: 16px; 
    height: 16px; 
    fill: #fff; 
}

.contact-text-details { 
    font-size: 14px; 
    color: #555; 
    line-height: 1.5; 
}
.contact-text-details strong { 
    color: #222; 
}

.contacts-map-box { 
    background: #ffffff; 
    border: 1px solid #ebdcd0; 
    border-radius: 16px; 
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.02); 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    min-height: 480px; 
}
.map-responsive-container { 
    position: relative; 
    width: 100%; 
    flex-grow: 1; 
}
.map-responsive-container iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: 0; 
}

/* ==========================================
   12. СУЧАСНИЙ ДИЗАЙН ДЛЯ ВИПАДАЮЧИХ СПИСКІВ (СОРТУВАННЯ)
   ========================================== */
select, 
.desktop-sort-select, 
.mobile-sort-select-visual {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    border: 1px solid #e2d9d0;
    border-radius: 20px;
    padding: 8px 38px 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #333333;
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b55a6b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

select:hover, 
.desktop-sort-select:hover {
    border-color: #b55a6b;
    background-color: #fdfaf7;
}

select:focus, 
.desktop-sort-select:focus {
    border-color: #b55a6b;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(181, 90, 107, 0.15);
}

/* ==========================================
   КАСТОМНИЙ ВИПАДАЮЧИЙ СПИСОК СОРТУВАННЯ
   ========================================== */
.custom-sort-wrapper {
    position: relative;
    user-select: none;
    width: 240px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
}

.custom-sort-trigger {
    background-color: #ffffff;
    border: 1px solid #ebdcd0;
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    color: #333333;
    font-weight: 500;
}

.custom-sort-trigger:hover {
    border-color: #b55a6b;
    background-color: #fdfaf7;
}

.custom-sort-trigger svg {
    width: 14px;
    height: 14px;
    stroke: #b55a6b;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.custom-sort-wrapper.open .custom-sort-trigger {
    border-color: #b55a6b;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(181, 90, 107, 0.15);
}

.custom-sort-wrapper.open .custom-sort-trigger svg {
    transform: rotate(180deg);
}

.custom-sort-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #ebdcd0;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}

.custom-sort-wrapper.open .custom-sort-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-sort-option {
    padding: 10px 16px;
    cursor: pointer;
    color: #333333;
    transition: background 0.2s, color 0.2s;
    font-size: 13px;
}

.custom-sort-option:hover {
    background-color: #fdfaf7;
    color: #b55a6b;
}

.custom-sort-option.active {
    background-color: #b55a6b;
    color: #ffffff;
    font-weight: 600;
}


/* ==========================================
   13. КНОПКА «ОБРАНЕ» (СЕРЦЕ)
   ========================================== */
.wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #8a7f86;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: color 0.2s ease, transform 0.2s ease;
}
.wish-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wish-btn:hover { color: #b55a6b; transform: scale(1.08); }
.wish-btn.active { color: #b55a6b; }
.wish-btn.active svg { fill: currentColor; }
.wish-btn:focus-visible { outline: 2px solid #b55a6b; outline-offset: 2px; }

.btn-wish-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid #ebdcd0;
    background: #ffffff;
    color: #555555;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(80, 50, 40, 0.06);
}
.btn-wish-inline svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-wish-inline:hover { color: #944453; border-color: #c06478; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(148, 68, 83, 0.15); }
.btn-wish-inline.active { color: #ffffff; background: linear-gradient(135deg, #c06478, #944453); border-color: transparent; box-shadow: 0 3px 10px rgba(148, 68, 83, 0.3); }
.btn-wish-inline.active svg { fill: currentColor; }
.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;
}

/* Кнопки в картці товару («В кошик», серце) мають бути над «розтягнутим» посиланням .product-card-link (z-index: 5).
   Блоки з z-index: 2 утворювали власний шар під посиланням, тому кліки на кнопки перехоплювало посилання. */
.product-card .product-image-box,
.product-card .product-img-box,
.product-card .product-info,
.product-card .product-details {
    z-index: auto;
}
/* Виправлення переносу довгих назв у фільтрах */
.filter-item label {
    align-items: flex-start !important;
}

.filter-item input[type="checkbox"] {
    margin-top: 2px; /* вирівнювання з першим рядком тексту */
    flex-shrink: 0;
}

/* Кастомне сортування на мобільних */
.mobile-sort-wrapper {
    position: relative;
    width: 100%;
}

.mobile-sort-custom {
    width: 100% !important;
}

.mobile-sort-custom .custom-sort-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2d9d0;
    padding: 10px 14px;
    border-radius: 25px;
    color: #222222;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    width: 100%;
    height: 42px;
    outline: none;
    transition: all 0.2s ease;
}

.mobile-sort-custom .custom-sort-trigger:hover {
    border-color: #b55a6b;
    background-color: #fdfaf7;
}

.mobile-sort-custom.open .custom-sort-trigger {
    border-color: #b55a6b;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(181, 90, 107, 0.15);
}

.mobile-sort-custom .custom-sort-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
}

/* Футер завжди внизу екрана, але не заважає довгому контенту.
   ВАЖЛИВО: не задавати html/body { height: 100% } і min-height на main —
   тоді main стискається, а товари виходять за його межі й футер опиняється посеред каталогу. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto; /* росте, якщо контенту мало, і ніколи не стискається */
    width: 100%;    /* без цього блок з margin: auto стискається під вміст і центрується (порожній каталог) */
}

footer {
    flex-shrink: 0;
}

/* ==========================================================
   MOBILE FIXES (10.10.2026) — додати В КІНЕЦЬ style.css
   Нічого не видаляє, лише перекриває окремі правила.
   ========================================================== */

/* 1. Прибрати синю підсвітку при тапі + власний відгук на натискання */
* { -webkit-tap-highlight-color: transparent; }
button:active, .btn-social:active, .btn-archive-catalog:active, .contact-soc-btn:active {
    opacity: .88;
    transform: scale(.98);
}

/* 2. Кошик: враховувати панель браузера, щоб кнопка «Оформити» не обрізалась */
.cart-drawer-window {
    height: 100vh;               /* запасний варіант */
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* 3. Радіокнопки: не стискаються довгим текстом, текст вирівняний зверху */
.custom-radio { align-items: flex-start; }
.radio-mark { flex-shrink: 0; min-width: 16px; min-height: 16px; margin-top: 2px; }
.custom-radio:has(input:disabled) { opacity: .55; cursor: not-allowed; }

/* 4. Чат: висота з урахуванням панелі браузера */
@media (max-width: 768px) {
    #ai-chat-window { height: 65vh; height: 65dvh; }
    .ai-tooltip-bubble { max-width: 165px; }
}

/* 5. Сторінка «Контакти»: одна колонка, карта на всю ширину */
@media (max-width: 768px) {
    .contacts-main-grid { grid-template-columns: 1fr; gap: 20px; }
    .contacts-map-box { min-height: 320px; height: 320px; }
}

/* 6. Банер «Telegram / Viber»: кнопки в один ряд, банер нижчий */
@media (max-width: 768px) {
    .banner-social-buttons { flex-wrap: nowrap; gap: 10px; }
    .banner-social-buttons .btn-social {
        flex: 1 1 0;
        min-width: 0;
        padding: 10px 8px;
        font-size: 12px;
        gap: 6px;
    }
    .banner-social-buttons .btn-social svg { width: 18px; height: 18px; }
    .slide { min-height: 215px; padding: 22px 20px; }
    .hero-content h1, .hero-content h2 { font-size: 24px; line-height: 1.2; }
    .hero-content p {
        font-size: 13px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}


/* ==========================================================
   PAGESPEED: резерв місця під динамічний контент (проти CLS)
   ========================================================== */
.main-logo { width: auto; max-width: 100%; }              /* атрибути width/height лише резервують місце */
.hero-slider-wrapper { min-height: 420px; }               /* = мін. висота слайда на десктопі */
.slider-progress-bar { min-height: 4px; }                 /* лінії з'являються скриптом */
.products-grid { min-height: 460px; }                     /* футер не підстрибує до завантаження товарів */
@media (max-width: 768px) {
    .hero-slider-wrapper { min-height: 215px; }
    .products-grid { min-height: 360px; }
}

/* Крапка в радіокнопці рівно по центру */
.custom-radio input:checked + .radio-mark::after {
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    transform: translate(-50%, -50%);
}

/* ШРИФТ ЗАГОЛОВКІВ: Forum має лише одну товщину */
.hero-content h1, .hero-content h2,
.section-title,
.filter-title,
.cart-drawer-header h2,
.footer-column h3,
.product-info-box h1,
.specs-title,
.contacts-hero h1,
.contact-card-header h3 { font-weight: 400 !important; }

/* ===== Перегляд фото зі збільшенням ===== */
.photo-viewer{position:fixed;inset:0;z-index:10000;background:rgba(20,16,14,.94);display:none;flex-direction:column}
.photo-viewer.open{display:flex}
.photo-viewer-scroll{flex:1;overflow:auto;-webkit-overflow-scrolling:touch;display:flex;align-items:center;justify-content:center}
.photo-viewer-scroll img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;display:block}
.photo-viewer-scroll img.zoomed{max-width:none;max-height:none;width:220vw;height:auto;cursor:zoom-out}
.photo-viewer-close{position:absolute;top:12px;right:14px;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:30px;line-height:1;cursor:pointer}
.photo-viewer-hint{position:absolute;bottom:18px;left:0;right:0;text-align:center;color:rgba(255,255,255,.7);font-size:13px;pointer-events:none}
@media (min-width:769px){.photo-viewer-scroll img.zoomed{width:160vw}}

.product-gallery-wrap{min-width:0}


/* ===== Доступність ===== */
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 10000;
    background: #b55a6b; color: #fff; padding: 10px 16px; border-radius: 8px;
    font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Видиме кільце фокуса для клавіатурної навігації (замість прибраних outline: none) */
:focus-visible { outline: 3px solid #b55a6b !important; outline-offset: 2px; }
button.progress-line { border: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ===== Головна: кнопка, «Чому ми», відгуки, статті ===== */
.section-more{text-align:center;margin-top:30px}
.why-section,.articles-section{max-width:1300px;margin:0 auto 70px auto;padding:0 20px}
.why-intro{max-width:820px;margin:0 auto 30px auto;text-align:center;color:#555;font-size:16px;line-height:1.7}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.why-card{background:#fdf6f7;border-radius:16px;padding:22px}
.why-card h3,.article-card h3{font-family:'Forum',serif;font-weight:400;font-size:21px;color:#222;margin-bottom:8px}
.why-card p,.article-card p{font-size:14px;color:#555;line-height:1.6}
.reviews-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin:44px 0 16px}
.reviews-head h3{font-family:'Forum',serif;font-weight:400;font-size:26px;color:#222}
.reviews-head a,.viber-note a{color:#b55a6b;font-size:14px}
.reviews-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.review-card{border:1px solid #f0e3e6;border-radius:16px;padding:20px;margin:0}
.review-stars{color:#e0a526;letter-spacing:2px;margin-bottom:8px}
.review-card blockquote{font-size:14px;color:#444;line-height:1.6;margin:0 0 10px 0}
.review-card figcaption{font-size:12px;color:#888}
.viber-note{text-align:center;margin-top:26px;font-size:14px;color:#555}
.articles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.article-card{display:block;text-decoration:none;border:1px solid #f0e3e6;border-radius:16px;padding:22px;transition:transform .2s,box-shadow .2s}
.article-card:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(181,90,107,.12)}
.article-card span{display:inline-block;margin-top:12px;color:#b55a6b;font-size:13px;font-weight:700}
@media(max-width:1000px){.why-grid,.reviews-grid{grid-template-columns:repeat(2,1fr)}.articles-grid{grid-template-columns:1fr}}
@media(max-width:600px){.why-section,.articles-section{margin-bottom:50px}.why-grid,.reviews-grid{grid-template-columns:1fr}}


/* ===== Відгуки на картці товару ===== */
/* ПК: відгуки під фото (ліва колонка), інфо-блок праворуч на два рядки. Телефон: звичайний потік, відгуки після характеристик */
@media (min-width: 993px) {
    .product-page-container { grid-template-rows: auto 1fr; }
    .product-page-container > .product-gallery-wrap { grid-column: 1; grid-row: 1; }
    .product-page-container > .product-info-box { grid-column: 2; grid-row: 1 / span 2; }
    .product-page-container > .reviews-section { grid-column: 1; grid-row: 2; }
}
.reviews-section { min-width: 0; margin-top: 6px; }
.reviews-section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.reviews-section-head h2 { font-family: 'Forum', serif; font-weight: 400; font-size: 28px; color: #222; }
.reviews-summary { color: #b55a6b; font-weight: 700; font-size: 15px; }
.reviews-list { display: flex; flex-direction: column; gap: 12px; }
.reviews-empty { color: #777; font-size: 14px; }
.review-item { background: #fdf6f7; border-radius: 14px; padding: 16px; }
.review-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review-item-stars { color: #e0a526; letter-spacing: 2px; font-size: 15px; }
.review-item-name { font-size: 14px; color: #222; }
.review-badge { font-size: 11px; font-weight: 700; color: #2e7d4f; background: #e5f3ea; padding: 3px 9px; border-radius: 999px; }
.review-item-text { font-size: 14px; color: #444; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; margin: 0 0 8px; }
.review-item-photos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.review-photo-btn { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.review-photo-btn img { display: block; width: 88px; height: 88px; object-fit: cover; }
.review-item-date { font-size: 12px; color: #999; }
.reviews-more, .reviews-write { margin-top: 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; border-radius: 25px; padding: 11px 26px; }
.reviews-more { background: #fff; color: #b55a6b; border: 1px solid #b55a6b; display: block; }
.reviews-more[hidden] { display: none; }
.reviews-write { background: #b55a6b; color: #fff; border: 0; }
.reviews-write:hover { background: #944453; }
.review-form { margin-top: 16px; padding: 18px; border: 1px solid #f0e3e6; border-radius: 14px; background: #fff; }
.review-form[hidden] { display: none; }
.review-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.review-label { font-size: 13px; font-weight: 600; color: #333; }
.review-hint { font-size: 12px; font-weight: 400; color: #888; }
.review-form input[type=text], .review-form input[type=tel], .review-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #e2d9d0; border-radius: 10px; background: #fff; color: #222; }
.review-form input:focus, .review-form textarea:focus { outline: 2px solid rgba(181,90,107,.35); border-color: #b55a6b; }
.review-stars-input { display: flex; gap: 4px; }
.review-stars-input button { background: none; border: 0; font-size: 34px; line-height: 1; color: #d9cdd0; cursor: pointer; padding: 2px 4px; min-width: 40px; min-height: 44px; }
.review-stars-input button.on { color: #e0a526; }
.review-photo-add { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 700; color: #b55a6b; border: 1px dashed #b55a6b; border-radius: 10px; padding: 10px 16px; cursor: pointer; }
.review-previews { display: flex; gap: 8px; flex-wrap: wrap; }
.review-preview { position: relative; }
.review-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; display: block; }
.review-preview-x { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #333; color: #fff; cursor: pointer; line-height: 1; }
.review-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.reviews-submit { width: 100%; font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: #b55a6b; border: 0; border-radius: 25px; padding: 14px; cursor: pointer; }
.reviews-submit:disabled { opacity: .6; cursor: default; }
.review-msg { margin: 10px 0 0; font-size: 14px; }
.review-msg.ok { color: #2e7d4f; }
.review-msg.err { color: #c0392b; }
@media (max-width: 992px) { .reviews-section { margin-top: 10px; } .reviews-section-head h2 { font-size: 24px; } }

/* Кнопка «Обрати розмір» (посилання) у картці товару */
a.product-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }

/* Ціна в картці товару: більша й акцентна */
.product-price { font-size: 22px; color: #b55a6b; }
.product-price span { font-size: 14px; }
@media (max-width: 768px) {
    .product-price { font-size: 19px !important; color: #b55a6b; }
    .product-price span { font-size: 13px !important; }
}

/* Ціна не переноситься: «грн» лишається в одному рядку з числом */
.product-price { white-space: nowrap; }
@media (min-width: 769px) { .product-price { font-size: 20px; } .product-price-row { gap: 8px; } .product-btn { padding: 9px 14px; } }

/* ===== Каталог: екран категорій ===== */
.category-tiles { display: none; }
body.cat-tiles .category-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin: 10px 0 50px; min-height: 260px; }
.category-tiles .category-tile { flex: 0 1 340px; }
.category-tile-skeleton { background: linear-gradient(100deg, #f3ebe4 30%, #faf5f0 50%, #f3ebe4 70%); background-size: 200% 100%; animation: tileShimmer 1.3s linear infinite; box-shadow: none; }
@keyframes tileShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .category-tile-skeleton { animation: none; } }
.catalog-layout { min-height: 60vh; }
body.cat-tiles .catalog-layout,
body.cat-tiles .mobile-filter-header,
body.cat-tiles .desktop-sort-wrapper { display: none !important; }
.category-tile { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #f3ebe4; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.05); transition: transform .25s, box-shadow .25s; }
.category-tile:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(181,90,107,.16); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.category-tile:hover img { transform: scale(1.05); }
.category-tile-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 20px 18px; background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,0)); color: #fff; font-family: 'Forum', serif; font-size: 24px; line-height: 1.2; }
.category-tile-label small { display: block; margin-top: 4px; font-family: 'Montserrat', sans-serif; font-size: 13px; opacity: .9; }
.catalog-home { display: none; }
body.cat-tiles .catalog-home { display: flex; justify-content: flex-start; margin: 0 0 18px; }
.catalog-back { display: none; align-items: center; gap: 14px; margin: 0 0 18px; flex-wrap: wrap; }
body.cat-incat .catalog-back { display: flex; }
a.back-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px 0 14px; border: 1.5px solid #b55a6b; border-radius: 999px; background: #fff; color: #b55a6b; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: 0 2px 8px rgba(181,90,107,.12); transition: background .2s, color .2s, transform .2s; }
a.back-btn svg { width: 18px; height: 18px; flex: none; }
a.back-btn span { font-family: 'Montserrat', sans-serif; font-size: 14px; line-height: 1; color: inherit; }
a.back-btn:hover, a.back-btn:focus-visible { background: #b55a6b; color: #fff; transform: translateX(-2px); }
.catalog-back span { font-family: 'Forum', serif; font-size: 26px; color: #222; }
/* Конкретна категорія: блок «Категорії» у фільтрах зайвий */
body.cat-incat #categoryFilterSection { display: none; }
/* Дитяча: фільтрів немає — товари на всю ширину */
body.cat-nofilters .catalog-sidebar,
body.cat-nofilters #mobileFilterToggle { display: none !important; }
body.cat-nofilters .catalog-layout { grid-template-columns: 1fr; }
@media (max-width: 600px) {
    body.cat-tiles .category-tiles { gap: 16px; min-height: 0; }
    .category-tiles .category-tile { flex: 1 1 100%; }
    .category-tile-label { font-size: 21px; }
}

/* ===== Картка товару: наволочки (розмір, кількість) ===== */
.pillow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.pillow-row-title { font-size: 13px; color: #555; font-weight: 600; }
.pillow-row-title small { font-weight: 400; color: #888; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid #e2d9d0; border-radius: 22px; background: #fff; overflow: hidden; }
.qty-stepper button { width: 38px; height: 36px; border: 0; background: transparent; font-size: 20px; line-height: 1; color: #b55a6b; cursor: pointer; }
.qty-stepper button:disabled { color: #ccc; cursor: default; }
.qty-stepper span { min-width: 34px; text-align: center; font-weight: 700; font-size: 15px; }
.extra-service-item small { color: #888; font-weight: 400; margin-left: 4px; }
.selection-total { margin: 14px 0 0; font-weight: 700; color: #b55a6b; font-size: 17px; }

/* Екран категорій на ПК: кнопка «На головну» зліва на рівні плиток, плитки лишаються по центру */
.cat-screen { position: relative; }
@media (min-width: 1100px) {
    body.cat-tiles .catalog-home { position: absolute; left: 0; top: 0; margin: 0; z-index: 2; }
    body.cat-tiles .category-tiles { margin-top: 0; }
}

/* ===== КОНСТРУКТОР КОМПЛЕКТІВ ЗА ВЛАСНИМИ РОЗМІРАМИ ===== */
.constructor-wrapper {
    max-width: 1300px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
.constructor-header-block {
    text-align: center;
    margin: 24px 0 34px;
}
.constructor-page-title {
    font-family: 'Forum', serif;
    font-size: 34px;
    color: #222;
    margin: 0 0 10px;
    font-weight: 400;
    line-height: 1.25;
}
.constructor-page-subtitle {
    font-size: 15px;
    color: #666;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.5;
}
.constructor-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}
.constructor-step-box {
    background: #fff;
    border: 1px solid #efe6dd;
    border-radius: 16px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.step-box-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 12px;
}
.step-badge {
    background: #b55a6b;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .8px;
    box-shadow: 0 2px 6px rgba(181,90,107,.2);
}
.step-title {
    font-family: 'Forum', serif;
    font-size: 26px;
    color: #222;
    margin: 0;
    font-weight: 400;
    text-align: center;
    line-height: 1.25;
}
.step-hint-text {
    font-size: 13.5px;
    color: #666;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

/* Фільтри тканин */
.fabric-tabs-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 18px;
    scrollbar-width: thin;
}
.fabric-tab {
    padding: 8px 16px;
    background: #f7f1ea;
    border: 1px solid #e5d9ce;
    border-radius: 20px;
    color: #555;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}
.fabric-tab:hover {
    background: #eedfd3;
    color: #222;
}
.fabric-tab.active {
    background: #b55a6b;
    border-color: #b55a6b;
    color: #fff;
}
.tab-counter {
    font-size: 11.5px;
    opacity: .85;
    margin-left: 4px;
}
.fabric-search-box {
    position: relative;
    margin-bottom: 14px;
}
.fabric-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    stroke: #888;
    fill: none;
    stroke-width: 2;
    pointer-events: none;
}
.fabric-search-input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 40px;
    border: 1.5px solid #ebdcd0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    transition: all .2s;
}
.fabric-search-input:focus {
    border-color: #b55a6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(181,90,107,.12);
}
.fabric-selected-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fdf5f6;
    border: 1px solid #f2cfd6;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    color: #8c4c5a;
    margin-bottom: 16px;
}
.fabric-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #b55a6b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Сітка тканин */
.fabric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    max-height: 480px;
    overflow-y: auto;
    padding: 4px;
}
.fabric-card {
    position: relative;
    background: #fff;
    border: 2px solid #ecdcd0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
.fabric-card:hover {
    border-color: #b55a6b;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(181,90,107,.12);
}
.fabric-card.selected {
    border-color: #b55a6b;
    box-shadow: 0 0 0 3px rgba(181,90,107,.2);
}
.fabric-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #f3ebe4;
    overflow: hidden;
}
.fabric-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fabric-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,.68);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
}
.fabric-check-badge {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: #b55a6b;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.fabric-card.selected .fabric-check-badge {
    display: flex;
}
.fabric-card-info {
    padding: 10px 8px 12px;
    text-align: center;
}
.fabric-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Картки виробів (підковдра, простирадло, наволочки) */
.piece-card {
    background: #faf6f2;
    border: 1.5px solid #ebdcd0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 18px;
    transition: all .25s;
}
.piece-card.disabled {
    background: #f7f7f7;
    border-color: #e5e5e5;
    opacity: .65;
}
.piece-card.disabled .piece-body {
    display: none;
}
.piece-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebdcd0;
    margin-bottom: 14px;
}
.piece-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: 'Forum', serif;
    font-size: 22px;
    color: #222;
    user-select: none;
}
.piece-toggle-label input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.piece-checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #b55a6b;
    border-radius: 7px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(181,90,107,.14);
}
.piece-toggle-label input:checked + .piece-checkbox-custom {
    background: #b55a6b;
    border-color: #b55a6b;
}
.piece-toggle-label input:checked + .piece-checkbox-custom:after {
    content: '';
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}
.piece-price-badge {
    font-size: 15px;
    font-weight: 700;
    color: #b55a6b;
    background: #fff;
    border: 1px solid #e8d7ca;
    padding: 4px 12px;
    border-radius: 20px;
}
.piece-body {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2d2c3;
}
.piece-dims-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}
.dim-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
.dim-input-group input {
    width: 100%;
    height: 44px;
    border: 1px solid #dcd0c4;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #222;
    background: #fff;
    transition: border .2s;
    box-sizing: border-box;
}
.dim-input-group input:focus {
    border-color: #b55a6b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(181,90,107,.15);
}
.dim-hint {
    display: block;
    font-size: 11.5px;
    color: #888;
    margin-top: 4px;
    line-height: 1.3;
}
.piece-calc-error {
    background: #fdf2f2;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #842029;
    margin: 12px 0 6px;
    font-weight: 500;
    line-height: 1.4;
}
.calc-err {
    color: #c62828;
    font-weight: 600;
}

/* Чекбокси додаткових послуг */
.piece-extras-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.piece-extra-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: #fff;
    border: 1.5px solid #ebdcd0;
    border-radius: 12px;
    font-size: 13.5px;
    color: #333;
    cursor: pointer;
    user-select: none;
    transition: all .2s ease;
}
.piece-extra-item:hover {
    border-color: #b55a6b;
    background: #fdfaf8;
}
.piece-extra-item.active {
    border-color: #b55a6b;
    background: #fdf5f6;
    box-shadow: 0 2px 8px rgba(181,90,107,.08);
}
.custom-cb-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.custom-cb-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #cdbdb1;
    border-radius: 6px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .2s ease;
}
.piece-extra-item:hover .custom-cb-mark {
    border-color: #b55a6b;
}
.custom-cb-input:focus-visible + .custom-cb-mark {
    box-shadow: 0 0 0 3px rgba(181,90,107,.25);
}
.custom-cb-input:checked + .custom-cb-mark {
    background: #b55a6b;
    border-color: #b55a6b;
}
.custom-cb-input:checked + .custom-cb-mark:after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}
.extra-item-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.extra-badge-price {
    color: #b55a6b;
    font-weight: 700;
    font-size: 13px;
    background: #fdf0f2;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Наволочки */
.pillow-size-quick-select {
    margin-bottom: 14px;
    text-align: center;
}
.quick-select-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    text-align: center;
}
.pillow-size-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.pillow-btn {
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #dcd0c4;
    border-radius: 20px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all .2s;
}
.pillow-btn:hover {
    border-color: #b55a6b;
    color: #b55a6b;
}
.pillow-btn.active {
    background: #b55a6b;
    border-color: #b55a6b;
    color: #fff;
}
.pillow-qty-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 14px 0 12px;
}
.pillow-qty-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #444;
}
.pillow-per-item-note {
    font-size: 12.5px;
    color: #777;
}

/* Сайдбар та підсумок */
.constructor-sidebar-col {
    position: sticky;
    top: 90px;
}
.constructor-summary-card {
    background: #fff;
    border: 1.5px solid #ebdcd0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.summary-title {
    font-family: 'Forum', serif;
    font-size: 24px;
    color: #222;
    margin: 0 0 16px;
    border-bottom: 1px solid #ebdcd0;
    padding-bottom: 12px;
}
.summary-fabric-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fbf7f4;
    border: 1px solid #ebdcd0;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 18px;
}
.summary-fabric-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.summary-fabric-text {
    flex: 1;
    min-width: 0;
}
.summary-fabric-label {
    display: block;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}
.summary-fabric-text b {
    display: block;
    font-size: 13.5px;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.summary-fabric-text small {
    font-size: 12px;
    color: #b55a6b;
    font-weight: 600;
}
.summary-breakdown-list {
    margin-bottom: 18px;
    border-bottom: 1px solid #ebdcd0;
    padding-bottom: 14px;
}
.summary-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13.5px;
    color: #333;
}
.summary-breakdown-info {
    flex: 1;
    min-width: 0;
}
.breakdown-item-name {
    display: block;
    line-height: 1.35;
}
.breakdown-item-sub {
    display: block;
    font-size: 11.5px;
    color: #888;
    margin-top: 2px;
}
.breakdown-item-price {
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}
.summary-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 16px;
    color: #222;
    font-weight: 600;
}
.summary-total-price {
    font-family: 'Forum', serif;
    font-size: 30px;
    color: #b55a6b;
    font-weight: 400;
}

/* Попередження про повну передоплату */
.constructor-prepayment-alert {
    display: flex;
    gap: 10px;
    background: #fff8e6;
    border: 1px solid #ffd166;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}
.prepay-alert-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.prepay-alert-content {
    font-size: 12.5px;
    color: #7a4b00;
    line-height: 1.4;
}
.prepay-alert-content b {
    display: block;
    margin-bottom: 2px;
}
.prepay-alert-content p {
    margin: 0;
}

/* Помилка / блокування */
.constructor-error-box {
    display: flex;
    gap: 10px;
    background: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
}
.error-box-icon {
    font-size: 20px;
    flex-shrink: 0;
}
.error-box-text {
    font-size: 13px;
    color: #c62828;
    line-height: 1.4;
    font-weight: 600;
}
.breakdown-error-note {
    color: #c62828;
    font-size: 13px;
    text-align: center;
    padding: 12px 0;
}

/* Кнопка замовлення */
.btn-constructor-buy {
    width: 100%;
    min-height: 52px;
    background: #b55a6b;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(181,90,107,.25);
}
.btn-constructor-buy { color: #fff; }
.btn-constructor-buy svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    flex-shrink: 0;
}
.btn-constructor-buy:hover:not(:disabled) {
    background: #9c4857;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(181,90,107,.35);
}
.btn-constructor-buy:disabled,
.btn-constructor-buy.disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.constructor-help-box {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #ebdcd0;
    text-align: center;
}
.constructor-help-box p {
    font-size: 12.5px;
    color: #666;
    margin: 0 0 6px;
}
.help-phone-link {
    display: inline-block;
    font-weight: 700;
    color: #b55a6b;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 4px;
}
.constructor-help-box small {
    display: block;
    font-size: 11.5px;
    color: #888;
}

/* ========================================================
   АДАПТИВНІСТЬ КОНСТРУКТОРА (ПЛАНШЕТИ ТА МОБІЛЬНІ 360-390px)
   ======================================================== */
@media (max-width: 992px) {
    .constructor-layout {
        display: flex;
        flex-direction: column;
        gap: 24px;
        width: 100%;
        min-width: 0;
    }
    .constructor-main-col {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        order: 1;
    }
    .constructor-sidebar-col {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        position: static;
        order: 2;
    }
}

@media (max-width: 600px) {
    .constructor-wrapper {
        padding: 0 8px;
        margin-top: 4px;
        margin-bottom: 90px; /* відступ під плаваюче меню */
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .constructor-header-block {
        margin: 4px 0 8px;
        text-align: center;
    }
    .constructor-page-title {
        font-size: 17px;
        line-height: 1.2;
        margin-bottom: 3px;
    }
    .constructor-page-subtitle {
        font-size: 11px;
        line-height: 1.35;
        max-width: 330px;
        margin: 0 auto;
        color: #666;
    }

    .constructor-step-box {
        padding: 8px 6px;
        margin-bottom: 10px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    .step-box-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 3px;
        margin-bottom: 6px;
    }
    .step-badge {
        font-size: 9.5px;
        padding: 2px 10px;
        letter-spacing: .5px;
    }
    .step-title {
        font-size: 16px;
        line-height: 1.2;
        text-align: center;
    }
    .step-hint-text {
        font-size: 11px;
        line-height: 1.35;
        text-align: center;
        margin: 0 auto 8px;
        max-width: 100%;
    }

    /* Фільтри тканин: усі 5 кнопок (Всі, Сатин, Страйп-сатин, Ранфорс, Бязь) 100% у зоні видимості (wrap) без горизонтального скролу */
    .fabric-tabs-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        overflow-x: visible;
        padding-bottom: 2px;
        margin-bottom: 8px;
        width: 100%;
        box-sizing: border-box;
    }
    .fabric-tabs-filter::-webkit-scrollbar {
        display: none;
    }
    .fabric-tab {
        flex: 0 1 auto;
        padding: 5px 9px;
        font-size: 11px;
        border-radius: 14px;
        white-space: nowrap;
    }
    .tab-counter {
        font-size: 10px;
        margin-left: 2px;
        opacity: 0.85;
    }

    /* Пошук */
    .fabric-search-box {
        margin-bottom: 6px;
        width: 100%;
        box-sizing: border-box;
    }
    .fabric-search-input {
        height: 34px;
        font-size: 12px;
        padding: 0 10px 0 32px;
        border-radius: 8px;
    }
    .fabric-search-box svg {
        left: 10px;
        width: 14px;
        height: 14px;
    }

    /* Рядок обраної тканини */
    .fabric-selected-info {
        padding: 5px 8px;
        gap: 6px;
        font-size: 11px;
        margin-bottom: 6px;
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
    }
    .fabric-info-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
        flex-shrink: 0;
    }
    .fabric-selected-info span:last-child {
        min-width: 0;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Сітка тканин: компактні картки, 2 повні рядки (Сатин, Страйп, Ранфорс, Бязь) 100% у зоні видимості */
    .fabric-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        max-height: none !important;
        overflow-y: visible !important;
        padding: 2px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .fabric-card {
        width: 100% !important;
        min-width: 0 !important;
        border-radius: 10px !important;
        border-width: 1.5px !important;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        box-sizing: border-box;
    }
    .fabric-card-img-wrap {
        width: 100% !important;
        aspect-ratio: 16 / 11 !important;
        position: relative;
        overflow: hidden;
        background: #f3ebe4;
    }
    .fabric-card-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .fabric-badge {
        font-size: 8.5px !important;
        padding: 2px 4px !important;
        bottom: 3px !important;
        left: 3px !important;
        border-radius: 3px !important;
    }
    .fabric-check-badge {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        top: 3px !important;
        right: 3px !important;
    }
    .fabric-card-info {
        padding: 4px 4px 5px !important;
        text-align: center;
        background: #fff;
        min-width: 0;
    }
    .fabric-card-title {
        font-size: 10.5px !important;
        line-height: 1.2 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
    }

    /* Картки виробів (Крок 2) */
    .piece-card {
        padding: 14px 12px;
        margin-bottom: 12px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
        background: #fff;
        border: 1.5px solid #ebdcd0;
    }
    .piece-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        border-bottom: 1px solid #ebdcd0;
        margin-bottom: 12px;
    }
    .piece-toggle-label {
        gap: 8px;
    }
    .piece-name-text {
        font-size: 17px;
    }
    .piece-checkbox-custom {
        width: 22px;
        height: 22px;
    }
    .piece-price-badge {
        font-size: 13.5px;
        padding: 3px 8px;
    }
    .piece-dims-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .dim-input-group label {
        font-size: 11.5px;
        margin-bottom: 4px;
        text-align: center;
        display: block;
    }
    .dim-input-group input {
        height: 40px;
        font-size: 16px;
        padding: 0 8px;
        border-radius: 8px;
        text-align: center;
    }
    .dim-hint {
        font-size: 10px;
        line-height: 1.2;
        margin-top: 3px;
        text-align: center;
        display: block;
    }

    /* Наволочки в Кроці 2 */
    .pillow-size-quick-select {
        margin-bottom: 10px;
        text-align: center;
    }
    .quick-select-label {
        font-size: 11.5px;
        margin-bottom: 6px;
        text-align: center;
    }
    .pillow-size-buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .pillow-btn {
        padding: 7px 4px;
        font-size: 11.5px;
        border-radius: 7px;
        min-height: 36px;
    }
    .pillow-qty-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin: 10px 0;
    }
    .pillow-qty-label {
        font-size: 12px;
    }
    .qty-stepper button {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .qty-stepper span {
        width: 30px;
        font-size: 15px;
    }
    .pillow-per-item-note {
        font-size: 11px;
    }

    /* Додаткові послуги (чекбокси) */
    .piece-extra-item {
        padding: 8px 10px;
        font-size: 12px;
        gap: 8px;
        border-radius: 8px;
    }
    .custom-cb-mark {
        width: 18px;
        height: 18px;
    }
    .extra-badge-price {
        font-size: 11.5px;
    }

    /* Підсумок */
    .constructor-summary-card {
        padding: 14px 10px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    .summary-title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .summary-fabric-row {
        padding: 8px;
        gap: 10px;
        margin-bottom: 10px;
    }
    .summary-fabric-img {
        width: 44px;
        height: 44px;
    }
    .summary-fabric-text b {
        font-size: 13px;
    }
    .summary-total-price {
        font-size: 22px;
    }
    .btn-constructor-buy {
        min-height: 48px;
        font-size: 14px;
        border-radius: 10px;
    }
    .summary-prepay-alert {
        padding: 8px 10px;
        font-size: 11.5px;
    }
}



