/* style.css - Complete Fix */
:root {
    --primary: #333;
    --success: #28a745;
    --danger: #dc3545;
    --header-bg: #ffffff;
}

body { margin: 0; font-family: 'Segoe UI', Tahoma, sans-serif; background-color: #f8f9fa; }
.container { width: 95%; max-width: 1450px; margin: 0 auto; }

/* Header Fix for Mobile */
.main-header {
    background: var(--header-bg); padding: 12px 0; border-bottom: 1px solid #ddd;
    position: sticky; top: 0; z-index: 9999; /* इसे सबसे ऊपर रखने के लिए */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 10px; margin: 0; padding: 0; }

.nav-links a { 
    text-decoration: none; color: #555; font-weight: 600; font-size: 14px; 
    padding: 10px 18px; border-radius: 8px; transition: all 0.3s ease; 
}

.nav-links a:hover { color: #000; background-color: #f0f0f0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(-1px); }
.nav-links a.active-page { background-color: #e9ecef; color: #007bff; }

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .menu-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; z-index: 10000; }
    .menu-toggle span { width: 25px; height: 3px; background: #333; transition: 0.3s; }
    
    .nav-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%; 
        background: white; flex-direction: column; padding: 20px 0; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-top: 1px solid #eee;
    }
    .nav-links.active { display: flex; }
    .nav-links li { text-align: center; width: 100%; }
    .nav-links a { display: block; width: 90%; margin: 5px auto; }
}

/* Hover Shadow: हल्का ग्लो और शैडो */
.nav-links a:hover { 
    color: #000; background-color: #f0f0f0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    transform: translateY(-1px);
}

/* Active Page Background */
.nav-links a.active-page {
    background-color: #e9ecef; color: #007bff;
}

/* Responsive Grid with 30px Gap */
.box-container { 
    display: grid; 
    /* 280px का कार्ड साइज़ और 30px की दूरी */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; 
    padding: 40px 0; 
    justify-items: center;
}

.card {
    width: 100%; max-width: 280px; /* कार्ड का साइज़ बढ़ाया गया */
    background: white; border-radius: 1.2rem; padding: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06); transition: 0.4s; border: 1px solid #eee;
    position: relative;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

/* Image Fixed */
.card .image-container {
    width: 100%; height: 180px; border-radius: 1rem; overflow: hidden; 
    background: #fff; display: flex; align-items: center; justify-content: center;
}
.card .image-container img { max-width: 90%; max-height: 90%; object-fit: contain; }

.card .price-tag {
    position: absolute; right: 15px; top: 155px; background: white;
    color: var(--danger); font-weight: 800; padding: 6px 12px;
    border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); font-size: 0.9rem;
}

/* Service vs Product Badges */
.type-badge { font-size: 10px; padding: 4px 10px; border-radius: 10px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; display: inline-block; }
.badge-service { background: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; }
.badge-product { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; }

.buy-button {
    width: 100%; padding: 14px; border: none; border-radius: 12px;
    background: #007bff; color: white; font-weight: bold; cursor: pointer; transition: 0.3s;
}
.buy-button:hover { background: #0056b3; box-shadow: 0 5px 15px rgba(0,123,255,0.3); }

/* Mobile View */
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 60px; left: 0; width: 100%; background: white; flex-direction: column; padding: 20px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
}

/* पुराने प्राइस को काटने के लिए */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8rem;
    margin-right: 5px;
}

/* नया प्राइस हाईलाइट करने के लिए */
.new-price-highlight {
    color: var(--success);
    font-weight: bold;
}

/* Checkout Page Specific Classes */
.checkout-flex-container { 
    display: flex; 
    gap: 30px; 
    flex-wrap: wrap; 
}

.checkout-left { flex: 1.2; min-width: 320px; }
.checkout-right { flex: 0.8; min-width: 300px; }

/* मोबाइल के लिए समरी बॉक्स और ग्रिड को रिस्पॉन्सिव बनाना */
@media (max-width: 768px) {
    .checkout-flex-container { flex-direction: column; gap: 20px; }
    .checkout-left, .checkout-right { width: 100%; min-width: 100%; }
    .nav-links { display: none; } /* मोबाइल मेनू लॉजिक */
}

.checkout-card { background: white; padding: 30px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); margin-top: 20px; }
.address-box { background: #fff9e6; padding: 15px; border-radius: 12px; border: 1px solid #ffeeba; margin-bottom: 25px; }

/* Quantity Box Fix */
.qty-input {
    width: 100% !important; /* कंटेनर के अंदर फिट होगा */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

/* Discount & Price Labels */
.discount-tag { background: #ff4757; color: white; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: bold; }
.plan-box { border: 2px solid #eee; padding: 15px; border-radius: 12px; cursor: pointer; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.plan-box.active { border-color: var(--success); background: #f0fdf4; }

.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 15px; }
.total-payable { font-size: 22px; font-weight: 900; color: var(--success); }

/* Buttons */
.buy-button { width: 100%; padding: 15px; border: none; border-radius: 12px; background: var(--success); color: white; font-weight: bold; cursor: pointer; font-size: 1.1rem; }