 /* 1. Root Variables & Reset */
:root {
    /* Al Diwan Color Palette */
    --light-teal: #6d9abf;
    --dark-teal: #1D435F;
    --bg-grey: #F8F9FA;
    --border-light: #EEEEEE;
    --text-main: #212529; /* Slightly darker for better contrast SEO */
    --text-muted: #6c757d;
    --header-font: 'Montserrat', sans-serif;
--whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    /* Mobile-First Fluid Font Scale (Using REM for SEO/Accessibility) */
    --size-h1: 2rem;      /* 32px - Prominent for Product titles */
    --size-h2: 1.5rem;    /* 24px */
    --size-h3: 1.25rem;   /* 20px */
    --size-body: 1rem;    /* 16px - The standard for mobile readability */
    --size-small: 0.675rem; /* 14px - For muted text or breadcrumbs */
    
    /* Standardized Container */
    --container-width: 1350px;
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--header-font);
    color: var(--text-main);
    font-size: var(--size-body);
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased; /* Better font rendering on Mobile Safari */
}

/* Bootstrap Container Override for your specific width */
@media (min-width: 1200px) {
    .container, .container-lg, .container-xl {
        max-width: var(--container-width);
    }
}

/* Typography Hierarchy for SEO */
h1, .h1 { font-size: var(--size-h1); font-weight: 700; color: var(--dark-teal); margin-bottom: 1rem; }
h2, .h2 { font-size: var(--size-h2); font-weight: 600; color: var(--dark-teal); }
h3, .h3 { font-size: var(--size-h3); font-weight: 600; }
p { margin-bottom: 1rem; }

/* Mobile Touch Targets */
a, button {
    text-decoration: none;
    transition: all 0.3s ease;
}

 /* ===============================
   1.  Utility Bar
================================ */
 
.utility-bar {
    background-color: var(--dark-teal);
    padding: 10px 0; /* Slightly more padding for better touch targets */
    font-size: 0.8125rem; /* ~13px */
    color: #ffffff;
}

.utility-left {
    font-weight: 400;
    letter-spacing: 0.5px;
}

.utility-right a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.utility-right a:hover {
    opacity: 0.8;
    color: var(--light-teal);
}

.separator {
    opacity: 0.3;
    margin: 0 10px;
}

/* Ensure icons are slightly larger on mobile for easy tapping */
 @media (max-width: 576px) {
    /* Stack into two rows */
    .utility-bar .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 8px 0;
    }

    .utility-left {
        width: 100%;
        margin-bottom: 6px;
    }

    .utility-right {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 0 !important;
        gap: 8px;
    }

    /* Hide the second phone number and its separator */
    .utility-right a:nth-of-type(2), 
    .utility-right .separator:nth-of-type(1) {
        display: none !important;
    }

    /* Hide the text 'Catalog' but keep the icon */
    /* This targets the Catalog link specifically */
    .utility-right a[href*="Catalog"] {
        font-size: 0; /* Hides the text node */
    }

    /* Bring the icon back to visible size */
    .utility-right a[href*="Catalog"] i {
        font-size: 14px; /* Set your desired icon size */
        margin: 0 !important;
    }
    
    .utility-right a {
        font-size: 13px;
    }
}

 /* ===============================
  2. Main Header
================================ */ 
:root {
    --primary-teal: #1D435F;
    --hover-teal: #2A5C82;
    --text-dark: #333333;
    --text-muted: #717171;
    --bg-light: #F1F4F5;
    --border-color: #E5E8EB;
}

.main-header {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* --- Search Bar UI --- */
.search-wrapper {
    position: relative;
}

.custom-search-group {
    background: var(--bg-light);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.custom-search-group:focus-within {
    background: #fff;
    border-color: var(--primary-teal);
    box-shadow: 0 4px 12px rgba(29, 67, 95, 0.08);
}

.custom-search-group .form-control {
    background: transparent;
    border: none;
    height: 40px;
    padding-left: 20px;
    font-size: 0.95rem;
}

.btn-search {
    background: var(--primary-teal);
    color: #fff !important;
    border-radius: 50px !important;
    padding: 0 22px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
}

.btn-search:hover {
    background: var(--hover-teal);
}

/* --- Right Side Spacing & Components --- */
.header-actions {
    gap: 30px; /* Standardized spacing */
}

.action-link {
    text-decoration: none !important;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease;
}

.icon-wrapper {
    position: relative;
    font-size: 1.3rem;
    color: var(--primary-teal);
    height: 28px;
    display: flex;
    align-items: center;
}

.action-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 4px;
    color: var(--text-muted);
}

.action-link:hover .icon-wrapper {
    transform: translateY(-2px);
}

.v-separator {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -10px;
    background: #E74C3C;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 10px;
    border: 2px solid #fff;
}

 .project-cta-btn {
    text-decoration: none !important;
    background: #25D366;
    color: #fff !important;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.3s ease;

    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.project-cta-btn i {
    font-size: 16px;
}

.project-cta-btn:hover {
    background: #1ebe5d;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* --- Suggestion Dropdown --- */
.suggestion-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1100;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f8f9fa;
    text-decoration: none !important;
    transition: background 0.2s;
}

.suggestion-item:hover { background: #f4f7f9; }

.suggestion-img {
    width: 50px; height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.suggestion-title { font-weight: 600; color: #333; font-size: 0.9rem; margin-bottom: 2px; }
.suggestion-model { font-size: 0.7rem; color: #999; text-transform: uppercase; }
.suggestion-price { font-size: 0.85rem; font-weight: 700; color: var(--primary-teal); margin-top: 2px; }
@media (max-width: 576px) {
    /* Hide the cart action link specifically */
    /* This targets the action-link that contains the cart-count span */
    .header-actions .action-link:has(.cart-count) {
        display: none !important;
    }

    /* OR, if your browser doesn't support :has, use this more general method: */
    /* Target based on order (assuming it's the 1st or 2nd icon) */
    /* .header-actions .action-link:nth-of-type(2) { display: none; } */

    /* Adjust spacing if the header looks empty */
    .header-actions {
        gap: 15px; /* Reduce gap on mobile */
    }
}
  /* ==========================================================================
   3. Navigation & Mega Menu (Complete & Professional)
   ========================================================================== */

/* --- Bottom Nav Main Styles --- */
.bottom-nav { 
    background: #fff; 
    position: relative; 
    border-bottom: 1px solid var(--border-light);
    /* Ensure a consistent height to prevent layout shift */
    min-height: 55px; 
}

/* Desktop Mega Menu Anchor */
.all-categories-wrapper {
    position: relative;
    height: 55px;
    z-index: 1060;
}

.all-cats-trigger {
    background: var(--dark-teal);
    color: #fff;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-family: var(--header-font);
    font-weight: 700;
    font-size: var(--size-small);
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.all-cats-trigger:hover {
    background: #153246; /* Slightly darker depth for professional feel */
}

/* Mega Dropdown Box - Optimized for Content and Responsiveness */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    /* Use max-width for better behavior on various desktop screens */
    width: 1100px; 
    max-width: calc(100vw - 40px); 
    background: #fff;
    display: flex;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    /* Animation: Subtle slide and fade */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.all-categories-wrapper:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Sidebar Menu inside Mega Menu */
.side-menu {
    width: 260px;
    background: var(--bg-grey);
    border-right: 1px solid var(--border-light);
    flex-shrink: 0; /* Keep sidebar from squishing */
}

.side-item {
    padding: 0 !important;
    font-size: var(--size-small);
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}
.side-item-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    text-decoration: none !important;
    color: var(--text-dark); /* Or your primary color */
    width: 100%;
    transition: all 0.2s ease;
}
.side-item-link img {
    margin-right: 12px;
    filter: grayscale(1); /* Optional: makes icons look high-end */
    transition: filter 0.2s;
}

.side-item.active .side-item-link,
.side-item:hover .side-item-link {
    background: #f8f9fa;
    color: var(--primary-teal);
}

.side-item.active img, .side-item:hover img {
    opacity: 1;
}

/* Mega Content Area */
.mega-content { 
    flex: 1; 
    padding: 30px; 
    max-height: 500px; /* Optional: adds scroll if content is too long */
    overflow-y: auto;
}

.content-pane { display: none; }
.content-pane.active { display: block; }

.menu-col h3 {
    font-size: var(--size-body);
    font-family: var(--header-font);
    font-weight: 700;
    color: var(--dark-teal);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.menu-col h3 a { color: inherit; text-decoration: none; }

.menu-col ul { list-style: none; padding: 0; }

.menu-col ul li a {
    font-size: var(--size-small);
    color: var(--text-muted);
    padding: 5px 0;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-col ul li a:hover { 
    color: var(--dark-teal); 
    padding-left: 5px; /* Professional micro-interaction */
}

/* --- Navbar Links & Icons --- */
.navbar-nav {
    list-style: none;
    display: flex;
    flex-direction: row;      /* Force horizontal on desktop */
    flex-wrap: nowrap;        /* CRITICAL: Fixes the double row issue */
    align-items: center;
    gap: 2px;                 /* Tightened for space-saving */
    padding-left: 0;
    margin: 0;
}

.navbar-nav li a {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: var(--size-small);
    font-weight: 600;
    color: var(--dark-teal);
    padding: 4px 6px;        /* Consistent vertical/horizontal padding */
    border-radius: 6px;
    white-space: nowrap;      /* Prevents text from breaking inside links */
    transition: all 0.3s ease;
}

.navbar-nav li a img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;           /* Prevents icons from squishing */
}

.navbar-nav li a:hover {
    background-color: var(--light-teal);
    color: #fff;
}

.navbar-nav li a.active {
    background-color: var(--dark-teal);
    color: #fff;
}

.navbar-nav li a.active img {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   3.2. Mobile Adjustments (Offcanvas & Responsive)
   ========================================================================== */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column;
        flex-wrap: wrap;       /* Allow wrapping if list is long on mobile */
        align-items: flex-start;
        width: 100%;
        gap: 0;
    }

    .navbar-nav li { width: 100%; }

    .navbar-nav li a {
        width: 100%;
        padding: 14px 20px;    /* Larger tap targets for mobile UX */
        border-bottom: 1px solid var(--border-light);
        border-radius: 0;
        font-size: 1rem;
    }
    .main-header .navbar-toggler {
        padding-left: 0;
        font-size: 1.5rem; /* Makes the bars slightly more prominent */
    }
    
    .logo img {
        max-height: 40px; /* Adjusts logo size to fit nicely next to the menu icon */
    }
    .mobile-sub { background-color: var(--bg-grey); } 
    .mobile-sub-sub { background-color: #ffffff; }

    /* Icon Rotation Logic for Mobile Accordions */
    .transition-icon {
        transition: transform 0.3s ease;
        font-size: 0.75rem;
        color: var(--text-muted);
        margin-left: auto;     /* Push arrow to the right edge */
    }

    [aria-expanded="true"] .transition-icon {
        transform: rotate(180deg);
        color: var(--dark-teal);
    }
}

/* Desktop Width Adjustment for smaller screens */
@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav li a {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    .mega-dropdown {
        width: 900px;
    }
}
      
 /* ==========================================================================
  7. Support Section
   ========================================================================== */
:root {
  --light-teal: #6d9abf;
  --dark-teal: #1D435F;
}

.support-cta-row {
  background-color: #f8f9fa;
}

/* The horizontal bar container */
.cta-wrapper {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Text adjustments */
.support-text h2 {
  color: var(--dark-teal);
  font-size: 28px;
}

.support-text p {
  color: #6c757d;
  font-size: 15px;
}

/* Input Styling */
.cta-form-horizontal .form-control {
  padding: 12px 15px;
  background-color: #f1f4f6;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cta-form-horizontal .form-control:focus {
  background-color: #fff;
  border-color: var(--light-teal);
  box-shadow: 0 0 0 4px rgba(109, 154, 191, 0.1);
  outline: none;
}

/* WhatsApp Button styling */
.btn-whatsapp-row {
  background: linear-gradient(135deg, var(--dark-teal), var(--light-teal));
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-whatsapp-row:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 67, 95, 0.2);
}

/* Shine effect on hover */
.btn-whatsapp-row::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-whatsapp-row:hover::after {
  left: 100%;
}

/* Mobile Responsive */
@media (max-width: 991px) {
  .cta-wrapper {
    padding: 30px 20px;
  }
  
  .support-text {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .support-text h2 {
    font-size: 22px;
  }
  
  .cta-wrapper {
    margin: 0 10px;
    border-radius: 15px;
  }
}
  

 /* --- Root Variables --- */
:root {
    --diwan-blue: #1D435F;
    --diwan-accent: #6d9abf;
    --diwan-gray: #f8fafc;
    --text-main: #334155;
    --text-light: #64748b;
}

/* FIX 1: Prevent the body from ever scrolling horizontally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* --- Support Band --- */
.support-band {
    background: #ffffff;
}
.support-card i {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}
.support-card h6 {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--diwan-blue);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.support-card a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}
.support-card a:hover { color: var(--diwan-accent); }

 /* --- Footer Core --- */
.main-footer {
    background-color: var(--diwan-gray);
    color: var(--text-main);
    width: 100%;
    position: relative;
    /* Safety catch for any internal element leaking out */
    overflow-x: hidden; 
}

.footer-logo {
    max-height: 55px;
    height: auto;
}

.footer-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--diwan-blue);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-links li { margin-bottom: 0.7rem; }
.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.88rem;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--diwan-blue);
    padding-left: 4px;
}

/* --- Socials --- */
.footer-socials a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: var(--diwan-blue);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--diwan-blue);
    color: #fff;
    transform: translateY(-3px);
}

/* --- CTA Card Light --- */
.footer-cta-light {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.btn-diwan-primary {
    background-color: var(--diwan-blue);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
}

.btn-diwan-primary:hover {
    background-color: var(--diwan-accent);
    color: #fff;
}

/* --- Mobile App Bar --- */
.mobile-app-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    z-index: 1000;
}

.bar-item {
    text-decoration: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.bar-item i { font-size: 1.25rem; margin-bottom: 3px; }
.bar-item.active { color: var(--diwan-blue); }

/* --- Responsive Fixes --- */
@media (max-width: 991px) {
    body { 
        padding-bottom: 75px;
        /* Prevents the entire page from sliding sideways */
        max-width: 100%;
        overflow-x: hidden;
    }

    .main-footer { 
        text-align: center; 
    }

    /* Reset row margins to prevent the -15px bootstrap bleed */
    .main-footer .row {
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure container doesn't force a width larger than screen */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .footer-cta-light { 
        margin-top: 20px; 
    }
}

.x-small { font-size: 0.75rem; }
/* ===============================
   Mobile Footer Behavior
================================ */

/* Hide desktop footer sections on mobile */
@media (max-width: 991.98px) {
    .support-band,
    .main-footer {
        display: none !important;
    }
}

/* Sticky Mobile Footer */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 65px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

/* Footer Items */
.mobile-footer .footer-item {
    flex: 1;
    text-align: center;
    color: #6d9abf;
    font-size: 12px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Icons */
.mobile-footer .footer-item img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-bottom: 4px;
}

/* Optional: active color effect */
.mobile-footer .footer-item.active span {
    color: #6d9abf;
}
/* Active State */
.mobile-footer .footer-item.active {
    color: #1D435F; /* your brand color */
}

/* Prevent content hiding behind footer */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px;
    }
}
 