
:root {
  --color-primary: #16a34a;        /* سبز اصلی */
  --color-primary-dark: #15803d;   /* سبز تیره */
  --color-accent: #0b3d26;  
  --color-accent-dark: #0b3d26;       /* سبز خیلی تیره (اکسنت) */
  --color-accent-light: #22c55e;   /* سبز روشن */
  --color-danger: #dc2626;         /* قرمز خطا */
  --color-danger-dark: #b91c1c;
  --color-border: #e5e7eb;         /* خاکستری بوردر */
  --color-bg-light: #f9fafb;       /* پس‌زمینه روشن */
  --color-text: #374151;           /* متن اصلی */
  --color-muted: #6b7280;          /* متن خاکستری */
}

/* 
:root {
  --color-primary: #0b3d26;
  --color-primary-dark: #1e40af;
  --color-accent: #16a34a;
  --color-accent-dark: #15803d;
  --color-danger: #dc2626;
  --color-danger-dark: #b91c1c;
  --color-border: #e5e7eb;
  --color-bg-light: #f9fafb;
  --color-text: #374151;
  --color-muted: #6b7280;
} */

.searchbox-header {
    width: 45%;
}
.search-modal {
    width: 600px;
}
.header-logo img {
    width: 160px;
}
.trust-footer-logo {
    display: flex
;
    justify-content: center;
}
ul.searchresult-header li > a > img {
    width: 60px;
    height: auto;
}
ul.searchresult-mobile li > a > img {
    width: 60px;
    height: auto;
}
.header-search-productname del {
    font-size: 13px;
    margin-left: 9px;
}
.header-search-productname span {
    color: #000;
    font-size: 14px;
}

.searchresult-header .more-results a {
    font-size: 13px;
    color: #000;
}
.searchresult-mobile .more-results a {
    font-size: 13px;
    color: #000;
}
li.megamenu-title-mi a {
    position: relative;
    padding-right: 0.5rem;
    font-family: Dana DemiBold;
    font-size: 1rem;
    line-height: 1.5rem;
    --tw-text-opacity: 1;
    color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.megamenu-title-mi a::before {
    content: "";
    position: absolute;
    right: -0.125rem;
    height: 100%;
    width: 0.125rem;
    border-radius: 0.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(96 165 250 / var(--tw-bg-opacity, 1));
}
.header-mobile-logo img {
    width: 140px;
}
.header-mobile-logo-menu img{
    width: 140px;
}

.mobilemenumodal .link-list li > ul > li{
    padding-right: inherit;
}
.mobilemenumodal .link-list li a{
    padding-right: 10px;

}

.mobilemenumodal .link-list li > ul {
    background: #dedede;
    margin-top: 15px;
}

.mobilemenumodal .link-list li > ul > li > ul{
    background: #cfcfcf;
}

.mobilemenumodal .link-list li > ul > li > ul > li > ul {
    background: #b9b9b9;
}

.mobilemenumodal ul.link-list.navbar-nav-ul {
    padding-top: 10px;
}
.mobilemenumodal .link-list li > ul > li> div > a {
    padding-right: 20px;
}
.mobilemenumodal .link-list li > ul > li > ul > li > div > a {
    padding-right: 35px;
}

.mobilemenumodal .link-list li > ul > li > ul > li > ul > li > div > a{
    padding-right: 45px;
}


.caret-li::before {
    content: "\ea60";
    color: #bcbcbc;
    display: inline-block;
    margin-right: 6px;
    font-family: 'tabler-icons';
    float: left;
    font-size: 21px;
}
/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.caret-down-li::before {
  transform: rotate(-90deg);
}

/* Hide the nested list */
.nested-ul{
  display: none;
}
/* Show the nested list when the user clicks on the caret/arrow (with JavaScript) */
.active-cat{
  display: block;
}
.link-list li a {
    color: #414141 !important;
    font-size: 14px;
}
.link-list li {
    padding-bottom: 13px;
}
.link-list li > ul > li {
    padding-top: 10px;
    padding-right: 10px;
}

.CategoryUl {
    margin-bottom: 10px;
    margin-top: 20px;
    padding-left: 11px;
    padding-right: 11px;
}
.link-list li > ul > li a {
    font-size: 13px;
}
.link-list > li > ul > li > ul {
    margin-top: 10px;
}
.mobilemenumodal {
    overflow: auto;
}

input.notarrowNumber::-webkit-outer-spin-button,
input.notarrowNumber::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input.notarrowNumber[type=number] {
  -moz-appearance: textfield;
}
.auth-loginbox .auth-loginlogo img{
    width: 180px;
}



#snackbar{
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: var(--color-danger);
    color: #fff;
    text-align: center;
    border-radius: 10px;
    padding: 16px;
    position: fixed;
    z-index: 11111;
    left: 50%;
    bottom: 80px;
  }
  #snackbar.success{
    background-color: var(--color-accent);
  }
  #snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
  }
  
  @-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 80px; opacity: 1;}
  }
  
  @keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 80px; opacity: 1;}
  }
  
  @-webkit-keyframes fadeout {
    from {bottom: 80px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
  }
  
  @keyframes fadeout {
    from {bottom: 80px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
  }

h2.error-page-title {
    font-size: 52px;
}

a.edit-element i {
    font-size: 32px;
}
a.edit-element {
    background-color: var(--color-primary);
    color: #fff;
    position: fixed;
    left: 19px;
    bottom: 50px;
    padding: 10px 12px;
    border-radius: 50%;
    height: 56px;
    width: 56px;
}
@media only screen and (max-width: 768px) {
.tab-descr-product {
    overflow-x: scroll;
}
}
.tab-descr-product-box h1{
    font-size: 32px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.tab-descr-product-box h2{
    font-size: 28px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.tab-descr-product-box h3{
    font-size: 24px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.tab-descr-product-box h4{
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.tab-descr-product-box h5{
    font-size: 16px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.tab-descr-product-box h6{
    font-size: 14px;
    margin-bottom: 20px;
    margin-top: 10px;
}
.tab-descr-product-box ul {
    list-style: disc;
    margin-right: 20px;
}
.tab-descr-product-box table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tab-descr-product-box thead {
  background: linear-gradient(45deg, #4fc3f7, #81c784);
  color: #fff;
  text-align: left;
}

.tab-descr-product-box thead th {
  padding: 12px 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tab-descr-product-box tbody tr {
  border-bottom: 1px solid #e6e6e6;
  transition: background 0.2s ease-in-out;
}

.tab-descr-product-box tbody tr:nth-child(even) {
  background-color: #f9fcff;
}

.tab-descr-product-box tbody tr:nth-child(odd) {
  background-color: #ffffff;
}

.tab-descr-product-box tbody td {
  padding: 10px 15px;
  color: #333;
}

.tab-descr-product-box tbody tr:hover {
  background-color: #e3f2fd;
}

.tab-descr-product-box tbody tr:last-child {
  border-bottom: 3px solid #4fc3f7;
}


.table-row-sps {
    display: block;
    background: #eee;
    min-height: 41px;
    margin-bottom: 10px;
    padding: 5px 9px;
    overflow: hidden;
}

.table-col-1 {
    width: 20%;
    float: right;
    border-left: 1px solid #aeaeae;
}
.table-col-2 {
    width: 69%;
    float: right;
    padding-right: 10px;
}

@media (min-width: 768px) {
    .product-card {
        height: 26rem !important;
    }
}
@media (min-width: 360px) {
    .product-card_rate {
        display: inherit;
    }
}
.ml-3 {
    margin-left: 8px;
}
.short-desctiption-product ul {
    list-style: disc;
    margin-right: 14px;
}
.mb-3 {
    margin-bottom: 25px;
}

.price-section-product .price-product {
    font-size: 26px;
    font-weight: bold;
}

.price-section-product .old-price {
    font-size: 26px;
    font-weight: bold;
}
.price-section-product .old-price {
    font-size: 16px;
    text-decoration: line-through;
    color: #969696;
}

span.price-discount-label {
    font-size: 13px;
    background-color: #c51b1b;
    border-radius: 10px;
    padding: 3px 11px;
    color: #fff;
}

.reminder-modal-icon i {
    font-size: 59px;
    margin-top: 29px;
    color: #707070;
}
input.reminder-input {
    border: 1px solid #b6b6b6;
    min-height: 50px;
    border-radius: 12px;
    padding: 10px;
}
.option_id {
    cursor: pointer;
}
.option_id.active {
    background-color: var(--color-primary);
    color: #fff;
}
img.product-brand-img {
    width: 100px;
}
.table-row-sps.category-pr-row img {
    width: 31px;
    float: right;
    margin-left: 10px;
}
.freeshipping {
    position: absolute;
    left: 0;
    background-color: #15a34a;
    padding: 2px 10px;
    border-radius: 15px;
    font-size: 14px;
    color: #fff;
}
.side-modal {
    z-index: 9999;
}

.emptycart-text h5 {
    margin-bottom: 20px;
}
.emptycart-text .btn-back-to-shopping {
    background-color: #eee;
    border-radius: 10px;
    padding: 4px 12px;
    margin-top: 37px;
}
.emptycart-text i {
    font-size: 53px;
}
.emptycart-text {
    text-align: center;
    margin-top: 50px;
}
.cart-item-div a {
    font-size: 14px;
}
.shopping-cart-delete i {
    font-size: 16px;
    position: absolute;
    top: 51px;
    left: 5px;
    color: #cd1c1c;
}
.cart-item-div {
    position: relative;
}
.product-card.group {
    position: relative;
}
a.notavailableShop img {
    filter: grayscale(1);
}
.notavailableIMG {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    pointer-events: none;
}
.searchbar-sidebar-widget {
    padding: 10px 21px;
}
.searchbar-sidebar-widget input {
    margin-top: 11px;
}
.notfoundproduct {
    top: 140px;
    text-align: center;
    min-height: 150px; 
    color: #555;
}

.notfoundproduct i {
    font-size: 48px;
    color: #999;
    margin-bottom: 10px;
}

.notfoundproduct h3 {
    font-size: 18px;
    font-weight: 600;
}
ul#shop-brands {
    height: 200px;
    overflow: auto;
}
ul#shop-brands > li {
    padding: 1px;
    font-size: 13px;
}
ul#shop-brands .form-check-input[type=checkbox]{
    padding-right: 10px;
}
input#brandsearch {
    height: 48px;
    font-size: 12px;
}
ul.sort-by-filter li {
    cursor: pointer;
}


.blog-page .breadcrumb a {
    color: var(--color-primary); 
    text-decoration: none;
}
.blog-page .breadcrumb a:hover {
    color: var(--color-primary-dark);
}

.blog-page .content-block {
    transition: box-shadow 0.3s ease;
}
.blog-page .content-block:hover {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.blog-page .content-block img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
}

.blog-page .content-block h2 a {
    color: #1f2937;
    font-weight: 600;
    transition: color 0.3s;
}
.blog-page .content-block h2 a:hover {
    color: var(--color-primary);
}

.blog-page .post-meta {
    font-size: 0.75rem;
    color: var(--color-muted);
    display: flex;
    gap: 0.5rem;
}

.blog-page .heart-blog i {
    color: #ef4444;
}

.blog-page aside {
    position: relative;
}

.blog-page aside .bg-white {
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.blog-page aside ul li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.blog-page aside ul li a:hover {
    background-color: var(--color-bg-light);
}

.blog-page aside ul li img {
    width: 3rem;
    height: 3rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.blog-page .tagcloud a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f3f4f6;
    color: var(--color-text);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.blog-page .tagcloud a:hover {
    background-color: #eef2ff;
    color: var(--color-primary);
}

.blog-page .axil-search input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    outline: none;
}
.blog-page .axil-search button {
    padding: 0.5rem 1rem;
    background-color: var(--color-primary);
    color: white;
    transition: background-color 0.2s;
}
.blog-page .axil-search button:hover {
    background-color: var(--color-primary-dark);
}

.blog-page .pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}
.blog-page .pagination li a,
.blog-page .pagination li span {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: all 0.2s;
}
.blog-page .pagination li a:hover {
    background-color: #eef2ff;
    color: var(--color-primary);
}
.blog-page .pagination li.active span {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.blog-page .pagination li.disabled span {
    color: #9ca3af;
}

.blog-single-item {
    min-height: 270px;
}

.single-post-wrapper { padding: 40px 0; }

.single-post-wrapper .post-banner { background-color: #fff; padding: 20px; border-radius: 15px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 30px; }
.single-post-wrapper .post-categories { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.single-post-wrapper .post-cat-item { padding: 5px 10px; border-radius: 12px; background-color: #ede9fe; color: var(--color-primary); font-size: 13px; text-decoration: none; }

.single-post-wrapper .post-title { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.single-post-wrapper .breadcrumb ol { display: flex; gap: 5px; list-style: none; padding: 0; font-size: 13px; color: #666; }
.single-post-wrapper .breadcrumb li.active { color: #111; font-weight: 500; }

.single-post-wrapper .post-meta { display: flex; align-items: center; gap: 15px; margin-top: 15px; }
.single-post-wrapper .author-avatar img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.single-post-wrapper .author-info { font-size: 13px; color: #555; display: flex; flex-direction: column; }

.single-post-wrapper .post-body { margin-top: 25px; line-height: 1.7; color: #444;   padding: 15px; border-radius: 15px; }
.single-post-wrapper .post-image img { max-width: 100%; border-radius: 15px; margin-bottom: 20px; }
.single-post-wrapper .post-video { margin: 20px 0; }

.single-post-wrapper .post-tags { margin-top: 20px; }
.single-post-wrapper .post-tags .tag-item { display: inline-block; padding: 5px 12px; background-color: #e0e7ff; color: var(--color-primary); border-radius: 10px; margin-right: 5px; font-size: 13px; text-decoration: none; }

.single-post-wrapper .author-box { display: flex; gap: 15px; margin: 40px 0; align-items: center; padding: 15px; border-radius: 15px;}
.single-post-wrapper .author-details h5 { margin-bottom: 5px; font-weight: 600; }
.single-post-wrapper .author-bio { font-size: 14px; color: #666; }

.single-post-wrapper .comment-section {
    margin-top: 40px;
    padding: 15px;
    border-radius: 15px;
    direction: rtl; /* راست‌چین کردن کل بخش */
}

.single-post-wrapper .comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.single-post-wrapper .comment-form input,
.single-post-wrapper .comment-form textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 100%;
    font-size: 14px;
    text-align: right; /* متن فرم راست‌چین */
}

.single-post-wrapper .btn-submit {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.single-post-wrapper .btn-submit:hover {
    background-color: #3730a3;
}

.single-post-wrapper .comment-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.single-post-wrapper .comment-item {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.single-post-wrapper .comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-wrapper .comment-content {
    flex: 1;
}

.single-post-wrapper .comment-content h6 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.single-post-wrapper .comment-content .comment-date {
    font-size: 12px;
    color: #999;
}

.single-post-wrapper .comment-content p {
    font-size: 14px;
    color: #555;
    margin: 5px 0 0;
}

.single-post-wrapper .comment-reply {
    margin-top: 10px;
    padding-right: 10px;
    border-right: 2px solid #eee; /* راست‌چین شد */
    color: #555;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px;
    font-size: 13px;
}


.single-post-wrapper .related-posts {
    margin-top: 40px;
}

.single-post-wrapper .related-posts-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #111827;
}

.single-post-wrapper .related-posts-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


.single-post-wrapper .related-post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    width: calc(25% - 15px); /* چهار آیتم در هر ردیف دسکتاپ */
    direction: rtl; /* راست‌چین */
}

.single-post-wrapper .related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.single-post-wrapper .related-post-thumb img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.single-post-wrapper .related-post-content {
    padding: 10px;
}

.single-post-wrapper .related-post-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #1f2937;
}

.single-post-wrapper .related-post-category {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: #ede9fe;
    padding: 2px 6px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.single-post-wrapper .related-post-views {
    display: block;
    font-size: 0.75rem;
    color: var(--color-muted);
}

/* Media Queries برای موبایل */
@media (max-width: 768px) {
    .single-post-wrapper .related-post-item {
        width: calc(50% - 10px); /* دو آیتم در هر ردیف موبایل */
    }
}

@media (max-width: 480px) {
    .single-post-wrapper .related-post-item {
        width: 100%; /* یک ستون برای خیلی موبایل */
    }
}

.single-post-wrapper .breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: var(--color-muted);
}

.single-post-wrapper .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-post-wrapper .breadcrumb li {
    position: relative;
    margin-right: 10px;
}

.single-post-wrapper .breadcrumb li + li::before {
    content: "›"; /* فلش بین آیتم‌ها */
    margin-right: 10px;
    color: #9ca3af;
}

.single-post-wrapper .breadcrumb a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s;
}

.single-post-wrapper .breadcrumb a:hover {
    color: #3730a3;
}

.single-post-wrapper .breadcrumb li.active {
    font-weight: 600;
    color: #111827;
    pointer-events: none;
}

.single-post-wrapper .breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    direction: rtl; 
}

.single-post-wrapper .breadcrumb li {
    position: relative;
    margin-left: 10px; 
    margin-right: 0;
}

.single-post-wrapper .breadcrumb li + li::before {
    content: "›"; 
    margin-left: 10px; 
    margin-right: 0;
    color: #9ca3af;
}
.add-to-cart-btn {
  position: absolute;
bottom: 80px;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 5;
  cursor: pointer;
}

.add-to-cart-btn span {
    font-size: 13px !important;
    padding-right: 6px !important;
    padding-left: 6px !important;
}

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

.comment-item {
    border-bottom: 1px solid #ddd;
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.comment-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.comment-stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.comment-stars .ti-star {
    font-size: 18px;
    color: #ccc;
}

.comment-stars .star-filled {
    color: #fbbf24;
}

.comment-content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.comment-footer {
    font-size: 12px;
    color: #999;
}

/* پاسخ ادمین */
.comment-reply {
    margin-right: 50px;
    padding: 10px 12px;
    background: #f9f9f9;
    border-right: 2px solid var(--color-primary);
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.reply-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-body {
    flex: 1;
}

.reply-author {
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
    color: var(--color-primary);
}

.reply-content {
    font-size: 13px;
    color: #444;
    margin: 0;
}

/* دکمه مشاهده بیشتر */
.more-comment-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin: 14px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    background: none;
    border: none;
    cursor: pointer;
}
.more-comment-btn:hover {
    text-decoration: underline;
}

/* --- فرم دیدگاه --- */
.comment-form {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 1rem;
}

@media (min-width: 768px) {
    .comment-form {
        display: grid;
        grid-template-columns: 2fr 1fr; /* ستون راست بزرگ‌تر از ستون چپ */
        gap: 1.5rem;
    }
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: .5rem;
    text-align: right;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-input,
.form-textarea {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* امتیازدهی */
.form-rating {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 10px;
    background: #f9f9f9;
}

.rating-label {
    font-size: 14px;
    font-weight: 500;
}

.rating-stars {
    display: flex;
    gap: 6px;
    cursor: pointer;
}

.rating-stars i {
    font-size: 20px;
    color: #ccc;
    transition: color 0.2s;
}

.rating-stars i.active,
.rating-stars i.hover {
    color: #fbbf24;
}

/* آپلود */
.form-upload {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-label {
    font-size: 14px;
    font-weight: 500;
}

.upload-box {
    display: inline-block;
    padding: 8px 12px;
    border: 2px dashed #bbb;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    background: #fafafa;
    transition: border-color .2s, background .2s;
}
.upload-box:hover {
    background: #f0f0f0;
    border-color: var(--color-primary);
}

.upload-input {
    display: none;
}

.upload-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.upload-preview img {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
}

/* دکمه */
.form-submit {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}
.form-submit:hover {
    background: var(--color-primary);
}

/* تصاویر داخل کامنت */
.comment-images .comment-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform .2s;
}
.comment-images .comment-thumb:hover {
    transform: scale(1.05);
}

/* مدال تصاویر */
#imageModal {
    direction: rtl;
}

/* واکنش‌گرا */
@media (max-width: 768px) {
    .form-row,
    .form-rating {
        grid-template-columns: 1fr;
    }
}


.comment-images {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.comment-thumb-link {
    display: block;
}

.comment-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform .2s;
}
.comment-thumb:hover {
    transform: scale(1.05);
}
#galleryModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

#galleryModal img {
    width: auto;
    max-width: 600px; /* حداکثر عرض در دسکتاپ */
    max-height: 80vh; /* حداکثر ارتفاع متناسب با صفحه */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    object-fit: contain;
    display: block;
    margin: auto;
}

#galleryModal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

#galleryModal .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 5px 10px;
    transition: opacity .2s;
}
#galleryModal .nav-btn:hover { opacity: 0.7; }

#galleryModal .prev-btn { right: 20px; }
#galleryModal .next-btn { left: 20px; }

/* 📱 حالت موبایل */
@media (max-width: 768px) {
    #galleryModal img {
        max-width: 95%;
        max-height: 70vh;
    }
}

.cart-breadcrumb {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}
.cart-breadcrumb .breadcrumb-links {
  font-size: 14px;
  color: #555;
}
.cart-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}
.cart-breadcrumb .active {
  font-weight: bold;
}

/* کانتینر */
.cart-container {
  padding: 2rem 1rem;
}
.cart-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

/* خطا */
.cart-error-box {
  background: #fee2e2;
  color: var(--color-danger);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 14px;
}
.cart-error-box ul {
  margin-top: 8px;
  padding-right: 20px;
}

/* گرید */
.cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}
@media(max-width: 768px){
  .cart-grid {
    grid-template-columns: 1fr;
  }
}

/* جدول محصولات */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cart-table th {
  background: #f3f4f6;
  padding: 10px;
  text-align: right;
  border-bottom: 1px solid var(--color-border);
}
.cart-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: middle;
}
.cart-product-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-product-info img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  object-fit: cover;
}
.cart-product-info a {
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}
.cart-product-info a:hover {
  color: var(--color-primary);
}

/* قیمت */
.old-price {
  text-decoration: line-through;
  color: #9ca3af;
  margin-left: 5px;
}
.new-price {
  font-weight: bold;
  color: var(--color-accent);
}
.qty-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  width: fit-content;
}
.qty-box button {
  background: var(--color-bg-light);
  border: none;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}
.qty-box button:hover {
  background: var(--color-border);
}
.qty-box input {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 14px;
}

/* حذف */
.cart-remove button {
  color: var(--color-danger);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
}
.cart-remove button:hover {
  color: var(--color-danger-dark);
}

/* اکشن پایین جدول */
.cart-actions {
  padding: 1rem;
  text-align: left;
}
.cart-actions a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

/* خلاصه سبد */
.cart-summary {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
}
.cart-total-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 16px;
}
.cart-checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--color-accent);
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
}
.cart-checkout-btn:hover {
  background: var(--color-accent-dark);
}

/* خالی بودن سبد */
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.cart-empty i {
  font-size: 48px;
  color: #9ca3af;
}
.cart-empty h4 {
  margin: 1rem 0;
  font-weight: 600;
}
.cart-empty a {
  background: var(--color-primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
}
.cart-empty a:hover {
  background: #1d4ed8;
}

.cart-products {
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}
.address-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* حالت انتخاب‌شده */
.address-card.selectAddress {
  border: 2px dashed var(--color-primary); /* خط آبی dashed */
  background: #f0f9ff;        /* کمی بک‌گراند آبی خیلی روشن */
}.address-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* حالت انتخاب‌شده */
.address-card.selectAddress {
  border: 2px dashed var(--color-primary); /* خط آبی dashed */
  background: #f0f9ff;        /* کمی بک‌گراند آبی خیلی روشن */
}.address-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* حالت انتخاب‌شده */
.address-card.selectAddress {
  border: 2px dashed var(--color-primary); /* خط آبی dashed */
  background: #f0f9ff;        /* کمی بک‌گراند آبی خیلی روشن */
}.address-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* حالت انتخاب‌شده */
.address-card.selectAddress {
  border: 2px dashed var(--color-primary); /* خط آبی dashed */
  background: #f0f9ff;        /* کمی بک‌گراند آبی خیلی روشن */
}.address-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 12px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* حالت انتخاب‌شده */
.address-card.selectAddress {
  border: 2px dashed var(--color-primary); /* خط آبی dashed */
  background: #f0f9ff;        /* کمی بک‌گراند آبی خیلی روشن */
}

/* Container */
.address-container { padding:2rem 1rem; }
.address-title { font-size:20px;font-weight:600;margin-bottom:1.5rem; }
.address-body { display:grid;grid-template-columns:2fr 1fr;gap:1.5rem; }
@media(max-width:768px){.address-body{grid-template-columns:1fr;}}

/* Add button */
.btn-add-address {
  background:var(--color-accent);color:#fff;padding:8px 14px;border-radius:6px;
  font-size:14px;cursor:pointer;border:none;margin-bottom:12px;
}
.btn-add-address:hover{background:var(--color-accent-dark)}

/* Address Card */
.address-card {
  border:1px solid #ddd;border-radius:8px;padding:1rem;margin-bottom:12px;
  display:block;cursor:pointer;position:relative;background:#fff;
}
.address-card.selectAddress { border-color:var(--color-primary);box-shadow:0 0 0 2px var(--color-primary)33; }
.address-content h5{font-size:14px;margin-bottom:6px;}
.address-text{font-size:13px;color:#333;margin-bottom:4px;}
.address-meta{font-size:12px;color:#666;}
.address-edit{position:absolute;top:12px;left:12px;font-size:13px;color:var(--color-primary);cursor:pointer;}

/* Summary */
.address-summary {
  background:#fff;border:1px solid #eee;border-radius:8px;padding:1rem;align-self: flex-start;
}
.summary-table{width:100%;font-size:14px;margin-bottom:1rem;}
.summary-table th{text-align:right;padding:8px;}
.summary-table td{text-align:left;padding:8px;}

/* Discount row */
.summary-discount {
  background:#ecfdf5;color:var(--color-accent-dark);font-weight:600;
}
.summary-discount th{color:var(--color-accent);}
.summary-discount td span{color:var(--color-accent);}
.side-modal { opacity:0; pointer-events:none; }
.side-modal .side-modal-content { transform:translateX(100%); }
.side-modal.active { opacity:1; pointer-events:auto; }
.side-modal.active .side-modal-content { transform:translateX(0); }

.page-address .side-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  display: flex;
  justify-content: flex-end; /* 📌 بیاد سمت راست */
  align-items: stretch;      /* 📌 نره وسط */
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 9999;
}

.page-address .side-modal-content {
  background: #fff;
  width: 100%;
  max-width: 400px;
  height: 100%;
  transform: translateX(100%); /* 📌 از راست بیاد */
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
}

.page-address .side-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.page-address .side-modal.active .side-modal-content {
  transform: translateX(0);
}

/* Modal Header */
.page-address .modal-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  border-bottom:1px solid #eee;
  background:var(--color-bg-light);
}
.page-address .modal-header h5 {
  font-size:16px;
  font-weight:600;
}
.page-address .close-side-modal {
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
}
.page-address .modal-body {
  padding:16px;
  overflow-y:auto;
}

/* Form controls */
.page-address .form-group {
  margin-bottom:14px;
}
.page-address .form-group label {
  font-size:13px;
  margin-bottom:5px;
  display:block;
  color:#444;
}
.page-address .input-control {
  width:100%;
  padding:8px 12px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:14px;
  transition:border .2s,box-shadow .2s;
}
.page-address .input-control:focus {
  border-color:var(--color-primary);
  box-shadow:0 0 0 2px rgba(37,99,235,0.2);
  outline:none;
}

/* Buttons */
.page-address .btn-primary {
  background:var(--color-primary);
  color:#fff;
  padding:10px 14px;
  border-radius:6px;
  border:none;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  transition:background .2s;
}
.page-address .btn-primary:hover {
  background:var(--color-primary-dark);
}
.page-address .btn-success {
  background:var(--color-accent);
  color:#fff;
  padding:12px;
  border-radius:6px;
  border:none;
  cursor:pointer;
  font-size:15px;
  font-weight:600;
  transition:background .2s;
}
.page-address .btn-success:hover {
  background:var(--color-accent-dark);
}

.page-checkout .checkout-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: 14px;
}
.page-checkout .checkout-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}
.page-checkout .checkout-breadcrumb .active {
  color: var(--color-muted);
  font-weight: 500;
}

.page-checkout .checkout-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr; /* دو ستون */
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 768px) {
  .page-checkout .checkout-wrapper {
    grid-template-columns: 1fr; /* موبایل */
  }
}

.page-checkout .checkout-main,
.page-checkout .checkout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.page-checkout .checkout-sidebar {
  align-self: flex-start; /* همیشه بالا */
}

.page-checkout .checkout-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.page-checkout .checkout-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: .75rem;
}

.page-checkout .input-control {
  width: 100%;
  padding: .5rem .75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
.page-checkout .input-control:focus {
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

.page-checkout .btn-success {
  background: var(--color-accent);
  color: #fff;
  padding: .65rem 1rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
.page-checkout .btn-success:hover {
  background: var(--color-accent-dark);
}
.page-checkout .btn-secondary {
  display: inline-block !important; /* نه block */
  width: auto !important;           /* نه 100% */
  max-width: fit-content !important;/* فقط به اندازه متن */
  background: #f3f4f6;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 14px;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;              /* متن نشکنه تو خط بعد */
}
.page-checkout .btn-secondary:hover {
  background: var(--color-border);
  color: #111827;
}
.page-checkout .radio-card {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid #ddd;
  padding: .5rem .75rem;
  border-radius: 6px;
  cursor: pointer;
}
.page-checkout .radio-card input {
  accent-color: var(--color-primary);
}

.page-checkout .summary-table {
  width: 100%;
  font-size: 14px;
}
.page-checkout .summary-table th,
.page-checkout .summary-table td {
  padding: .5rem;
  text-align: right;
}
.page-checkout .summary-table td {
  text-align: left;
}

.page-checkout .summary-discount {
  background: #ecfdf5;
  color: var(--color-accent);
}

.page-checkout .checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media(max-width:768px){
  .page-checkout .checkout-grid-2 {
    grid-template-columns: 1fr;
  }
}
.product-card_badge,
.sale-badge,
.discount-label,
.price-discount-label {
  background-color: var(--color-danger);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px; /* گرد کامل */
  display: inline-block;
  line-height: 1.2;
  transition: background .2s ease;
}

.product-card_badge:hover,
.sale-badge:hover,
.discount-label:hover,
.price-discount-label:hover {
  background-color: var(--color-danger-dark);
}
.product-card_badge::after {
    background-color: rgb(220 38 38);
}
.product-card_price span, .small-card_price span{
  background-color: var(--color-primary-dark);
}
.main-navbar-head {
    background-color: var(--color-accent);
}
.menu-item .menu-item_link::after {
    background-color: var(--color-primary);
}
.megamenu_category-item.active {
    background-color: var(--color-accent);
  }

.text-blue-500 {
    --tw-text-opacity: 1;
    color: #000;
}
.bg-blue-600 {
  background-color: var(--color-primary);
}
.hover\:bg-blue-700:hover{
  background-color: var(--color-accent);
}

.text-blue-600 {
    color: var(--color-primary);
}

.hover\:text-blue-600:hover {
    color: #000;
}
.solid-menu > :hover {
    background-color: var( --color-accent);
  }

  .product-card.group {
    overflow: hidden;
}
.gift-box {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  background: #f9fafb;
  margin-top: 20px;
}

.gift-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.gift-header .gift-icon {
  font-size: 18px;
  color: #ef4444;
}

.gift-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gift-item {
  flex: 0 0 90px; /* هر آیتم حدود 90px */
  text-align: center;
}

.gift-img img {
  width: 55px;
  height: 55px;
  object-fit: contain;
  margin-bottom: 6px;
  border-radius: 6px;
  background: white;
  border: 1px solid #eee;
  padding: 4px;
}

.gift-descr {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
      text-align: right;
}
span.gift-archive {
    padding-right: 10px;
    color: var(--color-primary);
}

.checkout-steps {
  direction: rtl;
  gap: 1rem;
}

.checkout-steps .step {
  text-align: center;
  flex: 0 0 auto;
  min-width: 120px;
  font-size: 14px;
  position: relative;
}

.checkout-steps .circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin: 0 auto 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.checkout-steps .step.disabled .circle {
  background-color: #e5e7eb;
  color: #6b7280;
}
.checkout-steps .step.disabled span {
  color: #6b7280;
}

.checkout-steps .step.active .circle {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.25);
}
.checkout-steps .step.active span {
  font-weight: 600;
  color: var(--color-primary);
}

.checkout-steps .step.done .circle {
  background-color: #22c55e;
  color: #fff;
}
.checkout-steps .step.done span {
  color: #22c55e;
}

.checkout-steps .line {
  flex-grow: 1;
  height: 2px;
  background-color: #e5e7eb;
  position: relative;
  top: -14px;
  margin: 0 6px;
}

.checkout-steps .line.done {
  background-color: #22c55e;
}
.imageHoldersingleproduct {
    position: relative;
}
.openimagezoomer i {
    font-size: 20px;
}

.openimagezoomer {
    position: absolute;
    top: 10px;
    left: 50px;
    border-radius: 30px;
    border: 1px solid #5a5a5a;
    width: 36px;
    height: 36px;
    padding: 6px;
    cursor: pointer;
    z-index:11;
}
.ProductDetailsSlider {
    width: 30rem;
}

html,body {
  max-width: 100%;
  overflow-x: hidden;
}

@media only screen and (max-width: 600px) {
  .openimagezoomer {
      left: 20px;
  }
    .add-to-cart-btn {
        width: 25px;
        height: 25px;
        right: 0;
        top: 60px;
    }

.add-to-cart-btn i {
    font-size: 14px;
}
}
