/* ============================================================
   HOME 2 — CUSTOM STYLESHEET
   Prefix: home-2-style-
   Loaded after all theme styles (depends on rtl-style-css).
   Zero reliance on existing theme visual styles.
   ============================================================ */

/* ============================================================
   SECTION 1 — VARIABLES
   ============================================================ */
:root {
    --h2s-navy:         #1a3a5c;
    --h2s-navy-dark:    #0f2741;
    --h2s-red:          #c0392b;
    --h2s-red-hover:    #a93226;
    --h2s-light:        #f5f7fa;
    --h2s-white:        #ffffff;
    --h2s-text:         #333333;
    --h2s-text-muted:   #666666;
    --h2s-border:       #e2e6ea;
    --h2s-shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.08);
    --h2s-shadow-md:    0 4px 18px rgba(0, 0, 0, 0.12);
    --h2s-radius:       6px;
    --h2s-transition:   all 0.25s ease;
}

/* ============================================================
   SECTION 2 — BODY / PAGE WRAP
   ============================================================ */
.home2-body {
    font-family: 'Cairo', 'Readex Pro', Tahoma, sans-serif !important;
    direction: rtl;
    text-align: right;
    background-color: var(--h2s-white);
    margin: 0;
    padding: 0;
}

.home-2-style-page-wrap {
    overflow-x: hidden;
}

/* ============================================================
   SECTION 3 — HEADER
   ============================================================ */
.home-2-style-header {
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* -- Top Bar -- */
.home-2-style-header-topbar {
    background-color: var(--h2s-navy-dark);
    padding: 6px 0;
}

.home-2-style-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-2-style-topbar-phone,
.home-2-style-topbar-phone a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
}

.home-2-style-topbar-phone i {
    color: var(--h2s-red);
    font-size: 14px;
}

.home-2-style-topbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.home-2-style-topbar-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--h2s-transition);
}

.home-2-style-topbar-links a:hover {
    color: var(--h2s-white);
}

.home-2-style-topbar-sep {
    color: rgba(255, 255, 255, 0.3);
}

/* -- Brand Bar -- */
.home-2-style-header-brand {
    background-color: var(--h2s-white);
    padding: 10px 0;
    border-bottom: 1px solid var(--h2s-border);
}

.home-2-style-brand-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.home-2-style-logo {
    flex-shrink: 0;
    display: block;
}

.home-2-style-logo img {
    height: 52px;
    width: auto;
    display: block;
}

.home-2-style-search-wrap {
    flex: 1;
}

.home-2-style-search-form {
    display: flex;
    align-items: center;
    border: 2px solid var(--h2s-border);
    border-radius: 30px;
    overflow: hidden;
    background: var(--h2s-light);
    transition: var(--h2s-transition);
}

.home-2-style-search-form:focus-within {
    border-color: var(--h2s-navy);
}

.home-2-style-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 9px 18px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    color: var(--h2s-text);
    direction: rtl;
    text-align: right;
}

.home-2-style-search-input::placeholder {
    color: var(--h2s-text-muted);
}

.home-2-style-search-btn {
    background: var(--h2s-navy);
    color: var(--h2s-white);
    border: none;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: var(--h2s-transition);
    display: flex;
    align-items: center;
}

.home-2-style-search-btn:hover {
    background: var(--h2s-red);
}

/* Header Actions (cart, user) */
.home-2-style-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.home-2-style-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--h2s-light);
    color: var(--h2s-navy);
    font-size: 18px;
    text-decoration: none;
    transition: var(--h2s-transition);
    border: 1px solid var(--h2s-border);
}

.home-2-style-action-btn:hover {
    background: var(--h2s-navy);
    color: var(--h2s-white);
    text-decoration: none;
}

.home-2-style-cart-count {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--h2s-red);
    color: var(--h2s-white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mini Cart Dropdown */
.home-2-style-cart-wrap {
    position: relative;
}

.home-2-style-cart-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    width: 300px;
    background: var(--h2s-white);
    border: 1px solid var(--h2s-border);
    border-radius: var(--h2s-radius);
    box-shadow: var(--h2s-shadow-md);
    z-index: 1000;
    padding: 0;
    display: none;
}

.home-2-style-cart-wrap.show .home-2-style-cart-dropdown,
.home-2-style-cart-wrap.open .home-2-style-cart-dropdown {
    display: block;
}

.home-2-style-cart-list {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    max-height: 260px;
    overflow-y: auto;
}

.home-2-style-cart-item {
    padding: 8px 15px;
    border-bottom: 1px solid var(--h2s-border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
}

.home-2-style-cart-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--h2s-text);
    font-size: 13px;
    width: 100%;
}

.home-2-style-cart-item a:hover {
    color: var(--h2s-red);
}

.home-2-style-cart-thumb {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--h2s-border);
    flex-shrink: 0;
}

.home-2-style-cart-item-name {
    flex: 1;
    font-size: 12px;
    line-height: 1.4;
}

.home-2-style-cart-item-qty {
    font-size: 12px;
    color: var(--h2s-text-muted);
    direction: ltr;
}

.home-2-style-cart-empty {
    text-align: center;
    padding: 20px;
    color: var(--h2s-text-muted);
    font-size: 13px;
    margin: 0;
}

.home-2-style-cart-footer {
    padding: 12px 15px;
    border-top: 1px solid var(--h2s-border);
    background: var(--h2s-light);
}

.home-2-style-cart-total {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--h2s-text);
    display: flex;
    justify-content: space-between;
}

.home-2-style-cart-actions {
    display: flex;
    gap: 8px;
}

.home-2-style-cart-btn {
    flex: 1;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--h2s-transition);
    display: block;
    font-family: inherit;
}

.home-2-style-cart-btn--outline {
    border: 2px solid var(--h2s-navy);
    color: var(--h2s-navy);
    background: transparent;
}

.home-2-style-cart-btn--outline:hover {
    background: var(--h2s-navy);
    color: var(--h2s-white);
    text-decoration: none;
}

.home-2-style-cart-btn--fill {
    background: var(--h2s-red);
    color: var(--h2s-white);
    border: 2px solid var(--h2s-red);
}

.home-2-style-cart-btn--fill:hover {
    background: var(--h2s-red-hover);
    border-color: var(--h2s-red-hover);
    color: var(--h2s-white);
    text-decoration: none;
}

/* -- Nav Bar -- */
.home-2-style-header-nav {
    background-color: var(--h2s-navy);
    position: relative;
}

.home-2-style-nav-inner {
    display: flex;
    align-items: stretch;
}

/* Categories Button */
.home-2-style-nav-cats {
    position: relative;
    flex-shrink: 0;
}

.home-2-style-cats-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--h2s-red);
    color: var(--h2s-white);
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--h2s-transition);
    height: 100%;
}

.home2-body .home-2-style-cats-btn {
    background: var(--home2-cats-btn-bg, #c0392b) !important;
    border-color: var(--home2-cats-btn-bg, #c0392b);}

.home2-body .home-2-style-cats-btn:hover,
.home2-body .home-2-style-cats-btn[aria-expanded="true"] {
    background: var(--home2-cats-btn-bg, #c0392b) !important;
}

.home-2-style-cats-arrow {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.home-2-style-cats-btn[aria-expanded="true"] .home-2-style-cats-arrow {
    transform: rotate(180deg);
}

.home-2-style-cats-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 160px;
    background: var(--h2s-white);
    border: 1px solid var(--h2s-border);
    border-top: 3px solid var(--h2s-red);
    border-radius: 0 0 var(--h2s-radius) var(--h2s-radius);
    box-shadow: var(--h2s-shadow-md);
    z-index: 500;
}

.home-2-style-cats-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 320px;
    overflow-y: auto;
}

.home-2-style-cats-list li a {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    color: var(--h2s-text);
    text-decoration: none;
    transition: var(--h2s-transition);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.home-2-style-cats-list li a:hover {
    background: var(--h2s-light);
    color: var(--h2s-red);
    padding-right: 22px;
}

/* Main Nav Menu */
.home-2-style-nav-menu {
    flex: 1;
    display: flex;
    align-items: center;
}

.home-2-style-nav-toggler {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--h2s-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
    margin-right: auto;
}

.home-2-style-main-nav {
    width: 100%;
}

/* Nav list override — we style it independently */
.home-2-style-nav-list,
.home-2-style-main-nav .nav.navbar-nav,
.home-2-style-main-nav ul.nav {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap;
    align-items: center;
}

.home-2-style-nav-list > li > a,
.home-2-style-main-nav .nav.navbar-nav > li > a {
    color: rgba(255,255,255,0.88) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 14px 16px !important;
    display: block;
    text-decoration: none;
    transition: var(--h2s-transition);
    white-space: nowrap;
}

.home-2-style-nav-list > li > a:hover,
.home-2-style-main-nav .nav.navbar-nav > li > a:hover,
.home-2-style-nav-list > li.active > a,
.home-2-style-main-nav .nav.navbar-nav > li.active > a {
    color: var(--h2s-white) !important;
    background: rgba(255,255,255,0.1) !important;
}

/* Sub-menu dropdowns in nav */
.home-2-style-main-nav .dropdown-menu {
    background: var(--h2s-white);
    border: 1px solid var(--h2s-border);
    border-top: 3px solid var(--h2s-red);
    border-radius: 0 0 var(--h2s-radius) var(--h2s-radius);
    box-shadow: var(--h2s-shadow-md);
    min-width: 200px;
    padding: 8px 0;
}

.home-2-style-main-nav .dropdown-menu a {
    color: var(--h2s-text) !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    display: block;
    text-decoration: none;
    transition: var(--h2s-transition);
}

.home-2-style-main-nav .dropdown-menu a:hover {
    color: var(--h2s-red) !important;
    background: var(--h2s-light);
}

/* ============================================================
   SECTION 4 — SHARED: SECTION HEAD
   ============================================================ */
.home-2-style-section-head {
    text-align: center;
    margin-bottom: 40px;
}

.home-2-style-section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--h2s-navy);
    margin: 0 0 8px;
    position: relative;
    display: inline-block;
}

.home-2-style-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--h2s-red);
    margin: 8px auto 0;
    border-radius: 2px;
}

.home-2-style-section-sub {
    font-size: 14px;
    color: var(--h2s-text-muted);
    margin: 5px 0 0;
}

/* ============================================================
   SECTION 5 — HERO
   ============================================================ */
.home-2-style-hero {
    min-height: 420px;
    background-color: var(--h2s-light);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

/* NO overlays — image displays clean */

.home-2-style-hero-content {
    text-align: right;
    padding: 20px 0;
}

.home-2-style-hero-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--h2s-navy);
    line-height: 1.35;
    margin-bottom: 14px;
}

.home-2-style-hero-subtitle {
    font-size: 17px;
    color: var(--h2s-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.home-2-style-hero-btn {
    display: inline-block;
    background: var(--h2s-red);
    color: var(--h2s-white);
    padding: 12px 36px;
    border-radius: var(--h2s-radius);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--h2s-transition);
    font-family: inherit;
}

.home-2-style-hero-btn:hover {
    background: var(--h2s-red-hover);
    color: var(--h2s-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(192,57,43,0.35);
}

.home-2-style-hero-img {
    text-align: center;
}

.home-2-style-hero-img img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ============================================================
   SECTION 6 — CATEGORIES
   ============================================================ */
.home-2-style-categories {
    padding: 55px 0;
    background: var(--h2s-white);
}

.home-2-style-cats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 8px;
    margin-top: 10px;
}

.home-2-style-cat-item {
    flex: 0 0 auto;
    width: calc(100% / 6 - 10px);
    min-width: 90px;
    text-align: center;
}

.home-2-style-cat-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    transition: var(--h2s-transition);
}

.home-2-style-cat-link:hover {
    text-decoration: none;
    transform: translateY(-4px);
}

.home-2-style-cat-circle {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--h2s-border);
    background: var(--h2s-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--h2s-transition);
    flex-shrink: 0;
}

.home-2-style-cat-link:hover .home-2-style-cat-circle {
    border-color: var(--h2s-red);
    box-shadow: 0 4px 14px rgba(192,57,43,0.2);
}

.home-2-style-cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-2-style-cat-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--h2s-text);
    line-height: 1.3;
    display: block;
    max-width: 100px;
    word-break: break-word;
    transition: var(--h2s-transition);
}

.home-2-style-cat-link:hover .home-2-style-cat-name {
    color: var(--h2s-red);
}

/* ============================================================
   SECTION 7 — PROMO BANNERS
   ============================================================ */
.home-2-style-banner {
    min-height: 435px;
    background-color: var(--h2s-navy);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    /* NO overlays — image displays clean */
}

.home-2-style-banner .container {
    position: relative;
    z-index: 1;
}

.home-2-style-banner-content {
    text-align: right;
    padding: 45px 0;
    max-width: 55%;
}

.home-2-style-banner-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--h2s-white);
    margin-bottom: 10px;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.home-2-style-banner-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.home-2-style-banner-btn {
    display: inline-block;
    background: var(--h2s-red);
    color: var(--h2s-white);
    padding: 10px 28px;
    border-radius: var(--h2s-radius);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--h2s-transition);
    font-family: inherit;
    border: 2px solid transparent;
}

.home-2-style-banner-btn:hover {
    background: transparent;
    color: var(--h2s-white);
    border-color: var(--h2s-white);
    text-decoration: none;
}

/* ============================================================
   SECTION 8 — PRODUCTS SECTIONS
   ============================================================ */
.home-2-style-products {
    padding: 50px 0;
    background: var(--h2s-white);
}

.home-2-style-products--2 {
    background: var(--h2s-light);
}

/* Products Header — title right, "عرض الكل" left */
.home-2-style-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--h2s-border);
    position: relative;
}

.home-2-style-products-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background: var(--h2s-red);
}

.home-2-style-products-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--h2s-navy);
    margin: 0;
}

/* "عرض الكل" — pill badge style matching design */
.home-2-style-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--h2s-red);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--h2s-red);
    padding: 4px 14px;
    border-radius: 20px;
    transition: var(--h2s-transition);
    white-space: nowrap;
    font-family: inherit;
}

.home-2-style-view-all:hover {
    background: var(--h2s-red);
    color: var(--h2s-white);
    text-decoration: none;
}

.home-2-style-view-all-arrow {
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.home-2-style-view-all:hover .home-2-style-view-all-arrow {
    transform: translateX(-3px);
}

/* Products Row — equal height cards */
.home-2-style-products-row {
    align-items: stretch;
}

.home-2-style-products-row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

/* Product Card */
.home-2-style-product-card {
    background: var(--h2s-white);
    border: 1px solid var(--h2s-border);
    border-radius: var(--h2s-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--h2s-transition);
}

.home-2-style-product-card:hover {
    box-shadow: var(--h2s-shadow-md);
    transform: translateY(-3px);
    border-color: rgba(192,57,43,0.2);
}

.home-2-style-product-img {
    position: relative;
    background: var(--h2s-light);
    padding: 14px;
    text-align: center;
    overflow: hidden;
}

.home-2-style-product-img a {
    display: block;
}

.home-2-style-product-img img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.home-2-style-product-card:hover .home-2-style-product-img img {
    transform: scale(1.06);
}

.home-2-style-product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--h2s-red);
    color: var(--h2s-white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 3px;
    line-height: 1.4;
}

.home-2-style-product-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-2-style-product-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    min-height: 38px;
}

.home-2-style-product-name a {
    color: var(--h2s-text);
    text-decoration: none;
    transition: var(--h2s-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-2-style-product-name a:hover {
    color: var(--h2s-red);
}

.home-2-style-product-sku {
    font-size: 11px;
    color: var(--h2s-text-muted);
    margin: 0;
    direction: ltr;
    text-align: right;
}

.home-2-style-product-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--h2s-red);
    margin: 0;
    margin-top: auto;
}

.home-2-style-product-price del {
    font-size: 12px;
    color: var(--h2s-text-muted);
    font-weight: 400;
}

.home-2-style-product-price ins {
    text-decoration: none;
}

/* WooCommerce Add-to-Cart button override */
.home-2-style-product-action {
    margin-top: 8px;
}

.home-2-style-product-action .button,
.home-2-style-product-action .add_to_cart_button,
.home-2-style-product-action .single_add_to_cart_button {
    display: block !important;
    width: 100% !important;
    background: var(--h2s-red) !important;
    color: var(--h2s-white) !important;
    border: none !important;
    padding: 9px 14px !important;
    border-radius: var(--h2s-radius) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: var(--h2s-transition) !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
}

.home-2-style-product-action .button:hover,
.home-2-style-product-action .add_to_cart_button:hover {
    background: var(--h2s-red-hover) !important;
    color: var(--h2s-white) !important;
    text-decoration: none !important;
}

/* ============================================================
   SECTION 9 — FEATURES
   ============================================================ */
.home-2-style-features {
    padding: 55px 0;
    background: var(--h2s-light);
}

.home-2-style-features-header {
    text-align: center;
    margin-bottom: 36px;
}

.home-2-style-features-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--h2s-navy);
    margin: 0;
    position: relative;
    display: inline-block;
}

.home-2-style-features-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--h2s-red);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Feature Card — image-based, not icon-sized */
.home-2-style-feature-card {
    background: var(--h2s-white);
    border: 1px solid var(--h2s-border);
    border-radius: var(--h2s-radius);
    overflow: hidden;
    margin-bottom: 24px;
    transition: var(--h2s-transition);
    text-align: center;
    height: 100%;
}

.home-2-style-feature-card:hover {
    box-shadow: var(--h2s-shadow-md);
    transform: translateY(-4px);
}

.home-2-style-feature-img {
    background: var(--h2s-navy);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.home-2-style-feature-img img {
    max-width: 100%;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    /* No filter — image displays with its natural colours */
}

.home-2-style-feature-body {
    padding: 18px 16px 20px;
}

.home-2-style-feature-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--h2s-navy);
    margin: 0 0 8px;
}

.home-2-style-feature-desc {
    font-size: 13px;
    color: var(--h2s-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   SECTION 10 — FOOTER
   ============================================================ */
.home-2-style-footer {
    background-color: #1e2530;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgba(255, 255, 255, 0.8);
}

/* when a bg image is provided, darken slightly via the ::before pseudo */
.home-2-style-footer--has-bg {
    position: relative;
}

.home-2-style-footer--has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 25, 40, 0.82);
    z-index: 0;
    pointer-events: none;
}

.home-2-style-footer--has-bg > * {
    position: relative;
    z-index: 1;
}

.home-2-style-footer-top {
    padding: 48px 0 24px;
}

.home-2-style-footer-widget {
    margin-bottom: 30px;
}

.home-2-style-footer-logo img {
    max-height: 52px;
    width: auto;
    margin-bottom: 14px;
    display: block;
}

.home-2-style-footer-marouf {
    margin-bottom: 16px;
}

.home-2-style-footer-marouf img {
    max-height: 58px;
    width: auto;
    display: block;
}

.home-2-style-footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-2-style-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.home-2-style-footer-contact li i {
    color: var(--h2s-red);
    font-size: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.home-2-style-footer-contact li a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: var(--h2s-transition);
}

.home-2-style-footer-contact li a:hover {
    color: var(--h2s-white);
}

.home-2-style-footer-contact li span {
    line-height: 1.5;
}

/* Widget Title */
.home-2-style-footer-widget-title {
    color: var(--h2s-white);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.home-2-style-footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 36px;
    height: 2px;
    background: var(--h2s-red);
}

/* Footer Nav Links */
.home-2-style-footer-links,
.home-2-style-footer .menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.home-2-style-footer-links li,
.home-2-style-footer .menu li {
    margin-bottom: 8px;
}

.home-2-style-footer-links li a,
.home-2-style-footer .menu li a {
    color: rgba(255,255,255,0.65) !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: var(--h2s-transition);
    display: inline-block;
}

.home-2-style-footer-links li a:hover,
.home-2-style-footer .menu li a:hover {
    color: var(--h2s-white) !important;
    padding-right: 5px;
}

/* Brand Images */
.home-2-style-footer-brands img {
    max-width: 100%;
    height: auto;
    opacity: 0.75;
    transition: var(--h2s-transition);
    display: block;
}

.home-2-style-footer-brands img:hover {
    opacity: 1;
}

/* Footer Bottom */
.home-2-style-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 18px 0;
}

.home-2-style-footer-copy {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    text-align: center;
    margin: 0;
    line-height: 1.7;
}

.home-2-style-footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.home-2-style-footer-social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    text-decoration: none;
    transition: var(--h2s-transition);
}

.home-2-style-footer-social li a:hover {
    background: var(--h2s-red);
    color: var(--h2s-white);
}

.home-2-style-footer-payment {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.home-2-style-footer-payment li img {
    max-height: 26px;
    width: auto;
    opacity: 0.75;
    transition: var(--h2s-transition);
    display: block;
}

.home-2-style-footer-payment li img:hover {
    opacity: 1;
}

/* ============================================================
   SECTION 11 — RESPONSIVE
   ============================================================ */

/* Large Tablet (≤ 991px) */
@media (max-width: 991px) {
    /* Header */
    .home-2-style-cats-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .home-2-style-nav-toggler {
        display: block;
    }

    .home-2-style-main-nav {
        background: var(--h2s-navy-dark);
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 400;
        padding: 8px 0;
    }

    .home-2-style-nav-list,
    .home-2-style-main-nav .nav.navbar-nav,
    .home-2-style-main-nav ul.nav {
        flex-direction: column !important;
    }

    .home-2-style-nav-list > li > a,
    .home-2-style-main-nav .nav.navbar-nav > li > a {
        padding: 10px 20px !important;
    }

    /* Hero */
    .home-2-style-hero {
        min-height: 320px;
        padding: 35px 0;
    }

    .home-2-style-hero-title { font-size: 28px; }

    /* Categories */
    .home-2-style-cat-item {
        width: calc(100% / 5 - 10px);
    }

    /* Banners */
    .home-2-style-banner { min-height: 220px; }
    .home-2-style-banner-title { font-size: 24px; }
    .home-2-style-banner-content { max-width: 70%; }

    /* Products */
    .home-2-style-products-title { font-size: 18px; }
}

/* Tablet (≤ 767px) */
@media (max-width: 767px) {
    /* Header brand row */
    .home-2-style-brand-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .home-2-style-logo img { height: 42px; }

    .home-2-style-search-wrap {
        order: 3;
        width: 100%;
        flex-basis: 100%;
    }

    /* Hero */
    .home-2-style-hero {
        min-height: auto;
        padding: 28px 0;
    }

    .home-2-style-hero-title { font-size: 22px; }
    .home-2-style-hero-subtitle { font-size: 14px; }

    .home-2-style-hero-img {
        margin-top: 16px;
    }

    /* Categories */
    .home-2-style-cat-item {
        width: calc(100% / 4 - 10px);
    }

    .home-2-style-cat-circle {
        width: 68px;
        height: 68px;
    }

    /* Banners */
    .home-2-style-banner { min-height: 180px; }
    .home-2-style-banner-content { max-width: 100%; padding: 30px 0; }
    .home-2-style-banner-title { font-size: 20px; }
    .home-2-style-banner-subtitle { font-size: 13px; }

    /* Products */
    .home-2-style-products-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .home-2-style-product-img img { height: 130px; }

    /* Features */
    .home-2-style-feature-card { margin-bottom: 16px; }

    /* Footer */
    .home-2-style-footer-bottom .col-lg-4 {
        text-align: center;
        margin-bottom: 12px;
    }
}

/* Mobile (≤ 575px) */
@media (max-width: 575px) {
    .home-2-style-topbar-phone,
    .home-2-style-topbar-phone a { font-size: 12px; }
    .home-2-style-topbar-links { font-size: 11px; }

    .home-2-style-logo img { height: 36px; }

    .home-2-style-action-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .home-2-style-hero-title { font-size: 18px; }
    .home-2-style-hero-subtitle { font-size: 13px; }
    .home-2-style-hero-btn { padding: 9px 22px; font-size: 13px; }

    .home-2-style-cat-item {
        width: calc(100% / 3 - 8px);
    }

    .home-2-style-cat-circle {
        width: 58px;
        height: 58px;
    }

    .home-2-style-cat-name { font-size: 11px; }

    .home-2-style-banner-title { font-size: 16px; }

    .home-2-style-product-img img { height: 110px; }

    .home-2-style-product-name { font-size: 12px; min-height: auto; }

    .home-2-style-product-info { padding: 10px; gap: 4px; }

    .home-2-style-product-action .button,
    .home-2-style-product-action .add_to_cart_button {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    .home-2-style-section-title { font-size: 22px; }
    .home-2-style-products-title { font-size: 16px; }
    .home-2-style-features-title { font-size: 22px; }
}

/* ============================================================
   SECTION 12 — RTL FINE-TUNING
   ============================================================ */
[dir="rtl"] .home-2-style-products-header::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .home-2-style-footer-widget-title::after {
    right: 0;
    left: auto;
}

[dir="rtl"] .home-2-style-footer-links li a:hover,
[dir="rtl"] .home-2-style-footer .menu li a:hover {
    padding-right: 5px;
    padding-left: 0;
}

[dir="rtl"] .home-2-style-view-all-arrow {
    display: inline-block;
    /* chevron points left (toward start in RTL) */
    transform: scaleX(-1);
}

[dir="rtl"] .home-2-style-view-all:hover .home-2-style-view-all-arrow {
    transform: scaleX(-1) translateX(-3px);
}

[dir="rtl"] .home-2-style-cats-dropdown {
    right: 0;
    left: auto;
}

[dir="rtl"] .home-2-style-cart-dropdown {
    right: auto;
    left: 0;
}

/* ============================================================
   SECTION 13 — SCROLLUP BUTTON
   ============================================================ */
.home2-body .scrollup {
    background: var(--h2s-red);
    color: var(--h2s-white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: var(--h2s-transition);
}

.home2-body .scrollup:hover {
    background: var(--h2s-red-hover);
    color: var(--h2s-white);
}

/* ============================================================
   SECTION 14 — FEATURES CARDS  (prefix: home2-features-)
   Card = client-supplied background-image (full design).
   Content layer = position:absolute, flex center — NO bg color.
   ============================================================ */

.home2-features-section {
    padding: 60px 0;
}

.home2-features-row {
    margin-left: -10px;
    margin-right: -10px;
}

.home2-features-col {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* Card — background-image is the entire visual design */
.home2-features-card {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
}

/* Content layer — pure positioning, zero background */
.home2-features-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: transparent;
    /* NO background-color, NO gradient, NO rgba, NO overlay */
}

/* White circular icon container */
.home2-features-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home2-features-icon-wrap i {
    font-size: 32px;
    line-height: 1;
    color: inherit; /* inherits from icon font — override per-theme if needed */
}

/* Card title */
.home2-features-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #1b3a5c;
    line-height: 1.3;
    padding: 0 16px;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .home2-features-section {
        padding: 40px 0;
    }

    .home2-features-card {
        height: 240px;
    }

    .home2-features-icon-wrap {
        width: 60px;
        height: 60px;
    }

    .home2-features-icon-wrap i {
        font-size: 26px;
    }

    .home2-features-card-title {
        font-size: 16px;
    }
}

@media (max-width: 575px) {
    .home2-features-card {
        height: 220px;
    }
}
@media (min-width: 992px) {
  #home2MainNav {
    display: flex !important;
    height: auto !important;
    visibility: visible !important;
  }
}

/* ============================================================
   SECTION 15 — DYNAMIC COLOR VARIABLES  (prefix: --home2-)
   Variables are output via home2_output_css_variables() in
   functions.php — scoped to .home2-body only.
   Defaults match the exact current design colors:
     header nav  → #1a3a5c  (= --h2s-navy)
     footer      → #1e2530  (hardcoded original)
     buttons     → #c0392b  (= --h2s-red)
     primary     → #c0392b  (= --h2s-red)
   No visual change until user edits Customizer.
   ============================================================ */

/* -- Header nav bar + all interior regions (desktop + mobile panel) -- */
.home2-body .home-2-style-header-nav,
.home2-body .home-2-style-header-nav .home-2-style-nav-inner,
.home2-body .home-2-style-header-nav .home-2-style-nav-menu,
.home2-body .home-2-style-main-nav {
 background: var(--home2-header-bg, #1a3a5c);
background-color: var(--home2-header-bg, #1a3a5c);
}

/* -- Footer -- */
.home2-body .home-2-style-footer {
       background: var(--home2-footer-bg, #1e2530);
    background-color: var(--home2-footer-bg, #1e2530);
}

/* -- Add-to-cart button (product cards) -- */
.home2-body .home-2-style-product-action .button,
.home2-body .home-2-style-product-action .add_to_cart_button,
.home2-body .home-2-style-product-action .single_add_to_cart_button {
    background: var(--home2-btn-bg, #c0392b) !important;
    border-color: transparent !important;
}

/* -- Cart dropdown fill button -- */
.home2-body .home-2-style-cart-btn--fill {
    background: var(--home2-btn-bg, #c0392b);
    border-color: var(--home2-btn-bg, #c0392b);
}

/* -- Hero CTA button -- */
.home2-body .home-2-style-hero-btn {
    background: var(--home2-btn-bg, #c0392b);
    border-color: var(--home2-btn-bg, #c0392b);
}

/* -- Search submit button -- */
.home2-body .home-2-style-search-btn {
    background: var(--home2-btn-bg, #c0392b);
}

/* -- Primary accent: section title underline bar -- */
.home2-body .home-2-style-section-title::after {
    background: var(--home2-primary, #c0392b);
}

/* -- Primary accent: "عرض الكل" link color -- */
.home2-body .home-2-style-view-all {
    color: var(--home2-primary, #c0392b);
}

/* -- Primary accent: cart count badge -- */
.home2-body .home-2-style-cart-count {
    background: var(--home2-primary, #c0392b);
}

/* -- Gradient support: clear background-color so gradient shorthand renders -- */
/* .home2-body .home-2-style-header-nav,
.home2-body .home-2-style-header-nav .home-2-style-nav-inner,
.home2-body .home-2-style-header-nav .home-2-style-nav-menu,
.home2-body .home-2-style-main-nav,
.home2-body .home-2-style-footer {
    background-color: unset;
} */

.home2-body .home-2-style-cats-btn {
    background: var(--home2-btn-bg, #c0392b);
}