/* Страница успешного заказа */
.success-block {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px 0 #3b82f633;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    margin-top: 2rem;
}
.success-icon {
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 2px 8px #3b82f644);
}
.success-title {
    color: #232323;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
}
.success-lead {
    color: #232323;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.7rem;
}
.success-desc {
    color: #232323cc;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}
.success-btns .order-btn {
    min-width: 180px;
    margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
    .success-block {
        padding: 1.2rem 0.5rem 1rem 0.5rem;
    }
    .success-title {
        font-size: 1.2rem;
    }
    .success-btns .order-btn {
        min-width: 100px;
        font-size: 1rem;
    }
}
/* cart_custom.css — фирменные стили корзины и платежей */

.cart-detail-block {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px 0 #3b82f633;
    padding: 2.2rem 2.2rem 1.5rem 2.2rem;
}
.cart-title {
    font-size: 2rem;
    font-weight: 700;
    color: #232323;
    letter-spacing: 0.01em;
}
.cart-fast-title {
    font-weight: 700;
    color: #232323;
    font-size: 1.2rem;
}
.cart-fast-desc {
    color: #232323cc;
    font-size: 1rem;
}
.cart-fast-form {
    border: 1.5px solid #3b82f6;
    border-radius: 10px;
    box-shadow: 0 2px 8px 0 #3b82f622;
}
.order-btn, .order-btn-lg {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.13rem;
    padding: 10px 0;
    box-shadow: 0 2px 8px 0 #3b82f644;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, text-decoration 0.18s;
    margin-top: 8px;
    text-decoration: none !important;
    outline: none;
    display: inline-block;
}
.order-btn-lg {
    font-size: 1.25rem;
    padding: 13px 36px;
}
.order-btn:hover, .order-btn-lg:hover, .order-btn:focus, .order-btn-lg:focus {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 16px 0 rgba(59, 130, 246, 0.5);
    text-decoration: none !important;
    outline: none;
}
.cart-table-head {
    background: #fffde7;
    color: #232323;
    font-weight: 700;
}
.cart-product-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    border: 1.5px solid #3b82f6;
}
.cart-product-name {
    color: #232323;
    font-weight: 500;
}
.cart-qty-form {
    gap: 4px;
}
.cart-qty-btn {
    background: #3b82f6;
    color: #232323;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 2px 8px 0 #3b82f622;
    cursor: pointer;
}
.cart-qty-btn:hover {
    background: #2563eb;
    color: #fff;
}
.cart-qty-value {
    min-width: 24px;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    color: #232323;
}
.cart-item-total {
    color: #232323;
    font-weight: 700;
}
.cart-total-row {
    border-top: 2px solid #3b82f6;
    padding-top: 1.2rem;
}
.cart-total-label {
    color: #232323;
    font-weight: 700;
    font-size: 1.2rem;
}
.cart-total-sum {
    color: #3b82f6;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 8px #3b82f633;
}

/* --- Выбор способа оплаты (payment_choice.html) --- */
.payment-choice-block {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px 0 #3b82f633;
    padding: 2rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-method {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem !important;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px 0 #3b82f622;
}

.payment-icon {
    min-width: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-icon svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.payment-method h5 {
    color: #232323;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.payment-method .text-muted.small {
    color: #6b7280 !important;
}

@media (max-width: 600px) {
    .payment-choice-block {
        padding: 1.2rem;
    }
    
    .payment-method {
        padding: 1rem !important;
    }
    
    .payment-method h5 {
        font-size: 1rem;
    }
    
    .payment-method .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* --- Модальное окно QR кода (согласно требованиям НСПК) --- */
#qrModal .modal-header {
    border-bottom: 2px solid #f3f4f6;
    padding: 1.5rem;
}

#qrModal .modal-body {
    padding: 2rem;
    min-height: 300px;
}

#qrModal .modal-title {
    color: #232323;
    font-weight: 700;
    font-size: 1.25rem;
}

#qr-code-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: #f9fafb;
    border-radius: 10px;
    padding: 1rem;
}

#qr-code-container img,
#qr-code-container svg {
    max-width: 240px;
    max-height: 240px;
}

#qrModal .alert {
    border-radius: 8px;
    border: none;
}

#qrModal .alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

#qrModal .spinner-border {
    color: #3b82f6;
    width: 3rem;
    height: 3rem;
}

@media (max-width: 576px) {
    #qrModal .modal-dialog {
        margin: 1rem;
    }
    
    #qrModal .modal-body {
        padding: 1.2rem;
    }
    
    #qr-code-container {
        min-height: 160px;
    }
    
    #qr-code-container img,
    #qr-code-container svg {
        max-width: 180px;
        max-height: 180px;
    }
}

/* --- Кнопки сервисов (категорий) --- */
.service-buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    background: linear-gradient(90deg, #1e3a8a 0%, #1e40af 100%) !important;
    border-radius: 8px !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.service-btn-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}

.service-btn-item:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.service-btn-item:focus,
.service-btn-item:active {
    color: #fff !important;
    text-decoration: none !important;
    outline: none !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

/* --- Модальное окно продукта --- */
.product-modal-content {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.1) !important;
}

.product-modal-img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    object-fit: cover !important;
    max-height: 300px !important;
}

.product-modal-title {
    color: #232323 !important;
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
}

.product-modal-category {
    color: #6b7280 !important;
    font-size: 0.95rem !important;
}

.product-modal-desc {
    color: #232323 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.product-modal-price {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #3b82f6 !important;
    margin: 1rem 0 !important;
}

.cart-add-form {
    width: 100% !important;
    display: block !important;
    margin-top: 1.5rem !important;
}

.product-cart-btn {
    width: 100% !important;
    background: #3b82f6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px 0 rgba(59,130,246,0.2) !important;
}

.product-cart-btn:hover,
.product-cart-btn:focus {
    background: #2563eb !important;
    color: #fff !important;
    box-shadow: 0 4px 16px 0 rgba(59,130,246,0.4) !important;
    text-decoration: none !important;
    outline: none !important;
}

/* --- Адаптивный дизайн для мобильных --- */
@media (max-width: 768px) {
    .service-buttons {
        gap: 8px !important;
        padding: 12px 8px !important;
    }
    
    .service-btn-item {
        padding: 10px 16px !important;
        font-size: 0.95rem !important;
        min-width: 120px !important;
        max-width: 100% !important;
        flex: 1 1 calc(50% - 4px) !important;
    }
}

@media (max-width: 576px) {
    .service-buttons {
        gap: 6px !important;
        padding: 10px 6px !important;
        flex-wrap: wrap !important;
    }
    
    .service-btn-item {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
        min-width: auto !important;
        flex: 1 1 calc(50% - 3px) !important;
        white-space: normal !important;
        height: auto !important;
        line-height: 1.3 !important;
    }
}
