/*
 * Living custom styles.
 * Moved from Admin > Appearance > Custom CSS (style.integration.css) on 2026-10-20 so it lives in git.
 * Edit this file instead of the admin Custom CSS box.
 */

/*********Fonts**********/
@font-face {
    font-family: 'Tajawal';
    src: url('/fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'SourceCode';
    src: url('/fonts/SourceCodeVariable-Roman.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

:root {
    --primary-font: 'Tajawal', sans-serif;
}

body,
button,
input,
select,
textarea,
a,
p,
span,
div,
li,
label,
.ps-product__title,
.ps-section__header,
.header,
.navigation {
    font-family: 'Tajawal', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 400;
}

code,
pre {
    font-family: 'SourceCode', monospace !important;
}
/*********Header**********/
.header{
  overflow-x: clip !important;
}

.header.header--1,
.header.header--1 .header__top,
.header.header--1 .navigation {
    background-color: #fff9ef !important;
}

.header.header--1 .header__top {
    padding: 10px 0 !important;
}

.header.header--1 .navigation {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.header.header--1.header--sticky .navigation {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}


.ps-logo img {
    max-height: 70px !important;
} 
/* Navigation */
.navigation {
    background: #fff9ef !important;
}
/* Menu links */
.navigation .menu > li > a,
.navigation .navigation__extra > li > a,
.navigation .ps-dropdown > a,
.navigation .ps-dropdown > span,
.navigation .menu--product-categories .menu__toggle,
.navigation .menu--product-categories .menu__toggle i,
.navigation .menu--product-categories .menu__toggle span {
    color: #301100 !important;
    transition: color .25s ease;
}
/* Hover */
.navigation .menu > li > a:hover,
.navigation .menu > li.current-menu-item > a,
.navigation .navigation__extra > li > a:hover,
.navigation .ps-dropdown:hover > a,
.navigation .ps-dropdown:hover > span,
.navigation .menu--product-categories .menu__toggle:hover,
.navigation .menu--product-categories .menu__toggle:hover i,
.navigation .menu--product-categories .menu__toggle:hover span{
    color: #346844 !important;
}



/* Language dropdown */
.navigation .ps-dropdown-menu,
.navigation .ps-dropdown ul {
    background: #FFFDF9 !important;
    border: 1px solid #D7C7B4 !important;
}
.navigation .ps-dropdown-menu a,
.navigation .ps-dropdown ul a {
    color: #311000 !important;
}
.navigation .ps-dropdown-menu a:hover,
.navigation .ps-dropdown ul a:hover {
    background: #F3EBDD !important;
    color: #193020 !important;
}

.menu--dropdown > li:hover {
   background: #ede6dd59;
	color: #193020;
}

/* Header Actions */
.header__actions {
    display: flex !important;
    align-items: center;
    gap: 8px !important;
}

/* كل أيقونة */
.header__actions .header__extra {
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    padding: 4px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* حجم الأيقونة */
.header__actions .header__extra i {
    font-size: 21px !important;
}
/* الحاوية */
.header__actions .header__extra {
    position: relative !important;
}
.header .header__actions > * {
    margin: 0 6px !important;
}

/* إزالة الدائرة بالكامل */
.header__actions .header__extra span {
    position: absolute !important;
    top: -6px !important;
    right: -4px !important;

    width: auto !important;
    height: auto !important;
    min-width: auto !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    padding: 0 !important;
    margin: 0 !important;
}

/* تنسيق الرقم */
.header__actions .header__extra span i {
    position: static !important;
    display: inline !important;

    background: transparent !important;
    color: #311000 !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1 !important;

    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}
.ps-form--quick-search .form-control{
    border:0 !important;
    border-bottom:1px solid #d7c7b4 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    padding:8px 0 8px 35px;
    transition:all .25s ease;
}

.ps-form--quick-search .form-control:focus{
    border-bottom:2px solid #193020 !important;
    box-shadow:none !important;
}

.ps-form--quick-search .btn{
    background:none !important;
    border:0 !important;
    color:#311000 !important;
    padding:0 12px 0 0;
}

.ps-form--quick-search .btn:hover{
    color:#193020 !important;
}
.ps-form--quick-search {
    position: relative !important;
}

.ps-panel--search-result {
    width: 420px !important;
    min-width: 420px !important;
    max-height: 480px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    right: 0 !important;
}
/*********Header Phone**********/

/* Mobile header */
.header--mobile .navigation--mobile {
    background: #fff9ef !important;
    border-bottom: 1px solid #E7DDD0 !important;
}

.header--mobile .header__extra i,
.header--mobile .ps-block--user-header i {
    color: #311000 !important;
}

/* Mobile cart count */
.header--mobile .header__extra span {
    background: transparent !important;
    color: #311000 !important;
    top: -6px !important;
    right: -5px !important;
}

.header--mobile .header__extra span i {
    color: #311000 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Bottom mobile navigation */
.navigation--list {
    background: #fff9ef !important;
    border-top: 1px solid #E7DDD0 !important;
}

.navigation--list .navigation__item {
    color: #311000 !important;
}

.navigation--list .navigation__item i,
.navigation--list .navigation__item span {
    color: #311000 !important;
}

.navigation--list .navigation__item:hover,
.navigation--list .navigation__item:hover i,
.navigation--list .navigation__item:hover span {
    color: #193020 !important;
}
/* Mobile header layout */
.header--mobile .navigation--mobile {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 18px 30px !important;
}

/* الشعار في النص الحقيقي */
.header--mobile .navigation__left {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
}

/* أيقونة الحساب على اليسار */
.header--mobile .navigation__right {
    margin-right: auto !important;
    display: flex !important;
    align-items: center !important;
}

/* حجم الشعار */
.header--mobile .ps-logo img {
    height: 55px !important;
    width: auto !important;
}
/*********Menu**********/

/* Mega menu fix */
/* إلغاء الارتفاع الذي ينشئه Masonry */
.menu--product-categories .mega-menu-wrapper {
    height: auto !important;
}

/* ترتيب العناصر بشكل طبيعي */
.menu--product-categories .mega-menu__column {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}

/* تقسيم العناصر إلى عمودين */
.menu--product-categories .mega-menu-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(170px, 1fr)) !important;
    gap: 10px 24px !important;
}

/* عرض الميجا منيو */
.menu--product-categories .mega-menu {
    min-width: 380px !important;
    width: max-content !important;
}
/* Shop blocks */
.ps-page--shop .ps-block--shop-features,
.ps-page--shop .ps-shop-banner,
.ps-page--shop .ps-shop-brand,
.ps-page--shop .ps-shop-categories {
    display: block;
}

/* home page banner width */
#homepage-1 .ps-home-banner .ps-container {
  width: 100% !important; 
  max-width:100% !important;
  padding:0px !important;
}
#homepage-1 .ps-home-banner {
 	padding-top:0px !important; 
}

/*********Banner**********/

.ps-home-banner .ps-banner {
    display: block !important;
    min-height: 80vh !important; 
    background-image: var(--desktop-bg) !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.ps-home-banner .owl-stage-outer,
.ps-home-banner .owl-stage,
.ps-home-banner .owl-item {
    min-height: 50vh !important;
}

@media (max-width: 767px) {
    .ps-home-banner .ps-banner {
        min-height: 65vh !important;
        background-image: var(--mobile-bg) !important;
    }

    .ps-home-banner .owl-stage-outer,
    .ps-home-banner .owl-stage,
    .ps-home-banner .owl-item {
        min-height: 65vh !important;
    }
}
/* wishlist */
.wishlist-heart {
    width: 18px;
    height: 18px;
    stroke: #111;
    stroke-width: 1.8;
    fill: transparent;
    transition: 0.2s ease;
}

.product-detail-wishlist .wishlist-heart {
    width: 24px;
    height: 24px;
}

.js-add-to-wishlist-button.is-in-wishlist .wishlist-heart,
.js-remove-from-wishlist-button .wishlist-heart {
    fill: #111;
    stroke: #111;
}
/* cart wishlist */
.product-cart-wishlist {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    box-shadow: none !important;
}

.product-cart-wishlist .wishlist-heart {
    width: 20px;
    height: 20px;
}

.product-cart-wishlist:hover {
    background: transparent !important;
} 


/*checkout page*/
.checkout-logo-wrapper {
    display: flex;
    justify-content: flex-start;
    padding: 10px;
}

.checkout-logo-wrapper img {
    max-height: 70px;
    max-width: 180px;
    width: auto;
}
 /* return to cart text */
a[href*="cart"] {
    font-weight: 600;
    display: inline-block;
}

/*checkout for mobile*/
@media (max-width: 767px) {
    .checkout-left-column {
        display: flex;
        flex-direction: column;
    }

    .checkout-left-column > div:first-child {
        order: -30;
    }

    .checkout-left-column > .bb-form-field-top_back_to_cart,
    .checkout-left-column a[href*="cart"] {
        order: -25;
    }

    .mobile-order-summary {
        order: -20;
    }

    .mobile-discount-wrapper {
        order: -19;
    }
}

/* cart page */
.ps-shopping-cart .cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: flex-start;
}

.ps-shopping-cart .cart-items {
    min-width: 0;
}

.ps-shopping-cart .cart-summary {
    position: sticky;
    top: 120px;
}

.ps-shopping-cart .table-responsive,
.ps-shopping-cart .ps-block--shopping-total,
.ps-shopping-cart .form-coupon-wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
}

.ps-shopping-cart .form-coupon-wrapper {
    margin-top: 20px;
}

.ps-shopping-cart .cart-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.ps-shopping-cart .cart-actions .ps-btn {
    width: 100%;
    text-align: center;
}

.checkout-btn {
    background-color: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
}

.checkout-btn:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

body[dir="rtl"] .ps-table--shopping-cart thead tr th:first-child {
    text-align: right !important;
}

/* wishlist + remove buttons desktop */
.cart-actions-cell {
    width: 56px;
    min-width: 56px;
    vertical-align: middle;
}

.cart-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cart-actions-wrapper .btn,
.cart-actions-wrapper .remove-cart-button {
    position: static !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* recommended products */
.cart-recommended-products h3 {
    text-align: left;
}

body[dir="rtl"] .cart-recommended-products h3 {
    text-align: right;
}

@media (max-width: 991px) {
    .ps-shopping-cart .cart-layout {
        display: block;
    }

    .ps-shopping-cart .cart-summary {
        position: static;
        margin-top: 24px;
    }
}

/* mobile cart */
@media (max-width: 767px) {
    .ps-table--shopping-cart thead {
        display: none;
    }

    .ps-table--shopping-cart,
    .ps-table--shopping-cart tbody,
    .ps-table--shopping-cart tr,
    .ps-table--shopping-cart td {
        display: block;
        width: 100%;
    }

    .ps-table--shopping-cart tr {
        background: #fff;
        border: 1px solid #eee;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 16px;
        position: relative;
    }

    .ps-table--shopping-cart td {
        border: 0 !important;
        padding: 0 !important;
        text-align: right !important;
    }

    .ps-product--cart {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .ps-product--cart .ps-product__thumbnail {
        width: 88px;
        flex: 0 0 88px;
    }

    .ps-product--cart .ps-product__thumbnail img {
        width: 88px;
        height: 88px;
        object-fit: cover;
        border-radius: 8px;
    }

    .ps-product--cart .ps-product__content {
        flex: 1;
        min-width: 0;
    }

    .ps-product--cart .ps-product__content a {
        display: block;
        font-weight: 600;
        line-height: 1.5;
    }

    /* إخفاء سعر الوحدة */
    .ps-table--shopping-cart td.price {
        display: none !important;
    }

    /* الكمية + المجموع في نفس السطر */
    .ps-table--shopping-cart td:nth-child(3),
    .ps-table--shopping-cart td:nth-child(4) {
        display: inline-flex !important;
        align-items: center;
        margin-top: 16px;
        vertical-align: middle;
    }

    .ps-table--shopping-cart td:nth-child(3) {
        width: 45% !important;
        justify-content: flex-start;
    }

    .ps-table--shopping-cart td:nth-child(4) {
        width: 45% !important;
        justify-content: flex-end;
        text-align: left !important;
        font-weight: 700;
        min-height: 40px;
    }

    .ps-table--shopping-cart .product__qty {
        justify-content: flex-start;
    }

    /* القلب والحذف تحت */
    .cart-actions-cell {
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        margin-top: 16px;
    }

    .cart-actions-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .cart-actions-wrapper .move-to-wishlist-btn,
    .cart-actions-wrapper .remove-cart-button, .product-cart-wishlist {
        position: static !important;
        width: 100% !important;
        height: 40px !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
        background: #fff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
  

    .ps-shopping-cart .cart-layout {
        display: block;
    }

    .ps-shopping-cart .cart-summary {
        position: static;
        margin-top: 24px;
    }
}


 /* Hide cart in the header*/
@media (max-width: 479px) {
   .ps-cart--mini {
    display: none;
	}
}

@media screen and (max-width: 1199px) {
    html body#product-page nav.navigation--mobile-product {
        display: none !important;
    }

    html body#product-page .navigation--list {
        display: block !important;
    }

    html body#product-page .navigation--list .navigation__content {
        display: flex !important;
    }
}
/*product page desing */
.product-spec-top {
    margin-top: 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.product-spec-top summary {
    cursor: pointer;
    padding: 16px 0;
    font-size: 18px;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-spec-top summary::-webkit-details-marker {
    display: none;
}

.product-spec-top summary::after {
    content: "+";
    font-size: 24px;
    font-weight: 300;
}

.product-spec-top[open] summary::after {
    content: "−";
}

.product-spec-top .row {
    margin: 0;
}

.product-spec-top .col-xl-10 {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0;
}

.product-spec-top table {
    width: 100%;
    border-collapse: collapse;
}

.product-spec-top table tr {
    border-bottom: 1px solid #eee;
}

.product-spec-top table td {
    padding: 12px 0;
    font-size: 14px;
}

.product-spec-top table td:first-child {
    color: #888;
    font-weight: 400;
    width: 40%;
}

.product-spec-top table td:last-child {
    color: #222;
    font-weight: 600;
}

.ps-product__desc .ps-list--dot,
.ps-product__desc .ps-list--dot p {
    font-size: 18px !important;
    line-height: 1.9;
}
.ps-product--detail .ps-product__desc {
 
     border-bottom: none;
}

/* */
@media (min-width: 1200px) {
    #product-page .ps-product--detail > .ps-product__header {
        display: grid !important;
        grid-template-columns: 60% 40% !important;
        gap: 30px;
    }

    #product-page .ps-product--detail > .ps-product__header > .ps-product__thumbnail {
        width: 100% !important;
        max-width: 100% !important;
    }

    #product-page .ps-product--detail > .ps-product__header > .ps-product__info {
        width: 100% !important;
        max-width: 100% !important;
    }
}
#product-page .navigation .ps-product--header-sticky .ps-product__thumbnail {
    width: 80px !important;
    max-width: 80px !important;
    flex: 0 0 80px !important;
}

#product-page .navigation .ps-product--header-sticky .ps-product__thumbnail img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
}
.ps-product--header-sticky .ps-product__price span {
     color: #000000;
}
.ps-product--detail > .ps-product__content {
    padding-top: 30px;
}

/* product mobile*/
@media (max-width: 767px) {
    #product-page .ps-product__shopping {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: stretch;
    }

    #product-page .ps-product__shopping figure {
        margin: 0 !important;
    }

    #product-page .ps-product__shopping figure figcaption {
        display: none;
    }

    #product-page .ps-product__shopping .product__qty,
    #product-page .ps-product__shopping .ps-btn,
    #product-page .ps-product__actions,
    #product-page .ps-product__actions a {
        width: 100% !important;
        height: 52px !important;
        margin: 0 !important;
    }

    #product-page .ps-product__shopping .ps-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 10px !important;
        font-size: 16px;
        border-radius: 4px;
    }

    /* زر أضف للسلة أسود */
    #product-page .ps-product__shopping button[name="add_to_cart"] {
        background: #000 !important;
        color: #fff !important;
    }

    /* زر اشتر الآن بيج */
    #product-page .ps-product__shopping button[name="checkout"] {
        background: #d8c7b3 !important;
        color: #000 !important;
    }

    /* القلب */
    #product-page .ps-product__actions {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #product-page .product-detail-wishlist {
        display: flex !important;
        align-items: center;
        justify-content: center;
        border: 1px solid #eee;
        background: #fff;
        border-radius: 4px;
    }
}
@media (max-width: 767px) {
    #product-page .ps-tab-list {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        border-bottom: 1px solid #eee;
        margin-top: 25px;
    }

    #product-page .ps-tab-list li {
        text-align: center;
        margin: 0 !important;
    }

    #product-page .ps-tab-list li a {
        display: block;
        padding: 14px 5px;
        font-size: 16px;
        font-weight: 600;
        color: #999 !important;
        border-bottom: 2px solid transparent;
    }

    #product-page .ps-tab-list li.active a {
        color: #000 !important;
        border-bottom-color: #000;
    }
}


/*changes on product page*/

/* Sticky product gallery - product page only */
@media (min-width: 992px) {
    #product-page .ps-product--detail > .ps-product__header {
        align-items: flex-start !important;
    }

    #product-page .ps-product--detail > .ps-product__header > .ps-product__thumbnail {
        position: sticky !important;
        top: 120px;
        align-self: flex-start !important;
        z-index: 2;
    }
}
/* changes on product view */ 

/* ===== بطاقة المنتج - محصورة بصفحة القائمة فقط ===== */

/* القلب فوق الصورة - زاوية يسار فوق */
.ps-shopping-product .ps-product__wishlist-icon {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ps-shopping-product .ps-product__wishlist-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #555;
    stroke-width: 1.5;
}
.ps-shopping-product .ps-product__wishlist-icon.active svg {
    fill: #e63946;
    stroke: #e63946;
}
.ps-shopping-product .ps-product__content {
    text-align: center;
}

/* عنوان المنتج */
.ps-shopping-product .ps-product .ps-product__title,
.ps-shopping-product a.ps-product__title {
    color: #000 !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: calc(1.4em * 2) !important;
}
/* السعر Bold وأكبر */
.ps-shopping-product .ps-product__price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000;
    text-align: center;
    justify-content: center;
}

/* زر أضف للسلة - خلفية واضحة */
.ps-shopping-product .ps-product__add-to-cart-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 0;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background: #6f5a4c !important;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
}
.ps-shopping-product .ps-product__add-to-cart-btn:hover {
    background: #000 !important;
}

/* حاوية الصورة لازم overflow: hidden عشان التكبير ما يفيض بره البطاقة */
.ps-shopping-product .ps-product__thumbnail {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px;
}

.ps-shopping-product .ps-product__thumbnail img {
    transition: transform 0.4s ease;
    width: 100%;
    display: block;
}

.ps-shopping-product .ps-product__thumbnail:hover img {
    transform: scale(1.08);
}

/* إزالة أي إطار أسود موجود حاليًا عند hover */
.ps-shopping-product .ps-product__thumbnail:hover,
.ps-shopping-product .product-item:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.ps-shopping-product .ps-product {
    border: 1px solid transparent !important;
    transition: all 0.35s ease;
    border-radius: 10px;
}

.ps-shopping-product .ps-product:hover {
    border-color: transparent !important;
    background-color: #ffffff !important; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    /* مسافة أوسع بين البطاقات (صفوف وأعمدة) */
    .ps-product-list,
    .products-grid,
    .row.products {
        gap: 16px !important;
    }

    /* حشو داخلي أوسع جوا كل بطاقة */
    .ps-shopping-product .ps-product {
        padding: 10px !important;
        border-bottom: none !important;
    }

    /* مسافة فوق العنوان وتحت الصورة */
    .ps-shopping-product .ps-product__content {
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 130px;
    }

    /* تصغير حجم السعر */
    .ps-shopping-product .ps-product__price {
        font-size: 16px !important;
        font-weight: 700 !important;
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
        min-height: 26px;
        margin-bottom: 8px;
    }

    .ps-shopping-product .ps-product__price del {
        font-size: 12px;
        font-weight: 400;
        color: #999;
    }

    /* تصغير حجم الخط والحشو بالزر شوي يريح المساحة */
    .ps-shopping-product .ps-product__add-to-cart-btn {
        padding: 10px 0;
        font-size: 13px;
    }

    /* إزالة الخط الفاصل تحت الصفوف */
    .row.products > div {
        border-bottom: none !important;
    }
}

/******* صفحة عرض المنتجات (تخطيط عام - خاص بصفحة القائمة أصلاً، بدون تعارض) ***********/

/* ===== التخطيط العام - عمود واحد كامل العرض ===== */
.ps-layout--shop-horizontal {
    display: block !important;
    grid-template-columns: 1fr !important;
}

.ps-layout--shop-horizontal .ps-layout__right {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.ps-layout--shop-horizontal .ps-layout__left {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 24px;
}

.ps-layout--shop-horizontal .ps-layout__left-container,
.ps-layout--shop-horizontal .ps-layout__left-content {
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== صف الفلاتر الأفقي ===== */
.bb-product-form-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 12px !important;
    align-items: flex-start;
    justify-content: flex-start !important;
}

.bb-product-filter {
    position: relative;
    display: inline-block;
    flex: 0 0 auto !important;
    background: transparent !important;
    padding: 0 !important;
}

.bb-product-filter-attributes {
    display: contents !important;
}

.bb-product-filter-attribute-item {
    position: relative !important;
    display: inline-block !important;
    flex: 0 0 auto !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.bb-product-filter-title,
.bb-product-filter-attribute-item .bb-product-filter-title {
    cursor: pointer;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid #e5ddd0 !important;
    border-radius: 30px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: 14px;
    font-weight: 500;
    color: #301100;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all .2s ease;
}

.bb-product-filter-title::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform .2s ease;
}

.bb-product-filter.active .bb-product-filter-title::after,
.bb-product-filter-attribute-item.active .bb-product-filter-title::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.bb-product-filter-title:hover {
    border-color: #6f5a4c !important;
}

.bb-product-filter-content,
.bb-product-filter-attribute-item .bb-product-filter-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    min-width: 240px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 14px;
    z-index: 30;
}

.bb-product-filter.active .bb-product-filter-content,
.bb-product-filter-attribute-item.active .bb-product-filter-content {
    display: block !important;
}

/* ===== الفلاتر على الجوال - عمودي كامل العرض ===== */
@media (max-width: 767px) {
    .ps-layout__left-content .bb-product-form-filter {
        flex-direction: column !important;
        width: 100% !important;
    }

    .ps-layout__left-content .bb-product-filter,
    .ps-layout__left-content .bb-product-filter-attribute-item {
        width: 100% !important;
        margin: 0 !important;
    }

    .ps-layout__left-content .bb-product-filter-title {
        width: 100% !important;
        justify-content: space-between !important;
    }

    .ps-layout__left-content .bb-product-filter-content,
    .ps-layout__left-content .bb-product-filter-attribute-item .bb-product-filter-content {
        width: 100% !important;
        min-width: 100% !important;
        position: static !important;
        box-shadow: none !important;
        border-top: none !important;
        margin-top: -1px;
    }
}

/* ===== إخفاء زر Grid/List ===== */
.ps-shopping__view {
    display: none !important;
}

/* ===== صف الترتيب + عدد المنتجات (بمكانهم الأصلي، مسحوبين بصريًا لفوق) ===== */
.bg-light.py-2.mb-3 {
    margin-top: -58px;
    background: transparent !important;
    position: relative;
    z-index: 5;
}

.bg-light .col-12.col-sm-6.col-md-3.d-xl-none {
    display: none;
}

.products-found {
    padding-top: 0 !important;
    font-size: 14px;
    color: #555;
}

/* ===== تنسيق أيقونة الترتيب - دائرية بس بدون نص ===== */
.select2-container--default .select2-selection__rendered {
    display: none !important;
}
.select2-container--default .select2-selection__arrow {
    display: none !important;
}
.select2-container {
    width: auto !important;
}
.select2-container--default .select2-selection--single {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #e5ddd0 !important;
    background: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}
.select2-container--default .select2-selection--single::before {
    content: "⇅";
    font-size: 16px;
    color: #301100;
}
.select2-container--default .select2-selection--single:hover {
    border-color: #6f5a4c !important;
}
.select2-dropdown {
    width: auto !important;
    min-width: 220px !important;
}

/* نلغي السحب السالب على الجوال بس (يبقى للديسكتوب فقط) */
@media (max-width: 767px) {
    .bg-light.py-2.mb-3 {
        margin-top: 12px !important;
        position: sticky;
        top: 0;
        z-index: 50;
        background: #fff !important;
        padding-bottom: 10px !important;
    }

    .bg-light .col-12.col-sm-6.col-md-3.d-xl-none {
        display: block !important;
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 0 4px !important;
    }

    .bg-light .col-12.col-sm-6.px-2.px-sm-3 {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
        padding: 0 4px !important;
    }

    .bg-light .row {
        flex-wrap: nowrap !important;
    }

    .header__filter {
        margin: 0 !important;
    }

    .header__filter button#products-filter-sidebar {
        width: 100%;
        height: 44px;
        border-radius: 8px;
        border: 1px solid #e5ddd0 !important;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: #301100;
        font-size: 14px;
    }

    .header__filter button#products-filter-sidebar i {
        font-size: 16px;
    }

    .bg-light .col-12.col-sm-6.px-2.px-sm-3 .d-flex {
        width: 100%;
    }

    .select2-container--default {
        width: 100% !important;
    }

    .select2-container--default .select2-selection--single {
        width: 100% !important;
        height: 44px !important;
        border-radius: 8px !important;
        border: 1px solid #e5ddd0 !important;
        background: #fff !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 6px !important;
        box-sizing: border-box !important;
    }

    .select2-container--default .select2-selection__rendered {
        display: block !important;
        font-size: 13px;
        color: #301100;
        padding: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .select2-container--default .select2-selection__arrow {
        display: none !important;
    }

    .ps-layout__left {
        display: none;
    }

    .ps-layout__left.is-open {
        display: block !important;
        margin-top: 12px;
    }

    body.show-admin-bar .bg-light.py-2.mb-3 {
        top: 40px !important; 
    }
}
/* ===== بطاقة المنتج - محصورة بصفحة القائمة + قسم منتجات ذات صلة ===== */

/* القلب فوق الصورة - زاوية يسار فوق */
.ps-shopping-product .ps-product__wishlist-icon,
.ps-section--default .ps-product__wishlist-icon {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.ps-shopping-product .ps-product__wishlist-icon svg,
.ps-section--default .ps-product__wishlist-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #555;
    stroke-width: 1.5;
}
.ps-shopping-product .ps-product__wishlist-icon.active svg,
.ps-section--default .ps-product__wishlist-icon.active svg {
    fill: #e63946;
    stroke: #e63946;
}
.ps-shopping-product .ps-product__content,
.ps-section--default .ps-product__content {
    text-align: center;
}

/* عنوان المنتج */
.ps-shopping-product .ps-product .ps-product__title,
.ps-shopping-product a.ps-product__title,
.ps-section--default .ps-product .ps-product__title,
.ps-section--default a.ps-product__title {
    color: #000 !important;
    font-weight: 500 !important;
    text-align: center !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: calc(1.4em * 2) !important;
}
/* السعر Bold وأكبر */
.ps-shopping-product .ps-product__price,
.ps-section--default .ps-product__price {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #000;
    text-align: center;
    justify-content: center;
}

/* زر أضف للسلة - خلفية واضحة */
.ps-shopping-product .ps-product__add-to-cart-btn,
.ps-section--default .ps-product__add-to-cart-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px 0;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    background: #6f5a4c !important;
    color: #fff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
}
.ps-shopping-product .ps-product__add-to-cart-btn:hover,
.ps-section--default .ps-product__add-to-cart-btn:hover {
    background: #000 !important;
}

/* حاوية الصورة لازم overflow: hidden عشان التكبير ما يفيض بره البطاقة */
.ps-shopping-product .ps-product__thumbnail,
.ps-section--default .ps-product__thumbnail {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px;
}

.ps-shopping-product .ps-product__thumbnail img,
.ps-section--default .ps-product__thumbnail img {
    transition: transform 0.4s ease;
    width: 100%;
    display: block;
}

.ps-shopping-product .ps-product__thumbnail:hover img,
.ps-section--default .ps-product__thumbnail:hover img {
    transform: scale(1.08);
}

/* إزالة أي إطار أسود موجود حاليًا عند hover */
.ps-shopping-product .ps-product__thumbnail:hover,
.ps-shopping-product .product-item:hover,
.ps-section--default .ps-product__thumbnail:hover,
.ps-section--default .product-item:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.ps-shopping-product .ps-product,
.ps-section--default .ps-product {
    border: 1px solid transparent !important;
    transition: all 0.35s ease;
    border-radius: 10px;
}

.ps-shopping-product .ps-product:hover,
.ps-section--default .ps-product:hover {
    border-color: transparent !important;
    background-color: #ffffff !important; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-3px);
}

/* زر العودة لأعلى الصفحة */
#back2top {
    position: fixed !important;
    bottom: 80px !important; /* فوق شريط التنقل السفلي على الجوال */
    left: 16px !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #6f5a4c !important;
    color: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    z-index: 40 !important;
    cursor: pointer;
}

#back2top:hover {
    background: #000 !important;
}

#back2top i {
    color: #fff !important;
    font-size: 16px;
}
.ps-pagination .pagination {
    margin: 20px auto !important;
    padding: 10px 14px !important;
    list-style: none !important;
}

.ps-pagination .page-item {
    margin: 0 !important;
    padding: 0 !important;
}
/* إلغاء الحشو الزائد فوق الترقيم */
.ps-pagination {
    padding: 10px 0 0 0 !important;
}

/* إلغاء الحشو الزائد أسفل التخطيط العام (المسافة قبل الفوتر) */
.ps-layout--shop-horizontal {
    padding-bottom: 10px !important;
}
@media (max-width: 767px) {
    div.mt-40.mb-40, .ps-layout__right {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
    .ps-footer{
        padding-top: 10px;
    }
}

/* Footer */
@media (max-width: 767px) {
    .ps-footer .widget-title {
        cursor: pointer;
        position: relative;
        margin: 0 !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid #eee;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }

    .ps-footer .widget-title::after {
        content: "+";
        font-size: 20px;
        font-weight: 300;
        transition: transform .2s ease;
    }

    .ps-footer .widget.is-open .widget-title::after {
        content: "−";
    }

    /* نخفي محتوى كل قسم افتراضيًا، ونظهره بس لما يكون مفتوح */
    .ps-footer .widget > *:not(.widget-title) {
        display: none;
    }

    .ps-footer .widget.is-open > *:not(.widget-title) {
        display: block !important;
        padding-bottom: 14px;
    }
      .ps-footer__widgets,
    .ps-footer__links {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .ps-footer__widgets > *,
    .ps-footer__links > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
  .footer-payments p span {
    display: inline-flex;
    align-items: center;
    margin-inline-end: 8px;
}
.ps-footer__copyright {
    padding: 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ps-footer .ps-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
}

}
.footer-payments p span img {
    max-height: 24px;
    width: auto;
    object-fit: contain;
}

.ps-product--detail .ps-product__specification p.categories a, .ps-breadcrumb .breadcrumb a {
    color: #346844 !important;
}
.ps-breadcrumb {
    background-color: #e8e3db !important;
}