/*
 Theme Name: Hello Elementor Child
 Theme URI: https://www.icoderzsolutions.com
 Description: A child theme for the Hello Elementor theme.
 Author: iCoderz Solutions
 Author URI: https://www.icoderzsolutions.com
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-elementor-child
*/

.mobile_menu .find_store_btn a.hfe-menu-item {
    background: var(--e-global-color-accent) !important;
    font-family: var( --e-global-typography-accent-font-family), Sans-serif !important;
    font-size: var(--e-global-typography-accent-font-size) !important;
    font-weight: var( --e-global-typography-accent-font-weight) !important;
    line-height: var(--e-global-typography-accent-line-height) !important;
    color: var(--e-global-color-e2448e6) !important;
    border-radius: 14px 14px 14px 14px !important;
    padding: 5px 15px 5px 15px !important;
    max-width: 137.23px !important;
    margin: 20px 15px !important;
}

.light-blue-icon_box {
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.home-review_box {
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.green-icon_box .elementor-icon-box-title {
    margin: 0 !important;
}

.accordion_faqs .e-n-accordion-item {
    box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

/* --- DAIRY RANGE SHORTCODE STYLES --- */

.dairy-range-grid { 
    text-align: center; 
    padding: 0;
    background: transparent;
    font-family: var( --e-global-typography-accent-font-family), Sans-serif;
}

.product-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.product-image-container img {
    width: 100%;
    max-width: 100%;
    height: 302px;
    object-fit: cover;
    object-position: top;
}

.product-card {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: white;
    text-align: left;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image-container {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.product-details {
    padding: 20px;
}

.product-title {
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.product-description {
    font-size: 16px;
    color: #6B6B6B;
    line-height: 24px;
    margin: 0 !important;
    min-height: 40px;
}

.full-product-gallery .product-title  {
    min-height: 54px;
}

.full-product-gallery .product-description {
    min-height: 100px;
}

.product-count-display {
    text-align: left;
    font-size: 16px;
    color: #6B6B6B;
    margin-bottom: 20px;
}

.product-pricing-row {
    margin-top: 15px;
    display: block;
    text-align: left;
}

.product-count {
    color: #1E9ED9;
}

.product-price-large {
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    color: #1E9ED9;
}

.product-unit-small {
    font-size: 14px;
    color: #6B6B6B;
    font-weight: 400;
}

/* --- Retailer Finder Layout --- */

.retailer-content-wrap {
    display: flex;
    gap: 50px;
    align-items: flex-start; /* Required so children can use sticky */
}

.retailer-list-container {
    flex: 1 1 63%;
    min-width: 0; /* Prevents flex overflow */
}

/* Sticky map — sticks to viewport top while list scrolls */
.retailer-map-wrap {
    flex: 1 1 37%;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: auto;
}

.retailer-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Map Container for static design (gives required height) */
#retailer-map-container-static {
    height: 700px;
    width: 100%;
    border-radius: 16px;
    background-color: #f0f0f0; /* Light gray background to simulate map area */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 600;
}

.retailer-search-box {
    padding: 0 0 20px 0;
}

#retailer-search-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 16px;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.retailer-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    transition: all 0.5s ease-in-out;
}

.retailer-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.retailer-image-placeholder,
.retailer-image-placeholder img {
    /* Ensure the image block fills the wrapper */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* Smooth zoom effect on hover */
}

.overlay-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.overlay-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s;
    text-align: left;
    flex-direction: column;
    margin: 0 16px;
}

.retailer-hover-overlay {
    position: absolute;
    top: 0;
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    z-index: 2;
}

.retailer-card:hover .retailer-hover-overlay {
    opacity: 1;
    visibility: visible;
}

/* Style for Map Icon Button */
.map-icon-button {
    background-color: #FFF;
    color: #1E9ED9;
    width: 32px;
    border-radius: 50%;
}

/* Style for Order Now Button (can be a secondary color) */
.order-now-button {
    background-color: #FFF;
    color: #1E9ED9;
    width: 32px;
    border-radius: 50%;
}

/* Optional: Icon specific styling */
.overlay-button i {
    font-size: 16px;
}


/* --- 4. HOVER EFFECT --- */

/* When the entire retailer card is hovered */
.retailer-card:hover .retailer-hover-overlay {
    opacity: 1; /* Make overlay fully visible */
    visibility: visible;
}

/* Optional: Add a slight zoom effect to the image on hover */
.retailer-card:hover .retailer-image-placeholder img {
    transform: scale(1.05);
}

.retailer-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.retailer-image-placeholder {
    width: 100%;
    height: 180px;
    flex-shrink: 0;
    position: relative;
}

.retailer-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.retailer-info {
    padding: 16px;
}

.retailer-name {
    font-size: 18px;
    line-height: 27px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 18px;
}

.retailer-address {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #6B6B6B;
    margin: 0 0 5px 0;
}

.retailer-pincode {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #A4632B;
    margin: 0;
}

#retailer-map-container-dynamic {
    min-height: 600px; 
    width: 100%; 
    border-radius: 15px;
}

/* --- Home Page Map Section Styling --- */

#home-map-container-dynamic {
    height: 700px;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 50px;
}

.info-window-peppy {
    padding: 5px;
}

.info-title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 14px;
}

.map-placeholder {
    height: 700px; 
    width: 100%;
    background-color: #e9e9e9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-placeholder-text {
    font-size: 1.5em;
    font-weight: 700;
    color: #555;
    margin-bottom: 5px;
}

.map-placeholder-subtext {
    font-size: 1em;
    color: #888;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .map-placeholder {
        height: 350px; /* Reduce height on mobile */
    }
}

/* =====================================================
   RETAILER PAGINATION
   ===================================================== */

.retailer-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 36px;
    padding-bottom: 8px;
    list-style: none;
}

/* Full reset + explicit sizing to defeat any theme button defaults */
.retailer-pagination .page-btn,
.retailer-pagination .page-btn:not(.active):not(:disabled) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    color: #A4632B !important;
    background-color: #ffffff !important;
    border: 2px solid #A4632B !important;
    border-radius: 10px !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    user-select: none;
    outline: none;
    box-shadow: none !important;
}

.retailer-pagination .page-btn:hover:not(:disabled):not(.active) {
    background-color: #f5e6da !important;
    color: #A4632B !important;
}

.retailer-pagination .page-btn.active {
    background-color: #A4632B !important;
    color: #ffffff !important;
    border-color: #A4632B !important;
    pointer-events: none;
}

.retailer-pagination .page-btn:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background-color: #ffffff !important;
    color: #A4632B !important;
}

/* Prev / Next: slightly wider to fit the arrow glyph */
.retailer-pagination .page-prev,
.retailer-pagination .page-next {
    width: 48px !important;
    font-size: 18px !important;
}

/* --- Responsive Adjustments --- */

@media (max-width: 1179px) {
    .product-grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }
    .retailer-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .retailer-content-wrap {
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .product-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    .product-title {
        font-size: 18px;
    }
    .retailer-content-wrap {
        flex-direction: column;
    }
    /* Map is no longer sticky on mobile — flows naturally below cards */
    .retailer-map-wrap {
        position: static;
        width: 100% !important;
    }
    #retailer-map-container-static {
        height: 500px;
    }
    .retailer-pagination .page-btn,
    .retailer-pagination .page-btn:not(.active):not(:disabled) {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
    }
    .retailer-pagination .page-prev,
    .retailer-pagination .page-next {
        width: 42px !important;
    }
}

@media (max-width: 479px) {
    .product-grid-container {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }
    .full-product-gallery .product-title  {
        min-height: 100%;
    }
    .full-product-gallery .product-description {
        min-height: 100%;
    }
     .retailer-cards-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
    .retailer-image-placeholder {
        height: 240px;
    }
    .retailer-pagination {
        gap: 6px;
    }
}