.page-header {
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right, 
        rgba(0, 0, 0, 0.6), 
        rgba(0, 0, 0, 0.2)
    );
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-header .breadcrumb-item a {
    color: #fff !important;
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: #ddd !important;
    text-decoration: underline;
}

.page-header .breadcrumb-item.active {
    color: #fff !important;
}

.checkout-page {
    padding: 60px 0;
}

.checkout-section {
    background: white;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.section-header h5 {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3cb815;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-check {
    margin-top: 15px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.form-check-label {
    margin-left: 8px;
    font-size: 14px;
    color: #666;
}

.shipping-notice {
    padding: 15px;
    background: #f8f9fa;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.payment-notice {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.payment-option {
    border: 2px solid #e9ecef;
    margin-bottom: 15px;
    overflow: hidden;
}

.payment-radio {
    padding: 16px 20px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-radio:hover {
    background: #f0f0f0;
}

.payment-radio input[type="radio"] {
    margin-right: 12px;
}

.payment-radio label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.payment-icons i {
    font-size: 24px;
    margin-left: 8px;
    color: #666;
}

.payment-details {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.payment-details.active {
    padding: 20px;
    max-height: 500px;
}

.payment-option input[type="radio"]:checked + label {
    font-weight: 600;
}

.payment-option input[type="radio"]:checked ~ .payment-details {
    max-height: 500px;
    padding: 20px;
}

.cod-notice {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.btn-pay-now {
    width: 100%;
    padding: 16px;
    background: #ffc107;
    color: #000;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-pay-now:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.order-summary {
    position: sticky;
    top: 100px;
    background: white;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.order-items {
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.order-item:last-child {
    border-bottom: none;
}

.item-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.item-image-wrapper img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.item-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #6c757d;
    color: white;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.item-details {
    flex: 1;
}

.item-details h6 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.item-details small {
    color: #999;
    font-size: 12px;
}

.item-price {
    font-weight: 600;
    color: #2c3e50;
}

.discount-section {
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.discount-input-group {
    display: flex;
    gap: 10px;
}

.discount-input-group .form-control {
    flex: 1;
}

.btn-apply {
    padding: 12px 24px;
    background: #3cb815;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply:hover {
    background: #3cb815;
}

.order-totals {
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 14px;
}

.total-row.total-final {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #e9ecef;
    font-size: 18px;
    font-weight: 700;
}

.total-row.total-final small {
    font-size: 12px;
    color: #999;
    margin-right: 5px;
}

.shipping-notice-text {
    color: #999;
    font-size: 13px;
}

.empty-cart-notice {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-notice p {
    color: #999;
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    .order-summary {
        position: static;
        margin-top: 30px;
    }
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3cb815;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.form-control.is-valid {
    border-color: #28a745;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.email-validation-message {
    display: none;
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.email-validation-message.error {
    display: block;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.email-validation-message.warning {
    display: block;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.email-validation-message.success {
    display: block;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.email-validation-message i {
    margin-right: 6px;
}

.email-suggestion {
    margin-top: 8px;
    padding: 10px 12px;
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    font-size: 13px;
    color: #004085;
    display: none;
}

.email-suggestion.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.email-suggestion-link {
    color: #0056b3;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.email-suggestion-link:hover {
    color: #003d82;
}

.email-loader {
    display: none;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3cb815;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.form-group.validating .email-loader {
    display: block;
}

.email-input-wrapper {
    position: relative;
}

.trusted-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.trusted-badge i {
    margin-right: 3px;
}