/* Ghorbari eCommerce - Main Styles */

/* Reset and base styles */
* {
    box-sizing: border-box;
}

/* Product card improvements */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card .image-hover {
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
}

.product-card .product-image {
    transition: transform 0.3s ease;
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-card > div:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Remove extra spacing at bottom of cards */
.product-card .p-4 {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Compact spacing for index page cards */
.product-card .flex.gap-2 {
    margin-top: 1rem;
}

/* Ensure consistent card heights */
.product-grid .product-card {
    min-height: auto;
}

/* Better hover effects */
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Fix badge hover effects to not interfere with image zoom */
.product-card .absolute.top-3 span {
    z-index: 10;
    position: relative;
}

/* MacBook Pro 13-inch optimizations (1280px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    .product-grid-container {
        max-width: 1200px;
    }
    
    .product-card {
        max-width: 380px;
        margin: 0 auto;
    }
    
    /* Ensure proper spacing for 3-column layout */
    .container {
        max-width: 1200px;
    }
    
    /* Optimize product grid specifically */
    .product-grid {
        gap: 1.5rem;
    }
    
    .product-grid .product-card {
        min-height: auto;
    }
}

/* Additional responsive optimizations */
@media (min-width: 1280px) and (max-width: 1439px) {
    /* For larger MacBook Pro screens, ensure good spacing */
    .product-grid {
        gap: 1.75rem;
    }
    
    .product-grid .product-card {
        max-width: 400px;
    }
}

/* Button styles */
.btn-primary {
    background-color: #5a3e2b;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    min-height: 2.5rem;
}

.btn-primary:hover {
    background-color: #3d291c;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #5a3e2b;
    border: 2px solid #5a3e2b;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-decoration: none;
    min-height: 2.5rem;
}

.btn-secondary:hover {
    background-color: #5a3e2b;
    color: white;
}

/* Cart quantity input styling */
.cart-quantity {
    font-weight: 500;
    background-color: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    text-align: center;
    width: 5rem;
    padding: 0.75rem 0.5rem;
}

.cart-quantity:hover {
    background-color: #ffffff;
    border-color: #d1d5db;
}

.cart-quantity:focus {
    background-color: #ffffff;
    border-color: #5a3e2b;
    box-shadow: 0 0 0 3px rgba(90, 62, 43, 0.1);
    outline: none;
}

/* Remove spinner arrows from number input */
.cart-quantity::-webkit-outer-spin-button,
.cart-quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-quantity[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Price styling */
.price-discounted {
    color: #e53935;
}

.price-original {
    text-decoration: line-through;
    color: #6b7280;
}

/* Discount badge styling */
.badge-discount {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
    z-index: 10 !important;
    position: relative !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
    min-width: 2.5rem !important;
    text-align: center !important;
}

.badge-discount::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%) !important;
    border-radius: 0.375rem !important;
    pointer-events: none !important;
}

/* Featured badge styling */
.badge-featured {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) !important;
    z-index: 10 !important;
    position: relative !important;
    text-transform: uppercase !important;
    letter-spacing: 0.025em !important;
}

/* Product card styles */
.product-card {
    transition: all 0.2s ease-in-out !important;
    position: relative !important;
}

/* Ensure badges are visible on product images */
.product-card img {
    position: relative !important;
    z-index: 1 !important;
}

.product-card .badge-discount,
.product-card .badge-featured {
    z-index: 60 !important;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Subtotal update animation */
[data-subtotal] {
    transition: opacity 0.2s ease-in-out;
}

/* Cart totals animation */
#cart-subtotal, #cart-total {
    transition: all 0.3s ease-in-out;
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    .btn-primary, .btn-secondary {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-height: 2.25rem;
    }
    
    .cart-quantity {
        width: 4rem;
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
    }
    
    .product-card .btn-primary,
    .product-card .btn-secondary {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
}

/* Tablet responsive styles */
@media (min-width: 641px) and (max-width: 1024px) {
    .btn-primary, .btn-secondary {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
        min-height: 2.375rem;
    }
    
    .product-card .btn-primary,
    .product-card .btn-secondary {
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
}

/* Desktop responsive styles */
@media (min-width: 1025px) {
    .btn-primary, .btn-secondary {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .product-card .btn-primary,
    .product-card .btn-secondary {
        flex: 1;
        text-align: center;
        white-space: nowrap;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure button container stays inline */
    .product-card .flex.gap-2 {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 0.5rem !important;
    }
    
    /* Prevent icon and text from wrapping */
    .product-card .btn-primary i,
    .product-card .btn-secondary i {
        flex-shrink: 0;
        margin-right: 0.25rem;
    }
}

/* Coupon and discount styles */
.coupon-discount-row {
    border-left: 3px solid #10b981;
    padding-left: 0.5rem;
    margin-left: -0.5rem;
}

.coupon-applied {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.coupon-code-display {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #059669;
}

/* Enhanced notification styles */
.notification {
    animation: slideInRight 0.3s ease-out;
    max-width: 400px;
    word-wrap: break-word;
    z-index: 9999;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced order summary styles */
.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.order-summary-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.125rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.order-summary-item.text-green-600 {
    color: #059669;
    font-weight: 500;
}

/* Admin coupon management styles */
.coupon-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.coupon-type-percentage {
    background-color: #dbeafe;
    color: #1e40af;
}

.coupon-type-fixed {
    background-color: #dcfce7;
    color: #166534;
}

.coupon-type-shipping {
    background-color: #fef3c7;
    color: #92400e;
}
/* Checkout shipping styles */
.checkout-notification {
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
    word-wrap: break-word;
}

#shipping-info {
    font-style: italic;
    border-top: 1px dashed #e5e7eb;
    padding-top: 0.25rem;
    margin-top: 0.25rem;
}

#shipping-zone {
    font-weight: 500;
    color: #059669;
}

/* District selection highlight */
#district:focus {
    border-color: #5a3e2b;
    box-shadow: 0 0 0 3px rgba(90, 62, 43, 0.1);
}

/* Shipping cost highlight when updated */
#shipping-cost.updated {
    background-color: #f0fdf4;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Responsive badge adjustments */
@media (max-width: 640px) {
    .badge-discount,
    .badge-featured {
        font-size: 0.625rem;
        padding: 0.2rem 0.4rem;
        min-width: 2rem;
    }
}

@media (min-width: 1024px) {
    .badge-discount,
    .badge-featured {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        min-width: 2.75rem;
    }
}

/* Badge hover effects */
.product-card:hover .badge-discount {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4);
}

.product-card:hover .badge-featured {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.4);
}

/* Badge animation */
.badge-discount,
.badge-featured {
    transition: all 0.2s ease-in-out;
    animation: badgeSlideIn 0.3s ease-out;
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Additional button inline fixes for PC */
@media (min-width: 1025px) {
    /* Force buttons to stay inline on desktop */
    .product-card .flex {
        flex-wrap: nowrap !important;
    }
    
    /* Ensure button text doesn't wrap */
    .btn-primary,
    .btn-secondary {
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }
    
    /* Specific fixes for product card buttons */
    .product-card .btn-primary,
    .product-card .btn-secondary {
        min-width: 100px !important;
        max-width: none !important;
        flex-shrink: 0 !important;
    }
    
    /* Icon spacing fix */
    .btn-primary i,
    .btn-secondary i {
        margin-right: 0.25rem !important;
        flex-shrink: 0 !important;
    }
}

/* Large desktop screens - even more space */
@media (min-width: 1440px) {
    .product-card .btn-primary,
    .product-card .btn-secondary {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.875rem !important;
    }
}
/* Product Details Media Gallery */
.main-media-container {
    position: relative;
}

.thumbnail-gallery {
    margin-top: 1rem;
}

.thumbnail-gallery .flex {
    scrollbar-width: thin;
    scrollbar-color: #5a3e2b #f1f5f9;
}

.thumbnail-gallery .flex::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-gallery .flex::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.thumbnail-gallery .flex::-webkit-scrollbar-thumb {
    background: #5a3e2b;
    border-radius: 2px;
}

.thumbnail-gallery .flex::-webkit-scrollbar-thumb:hover {
    background: #3d291c;
}

.thumbnail-item {
    transition: all 0.2s ease-in-out;
    position: relative;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 62, 43, 0.3);
}

.thumbnail-item.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #5a3e2b, #3d291c);
    border-radius: 0.5rem;
    z-index: -1;
}

/* Video thumbnail styling */
.thumbnail-item .fa-play {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main media transitions */
#main-media {
    transition: all 0.3s ease-in-out;
}

#main-image {
    cursor: zoom-in;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .thumbnail-gallery .w-20 {
        width: 4rem;
    }
    
    .thumbnail-gallery .h-20 {
        height: 4rem;
    }
}

@media (min-width: 1024px) {
    .thumbnail-gallery .w-20 {
        width: 6rem;
    }
    
    .thumbnail-gallery .h-20 {
        height: 6rem;
    }
}
/* Related Products Section */
.related-products-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.related-products-section .product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-products-section .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.related-products-section .product-card .group:hover img {
    transform: scale(1.05);
}

/* Product rating stars */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.125rem;
}

.product-rating .fas.fa-star,
.product-rating .far.fa-star {
    font-size: 0.875rem;
}

/* Stock status badges */
.stock-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

.stock-badge.in-stock {
    background-color: #dcfce7;
    color: #166534;
}

.stock-badge.out-of-stock {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Enhanced button styling for related products */
.related-products-section .btn-primary {
    background: linear-gradient(135deg, #5a3e2b 0%, #3d291c 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.2s ease-in-out;
}

.related-products-section .btn-primary:hover {
    background: linear-gradient(135deg, #3d291c 0%, #2d1f15 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 62, 43, 0.4);
}

.related-products-section .btn-secondary {
    background: transparent;
    border: 2px solid #5a3e2b;
    color: #5a3e2b;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.2s ease-in-out;
}

.related-products-section .btn-secondary:hover {
    background: #5a3e2b;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 62, 43, 0.3);
}

/* Wishlist button in related products */
.related-products-section .group:hover .opacity-0 {
    opacity: 1;
}

/* View more button */
.view-more-btn {
    background: linear-gradient(135deg, #5a3e2b 0%, #3d291c 100%);
    transition: all 0.3s ease-in-out;
}

.view-more-btn:hover {
    background: linear-gradient(135deg, #3d291c 0%, #2d1f15 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 62, 43, 0.3);
}

/* Responsive adjustments for related products */
@media (max-width: 640px) {
    .related-products-section .grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .related-products-section .product-card {
        margin: 0 auto;
        max-width: 20rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .related-products-section .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1025px) {
    .related-products-section .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* Product name line clamping */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Minimum height for consistent card layout */
.min-h-3rem {
    min-height: 3rem;
}
/* Checkout Page Styles */

/* Form Elements */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background-color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #5a3e2b;
}

.form-input:disabled,
.form-input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.form-input::placeholder {
    color: #9ca3af;
}

/* Checkout Steps */
.checkout-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.checkout-step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.checkout-step.completed .checkout-step-number {
    background-color: #5a3e2b;
    color: white;
}

.checkout-step.active .checkout-step-number {
    background-color: #5a3e2b;
    color: white;
    box-shadow: 0 0 0 4px rgba(90, 62, 43, 0.2);
}

.checkout-step span {
    color: #6b7280;
    font-weight: 500;
}

.checkout-step.completed span,
.checkout-step.active span {
    color: #5a3e2b;
    
}

/* Payment Method Cards */
.payment-method {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    background-color: #ffffff;
}

.payment-method.selected {
    border-color: #5a3e2b;
    background-color: #fef7f0;
}

.payment-method label {
    margin: 0;
    cursor: pointer;
}

.payment-method .w-5.h-5 {
    border-color: #d1d5db;
}

.payment-method.selected .w-5.h-5 {
    border-color: #5a3e2b;
}

/* Payment Instructions */
.payment-instructions {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.payment-instructions.hidden {
    display: none;
}

/* Order Summary Enhancements */
.order-summary {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.875rem;
}

.order-summary-item:last-child {
    border-bottom: 2px solid #5a3e2b;
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
    padding: 1rem 0 0.5rem 0;
    margin-top: 0.5rem;
}

.order-summary-item.text-green-600 {
    color: #059669;
    font-weight: 500;
}

/* Checkout Form Sections */
.checkout-section {
    background-color: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.checkout-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
}

/* Sticky Order Summary */
.sticky {
    position: sticky;
    top: 1rem;
}

/* Coupon Section */
.coupon-section {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0fdf4;
    color: #166534;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Cart Item in Summary */
.cart-item-summary {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.cart-item-summary:last-child {
    border-bottom: none;
}

.cart-item-summary img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-right: 0.75rem;
}

.cart-item-summary .item-details {
    flex: 1;
}

.cart-item-summary .item-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
    line-height: 1.25;
}

.cart-item-summary .item-quantity {
    color: #6b7280;
    font-size: 0.75rem;
}

.cart-item-summary .item-price {
    font-weight: 500;
    color: #1f2937;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-step {
        margin: 0 0.5rem;
    }
    
    .checkout-step-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
    
    .checkout-step span {
        font-size: 0.75rem;
    }
    
    .payment-method {
        padding: 0.75rem;
    }
    
    .form-input {
        padding: 0.625rem;
    }
    
    .order-summary-item {
        font-size: 0.8125rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #5a3e2b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation States */
.form-input.error {
    border-color: #ef4444;
}

.form-input.success {
    border-color: #10b981;
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Enhanced checkout page styling - High specificity to override Tailwind */
.checkout-container {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%) !important;
    min-height: 100vh !important;
    padding: 0rem 0 !important;
}

/* Checkout form sections - High specificity */
.checkout-form-section {
    background: white !important;
    border-radius: 0.75rem !important;
    border: 1px solid #e5e7eb !important;
    padding: 0.8rem !important;
    margin-bottom: 1.5rem !important;
}

.checkout-form-section h2 {
    color: #374151 !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid #f3f4f6 !important;
    position: relative !important;
}

.checkout-form-section h2::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 3rem !important;
    height: 2px !important;
    background: linear-gradient(90deg, #5a3e2b, #8b5a3c) !important;
    border-radius: 1px !important;
}

/* Enhanced form inputs - High specificity */
.form-input {
    background-color: #fafafa !important;
    border: 2px solid #e5e7eb !important;
    width: 100% !important;
    padding: 0.75rem !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
}

.form-input:focus {
    background-color: white !important;
    border-color: #5a3e2b !important;
    outline: none !important;
}

.form-input:hover {
    border-color: #e5e7eb !important;
    background-color: #fafafa !important;
}

/* Form labels */
.form-label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 0.5rem !important;
}

/* Enhanced order summary with gradient - High specificity */
.order-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    border: 1px solid #e5e7eb !important;
}

.order-summary-item {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    font-size: 0.9375rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.order-summary-item:last-child {
    border-bottom: 2px solid #5a3e2b !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    color: #5a3e2b !important;
    padding: 1rem 0 0.5rem 0 !important;
    background: linear-gradient(135deg, #fef7f0 0%, #fdf2e9 100%) !important;
    margin: 0 -1.5rem -1.5rem -1.5rem !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    border-radius: 0 0 0.75rem 0.75rem !important;
}

/* Enhanced payment method cards - High specificity */
.payment-method {
    border: 2px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%) !important;
    margin-bottom: 0.5rem !important;
}

.payment-method.selected {
    border-color: #5a3e2b !important;
    background: linear-gradient(135deg, #fef7f0 0%, #fdf2e9 100%) !important;
}

.payment-method .w-5.h-5 {
    border-color: #d1d5db !important;
}

.payment-method.selected .w-5.h-5 {
    border-color: #5a3e2b !important;
    background-color: #5a3e2b !important;
}

.payment-method.selected .w-2.h-2 {
    background-color: white !important;
}

/* Enhanced place order button - High specificity */
#place-order-btn {
    background: linear-gradient(135deg, #5a3e2b 0%, #3d291c 100%) !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
    color: white !important;
    font-weight: 600 !important;
}

#place-order-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
}

#place-order-btn:hover {
    background: linear-gradient(135deg, #5a3e2b 0%, #3d291c 100%) !important;
}

/* Loading state animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spinner.fa-spin {
    animation: spin 1s linear infinite;
}

/* Enhanced notifications */
.checkout-notification {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .checkout-container {
        padding: 1rem 0;
    }
    
    .checkout-form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .order-summary {
        padding: 1rem;
    }
    
    .order-summary-item {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
    
    .order-summary-item:last-child {
        margin: 0 -1rem -1rem -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Coupon section styling - High specificity */
.coupon-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    border: 1px solid #e2e8f0 !important;
}

/* Button styles with high specificity */
.btn-primary {
    background-color: #5a3e2b !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    border: none !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-primary:hover {
    background-color: #3d291c !important;
}

.btn-secondary {
    background-color: transparent !important;
    color: #5a3e2b !important;
    border: 2px solid #5a3e2b !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-secondary:hover {
    background-color: #5a3e2b !important;
    color: white !important;
}

/* Enhanced checkout steps - High specificity */
.checkout-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.checkout-step-number {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 50% !important;
    border: 2px solid #d1d5db !important;
    background-color: white !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    transition: all 0.3s ease !important;
}

.checkout-step.completed .checkout-step-number {
    background-color: #5a3e2b !important;
    color: white !important;
    border-color: #5a3e2b !important;
}

.checkout-step.active .checkout-step-number {
    background-color: #5a3e2b !important;
    color: white !important;
    border-color: #5a3e2b !important;
}

.checkout-step span {
    color: #6b7280 !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
}

.checkout-step.completed span,
.checkout-step.active span {
    color: #5a3e2b !important;
    font-weight: 600 !important;
}

/* Enhanced breadcrumb - High specificity */
.breadcrumb {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #e5e7eb !important;
}

/* Cart item display in summary - High specificity */
.cart-item-summary {
    transition: all 0.2s ease !important;
    padding: 0.75rem !important;
    border-radius: 0.5rem !important;
    border: 1px solid #f3f4f6 !important;
    background: #fafafa !important;
}

.cart-item-summary:hover {
    background: #f5f5f5 !important;
    border-color: #e5e7eb !important;
}

/* Payment instructions styling - High specificity */
.payment-instructions {
    background: linear-gradient(135deg, #fef7f0 0%, #fdf2e9 100%) !important;
    border: 1px solid #fed7aa !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
}

.payment-instructions p {
    color: #92400e !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* Transaction ID field styling - High specificity */
#transaction-id-field {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: 1px solid #bae6fd !important;
    border-radius: 0.5rem !important;
    padding: 1rem !important;
}

#transaction-id-field .form-label {
    color: #0c4a6e !important;
    font-weight: 600 !important;
}

#transaction-id-field p {
    color: #0369a1 !important;
}

/* Loading state for place order button - High specificity */
#place-order-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

#place-order-btn:disabled:hover {
    transform: none !important;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .checkout-form-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .order-summary {
        padding: 1rem;
    }
    
    .order-summary-item {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
}

.error-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.success-message {
    color: #10b981;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* District Selection Enhancement */
#district {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Transaction ID Field Animation */
#transaction-id-field {
    overflow: hidden;
}

#transaction-id-field.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
}

#transaction-id-field:not(.hidden) {
    max-height: 200px;
    opacity: 1;
}

/* Place Order Button Enhancement */
#place-order-btn {
    background: linear-gradient(135deg, #5a3e2b 0%, #3d291c 100%);
    border: none;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

#place-order-btn:hover {
    background: linear-gradient(135deg, #3d291c 0%, #2d1f15 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(90, 62, 43, 0.3);
}

#place-order-btn:active {
    transform: translateY(0);
}

#place-order-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Breadcrumb Enhancement */
.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.breadcrumb a:hover {
    color: #5a3e2b;
}

.breadcrumb .fas {
    margin: 0 0.5rem;
    font-size: 0.75rem;
}

/* Checkout Page Specific Overrides - Highest Priority */
body .checkout-container * {
    box-sizing: border-box;
}

/* Force checkout styles to override Tailwind */
.checkout-container .checkout-form-section {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.checkout-container .form-input {
    width: 100% !important;
    padding: 0.75rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.375rem !important;
    background-color: #fafafa !important;
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
}

.checkout-container .form-input:focus {
    outline: none !important;
    border-color: #5a3e2b !important;
    background-color: white !important;
}

.checkout-container .form-label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #374151 !important;
    margin-bottom: 0.5rem !important;
}

.checkout-container .payment-method {
    border: 2px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
    margin-bottom: 0.5rem !important;
    background: white !important;
    cursor: pointer !important;
}

.checkout-container .payment-method.selected {
    border-color: #5a3e2b !important;
    background: #fef7f0 !important;
}

.checkout-container .order-summary {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    padding: 1.5rem !important;
}

.checkout-container .order-summary-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #f3f4f6 !important;
}

.checkout-container .order-summary-item:last-child {
    border-bottom: 2px solid #5a3e2b !important;
    font-weight: 600 !important;
    color: #5a3e2b !important;
    background: #fef7f0 !important;
    margin: 0 -1.5rem -1.5rem -1.5rem !important;
    padding: 1rem 1.5rem 0.5rem 1.5rem !important;
    border-radius: 0 0 0.75rem 0.75rem !important;
}

.checkout-container .btn-primary {
    background: linear-gradient(135deg, #5a3e2b 0%, #3d291c 100%) !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

.checkout-container .btn-primary:hover {
    background: linear-gradient(135deg, #3d291c 0%, #2d1f15 100%) !important;
}

.checkout-container .btn-secondary {
    background: transparent !important;
    color: #5a3e2b !important;
    border: 2px solid #5a3e2b !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.checkout-container .btn-secondary:hover {
    background: #5a3e2b !important;
    color: white !important;
}

/* Checkout steps override */
.checkout-container .checkout-step {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.checkout-container .checkout-step-number {
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 50% !important;
    border: 2px solid #d1d5db !important;
    background: white !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.checkout-container .checkout-step.completed .checkout-step-number,
.checkout-container .checkout-step.active .checkout-step-number {
    background: #5a3e2b !important;
    color: white !important;
    border-color: #5a3e2b !important;
}

.checkout-container .checkout-step.active .checkout-step-number {
    background: #5a3e2b !important;
    color: white !important;
    border-color: #5a3e2b !important;
}

.checkout-container .checkout-step span {
    color: #6b7280 !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
}

.checkout-container .checkout-step.completed span,
.checkout-container .checkout-step.active span {
    color: #5a3e2b !important;
    font-weight: 600 !important;
}

/* Cart item summary override */
.checkout-container .cart-item-summary {
    background: #fafafa !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.checkout-container .cart-item-summary:hover {
    background: #f5f5f5 !important;
    border-color: #e5e7eb !important;
}

/* Coupon section override */
.checkout-container .coupon-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 1rem !important;
}

/* Breadcrumb override */
.checkout-container .breadcrumb {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
}

/* Rich Text Content Styling */
.rich-text-content {
    line-height: 1.7;
}

.rich-text-content h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem 0;
    color: #1f2937;
}

.rich-text-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.25rem 0 0.75rem 0;
    color: #374151;
}

.rich-text-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
    color: #4b5563;
}

.rich-text-content p {
    margin: 0.75rem 0;
    color: #6b7280;
}

.rich-text-content strong,
.rich-text-content b {
    font-weight: 600;
    color: #374151;
}

.rich-text-content em,
.rich-text-content i {
    font-style: italic;
}

.rich-text-content u {
    text-decoration: underline;
}

.rich-text-content ul,
.rich-text-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.rich-text-content ul {
    list-style-type: disc;
}

.rich-text-content ol {
    list-style-type: decimal;
}

.rich-text-content li {
    margin: 0.25rem 0;
    color: #6b7280;
}

.rich-text-content blockquote {
    border-left: 4px solid #5a3e2b;
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: #6b7280;
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.375rem;
}

.rich-text-content a {
    color: #5a3e2b;
    text-decoration: underline;
}

.rich-text-content a:hover {
    color: #3d291c;
}

/* Quill Editor Customization */
.ql-toolbar.ql-snow {
    border: 1px solid #d1d5db;
    border-bottom: none;
    border-radius: 0.375rem 0.375rem 0 0;
}

.ql-container.ql-snow {
    border: 1px solid #d1d5db;
    border-radius: 0 0 0.375rem 0.375rem;
}

.ql-editor {
    min-height: 150px;
    font-size: 14px;
    line-height: 1.5;
}

.ql-editor.ql-blank::before {
    color: #9ca3af;
    font-style: italic;
}

.ql-toolbar .ql-stroke {
    stroke: #6b7280;
}

.ql-toolbar .ql-fill {
    fill: #6b7280;
}

.ql-toolbar .ql-picker-label {
    color: #6b7280;
}

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button:focus .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke {
    stroke: #5a3e2b;
}

.ql-toolbar button:hover .ql-fill,
.ql-toolbar button:focus .ql-fill,
.ql-toolbar button.ql-active .ql-fill {
    fill: #5a3e2b;
}

.ql-toolbar button:hover,
.ql-toolbar button:focus,
.ql-toolbar button.ql-active {
    color: #5a3e2b;
}
/* Payment Method Cards - Enhanced Checkout */
.payment-method-card {
    transition: all 0.3s ease;
}

.payment-method-card:hover {
    border-color: #5a3e2b;
    box-shadow: 0 2px 8px rgba(90, 62, 43, 0.1);
}

.payment-method-card.selected {
    border-color: #5a3e2b !important;
    box-shadow: 0 0 0 2px rgba(90, 62, 43, 0.2);
}

.payment-details {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.expand-icon {
    transition: transform 0.3s ease;
}

.radio-indicator {
    transition: all 0.2s ease;
}

.radio-dot {
    transition: all 0.2s ease;
}

.transaction-id-input:disabled {
    background-color: #f9fafb;
    cursor: not-allowed;
}

.transaction-id-input:enabled {
    background-color: white;
}

/* Copy button hover effect */
.copy-button:hover {
    background-color: #f3f4f6;
}

/* Payment method selection visual feedback */
.payment-method-card label:hover {
    background-color: #f9fafb;
}

.payment-method-card.selected label {
    background-color: #fef7f0;
}

/* Account number styling */
.account-number {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Payment instructions styling */
.payment-instructions-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid #3b82f6;
}

/* Toast notification styling */
.toast-notification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile responsiveness for payment cards */
@media (max-width: 768px) {
    .payment-method-card {
        margin-bottom: 1rem;
    }
    
    .payment-details {
        padding: 1rem;
    }
    
    .account-number {
        font-size: 0.9rem;
    }
}
/* Payment Method Grid Layout */
.payment-method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .payment-method-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Ensure payment method cards have consistent height in grid */
.payment-method-card {
    height: fit-content;
    min-height: auto;
}

/* Payment method card adjustments for grid layout */
@media (min-width: 768px) {
    .payment-method-card {
        margin-bottom: 0; /* Remove bottom margin in grid layout */
    }
    
    /* Ensure expanded details don't break grid layout */
    .payment-details {
        position: relative;
        z-index: 1;
    }
    
    /* Adjust spacing for grid layout */
    .payment-method-card + .payment-method-card {
        margin-top: 0;
    }
}

/* Mobile layout - keep single column with spacing */
@media (max-width: 767px) {
    .payment-method-card {
        margin-bottom: 1rem;
    }
    
    .payment-method-card:last-child {
        margin-bottom: 0;
    }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .payment-method-card {
        font-size: 0.95rem;
    }
    
    .payment-details {
        padding: 1rem;
    }
    
    .account-number {
        font-size: 0.9rem;
    }
}

/* Large screen adjustments */
@media (min-width: 1025px) {
    .payment-method-card {
        font-size: 1rem;
    }
    
    .payment-details {
        padding: 1.25rem;
    }
}
/* Enhanced grid layout for payment methods */
.payment-method-grid .payment-method-card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Ensure payment details expand properly in grid */
.payment-method-grid .payment-details {
    width: 100%;
    box-sizing: border-box;
}

/* Prevent grid items from stretching unnecessarily */
.payment-method-grid .payment-method-card {
    align-self: start;
}

/* Smooth transitions for grid layout */
.payment-method-grid .payment-method-card {
    transition: all 0.3s ease;
}

/* Hover effects for grid items */
.payment-method-grid .payment-method-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 62, 43, 0.15);
}

/* Selected state enhancements for grid */
.payment-method-grid .payment-method-card.selected {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(90, 62, 43, 0.2);
}

/* Responsive adjustments for different screen sizes */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Tablet - 2 columns with tighter spacing */
    .payment-method-grid {
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    /* Desktop - 2 columns with comfortable spacing */
    .payment-method-grid {
        gap: 1.5rem;
    }
}

/* Ensure consistent card heights in grid */
.payment-method-grid .payment-method-card {
    min-height: 60px; /* Minimum height for consistency */
}

/* Account number display adjustments for grid layout */
.payment-method-grid .account-number {
    word-break: break-all; /* Ensure long numbers don't break layout */
}

/* Payment instructions box adjustments for grid */
.payment-method-grid .payment-instructions-box {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
/* Payment Details Section - Bottom Display */
#payment-details-section {
    animation: slideDown 0.4s ease-out;
    border: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
}

#payment-details-section.hidden {
    display: none;
}

#payment-details-section h3 {
    color: #374151;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

/* Payment info container styling */
#payment-info-container .bg-white {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Transaction ID section styling */
#transaction-id-section .bg-white {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#transaction-id-section input:focus {
    box-shadow: 0 0 0 3px rgba(90, 62, 43, 0.1);
}

/* COD info section styling */
#cod-info-section .bg-white {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#cod-info-section .bg-green-50 {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Clean payment method cards without dropdowns */
.payment-method-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-method-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(90, 62, 43, 0.1);
}

.payment-method-card.selected {
    border-color: #5a3e2b !important;
    box-shadow: 0 0 0 2px rgba(90, 62, 43, 0.2);
    background-color: #fef7f0;
}

/* Remove old payment details styles since we're not using dropdowns */
.payment-details,
.expand-icon,
.transaction-id-input {
    display: none !important;
}

/* Enhanced grid layout for cleaner cards */
.payment-method-grid .payment-method-card {
    min-height: 80px;
    display: flex;
    align-items: center;
}

.payment-method-grid .payment-method-card label {
    width: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
}

/* Account number display in bottom section */
.font-mono {
    position: relative;
}

.font-mono button {
    transition: all 0.2s ease;
}

.font-mono button:hover {
    background-color: rgba(90, 62, 43, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
}

/* Responsive adjustments for payment details section */
@media (max-width: 768px) {
    #payment-details-section {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    #payment-info-container .bg-white,
    #transaction-id-section .bg-white,
    #cod-info-section .bg-white {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        border-radius: 0.5rem;
    }
}

/* Animation for payment details appearance */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 1000px;
    }
}

/* Toast notification improvements */
.toast-notification {
    animation: slideInRight 0.3s ease-out;
    backdrop-filter: blur(4px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   GLOBAL LOADER SYSTEM INTEGRATION
   =================================== */

/* Ensure loader appears above all content */
#global-loader {
    z-index: 99999 !important;
}

#connection-status {
    z-index: 99998 !important;
}

#page-transition-loader {
    z-index: 99997 !important;
}

/* Smooth integration with existing design */
.loader-container {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Loading skeleton for content */
.content-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    height: 1rem;
    margin: 0.25rem 0;
}

.content-loading.h-4 { height: 1rem; }
.content-loading.h-6 { height: 1.5rem; }
.content-loading.h-8 { height: 2rem; }

/* Image loading placeholder */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Form loading states */
.form-loading input,
.form-loading select,
.form-loading textarea {
    background-color: #f9fafb;
    pointer-events: none;
}

/* Connection status responsive design */
@media (max-width: 768px) {
    #connection-status {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .loader-spinner,
    .loader-pulse,
    .loading-shimmer {
        animation: none;
    }
    
    .loader-spinner {
        border-top-color: #5a3e2b;
        opacity: 0.8;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    #global-loader {
        background-color: #1f2937;
    }
    
    #global-loader .text-gray-800 {
        color: #f9fafb !important;
    }
    
    #global-loader .text-gray-600 {
        color: #d1d5db !important;
    }
}

/* Integration with existing components */
.product-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.cart-item.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Smooth transitions for loader states */
.loader-transition {
    transition: all 0.3s ease-in-out;
}

/* Loading overlay for specific sections */
.section-loading {
    position: relative;
    pointer-events: none;
}

.section-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.section-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #5a3e2b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 11;
}