/* === ТОЛЬКО СТИЛИ КОРЗИНЫ === */

/* Иконка корзины */
.cart-icon-container {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cart-icon-container:hover {
    transform: scale(1.05);
}

.cart-icon {
    background: #8cc9f0;
    color: white;
    padding: 12px;
    border-radius: 50%;
    font-size: 20px;
    position: relative;
    transition: background 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    background: #7bb8df;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.cart-badge.hidden {
    display: none;
}

/* Модалка корзины */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cart-modal-overlay.active .cart-modal {
    transform: scale(1);
}

.cart-modal-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.cart-modal-close {
    all: unset !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    font-size: 24px !important;
    color: #666 !important;
    cursor: pointer !important;
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.cart-modal-close:hover {
    background: rgba(0, 0, 0, 0.2) !important;
    transform: rotate(90deg) !important;
}

.cart-modal-content {
    padding: 25px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Товары в корзине */
.cart-items {
    margin-bottom: 25px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
}

.cart-item-price {
    color: #666;
    font-size: 12px;
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Кнопки + и - в корзине */
.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.cart-qty-btn {
    all: unset !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 16px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    transition: background 0.2s ease !important;
}

.cart-qty-btn:hover {
    background: #f0f0f0 !important;
}

.cart-qty-value {
    all: unset !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 40px !important;
    max-width: 40px !important;
    width: 40px !important;
    height: 32px !important;
    text-align: center !important;
    font-weight: 600 !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    font-size: 14px !important;
    line-height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    color: #333 !important;
    box-sizing: border-box !important;
}

/* Кнопка × удалить */
.cart-remove-btn {
    all: unset !important;
    background: #e74c3c !important;
    color: white !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    transition: background 0.2s ease !important;
}

.cart-remove-btn:hover {
    background: #c0392b !important;
}

/* Итого */
.cart-total {
    text-align: right;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 2px solid #eee;
}

/* Пустая корзина */
.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cart-empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 15px;
}

/* Форма заказа */
.order-form {
    border-top: 2px solid #eee;
    padding-top: 25px;
}

.order-form h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #8cc9f0;
    background: white;
    box-shadow: 0 0 0 3px rgba(140, 201, 240, 0.1);
}

.order-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #8cc9f0 0%, #7bb8df 100%);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.order-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140, 201, 240, 0.4);
}

.order-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


