/* ============================================================
   MAHHALCOM THEME REDESIGN - Header, Footer & General Styling
   ============================================================ */

/* ============================================================
   COLOR VARIABLES
   ============================================================ */
:root {
    --mahhal-primary: #f5a623;
    --mahhal-primary-hover: #e09515;
    --mahhal-dark-teal: #001f2b;
    --mahhal-dark-teal-light: #002d3f;
    --mahhal-gold: #f5a623;
    --mahhal-white: #ffffff;
    --mahhal-light-gray: #f5f5f5;
    --mahhal-text-light: #b0c4ce;
    --mahhal-text-white: #ffffff;
}

/* ============================================================
   HEADER STYLING
   ============================================================ */

/* Main header background - dark teal */
.whb-header .whb-general-header {
    background-color: var(--mahhal-dark-teal) !important;
}

/* Header bottom bar - white background */
.whb-header .whb-header-bottom {
    background-color: var(--mahhal-white) !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

/* Search bar styling */
.whb-header .woodmart-search-form {
    max-width: 600px;
}

.whb-header .woodmart-search-form input[type="text"],
.whb-header .wd-search-form input[type="text"] {
    background-color: var(--mahhal-white) !important;
    border: 2px solid var(--mahhal-primary) !important;
    border-radius: 25px !important;
    padding: 8px 20px !important;
    font-size: 14px !important;
    color: #333 !important;
}

.whb-header .woodmart-search-form .searchsubmit,
.whb-header .wd-search-form .wd-search-btn {
    background-color: var(--mahhal-primary) !important;
    color: var(--mahhal-white) !important;
    border-radius: 0 25px 25px 0 !important;
}

/* Header icons color - white on dark background */
.whb-general-header .wd-tools-element > a,
.whb-general-header .wd-header-wishlist > a,
.whb-general-header .wd-header-compare > a,
.whb-general-header .wd-header-my-account > a,
.whb-general-header .wd-header-cart > a,
.whb-general-header .wd-tools-element .wd-tools-count {
    color: var(--mahhal-white) !important;
}

/* Cart price color */
.whb-general-header .wd-header-cart .wd-cart-total {
    color: var(--mahhal-primary) !important;
}

/* Browse Categories button styling */
.whb-header-bottom .wd-header-cats {
    background-color: var(--mahhal-primary) !important;
    border-radius: 5px !important;
}

.whb-header-bottom .wd-header-cats .menu-opener {
    color: var(--mahhal-white) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

/* Mega menu styling */
.whb-header-bottom .wd-header-nav .wd-nav > li > a {
    color: #333 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
}

.whb-header-bottom .wd-header-nav .wd-nav > li > a:hover {
    color: var(--mahhal-primary) !important;
}

/* ============================================================
   FOOTER STYLING
   ============================================================ */

/* Footer main background */
.footer-container,
.woodmart-footer,
.wd-footer,
footer.footer-container {
    background-color: var(--mahhal-dark-teal) !important;
    color: var(--mahhal-text-light) !important;
}

/* Footer HTML block content styling */
.footer-container .main-footer {
    padding: 40px 0 !important;
}

/* Footer widget titles / section headings */
.footer-container .widget-title,
.footer-container h5.widget-title,
.wd-footer .widget-title,
.footer-container .elementor-heading-title,
.footer-container h4,
.footer-container h5,
.footer-container h6 {
    color: var(--mahhal-primary) !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 15px !important;
}

/* Company Info heading */
.footer-container .elementor-widget-heading .elementor-heading-title {
    color: var(--mahhal-primary) !important;
}

/* Footer links */
.footer-container .widget_nav_menu a,
.footer-container .menu li a,
.wd-footer a,
.footer-container .elementor-widget a,
.footer-container a {
    color: var(--mahhal-text-light) !important;
    transition: color 0.3s ease !important;
}

.footer-container .widget_nav_menu a:hover,
.footer-container .menu li a:hover,
.wd-footer a:hover,
.footer-container .elementor-widget a:hover,
.footer-container a:hover {
    color: var(--mahhal-primary) !important;
}

/* Footer text */
.footer-container p,
.footer-container .textwidget p,
.footer-container .elementor-widget-text-editor p,
.footer-container .elementor-text-editor p {
    color: var(--mahhal-text-light) !important;
    line-height: 1.7 !important;
}

/* Footer list items */
.footer-container ul li {
    color: var(--mahhal-text-light) !important;
}

/* Copyright bar */
.copyrights-wrapper,
.wd-copyrights {
    background-color: var(--mahhal-dark-teal) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--mahhal-text-light) !important;
    padding: 15px 0 !important;
}

.copyrights-wrapper a,
.wd-copyrights a {
    color: var(--mahhal-text-light) !important;
}

/* Footer social icons - circular style */
.footer-container .elementor-social-icons-wrapper a,
.footer-container .elementor-widget-social-icons a,
.footer-container .wd-social-icons a {
    color: var(--mahhal-white) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 5px 5px 0 !important;
    transition: background-color 0.3s ease !important;
}

.footer-container .elementor-social-icons-wrapper a:hover,
.footer-container .elementor-widget-social-icons a:hover,
.footer-container .wd-social-icons a:hover {
    background-color: var(--mahhal-primary) !important;
}

/* Footer social icons SVG color */
.footer-container .elementor-social-icons-wrapper svg,
.footer-container .elementor-widget-social-icons svg {
    fill: var(--mahhal-white) !important;
}

/* Prefooter area - benefits bar */
.wd-prefooter {
    background-color: var(--mahhal-dark-teal-light) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px 0 !important;
}

/* Prefooter info box text */
.wd-prefooter .wd-info-box .info-box-title,
.wd-prefooter .wd-info-box h4 {
    color: var(--mahhal-white) !important;
    font-size: 16px !important;
}

.wd-prefooter .wd-info-box .info-subtitle,
.wd-prefooter .wd-info-box p {
    color: var(--mahhal-text-light) !important;
}

/* ============================================================
   FOOTER EXTRA BADGES (Huawei, 14 Days Guarantee, Sectigo)
   ============================================================ */
.mahhal-footer-extra-badges {
    background-color: var(--mahhal-dark-teal) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.mahhal-badges-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mahhal-badge-item img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.mahhal-guarantee-badge img {
    max-height: 100px;
}

.mahhal-huawei-badge img {
    max-height: 60px;
    border-radius: 8px;
}

.mahhal-sectigo-secured-badge img {
    max-height: 50px;
}

/* ============================================================
   GENERAL STYLING
   ============================================================ */

/* Primary button color */
.btn-color-primary,
.button.btn-color-primary,
.wd-action-btn.wd-style-text:hover,
.added_to_cart,
.single_add_to_cart_button,
.woocommerce .button.alt,
.woocommerce a.button.alt {
    background-color: var(--mahhal-primary) !important;
    color: var(--mahhal-white) !important;
}

.btn-color-primary:hover,
.button.btn-color-primary:hover,
.single_add_to_cart_button:hover,
.woocommerce .button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: var(--mahhal-primary-hover) !important;
}

/* Sale badge */
.onsale,
.product-label.onsale {
    background-color: var(--mahhal-primary) !important;
}

/* Product hover add to cart */
.wd-add-btn a:hover,
.wd-action-btn:hover {
    color: var(--mahhal-primary) !important;
}

/* Category cards */
.wd-cats .wd-cat-title {
    font-weight: 600 !important;
}

/* Free shipping bar */
.wd-free-shipping-bar,
.woodmart-free-shipping-bar {
    background-color: var(--mahhal-primary) !important;
}

/* Top bar styling */
.whb-top-bar {
    background-color: var(--mahhal-dark-teal) !important;
    font-size: 12px !important;
}

/* Section titles on homepage */
.title-wrapper .liner-continer,
.title-wrapper .title {
    font-weight: 700 !important;
}

/* Popular Categories section */
.wd-cats-carousel .wd-entities-title {
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
}

/* ============================================================
   RTL ADJUSTMENTS
   ============================================================ */
html[dir="rtl"] .whb-header .wd-search-form input[type="text"] {
    border-radius: 25px !important;
}

html[dir="rtl"] .whb-header .wd-search-form .wd-search-btn {
    border-radius: 25px 0 0 25px !important;
}

/* RTL footer adjustments */
html[dir="rtl"] .mahhal-badges-row {
    direction: ltr;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 1024px) {
    .whb-header-bottom .wd-header-cats {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .whb-general-header {
        padding: 10px 0 !important;
    }
    
    .whb-header-bottom {
        display: none !important;
    }
    
    .mahhal-badges-row {
        gap: 20px;
    }
    
    .mahhal-badge-item img {
        max-height: 60px;
    }
    
    .mahhal-guarantee-badge img {
        max-height: 70px;
    }
}

/* ============================================================
   PRODUCT GRID IMPROVEMENTS
   ============================================================ */
.products .product .product-element-top {
    border-radius: 8px !important;
    overflow: hidden !important;
}

.products .product .wd-entities-title a {
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* Price styling */
.price ins .woocommerce-Price-amount {
    color: var(--mahhal-primary) !important;
    font-weight: 700 !important;
}

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
#ht-ctc-chat {
    z-index: 9999 !important;
}

/* ============================================================
   SLIDER / HERO SECTION
   ============================================================ */
.wd-slider .wd-slide-title {
    font-weight: 700 !important;
}

.wd-slider .wd-slide-subtitle {
    color: var(--mahhal-primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

/* Slider navigation dots */
.wd-slider .wd-nav-arrows .wd-btn-arrow {
    background-color: rgba(0, 0, 0, 0.3) !important;
    color: var(--mahhal-white) !important;
}

.wd-slider .wd-nav-arrows .wd-btn-arrow:hover {
    background-color: var(--mahhal-primary) !important;
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.wd-brands .wd-brand {
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    padding: 15px !important;
    transition: box-shadow 0.3s ease !important;
}

.wd-brands .wd-brand:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================================
   FOOTER EXTRA BADGES - IMPROVED POSITIONING
   ============================================================ */
.mahhal-footer-extra-badges {
    background-color: #001f2b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 25px 0 !important;
    margin-top: 0 !important;
}
.mahhal-footer-extra-badges .container {
    max-width: 1222px;
    margin: 0 auto;
    padding: 0 15px;
}
.mahhal-footer-extra-badges .mahhal-badges-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
}
.mahhal-footer-extra-badges .mahhal-badge-item img {
    max-height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
}
.mahhal-footer-extra-badges .mahhal-guarantee-badge img {
    max-height: 100px !important;
}
.mahhal-footer-extra-badges .mahhal-huawei-badge img {
    max-height: 55px !important;
    border-radius: 8px !important;
}
.mahhal-footer-extra-badges .mahhal-sectigo-secured-badge img {
    max-height: 45px !important;
}

/* Fix payment image display */
.wd-footer .elementor-widget-image img[src*="payment"] {
    max-width: 500px !important;
    height: auto !important;
}
