/* =========================================================
   Product layout v0.4.0 - only single product page
   ========================================================= */
@media (min-width: 901px) {
	.woocommerce div.product > .mytheme-product-top-layout {
        display: grid !important;
        grid-template-columns: 30% minmax(0, 45%) 25% !important;
        gap: 24px !important;
        align-items: start !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        width: 100%;
        max-width: none;    padding-inline: clamp(18px, 3.2vw, 56px);
	}
	.woocommerce div.product > .mytheme-product-top-layout > .woocommerce-product-gallery,
	.woocommerce div.product > .mytheme-product-top-layout > .mytheme-product-gallery { grid-column:1; width:100% !important; flex:none !important; }
	.woocommerce div.product > .mytheme-product-top-layout > .summary { grid-column:2; width:100% !important; flex:none !important; }
	.woocommerce div.product > .mytheme-product-top-layout > .mytheme-purchase-box { grid-column:3; width:100% !important; }
}
.mytheme-purchase-box { background:#fff; border:1px solid var(--color-border); border-radius:var(--radius); padding:20px; box-sizing:border-box; }
.mytheme-purchase-box__price { margin-bottom:18px; }
.mytheme-purchase-box__price .price { margin:0; font-size:21px; font-weight:700; }
.mytheme-purchase-box .cart { margin:0; }
.mytheme-purchase-box .cart .quantity { margin-bottom:12px; }
.mytheme-purchase-box .cart .single_add_to_cart_button { width:100%; margin-top:12px; }
.mytheme-purchase-box .variations { width:100%; margin-bottom:12px; }
.mytheme-product-information { margin-top:18px; padding-top:16px; border-top:1px solid var(--color-border); display:grid; gap:9px; }
.mytheme-product-information__row { display:flex; gap:10px; justify-content:space-between; align-items:flex-start; font-size:13px; line-height:1.8; }
.mytheme-product-information__row strong { flex:0 0 auto; font-weight:700; }
.mytheme-product-information__row span { text-align:left; color:var(--color-text-light); }
.mytheme-product-information__row a { color:inherit; text-decoration:none; }
.mytheme-product-information__row small { font-size:11px; }
.mytheme-product-trust { width:100%; max-width:var(--container-max); margin:0 auto 28px; padding:20px; box-sizing:border-box; border:1px solid var(--color-border); border-radius:var(--radius); display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.mytheme-product-trust__item { display:flex; align-items:center; gap:10px; min-width:0; padding:8px; }
.mytheme-product-trust__icon { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:50%; background:#f5f7f8; font-size:20px; }
.mytheme-product-trust__item strong,.mytheme-product-trust__item small { display:block; }
.mytheme-product-trust__item strong { font-size:13px; }
.mytheme-product-trust__item small { margin-top:3px; color:var(--color-text-light); font-size:10px; line-height:1.5; }
.mytheme-product-lower-layout {
	max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    grid-auto-flow: column;
	}
.mytheme-product-sticky-sidebar { grid-column:1; position:sticky; top:20px; min-width:0; }
.mytheme-product-lower-content { grid-column:2; min-width:0; }
.mytheme-product-sticky-sidebar .mytheme-purchase-box { width:100%; }
.mytheme-product-lower-content > .mytheme-product-section,
.mytheme-product-lower-content > .mytheme-product-upsells-section,
.mytheme-product-lower-content > .mytheme-product-related-section { max-width:none; margin:0; }
.mytheme-product-lower-content > .mytheme-product-section:first-child { padding-top:0; border-top:0; }
@media (max-width:900px) {
	.woocommerce div.product > .mytheme-product-top-layout { display:contents !important; }
	.woocommerce div.product > .mytheme-product-top-layout > .mytheme-purchase-box { width:100%; }
	.mytheme-product-trust { grid-template-columns:repeat(2,minmax(0,1fr)); margin-inline:20px; width:calc(100% - 40px); }
	.mytheme-product-lower-layout { display:block; }
	.mytheme-product-sticky-sidebar { display:none; }
	.mytheme-product-lower-content { width:100%; }
}
@media (max-width:600px) {
	.mytheme-product-trust { grid-template-columns:1fr; padding:14px; }
	.mytheme-product-information__row { flex-direction:column; gap:2px; }
}


/* =========================================================
   Product page refinement - scoped to single product only.
   ========================================================= */
.single-product .woocommerce-wrapper {
	width:100%;
	max-width:none;
	padding:0;
}

.single-product .woocommerce div.product {
	max-width:none;
	width:100%;
	padding:clamp(24px,3vw,44px) clamp(18px,3.2vw,56px);
	gap:clamp(20px,2.6vw,40px);
}

.single-product .woocommerce div.product > .mytheme-product-top-layout {
	width:100% !important;
	max-width:none !important;
}

.single-product .mytheme-product-lower-layout {
	width:100%;
	max-width:none;
	padding-inline:clamp(18px,3.2vw,56px);
	grid-template-columns:minmax(0,1fr) 345px;
}

.single-product .mytheme-product-sticky-sidebar {
	grid-column:2;
}

.single-product .mytheme-product-lower-content {
	grid-column:1;
}

.single-product .mytheme-purchase-box,
.single-product .mytheme-product-information,
.single-product .mytheme-product-trust,
.single-product .mytheme-product-section {
	box-shadow:none;
}

.single-product .mytheme-purchase-box {
	border:1px solid #e8e8e8;
	border-radius:16px;
	padding:22px;
	background:#fff;
}

.single-product .mytheme-purchase-box__price {
	padding-bottom:16px;
	margin-bottom:16px;
	border-bottom:1px solid #eeeeee;
}

.single-product .mytheme-purchase-box .single_add_to_cart_button,
.single-product .mytheme-sticky-add {
	min-height:48px;
	border-radius:12px;
	font-family:inherit;
	font-weight:700;
	transition:transform .18s ease, opacity .18s ease, background-color .18s ease;
}

.single-product .mytheme-purchase-box .single_add_to_cart_button:hover,
.single-product .mytheme-sticky-add:hover {
	transform:translateY(-1px);
}

.single-product .mytheme-product-information {
	border-color:#ededed;
}

.single-product .mytheme-product-trust {
    border-radius: 16px;
    border-color: #e8e8e8;
    background: #fff;
    width: 100%;
    margin: 0 auto;
    width: 100%;
    max-width: 94%;    padding-inline: clamp(18px, 3.2vw, 56px);
}

.single-product .mytheme-product-section {
	border-top:1px solid #ececec;
	padding-top:34px;
	padding-bottom:34px;
}

@media (max-width:900px) {
	.single-product .mytheme-product-lower-layout {
		padding-inline:0px;
	}
	.single-product .mytheme-product-sticky-sidebar,
	.single-product .mytheme-product-lower-content {
		grid-column:auto;
	}
}


/* V18 — price and loyalty box */
.single-product .mytheme-purchase-box__price{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:16px;margin-bottom:14px;border-bottom:1px solid #e6eae6;}
.single-product .mytheme-purchase-box__price-label{font-size:11px;color:var(--color-text-light);font-weight:600;white-space:nowrap;}
.single-product .mytheme-purchase-box__price-value{margin-inline-start:auto;text-align:right;}
.single-product .mytheme-purchase-box__price-value .price{font-size:21px;font-weight:800;}
.single-product .mytheme-purchase-box__cashback{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;margin-bottom:17px;border:1px solid #e7ebe6;border-radius:13px;background:#fafcf9;color:#3f4741;}
.single-product .mytheme-purchase-box__cashback-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#f0f5ed;color:var(--color-primary);}
.single-product .mytheme-purchase-box__cashback-icon svg{width:17px;height:17px;}
.single-product .mytheme-purchase-box__cashback strong,.single-product .mytheme-purchase-box__cashback small{display:block;}
.single-product .mytheme-purchase-box__cashback strong{font-size:12px;margin-bottom:3px;}
.single-product .mytheme-purchase-box__cashback small{font-size:10.5px;line-height:1.75;color:var(--color-text-light);}


/* V19 — product quantity controls + purchase benefits. Scoped to product page. */
.single-product .mytheme-quantity,
.single-product .mytheme-purchase-box .quantity{
	width:100%;
 display:inline-flex!important;align-items:center;gap:0;height:46px;border:1px solid #e2e6e2;border-radius:13px;background:#fff;overflow:hidden;vertical-align:middle;
}
.single-product .mytheme-purchase-box .quantity input.qty{
 width:100%!important;font-family:inherit;height:44px!important;margin:0!important;padding:0 4px!important;border:0!important;border-left:1px solid #edf0ed!important;border-right:1px solid #edf0ed!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;text-align:center;font-weight:800;color:#222;appearance:textfield;-moz-appearance:textfield;
}
.single-product .mytheme-purchase-box .quantity input.qty::-webkit-outer-spin-button,
.single-product .mytheme-purchase-box .quantity input.qty::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;}
.single-product .mytheme-purchase-box .mytheme-qty-minus,
.single-product .mytheme-purchase-box .mytheme-qty-plus{
 width:42px;height:44px;margin:0!important;padding:0!important;border:0!important;background:#f7f8f7!important;color:#303630!important;font:700 21px/1 inherit;cursor:pointer;transition:background-color .18s ease,color .18s ease,transform .18s ease;
}
.single-product .mytheme-purchase-box .mytheme-qty-minus:hover,
.single-product .mytheme-purchase-box .mytheme-qty-plus:hover{background:#eef2ee!important;color:var(--color-primary)!important;}
.single-product .mytheme-purchase-box .mytheme-qty-minus:active,
.single-product .mytheme-purchase-box .mytheme-qty-plus:active{transform:scale(.92);}
.single-product .mytheme-purchase-box__form .mytheme-quantity{margin-bottom:12px;}
.single-product .mytheme-purchase-box__benefit{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;margin-bottom:17px;border:1px solid #e7ebe6;border-radius:13px;color:#3f4741;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;}
.single-product .mytheme-purchase-box__benefit:hover{transform:translateY(-2px);border-color:#f2c5a2;box-shadow:0 8px 22px rgba(245,106,0,.08);}
.single-product .mytheme-purchase-box__benefit-icon{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#fff0e5;color:#f56a00;}
.single-product .mytheme-purchase-box__benefit-icon svg{width:17px;height:17px;}
.single-product .mytheme-purchase-box__benefit strong,.single-product .mytheme-purchase-box__benefit small{display:block;}
.single-product .mytheme-purchase-box__benefit strong{font-size:12px;margin-bottom:3px;}
.single-product .mytheme-purchase-box__benefit small{font-size:10.5px;line-height:1.75;color:var(--color-text-light);}
.single-product .mytheme-purchase-box__benefit--orange{background:linear-gradient(135deg,#fffaf6 0%,#fff2e8 100%);border-color:#f5d5bc;position:relative;overflow:hidden;}
.single-product .mytheme-purchase-box__benefit--orange:after{content:"";position:absolute;inset:auto -30px -35px auto;width:90px;height:90px;border-radius:50%;background:rgba(245,106,0,.07);pointer-events:none;}
@media(max-width:600px){.single-product .mytheme-purchase-box .quantity input.qty{width:100% !important}.single-product .mytheme-purchase-box .mytheme-qty-minus,.single-product .mytheme-purchase-box .mytheme-qty-plus{width:40px}.single-product .mytheme-purchase-box__benefit{padding:10px}.single-product .mytheme-purchase-box__benefit small{font-size:10px;}}
/* =========================================================
   PRODUCT ATTRIBUTES — KOOHMAN #93A254
========================================================= */

.single-product .woocommerce-product-attributes {
    --km-main: #93a254;
    --km-main-dark: #78883f;
    --km-main-light: #f3f5eb;
    --km-main-soft: #e9eddc;

    width: 100%;
    margin: 26px 0 0;

    border: 1px solid #e5e8dc;
    border-radius: 20px;

    border-collapse: separate;
    border-spacing: 0;

    overflow: hidden;

    background: #fff;

    direction: rtl;

    box-shadow: none;
}


/* =========================================================
   ROW
========================================================= */

.single-product .woocommerce-product-attributes tr {
    position: relative;

    transition:
        background-color .3s ease;
}


/* خط بین ردیف‌ها */

.single-product .woocommerce-product-attributes tr + tr th,
.single-product .woocommerce-product-attributes tr + tr td {
    border-top: 1px solid #edf0e7;
}


/* =========================================================
   LABEL
========================================================= */

.single-product .woocommerce-product-attributes th {
    position: relative;

    width: 32%;

    padding: 18px 20px;

    background: linear-gradient(
        135deg,
        #fafbf8 0%,
        #f5f7f0 100%
    );

    color: #262a25;

    font-size: 13px;
    font-weight: 800;

    line-height: 1.8;

    text-align: right;

    vertical-align: middle;

    border: 0;
}


/* Accent کنار عنوان */

.single-product .woocommerce-product-attributes th::before {
    content: "";

    position: absolute;

    right: 0;
    top: 25%;
    bottom: 25%;

    width: 3px;

    border-radius: 10px;

    background: linear-gradient(
        180deg,
        #93a254,
        #b3bf7e
    );

    opacity: .95;

    transition:
        top .3s ease,
        bottom .3s ease;
}


/* =========================================================
   VALUE
========================================================= */

.single-product .woocommerce-product-attributes td {
    position: relative;

    padding: 18px 22px;

    background: #fcfdf9;

    color: #565b55;

    font-size: 13px;
    font-weight: 500;

    line-height: 1.9;

    text-align: right;

    vertical-align: middle;

    border: 0;
}


/* =========================================================
   TEXT
========================================================= */

.single-product .woocommerce-product-attributes td p {
    margin: 0;
}


/* =========================================================
   BRAND / ATTRIBUTE LINK
========================================================= */

.single-product .woocommerce-product-attributes td a {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 7px 12px;

    border-radius: 10px;

    background: var(--km-main-light);

    border: 1px solid rgba(147, 162, 84, .20);

    color: var(--km-main-dark);

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;

    transition:
        color .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}


/* فلش */

.single-product .woocommerce-product-attributes td a::after {
    content: "←";

    font-size: 12px;
    font-weight: 800;

    opacity: .65;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* Hover لینک */

.single-product .woocommerce-product-attributes td a:hover {
    color: #fff;

    background: var(--km-main);

    border-color: var(--km-main);

    transform: translateX(-3px);
}


.single-product .woocommerce-product-attributes td a:hover::after {
    transform: translateX(-3px);

    opacity: 1;
}


/* =========================================================
   ROW HOVER
========================================================= */

.single-product .woocommerce-product-attributes tr:hover th {
    background: #f7f8f3;
}


.single-product .woocommerce-product-attributes tr:hover td {
    background: #fcfdf9;
}


.single-product .woocommerce-product-attributes tr:hover th::before {
    top: 18%;
    bottom: 18%;
}


/* =========================================================
   SUBTLE ALTERNATING ACCENTS
   همه بر پایه #93A254
========================================================= */

.single-product
.woocommerce-product-attributes
tr:nth-child(2)
th::before {
    background: linear-gradient(
        180deg,
        #93a254,
        #aab36f
    );
}


.single-product
.woocommerce-product-attributes
tr:nth-child(3)
th::before {
    background: linear-gradient(
        180deg,
        #7f9045,
        #a5b267
    );
}


.single-product
.woocommerce-product-attributes
tr:nth-child(4)
th::before {
    background: linear-gradient(
        180deg,
        #a0ad62,
        #c0c98d
    );
}


/* =========================================================
   SOFT VALUE MARKER
========================================================= */

.single-product
.woocommerce-product-attributes
td:not(:has(a)) {
    color: #4f554d;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .single-product .woocommerce-product-attributes {
        margin-top: 20px;

        border-radius: 16px;
    }


    .single-product .woocommerce-product-attributes th,
    .single-product .woocommerce-product-attributes td {
        padding: 14px 13px;

        font-size: 11px;
    }


    .single-product .woocommerce-product-attributes th {
        width: 34%;
    }


    .single-product .woocommerce-product-attributes td a {
        padding: 6px 9px;

        font-size: 10px;

        gap: 5px;
    }


    .single-product .woocommerce-product-attributes td a::after {
        font-size: 10px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .single-product .woocommerce-product-attributes th,
    .single-product .woocommerce-product-attributes td {
        padding: 12px 10px;
    }

}
/* =========================================================
   PRODUCT TRUST — PREMIUM UI
   فقط برای:
   .mytheme-product-trust
========================================================= */

.single-product .mytheme-product-trust {
    --trust-accent: #f56a00;
    --trust-text: #202124;
    --trust-muted: #8a8f98;
    --trust-border: #eceef1;

    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;

    direction: rtl;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fafafa 100%
        );

    border: 1px solid var(--trust-border);
    border-radius: 20px;

    overflow: hidden;

    isolation: isolate;
}


/* ---------------------------------------------------------
   ITEM
--------------------------------------------------------- */

.single-product .mytheme-product-trust__item {
    position: relative;

    flex: 1 1 0;
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    min-height: 76px;
    padding: 12px 15px;

    box-sizing: border-box;

    text-align: right;

    transition:
        background-color .28s ease,
        transform .28s ease;
}


/* جداکننده بین آیتم‌ها */

.single-product .mytheme-product-trust__item + .mytheme-product-trust__item::before {
    content: "";
    position: absolute;

    right: 0;
    top: 20%;
    bottom: 20%;

    width: 1px;

    background: linear-gradient(
        to bottom,
        transparent,
        #e5e7eb 25%,
        #e5e7eb 75%,
        transparent
    );
}


/* ---------------------------------------------------------
   ICON
--------------------------------------------------------- */

.single-product .mytheme-product-trust__icon {
    position: relative;

    flex: 0 0 44px;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #fff7f1;

    border: 1px solid rgba(245, 106, 0, .12);

    color: var(--trust-accent);

    overflow: hidden;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1),
        background-color .3s ease,
        border-color .3s ease;
}


/* نور خیلی ظریف داخل آیکون */

.single-product .mytheme-product-trust__icon::before {
    content: "";

    position: absolute;

    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: rgba(245, 106, 0, .08);

    transform: scale(0);

    transition: transform .4s cubic-bezier(.2,.8,.2,1);
}


/* SVG */

.single-product .mytheme-product-trust__icon svg {
    position: relative;
    z-index: 2;

    width: 22px;
    height: 22px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform .35s cubic-bezier(.2,.8,.2,1);
}


/* ---------------------------------------------------------
   TEXT
--------------------------------------------------------- */

.single-product .mytheme-product-trust__item > div {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 5px;
}


.single-product .mytheme-product-trust__item strong {
    display: block;

    margin: 0;

    color: var(--trust-text);

    font-size: 13px;
    font-weight: 800;

    line-height: 1.5;

    white-space: nowrap;
}


.single-product .mytheme-product-trust__item small {
    display: block;

    margin: 0;

    color: var(--trust-muted);

    font-size: 11px;
    font-weight: 500;

    line-height: 1.6;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   HOVER
--------------------------------------------------------- */

.single-product .mytheme-product-trust__item:hover {
    background: rgba(245, 106, 0, .025);

    transform: translateY(-2px);
}


.single-product .mytheme-product-trust__item:hover
.mytheme-product-trust__icon {
    transform: translateY(-2px) scale(1.05);

    background: #fff1e7;

    border-color: rgba(245, 106, 0, .22);
}


.single-product .mytheme-product-trust__item:hover
.mytheme-product-trust__icon::before {
    transform: scale(1);
}


.single-product .mytheme-product-trust__item:hover
.mytheme-product-trust__icon svg {
    transform: scale(1.08);
}


/* ---------------------------------------------------------
   FIRST / LAST ITEM
--------------------------------------------------------- */

.single-product .mytheme-product-trust__item:first-child {
    border-radius: 14px;
}

.single-product .mytheme-product-trust__item:last-child {
    border-radius: 14px;
}


/* ---------------------------------------------------------
   ACTIVE-LIKE TOP ACCENT
--------------------------------------------------------- */

.single-product .mytheme-product-trust__item::after {
    content: "";

    position: absolute;

    bottom: 0;
    right: 25%;
    left: 25%;

    height: 2px;

    border-radius: 10px;

    background: var(--trust-accent);

    transform: scaleX(0);

    transform-origin: center;

    opacity: 0;

    transition:
        transform .35s ease,
        opacity .35s ease;
}


.single-product .mytheme-product-trust__item:hover::after {
    transform: scaleX(1);
    opacity: .7;
}


/* =========================================================
   TABLET
========================================================= */
@media (min-width: 900px) {
.mytheme-product-gallery{
	position:sticky;
	top:0;
}}
@media (max-width: 900px) {

    .single-product .mytheme-product-trust {
        flex-wrap: wrap;
        padding: 6px;
		max-width:100%;
    }

    .single-product .mytheme-product-trust__item {
        flex: 1 1 33.333%;
    }

    .single-product .mytheme-product-trust__item:nth-child(4)::before,
    .single-product .mytheme-product-trust__item:nth-child(5)::before {
        display: none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .single-product .mytheme-product-trust {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 2px;

        padding: 5px;

        border-radius: 17px;
    }


    .single-product .mytheme-product-trust__item {
        min-height: 72px;

        justify-content: flex-start;

        padding: 11px 10px;

        gap: 9px;

        border-radius: 12px;
    }


    .single-product .mytheme-product-trust__item::before {
        display: none !important;
    }


    .single-product .mytheme-product-trust__icon {
        flex-basis: 38px;

        width: 38px;
        height: 38px;

        border-radius: 12px;
    }


    .single-product .mytheme-product-trust__icon svg {
        width: 19px;
        height: 19px;
    }


    .single-product .mytheme-product-trust__item strong {
        font-size: 11px;
    }


    .single-product .mytheme-product-trust__item small {
        font-size: 9px;
    }


    /* آیتم پنجم وسط قرار بگیرد */

    .single-product .mytheme-product-trust__item:last-child {
        grid-column: 1 / -1;

        justify-content: center;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .single-product .mytheme-product-trust__item,
    .single-product .mytheme-product-trust__icon,
    .single-product .mytheme-product-trust__icon svg,
    .single-product .mytheme-product-trust__icon::before,
    .single-product .mytheme-product-trust__item::after {
        transition: none !important;
    }

}
/* =========================================
   PRODUCT INFORMATION
   Premium Meta Panel
========================================= */

.single-product .mytheme-product-information {
    position: relative;

    margin: 24px 0 0px;
    padding: 5px 20px;

    background: #fff;
    border: 1px solid #e6e9df;
    border-radius: 18px;

    overflow: hidden;
}
.woocommerce div.product div.summary {
    margin-bottom: 0em;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background-color: #93a254;
    color: #fff;
    -webkit-font-smoothing: antialiased;border-radius: 10px;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #93a254;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:hover {
    background-color: #7f8c47;
    color: #fff;
}
/* نوار ظریف بالای پنل */
.single-product .mytheme-product-information::before {
    content: "";

    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #93a254,
        transparent
    );

    opacity: .55;
}


/* =========================================
   ROW
========================================= */

.single-product .mytheme-product-information__row {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 52px;
    margin: 0;
    padding: 10px 4px;

    gap: 18px;

    transition:
        padding .25s ease,
        background-color .25s ease;
}


/* جداکننده */
.single-product .mytheme-product-information__row + .mytheme-product-information__row {
    border-top: 1px solid #eef0ea;
}


/* =========================================
   DOT
========================================= */

.single-product .mytheme-product-information__row::before {
    content: "";

    flex: 0 0 7px;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #93a254;

    box-shadow:
        0 0 0 4px #f1f4e8;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


/* =========================================
   LABEL
========================================= */

.single-product .mytheme-product-information__row strong {
    flex: 0 0 105px;

    color: #85897f;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.7;
}


/* =========================================
   VALUE
========================================= */

.single-product .mytheme-product-information__row span {
    flex: 1;
    min-width: 0;

    color: #292d27;

    font-size: 13px;
    font-weight: 650;

    line-height: 1.8;

    text-align: right;
}


/* =========================================
   LINKS
========================================= */

.single-product .mytheme-product-information__row span a {
    position: relative;

    display: inline-block;

    color: #687538;

    font-weight: 600;

    text-decoration: none;

    transition: color .2s ease;
}


/* خط زیر لینک */
.single-product .mytheme-product-information__row span a::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: -2px;
    left: 0;

    height: 1px;

    background: #93a254;

    transform: scaleX(0);
    transform-origin: right;

    transition: transform .25s ease;
}


.single-product .mytheme-product-information__row span a:hover {
    color: #93a254;
}


.single-product .mytheme-product-information__row span a:hover::after {
    transform: scaleX(1);
}


/* =========================================
   HOVER
========================================= */

.single-product .mytheme-product-information__row:hover {
    border-radius: 12px;
    background: #fafbf8;
    padding: 10px 4px;
}


.single-product .mytheme-product-information__row:hover::before {
    transform: scale(1.35);

    box-shadow:
        0 0 0 5px #edf1df;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
.single-product .mytheme-product-information__row {
    flex-direction: row;
}
    .single-product .mytheme-product-information {
        margin: 20px 0 0px;
        padding: 4px 14px;

        border-radius: 15px;
    }

    .single-product .mytheme-product-information::before {
        right: 18px;
        left: 18px;
    }

    .single-product .mytheme-product-information__row {
        min-height: 48px;
        gap: 13px;
        padding: 9px 2px;
    }

    .single-product .mytheme-product-information__row strong {
        flex-basis: 82px;
        font-size: 11px;
    }

    .single-product .mytheme-product-information__row span {
        font-size: 12px;
    }

    .single-product .mytheme-product-information__row:hover {
        padding-right: 5px;
        padding-left: 5px;
    }
}

/* =========================================
   PRODUCT SHORT DESCRIPTION
   Minimal / Premium
========================================= */

.single-product .woocommerce-product-details__short-description {
    position: relative;

    margin: 24px 0 28px;
    padding: 18px 20px;

    
    border: 1px solid #e8ebdf;
    border-radius: 16px;
}


/* لیست */
.single-product .woocommerce-product-details__short-description ul {
    list-style: none !important;

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

    display: flex;
    flex-direction: column;
}


/* آیتم */
.single-product .woocommerce-product-details__short-description li {
    position: relative;

    display: flex;
    align-items: flex-start;
    gap: 11px;

    margin: 0 !important;
    padding: 11px 0;

    color: #45483f;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.9;
}


/* جداکننده بین آیتم‌ها */
.single-product .woocommerce-product-details__short-description li + li {
    border-top: 1px solid #e8ebdf;
}


/* تیک مینیمال */
.single-product .woocommerce-product-details__short-description li::before {
    content: "✓";

    flex: 0 0 21px;

    width: 21px;
    height: 21px;

    margin-top: 2px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #93a254;
    font-size: 12px;
    font-weight: 800;

    border: 1px solid #cbd3ad;
    border-radius: 50%;

    background: #f4f6ec;
}


/* متن */
.single-product .woocommerce-product-details__short-description li {
    transition: color .2s ease;
}


/* Hover خیلی ظریف */
.single-product .woocommerce-product-details__short-description li:hover {
    color: #30332c;
}

.single-product .woocommerce-product-details__short-description li:hover::before {
    background: #93a254;
    border-color: #93a254;
    color: #fff;
}


/* =========================================
   DESKTOP
========================================= */

@media (min-width: 901px) {

    .single-product .woocommerce-product-details__short-description {
        max-width: 700px;
        padding: 18px 22px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .single-product .woocommerce-product-details__short-description {
        margin: 18px 0 22px;
        padding: 13px 15px;

        border-radius: 13px;
    }

    .single-product .woocommerce-product-details__short-description li {
        gap: 9px;
        padding: 9px 0;

        font-size: 13px;
        line-height: 1.85;
    }

    .single-product .woocommerce-product-details__short-description li::before {
        flex-basis: 19px;
        width: 19px;
        height: 19px;

        font-size: 11px;
    }
}
/* Section title icons + sidebar navigation action */
.single-product .mytheme-product-section__title{display:flex;align-items:center;gap:10px;font-weight:800;}
.single-product .mytheme-product-section__title-icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border-radius:11px;background:#f3f7ef;color:var(--color-primary);}
.single-product .mytheme-product-section__title-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
.single-product .mytheme-product-sticky-sidebar .mytheme-sticky-add{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;}
.single-product .mytheme-product-sticky-sidebar .mytheme-sticky-add:before{content:'↥';font-size:18px;line-height:1;}
.single-product .mytheme-product-sticky-sidebar .mytheme-sticky-add{font-size:0;}
.single-product .mytheme-product-sticky-sidebar .mytheme-sticky-add:after{content:'رفتن به بخش خرید';font-size:14px;}


.woocommerce-Reviews{
	background: #f3f7ef;
    border-radius: 12px;
    padding: 12px;
}
.mytheme-product-top-layout > aside > div.mytheme-purchase-box__form > form > table > tbody > tr{
	    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt.disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:disabled[disabled], .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt:disabled[disabled]:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt.disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:disabled[disabled], .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt:disabled[disabled]:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt.disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:disabled[disabled], .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt:disabled[disabled]:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt.disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt.disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:disabled, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:disabled:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:disabled[disabled], .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt:disabled[disabled]:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt.disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt.disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:disabled[disabled], :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt:disabled[disabled]:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt.disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt.disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:disabled[disabled], :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt:disabled[disabled]:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt.disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt.disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:disabled[disabled], :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt:disabled[disabled]:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt.disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt.disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:disabled, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:disabled:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:disabled[disabled], :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt:disabled[disabled]:hover {
    background-color: #93a254;
    color: #fff;
}







/* SnappPay installment widget */
.single-product .snappay-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    margin: 12px 0;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-right: 4px solid #799fa7;
    border-radius: 10px;
    font-family: inherit;
}

.single-product .snappay-widget__logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 4px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.single-product .snappay-widget__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.single-product .snappay-widget__body {
    flex: 1;
    min-width: 0;
}

.single-product .snappay-widget__title {
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
}

.single-product .snappay-widget__title em {
    color: #0891fa;
    font-style: normal;
}

.single-product .snappay-widget__installments {
    color: #475569;
    font-size: 12px;
    line-height: 1.8;
}

.single-product .snappay-widget__installment-amount {
    color: #f98938;
    font-weight: 800;
}

.single-product .snappay-widget__badge {
    flex-shrink: 0;
    padding: 3px 8px;
    color: #799fa7;
    background: #f4f7f8;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .single-product .snappay-widget {
        gap: 8px;
        padding: 10px;
    }

    .single-product .snappay-widget__logo {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .single-product .snappay-widget__title {
        font-size: 12px;
    }

    .single-product .snappay-widget__installments {
        font-size: 11px;
    }
}




        .km-stock-box {
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
            box-sizing: border-box !important;
            margin: 10px 0 !important;
            padding: 8px 12px !important;
            border: 1px dashed #f98938 !important;
            border-radius: 10px !important;
            background: #fbf1e9 !important;
            color: #b85e20 !important;
            font-size: 12px !important;
            font-weight: 600 !important;
            line-height: 1.6 !important;
            direction: rtl !important;
        }

        .km-stock-box svg {
            flex: 0 0 16px;
            display: block;
        }

        .km-stock-box .km-stock-num {
            font-weight: 800;
        }

        .km-stock-box.km-low {
            animation: kmPulseAlert 2s ease infinite;
        }

        @keyframes kmPulseAlert {
            0%, 100% { opacity: 1; }
            50% { opacity: .72; }
        }

        @media (prefers-reduced-motion: reduce) {
            .km-stock-box.km-low {
                animation: none;
            }
        }
