/* =========================================
   SHOP PAGE STYLES (shop.css)
   ========================================= */

body { background-color: #f8f9fa; }

/* --- 1. SHOP TAB ACTIVE (RED) HIGHLIGHT --- */
/* Yeh code sirf iss page par Shop link ko red (active) karega aur underline dega */
.nav-links a[href="shop.php"] {
    color: #e91e63 !important;
}
.nav-links a[href="shop.php"]::after {
    width: 100% !important;
    background: #e91e63 !important;
}
/* Mobile Bottom Nav ke liye bhi Shop ko active karega */
.bottom-nav a[href="shop.php"] {
    color: #e91e63 !important;
}
.bottom-nav a[href="shop.php"] i {
    font-weight: 700;
    transform: translateY(-2px);
}

/* --- 2. NEW HERO SECTION (SOFT & BEAUTIFUL) --- */
.shop-hero { 
    background: linear-gradient(
        rgba(255, 240, 245, 0.25), 
        rgba(255, 228, 236, 0.35)
    ), 
    url('../images/bg-shop.png') center/cover no-repeat;

    background-color: #fce4ec;
    padding: 80px 20px; 
    text-align: center; 
    border-bottom: 2px solid #fce4ec;
}
.shop-hero h1 { 
    font-size: 2.8rem; 
    margin-bottom: 12px; 
    font-family: 'Playfair Display', serif; 
    color: #e91e63; /* Text ko pink kiya taaki light background par chamke */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05); /* Very light shadow */
}
.shop-hero p { 
    font-size: 1.1rem; 
    color: #2C3E50; /* Dark color so it's easy to read */
    max-width: 650px; 
    margin: 0 auto; 
    font-weight: 500;
}

/* --- 3. CATEGORY FILTERS & TOOLBAR --- */
.shop-toolbar-wrapper { max-width: 1300px; margin: 40px auto 20px; padding: 0 5%; display: flex; flex-direction: column; gap: 20px; }

.category-filters { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
    justify-content: center; 
    width: 100%;
}
.filter-btn { 
    background: #fff; border: 1px solid #ddd; padding: 10px 22px; 
    border-radius: 30px; font-size: 14px; font-weight: 500; color: #555; 
    cursor: pointer; transition: 0.3s; white-space: nowrap; box-shadow: 0 3px 8px rgba(0,0,0,0.03);
}
.filter-btn:hover { border-color: #e91e63; color: #e91e63; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(233, 30, 99, 0.15); }
.filter-btn.active { background: #e91e63; color: #fff; border-color: #e91e63; box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2); }

/* Search & Custom Sort Controls */
.shop-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-top: 15px; border-top: 1px solid #eee; padding-top: 25px;}
.search-box { position: relative; flex: 1; max-width: 400px; }
.search-box input { width: 100%; padding: 14px 15px 14px 45px; border: 1px solid #ddd; border-radius: 30px; font-size: 14px; font-family: 'Poppins', sans-serif; outline: none; transition: 0.3s; box-shadow: inset 0 2px 5px rgba(0,0,0,0.02);}
.search-box input:focus { border-color: #e91e63; box-shadow: 0 0 0 4px rgba(233,30,99,0.1); }
.search-box i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #999; font-size: 1.1rem;}

/* Custom Sort Dropdown */
.custom-sort-dropdown { position: relative; width: 220px; user-select: none; z-index: 10; }
.sort-selected { background: #fff; padding: 12px 18px; border: 1px solid #ddd; border-radius: 30px; font-size: 14px; color: #2C3E50; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.3s; font-family: 'Poppins', sans-serif; box-shadow: 0 2px 5px rgba(0,0,0,0.02);}
.sort-selected:hover { border-color: #e91e63; }
.sort-options { position: absolute; top: 110%; left: 0; right: 0; background: #fff; border: 1px solid #eee; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); margin-top: 5px; list-style: none; padding: 8px 0; display: none; overflow: hidden; }
.custom-sort-dropdown.active .sort-options { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.sort-options li { padding: 12px 18px; font-size: 13px; color: #555; cursor: pointer; transition: 0.2s; }
.sort-options li:hover { background: #fdf5f6; color: #e91e63; padding-left: 22px; font-weight: 500;}

/* --- 4. PREMIUM PRODUCT GRID --- */
.products-section { padding: 0 5% 60px; max-width: 1300px; margin: 0 auto; }
#advancedShopGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }

.shop-card { background: #fff; border-radius: 15px; overflow: hidden; border: 1px solid #eee; transition: 0.4s; position: relative; display: flex; flex-direction: column; cursor: pointer; text-decoration: none; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.shop-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(233, 30, 99, 0.1); border-color: #fce4ec; }

.card-img-wrap { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; position: relative; background: #fdfdfd; display: flex; justify-content: center; align-items: center;}
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.shop-card:hover .card-img-wrap img { transform: scale(1.08); }

/* Badges */
.card-badge { position: absolute; top: 15px; left: 15px; background: #2C3E50; color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.15);}
.card-badge.hot { background: #e91e63; }

/* Product Info */
.card-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-title { font-size: 16px; color: #2C3E50; margin-bottom: 10px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 45px; }

/* Pricing Row */
.price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap;}
.current-price { font-size: 20px; color: #e91e63; font-weight: 700; }
.mrp-price { font-size: 14px; color: #999; text-decoration: line-through; }
.discount-tag { font-size: 12px; color: #fff; font-weight: 600; background: #388e3c; padding: 3px 8px; border-radius: 4px; box-shadow: 0 2px 5px rgba(56, 142, 60, 0.2);}

/* Add to Cart Button */
.btn-add-cart { width: 100%; background: #fff; color: #e91e63; border: 2px solid #e91e63; padding: 12px; border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.shop-card:hover .btn-add-cart { background: #e91e63; color: #fff; }
.btn-add-cart:active { transform: scale(0.96); }

/* --- 5. NO RESULTS --- */
.no-results { text-align: center; padding: 60px 20px; color: #777; font-size: 1.2rem; display: none; grid-column: 1 / -1; }

/* --- 6. MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
    .shop-hero { padding: 50px 15px; }
    .shop-hero h1 { font-size: 2.2rem; }
    
    .shop-toolbar-wrapper { margin: 25px auto 15px; padding: 0 15px; }
    
    .category-filters { gap: 8px; }
    .filter-btn { padding: 8px 15px; font-size: 12px; }
    
    .shop-controls { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 15px;}
    .search-box { max-width: 100%; }
    .custom-sort-dropdown { width: 100%; }
    
    .products-section { padding: 0 15px 40px; }
    #advancedShopGrid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    .shop-card { border-radius: 12px; }
    .card-badge { font-size: 9px; padding: 4px 8px; top: 10px; left: 10px; }
    .card-info { padding: 15px; }
    .card-title { font-size: 14px; height: 40px; margin-bottom: 8px; }
    
    .price-row { gap: 6px; margin-bottom: 12px; }
    .current-price { font-size: 17px; }
    .mrp-price { font-size: 12px; }
    .discount-tag { font-size: 10px; padding: 2px 5px; }

    .btn-add-cart { padding: 10px 5px; font-size: 12px; gap: 5px; border-radius: 20px; border-width: 1px;}
}

@media (max-width: 360px) {
    .price-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}