/* =========================================
   ГЛОБАЛЬНІ НАЛАШТУВАННЯ ТА СКРОЛБАРИ
   ========================================= */
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
* { -ms-overflow-style: none !important; scrollbar-width: none !important; }

.top-spacing { height: 40px; }

/* =========================================
   ШАПКА СТОРІНКИ
   ========================================= */
.catalog-header-card {
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.catalog-header-content {
    max-width: 600px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.catalog-header-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px;
}

.text-formatted {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* =========================================
   GLASSMORPHISM ПАНЕЛІ
   ========================================= */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: 0.3s ease;
}

/* =========================================
   ДЕСКТОПНА ТАБЛИЦЯ ПОРІВНЯННЯ
   ========================================= */
.compare-desktop-view {
    display: block;
}

.compare-mobile-view {
    display: none;
}

.compare-table-wrapper {
    overflow-x: auto; /* Дозволяє скролити таблицю вбік, якщо багато товарів */
    padding: 0;
    border-radius: 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    text-align: center;
}

/* Оформлення комірок */
.compare-table th, 
.compare-table td {
    padding: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: top;
    width: 250px; /* Фіксована ширина для колонок товарів */
}

.compare-table th:last-child, 
.compare-table td:last-child {
    border-right: none;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

/* Ліва колонка з назвами характеристик */
.feature-col-header, 
.feature-col-label {
    width: 200px;
    background: rgba(255, 255, 255, 0.01);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-align: left;
    vertical-align: middle !important;
}

/* Шапка товару (Фото, Назва, Видалити) */
.compare-product-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.compare-img-wrapper {
    width: 160px;
    height: 160px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    transition: 0.3s;
}

.compare-img-wrapper:hover {
    transform: scale(1.05);
}

.compare-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.compare-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    line-height: 1.4;
}

.compare-title:hover {
    color: #f97316;
}

.current-price {
    color: #f97316;
    font-weight: 800;
    font-size: 1.5rem;
}

.compare-desc-text {
    font-size: 0.95rem;
    text-align: left;
}

/* =========================================
   КНОПКИ
   ========================================= */
.btn-remove-simple {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
}

.btn-remove-simple:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.full-width { width: 100%; }

.btn-primary {
    background: #f97316;
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-lg { padding: 18px 30px; font-size: 1.1rem; }

/* =========================================
   МОБІЛЬНІ КАРТКИ ПОРІВНЯННЯ
   ========================================= */
.mobile-compare-card {
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.m-card-header {
    display: flex;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.m-img-wrapper {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 5px;
}

.m-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.m-header-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.m-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3;
}

.m-card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.m-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.95rem;
}

.m-column {
    flex-direction: column;
    gap: 5px;
}

.m-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.m-value {
    color: #fff;
    text-align: right;
}

.m-column .m-value {
    text-align: left;
}

/* =========================================
   ПОРОЖНІЙ СТАН
   ========================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    background: rgba(249, 115, 22, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
}

/* =========================================
   TOAST (СИСТЕМНІ ПОВІДОМЛЕННЯ)
   ========================================= */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: #18181b;
    border: 1px solid #f97316;
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast.show { transform: translateX(0); }

/* =========================================
   АДАПТАЦІЯ (МОБІЛЬНІ)
   ========================================= */
@media (max-width: 992px) {
    .compare-desktop-view { display: none; }
    .compare-mobile-view { display: block; }
}

@media (max-width: 768px) {
    .catalog-header-card { padding: 30px 20px; }
    .catalog-header-content h1 { font-size: 2rem; }
}