/* استایل‌های نمایش محصولات در سایت */

button {
    font-family: 'Shabnam';
}
.pm-products {
    width: 100%;
    gap: 0px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}



.pm-products-container {
    width: 100%;
}

@media (max-width: 1024px) {
.pm-products {
    grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 768px) {
    .pm-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 530px) {
    .pm-products {
        grid-template-columns: 1fr;
    }
}
.pm-product-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition:0.3s;
    
}

.pm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.pm-product-thumbnail {
    position: relative;
    overflow: hidden;
}

.pm-product-thumbnail img {
    width: 110px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.pm-product-thumbnail {
    padding: 0px 10px;
}

.pm-product-card:hover .pm-product-thumbnail img {
    transform: scale(1.05);
}

.pm-product-card
 {
    display: flex
;
}

.pm-product-content {
    display: flex
;
    flex-direction: column;
    justify-content: space-between;
    padding: 17px 18px;
    border-right: 1px solid #DFDFDF;
    width:70%;
}

.pm-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d63638;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.pm-product-content {
    padding: 15px;
}

.pm-product-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.pm-product-title a {
    color: #333;
    text-decoration: none;
}

.pm-product-title a:hover {
    color: #0073aa;
}



.pm-product-price ins {
    text-decoration: none;
    color: #d63638;
    font-weight: bold;
}

.pm-product-price del {
    color: #999;
    margin-left: 5px;
}

.pm-no-price {
    color: #666;
}

.pm-product-actions {
    margin-top: 15px;
}

.pm-product-button {
    display: inline-block;
    padding: 8px 15px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.pm-product-button:hover {
    background: #135e96;
}



/* در فایل assets/css/admin.css */
.pm-product-variables {
    margin-top: 20px;
}

.pm-variable-row {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    position: relative;
}

.pm-variable-field {
    margin-bottom: 10px;
}

.pm-variable-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}



.pm-remove-variable {
    position: absolute;
    top: 15px;
    left: -50px;
}

/* استایل‌های دسته‌بندی‌های Ajax */
.pm-ajax-categories-container {
    margin: 30px 0;
}

.pm-categories-grid {
    display: flex
;
    gap: 20px;
    max-width: 740px;
    flex-wrap: wrap;
    justify-content: center;
}

.pm-categories-grid.pm-columns-1 {
    grid-template-columns: 1fr;
}

.pm-categories-grid.pm-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pm-categories-grid.pm-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pm-category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
     width:170px;
}
.pm-category-thumbnail {
    display: flex
;
    align-content: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.pm-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.pm-category-thumbnail {
    overflow: hidden;
}

.pm-category-thumbnail img {
    width: 120px;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pm-category-card:hover .pm-category-thumbnail img {
    transform: scale(1.05);
}

.pm-category-title {
    font-size: 16px;
    text-align: center;
    color: #333;
    padding: 9px;
    margin: 0px;
    border-top: 1px solid #DFDFDF;
}
.pm-ajax-categories-container {
    display: flex
;
    justify-content: center;
}

img.attachment-medium.size-medium
 {
    padding: 15px;
}

.pm-category-count {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.pm-back-button {
    display: inline-block;
    padding: 10px 20px;
    background: #A59866;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.pm-back-button:hover {
    background: #2e59d9;
    transform: translateY(-2px);
}

.pm-loading, .pm-error {
    text-align: center;
    padding: 50px;
    font-size: 18px;
}

.pm-error {
    color: #e74a3b;
}

@media (max-width: 1024px) {
    .pm-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .pm-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pm-products-container
 {
    width: 100%;
}
}

@media (max-width: 480px) {
    .pm-categories-grid {
        grid-template-columns: 1fr;
    }
    .pm-products-container
 {
    width: 100%;
}
}


.pm-products-grid {
    width: 100%;
}


.pm-product-card {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transition: 0.3s;
    display: flex
;
    height: 123px;
    border: none;
    border-bottom: 1px solid #DFDFDF;
    border-left: 1px solid #DFDFDF;
}
.pm-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.pm-product-thumbnail {
    position: relative;
    overflow: hidden;
    padding: 0px 10px;
}

.pm-product-thumbnail img {
    width: 100px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.pm-product-card:hover .pm-product-thumbnail img {
    transform: scale(1.05);
}

.pm-product-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px 16px;
    border-right: 1px solid #DFDFDF;
    flex-grow: 1;
}

.pm-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #d63638;
    color: #fff;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.pm-product-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.pm-product-title a {
    color: #333;
    text-decoration: none;
}

.pm-product-title a:hover {
    color: #0073aa;
}


.pm-product-price ins {
    text-decoration: none;
    color: #d63638;
    font-weight: bold;
}

.pm-product-price del {
    color: #999;
    margin-left: 5px;
}

.pm-no-price {
    color: #666;
}

.pm-product-actions {
    margin-top: 15px;
}

.pm-product-button {
    display: inline-block;
    padding: 8px 15px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    cursor: pointer;
    border: none;
}

.pm-product-button:hover {
    background: #135e96;
}

.pm-has-variations {
    color: #666;
    font-size: 13px;
    margin-top: 5px;
    cursor: pointer;
    text-decoration: underline;
}
.pm-cart-container {
    padding: 15px;
}


.pm-cart-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    width: 500px;
}

.pm-cart-card-body {
  width: 500px;
}

.pm-cart-card {
    display: flex;
    border: 1px solid #EFEFEF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.pm-cart-card-image {
    width: 120px;
    flex-shrink: 0;
}

.pm-cart-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pm-cart-card-body {
    flex: 1;
}

.pm-cart-card-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.pm-cart-card-row {
display: flex;
    padding: 5px 15px;
    border-bottom: 1px solid #EFEFEF;
}

.pm-cart-card-label {
    font-weight: 300;
    color: #555;
    font-size:16px;
}
.pm-cart-card-value {
    flex: 1;
    text-align: left;
    font-size: 16px;
    color: #5D5D5D;
}

input.pm-cart-quantity {
    width: 70px !important;
    padding: 5px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}
.total-price-item-cart {
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0px;
}

.pm-remove-from-cart
 {
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: url(https://panel.hakimtr.ir/wp-content/plugins/product-plugin/icon/trash-01.svg);
    background-position: center;
    background-repeat: no-repeat;
}

.pm-remove-from-cart:hover{
    background-color:transparent;
}
.pm-remove-from-cart:focus{
    background-color:transparent;
}

.pm-cart-summary {
    border-top: 2px solid #eee;

}

.pm-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    flex-direction: row-reverse;
    width: 100%;
    padding:15px;
    border-bottom:1px solid #DFDFDF;
}

.pm-cart-total-label {
    font-weight: bold;
    margin-right: 15px;
    font-size:14px;
}



.pm-cart-total-value {
    font-weight: bold;
}

.pm-cart-actions {
    display: flex
;
    justify-content: center;
    gap: 10px;
    width: 100%;
        padding-top:15px;

}




/* حالت تاریک */


/* استایل‌های پاپ‌آپ ویژگی‌ها */
.pm-variations-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    display: none;
}

.pm-variations-popup {
    position: relative;
    width: 100%;
    height: 100%;
}

.pm-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}


.pm-popup-container {
    position: absolute;
    bottom: 50px;
    left: calc(50% - 250px);
    width: 100%;
    background: #fff;
    border-radius: 15px 15px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
}


@media (max-width: 768px) {
    
    .pm-popup-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 15px 15px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    max-width:100%;
}
    
}

.pm-popup-content h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    position: relative;
    margin: 0px;
}

.pm-popup-close {
    position: absolute;
    left: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: black;
}

.pm-variation-field label {
    display: block;
    font-weight: 400;
    font-size:14px;

}

.pm-variation-field select,
.pm-variation-field input[type="number"],
.pm-page-count-field input[type="number"]{
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    height: 30px;


}


.pm-quantity-wrapper.pm-quantity-wrapper-page {
    width: 100px;
}

input.pm-qty-input-page {
    padding: 0px !important;
    width:40px !Important;
}
.pm-variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pm-variation-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.pm-popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.pm-popup-actions button.pm-add-to-cart , .pm-popup-actions button.pm-cancel-popup  {
    padding: 8px;
    border: none;
    border-radius: 4px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
}

button.pm-cancel-popup {
    background: #f5f5f5;
    color: #333;
}

button.pm-cancel-popup:hover {
    color: #333;
}

button.pm-add-to-cart {
    background: #4CAF50;
    color: #fff;
}

button.pm-add-to-cart:hover {
    background: #3e8e41;
}

/* حالت فعال پاپ‌آپ */
.pm-variations-popup-wrapper.active {
    display: block;
}

.pm-variations-popup-wrapper.active .pm-popup-overlay {
    opacity: 1;
}

.pm-variations-popup-wrapper.active .pm-popup-container {
    transform: translateY(0);
}

/* دکمه افزودن ویژگی‌ها */
button.pm-add-variations-btn {
    display: block;
    width: 25px;
    height: 25px;
    padding: 10px;
    background: url(https://panel.hakimtr.ir/wp-content/uploads/2025/07/plus.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
    background-color: #A59866;
}

button.pm-add-variations-btn:hover{
    background-color: #A59866;
}
button.pm-add-variations-btn:focus{
    background-color: #A59866 !important;
}

.pm-product-price {
    display: flex
;
    align-content: center;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between ;
}


.pm-variations-popup-wrapper {
  font-family: 'shabnam' !important;
  direction: rtl;
}

.pm-popup-container {
  border-radius: 12px;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pm-popup-content h3 {
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  padding:14px;
  color:#2F2F2F;
}

.pm-popup-content{
    padding-bottom:40px;
}

.pm-variation-field {
  background: white;
  padding: 12px 12px;
  border-bottom: 1px solid #DFDFDF;
  display: flex;
  align-items: center;
  justify-content: space-between;
      padding-right:38px;
    padding-left:38px;
}

.pm-variation-field label {
  font-weight: 500;
  color: #333;
}

.pm-variation-field select {
    padding: 0px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: auto;
    height: 30px;
    padding-right: 8px;
    padding-left: 25px;
    appearance: none;
    -moz-appearance: none;
    background-color: #EDEDED;
    background: url(https://panel.hakimtr.ir/wp-content/uploads/2025/07/Vector-100.png);
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: 10px;
    background-color: #EDEDED;
}

.pm-variation-field input[type="number"] {
    max-width:30px;
    padding:0px !Important;
}

/* استایل‌های دکمه‌های کم و زیاد */
.pm-quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    overflow: hidden;
    width: fit-content;
}

button.pm-qty-btn {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

button.pm-qty-btn-page {
    width: 30px;
    height: 30px;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}

button.pm-qty-btn:hover {
    background: #e0e0e0;
    color:black;
}
button.pm-qty-btn-page:hover {
    background: #e0e0e0;
    color:black;
}


button.pm-qty-btn:focus {
    background: #e0e0e0;
    color:black;
}
button.pm-qty-btn-page:focus {
    background: #e0e0e0;
    color:black;
}

.pm-qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    pointer-events: none; /* غیرفعال کردن تایپ مستقیم */
}
.pm-qty-input-page {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    pointer-events: none; /* غیرفعال کردن تایپ مستقیم */
}

.pm-quantity-wrapper
 {
    height: 30px;
    width: 80px;
}


input.pm-qty-input {
    border: none !important;
    margin: 0px !important;
}
input.pm-qty-input-page {
    border: none !important;
    margin: 0px !important;
}


.pm-variation-options input[type="checkbox"] {
  margin-left: 8px;
  transform: scale(1.2);
}

.pm-popup-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-left: 38px;
    padding-right: 38px;
}

button.pm-cancel-popup,
button.pm-add-to-cart {
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  padding: 0px 10px;
}

button.pm-cancel-popup {
  background-color: #e4e4e4;
  color: #555;
  width:90px;
}

button.pm-cancel-popup:hover{
      background-color: #e4e4e4;
  color: #555;
}

button.pm-add-to-cart {
  background-color: #a69152;
  color: white;
  font-weight: 400;
  width:calc(100% - 100px);
}

.pm-total-amount {
  font-weight: bold;
  font-size: 18px;
  margin-top: 15px;
  text-align: right;
}

.box-title-item-cart {
    display: flex
;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
}


.pm-cart-card-title
 {
    font-size: 16px;
    font-weight: bold;
    margin: 0px;
}


.pm-product-price span {
    display: flex
;
    align-items: center;
    gap: 5px;
}

.entry-content.wp-block-post-content.has-global-padding.is-layout-constrained.wp-block-post-content-is-layout-constrained {
    padding: 0px;
}


span.pm-cart-total-value
 {
    margin-left: 15px;
    font-size:16px;
}

button.btn-to-address
 {
    width: 320px;
    border: none;
    border-radius: 4px;
    padding: 8px;
    font-size: 18px;
    color: #fff;
    background: #A59866;
    cursor: pointer;
}

button.btn-to-address:hover{
        background: #A59866;

}

button.btn-to-address:focus{
            background: #A59866;

}

.pm-cart-total {
    color: #2F2F2F !important;
}



.pm-cart-summary {
    width: 400px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}
.pm-empty-cart {
  text-align: center;
}

.wp-block-post-title {
  text-align: center;
}

.pm-cart-total {
    padding: 10px 0px;
}


.pm-cart-container {
    display: flex
;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}
  
@media (max-width: 768px) {
    
    .pm-cart-summary {
    bottom: 0px;
    width: 100%;
    background: #fff;
    z-index: 9;
    left: 0px;
        border-radius: 10px 10px 0px 0px;


}

  .pm-cart-card {
  width: 100%;
  height: auto;
  overflow-y: visible;
}
.pm-cart-cards{
    width:100%;
}

.pm-cart-summary {
        border-top: 2px solid #eee;
        position: fixed;
        bottom: 0px;
        width: 100%;
        background: #fff;
        z-index: 9;
        display: flex
;
        flex-direction: column;
        box-shadow: 0px 4px 8px #00000012;
        border-radius: 10px 10px 0px 0px;
        overflow: hidden;
        padding: 0px;
        align-items: center;
    }

.pm-cart-actions{
    padding:15px;
}

}


button.pm-add-to-cart-btn {
  display: block;
  width: 25px;
  height: 25px;
  padding: 10px;
  background: url(https://panel.hakimtr.ir/wp-content/uploads/2025/07/plus.png);
    background-color: rgba(0, 0, 0, 0);
    background-position-x: 0%;
    background-position-y: 0%;
    background-repeat: repeat;
    background-size: auto;
  background-color: rgba(0, 0, 0, 0);
  background-position-x: 0%;
  background-position-y: 0%;
  background-repeat: repeat;
  background-size: auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
  background-color: #A59866;
  font-size:0px;
}




.box-view-count-cart {
    position: fixed;
    bottom: 0px;
}

.box-view-count-cart{
    width:400px;
    left:calc(50% - 200px);
}

.box-view-count-cart {
    display: flex
;
    flex-direction: column;
    align-items: center;
    box-shadow: 0px -2px 4px 0px rgba(194, 194, 194, 0.25);
    bottom: 30px;
    background: #fff;
    padding: 14px 0px;
    border-radius:12px;
    z-index:2;
}

.view-cart-btn {
    width: 100%;
    text-align: center;
    padding-bottom: 11px;
    color: rgba(165, 152, 102, 1);
    font-family: Yekan-semibold;
    font-size: 18px;
}

.box-send-to-checkout {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid rgba(223, 223, 223, 1);
    padding-top: 15px;
    align-items: center;
}

button.sellect-address-btn {
    font-size: 18px;
    padding: 6px 41px;
    border: none;
    background: #A59866;
    color: white;
    border-radius: 4px;
    cursor:pointer;
}

button.sellect-address-btn:hover {
background: #A59866;
}
button.sellect-address-btn:focus {
background: #A59866;
}
span.pm-cart-count {
    font-family: Yekan-bold;
    font-size: 24px;
}

@media (max-width: 768px) {
    
    .box-view-count-cart
 {
    bottom: 0px;
    right: 0px;
    width: 100% !important;
}

.pm-products-grid {
    max-width: 100%;
}
}

.box-view-count-cart {
    transition: all 0.3s ease;
    /* استایل‌های دیگر شما */
}

/* برای حالت صفر */
.box-view-count-cart[style*="display:none"] {
    display: none !important;
}

.pm-notice-success{
    position:fixed;
    top:40px;
    right:30px;
    z-index:9;
}

.pm-sibling-categories {
    background: rgba(249, 249, 249, 0.49);
}



.pm-sibling-categories .pm-category-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.pm-sibling-categories .pm-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.pm-sibling-categories .pm-category-title {
    margin: 0;
    font-size: 16px;
    color: #333;
}


.categpry-header {
    display: flex
;
    gap: 20px;
    background: rgba(249, 249, 249, 0.49);
    padding: 20px;
}


.categpry-header-card {
    width: auto;
    padding: 6px 16px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
}

.pm-category-card2
 {
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.25);
    font-size: 16px !important;
    padding: 6px 18px !important;
    border-radius:4px !Important;
    width:auto;
    
}

.pm-category-title2 {
    padding: 0px !important;
    border: none;
}

.category-grid {
    display: flex
;
    justify-content: center;
    overflow-x: scroll;
    margin-bottom:30px;
}

.pm-sibling-categories2{
    min-width: 740px !important;
    max-width: 4000px;
    Padding:20px 20px !Important;
}



.pm-products-container
 {
    display: flex
;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1300px){
.pm-products-grid {
    max-width: 1300px;
}}


/* استایل فرم جستجو */
.pm-product-search-form {
    margin: 0px 0;
    direction: rtl;
}

.pm-search-container {
    position: relative;
    width: 500px;
    margin: 0 auto;
}

.pm-search-container input[type="text"] {
    width: 100%;
    padding: 15px 15px 15px 0px;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    border:none;
    background:#F9F9F9;
    color:black;
    font-family: 'Yekan-semibold';
}

.pm-search-container input:focus {
    outline: none;
    border-color: #A59866;
}

.pm-search-container button {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer !important;
    color: #A59866;
    padding: 0;
    display: flex;
    align-items: center;
    
}

.pm-search-container button:hover{
        background: none;

}

.pm-search-container button:focus{
        background: none;

}

@media (max-width: 768px) {
    .pm-search-container {
        max-width: 100%;
    }
}

/* استایل نتایج جستجو */
.pm-search-results-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.pm-search-results-header h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 24px;
}

.pm-search-results-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}


/* استایل‌های صفحه نتایج جستجو */
.pm-search-results-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.pm-search-results-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.pm-search-results-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.pm-search-results-header p {
    font-size: 16px;
    color: #666;
}

.pm-no-results {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
}

/* صفحه‌بندی */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current,
.page-numbers:hover {
    background-color: #A59866;
    color: white;
    border-color: #A59866;
}

.page-numbers.dots {
    border: none;
}

@media (max-width: 768px) {
    .pm-search-results-container {
        padding: 15px;
    }
    
    .pm-search-results-header h1 {
        font-size: 20px;
    }
}

.pm-user-orders h2 {
    text-align: center;
    border-bottom: 1px solid #c9c9c9;
    padding: 20px;
}


span.pm-unit-price {
    color: #333;
    font-size: 13px;
}

@media (max-width: 768px) {
    
    .pm-popup-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 90vh;
    background: #fff;
    border-radius: 15px 15px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow: hidden;
    max-width:100%;
    overflow-y:scroll;
}


.wp-block-column.is-layout-flow.wp-block-column-is-layout-flow {
    display: none;
}
    
}


.pm-popup-container select {
    color: black !important;
}

h1.wp-block-post-title {
    display: none !important;
}

button.pm-back-button {
    width: auto;
    margin: 0px 10%;
}



/* استایل لودینگ سراسری */
.pm-global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pm-global-loading .pm-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #A59866;
    border-radius: 50%;
    animation: pm-spin 1s linear infinite;
}

@keyframes pm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #c9c9c9; /* رنگ حاشیه */
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  position: relative;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background-color: #A59866; /* رنگ پس‌زمینه وقتی انتخاب شده */
  border-color: #A59866;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  color: white; /* رنگ تیک */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 12px;
}

.pm-language-selector {
    padding: 20px 38px;
    display: flex
;
    align-items: center;
    justify-content: space-between;
}

select.pm-language-switcher {
    padding: 0px 15px;
    border: none;
    width: auto;
    padding: 0px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    width: auto;
    height: 30px;
    padding-right: 8px;
    padding-left: 8px;
    appearance: none;
    -moz-appearance: none;
    background-color: #EDEDED;
    background: url(https://panel.hakimtr.ir/wp-content/uploads/2025/07/Vector-100.png);
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: 10px;
    background-color: #EDEDED;
}

.pm-required-star {
    color: red;
    margin-right: 5px;
}

.pm-variation-field.pm-error {
    border: 1px solid red;
    padding: 10px;
    border-radius: 4px;
    background-color: #ffeeee;
}

.pm-variation-field.pm-error label {
    color: red;
}

.pm-notice.pm-notice-error {
    color: red;
    padding: 20px;
    border: 1px solid red;
    background: #ffd0d0;
    position:fixed;
    top:15px;
    right:15px;
    z-index:999;
}

.pm-product-base-price{
    background: white;
    padding: 12px 12px;
    border-bottom: 1px solid #DFDFDF;
    display: flex
;
    align-items: center;
    justify-content: space-between;
    padding-right: 38px;
    padding-left: 38px;
}


.pm-total-price-container {
background: white;
    padding: 12px 12px;
    border-bottom: 1px solid #DFDFDF;
    display: flex
;
    align-items: center;
    justify-content: space-between;
    padding-right: 38px;
    padding-left: 38px;
}



.pm-price-row {
    width: 100%;
    display: flex
;
    justify-content: space-between;
}

span.pm-price-label {
    font-weight: 600;
    font-size: 16px !important;
    color: #313131 !important;
}

/* استایل برای فیلدهای غیرفعال شده بر اساس وابستگی */
.pm-variation-field.pm-disabled {
    opacity: 0.6;
    pointer-events: none;
}

.pm-variation-field.pm-disabled label {
    color: #999;
}

.pm-product-base-price {
    font-size: 14px;
}

.pm-variation-field.pm-disabled select,
.pm-variation-field.pm-disabled input {
    background-color: #f5f5f5;
    border-color: #ddd;
}

/* استایل برای نمایش وابستگی */
.pm-dependency-field {
    min-width: 150px;
}

.pm-dependency-field select {
    width: 100%;
}

.pm-variation-field.pm-error {
    border-left: 3px solid #ff0000;
    padding-left: 10px;
    margin-bottom: 10px;
}

.pm-dependency-error {
    color: #ff0000;
    font-size: 13px;
    margin-top: 5px;
    padding: 5px;
    background-color: #ffeeee;
    border-radius: 3px;
}

.pm-variation-field.pm-disabled {
    opacity: 0.7;
    pointer-events: none;
}

/* Error styles */
.pm-variation-field.pm-error {
    border-left: 3px solid #ff0000;
    padding-left: 10px;
}

.pm-variation-field.pm-dependency-error {
    border-left: 3px solid #ff9900;
}

.pm-error-message {
    color: #ff0000;
    font-size: 12px;
    margin-top: 5px;
}

.pm-dependency-error .pm-error-message {
    color: #ff9900;
}
.pm-page-count-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: column;
}

.pm-price-details {
        padding: 10px 38px;
            border-bottom:1px solid #DFDFDF ;
            background: #f5f5f5;


}

.pm-price-detail-row {
    display: flex
;
    justify-content: space-between;
    margin-top: 10px;
}


/* استایل اسپینر */
.pm-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: pm-spin 1s ease-in-out infinite;
}

@keyframes pm-spin {
    to { transform: rotate(360deg); }
}

.pm-loading {
    opacity: 0.7;
    pointer-events: none;
}

.pm-loading .pm-total-price {
    min-width: 80px;
    display: inline-block;
    text-align: center;
}