/* Mobile styles */
@media (max-width: 768px) {
    
	.activenew {
		border-bottom: 3px solid #15803d;
	}

	.activenew>a {
		font-size: 18px !important;
		line-height: 35px !important;
		color: #15803d !important;
	}

	.bg-stone-100 {
		background-color: #f5f5f4 !important;
	}

	.ec-main-slider {
		margin-top: 10% !important;
	}

	.section-title.text-center {
		text-align: left !important;
		margin-left: 63px;
	}

	.ec-title {
		text-align: left !important;
		margin-left: 0 !important;
		display: block;
		width: 100%;
	}
	
	.footer-top {
        flex-direction: column;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        margin-top: -125px;
    }

    #loc_in_bel_text {
        width: 275px;
        margin-left: -33px !important;
    }

    .wp-location-panel.open {
        width: 90vw;
        right: 0;
        /* center panel on small screens */
    }

    .ec-slider {
        height: 250px !important;
        border-radius: 12px;
    }
    
    .ec-main-slider {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 🔍 Search box spacing */
    #search {
        position: static !important;
        width: 100% !important;
        margin-top: 60px !important;
        margin-bottom: 20px !important;
        /* space before banner */
        padding: 0 15px !important;
    }

    /* 🖼️ Banner wrapper */
    .ec-main-slider>.flex-1 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 🖼️ Banner image (FULLY visible, no crop) */
    .ec-slider {
        width: 100% !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* ✅ Key part: show full banner image */
    .ec-slide-item {
        background-size: contain !important;
        /* entire image fits */
        background-repeat: no-repeat !important;
        background-position: center center !important;
        width: 100% !important;
        height: 200px !important;
        min-height: auto !important;
        aspect-ratio: 16 / 9 !important;
        /* maintain shape */
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Overlay lighter (optional) */
    .ec-slide-item .bg-black\/30 {
        background-color: rgba(0, 0, 0, 0.1) !important;
    }

    /* Slide content (if text overlaps, push it down slightly) */
    .ec-slide-content {
        padding: 10px;
        text-align: center;
    }
    
    .all-medicine-sections {
        margin-top: 0 !important;
        padding-top: 5px !important;
        padding-left: 25px !important;
    }
    
    .scrollable-tabs-wrapper {
        padding: 6px;
        gap: 4px;
    }

    .scroll-left,
    .scroll-right {
        display: block;
    }
    
    #wp-suggestions {
        list-style: none;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 75px;
        right: 50px;
        left: auto;
        width: 350px;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        z-index: 9999;
    }

    /* Logo always visible */
    .site-logo,
    .header-logo {
        position: fixed !important;
        top: 10px !important;
        left: 10px !important;
        width: auto !important;
        height: auto !important;
        z-index: 1500 !important;
    }

    /* Header container shouldn't clip children */
    .header-container,
    .header-wrapper {
        overflow: visible !important;
    }

    /* Optional: prevent body scroll while panel is open */
    body.panel-open {
        overflow: hidden;
    }

    /* Header padding */
    .ec-header {
        padding: 8px 0 !important;
    }

    /* Container row alignment */
    .ec-header .row {
        align-items: center !important;
    }

    /* Logo */
    .logo-container {
        margin-left: 0 !important;
        flex: 0 0 auto;
    }

    .logo-container img {
        height: 40px !important;
        margin-right: 10px !important;
    }

    /* Hide desktop menu */
    .ec-main-menu {
        display: none !important;
    }

    /* Hide desktop login buttons */
    .login-signup-buttons {
        display: none !important;
    }

    /* Marquee smaller */
    #wp-location-marquee {
        font-size: 11px !important;
        gap: 30px !important;
    }

    /* Marquee container */
    .ec-header .rounded {
        min-width: auto !important;
        width: 100% !important;
        height: 40px !important;
        margin-top: 5px !important;
    }

    /* Right action area */
    .header-right-actions {
        gap: 80px !important;
    }

    /* Location button */
    .wp-location-icon-btn {
        position: relative !important;
        top: 0 !important;
        right: -40px !important;
        width: 26px !important;
        height: 26px !important;
        margin-left: 0 !important;
    }

    /* Mobile menu toggle */
    #mobile-menu-toggle {
        display: block !important;
        font-size: 26px !important;
        margin-left: 10px !important;
    }

    /* Location Panel */
    #wp-location-panel {
        position: fixed !important;
        top: 10px !important;
        right: 90px !important;
        width: 95% !important;
        max-width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
        padding: 15px !important;
        transform: translateX(100%);
        transition: 0.3s ease;
        z-index: 99999 !important;
    }

    #wp-location-panel.active {
        transform: translateX(0);
    }

    #wp-autocomplete-input {
        font-size: 20px !important;
    }

    /* Close button visible on mobile */
    #wp-close-location {
        display: block !important;
        position: absolute !important;
        right: 28px !important;
        top: -13px !important;
        color: black !important;
    }

    /* Fix drawer width */
    #mobile-menu {
        width: 75% !important;
    }
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .wp-location-panel.open {
        width: 24em;
        /* smaller on tablet */
    }
    
    .wp-gradient-btn {
        display: none;
        /* matches max-l:hidden */
    }
}

@media (max-width: 640px) {
    #mobile-menu-toggle {
        display: block;
    }

    .wp-location-icon-btn {
        margin-right: 30px !important;
    }
    
    .all-medicine-sections {
        margin-top: -174px !important;
        margin-bottom: 1px !important;
        padding-top: 1px !important;
        padding-bottom: 1px !important;
    }
    
    #wp-suggestions {
        list-style: none;
        margin: 0;
        padding: 0;
        position: absolute;
        top: 75px;
        right: 50px;
        left: auto;
        width: 350px;
        background: #fff;
        border-radius: 10px;
        overflow: hidden;
        z-index: 9999;
    }

    .ec-search-group-form {
        margin-top: 60px !important;
        margin-left: -50px !important;
    }

    .search_results {
        margin-left: 85px !important;
    }

    .scrollable-tabs-wrapper {

        margin-left: 12px !important;
    }

    .slider_wrap {
        margin-top: 0px !important;
        margin-left: 0px !important;
    }
}

/* ==============================
FOOTER STYLES
================================= */

.footer {
    max-width: 85rem;
    margin: 0 auto;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    color: #333;
    font-family: sans-serif;
    font-size: 14px;
    border-top: 1px solid #e5e7eb;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    flex: 1 1 100%;
    max-width: 220px;
}

.footer-logo {
    font-weight: bold;
    font-size: 20px;
    color: #000;
    text-decoration: none;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-copy {
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

.footer-links {
    display: flex;
    flex: 3;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #1f2937;
}

.hiring {
    color: #2563eb;
    font-weight: 500;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.language-selector {
    position: relative;
}

.lang-button {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #1f2937;
    cursor: pointer;
    transition: background-color 0.2s;
}

.lang-button:hover {
    background-color: #f9fafb;
}


@media (min-width: 1280px) {
    .container {
        max-width: 1500px !important;
    }
}

/* ==============================
HEADER LOCATION SEARCH BUTTON
================================= */

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

/* Wrapper for icon + input */
.wp-location-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 50;
    /* container above buttons */
}

/* Location icon button */
.wp-location-icon-btn {
    /*background: #007bff;*/
    color: white;
    border: none;
    /*border-radius: 50%;*/
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
    position: relative;
    z-index: 101;
    /* stays above input panel */
}


/* Sliding input panel */
.wp-location-panel {
    position: absolute;
    top: 50%;
    right: 50px;
    /* give space from the icon */
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    transition: width 0.4s ease, opacity 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Open state (when toggled) */
.wp-location-panel.open {
    width: 30em;
    /* same width */
    opacity: 1;
    right: 50px;
    /* keeps panel to the left of icon */
}

/* Input field inside panel */
.wp-location-panel input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    background-color: #fff;
    color: #333;
    box-sizing: border-box;
}

/* Clear button inside input */
.wp-location-panel button.clear-location {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2em;
    color: #999;
    cursor: pointer;
}

/* Google Autocomplete suggestions */
.pac-container {
    z-index: 1100 !important;
    /* ensures autocomplete dropdown appears above everything */
}

/* Optional: hide buttons behind panel */
.login-signup-buttons {
    position: relative;
    z-index: 10;
    /* lower than input panel */
}

.login-signup-buttons {
    display: flex;
    /* make children align in a row */
    gap: 5px;
    /* space between buttons */
    z-index: 10;
    /* keep behind sliding panel */
    align-items: center;
    /* vertically center if needed */
}

/* Gradient Button */
.wp-gradient-btn {
    display: inline-block;
    margin: 0 0.5rem;
    /* mx-2 */
    padding-top: 0.5rem;
    /* 8px */
    padding-bottom: 0.5rem;
    /* 8px */
    padding-left: 2.5rem;
    /* 40px */
    padding-right: 2.5rem;
    /* 40px */
    border-radius: 9999px;
    /* fully rounded */
    /*background: linear-gradient(to right, #47D39C, #3F98BC);*/
    background: linear-gradient(to right, #36eb81, #2772c9);
    color: #fff;
    font-weight: 600;
    opacity: 0.8;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease-in-out;
}

.wp-gradient-btn:hover {
    background: linear-gradient(to right, #2772c9, #36eb81C);
    /* reversed on hover */
    transform: scale(0.95);
    color: #fff;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
        -moz-transform: translateX(100%);
        -webkit-transform: translateX(100%);
    }

    100% {
        transform: translateX(-250%);
        -moz-transform: translateX(-250%);
        -webkit-transform: translateX(-250%);
    }
}

.animate-marquee {
    animation: marquee 20s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

.custom-headline {
    display: none !important;
    /* hidden on small screens */
    font-size: 1.5rem !important;
    /* text-2xl */
    line-height: 2rem !important;
    font-weight: 450 !important;
    /* font-extrabold */
    opacity: 0.9 !important;
    /* opacity-90 */
    margin-bottom: 0.5rem !important;
    /* mb-2 */
    color: #111827 !important;
    /* gray-900 */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol", "Noto Color Emoji" !important;
}

@media (min-width: 1024px) {
    .custom-headline {
        display: block !important;
        font-size: 1.875rem !important;
        /* text-3xl */
        line-height: 2.25rem !important;
    }
}

.custom-subheadline {
    display: none !important;
    opacity: 0.9 !important;
    font-size: 0.875rem !important;
    /* text-sm */
    line-height: 1.25rem !important;
    margin-bottom: 1rem !important;
    /* mb-4 */
    color: #374151 !important;
    /* gray-700 */
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans",
        sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
        "Segoe UI Symbol", "Noto Color Emoji" !important;
}

@media (min-width: 1024px) {
    .custom-subheadline {
        display: block !important;
        font-size: 1rem !important;
        /* text-base */
        line-height: 1.5rem !important;
    }
}

#search-suggestions .product-search-result {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    /* keeps columns consistent */
}

#search-suggestions .product-search-result td {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    vertical-align: middle;
    padding: 6px 8px;
}

.suggest-locatebtn button {
    background-color: #5BD7A8 !important;
    color: #fff !important;
    border: none !important;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.suggest-locatebtn button:hover {
    background-color: #4ac397 !important;
}

#search-suggestions .suggest-title {
    width: 40%;
}

#search-suggestions .suggest-checkbox {
    width: 5%;
    text-align: center;
}

#search-suggestions .suggest-title2 {
    width: 25%;
    text-align: center;
}

#search-suggestions .suggest-locatebtn {
    width: 25%;
    text-align: center;
}

#search-suggestions .suggest-btn {
    font-size: 8px;
    padding: 3px 6px;
    padding-bottom: 10px !important;
    white-space: nowrap;
    text-transform: capitalize !important;
    margin-top: -2px !important;
}

.suggest-title {
    padding-left: 5px !important;
    /* reduces left space */
}

#search-suggestions .suggest-btn {
    background: linear-gradient(90deg, #46C389, #1260BD);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding-bottom: 25px !important;
    padding-right: 10px !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: -2px;
    /* moves button up slightly */
}

.table.product-search-result td.suggest-title a {
    display: inline-block;
    margin-left: -5px;
    /* shifts the text left slightly */
}

.suggest-btn:hover {
    background: linear-gradient(90deg, #1260BD, #46C389);
    transform: scale(1.05);
}

#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* 🔥 same width as the input box */
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    z-index: 50;
    overflow: hidden;
    margin-top: 4px;
    /* small gap below input */
}

.ec-slider {
    overflow: hidden;
}

.ec-slider .swiper-wrapper {
    display: flex;
}

.ec-slider .swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
    border-radius: 16px;
}

.ec-slider,
.ec-slide-item {
    border-radius: 16px;
    overflow: hidden;
}

/* added for cards width height*/
#mobile-menu-toggle {
    display: none;
}

.all-medicine-sections {
    margin-top: -30px !important;
    /* Moves all sections upward */
    position: relative;
    z-index: 1;
}

/* added for cards height and width*/
.ec-slider .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.ec-slider.swiper-container {
    width: 100% !important;
    flex-shrink: 0;
}

.swiper-wrapper {
    width: 100% !important;
}

.swiper-slide {
    width: 100% !important;
}

ec-slide-content {}

.ec-main-slider {
    overflow: hidden;
}

/* =========================
SCROLLABLE TAB BAR
========================= */
.scrollable-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    background: #fff;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    gap: 8px;
    z-index: 9;
    transition: box-shadow 0.3s ease, top 0.3s ease, position 0.3s ease;
}

/* Sticky behavior under header */
.scrollable-tabs-wrapper.fixed {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--tab-fixed-top, 70px);
    /* dynamically set in JS */
    z-index: 9999;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

/* Tabs container */
.tabs-container {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.all-medicine-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.all-medicine-tabs .nav-item {
    flex: 0 0 auto;
}

.all-medicine-tabs .nav-link {
    display: inline-block;
    white-space: nowrap;
    padding: 8px 14px;
    border-radius: 20px;
    background-color: #f8f8f8;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.all-medicine-tabs .nav-link.active {
    background: linear-gradient(135deg, #3ec6f2, #49e393);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Scroll buttons */
.scroll-left,
.scroll-right {
    display: none;
    z-index: 10;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin: 0 4px;
    transition: opacity 0.3s;
}

/* Scrollbar styling */
.tabs-container::-webkit-scrollbar {
    height: 6px;
}

.tabs-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

@media (min-width: 1024px) {
    .all-medicine-tabs {
        gap: 4px;
        justify-content: center;
    }

    .all-medicine-tabs .nav-link {
        padding: 6px 10px;
        font-size: 0.95rem;
    }
}


.wp-location-panel {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.ec-slider,
.ec-slider .swiper-wrapper,
.ec-slider .swiper-slide {
    width: 100% !important;
}

#wp-suggestions {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 75px;
    right: 140px;
    left: auto;
    width: 400px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    z-index: 9999;
}


#wp-suggestions .wp-suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

#wp-suggestions .wp-suggestion-item:last-child {
    border-bottom: none;
}

#wp-suggestions .wp-suggestion-item:hover {
    background: #f2f6ff;
    color: #1a73e8;
}

#wp-suggestions .fa-map-marker-alt {
    color: #1a73e8;
    margin-right: 8px;
}

/* added */
/* 🔵 Smooth blue input slide effect */
#wp-location-panel {
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(30px);
    display: none;
}

/* when visible */
#wp-location-panel.active {
    display: flex !important;
    opacity: 1;
    transform: translateX(0);
}

/* Input styling */
#wp-autocomplete-input {
    background: #fff;
    border: none;
    outline: none;
    border-radius: 50px;
    padding-right: 16px !important;
    padding-left: 8px;
    font-size: 14px;
    flex-grow: 1;
}

/* Confirm button */
#wp-location-confirm {
    border-radius: 50px;
    padding: 8px 14px;
    background: #fff;
    color: #004080;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

#wp-location-confirm:hover {
    background: #e6e6e6;
}

#wp-suggestions li {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f2f2f2;
}

#wp-suggestions li:hover {
    background: #f7f9fc;
}

/* ================================
MOBILE HEADER / LOGO / SEARCH FIX
=================================== */

#wp-location-toggle {
    margin-left: auto;
    /* right-align */
    display: flex;
    align-items: center;
    z-index: 1000;
    /* make sure it’s above other elements */
}

@media (min-width: 640px) {
    #wp-location-toggle {
        margin-left: 50px;
        /* desktop spacing */
    }
}

#change_addr {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.slider_wrap {
    margin-top:120px;
}
.ec-search-group-form {
    height:70px  !important; 
}