/* LEIBAL CART PAGE - ТОЧНЫЙ ДИЗАЙН КАК НА СКРИНШОТЕ */

/* Скрываем заголовок страницы "Basket" */
.woocommerce-cart .page-title,
.woocommerce-cart .entry-title,
.woocommerce-cart h1.page-title,
.woocommerce-cart .qode-page-title,
.cart .page-title,
.cart .entry-title {
    display: none !important;
}

.leibal-cart-container {
    max-width: 1500px;  /* Увеличил с 1200px до 1500px */
    margin: 0 auto;
    padding: 60px 40px 100px;
    background: #fff;
    font-family: inherit;
}

.cart-wrapper {
    width: 100%;
}

/* === CART HEADER КАК НА СКРИНШОТЕ === */
.cart-header-section {
    margin-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 30px;
}

.cart-title-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cart-main-title {
    font-size: 28px;  /* Уменьшил с 32px */
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #000;
    margin: 0 0 8px 0;
    text-transform: none;
    font-family: inherit;
}

.cart-item-count {
    font-size: 12px;  /* Уменьшил с 14px */
    color: #666;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* === CART CONTENT GRID === */
.cart-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 120px;
    margin-top: 40px;
}

/* === LEFT COLUMN: ТАБЛИЧНАЯ СТРУКТУРА === */
.cart-items-column {
    width: 100%;
}

/* Заголовки таблицы как на скриншоте */
.cart-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 0 0 20px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.cart-table-header > div {
    font-size: 11px;  /* Уменьшил с 12px */
    color: #666;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: inherit;
}

.cart-items-list {
    margin-top: 0;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-row:first-child {
    padding-top: 0;
}

/* === PRODUCT COLUMN === */
.cart-item-product {
    display: flex;
    gap: 30px;
    align-items: center;
}

.product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-name {
    font-size: 13px;  /* Уменьшил с 15px */
    font-weight: 400;
    color: #000;
    margin: 0 0 6px 0;
    line-height: 1.3;
    font-family: inherit;
}

.product-name a {
    color: inherit;
    text-decoration: none;
}

.product-name a:hover {
    text-decoration: underline;
}

.product-meta {
    font-size: 11px;  /* Уменьшил с 13px */
    color: #666;
    margin: 0;
    font-family: inherit;
    line-height: 1.4;
}

.product-meta p {
    margin: 1px 0;
}

.mobile-remove {
    margin-top: 15px;
}

.remove-link {
    font-size: 11px;  /* Уменьшил с 12px */
    text-transform: lowercase;
    text-decoration: underline;
    color: #999;
    letter-spacing: 0;
}

/* === PRICE COLUMN === */
.cart-item-price {
    font-size: 13px;  /* Уменьшил с 15px */
    font-weight: 400;
    color: #000;
    font-family: inherit;
}

/* === QUANTITY COLUMN === */
.cart-item-quantity {
    display: flex;
    justify-content: flex-start;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8f8f8;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.qty-btn:hover {
    background: #000;
    color: #fff;
}

.qty-input {
    width: 45px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 11px;  /* Уменьшил с 13px */
    background: #fff;
    outline: none;
    font-family: inherit;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* === SUBTOTAL COLUMN === */
.cart-item-subtotal {
    font-size: 13px;  /* Уменьшил с 15px */
    font-weight: 400;
    color: #000;
    font-family: inherit;
}

/* === REMOVE COLUMN === */
.cart-item-remove {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}

.remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.remove-btn:hover {
    color: #000;
}

/* === RIGHT COLUMN: ORDER SUMMARY === */
.cart-summary-column {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.order-summary-box {
    background: #fff;
    padding: 0;
}

.summary-title {
    display: none;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-family: inherit;
    border-bottom: 1px solid #f0f0f0;
}

.summary-line:last-of-type {
    border-bottom: none;
}

.summary-label {
    font-size: 13px;  /* Уменьшил с 15px */
    color: #333;
    font-weight: 400;
    font-family: inherit;
}

.summary-value {
    font-size: 13px;  /* Уменьшил с 15px */
    color: #000;
    font-weight: 400;
    font-family: inherit;
}

.summary-line.total-line {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #000;
    border-bottom: none;
}

.total-line .summary-label,
.total-line .summary-value {
    font-size: 15px;  /* Уменьшил с 18px */
    font-weight: 500;
    color: #000;
}

.checkout-section {
    margin-top: 40px;
}

.proceed-checkout-btn {
    display: block;
    width: 100%;
    padding: 15px 0;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 12px;  /* Уменьшил с 14px */
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.proceed-checkout-btn:hover {
    background: #333;
}

/* === EMPTY CART === */
.cart-empty-state {
    text-align: center;
    padding: 100px 0;
}

.cart-empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    font-family: inherit;
}

.return-to-shop-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    text-decoration: none;
    border: none;
    transition: background 0.3s ease;
    font-family: inherit;
}

.return-to-shop-btn:hover {
    background: #333;
}

/* === RESPONSIVE DESIGN === */
@media screen and (max-width: 1024px) {
    .cart-content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .cart-summary-column {
        position: relative;
        top: auto;
    }
}

@media screen and (max-width: 768px) {
    .leibal-cart-container {
        padding: 40px 20px 80px;
    }
    
    .cart-main-title {
        font-size: 24px;  /* Уменьшил с 28px */
    }
    
    .cart-content-grid {
        gap: 40px;
    }
    
    /* Mobile: убираем табличную структуру */
    .cart-table-header {
        display: none;
    }
    
    .cart-item-row {
        display: block;
        padding: 30px 0;
        border-bottom: 1px solid #e0e0e0;
        position: relative;
    }
    
    .cart-item-product {
        margin-bottom: 20px;
    }
    
    .cart-item-price,
    .cart-item-quantity,
    .cart-item-subtotal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        margin-bottom: 8px;
    }
    
    .cart-item-price::before {
        content: "Price: ";
        color: #666;
    }
    
    .cart-item-subtotal::before {
        content: "Subtotal: ";
        color: #666;
    }
    
    .cart-item-quantity::before {
        content: "Quantity: ";
        color: #666;
    }
    
    .mobile-remove {
        display: block;
        margin-top: 15px;
    }
    
    .cart-item-remove {
        display: none;
    }
}

/* === LOADING STATES === */
.cart-item-row.updating {
    opacity: 0.6;
    pointer-events: none;
}

.qty-input:focus {
    outline: 1px solid #000;
    outline-offset: 2px;
}
