/* --- LAYOUT --- */
.shop-container {
    display: flex;
    gap: 3rem;
    padding-top: 0rem !important;
    padding-bottom: 2rem;
    min-height: 100vh;
    background-color: var(--veloura-bg); /* Dark Theme */
    color: #fff;
    padding-right: 2rem;
}

/* --- SIDEBAR (FILTERS) --- */
.shop-sidebar {
    width: 260px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-left: 1rem;
    padding-right: 2rem;
    position: sticky;
    top: 130px; 
    height: calc(100vh - 130px);
    overflow-y: auto;
}

.shop-sidebar::-webkit-scrollbar {
    width: 5px;
}
.shop-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

.close-sidebar { display: none; } 

.filter-group {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1.5rem;
}

.filter-group h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--veloura-soft-red);
}

.filter-group ul {
    list-style: none;
    padding: 0;
}

.filter-group li {
    margin-bottom: 0.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #d1d5db;
    cursor: pointer;
}

.filter-group input[type="radio"],
.filter-group input[type="checkbox"] {
    accent-color: var(--veloura-red);
    width: 16px;
    height: 16px;
}

/* Price Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    width: 70px;
    padding: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 4px;
}

.btn-go {
    background: var(--veloura-red);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-apply-filters {
    margin-top: 1rem;
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-apply-filters:hover {
    background-color: var(--veloura-red);
    border-color: var(--veloura-red);
}

.clear-filters {
    display: block;
    text-align: center;
    color: #9ca3af;
    text-decoration: underline;
    font-size: 0.85rem;
}

/* --- PRODUCT GRID --- */
.shop-content {
    flex: 1;
}

.products-grid {
    display: grid;
    /* 4 Columns Desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Updated Card Styles for Link Behavior */
.shop-product-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Keep text color white */
    cursor: pointer;
}

.shop-product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(185, 28, 28, 0.5); /* Stronger border on hover */
    background: rgba(255,255,255,0.04);
}

.shop-img-wrapper {
    position: relative;
    aspect-ratio: 1/1; 
    overflow: hidden;
    background-color: #000;
}
/* Wishlist icon bottom-right */
.wishlist-btn {
    position: absolute;
    bottom: 12px;      /* 👈 yahin control */
    right: 12px;       /* 👈 yahin control */
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.200);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.25s ease;
}

/* Hover effect */
.wishlist-btn:hover {
    transform: scale(1.08);
}

/* Active (wishlisted) */
.wishlist-btn.active svg {
    stroke: #b91c1c;
    fill: #b91c1c;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.shop-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.shop-product-card:hover img {
    transform: scale(1.08); /* Smoother zoom */
}

.shop-product-info {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.shop-category {
    font-size: 0.65rem;
    color: var(--veloura-soft-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
}

.shop-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
    color: #fff;
    line-height: 1.2;
}

.shop-price-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto; /* Push price to bottom */
}

.price-new { font-weight: bold; color: #fff; font-size: 1rem; }
.price-old { text-decoration: line-through; color: #666; font-size: 0.85rem; }

/* Buttons CSS Removed as requested */

/* --- MOBILE RESPONSIVENESS --- */
.mobile-filter-bar { display: none; }
.sidebar-overlay { display: none; }

@media (max-width: 900px) {
    .shop-container {
        display: block;
        padding-top: 5px;
        padding:0 1.3rem;
    }
    .shop-content{
        padding-top: 3rem;
        /* padding-left: 1.3rem;
        padding-right: 1.3rem; */
    }

    /* Mobile Header for Filters */
    .mobile-filter-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.9rem 1.2rem;
        background: #0f0505;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        position: absolute; 
        top: 112px; 
        left: 0;
        right: 0;
        width: 100%;
        z-index: 98; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    }

    .btn-filter-toggle {
        background: transparent;
        border: 1px solid #fff;
        color: #fff;
        padding: 0.4rem 1rem;
        border-radius: 50px;
        cursor: pointer;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 5px;
    }

    .product-count {
        font-size: 0.8rem;
        color: #9ca3af;
    }

    /* Sidebar becomes Drawer */
    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -100%; 
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #0f0505;
        z-index: 10000;
        padding: 2rem;
        transition: left 0.3s ease;
        border-right: 1px solid var(--veloura-red);
    }

    .shop-sidebar.active { left: 0; }

    .close-sidebar {
        display: block;
        background: none;
        border: none;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
        line-height: 1;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.8);
        backdrop-filter: blur(2px);
        z-index: 9999;
    }
    .sidebar-overlay.active { display: block; }

    /* --- MOBILE GRID (2 Columns) --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 1.3rem; 
        
        /* padding: 0rem; */
        
    }

    .shop-product-card {
        border-radius: 6px;
    }
    
    .shop-img-wrapper {
        aspect-ratio: 1/1; 
    }
    
    .shop-product-info {
        padding: 0.8rem; 
    }

    .shop-title {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        /* Limit title lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.5em; 
    }
}
.is-hidden {
    display: none;
}
/* ============================= */
/* GIFTSET PAGE (NO FILTERS) */
/* ============================= */

.giftset-page {
    display: block;          /* flex hatao */
    padding-right: 0;        /* extra right padding hatao */
    
}
.giftset-page .products-grid{
    gap: 1.5rem;

}

.giftset-page .shop-content {
    max-width: 1200px;       /* same width as product list */
    margin: 0 auto;          /* center align */
}



.giftset-page .shop-sidebar {
    display: none;               /* sidebar full remove */
}


.giftset-page .products-grid {
    grid-template-columns: repeat(4, 1fr);
}
/* ============================= */
/* MOBILE GIFTSET GRID FIX */
/* ============================= */
@media (max-width: 900px) {

    .giftset-page {
        padding-left: 0;
        padding-right: 0;
    }

    .giftset-page .shop-content {
        padding-left: 1.3rem;
        padding-right: 1.3rem;
    }

    .giftset-page .products-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 0;
        padding-right: 0;
        gap: 1.3rem;                 /* same as product list */
    }
     .shop-price-row {
        flex-wrap: wrap;          /*  allow next line */
        row-gap: 4px;
    }

    .price-new {
        font-size: 0.95rem;
        white-space: nowrap;      /* new price kabhi cut na ho */
    }

    .price-old {
        font-size: 0.75rem;
        white-space: nowrap;
    }
}
/* ============================= */
/* GIFTSET PAGE – TABLET / SMALL DESKTOP FIX */
/* ============================= */
@media (min-width: 901px) and (max-width: 1199px) {

    .giftset-page .shop-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

}
