/* =========================================
   STORE PAGE SPECIFIC STYLES
   ========================================= */

/* --- 1. SHOP HEADER & LAYOUT --- */
.shop-header {
    background: transparent;
    /* Transparent to show parallax background from main.css */
    padding: 120px 20px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.shop-hero-content h1 {
    font-size: 3rem;
    color: var(--rose-primary);
    margin-bottom: 10px;
}

.shop-hero-content p {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.shop-container {
    max-width: 1200px;
    margin: 20px auto 80px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 260px 1fr;
    /* Sidebar | Grid */
    gap: 50px;
    position: relative;
    z-index: 2;
}

/* --- 2. INTERACTIVE SIDEBAR --- */
.shop-sidebar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    /* Glassmorphism effect */
    padding: 30px;
    border-radius: 20px;
    height: fit-content;
    border: 1px solid white;
    box-shadow: 0 10px 30px rgba(183, 110, 121, 0.1);
    position: sticky;
    top: 100px;
    /* Sticks when scrolling */
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h3 {
    font-size: 1rem;
    color: var(--rose-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

/* Search Input */
.search-box input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    transition: 0.3s;
    font-family: 'Lato', sans-serif;
    outline: none;
}

.search-box input:focus {
    border-color: var(--rose-primary);
    box-shadow: 0 0 0 3px var(--rose-light);
}

/* Filter Tags (Buttons) */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Lato', sans-serif;
    color: #666;
    font-size: 0.9rem;
}

.filter-tag:hover {
    border-color: var(--rose-primary);
    color: var(--rose-primary);
}

.filter-tag.active {
    background: var(--rose-primary);
    color: white;
    border-color: var(--rose-primary);
    box-shadow: 0 5px 15px rgba(183, 110, 121, 0.3);
}

/* Sort Select */
.custom-select-wrapper select {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 2px solid #eee;
    background: white;
    cursor: pointer;
    outline: none;
    color: var(--text-main);
}

.custom-select-wrapper select:focus {
    border-color: var(--rose-primary);
}


/* --- 3. PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    min-height: 400px;
}

.loading-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 1.2rem;
}

/* --- 4. PRODUCT CARD --- */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(183, 110, 121, 0.15);
    border-color: #fff0f5;
}

/* Image Area */
.prod-img-box {
    height: 260px;
    overflow: hidden;
    position: relative;
    background: #fffcfc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .prod-img-box img {
    transform: scale(1.1);
}

/* Hover Overlay (Quick View) */
.quick-view-trigger {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.product-card:hover .quick-view-trigger {
    opacity: 1;
}

.qv-btn {
    background: white;
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    transform: translateY(20px);
    transition: 0.3s;
    font-size: 0.9rem;
}

.product-card:hover .qv-btn {
    transform: translateY(0);
}

/* Details Area */
.prod-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prod-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
}

.prod-title {
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 5px 0 15px;
    font-weight: bold;
    line-height: 1.4;
}

.card-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prod-price {
    font-size: 1.2rem;
    color: var(--rose-primary);
    font-weight: bold;
}

/* Add Button (Circle Icon) */
.add-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff0f5;
    color: var(--rose-primary);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.add-btn-icon:hover {
    background: var(--rose-primary);
    color: white;
    transform: rotate(90deg);
}


/* --- 5. QUICK VIEW MODAL --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.quick-view-card {
    background: white;
    width: 800px;
    max-width: 90%;
    height: 500px;
    border-radius: 30px;
    display: flex;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.active .quick-view-card {
    transform: scale(1);
}

/* Modal Content */
.qv-image {
    flex: 1;
    background: #fffcfc;
}

.qv-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qv-details {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #aaa;
    z-index: 10;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.qv-cat {
    color: var(--rose-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: bold;
}

.qv-details h2 {
    font-size: 2.2rem;
    margin: 10px 0;
    color: var(--text-main);
}

.qv-price {
    font-size: 2rem;
    color: var(--rose-primary);
    margin-bottom: 20px;
    font-family: 'Playfair Display';
    font-weight: bold;
}

.qv-desc {
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

.qv-meta {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.add-btn-large {
    background: linear-gradient(135deg, #d4af37, #b76e79);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: bold;
    width: 100%;
}

.add-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(183, 110, 121, 0.3);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
    .shop-container {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        margin-bottom: 30px;
        z-index: 10;
    }

    .quick-view-card {
        flex-direction: column;
        height: auto;
        max-height: 90vh;
        overflow-y: auto;
    }

    .qv-image {
        height: 250px;
    }

    .qv-details {
        padding: 30px;
    }
}

/* Add this to your store.css */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    z-index: 10;
    color: #ccc;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ff6b6b;
}

/* Red heart when active */
.wishlist-btn i {
    font-size: 1.1rem;
}

/* Add this to the bottom of store.css */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}