.header-cart {
    flex-grow: unset;
}

.search-header-bar {
    height: auto;
}

.search-header {
    position: relative;
}

.search-header-bar > * {
    height: 100%;
}

.search-input > div {
    width: 100%;
}

.search-input-icon {
    position: absolute;
    font-size: 22px;
    top: 8px;
    left: 4px;
}


.rtl .search-input-icon {
    left: unset;
    right: 4px;
    top: 9px;
}

.search-input-input {
    padding-left: 30px;
    min-height: 40px;
    max-height: 40px;
}

.rtl .search-input-input {
    padding-left: inherit;
    padding-right: 30px;
}


.icon-shopping_cart_black_36dp-1-1, .sm-search-icon > span {
    font-size: 32px;
}

.icon-shopping_cart_black_36dp-1-1 .path1:before {
    color: unset;
}

.icon-shopping_cart_black_36dp-1-1 .path2:before {
    color: unset;
}

.icon-language_black_24dp .path1:before {
    color: unset;
}

.cart-badge {
    position: absolute;
    right: 20px;
    top: -8px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    color: #fff;
    text-align: center;
    border-radius: 50%;
    background-color: #AB0000;
}

.rtl .cart-badge {
    right: unset;
    left: 20px;
}

.top-main-menu-wrapper {
    margin-right: -22px;
    margin-left: -22px;
}

.ic.menu{
    text-align: left;
    position: relative;
    right: 4px;
}

.rtl .ic.menu{
    text-align: right;
    right: unset;
    left: 4px;
}

.ic.menu, .sm-search-icon {
    margin-right: unset;
}

.icon-menu-top {
    margin-right: 10px !important;
}

.rtl .ic.menu, .sm-search-icon {
    margin-right: unset;
    margin-left: unset;
    @media (max-width: 992px) {
        margin-left:14px;
    }
}

.rtl .icon-menu-top {
    margin-right: unset !important;
    margin-left: 10px !important;
}

.icon-menu-top > span {
    font-size: 32px;
}

.icon-menu_open_black_24dp-1:before {
    color: unset;
}


/* ==========================================================================
   Search Overlay / Drawer Styles
   ========================================================================== */

:root {
    --search-drawer-bg: #5a4841;
    --search-drawer-bg-dark: #4B5A41;
    --search-drawer-text: #ffffff;
    --search-drawer-text-dark: #ffffff;
}


.header-search-drawer.sm-search-div,
.sm-search-div {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--search-drawer-bg);
    color: var(--search-drawer-text);
    padding: 24px 0 32px 0;
    z-index: 999;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.32s ease;
}

body.rtl .header-search-drawer.sm-search-div,
body.rtl .sm-search-div {
    background-color: var(--search-drawer-bg);
    color: var(--search-drawer-text);
}

.header-search-drawer.sm-search-div.show,
.sm-search-div.show {
    transform: translateY(0%);
    -webkit-transform: translate3d(0,0,0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Dark Mode Support for Search Overlay */
body.dark .header-search-drawer.sm-search-div,
body.dark .sm-search-div,
body.dark.rtl .header-search-drawer.sm-search-div,
body.dark.rtl .sm-search-div {
    background-color: var(--search-drawer-bg-dark);
    color: var(--search-drawer-text-dark);
}

/* Container */
.search-drawer-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Form & Input Row */
.search-drawer-form {
    margin: 0;
    padding: 0;
}

.search-drawer-input-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1.5px solid var(--search-drawer-text);
    opacity: 0.85;
    padding-bottom: 10px;
    margin-bottom: 24px;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.search-drawer-input-row:focus-within {
    border-bottom-color: var(--search-drawer-text);
    opacity: 1;
}

body.dark .search-drawer-input-row {
    border-bottom-color: var(--search-drawer-text-dark);
}

body.dark .search-drawer-input-row:focus-within {
    border-bottom-color: var(--search-drawer-text-dark);
}

.search-drawer-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--search-drawer-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.search-drawer-btn:hover {
    color: var(--search-drawer-text);
    transform: scale(1.08);
}

body.dark .search-drawer-btn {
    color: var(--search-drawer-text-dark);
}

.search-drawer-input-wrap {
    flex: 1;
    min-width: 0;
}

.search-drawer-field.search-input-input {
    width: 100%;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--search-drawer-text) !important;
    font-size: 19px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
}

.search-drawer-field.search-input-input::placeholder {
    color: var(--search-drawer-text) !important;
    opacity: 0.82 !important;
    font-weight: 400 !important;
}

body.dark .search-drawer-field.search-input-input {
    color: var(--search-drawer-text-dark) !important;
}

body.dark .search-drawer-field.search-input-input::placeholder {
    color: var(--search-drawer-text-dark) !important;
}

/* Trending Section */
.search-trending-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.search-section-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--search-drawer-text);
    margin: 0;
    line-height: 1.2;
}

body.dark .search-section-title {
    color: var(--search-drawer-text-dark);
}

@media (max-width: 768px) {
    .search-section-title {
        font-size: 18px;
    }
}

.search-trending-icon {
    color: var(--search-drawer-text);
    stroke: var(--search-drawer-text);
}

body.dark .search-trending-icon {
    color: var(--search-drawer-text-dark);
    stroke: var(--search-drawer-text-dark);
}

/* Category Chips */
.search-trending-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.header .search-trending-chip {
    background: var(--search-drawer-text);
    color: var(--search-drawer-bg) !important;
    font-size: 16px;
    font-weight: 400;
    padding: 7px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
}

body.dark .header .search-trending-chip{
    background: var(--search-drawer-text-dark);
    color: var(--search-drawer-bg-dark) !important;
}

/* Trending Products Grid & Live Autocomplete Results Grid */
.search-trending-products-grid,
.header-search-drawer .autocomplete-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
}

.search-trending-product-card,
.header-search-drawer .autocomplete-product-link {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    text-decoration: none !important;
    color: var(--search-drawer-text) !important;
    width: 100% !important;
}

body.dark .search-trending-product-card,
body.dark .header-search-drawer .autocomplete-product-link {
    color: var(--search-drawer-text-dark) !important;
}

.search-trending-product-image-wrap,
.header-search-drawer .autocomplete-product-image-wrapper {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    background-color: var(--product-card-image-background-color) !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

body.dark .search-trending-product-image-wrap,
body.dark .header-search-drawer .autocomplete-product-image-wrapper {
    background-color: var(--product-card-image-background-color-dark) !important;
}

@media (max-width: 768px) {
    .search-trending-product-image-wrap,
    .header-search-drawer .autocomplete-product-image-wrapper {
        width: 60px !important;
        height: 60px !important;
        min-width: 60px !important;
    }
}

.search-trending-product-image,
.header-search-drawer .autocomplete-product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.search-trending-product-placeholder,
.header-search-drawer .autocomplete-product-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--search-drawer-text) !important;
    opacity: 0.5 !important;
    font-size: 20px !important;
}

body.dark .search-trending-product-placeholder,
body.dark .header-search-drawer .autocomplete-product-placeholder {
    color: var(--search-drawer-text-dark) !important;
}

.search-trending-product-info,
.header-search-drawer .autocomplete-product-info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    flex: 1 !important;
    text-align: start !important;
}

.search-trending-product-title,
.header-search-drawer .autocomplete-product-name {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: var(--search-drawer-text) !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    margin: 0 !important;
}

body.dark .search-trending-product-title,
body.dark .header-search-drawer .autocomplete-product-name,
body.dark .header-search-drawer .autocomplete-item:hover .autocomplete-product-name {
    color: var(--search-drawer-text-dark) !important;
}

@media (max-width: 768px) {
    .search-trending-product-title,
    .header-search-drawer .autocomplete-product-name {
        font-size: 16px !important;
    }
}

.search-trending-product-prices,
.header-search-drawer .autocomplete-product-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.search-product-price-current,
.header-search-drawer .autocomplete-price-current {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--search-drawer-text) !important;
}

body.dark .search-product-price-current,
body.dark .header-search-drawer .autocomplete-price-current {
    color: var(--search-drawer-text-dark) !important;
}

@media (max-width: 768px) {
    .search-product-price-current,
    .header-search-drawer .autocomplete-price-current {
        font-size: 14px !important;
    }
}

.search-product-price-old,
.header-search-drawer .autocomplete-price-old {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--search-drawer-text) !important;
    opacity: 0.65 !important;
    text-decoration: line-through !important;
}

body.dark .search-product-price-old,
body.dark .header-search-drawer .autocomplete-price-old {
    color: var(--search-drawer-text-dark) !important;
}

@media (max-width: 768px) {
    .search-product-price-old,
    .header-search-drawer .autocomplete-price-old {
        font-size: 12px !important;
    }
}

/* Skeletons */
.search-chip-skeleton {
    width: 90px;
    height: 34px;
    border-radius: 8px;
    background: var(--search-drawer-text);
    opacity: 0.15;
    animation: search-pulse 1.4s ease-in-out infinite;
}

.search-product-skeleton {
    height: 72px;
    border-radius: 8px;
    background: var(--search-drawer-text);
    opacity: 0.12;
    animation: search-pulse 1.4s ease-in-out infinite;
}

body.dark .search-chip-skeleton,
body.dark .search-product-skeleton {
    background: var(--search-drawer-text-dark);
}

@keyframes search-pulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.85; }
    100% { opacity: 0.5; }
}

/* Live Search Autocomplete States */
.header-search-drawer .autocomplete-loading,
.header-search-drawer .autocomplete-empty {
    grid-column: 1 / -1;
    color: var(--search-drawer-text);
    padding: 24px 0;
    text-align: center;
}

body.dark .header-search-drawer .autocomplete-loading,
body.dark .header-search-drawer .autocomplete-empty {
    color: var(--search-drawer-text-dark);
}

.header-search-drawer .autocomplete-spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 10px auto;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--search-drawer-text);
    border-radius: 50%;
    animation: autocomplete-spin 0.75s linear infinite;
}

body.dark .header-search-drawer .autocomplete-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--search-drawer-text-dark);
}

.header-search-drawer .autocomplete-empty-text {
    color: var(--search-drawer-text);
    opacity: 0.85;
    font-size: 15px;
}

body.dark .header-search-drawer .autocomplete-empty-text {
    color: var(--search-drawer-text-dark);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .header-search-drawer.sm-search-div {
        padding: 18px 0 24px 0;
    }
    .search-trending-products-grid,
    .header-search-drawer .autocomplete-items {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .search-drawer-container {
        padding: 0 16px;
    }
    .search-drawer-field.search-input-input {
        font-size: 16px !important;
    }
    .search-trending-products-grid,
    .header-search-drawer .autocomplete-items {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .search-trending-chips {
        gap: 8px;
    }
    .search-trending-chip {
        font-size: 13px;
        padding: 6px 14px;
    }
}

.lg-search-div {
    display: none;
    visibility: hidden;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    padding: 20px 15px;
    width: 400px;
    background-color: var(--header-primary-color, var(--primary-color));
    transform: translateY(-10px);
    transition: all .3s ease;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.rtl .lg-search-div {
    right: auto;
    left: 0;
}

.lg-search-div.show {
    visibility: visible;
    transform: translateY(0);
    -webkit-transform:translate3d(0,0,0);
}

.footer .apps-social-icons:nth-child(2) {
    padding-left: 0px;
}

.rtl .footer .apps-social-icons:nth-child(2) {
    padding-right: 0px;
    padding-left: 15px;
}

.footer .google-app-stores {
    margin-left: -4px;
    margin-right: -4px;
}

.footer .icons-wrapper {
    padding: 0px;
}

.footer-about-us-links-div {

}


.footer-about-us-div {
    padding-right: 20%;
}

.rtl .footer-about-us-div {
    padding-right: unset;
    padding-left: 20%;
}

.slick-dotted.slick-slider {
    margin-bottom: 0px;
}

.main-slider .slick-dots {
    bottom: 12px;
}

.main-slider .slick-dots li button:before {
    font-size: 14px;
}

.features-section-img {
    max-height: 90px;
    max-width: 90px;
}

.slick-next.slick-arrow > span, .slick-prev.slick-arrow > span {
    color: var( --primary-color);
    font-size: 3.3rem;
}

.category-item a, .category-item img, .card-item a, .card-item img {
    display: block;
    text-align: center;
    width: 100%;
}

.category-item img, .card-item img {
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.category-item h3, .card-item h3 {
    margin-top: 15px;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
    color: var( --primary-color);
    white-space: break-spaces;
}

.category-page-slider .category-item h3 {
    font-size: 1.2rem;
}

.categories-slider .category-item,
.cards-slider .card-item {
    width: 100%;
    max-width: 200px;
}

.slider-container {
    padding-left: 15px;
    padding-right: 15px;
}
.main-slider .slider-item {

}

.section-title {
    padding-left: 0px;
    padding-right: 0px;
}

.products-slider .prod-col, .categories-slider .cat-col, .cards-slider .card-col {
    padding-left: 15px;
    padding-right: 15px;
    display: block;
    width: auto;
}

.category-page-slider .categories-slider.s-slider {
    margin-right: -15px;
    margin-left: -15px;
}

.category-page-slider .home-categories-section .section-title {
    margin-right: -15px;
    margin-left: -15px;
}

.category-page-slider .products-slider .prod-col, .categories-slider .cat-col, .cards-slider .card-col {
    padding-left: 15px;
    padding-right: 15px;
}

.products-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.products-list.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.products-list.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.products-list.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .products-list,
  .products-list.grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .products-list,
  .products-list.grid-cols-4,
  .products-list.grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .products-list,
  .products-list.grid-cols-4,
  .products-list.grid-cols-3,
  .products-list.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sort-block-width {
    margin-left: 30px;
}

.rtl .sort-block-width {
    margin-left: 0px;
    margin-right: 30px;
    @media (max-width: 768px) {
        margin-right: 0px;
    }
}
.ltr .sort-block-width {
    margin-right: 0px;
    margin-left: 30px;
    @media (max-width: 768px) {
        margin-left: 0px;
    }
}

.select-dropdown .dropdown-item {
    padding-bottom: 7.5px;
    padding-top: 7.5px;
}

#products-list-filter-form-close {
    width: 44px;
    height: 44px;
    position: absolute;
    right: 0;
    top:0;
}

.rtl #products-list-filter-form-close {
    right: unset;
    left: 0;
}

.products-filters-container .attribute{
    background:unset !important;
}

.products-pagination {
    margin-bottom: 24px;
    padding: 0 15px;
}

.products-pagination ul  {
    padding: 0px;
}

.products-pagination .page-link {
    color: var( --primary-color);
    font-size: 1.2rem;
}

.products-pagination .page-link.active {
    color: #ffffff;
    background-color: var( --primary-color);
}

.rtl .products-pagination .page-item:first-child .page-link {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}


.rtl .products-pagination .page-item:last-child .page-link {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.products-container .products-list {
    margin-bottom: 24px;
}

.cart-header-total {
    margin-right: 10px;
    font-size: 16px;
    color: var(--header-text-color-primary-bg, var(--text-color-primary-bg));
}

.rtl .cart-header-total {
    margin-right: unset;
    margin-left: 10px;
}

.form-control {
    border-radius: 3px;
}


.box-1-1 {
    position: relative;
    width:    100%;
}

.box-1-1:before {
    content:     "";
    display:     block;
    padding-top: 100%; /* initial ratio of 1:1*/
}

.box-1-1 .content {
    position: absolute;
    top:      0;
    left:     0;
    bottom:   0;
    right:    0;
}

/* Other ratios - just apply the desired class to the "box" element */
.box-1-1.ratio2_1:before{
    padding-top: 50%;
}
.box-1-1.ratio1_2:before{
    padding-top: 200%;
}
.box-1-1.ratio4_3:before{
    padding-top: 75%;
}
.box-1-1.ratio16_9:before{
    padding-top: 56.25%;
}

.box-1-1.ratio21_9:before{
    padding-top: 42.85%;
}

.box-1-1.ratio1_25_1::before {
    padding-top: 79.49%;
}

.product-item-out-of-stock {
    filter: grayscale(1);
}


/* ==========================================================================
   Legacy Search Autocomplete & Product Cards (Non-drawer fallback)
   ========================================================================== */

.lg-search-div:not(.header-search-drawer) .autocomplete-items {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
    transition: all 0.2s ease-in-out;
}

/* Custom Scrollbar for Autocomplete */
.lg-search-div:not(.header-search-drawer) .autocomplete-items::-webkit-scrollbar {
    width: 6px;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-items::-webkit-scrollbar-track {
    background: transparent;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-items::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-items::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Loading State & Spinner for legacy search */
.lg-search-div:not(.header-search-drawer) .autocomplete-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 10px;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(0, 0, 0, 0.08);
    border-top-color: var(--primary-color, #111111);
    border-radius: 50%;
    animation: autocomplete-spin 0.75s linear infinite;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-loading-text {
    font-size: 13px;
    color: #777777;
    font-weight: 400;
}

/* Empty State / Error for legacy search */
.lg-search-div:not(.header-search-drawer) .autocomplete-empty {
    padding: 20px 16px;
    text-align: center;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-empty-text {
    font-size: 13px;
    color: #888888;
    font-weight: 400;
}

/* Autocomplete Product Item for legacy search */
.lg-search-div:not(.header-search-drawer) .autocomplete-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-item:last-child {
    border-bottom: none;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-product-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    width: 100%;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-product-image-wrapper {
    width: 52px;
    height: 52px;
    min-width: 52px;
    overflow: hidden;
    background-color: #f4f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #aaaaaa;
    font-size: 18px;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-product-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    text-align: start;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-product-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    transition: color 0.18s ease;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-item:hover .autocomplete-product-name {
    color: var(--primary-color, #000000);
}

.lg-search-div:not(.header-search-drawer) .autocomplete-product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.lg-search-div:not(.header-search-drawer) .autocomplete-price-current {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color, #111111);
}

.lg-search-div:not(.header-search-drawer) .autocomplete-price-old {
    font-size: 11.5px;
    font-weight: 400;
    color: #9ca3af;
    text-decoration: line-through;
}

body.dark .lg-search-div:not(.header-search-drawer) .autocomplete-product-image-wrapper {
    background-color: #262626;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .lg-search-div:not(.header-search-drawer) .autocomplete-product-name {
    color: var(--dark-header-text, #f3f4f6);
}

body.dark .lg-search-div:not(.header-search-drawer) .autocomplete-item:hover .autocomplete-product-name {
    color: #ffffff;
}

body.dark .lg-search-div:not(.header-search-drawer) .autocomplete-price-current {
    color: var(--header-theme-color-primary, #ffffff);
}

body.dark .lg-search-div:not(.header-search-drawer) .autocomplete-price-old {
    color: #888888;
}

body.dark .lg-search-div:not(.header-search-drawer) .autocomplete-loading-text,
body.dark .lg-search-div:not(.header-search-drawer) .autocomplete-empty-text {
    color: #aaaaaa;
}

body.dark .lg-search-div:not(.header-search-drawer) .autocomplete-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
}

.product-crd-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.product-crd-spec > a {
   max-width: 100%;
}

.gallery-section + .gallery-section {
    padding-top: 0px;
}

.ic-menu-back {
    font-size: 22px;
    margin-right: 16px;
    font-weight: bold;
}

.rtl .ic-menu-back {
    margin-right: unset;
    margin-left: 16px;
}
    .header-logo {
        justify-content: start;
        gap: 15px;
    }
@media (max-width: 768px) {
    .footer .apps-social-icons:nth-child(2) {
        padding-left: 15px;
    }

    .rtl .footer .apps-social-icons:nth-child(2) {
        padding-right: 15px;
        padding-left: 15px;
    }

    .footer .icons-wrapper {
        padding-bottom: 10px;
        padding-top: 10px;
    }

    .footer-about-us-div {
        padding-right: 0;
    }

    .rtl .footer-about-us-div {
        padding-right: unset;
        padding-left: 0;
    }

    .category-page-slider .categories-slider {
        height: 225px;
    }

    .categories-slider .category-item, .cards-slider .card-item {
        width: 190px;
    }

    .category-page-slider .categories-slider .category-item {
        width: 165px;
    }

    .category-page-slider .categories-slider.s-slider {
        margin-right: -7.5px;
        margin-left: -7.5px;
    }

    .category-page-slider .products-slider .prod-col, .categories-slider .cat-col, .cards-slider .card-col {
        /* padding-left: 7.5px;
        padding-right: 7.5px; */
    }

    .products-slider .prod-col, .categories-slider .cat-col, .cards-slider .card-col, .testimonials-slider .testimonials-customer-card , .partners-slider .partners-item {
        display: inline-block;
        vertical-align: top;
    }

    .partners-slider .partners-item {
        vertical-align: middle;
    }

    .categories-slider, .products-slider, .cards-slider, .testimonials-slider , .partners-slider {
        overflow-y: hidden;
        overflow-x: scroll;
        white-space: nowrap;
    }
    .product-crd-spec small {
        white-space: break-spaces;
    }

    .testimonials-slider::-webkit-scrollbar { width: 0 !important }


    .categories-slider-wrapper, .products-slider-wrapper, .cards-slider-wrapper, .testimonials-slider-wrapper, .partners-slider-wrapper  {
        overflow-x: hidden;
        margin-right: 0px;
        margin-left: 0px;
    }

    /* .slider-container {
        padding-left: 0px;
        padding-right: 0px;
    } */

    .main-slider, .main-slider .slider-item {

    }

    .main-slider .slick-dots li button:before {
        font-size: 10px;
    }


    .main-slider .slick-dots {
        bottom: 4px;
    }

    .section-title {
        padding-right: 15px;
        padding-left: 15px;
    }


    .sm-search-div {
        display: block;
    }

    .icon-shopping_cart_black_36dp-1-1, .sm-search-icon > span {
        font-size: 28px;
    }

    .icon-menu-top {
        width: 32px;
    }

}


.btn:focus,.btn:active, .page-link:focus, .page-link:active {
    outline: none !important;
    box-shadow: none;
}

.gift-popover-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 115px;
    height: 140px;
    max-width: 100%;
}
.popover {
    top: 40px;
}
.popover .arrow {
    top: -0.5rem;
    left: 5px;
}
.popover .arrow::before {
    top: 0;
    border-width: 0 0.5rem 0.5rem;
    border-bottom-color: #fff;
}
.popover .arrow ::after {
    top: 1px;
    border-width: 0 0.5rem 0.5rem;
    border-bottom-color: #fff;
}

.btn-product-card-out-of-stock {
    background-color: var(--text-color-primary-bg);
    border-color: var(--text-color-primary-bg);
    color: var(--body-text-color);
    padding: 4px 10px;
    border-radius: 0;
    width: max-content;
    border: none;
  @media (max-width: 768px) {
        font-size: 12px !important;
        padding: 2px !important;
    }
}
.btn-product-card-out-of-stock:hover{
    background: var(--text-color-primary-bg);
}

.btn-product-card-out-of-stock span {
    padding-inline-start: 6px;
}
.small-warning-message{
    font-size: 1rem;
     white-space: break-spaces;
     @media (max-width: 768px) {
        font-size: 0.65rem;  
}}
.filter-primary-button{
    background-color: var(--primary-color);
    color: var(--text-color-primary-bg);
}
.filter-content .attribute-label div:nth-child(2){
justify-content: space-between;
    display: flex;
    align-items: center;
}

.add-to-wishlist {
  position: absolute;
  right: 0;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 10px;
  width: 40px;
  height: 35px;
  cursor: pointer;
  border-radius: 5px;
  background-color: transparent;
}

.rtl .add-to-wishlist {
  right: unset;
  left: 0;
}

.icon-heart-mask {
  display: inline-block;
  width: 25px;
  height: 20px;
  mask-size: 100%;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-image: var(--heart-outlined-icon);
  background-color: var(--secondary, #A1A0A9);
}

.icon-heart-mask.filled {
  mask-image: var(--heart-filled-icon);
  background-color: var(--primary_color, #D86F6F);
}

.mega-nav-root {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-root-item {
    padding: 14px 10px;
}

.mega-root-item > a {
    display: block;
    padding: 8px 6px;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
}

.mega-root-item.has-children > a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    margin-inline-start: 8px;
    vertical-align: middle;
    transition: transform .25s ease;
}

.mega-root-item.has-children:hover > a::after {
    transform: translateY(0) rotate(-135deg);
}

.mega-panel {
    display: flex;
    background: var(--menu-header-primary-color);
    color: var(--menu-header-text-color);
    padding: 20px 24px;
    z-index: 40;
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
body.dark .mega-panel {
    background-color: var(--dark-header-bg);
    color: var(--dark-header-text);
}
.mega-root-item.has-children:hover .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-panel-left {
    flex: 3;
    overflow-y: auto;
    max-height: 425px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.mega-panel-left::-webkit-scrollbar {
    width: 8px;
}

.mega-panel-left::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.mega-panel-left::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.mega-panel-left::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.35);
}

body.dark .mega-panel-left {
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

body.dark .mega-panel-left::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

body.dark .mega-panel-left::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.mega-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: start;
}
.mega-cat {
    flex: 1;
    min-width: 120px;
}
.mega-cat > a {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 16px;
    color: inherit;
    text-decoration: none;
}

.mega-cat.pseudo-all > a {
    color: var(--primary-color);
}

.mega-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-sub-list a {
    color: var(--menu-header-text-color);
    text-decoration: none;
    font-size: 16px;
    opacity: .9;
    font-weight: 300;
}

.mega-sub-list a:hover,
.mega-cat > a:hover {
    color: var(--primary-color);
}

.mega-panel-right {
    flex: 1;
    min-width: 220px;
    border-left: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.rtl .mega-panel-right {
    border-left: 0;
}

.mega-preview-img {
    max-width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.mega-preview-placeholder {
    color: #888;
    text-align: center;
    line-height: 1.4;
}

nav {
    position: unset;
}

.search-header .mega-panel {
    position: absolute;
    top: 100%;
    width: 100%;
    right: 0;
    height: 425px;
}

.rtl .search-header .mega-panel {
    left: 0;
}

.newsletter-submit {
    font-size: 20px;
    font-weight: 400;
    padding: 5px 59px 4px 60px;
    min-width: 171px;
}

.category-hero-section {
  position: relative;
  margin-bottom: 36px;
  min-height: 220px;
  overflow: hidden;
}
.products-list.grid-cols-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.products-list.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.products-list.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .products-list.grid-cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 992px) {
  .products-list.grid-cols-4,
  .products-list.grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .products-list.grid-cols-4,
  .products-list.grid-cols-3,
  .products-list.grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

.products-list .prod-col-attr {
  /* width: 25%; */
}

.category-name {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 0;
  color: var(--body-text-color);
  @media (max-width: 480px) {
    font-size: 18px;
  }
}

body.dark .category-name {
  color: var(--dark-body-text);
}
.grid-control-button {
  border: none;
  outline: none !important;
  cursor: pointer;
  background: none;
}
.category-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.category-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 16px 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  color: var(--index-banner-text-color);
}
body.dark .category-hero-content {
  color: var(--index-banner-text-color-dark); 
  }

.category-hero-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: var(--index-banner-text-color);
  @media (max-width: 480px) {
    font-size: 28px;
  }
}

body.dark .category-hero-title {
  color: var(--index-banner-text-color-dark); 
  }
.category-hero-desc {
  font-size: 16px;
  opacity: 0.85;
  margin: 0 auto;
  max-width: 58%;
  text-align: center;
  color: var(--index-banner-text-color);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  @media (max-width: 480px) {
    max-width: 100%;
    font-size: 14px;
  }
}

body.dark .category-hero-desc {
  color: var(--index-banner-text-color-dark); 
  }
@media (min-width: 768px) {
  .category-hero-section {
    margin-bottom: 56px;
    min-height: 320px;
  }
  .category-hero-content {
    padding: 80px 24px 64px 24px;
    min-height: 320px;
  }
  .category-hero-title {
    font-size: 2rem;
  }
  .category-hero-desc {
    font-size: 1.15rem;
  }
}

.grid-control-button.active svg path {
  fill: var(--primary-color);
  stroke: var(--primary-color);
}
.grid-control-button svg path {
  fill: var(--secondary-color-alt4);
  stroke: var(--secondary-color-alt4);
}

@media (min-width: 1024px) {
    .mega-menu-shell{
        flex: 1 1 0%;
    }
    .header-cart {
        flex: 1 1 0%;
    }
}
@media (max-width: 1024px) {
    .header-logo{
        flex: 1 1 0%;
    }
    .header-cart {
        flex: 1 1 0%;
    }
}
/* Footer: official logos (Saudi Business Center, VAT, Ministry of Commerce) */
.footer-trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.footer-trust-logos:empty {
    display: none;
}

.footer-icons > * + .footer-trust-logos {
    margin-top: 16px;
}

/* Logos right under the subscribe button: 24px gap instead of ~72px */
.footer-icons > .footer-trust-logos:first-child {
    margin-top: 0;
}

.footer-newsletter-form:has(+ .footer-icons > .footer-trust-logos:first-child) {
    margin-bottom: 24px !important;
}

.footer-trust-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    transition: opacity .2s ease;
}

a.footer-trust-logo:hover {
    opacity: .8;
}

.footer-trust-logo img {
    height: 40px;
    width: auto;
}


@media (max-width: 575.98px) {
    .footer-trust-logos {
        gap: 14px;
    }

    .footer-trust-logo img {
        height: 34px;
    }
}

/* Saudi Business Center: white wording in dark mode */
.footer-trust-logo .trust-logo-dark {
    display: none;
}

body.dark .footer-trust-logo .trust-logo-light {
    display: none;
}

body.dark .footer-trust-logo .trust-logo-dark {
    display: block;
}

/* Scroll reveal (toggle: General settings -> Reveal sections on scroll) */
html.reveal-on .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
}

html.reveal-on .reveal.is-revealed {
    opacity: 1;
    transform: none;
}

html.reveal-on .reveal.reveal-instant {
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    html.reveal-on .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Footer: space between the official logos and the footer image below them */
.footer-trust-logos {
    margin-bottom: 32px;
}

/* Footer bottom bar on mobile: no tall empty space above the copyright */
@media (max-width: 991.98px) {
    .footer-store-section-bars {
        min-height: 0;
        padding: 16px 0;
        gap: 8px;
    }

    .footer-store-section-bars .icons:not(:has(img, svg)) {
        display: none;
    }
}

/* Copyright text links to the theme provider */
.footer-copyrights .footer-copyrights-link {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}

.footer-copyrights .footer-copyrights-link:hover {
    opacity: .75;
}

/* Official logos: always one row. In a narrow column they scale down together
   instead of the last one dropping to a second line. At 40px high the three
   logos + gaps are about 276px wide (5.9 x height + 40px of gaps). */
.footer-trust-logos {
    flex-wrap: nowrap;
    container-type: inline-size;
}

.footer-trust-logo img {
    height: clamp(24px, calc((100cqw - 40px) / 5.9), 40px);
    width: auto;
}
