.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;
}

/* Pick the logo version by the footer background, not only by dark mode.
   footer-tone-* / footer-tone-dm-* come from layout.jinja (computed from the footer colors). */
body.footer-tone-dark:not(.dark) .footer-trust-logo .trust-logo-light,
body.dark.footer-tone-dm-light .footer-trust-logo .trust-logo-dark {
    display: none;
}

body.footer-tone-dark:not(.dark) .footer-trust-logo .trust-logo-dark,
body.dark.footer-tone-dm-light .footer-trust-logo .trust-logo-light {
    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;
}

/* Floating contact button: hidden at the top of the page, appears with the back-to-top arrow */
.whatsapp-fixed {
    opacity: 0;
    transform: translateY(3rem) scale(0.9);
    pointer-events: none;
    transition: opacity .4s ease, transform .4s ease;
}

.whatsapp-fixed.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

/* ===== Add to cart feedback (product page + product cards) ===== */
/* Press feedback on every device */
.btn-add-to-cart,
.btn-buy-now {
    transition: background-size .45s cubic-bezier(.785, .135, .15, .86), background-position .45s step-end, color .45s cubic-bezier(.785, .135, .15, .86), border .45s cubic-bezier(.785, .135, .15, .86), transform .12s ease, filter .12s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn-add-to-cart:active:not(:disabled),
.btn-buy-now:active {
    transform: scale(.97);
    filter: brightness(.9);
}

.btn-add-to-cart > span:not(.atc-done) {
    white-space: nowrap;
}

/* Spinner follows the button text color instead of fixed black */
.btn-add-to-cart .add-to-cart-progress g {
    fill: currentColor;
}

/* "Added" confirmation for ~1.4s after a successful add */
.btn-add-to-cart .atc-done {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
}

.btn-add-to-cart.is-done .atc-done {
    opacity: 1;
}

/* The check is a stroke icon: keep it out of the button's svg fill rules */
.btn-add-to-cart .atc-done svg path,
body.dark .btn-add-to-cart .atc-done svg path {
    fill: none;
}

.btn-add-to-cart.is-done > :not(.atc-done) {
    opacity: 0;
}

.btn-add-to-cart.is-loading,
.btn-add-to-cart.is-done {
    pointer-events: none;
}

/* The checkout dialog include sits between the buttons with zero width; take it out of the
   flex flow so it doesn't add an extra gap and the buttons line up */
.product-buttons-row > :not(.button):not(.add-to-wishlist) {
    position: absolute;
}

/* Phones: when "Buy now" is shown, "Add to cart" takes its own full-width row */
@media (max-width: 767px) {
    .product-buttons-row {
        flex-wrap: wrap;
    }

    .product-buttons-row:has(.btn-buy-now:not(.d-none)) .btn-add-to-cart {
        flex: 1 0 100%;
    }

    .product-buttons-row:has(.btn-buy-now:not(.d-none)) .btn-buy-now {
        flex: 1 1 0;
        width: auto;
    }

    .product-buttons-row .btn-add-to-cart,
    .product-buttons-row .btn-buy-now {
        height: 50px;
    }
}

/* ===== Product page reviews (summary card + review cards) ===== */
.reviews-v2 {
    --rv-line: #e8e8e8;
    --rv-muted: #8b8b8b;
    --rv-track: #ececec;
    --rv-soft: var(--primary-color-op-5, rgba(0, 0, 0, .04));
}

body.dark .reviews-v2 {
    --rv-line: var(--dark-border, #333);
    --rv-muted: #a0a0a0;
    --rv-track: #2c2c2c;
}

.reviews-v2__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.reviews-v2 .reviews-v2__title {
    margin: 0;
    margin-inline-start: 10px;
}

.reviews-v2__count {
    background: var(--rv-soft);
    color: var(--primary-color);
    border-radius: 999px;
    padding: 2px 12px;
    font-size: 14px;
    line-height: 1.6;
}

body.dark .reviews-v2__count {
    color: var(--dark-body-text);
}

.reviews-v2__grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    gap: 24px;
    align-items: start;
}

.reviews-v2__grid--empty {
    grid-template-columns: minmax(260px, 420px);
}

/* Let grid items shrink, so the horizontal review list on phones can't widen the page */
.reviews-v2__grid > * {
    min-width: 0;
}

.reviews-v2__summary {
    border: 1px solid var(--rv-line);
    border-radius: 14px;
    padding: 22px;
    position: sticky;
    top: 110px;
}

.reviews-v2 .reviews-v2__avg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.reviews-v2 .rating-average {
    font-size: 2.6rem !important;
    font-weight: 500;
    line-height: 1;
    min-width: 0;
    margin: 0;
}

.reviews-v2__avg-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.reviews-v2__avg-meta small {
    color: var(--rv-muted);
    font-size: 13px;
}

.reviews-v2 .reviews-v2__bar {
    display: grid;
    grid-template-columns: 34px 1fr 28px;
    align-items: center;
    gap: 10px;
    margin: 9px 0;
    font-size: 14px;
}

.reviews-v2__bar-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.reviews-v2__bar-label .icon-star1 {
    font-size: 12px;
}

.reviews-v2__track {
    display: block;
    height: 8px;
    background: var(--rv-track);
    border-radius: 999px;
    overflow: hidden;
}

.reviews-v2__fill {
    display: block;
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
}

body.dark .reviews-v2__fill {
    background: var(--primary-color-dark, var(--primary-color));
}

.reviews-v2 .reviews-v2__bar-count {
    width: auto;
    color: var(--rv-muted);
}

.reviews-v2__empty {
    color: var(--rv-muted);
    margin-bottom: 4px;
}

.reviews-v2__cta {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--rv-line);
}

.reviews-v2__grid--empty .reviews-v2__cta {
    margin-top: 12px;
    padding-top: 12px;
}

.reviews-v2__cta p {
    margin: 0 0 10px;
    color: var(--rv-muted);
    font-size: 14px;
}

.reviews-v2 .reviews-v2__cta .add-review-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    text-align: center;
    font-size: 16px;
}

/* Review cards */
.reviews-v2__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reviews-v2 .reviews-v2__card {
    margin: 0 !important;
    border: 1px solid var(--rv-line);
    border-radius: 14px;
}

.reviews-v2 .reviews-v2__card .card-body {
    padding: 18px;
}

.reviews-v2__card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.reviews-v2__avatar {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--rv-line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.reviews-v2 .reviews-v2__who {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.reviews-v2 .reviews-v2__who .card-name-customer {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.reviews-v2__verified {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 400;
    color: #2e9d5b;
    background: rgba(46, 157, 91, .09);
    border-radius: 999px;
    padding: 1px 8px;
}

.reviews-v2 .reviews-v2__who .user-review-date {
    margin: 2px 0 0;
    color: var(--rv-muted);
    font-size: 13px;
}

.reviews-v2 .reviews-v2__card .user-review-text {
    margin: 12px 0 0 !important;
    line-height: 1.7;
}

.reviews-v2 .reviews-v2__card .review-reply-card {
    margin-top: 14px !important;
    border-inline-start: 3px solid var(--primary-color);
    border-radius: 10px;
}

.reviews-v2 .reviews-v2__all {
    display: inline-block;
    margin-top: 12px;
}

.reviews-v2__dots {
    display: none;
}

/* Phones: summary on top, review cards side by side (auto-scroll from product.jinja) */
@media (max-width: 767px) {
    .reviews-v2__grid,
    .reviews-v2__grid--empty {
        grid-template-columns: 1fr;
    }

    .reviews-v2__summary {
        position: static;
    }

    .reviews-v2__list {
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        margin-inline: -20px;
        padding: 2px 20px 4px;
        scrollbar-width: none;
    }

    .reviews-v2__list::-webkit-scrollbar {
        display: none;
    }

    .reviews-v2 .reviews-v2__card {
        flex: 0 0 84%;
        scroll-snap-align: center;
    }

    /* Narrow cards: stars go under the name so the name stays on one line */
    .reviews-v2__card-top {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 12px;
        row-gap: 4px;
    }

    .reviews-v2__card-top .card-rate-comment {
        grid-column: 2;
    }

    .reviews-v2__dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
    }

    .reviews-v2__dots span {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: #d6d6d6;
        cursor: pointer;
        transition: width .3s ease, background-color .3s ease;
    }

    .reviews-v2__dots span.is-active {
        width: 20px;
        background: var(--primary-color);
    }

    .reviews-v2 .reviews-v2__all {
        display: block;
        text-align: center;
    }
}

/* ===== Icon style (General settings > Icon style: classic / rounded) ===== */
/* Both versions are in the markup; only one is shown. !important so no component rule can show both. */
body:not(.icons-rounded) .ic-rounded,
body.icons-rounded .ic-classic {
    display: none !important;
}

/* Rounded icons are stroke icons: keep them out of fill rules. !important because the add to cart
   button fills "svg path" with up to (0,2,3) specificity in its hover / dark mode rules. */
.ic-rounded path,
.ic-rounded circle {
    fill: none !important;
}

.btn-add-to-cart .ic-rounded {
    color: var(--button-text);
    transition: color .45s cubic-bezier(.785, .135, .15, .86);
}

@media (hover: hover) and (pointer: fine) {
    .btn-add-to-cart:hover .ic-rounded {
        color: var(--button-background);
    }
}

body.dark .btn-add-to-cart .ic-rounded {
    color: var(--button-text-dark);
}

/* Empty cart (cart page + side cart): same bag as the header */
.empty-cart-icon {
    display: inline-flex;
    justify-content: center;
    color: var(--primary-color);
}

.cart-empty .empty-cart-icon {
    font-size: inherit;
}

body.icons-rounded .empty-cart-icon {
    color: #b5b5b5;
}

body.dark .empty-cart-icon {
    color: var(--primary-color-dark, var(--dark-body-text));
}

body.dark.icons-rounded .empty-cart-icon {
    color: #7a7a7a;
}

/* Wishlist heart (mask icon) */
body.icons-rounded {
    --heart-outlined-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
    --heart-filled-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E");
}
