@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;600;700;900&family=El+Messiri:wght@600;700&display=swap");

* {
    font-family: "Cairo", sans-serif;
}


.nav-drill {
    margin-top: 0;
    transform: translateX(100%);
  }

  .nav-is-toggled .nav-drill {
    transform: translateX(0);
  }
  .nav-is-toggled::after {
    opacity: 1;
    visibility: visible;
  }

  .nav-drill {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 1050;
    border-top: none;
    top: 56px;
    right: 0;
    width: 280px;
    height: calc(100vh - 56px);
    background-color: #ffffff;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-items {
    flex: 0 0 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .nav-item{
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-drill .category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease;
  }

  .nav-drill .category-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
  }

  .nav-drill .category-link {
    display: flex;
    align-items: center;
    color: #222222;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0;
    flex-grow: 1;
  }

  .nav-drill .category-link:hover {
    color: #3474d4;
    text-decoration: none;
  }

  .nav-drill .cat-icon {
    object-fit: contain;
    flex-shrink: 0;
  }

  .nav-drill .btn-toggle-subcat {
    background: transparent;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  .nav-drill .btn-toggle-subcat:hover {
    color: #3474d4;
    background-color: rgba(52, 116, 212, 0.08);
  }

  .nav-drill .btn-toggle-subcat.is-open {
    color: #3474d4;
  }

  .nav-drill .subcategories-list {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f7f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-drill.rtl .subcategories-list {
    padding-right: 18px;
  }

  .nav-drill.ltr .subcategories-list {
    padding-left: 18px;
  }

  .nav-drill .subcategory-item {
    list-style: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .nav-drill .subcategory-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #555555;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .nav-drill .subcategory-link:hover {
    color: #3474d4;
    text-decoration: none;
  }

  .nav-drill .subcat-arrow {
    font-size: 11px;
    margin-left: 8px;
    margin-right: 8px;
    color: #999999;
  }
  .nav-expand-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    background-color: #daf9f4;
    transition: 0.3s;
    visibility: hidden;
  }
  .nav-expand-content .nav-item:not(:last-child) {
    border-bottom: solid 1px #20b49c;
  }
  .nav-expand-content .nav-link {
    background-color: #daf9f4;
  }
  .nav-expand-content .nav-back-link {
    display: flex;
    align-items: center;
    background-color: #20b49c !important;
    color: #fff;
  }
  .nav-expand-content .nav-back-link::before {
    content: "chevron_left";
    margin-right: 0.5em;
    font-family: "Material Icons";
  }
  .nav-expand-link {
    display: flex;
    justify-content: space-between;
  }
  .nav-expand-link::after {
    content: "chevron_right";
    flex: 0 1 auto;
    font-family: "Material Icons";
  }
  .nav-expand.active > .nav-expand-content {
    transform: translateX(0);
    visibility: visible;
  }
  .nav-expand .nav-expand-content {
    background-color: #daf9f4;
  }
  .nav-expand .nav-expand-content .nav-link {
    background-color: #daf9f4;
  }
  .nav-expand .nav-expand-content .nav-expand-content {
    background-color: #aff1e6;
  }
  .nav-expand .nav-expand-content .nav-expand-content .nav-link {
    background-color: #aff1e6;
  }
  .nav-expand .nav-expand-content .nav-expand-content .nav-expand-content {
    background-color: #84e9d9;
  }
  .nav-expand .nav-expand-content .nav-expand-content .nav-expand-content .nav-link {
    background-color: #84e9d9;
  }
  .nav-expand .nav-expand-content .nav-expand-content .nav-expand-content .nav-expand-content {
    background-color: #59e1cb;
  }
  .nav-expand .nav-expand-content .nav-expand-content .nav-expand-content .nav-expand-content .nav-link {
    background-color: #59e1cb;
  }
.custom_notify_badge {
    position: absolute;
    left: -6px;
    top: 3px;
    /* height: 20px; */
}
.custom_notify_badge_new {
    position: absolute;
    right: -6px;
    top: 3px;
    height: 20px;
}

.custom_notify_badge_buttom {
    position: absolute;
    top: 120px;
    right: 3px;

}
.badge-precent{
    color: white;
    background-color: rgb(209, 144, 3);
}
.card-product-grid img {
    height: 150px;
    /* width: 200px; */
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    width: 100%;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
}
.dropdown-content2 {
    display: none;
    position: fixed;
    background-color: white;
    width: 100%;
    max-width: none;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 999;
    bottom: 70px;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    border-radius: 12px 12px 0 0;
    transform: none !important;
}
.owl-dots{
    /* background-color: red; */
    margin-top: -30px!important;
    position: absolute;
    margin-left: 47%;
}
.owl-dot{
    /* color: red; */

    background-color: transparent !important;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}
.dropdown-content2 a {
    color: black;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.dropdown-content2 a:hover {
    background-color: #f8f9fa;
    color: #0289D6;
}

.show {
    display: block;
}

/* Desktop dropdown positioning */
@media (min-width: 769px) {
    .dropdown-content2 {
        position: absolute !important;
        bottom: auto !important;
        width: 200px !important;
        max-width: none;
        top: 45px !important;
        left: -20px !important;
        right: auto !important;
        border-radius: 4px;
        transform: none !important;
    }
}

/* Mobile dropdown positioning */
@media (max-width: 768px) {
    .dropdown-content2 {
        position: fixed !important;
        width: 100%;
        bottom: 70px !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 12px 12px 0 0;
    }
}
.cat-menu {
    top: -15px;
    left: 42px;
}
.title {
    color: black;
    font-weight: bold;
}
.price span {
    font-size: 20px;
    font-weight: 700;
}
.price strike {
    font-size: 18px;
}
.nav-bottom a {
    color: #333;
    font-weight: bold;
}
.badge-basket {
    position: absolute;
    margin-left: -7px;
    margin-top: -5px;
}
.phone {
    display: none;
    z-index: 100;
}
.nav-s {
    display: none;
}
.nav-bottom {
    display: none;
}
.tw {
    color: #333;
}

.cat-phone {
    display: none;
}
.fea-phone {
    display: none;
}
.cat {
    border-radius: 5px;
}
.owl-phone {
    display: none;
}
.toast-bottom-center {
    opacity: 1;
}

.load {
    position: relative;
    width: 200px;
    height: 200px;
    z-index: 90;
    background-color: white;
    opacity: 0.7;
    position: fixed;
    text-align: center;
    display: none;
    margin-left: 45%;
    margin-top: 20%;
}
.load img {
    position: absolute;
    top: 40%;
    -ms-transform: translateY(-40%);
    transform: translateY(-40%);
    margin-left: -33px;
}
.btn-reduce,
.btn-increase {
    background-color: #eee;
    /* border-radius: 50%; */
    padding: 0px 5px;
}
/*aiz megabox*/
.aiz-megabox {
    position: relative;
    cursor: pointer;
}
.aiz-megabox input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.aiz-megabox .aiz-megabox-elem {
    border: 2px solid #e2e5ec;
    border-radius: 0.25rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
}
.aiz-megabox > input:checked ~ span .aiz-rounded-check:after,
.aiz-megabox > input:checked ~ span .aiz-square-check:after {
    visibility: visible;
    opacity: 1;
}

.aiz-megabox > input:checked ~ .aiz-megabox-elem,
.aiz-megabox > input:checked ~ .aiz-megabox-elem {
    border-color: var(--primary);
}
.section-features{
    padding-top: 1rem;
    padding-bottom: 1rem;
    /* margin-bottom: 15px; */
}

/*social icon colored*/
ul.social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50em;
    line-height: 39px;
    text-align: center;
    font-size: 18px;
}
ul.social a:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
}
ul.social i {
    color: #171727;
}

ul.social.colored i {
    color: #fff;
}
ul.social.colored [class*="facebook"] {
    background-color: #3b5998;
}
ul.social.colored [class*="twitter"] {
    background-color: #1da1f2;
}
ul.social.colored [class*="google"] {
    background-color: #e62833;
}
ul.social.colored [class*="youtube"] {
    background-color: #ff0000;
}
ul.social.colored [class*="instagram"] {
    background-color: #bd32a2;
}
ul.social.colored [class*="tripadvisor"] {
    background-color: #32da9d;
}
ul.social.colored [class*="linkedin"] {
    background-color: #0070ac;
}
@media (max-width: 768px) {
    .content-section{
        margin-top: 80px;
    }
    #myDropdown {
        margin-top: 80px;
    }
    .section-features{
        margin-top: 0 !important;
        margin-bottom: 15px !important;
        padding-bottom: 0;
    }
    .catt-phone{
        padding-right: 0;
        margin-bottom: 10px;
    }
    .web{
        padding-bottom: 0;
    }
}
@media (max-width: 600px) {
    .last-footer{
        margin-bottom: 80px;
    }
    .pay-sec{
        margin-bottom: 20px;
    }
    .catt-phone{
        margin-bottom: 0;
    }
    .catt-phone{
        padding-right: 0;
    }
    .owl-dots{
        margin-left: 45%;
    }
    .phone-nav{
        -webkit-box-shadow: 0px 10px 155px -25px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px 10px 155px -25px rgba(0,0,0,0.75);
        box-shadow: 0px 10px 155px -25px rgba(0,0,0,0.75);
    }
    .cart-div {
        overflow-x: scroll;
    }
    .toast-bottom-center {
        height: 60px;
        font-size: 18;
        font-weight: bold;
    }
    .toast-success {
        opacity: 1;
    }
    .card-product-grid img {
        height: 160px;
    }
    .load {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 10;
        background-color: white;
        opacity: 0.5;
        position: fixed;
        text-align: center;
        display: none;
        margin-left: 0;
        margin-top: 0;
    }
    .load img {
        position: absolute;
        top: 40%;
        -ms-transform: translateY(-40%);
        transform: translateY(-40%);
        margin-left: -33px;
    }
    .info {
        margin-bottom: 50px;
    }
    .owl-web {
        display: none;
    }
    .owl-phone {
        display: block;
    }
    .item-slide {
        height: 200px;
    }
    .menu-category {
        display: none;
    }
    .nav-s {
        display: flex;
    }
    .web {
        display: none;
    }
    .phone {
        display: block;
    }
    .nav-r {
        display: none;
    }
    .row-b{
        -webkit-box-shadow: 0px -28px 104px -41px rgba(0,0,0,0.75);
        -moz-box-shadow: 0px -28px 104px -41px rgba(0,0,0,0.75);
        box-shadow: 0px -28px 104px -41px rgba(0,0,0,0.75);
    }
    .nav-bottom {
        display: block;

    }
    .nav-top {
        display: none;
    }
    .nav-title {
        display: none;
    }
    .cat-web {
        display: none;
    }
    .cat-phone {
        display: block;
    }
    /* .fea-web {
        display: none;
    } */
    .fea-phone {
        display: block;
    }
    
    .custom-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }
}

.view-more a {
    /* color: #555; */
    font-size: 14px;
    text-decoration: underline;
}

.owl-dot {
    background-color: #f8f8f8;
    padding-left: 0;
    padding-right: 0;
}

.owl-dot:focus {
    outline: 0;
}

/* ============================================================
   Surgical Fixes: Desktop & Tablet Enhancements (min-width: 768px)
   ============================================================ */
@media (min-width: 768px) {
    /* 1. Header Search Box & Button Dimensions Alignment */
    .header-main .search {
        margin-bottom: 0;
    }
    .header-main .search .input-group {
        display: flex;
        align-items: stretch;
        margin-bottom: 0 !important;
        height: 42px;
        position: relative;
    }
    .header-main .search .input-group-append {
        display: flex;
        align-items: stretch;
        margin: 0;
    }
    .header-main .search .form-control {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 42px;
        font-size: 0.95rem;
        box-shadow: none;
    }
    .header-main .search .btn {
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
        padding: 0 20px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        transform: none !important;
        box-shadow: none !important;
    }
    .header-main .search .btn:hover,
    .header-main .search .btn:focus,
    .header-main .search .btn:active {
        transform: none !important;
    }
    
    /* Arabic layout (Button on left, Input on right) */
    .header-main .search .input-group > .input-group-append:first-child .btn {
        border-top-left-radius: 6px !important;
        border-bottom-left-radius: 6px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
    .header-main .search .input-group > .input-group-append:first-child + .form-control {
        border-top-right-radius: 6px !important;
        border-bottom-right-radius: 6px !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-left: none !important;
    }
    
    /* LTR layout (Input on left, Button on right) */
    .header-main .search .input-group > .form-control:first-child {
        border-top-left-radius: 6px !important;
        border-bottom-left-radius: 6px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        border-right: none !important;
    }
    .header-main .search .input-group > .form-control:first-child + .input-group-append .btn {
        border-top-right-radius: 6px !important;
        border-bottom-right-radius: 6px !important;
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
    }

    /* 2 & 3. Slider Section: Equal Vertical Spacing & Categories Height Matching */
    .section-features {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .section-features .item-slide {
        height: 350px !important;
    }
    
    .section-features .catt-phone nav.card {
        height: 350px !important;
        border-radius: 8px;
        box-sizing: border-box;
        margin-bottom: 0;
    }
    
    .section-features .catt-phone .menu-category {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin: 0;
        padding: 0;
    }
    
    .section-features .catt-phone .menu-category > li {
        flex: 1;
        display: flex;
        align-items: center;
        min-height: 0;
        position: relative;
    }
    
    .section-features .catt-phone .menu-category > li > a {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 15px;
        line-height: normal;
    }
    
    .section-features .catt-phone .menu-category > li:first-child a {
        border-top-left-radius: 7px;
        border-top-right-radius: 7px;
    }
    
    .section-features .catt-phone .menu-category > li:last-child {
        border-bottom: none;
    }
    
    .section-features .catt-phone .menu-category > li:last-child a {
        border-bottom-left-radius: 7px;
        border-bottom-right-radius: 7px;
    }
}

/* ==========================================================================
   Homepage Category Section Header - Centered Title & Arabesque Ornaments
   ========================================================================== */
.category-header-wrap {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 85px 10px 85px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.category-title-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    max-width: 100%;
}

.category-header-title {
    font-family: 'El Messiri', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    line-height: 1.35;
    color: #1e293b;
    margin: 0 !important;
    padding: 0 4px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 600px;
}

.category-header-ornament {
    width: 75px;
    height: 20px;
    flex-shrink: 0;
    color: #3474d4;
    transition: transform 0.3s ease, color 0.3s ease;
}

.category-header-ornament.ornament-left {
    transform: none;
}

.category-header-ornament.ornament-right {
    transform: scaleX(-1);
}

/* View More Link */
.category-view-more-box {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.category-header-wrap.rtl .category-view-more-box,
[dir="rtl"] .category-header-wrap .category-view-more-box {
    left: 15px;
    right: auto;
}

.category-header-wrap:not(.rtl) .category-view-more-box,
[dir="ltr"] .category-header-wrap .category-view-more-box {
    right: 15px;
    left: auto;
}

.category-view-more-link {
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.category-view-more-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-header-wrap {
        padding: 10px 65px 8px 65px;
    }
    .category-header-title {
        font-size: 1.2rem !important;
        max-width: 280px;
    }
    .category-title-box {
        gap: 8px;
    }
    .category-header-ornament {
        width: 48px;
        height: 16px;
    }
    .category-view-more-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .category-header-wrap {
        padding: 8px 50px 6px 50px;
    }
    .category-header-title {
        font-size: 1.05rem !important;
        max-width: 175px;
    }
    .category-title-box {
        gap: 5px;
    }
    .category-header-ornament {
        width: 32px;
        height: 14px;
    }
    .category-view-more-link {
        font-size: 0.75rem;
    }
}

/* Dark Mode Integration */
[data-theme="dark"] .category-header-wrap {
    border-bottom: 1px solid var(--dm-border, #2f3b47);
}

[data-theme="dark"] .category-header-title {
    color: var(--dm-text-primary, #e7e9ea);
}

[data-theme="dark"] .category-header-ornament {
    color: var(--dm-accent, #5b9cf6);
}
