/* --- Global Styles & Header --- */
body {
    background-color: #f4f7f6;
    font-family: 'Inter', sans-serif;
}

.main-header {
    border-bottom: 2px solid #3b82f6;
}

/* --- Product Image Section --- */
.main-preview {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.thumb-item {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-item:hover, .thumb-item.active {
    border-color: #3b82f6;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* --- Product Info Styling --- */
.product-content-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.price-box {
    padding: 15px 0;
}

.old-price {
    font-size: 1.2rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount-badge {
    background: #fee2e2;
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.warranty-box {
    margin-top: 25px;
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
    padding: 1.25rem;
    border-radius: 8px;
}

/* --- Modal & Form Styling --- */
.modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: white;
    padding: 1.5rem;
    border: none;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1e3a8a;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #f1f5f9;
}

.label-style {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: block;
}

.form-control, .form-select {
    border: 1.5px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    background-color: #fff;
}

/* --- Payment Method Selection --- */
.payment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-box {
    position: relative;
    border: 2px solid #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-box input {
    position: absolute;
    opacity: 0;
}

.payment-box:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.payment-box input:checked + .payment-content {
    color: #2563eb;
}

.payment-box.active {
    border-color: #2563eb;
    background: #eff6ff;
}

/* --- Order Summary Card --- */
.billing-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 10px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #64748b;
}

.total-amount-row {
    font-size: 1.5rem;
    color: #dc2626;
    margin-top: 15px;
}

/* --- Buttons --- */
.confirm-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 1.2rem;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.confirm-btn:hover {
    background: #059669;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.confirm-btn:active {
    transform: translateY(-1px);
}