/* --- Variables reused & extended from main style --- */
:root {
    --shop-bg: #f9f9f9;
    --shop-border: #eaeaea;
    --shop-text: #333333;
    --shop-light-text: #777777;
    --shop-primary: #005093; /* Matches dark-blue */
    /* --shop-primary: #1c2b4a; Matches dark-blue */
    --shop-secondary: #108575; /* Matches primary-teal */
    --shop-accent: #f6d04d; /* Matches primary-yellow */
    --shop-radius: 8px;
    --shop-shadow: 0 4px 15px rgba(0,0,0,0.05);
    --shop-hover-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.shop-page-wrapper {
    font-family: 'Poppins', sans-serif;
    color: var(--shop-text);
    padding-bottom: 80px;
    background-color: #ffffff;
}

/* --- Shop Banner (Replaces old shop-hero) --- */
.shop-banner-container {
    width: 100%;
    background-color: #f4f4f4; /* Image load hone se pehle ka color */
    margin-bottom: 30px;
}

.shop-main-banner {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Banner poora dikhega bina crop hue */
}

/* Mobile Screens ke liye margin adjust karein */
@media (max-width: 576px) {
    .shop-banner-container {
        margin-bottom: 20px;
    }
    .shop-main-banner {
        min-height: 120px; /* Thodi minimum height taaki ekdum chota na ho jaye */
        object-fit: cover;
    }
}

/* --- Filter / Sorting Bar --- */
.shop-main-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.shop-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--shop-border);
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.hide-filters-btn {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--shop-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.hide-filters-btn:hover {
    color: var(--shop-secondary);
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.product-count {
    font-size: 14px;
    color: var(--shop-light-text);
}

.sort-dropdown label {
    font-size: 14px;
    margin-right: 8px;
    color: var(--shop-text);
}

.sort-dropdown select {
    padding: 8px 12px;
    border: 1px solid var(--shop-border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background-color: #fff;
    cursor: pointer;
}

/* --- Products Grid --- */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* --- Product Card --- */
.shop-card {
    background: #fff;
    border-radius: var(--shop-radius);
    overflow: hidden;
    box-shadow: var(--shop-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--shop-border);
    position: relative;
    opacity: 0;
    animation: fadeIn 0.5s forwards ease-in-out;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shop-hover-shadow);
}

.shop-card-image {
    position: relative;
    height: 250px;
    background: var(--shop-bg);
    overflow: hidden;
}

/* Dual Image Hover Effect */
.shop-img-primary, .shop-img-secondary {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.shop-img-secondary {
    opacity: 0;
}

.shop-card:hover .shop-img-primary {
    opacity: 0;
}

.shop-card:hover .shop-img-secondary {
    opacity: 1;
    transform: scale(1.05); /* Slight zoom */
}

.shop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: var(--shop-text);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 5;
}

.shop-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #888;
    z-index: 5;
    transition: color 0.2s, transform 0.2s;
}

.shop-wishlist:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.shop-card-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: var(--shop-primary);
    color: #fff;
}

.shop-card-details h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
}

.shop-price-row {
    margin-bottom: 15px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.shop-price {
    font-size: 16px;
    font-weight: 700;
}

.shop-old-price {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
}

.shop-add-btn {
    width: 100%;
    background: #fff;
    color: var(--shop-primary);
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.shop-add-btn:hover {
    background: var(--shop-accent);
}

/* --- Load More Button --- */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.btn-load-more {
    background: #fff;
    color: var(--shop-primary);
    border: 2px solid var(--shop-primary);
    padding: 12px 35px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background: var(--shop-primary);
    color: #fff;
}

.btn-load-more:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
    background: #fff;
}

/* --- Toast Notification --- */
.toast-notification {
    position: fixed;
    top: 30px;
    right: -350px; /* Hidden by default */
    background: #fff;
    color: var(--shop-text);
    padding: 15px 20px;
    border-radius: var(--shop-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--shop-secondary);
}

.toast-notification.show {
    right: 30px;
}

.toast-icon {
    color: var(--shop-secondary);
    font-size: 20px;
}

#toast-message {
    font-size: 14px;
    font-weight: 500;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .shop-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-right {
        width: 100%;
        justify-content: space-between;
    }
    .shop-product-grid {
        grid-template-columns: 1fr;
    }
    .shop-hero {
        height: 220px;
    }
    .shop-hero-content h1 {
        font-size: 32px;
    }
    .toast-notification.show {
        right: 15px;
        left: 15px;
        top: 20px;
        justify-content: center;
    }
}