/*  SHOP PAGES CSS */

/* --- HERO BANNER --- */
.shop-hero-banner {
    position: relative;
    height: 350px;
    /* Adjust height as needed */
    /* overflow: hidden;  <-- REMOVED to allow dropdown to spill out */
    margin-top: -1px;
    /* seamless connection to header */
    z-index: 10;
    /* Ensure this section is above the next one */
}

.shop-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Moved here to clip the blurred image */
    z-index: 1;
}

.shop-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: blur(4px);
    /* Creates the blurry background effect */
    transform: scale(1.1);
    /* Prevents blur white edges */
}

.shop-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Slight tint for text readability */
}

.shop-hero-title {
    font-family: "Playfair Display", serif;
    /* Serif font like image */
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: white;
    /* Using your dark brand color */
}

.shop-hero-subtitle {
    font-family: "Playfair Display", serif;
    font-size: 0.9rem;
    color: white;
    margin-bottom: 20px;
}

/* --- SEARCH BAR (IN BANNER) --- */
.shop-search-wrapper {
    width: 100%;
    max-width: 800px;
}

.shop-search-wrapper .input-group {
    background: white;
    border-radius: 50px;
    /* Fully rounded pills */
    padding: 5px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shop-search-wrapper input {
    box-shadow: none !important;
    font-size: 0.9rem;
    font-family: "Playfair Display", serif;
    color: #888;
}

/* --- FILTER BUTTONS --- */
.shop-filters {
    background-color: #FFEAEA;
    /* Main pink background */
}

.btn-filter {
    background-color: white;
    color: #31262A;
    border: none;
    border-radius: 50px;
    /* Pill shape */
    padding: 8px 25px;
    font-family: "Playfair Display", serif;
    /* Or Times New Roman */
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.btn-filter:hover,
.btn-filter.active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    color: #000;
}

/* --- PRODUCT CARDS --- */
.shop-grid {
    background-color: #FFEAEA;
}

.shop-card {
    background: transparent;
    border: none;
    text-align: center;
}

.shop-card-img {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1.1;
}

.shop-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-card:hover .shop-card-img img {
    transform: scale(1.05);
}

.shop-card-title {
    font-family: "Playfair Display", serif;
    font-size: 1.1rem;
    color: #31262A;
    margin-bottom: 5px;
}

.shop-card-price {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    color: #31262A;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shop-hero-title {
        font-size: 2.5rem;
    }

    .shop-search-wrapper {
        width: 90%;
    }
}

/* --- LOCATION SELECTOR (CUSTOM DROPDOWN) --- */
.location-selector-simple {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    margin: 0 auto;
    position: relative;
}

.location-selector-simple .fa-location-dot {
    color: #E68A8A;
    font-size: 1rem;
    flex-shrink: 0;
}

.location-label-simple {
    font-family: "Montserrat", sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Custom Dropdown Styles */
.custom-location-dropdown {
    position: relative;
    flex: 1;
    min-width: 120px;
}

.location-dropdown-trigger {
    border: none;
    background: transparent;
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    font-weight: 500;
    color: #31262A;
    cursor: pointer;
    outline: none;
    padding: 0;
    width: 100%;
    text-align: left;
}

.location-dropdown-trigger:focus {
    outline: none;
}

.location-dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.location-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.location-dropdown-option {
    font-family: "Playfair Display", serif;
    font-size: 0.95rem;
    padding: 12px 20px;
    color: #31262A;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.location-dropdown-option:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.location-dropdown-option:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.location-dropdown-option:hover {
    background-color: #FFEAEA;
    color: #31262A;
}

.location-dropdown-option.selected {
    background: linear-gradient(135deg, #E68A8A 0%, #d47070 100%);
    color: white;
    font-weight: 600;
}

.location-dropdown-option.selected:hover {
    background: linear-gradient(135deg, #d47070 0%, #c96060 100%);
}

.location-selector-simple .fa-chevron-down {
    color: #E68A8A;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.location-selector-simple .fa-chevron-down.active {
    transform: rotate(180deg);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .location-selector-simple {
        max-width: 100%;
        padding: 10px 18px;
        gap: 8px;
    }

    .location-label-simple {
        font-size: 0.6rem;
    }

    .location-dropdown-trigger {
        font-size: 0.9rem;
    }

    .location-dropdown-menu {
        left: 50%;
        right: auto;
        min-width: 200px;
    }

    .location-dropdown-option {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}