 /*
Theme Name: MaryamDesign
Theme URI: https://marygarshasbi.ir
Author: Maryam Garshasbi
Author URI: https://marygarshasbi.ir
Description: قالب فرزند اختصاصی بر پایه Hello Elementor طراحی شده توسط Maryam Garshasbi
Version: 1.0
Template: hello-elementor
Text Domain: maryamdesign
*/

/* =========================================================
   HEADER
   No standalone custom header rules were present in the
   supplied stylesheets. Header layout remains controlled
   by Elementor / Hello Elementor settings.
   ========================================================= */




/* ======================= Footer ======================= */

.floating-list .elementor-icon-list-item {
  position: relative;
  display: inline-flex;
  align-items: center;

  padding: 4px 15px;

  border-radius: 6px;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

/* خط افقی کنار آیتم */
.floating-list .elementor-icon-list-item::before {
  content: "";

  position: absolute;

  /* خط در سمت راست آیتم */
  right: -16px;
  top: 50%;

  transform: translateY(-50%);

  width: 0;
  height: 2px;

  background-color: #e05b9d;

  border-radius: 2px;

  opacity: 0;

  transition:
    width 0.3s ease,
    opacity 0.3s ease;
}

/* Hover آیتم */
.floating-list .elementor-icon-list-item:hover {

  background-color: #FFE0F0;

  /* فقط خود آیتم حرکت می‌کند */
  transform: translateX(-5px);
}

/* نمایش خط */
.floating-list .elementor-icon-list-item:hover::before {

  width: 12px;

  opacity: 1;
}

/* ======================= END Footer ================== */

/* =========================================================
   BODY - GENERAL & WOOCOMMERCE
   ========================================================= */



/* =========================================================
   BODY - WOOCOMMERCE SALE BADGE & ELEMENTOR PRODUCT PRICE
   ========================================================= */

.woocommerce span.onsale {
    min-height: 35px;
    min-width: 35px;
    padding: 0;
    font-weight: 700;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    top: 10px;
    right: 5px;
    margin: 0;
    border-radius: 50%;
    background-color: #c36;
    color: #fff;
    font-size: 13px;
    z-index: 1 !important;
}



.elementor-element-fe33124 .price {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.elementor-element-fe33124 .price del {
    color: #999;
    font-size: 0.85em;
    font-weight: 400;
}

.elementor-element-fe33124 .price ins {
    color: #e85a9b;
    background: transparent;
    font-size: 1.15em;
    font-weight: 700;
    text-decoration: none;
}

/* =========================================================
   END BODY - WOOCOMMERCE SALE BADGE & PRODUCT PRICE
   ========================================================= */

/* ======================= WooCommerce: پیام و انتخاب ویژگی ======================= */
.woocommerce-message {
  max-width: 600px;
  margin: 30px auto;
  background-color: #ffffff;
  color: #000;
  border: 2px solid #e05b9d;
  border-radius: 10px;
  padding: 20px 25px;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.woocommerce-message::before {
  color: #e05b9d !important;
}

.woocommerce-message .button.wc-forward {
  background-color: #e05b9d !important;
  color: #fff !important;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 10px;
}
.woocommerce-message .button.wc-forward:hover {
  background-color: #c84c89 !important;
}

.woocommerce div.product form.cart .variations select {
  width: 100%;
  max-width: 300px;
  background-color: #fff;
  color: #000;
  border: 2px solid #e05b9d;
  border-radius: 10px;
  padding: 12px 40px 12px 15px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23e05b9d' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 12px) 50%;
  background-size: 18px;
  transition: all 0.3s ease;
}
.woocommerce div.product form.cart .variations select:hover {
  border-color: #c84c89;
  box-shadow: 0 0 8px rgba(224, 91, 157, 0.3);
}
.woocommerce div.product form.cart .variations select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(224, 91, 157, 0.2);
}
.woocommerce div.product form.cart .variations select option {
  background-color: #fff;
  color: #000;
}
.woocommerce div.product form.cart .variations select option:hover,
.woocommerce div.product form.cart .variations select option:checked {
  background-color: #e05b9d;
  color: #fff;
}
/* ======================= END WooCommerce: پیام و انتخاب ویژگی ======================= */

/* ======================= کارت محصولات مرتبط و دسته‌بندی‌ها ======================= */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.related.products ul.products li.product {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    transition: all 0.35s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
.related.products ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.14);
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.related.products ul.products li.product img {
    border-radius: 14px;
    margin-bottom: 12px;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: all 0.3s ease;
}

.woocommerce ul.products li.product h2,
.woocommerce-page ul.products li.product h2,
.related.products ul.products li.product h2 {
    font-size: 14px;
    margin-top: 10px;
    min-height: 42px;
    line-height: 1.6;
    color: black !important;
}

.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.related.products ul.products li.product .price {
    margin-top: 6px;
    color: #e05b9d !important;
    font-weight: 700;
    font-size: 16px;
}

.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.related.products ul.products li.product .button {
    margin-top: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* ======================= END کارت محصولات مرتبط ======================= */

/* ======================= کارت‌های Loop / Elementor ======================= */
.e-loop-item.product {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    transition: all 0.35s ease;

    overflow: hidden;
    height: 100%;
}

.e-loop-item.product:hover {
    transform: translateY(-8px);

}

.e-loop-item.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    transition: 0.3s ease;
}

.e-loop-item.product:hover img {
    transform: scale(1.05);
}

.e-loop-item.product h2,
.e-loop-item.product .woocommerce-loop-product__title {
    font-size: 14px;
    margin-top: 12px;
    min-height: 42px;
    line-height: 1.6;
}

.e-loop-item.product .button {
    margin-top: 5px;
    border-radius: 10px;
    transition: 0.3s ease;
}

/* ======================= END کارت‌های Loop ======================= */

/* ======================= موبایل ریسپانسیو ======================= */
@media (max-width: 767px) {
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product,
    .related.products ul.products li.product,
    .e-loop-item.product {
        padding: 12px;
        border-radius: 14px;
    }

    .woocommerce ul.products li.product h2,
    .woocommerce-page ul.products li.product h2,
    .related.products ul.products li.product h2,
    .e-loop-item.product h2 {
        font-size: 13px;
        min-height: auto;
    }

    .woocommerce ul.products li.product .price,
    .woocommerce-page ul.products li.product .price,
    .related.products ul.products li.product .price,
    .e-loop-item.product .price {
        font-size: 14px;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce-page ul.products li.product .button,
    .related.products ul.products li.product .button,
    .e-loop-item.product .button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* ======================= Loop ARTICLE ======================= */
.loop-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 5px;
    transition: all 0.35s ease;
    overflow: hidden;
    height: 100%;
		box-shadow:0px 0px 5px 0px rgba(0, 0, 0, 0.14);
}

.loop-item:hover {
    transform: translateY(-8px);

}

/* =======================END Loop ARTICLE ======================= */

/* ======================= shop  price ======================= */
.woocommerce .elementor-741 .elementor-element.elementor-element-2be1fb0 .price {

    font-weight: 600 !important;
		font-size: 1em;
}

/* =======================products attribute ======================= */
.woocommerce div.product table.shop_attributes td,
.woocommerce div.product table.shop_attributes
.woocommerce-product-attributes-item__value {
    font-style: normal !important;
}

/* =======================products attribute add to cart ======================= */

.reset_variations {
	display:none !important;
}


/* =========================================================
   BODY - PRODUCT TABLES
   Unified style:
   .miracle-product-table
   Legacy aliases: .product-specs-table, .wp-pink-table
   Wrappers: .miracle-product-table-wrapper, .product-specs-wrapper
   Palette: Light Pink + Matcha + White + Black
   ========================================================= */

.miracle-product-table-wrapper,
.product-specs-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 25px 0 20px;
    padding: 0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(70, 80, 60, 0.08);
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* All product table class names share the same appearance.
   .wp-pink-table is styled as a table, not as a wrapper. */
.miracle-product-table,
.product-specs-table,
.wp-pink-table {
    width: 100%;
    max-width: 100%;
    min-width: 320px;
    margin: 0 !important;
    padding: 0;
    border-collapse: collapse;
    border-spacing: 0;
    direction: rtl;
    text-align: right;
    background: #ffffff;
    color: #222222;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.9;
    table-layout: auto;
    height: auto !important;
}

/* Table header */
.miracle-product-table thead th,
.product-specs-table thead th,
.wp-pink-table thead th {
    padding: 15px 18px;
    background: #F8DCE8;
    color: #222222;
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    border: 0;
    border-bottom: 2px solid #A8B99A;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Table body cells */
.miracle-product-table tbody td,
.product-specs-table tbody td,
.wp-pink-table tbody td {
    padding: 13px 18px;
    background: #ffffff;
    color: #222222;
    font-size: 14px;
    text-align: right;
    vertical-align: middle;
    border: 0;
    border-bottom: 1px solid #EAEFE5;
    transition: background-color 0.2s ease;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* First column - soft pink */
.miracle-product-table tbody td:first-child,
.product-specs-table tbody td:first-child,
.wp-pink-table tbody td:first-child {
    background: #FCF1F5;
    color: #333333;
    font-weight: 600;
}

/* Second and following columns remain white */
.miracle-product-table tbody td:nth-child(n+2),
.product-specs-table tbody td:nth-child(n+2),
.wp-pink-table tbody td:nth-child(n+2) {
    background: #ffffff;
}

/* Hover - subtle tint without grey zebra stripes */
.miracle-product-table tbody tr:hover td,
.product-specs-table tbody tr:hover td,
.wp-pink-table tbody tr:hover td {
    background: #FFF8FB;
}

/* Keep first column pink on hover */
.miracle-product-table tbody tr:hover td:first-child,
.product-specs-table tbody tr:hover td:first-child,
.wp-pink-table tbody tr:hover td:first-child {
    background: #F8DCE8;
}

/* Last row */
.miracle-product-table tbody tr:last-child td,
.product-specs-table tbody tr:last-child td,
.wp-pink-table tbody tr:last-child td {
    border-bottom: none;
}

/* Bold text inside tables */
.miracle-product-table strong,
.product-specs-table strong,
.wp-pink-table strong {
    color: #222222;
    font-weight: 700;
}

/* Prevent extra paragraph spacing inside table wrappers */
.miracle-product-table-wrapper p,
.product-specs-wrapper p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile table layout */
@media (max-width: 767px) {
    .miracle-product-table,
    .product-specs-table {
        min-width: 320px;
        font-size: 13px;
    }

    /* Legacy .wp-pink-table is often used without a wrapper,
       so keep it within the mobile viewport. */
    .wp-pink-table {
        min-width: 0;
        table-layout: fixed;
        font-size: 13px;
    }

    .miracle-product-table thead th,
    .product-specs-table thead th,
    .wp-pink-table thead th,
    .miracle-product-table tbody td,
    .product-specs-table tbody td,
    .wp-pink-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
        line-height: 1.9;
    }
}

/* =========================================================
   END BODY - PRODUCT TABLES
   ========================================================= */

/* =====================================
اصلاح ترتیب نمایش قیمت و واحد در ووکامرس
===================================== */

.woocommerce .elementor-widget-woocommerce-product-price .price
.woocommerce-Price-amount bdi {
    direction: rtl !important;
    unicode-bidi: isolate;
    display: inline-block;
}

/* واحد پول بعد از قیمت قرار بگیرد */
.woocommerce .elementor-widget-woocommerce-product-price .price
.woocommerce-Price-currencySymbol {
    direction: rtl !important;
    unicode-bidi: isolate;
    display: inline;
}

/* =====================================  woocommerce-info
===================================== */
.woocommerce-info {
    border-top-color: #e05b9d;
}


/* =====================================  مخفی کردن قیمت متغیر در محل پیش فرض ووکامرس
===================================== */

.single-product .woocommerce-variation-price {
    display: none !important;
}



/* =========================================================
   BODY - FLOATING PHONE & INSTAGRAM BUTTON
   ========================================================= */

/* Floating phone animation */
.miracle-phone-float {
    animation: miraclePhoneFloat 4s ease-in-out infinite;
    transform-origin: center center;
    will-change: transform;
}

@keyframes miraclePhoneFloat {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-12px) rotate(2deg);
    }
}

/* Instagram button */
.miracle-instagram-btn .elementor-button {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255,255,255,0.15);
    animation: miracleButtonPulse 3s ease-in-out infinite;
    transition: all .35s ease;
}

/* Shine effect */
.miracle-instagram-btn .elementor-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        110deg,
        transparent,
        rgba(255,255,255,.45),
        transparent
    );
    transform: skewX(-20deg);
    animation: miracleButtonShine 4s ease-in-out infinite;
}

.miracle-instagram-btn .elementor-button:hover {
    transform: translateY(-3px) scale(1.025);
    box-shadow: 0 6px 22px rgba(255,255,255,.3);
}

@keyframes miracleButtonShine {
    0%, 65% { left: -120%; }
    100% { left: 150%; }
}

@keyframes miracleButtonPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255,255,255,.12); }
    50% { box-shadow: 0 0 17px rgba(255,255,255,.3); }
}

/* Responsive animation */
@media (max-width: 767px) {
    .miracle-phone-float {
        animation-duration: 4.5s;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .miracle-phone-float,
    .miracle-instagram-btn .elementor-button,
    .miracle-instagram-btn .elementor-button::before {
        animation: none !important;
    }
}

/* =========================================================
   END BODY - FLOATING PHONE & INSTAGRAM BUTTON
   ========================================================= */

/* =========================================
   Miracle - Article Call To Action
   ========================================= */

.miracle-cta-box {
    direction: rtl;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff0f5 0%, #ffffff 100%);
    border: 2px dashed #ff69b4;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.10);
}

/* CTA Title */
.miracle-cta-box h3 {
    color: #d11a68 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.8;
    margin: 0 0 15px !important;
    padding: 0 !important;
}

/* CTA Description */
.miracle-cta-box p {
    color: #444 !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
    max-width: 650px;
    margin: 15px auto !important;
}

/* CTA Button */
.miracle-cta-box a {
    display: inline-block;
    box-sizing: border-box;
    background-color: #ff69b4 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.8;
    margin: 5px 0;
    box-shadow: 0 4px 10px rgba(255, 105, 180, 0.30);
    transition: all 0.3s ease;
}

/* Button Hover */
.miracle-cta-box a:hover {
    background-color: #d11a68 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(209, 26, 104, 0.25);
}

/* Button Focus */
.miracle-cta-box a:focus-visible {
    outline: 2px solid #d11a68;
    outline-offset: 4px;
}

/* Last paragraph */
.miracle-cta-box p:last-child {
    margin-bottom: 0 !important;
}

/* Mobile */
@media (max-width: 767px) {
    .miracle-cta-box {
        padding: 20px 15px;
        margin: 25px 0;
        border-radius: 10px;
    }

    .miracle-cta-box h3 {
        font-size: 17px !important;
    }

    .miracle-cta-box p {
        font-size: 14px !important;
    }

    .miracle-cta-box a {
        display: block;
        width: 100%;
        padding: 11px 15px;
        font-size: 14px !important;
    }
}




/* Mobile Sticky Price */
@media (max-width: 767px) {

    .maryam-price-sticky.maryam-price-sticky-active {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 9999 !important;
        background: #ffffff !important;
        padding: 12px 16px !important;
        box-shadow: 0 -3px 15px rgba(0,0,0,0.10);
        box-sizing: border-box !important;
        margin: 0 !important;
        border-radius: 0 !important;
    }

    .maryam-price-sticky-placeholder {
        width: 100%;
        pointer-events: none;
    }

}



/* =====================================
   Related Products - Single Product
===================================== */

/* کارت محصولات مرتبط */
.single-product
.elementor-widget-woocommerce-product-related
.related.products ul.products li.product {

    background: #ffffff;
    border-radius: 18px;
    padding: 16px !important;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;

    box-shadow: 0 6px 18px rgba(0,0,0,0.06);

    transition: all 0.35s ease;
}

/* تصویر محصول */
.single-product
.elementor-widget-woocommerce-product-related
.related.products ul.products li.product img {

    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
}

/* عنوان محصول */
.single-product
.elementor-widget-woocommerce-product-related
.related.products ul.products li.product h2 {

    font-size: 14px;
    line-height: 1.7;
    min-height: 42px;
    margin: 10px 0;
    padding: 0 2px;
    color: #000 !important;
}

/* قیمت محصول */
.single-product
.elementor-widget-woocommerce-product-related
.related.products ul.products li.product .price {

    display: block;
    margin: 8px 0;
    padding: 0 2px;
    color: #e05b9d !important;
    font-weight: 700;
    font-size: 15px;
}

/* دکمه خرید */
.single-product
.elementor-widget-woocommerce-product-related
.related.products ul.products li.product .button {

    margin-top: 12px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* هاور کارت */
@media (hover: hover) and (min-width: 768px) {

    .single-product
    .elementor-widget-woocommerce-product-related
    .related.products ul.products li.product:hover {

        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.14);
    }

}

/* موبایل */
@media (max-width: 767px) {

    .single-product
    .elementor-widget-woocommerce-product-related
    .related.products ul.products li.product {

        padding: 12px !important;
        border-radius: 14px;
    }

    .single-product
    .elementor-widget-woocommerce-product-related
    .related.products ul.products li.product h2 {

        font-size: 13px;
        min-height: 40px;
    }

    .single-product
    .elementor-widget-woocommerce-product-related
    .related.products ul.products li.product .price {

        font-size: 14px;
    }

}


/* =====================================
   MIRACLE - OUT OF STOCK BADGE
   ===================================== */

.miracle-product-card {
    position: relative;
}

/* Badge */
.miracle-stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 16px;

    background: #F8DCE8;
    color: #333333;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.8;

    border: 1px solid #EBC5D5;
    border-radius: 30px;

    box-shadow: 0 3px 10px rgba(0,0,0,0.08);

    white-space: nowrap;
}

/* Small Matcha Dot */
.miracle-stock-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    background: #A8B99A;
    border-radius: 50%;
    margin-left: 7px;
}

/* Shortcode Widget Position */
.miracle-product-card .elementor-widget-shortcode {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    z-index: 20;
    margin: 0;
}

/* Remove empty widget space */
.miracle-product-card .elementor-widget-shortcode:empty {
    display: none;
}

.miracle-product-card .elementor-widget-shortcode
.elementor-widget-container {
    line-height: 1;
}


/* =========================================
   MIRACLE - SALE BADGE POSITION ON MOBILE
   انتقال نشان تخفیف به گوشه چپ تصویر
   ========================================= */

@media (max-width: 767px) {

    .woocommerce span.onsale {
        right: auto !important;
        left: 10px !important;
        top: 10px !important;
    }

}


/* =========================================
   MIRACLE - PRODUCT IMAGE ZOOM ICON
   تنظیم موقعیت آیکون زوم در موبایل
   ========================================= */

@media (max-width: 767px) {

    .woocommerce div.product div.images
    .woocommerce-product-gallery__trigger {

        background: #fff !important;
        border: none !important;
        box-sizing: content-box !important;
        border-radius: 100% !important;
        cursor: pointer;

        font-size: 2em;
        height: 36px;
        width: 36px;
        padding: 0;

        position: absolute !important;
        left: .3em !important;
        right: auto !important;

        top: 1.5em !important;

        text-indent: -9999px;
        z-index: 99 !important;
    }

}


/* =========================================================
   MIRACLE - RELATED PRODUCTS SALE BADGE FIX
   اصلاح دایره و وسط‌چین شدن درصد تخفیف
   ========================================================= */

.single-product
.elementor-widget-woocommerce-product-related
.related.products ul.products li.product .onsale {

    /* ابعاد ثابت دایره */
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
    min-height: 35px !important;

    /* وسط‌چین کردن عدد درصد */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;

    /* موقعیت نشان روی تصویر */
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    bottom: auto !important;

    /* ظاهر و تایپوگرافی */
    border-radius: 50% !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;

    /* جلوگیری از جابه‌جایی ناخواسته */
    transform: none !important;
    white-space: nowrap !important;
    z-index: 2 !important;
}


/* =========================================
   MIRACLE - RELATED PRODUCTS SALE BADGE
   Mobile: Move badge to the left
   ========================================= */

@media (max-width: 767px) {

    .single-product
    .elementor-widget-woocommerce-product-related
    .related.products ul.products li.product .onsale {

        right: auto !important;
        left: 10px !important;

        top: 10px !important;
        bottom: auto !important;

    }

}


/* =========================================================
   END BODY / FOOTER STYLES
   =========================================================
   Maintenance notes:
   - Product tables use one unified design across all three
     legacy/current class names.
   - Keep the old class names until existing page HTML has
     been updated. They are intentional compatibility aliases.
   - Header currently has no custom CSS in the supplied code.
   =========================================================
   
   
/* =========================================================
   MIRACLE - MOBILE SEQUENTIAL VARIATION ACCORDION
   فقط محصولات 1617 و 1605
   ========================================================= */

@media (max-width: 767px) {

    /* ردیف‌های ویژگی */
    form.maryam-sequential-variations table.variations tr {
        display: none !important;
    }

    /* ردیف فعال و ردیف‌های انتخاب‌شده */
    form.maryam-sequential-variations
    table.variations tr.maryam-variation-open,
    form.maryam-sequential-variations
    table.variations tr.maryam-variation-complete {
        display: table-row !important;
    }

    /* عنوان ویژگی */
    form.maryam-sequential-variations
    table.variations tr th {
        display: block !important;
        width: 100% !important;
        padding: 12px 14px !important;
        box-sizing: border-box;
        cursor: pointer;
        background: #FCF1F5;
        border-radius: 10px;
        text-align: right;
        vertical-align: middle;
    }

    /* محتوای انتخاب رنگ */
    form.maryam-sequential-variations
    table.variations tr td {
        display: block !important;
        width: 100% !important;
        padding: 12px 10px !important;
        box-sizing: border-box;
    }

    /* ردیف باز: نمایش گزینه‌های رنگ */
    form.maryam-sequential-variations
    table.variations tr.maryam-variation-open td {
        display: block !important;
    }

    /* ردیف بسته: فقط عنوان و انتخاب انجام‌شده */
    form.maryam-sequential-variations
    table.variations tr.maryam-variation-complete td {
        display: none !important;
    }

    /* خلاصه انتخاب */
    .maryam-variation-summary {
        display: block;
        margin-top: 5px;
        color: #e05b9d;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.8;
    }

    /* عنوان ردیف باز */
    form.maryam-sequential-variations
    tr.maryam-variation-open th {
        background: #F8DCE8;
        border: 1px solid #EBC5D5;
    }

    /* عنوان ردیف انتخاب‌شده */
    form.maryam-sequential-variations
    tr.maryam-variation-complete th {
        background: #F7F8F4;
        border: 1px solid #E2E8DC;
    }

    /* فاصله بین ردیف‌ها */
    form.maryam-sequential-variations
    table.variations tr {
        margin-bottom: 8px;
    }

    /* جلوگیری از نمایش خلاصه خالی */
    .maryam-variation-summary:empty {
        display: none;
    }
}

/* در دسکتاپ هیچ تغییری اعمال نشود */
@media (min-width: 768px) {

    form.maryam-sequential-variations
    table.variations tr {
        display: table-row !important;
    }

    .maryam-variation-summary {
        display: none !important;
    }
}


/* =====================================================
   MIRACLE - FIX VARIATION SWATCHES CONTAINER WIDTH
   Desktop + Mobile
   ===================================================== */

/* حذف محدودیت عرض جدول ویژگی‌ها */
.single-product form.variations_form table.variations {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    table-layout: fixed !important;
}

/* حذف فاصله‌های اضافی سلول‌ها */
.single-product form.variations_form table.variations th,
.single-product form.variations_form table.variations td {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

/* کانتینر سواچ‌ها */
.single-product form.variations_form
.variable-items-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
}

/* جلوگیری از محدود شدن کانتینر داخلی */
.single-product form.variations_form
.value,
.single-product form.variations_form
.value > div {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* موبایل */
@media (max-width: 767px) {
    .single-product form.variations_form
    .variable-items-wrapper {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* دسکتاپ */
@media (min-width: 768px) {
    .single-product form.variations_form
    .variable-items-wrapper {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}


/* =====================================================
   MIRACLE - MOBILE INLINE COMPLETED VARIATIONS
   ===================================================== */

@media (max-width: 767px) {

    .single-product form.maryam-sequential-variations.maryam-mobile-accordion table.variations {
        display: block !important;
        width: 100% !important;
    }

    .single-product form.maryam-sequential-variations.maryam-mobile-accordion table.variations tbody {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        gap: 7px !important;
        width: 100% !important;
        margin-bottom: 15px !important;
    }

    .single-product form.maryam-sequential-variations.maryam-mobile-accordion table.variations tr {
        display: none !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* ویژگی انتخاب‌شده و بسته */
    .single-product form.maryam-sequential-variations.maryam-mobile-accordion table.variations tr.maryam-variation-complete {
        display: inline-flex !important;
        width: auto !important;
        flex: 0 0 auto !important;
        cursor: pointer;
        border: 1px solid #f0c5da;
        border-radius: 8px;
        padding: 7px 10px !important;
        background: #fff7fb;
    }

    /* ویژگی در حال انتخاب */
    .single-product form.maryam-sequential-variations.maryam-mobile-accordion table.variations tr.maryam-variation-open {
        display: block !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        padding: 10px 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    /* خلاصه ویژگی انتخاب‌شده */
    .single-product form.maryam-sequential-variations.maryam-mobile-accordion .maryam-variation-complete th {
        display: block !important;
        width: auto !important;
        padding: 0 !important;
        border: 0 !important;
    }

    .single-product form.maryam-sequential-variations.maryam-mobile-accordion .maryam-variation-complete td {
        display: none !important;
    }

    .single-product form.maryam-sequential-variations.maryam-mobile-accordion .maryam-variation-summary {
        display: inline-block !important;
        font-size: 12px;
        font-weight: 500;
        color: #a83d75;
        margin-right: 5px;
        cursor: pointer;
    }

    /* ردیف باز */
    .single-product form.maryam-sequential-variations.maryam-mobile-accordion .maryam-variation-open th {
        display: block !important;
        width: 100% !important;
        padding: 0 0 8px !important;
    }

    .single-product form.maryam-sequential-variations.maryam-mobile-accordion .maryam-variation-open td {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .single-product form.maryam-sequential-variations.maryam-mobile-accordion .maryam-variation-open .maryam-variation-summary {
        display: none !important;
    }
}

/* =====================================================
   MIRACLE - GLOBAL WOOCOMMERCE VARIATIONS LAYOUT FIX
   Separate attribute labels from color swatches
   ===================================================== */

/* Desktop + Mobile: محصولات عادی */
.single-product form.variations_form:not(.maryam-mobile-accordion) table.variations {
    display: table !important;
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
}

.single-product form.variations_form:not(.maryam-mobile-accordion) table.variations tbody {
    display: table-row-group !important;
    width: 100% !important;
}

.single-product form.variations_form:not(.maryam-mobile-accordion) table.variations tr {
    display: table-row !important;
    width: 100% !important;
    float: none !important;
}

/* عنوان ویژگی */
.single-product form.variations_form:not(.maryam-mobile-accordion) table.variations th.label {
    display: table-cell !important;
    width: 25% !important;
    min-width: 100px !important;
    padding: 10px 12px 10px 15px !important;
    text-align: right !important;
    vertical-align: top !important;
    float: none !important;
    white-space: normal !important;
}

/* محل نمایش رنگ‌بندی */
.single-product form.variations_form:not(.maryam-mobile-accordion) table.variations td.value {
    display: table-cell !important;
    width: 75% !important;
    padding: 10px 0 !important;
    text-align: right !important;
    vertical-align: top !important;
    float: none !important;
}

/* جلوگیری از تداخل گزینه‌های رنگ */
.single-product form.variations_form:not(.maryam-mobile-accordion) .variable-items-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* موبایل: تنظیم عرض عنوان */
@media (max-width: 767px) {

    .single-product form.variations_form:not(.maryam-mobile-accordion) table.variations th.label {
        width: 30% !important;
        min-width: 85px !important;
        padding-left: 8px !important;
    }

    .single-product form.variations_form:not(.maryam-mobile-accordion) table.variations td.value {
        width: 70% !important;
    }

}


/* =====================================================
   MIRACLE - CHOOSE VARIATIONS TRIGGER
   ===================================================== */

@media (max-width: 767px) {

    /* مخفی بودن جدول ویژگی‌ها قبل از شروع انتخاب */
    .single-product form.maryam-variations-waiting table.variations {
        display: none !important;
    }

    /* مخفی بودن دکمه افزودن به سبد در حالت اولیه */
    .single-product form.maryam-variations-waiting .single_add_to_cart_button {
        display: none !important;
    }

    /* باکس معرفی انتخاب رنگ */
    .maryam-variation-trigger-wrapper {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin: 0 0 15px;
        box-sizing: border-box;
    }

    .maryam-variation-trigger-description {
        font-size: 13px;
        line-height: 1.8;
        color: #777;
        text-align: right;
    }

    /* دکمه انتخاب رنگ */
    .maryam-choose-variations-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid #e5a3c4;
        border-radius: 8px;
        background: #fff4f9;
        color: #a83d75;
        font-family: inherit;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all .2s ease;
    }

    .maryam-choose-variations-trigger:active {
        background: #fce5ef;
    }

    /* پس از شروع انتخاب، دکمه معرفی مخفی شود */
    .maryam-variations-waiting .maryam-variation-trigger-wrapper {
        display: flex;
    }

    form.maryam-sequential-variations:not(.maryam-variations-waiting)
    .maryam-variation-trigger-wrapper {
        display: none !important;
    }

}

/* MIRACLE - Hide Quantity Before Variation Selection */
@media (max-width: 767px) {

    .single-product form.maryam-variations-waiting .quantity {
        display: none !important;
    }

}
