/* =========================================
   ГЛОБАЛЬНІ ФІКСИ ТА СКРОЛБАРИ
   ========================================= */
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
* { -ms-overflow-style: none !important; scrollbar-width: none !important; }

.top-spacing { height: 40px; }

/* =========================================
   ШАПКА (HERO БЛОК КОШИКА)
   ========================================= */
.catalog-header-card {
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.catalog-header-content {
    max-width: 600px;
    margin: 0 auto;
}

.catalog-header-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin: 15px 0 15px;
}

.text-formatted {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 25px;
}

.status-chips {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.status-chip.highlight { color: #f97316; }
.status-chip.success { color: #10b981; }
.status-chip.warning { color: #f59e0b; }

.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;
}

/* =========================================
   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;
}

/* =========================================
   СІТКА КОШИКА
   ========================================= */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-items-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- КАРТКА ТОВАРУ В КОШИКУ --- */
.cart-card {
    padding: 20px;
}

.cart-card:hover {
    border-color: rgba(249, 115, 22, 0.2);
}

.cart-card-main {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Зображення товару */
.cart-thumb {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-thumb img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.cart-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
}

/* Тіло картки */
.cart-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.cart-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    display: block;
    margin-bottom: 8px;
}

.cart-card-title:hover {
    color: #f97316;
}

.btn-remove-simple {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 5px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-simple:hover {
    color: #ef4444;
    transform: scale(1.1);
}

/* Контроли (Кількість та Ціна) */
.cart-card-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 16px;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-qty-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.cart-qty-input {
    width: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    font-size: 1rem;
}

.cart-qty-input:focus {
    outline: none;
    border-color: #f97316;
}

.cart-btn-ok {
    padding: 8px 12px;
}

/* Ціни */
.cart-price-box {
    text-align: right;
}

.prices {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 5px;
}

.current-price {
    color: #f97316;
    font-weight: 800;
    font-size: 1.2rem;
}

.old-price {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.cart-line-total {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.cart-line-total strong {
    color: #fff;
    font-size: 1.1rem;
}

/* =========================================
   САЙДБАР (ПІДСУМОК)
   ========================================= */
.sticky-panel {
    position: sticky;
    top: 20px;
}

.cart-summary-card {
    padding: 30px;
    margin-bottom: 20px;
}

.panel-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.panel-header h3 {
    margin: 10px 0 0 0;
    color: #fff;
    font-size: 1.5rem;
}

.cart-summary-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-item span { color: rgba(255, 255, 255, 0.5); }
.meta-item strong { color: #fff; font-size: 1.1rem; }

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.cart-summary-total span {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.current-price.giant {
    font-size: 2.2rem;
}

/* Кнопки підсумку */
.cart-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.full-width { width: 85%; }

.btn-primary {
    background: #f97316;
    color: #fff;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: #f97316;
    background: rgba(255, 255, 255, 0.08);
}

.cart-summary-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.cart-help-card {
    padding: 25px;
    text-align: center;
}

.cart-help-card h4 {
    color: #fff;
    margin: 0 0 10px 0;
}

.cart-help-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* =========================================
   ПОРОЖНІЙ КОШИК
   ========================================= */
.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;
}

.empty-state p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.empty-state .btn-primary {
    display: inline-flex;
    padding: 16px 40px;
}

/* =========================================
   АДАПТАЦІЯ (МОБІЛЬНІ)
   ========================================= */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-col {
        display: flex;
        flex-direction: column-reverse; /* Блок допомоги буде під підсумком */
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .catalog-header-card { padding: 30px 20px; }
    .catalog-header-content h1 { font-size: 2rem; }

    .cart-card-main { flex-direction: column; align-items: stretch; }
    .cart-thumb { width: 100%; height: 200px; }

    .cart-card-controls { flex-direction: column; align-items: stretch; gap: 15px; }

    .cart-qty-form { justify-content: space-between; }
    .cart-price-box { text-align: left; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
    .prices { justify-content: flex-start; }
}
