/* ------------------------  
   Base Styles  
------------------------- */
body {
    background: #f8fafc;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 14px !important;
    padding-top: 120px !important;
}

/* ------------------------  
   Header  
------------------------- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ------------------------  
   Product Image  
------------------------- */
img.product-img {
    max-height: 80px;
    width: auto;
    object-fit: cover;
}

/* ------------------------  
   Masonry Layout  
------------------------- */
.masonry {
    column-count: 2;
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    display: block;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .masonry {
        column-count: 1;
    }
}

/* ------------------------  
   Category Cards  
------------------------- */
.category-card {
    max-height: 550px;
    overflow-y: auto;
    position: relative;
}

.category-card .card-header {
    position: sticky;
    top: 0;
    z-index: 3;
    cursor: pointer;
}

/* Search box inside card */
.category-search {
    width: 95%;
    margin: 10px auto;
}

/* Load more */
.load-more-wrapper {
    padding: 10px;
    text-align: center;
}

/* ------------------------  
   Cart Sidebar  
------------------------- */
.cart-sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* ------------------------  
   Price Buttons  
------------------------- */
.price-btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-btn:hover {
    transform: scale(1.07);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25) !important;
}

/* ------------------------  
   Section Box  
------------------------- */
.section-box {
    background: #fff;
    padding: 25px;
    margin-bottom: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section-box h4 {
    font-weight: 700;
    border-left: 4px solid #00a3ff;
    padding-left: 10px;
}

/* ------------------------  
   Form Controls  
------------------------- */
.form-control {
    height: 46px;
}

textarea.form-control {
    height: auto;
}

/* ------------------------  
   Checkout Button  
------------------------- */
.checkout-btn {
    background: #005dff;
    border: none;
    padding: 14px 35px;
    border-radius: 8px;
    font-size: 16px;
}

.checkout-btn:hover {
    opacity: 0.85;
}

.box {
            background: #fff;
            width: 450px;
            margin: auto;
            padding: 35px;
            border-radius: 12px;
            box-shadow: 0 4px 18px rgba(0,0,0,0.08);
        }
        h2 {
            font-weight: 700;
        }
        .loader {
            margin: 20px auto;
            border: 4px solid #e0e0e0;
            border-top: 4px solid #007bff;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin .9s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        h1 {
            color: #d9534f;
            font-weight: 700;
        }

        .retry-btn {
            background: #007bff;
            padding: 12px 28px;
            border-radius: 6px;
            color: white;
            font-size: 16px;
            border: none;
        }
        .retry-btn:hover {
            opacity: .85;
        }

.success-card {
            background: #ffffff;
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 5px 18px rgba(0,0,0,0.08);
            max-width: 550px;
            margin: 0 auto;
            text-align: center;
        }
        .success-icon {
            font-size: 70px;
            color: #28a745;
            margin-bottom: 20px;
        }
        .btn-home {
            margin-top: 25px;
            padding: 12px 30px;
            font-size: 16px;
            border-radius: 8px;
        }