.cart-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

.cart-container {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}


.cart-actions {
    margin-bottom: 20px;
}

.clear-cart-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.clear-cart-btn:hover {
    color: #c82333;
}

.cart-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-category {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.item-info {
    flex: 1;
}

.item-price {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
}

.item-title {
    font-size: 16px;
    font-weight: 400;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.item-actions {
    flex-shrink: 0;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px 0;
}

.remove-item-btn:hover {
    color: #c82333;
}

.cart-total {
    background: #F8F8F8;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.total-section {
    margin-bottom: 20px;
}

.total-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.total-label {
    font-size: 12px;
    font-weight: normal;
    color: #8E8E93;
}

.total-prices {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.current-price {
    font-size: 26px;
    font-weight: 700;
    color: #000;
}


.checkout-btn {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background: #0056b3;
}

.checkout-note {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.order-form {
    background: var(--color-primary);
    color: var(--text-color-invert);
    padding: 25px;
    border-radius: 5px;
}

.form-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-agreement {
    margin: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-input {
    margin-top: 2px;
}

.checkbox-text {
    line-height: 1.4;
}

.submit-order-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.submit-order-btn:hover {
    background: #218838;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cart-page {
        padding: 10px;
    }

    .cart-container {
        padding: 20px 15px;
    }

    .item-content {
        flex-direction: column;
        gap: 10px;
    }

    .item-actions {
        align-self: flex-end;
    }

    .total-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .total-prices {
        align-items: flex-start;
    }

    .cart-title {
        font-size: 20px;
    }

    .current-price {
        font-size: 20px;
    }
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.cart-empty-title {
    font-size: 24px;
    color: #666;
    margin-bottom: 10px;
}

.cart-empty-text {
    color: #999;
    margin-bottom: 30px;
}

.continue-shopping-btn {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.continue-shopping-btn:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

.quantity-selector {
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    padding: var(--spacing-md) 0;
}

.quantity-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: none;
    background: var(--color-primary);
    color: var(--text-color-invert);
    font-size: 16px;
    font-weight: 500;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

.quantity-btn:active {
    background: #d1d5db;
}

.quantity-minus {
    border-right: 1px solid #e5e7eb;
}

.quantity-plus {
    border-left: 1px solid #e5e7eb;
}

.quantity-input {
    width: 40px;
    max-width: 40px;
    height: 40px;
    border: none !important;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    color: #374151;
    background: transparent;
    -moz-appearance: textfield;
}

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

.quantity-input:focus {
    outline: none;
    background: #f3f4f6;
}

.product-footer .button--primary  {
    max-height: 40px;
    padding: 8px var(--spacing-xl);
}


@media (max-width: 768px) {
    .quantity-selector {
        order: 1;
    }

    .product-footer {
        gap: 12px;
    }

    .quantity-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .quantity-input {
        width: 40px;
        height: 32px;
        font-size: 13px;
    }
}

.product.cart-item {
    padding: 0;
    background: var(--bg-color);
    border: none;
    border-radius: 0;
    width: 100%;
    max-width: 250px;
}


.product.cart-item:hover {
    border: none;
    background: transparent;
}

.cart-item-wrapper {
    border: 1px solid var(--color-cast);
    padding: var(--spacing-md);
    background: var(--bg-color);
    border-radius: var(--rounded-md);
}

.product.cart-item:hover .cart-item-wrapper {
    background: var(--color-cast);
}

.catalog .product.cart-item h4 {
    margin: 1rem 0 0;
}

.cart-item-close {
    display: flex;
    justify-content: end;
}

.cart-item-close > span {
    display: flex;
    font-size: 16px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    transition: all .2s ease-in;
    color: #8E8E93;
}
.cart-item-close > span svg path {
    stroke: #D9D9D9;
    transition: all .2s ease-in;
}

.cart-item-close > span:hover {
    cursor: pointer;
    color: var(--color-primary);
}

.cart-item-close > span:hover svg path {
    stroke: var(--color-primary);
}

.cart-order {
    max-width: 365px;
    margin-left: 10%;
    width: 100%;
}

.basket-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    width: 100%;
    align-items: start;
    justify-items: start;
    border-top: none;
    padding-top: 0;
}

.basket-grid-wrapper {
    display: flex;
}


@media (max-width: 1280px) {
    .product.cart-item {
        max-width: 250px;
    }
    .cart-order {
        margin-left: 0;
    }
}

@media (max-width: 1024px) {
    .basket-grid {
        gap: 12px;
    }

}

@media (max-width: 900px) {
    .basket-grid-wrapper {
        flex-direction: column;
    }
    .basket-grid {
        gap: 12px;
    }
    .product.cart-item {
        max-width: 49%;
    }
    .cart-order {
        max-width: 100%;
    }
}

@media (max-width: 639px) {
    .product.cart-item {
        max-width: 100%;
    }
}
.order-form .button--black {
    padding: var(--spacing-md) var(--spacing-xl);
    color: #fff;
    cursor: pointer;
    border-radius: var(--rounded-md);
    white-space: nowrap;
    transition: all .15s ease-in;
    position: relative;
    overflow: hidden;
}

.order-form .privacy-checkbox-wrap {
    color: #fff;
}

.input-error {
    border-color: #dc3545 !important;
    background-color: #f8d7da !important;
}

.checkbox-error {
    color: #dc3545;
}

.form-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 16px;
}

.form-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
    margin-bottom: 16px;
}

.field-error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}


.basket .cart-count {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-primary);
    text-indent: -9999px;
    overflow: hidden;
    position: absolute;
    top: 6px;
    right: 7px;
}

.total-old_prices {
    font-size: 18px;
    font-weight: 300;
    color: #8E8E93;
    text-decoration: line-through;
}
