/* ============================================
   OMAN PROMO — Frontend Visual Identity v1.1
   Updated: 2026-03-23
   ============================================ */

/* --- Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* ─────────────────────────────────────────
   1. GLOBAL — White background, Inter font
   NOTE: No !important on font-family to
   avoid breaking icon fonts (czi-*, tio-*, fi-)
───────────────────────────────────────── */
body,
html {
    background-color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}
[dir="rtl"],
:lang(ar) {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
}

/* Explicitly restore icon font families (never inherit body font) */
[class^="czi-"], [class*=" czi-"] {
    font-family: "sixvalley-icons" !important;
}
[class^="tio-"], [class*=" tio-"] {
    font-family: "The-Icon-of" !important;
}
/* FA5 local — enforce correct font families, never let body font bleed in */
.fa, .fas, .far, .fal {
    font-family: "Font Awesome 5 Free" !important;
}
.fab {
    font-family: "Font Awesome 5 Brands" !important;
}

/* ─────────────────────────────────────────
   2. HEADER — Pure white, clean shadow
───────────────────────────────────────── */
.noon-header,
.noon-navbar,
.navbar-sticky {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f0f0f0;
}

/* ─────────────────────────────────────────
   3. LOGO
───────────────────────────────────────── */
img.noon-logo {
    height: 50px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block;
}

/* ─────────────────────────────────────────
   4. SEARCH BAR — Amazon-style prominent
───────────────────────────────────────── */
.noon-search-form .input-group {
    border: 2px solid #d6204b;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: none !important;
    transition: box-shadow 0.2s ease;
}
.noon-search-form .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(214, 32, 75, 0.15) !important;
}
.noon-search-form .noon-search-input {
    border: none !important;
    box-shadow: none !important;
    font-size: 14px;
    height: 46px;
    padding: 10px 16px !important;
    background: #fff;
}
.noon-search-form .noon-search-input:focus {
    outline: none;
    box-shadow: none !important;
}
.noon-search-form .noon-search-btn {
    background-color: #d6204b !important;
    border: none !important;
    color: #fff !important;
    padding: 0 20px !important;
    border-radius: 0 !important;
    height: 46px;
    min-width: 50px;
    transition: background-color 0.2s ease;
}
.noon-search-form .noon-search-btn:hover {
    background-color: #b71a3e !important;
}

/* ─────────────────────────────────────────
   5. PRIMARY COLOR — Buttons, links, prices
───────────────────────────────────────── */
.btn-primary,
.btn--primary {
    background-color: #d6204b !important;
    border-color:     #d6204b !important;
    color:            #ffffff !important;
    border-radius:    6px !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary:hover,
.btn--primary:hover {
    background-color: #b71a3e !important;
    border-color:     #b71a3e !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(214, 32, 75, 0.3) !important;
}
.btn-primary:active,
.btn--primary:active {
    transform: translateY(0);
}
.btn-outline-primary {
    color:         #d6204b !important;
    border-color:  #d6204b !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
}
.btn-outline-primary:hover {
    background-color: #d6204b !important;
    color:            #ffffff !important;
    box-shadow: 0 4px 12px rgba(214, 32, 75, 0.25) !important;
}

/* All buttons: slight rounding + targeted transition (NOT "all" — avoids layout thrashing) */
.btn {
    border-radius: 6px !important;
    transition: background-color 0.2s ease, border-color 0.2s ease,
                color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

/* Links: only transition color, not layout properties */
a {
    transition: color 0.2s ease;
}

/* Form inputs: brand focus ring */
.form-control:focus {
    border-color: rgba(214, 32, 75, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(214, 32, 75, 0.08) !important;
    outline: none !important;
}

/* Links */
a.text-primary,
.text-primary,
.web-text-primary,
.text-base { color: #d6204b !important; }

/* Price tags */
.product-price,
.__discount-price,
.card-price,
.offer-price { color: #d6204b !important; }

/* ─────────────────────────────────────────
   6. PRODUCT CARDS — Shadows & Hover
───────────────────────────────────────── */
.card,
.product-card,
.product-single-card {
    border-radius: 10px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.card:hover,
.product-card:hover,
.product-single-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09) !important;
    border-color: #e8e8e8 !important;
}

/* ─────────────────────────────────────────
   7. CATEGORY ICONS — Flat circle (Noon)
───────────────────────────────────────── */
.category-mihrab-arch {
    background:    #f5f5f5 !important;
    border:        1.5px solid #e8e8e8 !important;
    box-shadow:    none !important;
    border-radius: 50% !important;
    width:         90px !important;
    height:        90px !important;
    top:           50% !important;
    left:          50% !important;
    transform:     translate(-50%, -50%) !important;
    transition:    background 0.2s ease, border-color 0.2s ease !important;
}
.category-mihrab-arch::before {
    display: none !important;
}
.category-card-noon:hover .category-mihrab-arch {
    background:   #e8f9f9 !important;
    border-color: #00b5ad !important;
}
.category-item-wrapper {
    height: 115px !important;
    width:  110px !important;
}
.category-img-box {
    width:  78px !important;
    height: 78px !important;
}
.category-label-new {
    color:       #333333 !important;
    font-weight: 600 !important;
    font-size:   13px !important;
    font-family: 'Inter', 'Tajawal', sans-serif !important;
}

/* ─────────────────────────────────────────
   8. BANNERS — Rounded corners + breathing room
───────────────────────────────────────── */
.home-section-spacing {
    padding-top:    24px !important;
    padding-bottom: 24px !important;
    margin-bottom:  8px !important;
}
.promo-banner-wrapper,
.footer_banner_img,
.__inline-63 {
    border-radius: 8px !important;
    overflow: hidden;
}
.promotional-banner-slider .owl-item img,
.footer_banner_img {
    border-radius: 8px !important;
}
.container-fluid .row .col-md-6 {
    padding: 6px !important;
}
.container-fluid .row .col-md-6 img {
    border-radius: 8px !important;
}

/* ─────────────────────────────────────────
   9. NAVIGATION — Cleaner dept menu
───────────────────────────────────────── */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10) !important;
    border-radius: 10px !important;
    padding: 8px 0 !important;
    animation: fadeSlideDown 0.15s ease;
}
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dropdown-item {
    padding: 8px 16px !important;
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 14px;
}
.dropdown-item:hover {
    background-color: #fff5f7 !important;
    color: #d6204b !important;
}

/* ─────────────────────────────────────────
   10. FOOTER — Pure white redesign
───────────────────────────────────────── */
.noon-footer-main {
    background: #ffffff !important;
    color: #333 !important;
    border-top: 1px solid #f0f0f0;
}
.noon-footer-main h6 {
    color: #111111 !important;
    border-bottom-color: #f0f0f0 !important;
}
.noon-footer-main .contact-item,
.noon-footer-main .contact-value {
    color: #555555 !important;
}
.noon-footer-main .contact-label {
    color: #999999 !important;
}
.noon-footer-main .footer-list a {
    color: #666666 !important;
}
.noon-footer-main .footer-list a:hover {
    color: #d6204b !important;
}
.noon-footer-main .social-btn {
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.noon-footer-main .social-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}
/* Newsletter input on white bg */
.noon-newsletter-box input {
    background: #f7f7f7 !important;
    border: 1px solid #e8e8e8 !important;
    color: #333 !important;
}
.noon-newsletter-box input::placeholder {
    color: #999 !important;
}
.noon-newsletter-box .input-group {
    border: 1px solid #e8e8e8 !important;
}

/* Bottom bar */
.noon-footer-bottom-bar {
    background: #f7f7f7 !important;
    border-top: 1px solid #eeeeee;
}

/* Rankings section */
.noon-rankings-section {
    background:    #f7f8fa !important;
    border-radius: 12px;
    margin:        0 12px;
}

/* ─────────────────────────────────────────
   11. POWERED BY — "Across Technologies"
   (styled via CSS, no blade change)
───────────────────────────────────────── */
.partner-label {
    color: #888888 !important;
    font-size: 10px !important;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   CRITICAL FIX v1.2 — 2026-03-23
   Root cause: noon-navbar was red with white
   icons. Changed to grey/white but icon colors
   still forced #fff !important — must override.
═══════════════════════════════════════════ */

/* ── Top bar: light grey (Amazon/Noon style) ── */
.noon-navbar {
    background-color: #f7f8fa !important;
    border-bottom:    1px solid #e8e8e8 !important;
    box-shadow:       none !important;
    padding:          8px 0 !important;
}
.noon-header {
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ── Override forced #fff !important from custom.css ── */
.noon-navbar .noon-tool-link,
.noon-navbar .noon-auth-link {
    color: #333333 !important;
    font-weight: 600 !important;
}
.noon-navbar .noon-tool-link:hover,
.noon-navbar .noon-auth-link:hover {
    color: #d6204b !important;
}
.noon-navbar .noon-delivery-info {
    color: #555555 !important;
}
.noon-navbar .noon-small-text  { color: #888888 !important; opacity: 1 !important; }
.noon-navbar .noon-bold-text   { color: #222222 !important; }
.noon-navbar .noon-divider     { background-color: #dddddd !important; }

/* ── Override Bootstrap text-white inside navbar ── */
.noon-navbar .text-white,
.noon-navbar small.text-white,
.noon-navbar span.text-white { color: #333333 !important; }

/* ── Cart text & total ── */
.noon-navbar .cart-total-price,
.noon-navbar .navbar-tool-text small,
.noon-navbar .navbar-tool-text span { color: #333333 !important; }

/* ── Wishlist & cart icons ── */
.noon-navbar .navbar-tool-icon {
    color:     #333333 !important;
    font-size: 22px;
    transition: color 0.2s ease;
}
.noon-navbar .navbar-tool-icon:hover { color: #d6204b !important; }

/* ── Hamburger / mobile menu trigger ── */
.noon-navbar .noon-mobile-menu-trigger,
.noon-navbar .czi-menu { color: #333333 !important; font-size: 20px; }

/* ── Search button: keep white icon on red bg ── */
.noon-search-form .noon-search-btn,
.noon-navbar .noon-search-form .noon-search-btn {
    background-color: #d6204b !important;
    color:            #ffffff !important;
}
.noon-search-form .noon-search-btn i,
.noon-navbar .noon-search-form .noon-search-btn i,
.noon-search-form .noon-search-btn .czi-search {
    color: #ffffff !important;
}

/* ── Bottom category nav ── */
.noon-bottom-nav {
    background-color: #ffffff !important;
    border-bottom:    2px solid #eeeeee !important;
    box-shadow:       0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

/* ── Language globe icon ── */
.noon-navbar .tio-globe,
.noon-navbar [class^="tio-"],
.noon-navbar [class*=" tio-"] {
    color: #444444 !important;
}

/* ── Navbar tool badge (cart/wishlist count) ── */
.noon-navbar .navbar-tool-label {
    background-color: #d6204b !important;
    color:            #ffffff !important;
}

/* ─────────────────────────────────────────
   12. CATEGORY CAROUSEL — #oman_promo_cat_slider
   NOTE: Do NOT set width on .owl-item or .owl-stage —
   Owl Carousel calculates and sets those via JS.
   Only control positioning, arrows, and overflow here.
───────────────────────────────────────── */

.noon-category-slider-wrap {
    position: relative;
    overflow: visible;
}

/* ── Category Carousel Arrows — ID-scoped, highest specificity ── */

/* The carousel container must be position:relative for absolute children */
#oman_promo_cat_slider {
    position: relative;
}

#oman_promo_cat_slider .owl-nav {
    display: block !important;
    position: absolute;
    top: 30% !important;
    width: 100%;
    z-index: 999;
}
#oman_promo_cat_slider .owl-nav button.owl-prev,
#oman_promo_cat_slider .owl-nav button.owl-next {
    position: absolute !important;
    background: #ffffff !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    color: #d6204b !important;
    font-size: 24px !important;
    border: 1px solid #ddd !important;
}
#oman_promo_cat_slider .owl-nav button.owl-prev { left: -25px !important; }
#oman_promo_cat_slider .owl-nav button.owl-next { right: -25px !important; }

/* Allow arrows to bleed outside the wrapper */
.noon-category-section     { overflow: visible !important; }
.noon-category-slider-wrap { overflow: visible !important; padding: 0 15px; }

/* Hover: teal circle (Noon-style) */
.category-card-noon:hover .category-mihrab-arch {
    background:   #e8f9f9 !important;
    border-color: #00b5ad !important;
}

/* Hide arrows on mobile */
@media (max-width: 480px) {
    #oman_promo_cat_slider .owl-nav { display: none !important; }
}
