:root { --primary: #b71c1c; --red: #ff3131; --white: #ffffff; --light-bg: #f6f6f6; --dark: #222222; --gray: #707070; --green: #00a046; --border-color: #e0e0e0; }
* { margin: 0; padding: 0; box-sizing: border-box !important; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--light-bg); color: var(--dark); padding-top: 110px; }

/* ПРОГРЕС БАРИ (Спільні для кошика і товару) */
.progress-bar-bg { width: 100%; height: 6px; background: #eef2f5; border-radius: 10px; overflow: hidden; }
.progress-bar-fill { width: 0%; height: 100%; border-radius: 10px; transition: width 0.4s ease, background-color 0.4s ease; }
.warning-orange { background-color: #ff9f43; }
.success-green { background-color: var(--green); }
/* ==========================================
   TOP BAR & HEADER (ЛЕГКИЙ І ПОВІТРЯНИЙ)
   ========================================== */
body { padding-top: 114px; } 

.top-announcement-bar {
    background: #fafafa; /* Дуже ніжний, світло-сірий фон, щоб не давив */
    color: #555555; /* М'який сірий текст, без агресивного чорного */
    font-size: 11px; 
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 10px 20px;
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1001;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid #f0f0f0; /* Ледь помітна лінія знизу */
}

.top-announcement-bar .separator {
    width: 5px;
    height: 5px;
    background: var(--primary); /* Фірмова червона крапочка як яскравий акцент */
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 4px rgba(183, 28, 28, 0.3); /* Легке світіння крапочки */
}

header.light-header { 
    top: 35px; /* Висота нового Top Bar */
    height: 80px; 
    padding: 0 40px; 
    display: flex; justify-content: space-between; align-items: center; 
    background: white; border-bottom: 1px solid #eeeeee; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    position: fixed; left: 0; width: 100%; z-index: 1000; 
}
.logo { display: flex; align-items: center; gap: 12px; transition: opacity 0.2s; text-decoration: none; color: inherit; }
.logo:hover { opacity: 0.8; }
.logo img { height: 50px !important; width: auto !important; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; }
.brand-text span { font-size: 22px; font-weight: 900; letter-spacing: 1.5px; color: var(--primary); line-height: 1; }
.brand-text small { margin-top: 3px; font-size: 9px; letter-spacing: 1px; color: #666; font-weight: bold; text-transform: uppercase; }

/* ==========================================
   PREMIUM SEARCH BAR
   ========================================== */
.search-container { position: relative; width: 40%; max-width: 550px; }
.search-bar-mock { 
    display: flex; 
    background: #f5f5f5; 
    border-radius: 50px; 
    overflow: hidden; 
    border: 2px solid transparent; 
    transition: all 0.3s ease; 
}
.search-bar-mock:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.1); 
}
.search-bar-mock input { 
    width: 100%; background: transparent; border: none; 
    padding: 12px 20px; color: #333; /* Темно-сірий замість чорного */
    outline: none; font-size: 14px; font-weight: 600;
}
.search-bar-mock input::placeholder { color: #999; font-weight: 500;}
.search-btn { 
    background: var(--primary); color: white; border: none; 
    padding: 0 25px; cursor: pointer; transition: 0.2s; 
    display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: #991818; }
.search-results-dropdown { position: absolute; top: 110%; left: 0; width: 100%; background: white; border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); max-height: 400px; overflow-y: auto; display: none; z-index: 9999; }
.search-results-dropdown.active { display: block; }
.search-result-item { display: flex; align-items: center; gap: 15px; padding: 12px 15px; text-decoration: none; color: #333; border-bottom: 1px solid #f5f5f5; transition: 0.2s; cursor: pointer; }
.search-result-item:hover { background: #fff0f0; }

/* ==========================================
   NAV & PREMIUM CART ICON
   ========================================== */
nav { display: flex; align-items: center; gap: 15px; }
nav a { text-decoration: none; color: #444; font-weight: 600; font-size: 14px; padding: 10px 15px; border-radius: 12px; transition: background-color 0.2s ease, color 0.2s ease; transform: none !important;}
nav a:hover { color: var(--primary); background-color: #f9f9f9; }
.active-link { color: var(--primary) !important; font-weight: 800 !important; }

nav a.nav-creator { color: #b71c1c !important; font-weight: 800; background-color: transparent; padding: 10px 20px; border-radius: 50px; will-change: background-color; }
nav a.nav-creator:hover { background-color: #fff0f0 !important; transform: none !important; }

/* Іконка кошика */
.header-cart-icon {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0 !important;
    background: #f5f5f5;
    border-radius: 50%;
    color: #555 !important; /* М'який сірий замість чорного */
    transition: all 0.3s ease !important;
}
.header-cart-icon:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.2);
}

/* ФІКС: Червоний бейдж кількості тепер завжди видимий */
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 900;
    width: 20px;
    height: 20px;
    display: flex !important; /* Примусово показуємо */
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ffffff; /* Біла рамка, щоб не зливався */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}
.header-cart-icon:hover .cart-badge {
    border-color: var(--primary);
}

@media (max-width: 900px) {
    .top-announcement-bar { display: none; }
    header.light-header { top: 0; padding: 10px 15px; flex-wrap: wrap; height: auto; }
    body { padding-top: 130px; }
    .search-container { width: 100%; order: 3; margin-top: 15px; }
}

/* NAV */
nav { display: flex; align-items: center; gap: 20px; }
nav a { text-decoration: none; color: #333; font-weight: 600; font-size: 14px; padding: 10px 15px; border-radius: 12px; transition: .3s; }
nav a:hover { color: var(--primary); background: #f5f5f5; transform: translateY(-2px); }
.cart-link-light { background: var(--primary) !important; color: white !important; padding: 10px 20px; border-radius: 50px; text-decoration: none; cursor: pointer; }
.cart-link-light:hover { background: #991818 !important; }

/* MODALS */
.rozetka-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); display: none; align-items: center; justify-content: center; z-index: 10000; opacity: 0; transition: 0.3s ease; }
.rozetka-modal-overlay.active { display: flex; opacity: 1; pointer-events: all; }
.rozetka-modal-content { background: white; border-radius: 12px; width: 95%; max-width: 950px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 15px 50px rgba(0,0,0,0.2); transform: scale(0.95); transition: 0.3s ease; position: relative; overflow: hidden; }
.rozetka-modal-overlay.active .rozetka-modal-content { transform: scale(1); }
.rm-header { padding: 20px 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.rm-header h3 { font-size: 22px; color: #111; margin: 0; font-weight: 700; }
.rm-close { background: none; border: none; font-size: 32px; color: #999; cursor: pointer; line-height: 1; transition: 0.2s; }
.rm-close:hover { color: var(--red); }
.rm-body { padding: 25px; overflow-y: auto; flex: 1; background: #fdfdfd; position: relative; }

/* FIX FOR QUICK VIEW GRID BLOWOUT */
.modal-body { display: grid !important; grid-template-columns: 1fr 1.2fr !important; gap: 30px; min-width: 0 !important; }
.modal-info { min-width: 0 !important; max-width: 100% !important; overflow: hidden !important; display: flex; flex-direction: column; }
.modal-image { min-width: 0 !important; display: flex !important; align-items: center; justify-content: center; background: white; border-radius: 12px; padding: 20px; }
.modal-image img { max-width: 100% !important; max-height: 300px !important; object-fit: contain !important; display: block !important; }

/* CART ITEM STYLES */
.wholesale-progress-box { position: sticky; top: -25px; z-index: 10; background: #fffcf2; padding: 12px 20px; border-radius: 8px; margin-bottom: 25px; font-size: 13px; text-align: center; border: 1px solid #ffda99; box-shadow: 0 4px 10px rgba(0,0,0,0.04); color: #d35400; }
.wholesale-progress-box.info { background: #f8faff; border-color: #cce4f7; color: #0056b3; }
.wholesale-progress-box.success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.wholesale-progress-box b { font-weight: 800; }
.cart-bundle { background: white; border: 1px solid #eee; border-radius: 12px; padding: 20px; margin-bottom: 20px; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.bundle-main { display: flex; gap: 20px; align-items: center; }
.bundle-main .b-img { width: 80px; height: 80px; object-fit: contain; background: #fafafa; border-radius: 8px; padding: 5px; flex-shrink: 0; }
.bundle-main .b-info { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.bundle-main .b-title { font-size: 16px; font-weight: 700; color: #111; line-height: 1.3; }
.b-price-row { display: flex; align-items: center; gap: 30px; }
.b-qty { display: flex; align-items: center; background: #f4f4f5; border-radius: 6px; padding: 2px; border: 1px solid #ddd; }
.b-qty button { width: 32px; height: 32px; border: none; background: white; border-radius: 4px; cursor: pointer; font-size: 18px; color: #333; font-weight: bold; transition: 0.2s; }
.b-qty button:hover { background: #e0e0e0; }
.b-qty span { width: 36px; text-align: center; font-size: 15px; font-weight: 700; }
.b-price { font-size: 18px; font-weight: 800; color: #111; text-align: right; }
.b-remove { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 24px; color: #bbb; cursor: pointer; transition: 0.2s; }
.b-remove:hover { color: var(--red); }
.bundle-sub { display: flex; align-items: center; gap: 15px; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #eee; margin-left: 20px; }
.bundle-sub.has-pad .sub-img { width: 50px; height: 50px; object-fit: contain; background: #fafafa; border-radius: 6px; padding: 4px; }
.sub-price { font-size: 16px; font-weight: 700; color: var(--green); }
.remove-sub-pad { background: none; border: none; font-size: 22px; color: #aaa; cursor: pointer; margin-left: 15px; transition: 0.2s; line-height: 1;}
.remove-sub-pad:hover { color: var(--red); }
.bundle-total { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; text-align: right; font-size: 14px; color: #555; }

.rm-footer { padding: 20px 25px; border-top: 1px solid #eee; background: #fff; display: flex; flex-direction: column; gap: 15px; border-radius: 0 0 12px 12px;}
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; color: #444; }
.cart-total-row strong { font-size: 28px; color: #111; font-weight: 900; }
.cart-actions-row { display: flex; gap: 15px; margin-top: 10px; }
.cart-actions-row button { flex: 1; padding: 16px; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; transition: 0.2s; }
.btn-primary { background: var(--green); color: white; border: none; }
.btn-primary:hover { background: #008a3c; }
.btn-secondary { background: white; color: #333; border: 1px solid #ccc; }
.btn-secondary:hover { background: #f0f0f0; }
.empty-cart-msg { text-align: center; color: var(--gray); font-size: 16px; padding: 60px 20px; }
.promo-badge { background: #e6f7ed; color: var(--green); font-size: 11px; padding: 2px 6px; border-radius: 4px; margin-left: 8px; font-weight: bold; }

/* HORIZONTAL SCROLL FOR UPSELL & QV */
.add-pad-prompt { flex-direction: column; align-items: stretch; background: #fffcf2; border: 2px dashed #ff9f43; padding: 20px 15px; border-radius: 12px; margin-top: 15px; margin-left: 0; box-shadow: 0 5px 15px rgba(255, 159, 67, 0.15); animation: pulse-border 2s infinite; }
@keyframes pulse-border { 0% { border-color: #ff9f43; } 50% { border-color: #ffc107; box-shadow: 0 5px 25px rgba(255, 159, 67, 0.3); } 100% { border-color: #ff9f43; } }

#qvBundleContainer { margin: 15px 0; background: #fffcf2; border-radius: 12px; padding: 15px 0; border: 2px dashed #ffda99; overflow: visible !important; }

/* Відступи 35px з боків створюють місце СУТО для стрілок */
.scroll-wrapper-relative { position: relative; width: 100%; max-width: 100%; min-width: 0; overflow: visible !important; padding: 0 35px !important; margin: 0 auto; }

/* ФІКС: justify-content: flex-start замість center. Це гарантує, що ліва картка НІКОЛИ не обріжеться! */
.horizontal-scroll-row { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; overflow-x: auto !important; overflow-y: visible !important; gap: 12px !important; padding: 15px 5px !important; scroll-behavior: smooth !important; align-items: stretch !important; scrollbar-width: none; justify-content: flex-start !important; }
.horizontal-scroll-row::-webkit-scrollbar { display: none; }

.cart-upsell-item, .qv-pad-option { box-sizing: border-box !important; flex: 0 0 135px !important; min-height: 190px !important; background: white !important; border: 1px solid #f9e3c9 !important; border-radius: 8px !important; padding: 12px 10px !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; text-align: center !important; transition: all 0.2s !important; cursor: pointer !important; }
.cart-upsell-item.selected, .qv-pad-option.selected { border-color: #00a046 !important; box-shadow: 0 4px 15px rgba(0, 160, 70, 0.15) !important; background: #f0fdf4 !important; }
.cart-upsell-item:hover, .qv-pad-option:hover { transform: translateY(-3px) !important; border-color: #00a046 !important; box-shadow: 0 6px 15px rgba(0,160,70,0.12) !important; }

.cart-upsell-item img, .qv-pad-option img { width: 55px !important; height: 55px !important; object-fit: contain !important; margin: 0 auto 10px auto !important; display: block !important; transform: none !important; }
.cui-name { font-size: 11px !important; font-weight: 600 !important; color: #333 !important; line-height: 1.2 !important; margin-bottom: 8px !important; min-height: 28px !important; display: flex !important; align-items: center !important; justify-content: center !important; width: 100% !important; }
.cui-price-row { display: flex !important; flex-direction: row !important; align-items: baseline !important; justify-content: center !important; gap: 4px !important; margin-bottom: 12px !important; width: 100% !important; }
.cui-new { font-size: 14px !important; font-weight: 900 !important; color: #00a046 !important; }
.cui-old { font-size: 11px !important; color: #999 !important; text-decoration: line-through !important; }

.cui-btn, .select-upsell-pad-btn, .qv-select-btn { margin-top: auto !important; width: 100% !important; background-color: #00a046 !important; color: white !important; border: none !important; padding: 8px 5px !important; border-radius: 6px !important; font-weight: bold !important; font-size: 12px !important; cursor: pointer !important; box-sizing: border-box !important; white-space: nowrap !important; transition: 0.2s !important; }
.cui-btn:hover { background-color: #008a3c !important; }
.cart-upsell-item.selected .cui-btn, .qv-pad-option.selected .qv-select-btn { background-color: #007a33 !important; }

/* Стрілочки ідеально сидять на білих відступах (left/right: -5px), не наїжджаючи на картки */
.scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ddd; background: white; color: #333; font-weight: bold; font-size: 15px; cursor: pointer; box-shadow: 0 3px 8px rgba(0,0,0,0.12); display: flex; align-items: center; justify-content: center; transition: 0.2s;}
.scroll-btn:hover { background: #fdfdfd; color: #00a046; border-color: #00a046; box-shadow: 0 4px 12px rgba(0, 160, 70, 0.2); }
.scroll-btn.left { left: -5px; }
.scroll-btn.right { right: -5px; }

.btn-dismiss-upsell { background: transparent; border: none; color: #888; font-size: 13px; text-decoration: underline; cursor: pointer; margin-top: 15px; align-self: center; transition: 0.2s; font-weight: 600;}
.btn-dismiss-upsell:hover { color: var(--red); }

.qv-details-link { display: inline-block; font-size: 14px; color: #0066cc; text-decoration: none; font-weight: 600; padding: 10px 20px; border-radius: 8px; transition: 0.2s; background: #f0f7ff; border: 1px solid #cce4f7; margin-top: 15px; margin-bottom: 5px; text-align: center;}
.qv-details-link:hover { background: #0066cc; color: white; border-color: #0066cc; }

/* FOOTER */
.rozetka-footer { background-color: #f5f5f5; border-top: 3px solid var(--green); padding-top: 40px; margin-top: 60px; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; clear: both;}
.rf-container { max-width: 1400px; margin: 0 auto; padding: 0 20px 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.rf-title { font-size: 16px; font-weight: 700; color: #111; margin-bottom: 20px; }
.rf-list { list-style: none; padding: 0; margin: 0; }
.rf-list li { margin-bottom: 12px; }
.rf-list a { color: #555; text-decoration: none; font-size: 14px; transition: color 0.2s; }
.rf-list a:hover { color: var(--primary); text-decoration: underline; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: #555; text-decoration: none; font-size: 14px; font-weight: 600; transition: 0.2s; }
.rf-bottom { background: #ebebeb; padding: 20px 0; border-top: 1px solid #ddd; }
.rf-bottom-content { max-width: 1400px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.rf-payments { display: flex; gap: 15px; align-items: center; }
.rf-payments img { height: 25px !important; max-height: 25px !important; width: auto !important; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; object-fit: contain !important; }
.rf-payments img:hover { filter: grayscale(0%); opacity: 1; }
.rf-copyright { font-size: 12px; color: #777; }

@media (max-width: 768px) {
    .modal-body { grid-template-columns: 1fr !important; }
    .horizontal-scroll-row { justify-content: flex-start !important; padding: 15px 5px !important; }
    .scroll-wrapper-relative { padding: 0 25px !important; }
    header.light-header { flex-wrap: wrap; height: auto; padding: 15px 20px; }
    .search-container { width: 100%; margin-top: 10px; order: 3; }
    .scroll-btn { display: none !important; }
    .bundle-main { flex-direction: column; align-items: flex-start; gap: 10px; }
    .bundle-main .b-info { flex-direction: column; align-items: flex-start; width: 100%; gap: 10px; }
    .b-price-row { width: 100%; justify-content: space-between; }
    .cart-actions-row { flex-direction: column; }
    .bundle-sub { margin-left: 0; }
    .rf-bottom-content { flex-direction: column; text-align: center; }
}

/* ========================================================= */
/* СТИЛІ ДЛЯ НОВОЇ ПОДІЛЕНОЇ ШКАЛИ ЗНИЖОК (500, 1000, 1500)  */
/* ========================================================= */

.wholesale-progress-box { padding-bottom: 40px !important; } /* Додаткове місце знизу для лейблів */

.tiered-progress-container { position: relative; margin: 0 10px; }
.tiered-progress-bg { width: 100%; height: 8px; background: #eef2f5; border-radius: 10px; position: relative; z-index: 1; }
.tiered-progress-fill { height: 100%; border-radius: 10px; transition: width 0.5s ease, background-color 0.4s ease; }

/* Позиціонування маркерів */
.tier-marker { position: absolute; top: -4px; z-index: 2; }
.tier-marker.tier-1 { left: 33.33%; transform: translateX(-50%); }
.tier-marker.tier-2 { left: 66.66%; transform: translateX(-50%); }
.tier-marker.tier-3 { left: 100%; transform: translateX(-100%); }

/* Кружечки (точки порогів) */
.tier-dot { width: 16px; height: 16px; background: #fff; border: 3px solid #ddd; border-radius: 50%; transition: 0.3s; margin: 0 auto; }
.tier-marker.tier-3 .tier-dot { transform: translateX(8px); } /* Щоб остання крапка була рівно на краю шкали */

/* Якщо поріг досягнуто - точка стає зеленою */
.tier-marker.reached .tier-dot { border-color: #00a046; background: #00a046; box-shadow: 0 0 0 4px rgba(0, 160, 70, 0.15); }

/* Текстові підписи (сума і відсоток) */
.tier-label { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; display: flex; flex-direction: column; align-items: center; }
.tier-marker.tier-3 .tier-label { transform: translateX(-80%); } /* Зсуваємо останній текст ліворуч, щоб не виліз за межі вікна */

.tier-label span { font-size: 11px; color: #888; font-weight: 600; margin-bottom: 3px; }
.tier-label strong { font-size: 12px; color: #666; font-weight: 800; background: #fff; padding: 2px 6px; border-radius: 4px; border: 1px solid #ddd; transition: 0.3s; }

/* Якщо поріг досягнуто - текст відсотка стає зеленим */
.tier-marker.reached .tier-label strong { color: #00a046; border-color: #bbf7d0; background: #f0fdf4; box-shadow: 0 2px 5px rgba(0,160,70,0.1); }

/* ========================================================= */
/* СТИЛІ ДЛЯ РЯДКА ЗНИЖКИ В КОШИКУ                           */
/* ========================================================= */

.cart-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    color: #444; /* Нейтральний колір тексту, щоб не перевантажувати дизайн */
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
    font-weight: 500;
}

.cart-discount-row .discount-amount {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #b71c1c; /* Фірмовий глибокий червоний колір TARLANA */
}

/* ==========================================
   TOAST NOTIFICATIONS (СПЛИВАШКИ)
   ========================================== */
#toastContainer { position: fixed; bottom: 20px; right: 20px; z-index: 10500; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.tarlana-toast { display: flex; align-items: center; gap: 12px; background: white; border-left: 4px solid var(--green); padding: 12px 15px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); min-width: 290px; pointer-events: auto; }
.tarlana-toast.show { transform: translateX(0); }
.tarlana-toast img { width: 40px; height: 40px; object-fit: contain; }
.toast-info { display: flex; flex-direction: column; flex: 1; }
.toast-info span { font-size: 10px; color: var(--green); font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.toast-info strong { font-size: 13px; color: #111; line-height: 1.2; margin-top: 2px;}
.toast-cart-btn { background: #f5f5f5; border: 1px solid #ddd; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: bold; cursor: pointer; color: #333; transition: 0.2s; }
.toast-cart-btn:hover { background: var(--green); color: white; border-color: var(--green); }

@media (max-width: 768px) {
    #toastContainer { bottom: 80px; right: 10px; left: 10px; align-items: center; }
    .tarlana-toast { width: 100%; min-width: auto; transform: translateY(150%); }
    .tarlana-toast.show { transform: translateY(0); }
}

/* ==========================================
   ПРИЛИПАЮЧА ПАНЕЛЬ СОРТУВАННЯ НА МОБІЛЬНОМУ
   ========================================== */
@media (max-width: 768px) {
    .catalog-actions {
        position: sticky;
        top: 65px; /* Висота мобільного хедера */
        z-index: 95;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        padding: 12px 20px;
        margin: 0 -20px 15px -20px;
        border-bottom: 1px solid #eee;
        border-top: 1px solid #eee;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03);
        display: flex;
        justify-content: space-between;
        width: calc(100% + 40px);
    }
    .catalog-top { margin-bottom: 0; padding-bottom: 0; border: none; box-shadow: none; background: transparent; }
}

/* ==========================================
   МІКРО-АНІМАЦІЯ КОШИКА В ШАПЦІ
   ========================================== */
@keyframes cart-bounce {
    0% { transform: scale(1); }
    40% { transform: scale(1.15) translateY(-3px); background-color: #008a3c !important; box-shadow: 0 4px 15px rgba(0, 160, 70, 0.4); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}
.cart-animate {
    animation: cart-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* ==========================================
   СТИЛІ ДЛЯ КНОПКИ "SKONFIGURUJ" У МЕНЮ
   ========================================== */
.nav-creator {
    position: relative;
    color: #b71c1c !important; /* Ваш фірмовий червоний колір */
    font-weight: 800;
    text-decoration: none;
    margin-right: 15px; /* Додатковий відступ, щоб плашка не налізала на кошик */
}

.badge-new {
    position: absolute;
    top: -14px;
    right: -35px;
    background: #00a046; /* Яскравий зелений (як кнопка покупки) */
    color: white;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(0, 160, 70, 0.3);
    animation: pulseBadge 2s infinite;
    pointer-events: none; /* Щоб клік проходив крізь плашку на саме посилання */
}

/* Легка анімація пульсації для привернення уваги */
@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@media (max-width: 768px) {
    .badge-new {
        top: -10px;
        right: -25px;
        font-size: 8px;
        padding: 2px 5px;
    }
}
/* ==========================================
   COOKIE BANNER - RED/WHITE THEME
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.08);
    z-index: 9999;
    padding: 20px;
    border-top: 3px solid #b71c1c; /* Червона полоска зверху */
    display: flex;
    justify-content: center;
}
.cookie-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}
.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}
.cookie-content a {
    color: #b71c1c;
    font-weight: 700;
    text-decoration: none;
}
.cookie-content a:hover {
    text-decoration: underline;
}
.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-buttons button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    font-size: 14px;
}
.cookie-buttons #acceptAllCookiesBtn {
    background: #b71c1c;
    color: #fff;
}
.cookie-buttons #acceptAllCookiesBtn:hover {
    background: #991818;
}
.cookie-buttons #openCookieSettingsBtn {
    background: #fff;
    color: #b71c1c;
    border: 1px solid #b71c1c;
}
.cookie-buttons #openCookieSettingsBtn:hover {
    background: #fdfdfd;
    box-shadow: 0 0 5px rgba(183,28,28,0.15);
}

/* ==========================================
   COOKIE SETTINGS MODAL
   ========================================== */
.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}
.cookie-option-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 20px;
}
.cookie-option-info strong {
    font-size: 15px;
    color: #111;
}
.cookie-option-info span {
    font-size: 13px;
    color: #666;
}

/* Стилі для повзунків-перемикачів (Червоні) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}
input:checked + .slider {
    background-color: #b71c1c; /* Червоний колір увімкненого стану */
}
input:disabled + .slider {
    background-color: #e0e0e0;
    cursor: not-allowed;
}
input:checked:disabled + .slider {
    background-color: #d88989; /* Блідо-червоний для "Niezbędne" */
}
input:checked + .slider:before {
    transform: translateX(22px);
}
.slider.round {
    border-radius: 24px;
}
.slider.round:before {
    border-radius: 50%;
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    .cookie-buttons button {
        width: 100%;
    }
}

/* ==========================================
   НЕЗАЛЕЖНИЙ COOKIE BANNER ТА ВІКНО (TARLANA STYLE)
   ========================================== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background-color: #fff; box-shadow: 0 -10px 25px rgba(0,0,0,0.08);
    z-index: 9999; padding: 20px; border-top: 3px solid #b71c1c;
    display: flex; justify-content: center;
}
.cookie-content {
    max-width: 1200px; width: 100%; display: flex;
    align-items: center; justify-content: space-between; gap: 25px;
}
.cookie-content p { margin: 0; font-size: 14px; color: #444; line-height: 1.6; }
.cookie-content a { color: #b71c1c; font-weight: 700; text-decoration: none; }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-buttons button { padding: 12px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; border: none; font-size: 14px; transition: 0.2s; }
.cookie-buttons #acceptAllCookiesBtn { background: #b71c1c; color: #fff; }
.cookie-buttons #acceptAllCookiesBtn:hover { background: #991818; }
.cookie-buttons #openCookieSettingsBtn { background: #fff; color: #b71c1c; border: 1px solid #b71c1c; }
.cookie-buttons #openCookieSettingsBtn:hover { background: #fdfdfd; box-shadow: 0 0 5px rgba(183,28,28,0.15); }

/* Модальне вікно налаштувань */
.tarlana-cookie-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 10000;
    display: none; /* Сховано за замовчуванням */
    justify-content: center; align-items: center;
}
.tarlana-cookie-modal {
    background: #fff; width: 90%; max-width: 500px;
    border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: cookiePop 0.3s ease-out;
}
@keyframes cookiePop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.tcm-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eee; }
.tcm-header h3 { margin: 0; font-size: 18px; color: #111; }
.tcm-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #888; padding: 0; }
.tcm-close:hover { color: #111; }
.tcm-body { padding: 20px; }
.tcm-footer { padding: 15px 20px; border-top: 1px solid #eee; }

/* Перемикачі-повзунки */
.cookie-option { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; }
.cookie-option-info { display: flex; flex-direction: column; gap: 5px; padding-right: 20px; }
.cookie-option-info strong { font-size: 15px; color: #111; }
.cookie-option-info span { font-size: 13px; color: #666; }
.toggle-switch { position: relative; display: inline-block; width: 46px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
input:checked + .slider { background-color: #b71c1c; }
input:disabled + .slider { background-color: #e0e0e0; cursor: not-allowed; }
input:checked:disabled + .slider { background-color: #d88989; }
input:checked + .slider:before { transform: translateX(22px); }

@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; gap: 15px; }
    .cookie-buttons { width: 100%; flex-direction: column; }
    .cookie-buttons button { width: 100%; }
}

/* ==========================================
   АНІМАЦІЇ COOKIES ТА СПОВІЩЕННЯ
   ========================================== */
/* Плавне зникнення банера вниз */
.cookie-banner {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.cookie-banner.hide-down {
    transform: translateY(100%);
    opacity: 0;
}

/* Стиль для системного сповіщення (Toast) */
.system-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    pointer-events: none;
    text-align: center;
}
.system-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================
   CLEAN COUNTDOWN TIMER (СВІТЛА ТЕМА)
   ========================================== */
.countdown-section {
    max-width: 1200px;
    margin: 40px auto 20px; /* Виправив позицію, тепер стоїть рівно */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}
.countdown-container {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    border-left: 6px solid #b71c1c; /* Солідна червона лінія збоку */
    transition: transform 0.3s ease;
}
.countdown-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.06);
}

.countdown-text {
    flex: 1;
    max-width: 550px;
}
.countdown-badge {
    background: #fff0f0;
    color: #b71c1c;
    border: 1px solid #ffcccc;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
}
.countdown-text h2 {
    color: #111;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 12px;
    line-height: 1.25;
}
.countdown-text h2 .highlight { color: #b71c1c; }
.countdown-text p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Сам таймер */
.countdown-timer-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fafafa;
    padding: 20px 30px;
    border-radius: 16px;
    border: 1px solid #eaeaea;
}
.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 65px;
}
.timer-value {
    color: #b71c1c; /* Червоні цифри */
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.timer-label {
    color: #888;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}
.timer-separator {
    color: #ccc;
    font-size: 34px;
    font-weight: 900;
    margin-top: -15px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Мобільна адаптація */
@media (max-width: 900px) {
    .countdown-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 30px; 
        padding: 30px 20px; 
        border-left: 1px solid #eee; 
        border-top: 6px solid #b71c1c; /* На мобілці лінія зверху */
    }
    .countdown-text h2 { font-size: 24px; }
}
/* ==========================================
   PURE WHITE & RED PREMIUM TOP BAR (SOFT TYPOGRAPHY)
   ========================================== */
.tarlana-top-bar-pure {
    background: #ffffff;
    color: #555555;
    font-size: 13px;
    font-family: inherit;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(183, 28, 28, 0.05); /* Ще м'якша тінь */
    border-bottom: 1px solid #ffeded;
}

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

/* --- Ліва частина --- */
.ttbp-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ttbp-perk {
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

/* Іконки у фірмовому червоному кольорі */
.ttbp-perk svg {
    color: #b71c1c; 
}

.ttbp-text {
    color: #666666; /* М'який текст */
    font-weight: 400;
}

/* М'якший акцент замість агресивного жирного */
.ttbp-text strong {
    color: #333333;
    font-weight: 600; 
}

.ttbp-divider {
    width: 1px;
    height: 16px;
    background: #ffdbdb;
}

/* --- Права частина --- */
.ttbp-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ttbp-link {
    color: #555555;
    text-decoration: none;
    font-weight: 500; /* Легша вага для посилань */
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

/* Червона лінія при наведенні */
.ttbp-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #b71c1c; 
    transition: width 0.3s ease;
    border-radius: 2px;
}

.ttbp-link:hover {
    color: #b71c1c;
}

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

/* --- Секція B2B (Червона кнопка) --- */
.ttbp-b2b-btn {
    background: linear-gradient(135deg, #b71c1c, #991818);
    color: #ffffff !important;
    text-decoration: none;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700; /* Пом'якшили з 900 до 700 */
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 11px;
    border: none;
}

.ttbp-b2b-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.3);
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

/* Пульсація білим кольором для кнопки */
.b2b-pulse-white {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    display: block;
    animation: pulse-white 2s infinite;
}

@keyframes pulse-white {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* --- Мобільна адаптація --- */
@media (max-width: 900px) {
    .ttbp-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }
    .ttbp-left {
        justify-content: center;
        flex-wrap: wrap;
    }
    .ttbp-right {
        gap: 15px;
    }
    .hide-mobile { display: none !important; }
}

/* ==========================================
   ФІКС ХЕДЕРА (ПРИБИРАЄМО ЩІЛИНУ ПРИ СКРОЛІ)
   ========================================== */
.light-header {
    position: sticky !important;
    top: 0 !important; /* Прилипає до самісінького верху екрана */
    z-index: 999 !important; /* Завжди поверх усіх товарів і тексту */
    background-color: #ffffff !important; /* Робимо фон ідеально білим, щоб нічого не просвічувало */
}
/* ==========================================
   ФІКС ВІДСТУПІВ НА САМОМУ ВЕРХУ СТОРІНКИ
   ========================================== */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

.x-kom-light-body {
    padding-top: 0 !important; /* Вбиваємо старий відступ, якщо він був */
}

.tarlana-top-bar-pure {
    margin-top: 0 !important;
    top: 0 !important;
}

/* ==========================================
   MEGA PREMIUM FOOTER (WHITE & RED)
   ========================================== */
.tarlana-premium-footer {
    background-color: #ffffff;
    border-top: 1px solid #ffeded;
    position: relative;
    font-family: inherit;
    color: #555;
    margin-top: 40px;
}

/* Красива червона лінія на самій верхівці футера */
.tpf-top-border {
    height: 3px;
    background: linear-gradient(90deg, #b71c1c 0%, #ff6b6b 50%, #b71c1c 100%);
    width: 100%;
}

.tpf-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 50px;
}

.tpf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

/* Заголовки колонок */
.tpf-title {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    margin-bottom: 25px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Суворий червоний акцент під заголовками */
.tpf-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: #b71c1c;
    border-radius: 2px;
}

.tpf-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tpf-list li {
    margin-bottom: 14px;
}

/* Елегантні посилання */
.tpf-list a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block; 
}

/* Анімація від'їзду вправо при наведенні */
.tpf-list a:hover {
    color: #b71c1c;
    transform: translateX(6px); 
}

/* Секція "Потрібна допомога?" */
.tpf-help-col p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Нова кнопка "Задати питання" */
.tpf-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fffafa;
    color: #b71c1c !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #ffdbdb;
    transition: all 0.3s ease;
}

.tpf-contact-btn:hover {
    background: #b71c1c;
    color: #ffffff !important;
    box-shadow: 0 5px 15px rgba(183, 28, 28, 0.25);
    transform: translateY(-2px);
    border-color: #b71c1c;
}

.tpf-work-hours {
    margin-top: 20px;
    font-size: 13px;
    color: #777;
    background: #fafafa;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #eaeaea;
}

.tpf-work-hours strong {
    color: #111;
}

/* Долішня смуга з оплатами і копірайтом */
.tpf-bottom {
    background-color: #fdfdfd;
    border-top: 1px solid #eaeaea;
    padding: 20px 0;
}

.tpf-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.tpf-copyright {
    font-size: 13px;
    color: #666;
}

.tpf-copyright strong {
    color: #111;
}

.tpf-payments {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.tpf-pay-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* ПОВНОКОЛІРНІ ІКОНКИ З ЕФЕКТОМ ЗБІЛЬШЕННЯ */
.tpf-pay-icons img {
    height: 26px; /* Розмір іконок */
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05)); /* Легка тінь для об'єму */
}

/* При наведенні іконка "вистрибує" */
.tpf-pay-icons img:hover {
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.15));
}

/* Мобільна адаптація */
@media (max-width: 768px) {
    .tpf-bottom-container {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .tpf-payments {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==========================================
   MEGA PREMIUM БАНЕР ПОСЛУГ ВИКОНАННЯ (ВАРШАВА)
   ========================================== */
.about-services-banner-premium {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-services-banner-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(183, 28, 28, 0.08);
}

/* Яскрава червона градієнтна лінія зверху */
.asbp-top-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #b71c1c, #ff4d4d, #b71c1c);
}

.asbp-inner {
    padding: 40px 45px;
    display: flex;
    align-items: flex-start;
    gap: 35px;
}

.asbp-icon {
    color: #b71c1c;
    background: linear-gradient(135deg, #fffafa, #fff0f0);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.1);
    border: 1px solid #ffe6e6;
}

.asbp-content {
    flex: 1;
}

.asbp-content h3 {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.asbp-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.asbp-content p strong {
    color: #111;
    font-weight: 700;
}

/* Блок з контактом */
.asbp-contact-box {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #fdfdfd;
    padding: 12px 15px 12px 25px;
    border-radius: 50px;
    border: 1px solid #eaeaea;
    flex-wrap: wrap;
}

.asbp-label {
    font-size: 14px;
    color: #444;
    font-weight: 600;
}

/* Червона кнопка-телефон */
.asbp-phone-btn {
    background: linear-gradient(135deg, #b71c1c, #991818);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.asbp-phone-btn .phone-icon {
    font-size: 18px;
}

.asbp-phone-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(183, 28, 28, 0.4);
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

@media (max-width: 768px) {
    .asbp-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 25px;
    }
    .asbp-contact-box {
        flex-direction: column;
        border-radius: 12px;
        padding: 20px;
        gap: 15px;
        width: 100%;
    }
    .asbp-phone-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   MEGA PREMIUM БАНЕР ПОСЛУГ (Анімована LED рамка)
   ========================================== */

/* 1. Зовнішній контейнер (основа) */
.about-services-banner-premium {
    position: relative;
    margin-top: 70px;
    border-radius: 16px;
    /* padding — це товщина нашої LED-рамки (3 пікселі) */
    padding: 3px; 
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background: #f5f5f5; /* Колір рамки там, де діод зараз не світить */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-services-banner-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(183, 28, 28, 0.08);
}

/* 2. Ховаємо статичну верхню лінію, бо тепер є крута жива рамка */
.asbp-top-line {
    display: none;
}

/* 3. САМА МАГІЯ: Круговий градієнт, який крутиться на фоні */
.about-services-banner-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 70%, #ff4d4d 90%, #b71c1c 100%);
    animation: spin-led 4s linear infinite;
    z-index: 0;
}

/* 4. Внутрішній білий блок, який закриває все, залишаючи ТІЛЬКИ 3px рамки по краях */
.asbp-inner {
    position: relative;
    z-index: 1;
    background: #ffffff;
    /* Радіус трохи менший за зовнішній (16px), щоб рамка була ідеально рівною */
    border-radius: 14px; 
    padding: 40px 45px;
    display: flex;
    align-items: flex-start;
    gap: 35px;
    height: 100%;
}

/* 5. Анімація безперервного обертання */
@keyframes spin-led {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================
   СТИЛІ КОНТЕНТУ БАНЕРА (Текст, іконки, кнопка)
   ========================================== */
.asbp-icon {
    color: #b71c1c;
    background: linear-gradient(135deg, #fffafa, #fff0f0);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.1);
    border: 1px solid #ffe6e6;
}

.asbp-content {
    flex: 1;
}

.asbp-content h3 {
    font-size: 22px;
    font-weight: 900;
    color: #111;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

.asbp-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.asbp-content p strong {
    color: #111;
    font-weight: 700;
}

.asbp-contact-box {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #fdfdfd;
    padding: 12px 15px 12px 25px;
    border-radius: 50px;
    border: 1px solid #eaeaea;
    flex-wrap: wrap;
}

.asbp-label {
    font-size: 14px;
    color: #444;
    font-weight: 600;
}

.asbp-phone-btn {
    background: linear-gradient(135deg, #b71c1c, #991818);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 40px;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.asbp-phone-btn .phone-icon {
    font-size: 18px;
}

.asbp-phone-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 25px rgba(183, 28, 28, 0.4);
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

@media (max-width: 768px) {
    .asbp-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 25px;
    }
    .asbp-contact-box {
        flex-direction: column;
        border-radius: 12px;
        padding: 20px;
        gap: 15px;
        width: 100%;
    }
    .asbp-phone-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   СЕКЦІЯ ВІДГУКІВ (TARLANA STYLE)
   ========================================== */
.tarlana-reviews-section {
    background: #ffffff;
    padding: 60px 20px;
    border-top: 1px solid #eaeaea;
    scroll-margin-top: 140px; /* ДОДАЙ ЦЕЙ РЯДОК: Зупиняє скрол під меню */
}

.tr-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tr-main-title {
    font-size: 28px;
    font-weight: 900;
    color: #111;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

/* Блок статистики */
.tr-summary-box {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 30px;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.tr-score-col {
    text-align: center;
    border-right: 1px solid #eaeaea;
    padding-right: 30px;
}

.tr-average {
    font-size: 48px;
    font-weight: 900;
    color: #111;
    line-height: 1;
}

/* Зірки (СУВОРО БЕЗ ЖОВТОГО) */
.tr-stars-display {
    font-size: 20px;
    margin: 10px 0;
}
.tr-star.filled { color: #b71c1c; } /* Червона */
.tr-star.empty { color: #ffdbdb; } /* Рожева/світла */

.tr-count { font-size: 13px; color: #666; }

.tr-bars-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tr-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tr-bar-label {
    width: 15px;
    font-weight: 700;
    color: #555;
}

.tr-bar-bg {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.tr-bar-fill {
    height: 100%;
    background: #b71c1c;
    border-radius: 4px;
}

.tr-bar-num {
    width: 30px;
    font-size: 13px;
    color: #666;
    text-align: right;
}

.tr-action-col {
    text-align: center;
    border-left: 1px solid #eaeaea;
    padding-left: 30px;
}

.tr-action-col h3 { font-size: 16px; font-weight: 800; color: #111; margin-bottom: 5px; }
.tr-action-col p { font-size: 13px; color: #555; margin-bottom: 15px; line-height: 1.5; }

/* Картка відгуку */
.tr-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tr-review-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px;
    transition: box-shadow 0.3s ease;
}

.tr-review-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border-color: #ffcccc;
}

.tr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.tr-user-info { display: flex; align-items: center; gap: 15px; }
.tr-avatar { width: 40px; height: 40px; background: #fff0f0; color: #b71c1c; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.tr-username { font-weight: 800; color: #111; font-size: 15px; }
.tr-verified { color: #00a046; font-size: 12px; font-weight: 700; margin-top: 3px; }

.tr-date-stars { text-align: right; }
.tr-date { font-size: 12px; color: #888; margin-bottom: 5px; }

.tr-card-body p { font-size: 14px; color: #444; line-height: 1.6; margin: 0; }

.tr-card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #eaeaea;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.tr-vote-btn {
    background: #fdfdfd; border: 1px solid #ddd; padding: 6px 12px; border-radius: 6px; cursor: pointer; transition: 0.2s; color: #444;
}
.tr-vote-btn:hover { background: #fffafa; border-color: #b71c1c; color: #b71c1c; }

/* Форма додавання відгуку */
.review-form-group { margin-bottom: 20px; }
.review-form-group label { display: block; font-weight: 700; color: #333; margin-bottom: 8px; font-size: 14px; }
.tr-input, .tr-textarea { width: 100%; padding: 12px 15px; border: 1px solid #ccc; border-radius: 8px; outline: none; font-family: inherit; transition: 0.3s; }
.tr-input:focus, .tr-textarea:focus { border-color: #b71c1c; box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1); }

/* Вибір зірочок */
.interactive-stars span { font-size: 30px; color: #ffdbdb; cursor: pointer; transition: color 0.2s; }
.interactive-stars span.active, .interactive-stars span:hover, .interactive-stars span:hover ~ span { color: #b71c1c; }
/* Перевертаємо логіку ховера, щоб підсвічувались зліва направо */
.interactive-stars { direction: rtl; display: inline-block; }
.interactive-stars span:hover, .interactive-stars span:hover ~ span { color: #b71c1c; }

@media (max-width: 900px) {
    .tr-summary-box { grid-template-columns: 1fr; text-align: center; }
    .tr-score-col { border-right: none; border-bottom: 1px solid #eaeaea; padding-right: 0; padding-bottom: 20px; }
    .tr-action-col { border-left: none; border-top: 1px solid #eaeaea; padding-left: 0; padding-top: 20px; }
    .tr-card-header { flex-direction: column; gap: 15px; }
    .tr-date-stars { text-align: left; }
}

/* ==========================================
   СТИЛІ ДЛЯ КНОПОК ВІДГУКІВ
   ========================================== */
.tr-action-col .tarlana-btn-primary {
    background: linear-gradient(135deg, #b71c1c, #991818);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.2);
}
.tr-action-col .tarlana-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.3);
}

#loadMoreReviewsBtn {
    background: #ffffff;
    color: #333333;
    border: 2px solid #eaeaea;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#loadMoreReviewsBtn:hover {
    border-color: #b71c1c;
    color: #b71c1c;
    background: #fffafa;
}

/* Прибираємо стандартний вигляд кнопок голосування */
.tr-vote-btn {
    background: #ffffff;
    border: 1px solid #eaeaea;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    color: #555;
    font-weight: 600;
}
.tr-vote-btn:hover {
    border-color: #b71c1c;
    color: #b71c1c;
}

/* ==========================================
   ВІДСТУПИ ДЛЯ ХЛІБНИХ КРИХТ (ПІД ШАПКОЮ)
   ========================================== */
.breadcrumbs {
    margin-top: 40px !important; /* Опускаємо текст нижче */
    margin-bottom: 25px !important;
    padding-left: 10px; /* Даємо трохи повітря зліва */
}

/* На мобілках шапка може бути меншою, тому відступ робимо трохи меншим */
@media (max-width: 768px) {
    .breadcrumbs {
        margin-top: 25px !important; 
    }
}


/* ==========================================
   СЕКЦІЯ ВІДГУКІВ НА СТОРІНЦІ INFO
   ========================================== */
.info-section-header {
    text-align: center;
    margin-bottom: 40px;
}
.info-section-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: #b71c1c;
    margin-bottom: 10px;
}
.info-section-header p {
    font-size: 15px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Блок загальної оцінки */
.reviews-summary-block {
    background: #fffafa;
    border: 1px solid #ffeded;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(183, 28, 28, 0.03);
}
.rsb-score {
    font-size: 48px;
    font-weight: 900;
    color: #b71c1c;
    line-height: 1;
    margin-bottom: 5px;
}
.rsb-stars {
    font-size: 24px;
    color: #b71c1c;
    letter-spacing: 2px;
    margin-bottom: 5px;
}
.rsb-text {
    font-size: 13px;
    color: #777;
    font-weight: 600;
}

/* Сітка відгуків */
.reviews-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* Картка відгуку */
.review-card-premium {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.review-card-premium:hover {
    border-color: #ffcccc;
    box-shadow: 0 6px 20px rgba(183, 28, 28, 0.06);
    transform: translateY(-3px);
}

.rcp-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.rcp-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rcp-avatar {
    width: 40px;
    height: 40px;
    background: #b71c1c;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}
.rcp-info {
    display: flex;
    flex-direction: column;
}
.rcp-info strong {
    font-size: 14px;
    color: #111;
}
.rcp-info span {
    font-size: 11px;
    color: #888;
}
.rcp-stars {
    color: #b71c1c;
    font-size: 16px;
    letter-spacing: 1px;
}
.empty-star {
    color: #ffdbdb;
}

.rcp-body {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Прикріплений товар */
.rcp-product {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.2s;
}
.rcp-product:hover {
    background: #fffafa;
    border-color: #ffdbdb;
}
.rcp-product img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 4px;
    border: 1px solid #eee;
}
.rcp-product-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.rcp-product-text .name {
    font-size: 12px;
    font-weight: 700;
    color: #222;
}
.rcp-product-text .link {
    font-size: 11px;
    font-weight: 800;
    color: #b71c1c;
}

/* ФІКС ДЛЯ СІТКИ ФУТЕРА */
.tpf-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 40px !important;
    width: 100% !important;
    align-items: start !important;
}

/* ==========================================
   MINI FOOTER LEGAL (KOSZYK & CHECKOUT)
   ========================================== */
.chk-legal-footer {
    max-width: 1200px;
    margin: 40px auto 20px;
    padding: 20px;
    border-top: 1px solid #eaeaea;
    text-align: center;
    font-size: 11px;
    color: #888;
    line-height: 1.6;
}
.chk-legal-footer p {
    margin: 0 0 10px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.chk-legal-footer a {
    color: #777;
    text-decoration: underline;
    transition: color 0.2s;
}
.chk-legal-footer a:hover {
    color: #b71c1c;
}
.chk-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 600;
    margin-top: 8px;
}
.chk-legal-links a {
    text-decoration: none;
    color: #666;
}
.chk-legal-links a:hover {
    color: #b71c1c;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .b2b-form-btn-super {
        width: 100% !important;
    }
}

/* ==========================================
   ГЛОБАЛЬНИЙ ФІКС МАСШТАБУВАННЯ НА МОБІЛЬНИХ
   ========================================== */
@media (max-width: 768px) {
    /* 1. Ультра-компактна шапка (Grid Layout) */
    header.light-header {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas: 
            "logo cart"
            "search search"
            "nav nav" !important;
        gap: 12px 10px !important;
        padding: 12px 15px !important;
        height: auto !important;
    }
    
    .logo { grid-area: logo; width: 100%; overflow: hidden; align-items: center !important;}
    .logo div { display: none !important; } /* Ховаємо текстову частину логотипу для економії місця */
    .logo img { height: 38px !important; margin: 0 !important; }
    
    .header-cart-icon { grid-area: cart; margin: 0 !important; width: 40px !important; height: 40px !important; }
    
    .search-container { grid-area: search; margin: 0 !important; width: 100% !important; max-width: 100% !important; }
    .search-bar-mock input { padding: 10px 15px !important; font-size: 13px !important; }
    
    /* Горизонтальний скрол для меню */
    nav { 
        grid-area: nav; 
        flex-wrap: nowrap !important; 
        overflow-x: auto !important; 
        margin: 0 !important; 
        padding-bottom: 5px !important; 
        justify-content: flex-start !important; 
        gap: 10px !important; 
        scrollbar-width: none; 
    }
    nav::-webkit-scrollbar { display: none; }
    nav a { padding: 8px 12px !important; font-size: 13px !important; white-space: nowrap !important; }
    nav a.nav-creator { padding: 8px 14px !important; }
    
    .badge-new { top: -8px !important; right: -15px !important; font-size: 9px !important; }

    /* 2. Запобігання накладанню шапки на контент */
    .tarlana-top-bar-pure { position: relative !important; z-index: 100 !important; }
    .light-header { position: sticky !important; top: 0 !important; z-index: 999 !important; }
    
    /* Відступи для контенту сторінок */
    .catalog-page { padding-top: 30px !important; }
    .cart-page-wrapper { margin-top: 20px !important; }
    .chk-wrapper { margin-top: 20px !important; }
    .product-wrapper { padding-top: 20px !important; }

    /* 3. Компактний вигляд товарів у кошику */
    .cp-addon-row { flex-wrap: wrap !important; gap: 10px !important; padding: 12px !important; }
    .cp-addon-info { flex-direction: row !important; align-items: center !important; gap: 10px !important; width: 100% !important; }
    .cp-addon-info img { width: 50px !important; height: 50px !important; }
    .cp-addon-text-wrap { flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; }
    .cp-addon-name { font-size: 13px !important; }
    .cp-addon-action { width: 100% !important; justify-content: space-between !important; margin-top: 5px !important; }
    .cp-addon-price-col strong { font-size: 15px !important; }
    
    .cp-item-img { width: 80px !important; height: 80px !important; padding: 5px !important; }
    .cp-item-name { font-size: 14px !important; }
    .cp-item-price { font-size: 16px !important; min-width: auto !important; }
    .cp-item-top-row { gap: 10px !important; }
}
/* ==========================================
   МОБІЛЬНА ШАПКА ТА ФІКС СКРОЛУ (ВСТАВИТИ В КІНЕЦЬ COMMON.CSS)
   ========================================== */
/* Розблокування скролу на комп'ютері (якщо оверлей завис) */
body, html { overflow: visible !important; height: auto !important; }
.sidebar-overlay { pointer-events: none; }
.sidebar-overlay.active { pointer-events: all; }

@media (max-width: 900px) {
    .tarlana-top-bar-pure { display: none !important; }
    body { padding-top: 145px !important; } 

    header.light-header {
        display: flex !important;
        flex-wrap: wrap !important;
        position: fixed !important;
        top: 0 !important; left: 0 !important; right: 0 !important;
        height: auto !important;
        background: #fff !important;
        z-index: 9999 !important;
        padding: 10px 15px 15px 15px !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    }

    /* 1. Логотип */
    .logo { width: 50% !important; margin: 0 !important; display: flex !important; align-items: center !important;}
    .logo div { display: none !important; }
    .logo img { height: 35px !important; margin: 0 !important; }

    /* 2. Пошук (по центру на 2 рядку) */
    .search-container { width: 100% !important; max-width: 100% !important; margin-top: 15px !important; order: 2 !important; }
    .search-bar-mock { border-radius: 8px !important; border: 1px solid #eaeaea !important; }
    .search-bar-mock input { height: 42px !important; padding: 10px 15px !important; font-size: 14px !important;}

    /* 3. Меню (знизу) */
    nav {
        width: 100% !important;
        order: 3 !important;
        margin-top: 12px !important;
        display: flex !important;
        flex-wrap: wrap !important; /* Дозволяємо перенос, жодного обрізання! */
        gap: 8px !important;
        overflow: visible !important; /* КРИТИЧНО ВАЖЛИВО для кошика */
    }

    nav a:not(.header-cart-icon) {
        padding: 8px 14px !important;
        background: #f5f5f5 !important;
        border: 1px solid #eee !important;
        border-radius: 20px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #333 !important;
        text-align: center !important;
        display: inline-block !important;
    }
    nav a.nav-creator { background: #fff0f0 !important; color: #b71c1c !important; border-color: #ffcccc !important; }

    /* 4. КОШИК (Абсолютно вирваний в правий верхній кут шапки) */
    nav .header-cart-icon {
        position: absolute !important;
        top: 10px !important;
        right: 15px !important;
        width: 42px !important;
        height: 42px !important;
        background: #f5f5f5 !important;
        border-radius: 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    .cart-badge { top: -5px !important; right: -5px !important; border: 2px solid #fff !important; animation: none !important;}
    .badge-new { display: none !important; } /* Ховаємо проблемний бейдж на телефоні */
}