/* =========================================================================
   SHOP PAGE V2: Light Desert Oasis Aesthetic
   ========================================================================= */

/* --- Page Header --- */
.page-header {
    background: url('../images/banners/shop-eng.png');
    background-size: cover;
    background-position: center;
    min-height: 450px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    font-family: var(--font-primary);
    font-size: 52px;
    font-weight: 300; /* Lighter font weight for minimal look */
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* --- Shop Controls (Top Bar) --- */
.shop-content {
    padding: 60px 0 100px;
    background: var(--white);
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Very faint divider */
    flex-wrap: wrap;
    gap: 20px;
}

/* Horizontal Filter Pills */
.horizontal-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 10px 24px;
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 30px; /* Pill shape */
    color: var(--text-light);
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.filter-pill:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.filter-pill.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(12, 77, 54, 0.15); /* Soft glowing shadow */
}

/* Modern Select Dropdown */
.modern-select {
    position: relative;
    min-width: 200px;
}

.modern-select select {
    width: 100%;
    padding: 12px 40px 12px 20px;
    background: var(--white);
    border: none;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-bottom: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.modern-select select:focus {
    outline: none;
    border-color: var(--secondary-gold);
}

.select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 12px;
}

/* --- Results Info --- */
.results-info {
    margin-bottom: 30px;
}

.results-info p {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.results-info span {
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Products Grid Modern --- */
.products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 30px;
    margin-bottom: 60px;
}

/* --- Product Card Minimal --- */
.product-card-minimal {
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Image Container */
.product-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
    aspect-ratio: 4/5;
    background: var(--sand);
}

.product-image-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-minimal:hover .product-image-bg {
    transform: scale(1.03); /* Subtle scale of the background */
}

/* The physical product image element */
.product-img {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 2;
    mix-blend-mode: multiply; /* Blends white image backgrounds beautifully into the sand color */
}

.product-card-minimal:hover .product-img {
    transform: translateY(-8px) scale(1.05); /* Image floats up slightly */
}

/* Badges */
.product-badges-modern {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
}

.product-badges-modern span {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-bestseller {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.badge-new {
    background: var(--primary-green);
    color: var(--white);
}

/* Floating Wishlist Button */
.btn-floating-wishlist {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    z-index: 3;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.product-card-minimal:hover .btn-floating-wishlist {
    opacity: 1;
    transform: translateY(0);
}

.btn-floating-wishlist:hover {
    color: var(--error);
}

.btn-floating-wishlist.active-wishlist {
    opacity: 1;
    color: var(--error);
    transform: translateY(0);
}

/* Overlay Add to Cart Action */
.product-overlay-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0));
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 3;
    display: flex;
    justify-content: center;
}

.product-card-minimal:hover .product-overlay-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-overlay {
    width: 100%;
    padding: 14px;
    background: var(--text-dark);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-overlay:hover {
    background: var(--primary-green);
}

/* Information Area */
.product-info-minimal {
    padding: 0 10px;
}

.product-category-text {
    font-size: 12px;
    color: var(--secondary-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.product-info-minimal h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc-short {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-minimal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-current {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.price-subscription-text {
    font-size: 13px;
    color: #64748b;
}

.price-old {
    font-size: 14px;
    color: #94a3b8;
    text-decoration: line-through;
}

/* --- Load More Button Modern --- */
.load-more-modern {
    text-align: center;
    margin-top: 20px;
}

.btn-minimal-load {
    background: transparent;
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-minimal-load:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .shop-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modern-select {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 40px;
    }

    .products-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 30px 20px;
    }

    .horizontal-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }

    .horizontal-filters::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    .filter-pill {
        white-space: nowrap;
    }
    
    .product-overlay-actions, 
    .btn-floating-wishlist {
        opacity: 1; /* Always show buttons on mobile */
        transform: translateY(0);
    }
}

/* --- Subscription Banner Modern --- */
.subscription-banner-modern {
    background: var(--light-beige);
    padding: 80px 0;
    margin-top: 60px;
}

.banner-content-modern {
    background: var(--white);
    border-radius: 32px;
    padding: 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    flex-wrap: wrap;
    gap: 40px;
}

.banner-text-modern {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.banner-text-modern h3 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-green);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.banner-text-modern p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.banner-cta-modern {
    min-width: 250px;
}

.btn-minimal-dark {
    display: inline-block;
    padding: 16px 32px;
    background: var(--text-dark);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn-minimal-dark:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .banner-content-modern {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
}