/* ============================================================
   AD Foods.BD — Premium Header & Footer Custom CSS
   Stack: Elementor Free + UAE (Header Footer Elementor) 2.9.2
   Brand: #1F5E3B (green) | #B8860B (gold) | #1A1A1A (ink)
   Fonts: Cormorant Garamond (headings) | Poppins (body)
   ============================================================ */

/* ---- Google Fonts Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================================
   HEADER — Base Styles
   ============================================================ */

/* HFE Header wrapper */
.hfe-header,
.hfe-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Header section — default white */
.hfe-header .elementor-section,
.hfe-header-wrapper .elementor-section {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E5E0D5;
    transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* Scrolled state: add shadow */
.hfe-header.hfe-sticky-header-scrolled .elementor-section,
.hfe-header-wrapper.scrolled .elementor-section,
body.scrolled .hfe-header .elementor-section {
    background-color: #FFFFFF !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ---- Transparent Header on hero (front page) ---- */
body.home .hfe-header .elementor-section:not(.scrolled-header),
body.home .hfe-header-wrapper .elementor-section:not(.scrolled-header) {
    background-color: transparent !important;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

body.home.page-scrolled .hfe-header .elementor-section,
body.home.page-scrolled .hfe-header-wrapper .elementor-section {
    background-color: #FFFFFF !important;
    border-bottom-color: #E5E0D5;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Transparent header: make text/icons white */
body.home .hfe-header .elementor-nav-menu li a,
body.home .hfe-header .uael-nav-menu__toggle,
body.home .hfe-header .elementor-icon i {
    color: #FFFFFF !important;
}

body.home.page-scrolled .hfe-header .elementor-nav-menu li a,
body.home.page-scrolled .hfe-header .uael-nav-menu__toggle,
body.home.page-scrolled .hfe-header .elementor-icon i {
    color: #1A1A1A !important;
}

/* Header inner: ensure 80px height and flex alignment */
.hfe-header .elementor-container {
    min-height: 80px;
    align-items: center;
}

/* ============================================================
   NAVIGATION MENU — UAE Nav Menu
   ============================================================ */

.hfe-header .uael-nav-menu__layout-horizontal .uael-nav-menu > li > a {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1A1A1A;
    padding: 28px 0;
    margin: 0 14px;
    transition: color 0.25s ease;
    border-bottom: 2px solid transparent;
}

.hfe-header .uael-nav-menu__layout-horizontal .uael-nav-menu > li > a:hover,
.hfe-header .uael-nav-menu__layout-horizontal .uael-nav-menu > li.current-menu-item > a,
.hfe-header .uael-nav-menu__layout-horizontal .uael-nav-menu > li.current-menu-ancestor > a {
    color: #1F5E3B !important;
    border-bottom-color: #B8860B;
}

/* Dropdown submenu */
.hfe-header .uael-nav-menu .sub-menu {
    background: #FFFFFF;
    border-top: 2px solid #1F5E3B;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    padding: 8px 0;
}

.hfe-header .uael-nav-menu .sub-menu li a {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1A1A1A;
    padding: 9px 20px;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: block;
}

.hfe-header .uael-nav-menu .sub-menu li a:hover {
    color: #1F5E3B;
    padding-left: 26px;
    background: #F8F6F0;
}

/* Mobile hamburger toggle */
.hfe-header .uael-nav-menu__toggle {
    color: #1F5E3B !important;
}

.hfe-header .uael-nav-menu__toggle-icon {
    font-size: 22px;
}

/* Mobile off-canvas / dropdown menu */
@media (max-width: 1024px) {
    .hfe-header .uael-nav-menu__layout-horizontal .sub-menu {
        box-shadow: none;
        border-top: none;
        border-left: 2px solid #1F5E3B;
        background: #F8F6F0;
        margin-left: 12px;
    }
}

/* ============================================================
   HEADER ICONS (Search, Wishlist, Cart, Account)
   ============================================================ */

.hfe-header .elementor-column:last-child .elementor-widget-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.hfe-header .elementor-icon i,
.hfe-header .elementor-icon svg {
    color: #1A1A1A;
    font-size: 18px;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.hfe-header .elementor-icon:hover i,
.hfe-header .elementor-icon:hover svg {
    color: #1F5E3B;
    transform: scale(1.1);
}

/* WooCommerce Cart badge */
.hfe-header .uael-woo-cart-wrapper {
    position: relative;
    cursor: pointer;
}

.hfe-header .uael-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #B8860B;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* UAE Search Icon */
.hfe-header .uael-search-wrapper {
    display: flex;
    align-items: center;
}

.hfe-header .uael-search-icon-toggle {
    color: #1A1A1A;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.hfe-header .uael-search-icon-toggle:hover {
    color: #1F5E3B;
}

/* Search form popup */
.hfe-header .uael-search-form__container {
    border: 1px solid #E5E0D5;
    border-radius: 4px;
    overflow: hidden;
}

.hfe-header .uael-search-form__input {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
}

/* ============================================================
   LOGO
   ============================================================ */

.hfe-header .elementor-widget-image img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.hfe-header .elementor-widget-image img:hover {
    opacity: 0.85;
}

/* ============================================================
   FOOTER — Top Section
   ============================================================ */

.hfe-footer .elementor-section:first-child {
    background-color: #1F5E3B !important;
}

/* Footer headings */
.hfe-footer .elementor-heading-title {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
    display: block;
}

/* Footer nav menu (vertical) */
.hfe-footer .uael-nav-menu__layout-vertical .uael-nav-menu > li > a {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    padding: 5px 0;
    border-bottom: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.hfe-footer .uael-nav-menu__layout-vertical .uael-nav-menu > li > a:hover {
    color: #FFFFFF;
    padding-left: 6px;
}

/* Footer social icons */
.hfe-footer .elementor-social-icons-wrapper {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.hfe-footer .elementor-social-icon {
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 50% !important;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hfe-footer .elementor-social-icon:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

.hfe-footer .elementor-social-icon i {
    color: #FFFFFF !important;
    font-size: 13px !important;
}

/* Footer newsletter section */
.hfe-footer .elementor-section:nth-child(2) {
    background-color: #174a2e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer bottom bar */
.hfe-footer .elementor-section:last-child {
    background-color: #0f3d26 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Copyright */
.hfe-footer .uael-copyright-wrapper {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Payment badges */
.hfe-footer .elementor-widget-text-editor span {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    padding: 4px 8px;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */

.adf-whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #FFFFFF !important;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.adf-whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    color: #FFFFFF !important;
    text-decoration: none;
}

.adf-whatsapp-float svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
    flex-shrink: 0;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */

.adf-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9997;
    width: 42px;
    height: 42px;
    background: #B8860B;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.35s ease;
    opacity: 0;
    pointer-events: none;
}

.adf-back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.adf-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(184, 134, 11, 0.45);
}

.adf-back-to-top svg {
    width: 16px;
    height: 16px;
    fill: #FFFFFF;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .hfe-header .elementor-container {
        min-height: 60px;
    }

    .hfe-header .elementor-widget-image img {
        max-height: 40px;
    }

    .hfe-header .elementor-column:last-child .elementor-widget-wrap {
        gap: 14px;
    }

    .adf-whatsapp-float {
        padding: 11px 16px;
        font-size: 12px;
        bottom: 72px;
        right: 16px;
    }

    .adf-back-to-top {
        bottom: 20px;
        right: 16px;
        width: 38px;
        height: 38px;
    }

    /* Footer mobile: stack columns */
    .hfe-footer .elementor-col-30,
    .hfe-footer .elementor-col-17,
    .hfe-footer .elementor-col-18 {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .adf-whatsapp-float .adf-wa-label {
        display: none;
    }

    .adf-whatsapp-float {
        padding: 12px;
        border-radius: 50%;
        width: 46px;
        height: 46px;
        justify-content: center;
    }
}

/* ============================================================
   GENERAL ELEMENTOR OVERRIDES FOR BRAND CONSISTENCY
   ============================================================ */

body {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

h4, h5, h6, .elementor-heading-title {
    font-family: 'Poppins', sans-serif;
}

/* Remove default WooCommerce cart fragments flash */
.added_to_cart.wc-forward {
    display: none !important;
}
