/* ==========================================================================
   Artbella Custom Styles (Restored & Consolidated)
   Contains: Mobile Enhancements + Desktop Pink Header + Sticky Header
   ========================================================================== */

/* ============================================
   1. Mobile Styling (Max Width 991px)
   ============================================ */
@media (max-width: 991px) {

    /* Header Background */
    body .header-mobile,
    body .header-mobile-search {
        background: linear-gradient(135deg, #F11B70 0%, #d01560 100%) !important;
        padding: 8px 16px !important;
    }

    body .header-mobile-top .logo img {
        filter: brightness(0) invert(1) !important;
    }

    /* Mobile Search Bar */
    body .header-mobile-search {
        border-radius: 0 !important;
        padding: 12px 16px !important;
    }

    body .header-mobile-search .form-group--icon {
        background: #fff !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        display: flex !important;
        height: 40px !important;
    }

    body .header-mobile-search input.form-control {
        border: none !important;
        height: 40px !important;
        padding: 0 12px !important;
        flex: 1 !important;
    }

    body .header-mobile-search button {
        width: 48px !important;
        min-width: 48px !important;
        height: 40px !important;
        background: #000 !important;
        border: none !important;
        border-radius: 0 8px 8px 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body .header-mobile-search button svg,
    body .header-mobile-search button i {
        color: #fff !important;
        width: 20px !important;
        height: 20px !important;
    }

    /* Hamburger Menu */
    body .mobile-hamburger,
    body #mobileHamburger,
    body .menu-mobile,
    body .toggle--sidebar {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        left: 0 !important;
        width: 40px !important;
        height: 40px !important;
        pointer-events: auto !important;
        z-index: 99999 !important;
    }

    body .mobile-hamburger span {
        background: #FFF !important;
        display: block !important;
        width: 25px !important;
        height: 3px !important;
        margin: 3px 0 !important;
        border-radius: 2px !important;
    }

    /* Bottom Navigation (Modern & Branded) */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        padding: 5px 0 max(5px, env(safe-area-inset-bottom));
        border-top: 1px solid #eee;
    }

    body {
        padding-bottom: 75px;
    }

    .mobile-bottom-nav-icon {
        display: block !important;
        font-size: 20px !important;
        margin-bottom: 2px !important;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-nav-item:active .mobile-bottom-nav-icon {
        transform: scale(0.85);
    }

    .mobile-bottom-nav-label {
        font-size: 11px !important;
        font-weight: 600 !important;
        color: #555 !important;
        font-family: 'Cairo', sans-serif;
        white-space: nowrap;
    }

    .mobile-bottom-nav-item.active .mobile-bottom-nav-label,
    .mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
        color: #F11B70 !important;
    }

    /* Product Page Buttons */
    body .product-button {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin-top: 15px !important;
        margin-bottom: 80px !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body .product-button .product-quantity {
        display: none !important;
    }

    body .product-button .add-to-cart-button {
        flex: 1 !important;
        margin: 0 !important;
        height: 48px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 10px !important;
        background: linear-gradient(135deg, #F11B70 0%, #d01560 100%) !important;
        border: none !important;
        border-radius: 8px !important;
        color: #fff !important;
        opacity: 1 !important;
        visibility: visible !important;
        white-space: nowrap !important;
    }

    body .product-button .add-to-cart-button.btn-black {
        background: linear-gradient(135deg, #F11B70 0%, #d01560 100%) !important;
    }

    body .product-button .add-to-cart-button .svg-icon,
    body .product-button .add-to-cart-button svg {
        display: none !important;
    }

    body .product-button .add-to-cart-button .add-to-cart-text,
    body .product-button .add-to-cart-button span,
    body .product-button .add-to-cart-button .ms-2,
    body button[name="add_to_cart"] span,
    body button[name="checkout"] span {
        color: #ffffff !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: inline-block !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }

    body .product-button .add-to-cart-button * {
        color: #fff !important;
    }

    body .product-price .bb-product-price-text-old,
    body .product-price del {
        text-decoration: line-through !important;
        display: inline-block !important;
        color: #565959 !important;
    }
}

/* ============================================
   2. Desktop Styling (Min Width 992px)
   ============================================ */
@media (min-width: 992px) {

    /* Apply Pink Gradient to Main Header */
    body .header-top,
    body .header-middle,
    body .header-bottom,
    /* Sticky Header Classes */
    body .header-sticky,
    body .header--sticky,
    body header.header-sticky,
    body .header-wrapper.scrolled,
    body .header-content-sticky {
        background: linear-gradient(135deg, #F11B70 0%, #d01560 100%) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: none !important;
    }

    /* Ensure Sticky Box Shadow is subtle */
    body .header-sticky,
    body .header-wrapper.scrolled {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }

    /* Change All Text Colors to White */
    body .header-top a,
    body .header-top span,
    body .header-top .header-info ul li a,
    body .header-middle .header__extra span,
    body .header-middle .header__extra p,
    body .header-middle .header__extra .cart-text .cart-title,
    body .header-middle .header__extra .cart-text .cart-price-total span,
    body .header-bottom .navigation .menu>li>a,
    body .header-bottom .navigation .menu--product-categories .menu__toggle-title,
    body .header-bottom .navigation .header-recently-viewed .recently-title,
    /* Sticky Header Text */
    body .header-sticky a,
    body .header-sticky span,
    body .header-sticky i,
    body .header-sticky svg,
    body .header--sticky a,
    body .header--sticky span,
    body .header-content-sticky a,
    body .header-content-sticky span {
        color: #ffffff !important;
        fill: #ffffff !important;
        stroke: #ffffff !important;
    }

    /* Hover States */
    body .header-top a:hover,
    body .header-bottom .navigation .menu>li>a:hover {
        opacity: 0.8 !important;
        color: #fff !important;
    }

    /* Invert Logo to White */
    body .header-middle .logo img,
    body .header-sticky .logo img,
    body .header--sticky .logo img,
    body .header-content-sticky .logo img {
        filter: brightness(0) invert(1) !important;
    }

    /* Icons to White */
    body .header .svg-icon svg,
    body .header .svg-icon i,
    body .header-middle .header__extra .btn-compare i {
        color: #ffffff !important;
        fill: #ffffff !important;
        stroke: #ffffff !important;
    }

    /* Search Bar Customization */
    body .form--quick-search .form-control {
        background-color: #ffffff !important;
        border: none !important;
        color: #000000 !important;
        border-radius: 4px 0 0 4px !important;
        height: 45px !important;
    }

    body .form--quick-search .form-control::placeholder {
        color: #666 !important;
    }

    body .form--quick-search button {
        background-color: #000000 !important;
        color: #ffffff !important;
        border-radius: 0 4px 4px 0 !important;
        height: 45px !important;
        width: 50px !important;
    }

    body .form--quick-search button svg {
        color: #ffffff !important;
        fill: #ffffff !important;
    }

    /* Menu Dropdowns - Keep White Background */
    body .header .navigation .menu .sub-menu,
    body .language-dropdown {
        background-color: #ffffff !important;
    }

    body .header .navigation .menu .sub-menu li a,
    body .language-dropdown li a span {
        color: #000000 !important;
    }

    /* Active Link Highlighting */
    body .header-bottom .navigation .menu>li.current-menu-item>a {
        font-weight: bold !important;
        border-bottom: 2px solid #fff !important;
    }

    /* Borders Fix */
    body .header-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
}