/* Стили страницы корзины */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.cart-item {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--secondary);
}

.cart-item-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.3;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    margin-top: 4px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn-sm {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--secondary);
    background: var(--card-bg);
    font-size: 1rem;
    cursor: pointer;
    color: var(--text);
}

.qty-btn-sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cart-item-remove {
    color: #DC2626;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

.cart-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cart-section-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    background: var(--card-bg);
    color: var(--text);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    font-size: 0.9rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.location-input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text);
}

.location-input:focus {
    outline: none;
    border-color: var(--primary);
}

.location-results {
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.location-item {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.location-item:hover {
    background: var(--secondary);
}

.location-selected {
    background: var(--secondary);
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.9rem;
}

/* Кнопка GPS геолокации */
.btn-geolocation {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.btn-geolocation:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-geolocation:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.shipping-options {
    margin-top: 12px;
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.shipping-option:hover {
    border-color: var(--primary);
}

.shipping-option.selected {
    border-color: var(--primary);
    background: var(--secondary);
}

.shipping-option-info {
    display: flex;
    flex-direction: column;
}

.shipping-courier {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.shipping-etd {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shipping-price {
    font-weight: 700;
    color: var(--primary);
}

.shipping-loading {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

.cart-summary {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text);
}

.summary-row.total {
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 8px;
    border-top: 1px solid var(--secondary);
    margin-top: 8px;
}

.summary-row.total .value {
    color: var(--primary);
}

.checkout-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: var(--card-bg);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.checkout-btn .btn {
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

body {
    padding-bottom: 100px;
}
