/*
 * Digikala-inspired single product skin.
 * Activated via Appearance → Single Product Layout (layout style + feature flags).
 */

:root {
    /* Site colors only — Woodmart primary / admin accent. Never force Digikala red. */
    --mme-dk-accent: var(--mme-product-accent, var(--wd-primary-color, var(--color-primary, #7eb934)));
    --mme-dk-accent-soft: color-mix(in srgb, var(--mme-dk-accent) 16%, #fff);
    --mme-dk-accent-mid: color-mix(in srgb, var(--mme-dk-accent) 45%, #fff);
    --mme-dk-surface: #fff;
    --mme-dk-border: #e0e0e2;
    --mme-dk-muted: #81858b;
    --mme-dk-text: #0c0c0c;
    --mme-dk-bg: #f5f5f5;
    /* Mobile tab bar: under sticky header, else 0 (set by product-page.js). */
    --mme-sticky-tabs-top: 0px;
}

/* Page chrome */
body.mme-sp-layout-digikala.single-product {
    background: var(--mme-dk-bg);
}

/* Content width — Appearance → Single Product Layout
 * Do NOT clamp header/footer shells — Woodmart full-width header uses .container
 * with max-width:100% / clamp(); Digikala boxed must only affect page content. */
body.mme-sp-layout-digikala.mme-sp-width-boxed .main-page-wrapper > .container,
body.mme-sp-layout-digikala.mme-sp-width-boxed .wd-content-layout > .container,
body.mme-sp-layout-digikala.mme-sp-width-boxed .site-content .container,
body.mme-sp-layout-digikala.mme-sp-width-boxed .wd-content-area .container {
    max-width: var(--wd-container-w, 1222px) !important;
    width: 100%;
    margin-inline: auto;
}

body.mme-sp-layout-digikala.mme-sp-width-boxed .mme-dk-layout,
body.mme-sp-layout-digikala.mme-sp-width-boxed .wd-content-area.site-content,
body.mme-sp-layout-digikala.mme-sp-width-boxed .wd-content-layout {
    max-width: var(--wd-container-w, 1222px);
    margin-inline: auto;
    width: 100%;
    box-sizing: border-box;
}

/* Keep header full-width like the rest of the site (match .whb-full-width). */
body.mme-sp-layout-digikala.single-product header.whb-header.whb-full-width .whb-row > .container,
body.mme-sp-layout-digikala.single-product .whb-clone.whb-full-width .whb-row > .container,
body.single-product header.whb-header.whb-full-width .whb-row > .container {
    max-width: 100% !important;
    width: clamp(var(--wd-container-w, 1222px), 95%, 100%) !important;
    margin-inline: auto !important;
}

body.mme-sp-layout-digikala.mme-sp-width-full .container,
body.mme-sp-layout-digikala.mme-sp-width-full .wd-content-layout > .container,
body.mme-sp-layout-digikala.mme-sp-width-full .main-page-wrapper > .container {
    max-width: 100% !important;
}

body.mme-sp-layout-digikala.mme-sp-width-full .mme-dk-layout {
    max-width: 100%;
}

body.mme-sp-layout-digikala.single-product .site-content,
body.mme-sp-layout-digikala.single-product .wd-content-area,
body.mme-sp-layout-digikala.single-product .main-page-wrapper {
    background: transparent;
}

body.mme-sp-layout-digikala .product-image-summary-wrap,
body.mme-sp-layout-digikala .product-image-summary,
body.mme-sp-layout-digikala .mme-product-tabs-shell,
body.mme-sp-layout-digikala .woocommerce-tabs {
    background: var(--mme-dk-surface);
}

body.mme-sp-layout-digikala .product-image-summary-wrap {
    border: 1px solid var(--mme-dk-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

/* Sticky section nav (desktop + mobile) — classic horizontal only */
body.mme-sp-sticky-nav:not(.mme-sp-layout-digikala) .product-details-tab-overflow--sticky,
.mme-product-tabs-shell--sticky-nav:not(.mme-product-tabs-shell--sidebar-nav) .product-details-tab-overflow--sticky {
    position: sticky;
    top: var(--mme-sticky-tabs-top, 56px);
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid var(--mme-dk-border);
    margin: 0 0 8px;
    padding: 0 4px;
}

body.mme-sp-layout-digikala .product-details-tab-overflow__scroll .nav-tabs {
    border-bottom-color: var(--mme-dk-border);
    gap: 0;
}

body.mme-sp-layout-digikala .product-details-tab-overflow__scroll .nav-link {
    border-radius: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--mme-dk-muted);
    font-weight: 600;
    padding: 12px 16px;
}

body.mme-sp-layout-digikala .product-details-tab-overflow__scroll .nav-link.active {
    color: var(--mme-dk-accent);
    border-bottom-color: var(--mme-dk-accent);
    background: transparent;
    margin-bottom: 0;
}

/* Digikala: Description / Specs / Reviews — content box + separate right sidebar box */
.mme-dk-layout__tabs {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.mme-dk-layout__tabs .mme-product-tabs-shell,
.mme-dk-layout__tabs .product-details-bottom,
.mme-dk-layout__tabs .product-details-bottom-inner,
.mme-dk-layout__tabs .product-details-tab,
.mme-sp-tabs-layout,
.mme-sp-tabs-layout__sidebar {
    overflow: visible !important;
    background: transparent;
}

.mme-sp-tabs-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    /* stretch so sidebar is as tall as content — required for position:sticky */
    align-items: stretch;
}

@media (min-width: 992px) {
    .mme-sp-tabs-layout {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 20px;
    }

    .mme-sp-tabs-layout:has(.mme-sp-section-nav--with-attrs) {
        grid-template-columns: minmax(0, 1fr) 260px;
    }
}

.mme-sp-tabs-layout__main {
    min-width: 0;
    background: var(--mme-dk-surface);
    border: 1px solid var(--mme-dk-border);
    border-radius: 8px;
    padding: 12px 16px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mme-sp-tabs-layout__sidebar {
    min-width: 0;
    height: 100%;
    align-self: stretch;
}

/* Sidebar sticky — exactly 2 containers: tabs box + attributes box */
.mme-sp-section-nav {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mme-sp-section-nav--sticky,
.mme-sp-section-nav[data-mme-sticky-tabs="1"] {
    position: sticky !important;
    top: calc(var(--mme-sticky-tabs-top, 56px) + 12px) !important;
    z-index: 50 !important;
    align-self: start;
    max-height: calc(100vh - var(--mme-sticky-tabs-top, 56px) - 28px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.mme-sp-section-nav.is-fixed-sidebar {
    position: fixed !important;
    z-index: 50 !important;
}

/* ========== CONTAINER 1: product tab titles ========== */
.mme-sp-section-nav__tabs-box {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px;
    background: var(--mme-dk-surface);
    border: 1px solid var(--mme-dk-border);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: visible;
}

.mme-sp-section-nav__tab {
    display: block;
    margin: 0;
    padding: 12px 14px;
    color: var(--mme-dk-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    background: #fafafa;
    border: 1px solid var(--mme-dk-border);
    border-radius: 0;
    box-shadow: inset 3px 0 0 transparent;
    transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.mme-sp-section-nav__tab + .mme-sp-section-nav__tab {
    border-top: 0;
}

.mme-sp-section-nav__tab:first-child {
    border-radius: 6px 6px 0 0;
}

.mme-sp-section-nav__tab:last-child {
    border-radius: 0 0 6px 6px;
}

.mme-sp-section-nav__tab:only-child {
    border-radius: 6px;
}

.mme-sp-section-nav__tab:hover,
.mme-sp-section-nav__tab:focus-visible {
    color: var(--mme-dk-accent);
    background: var(--mme-dk-accent-soft);
    border-color: var(--mme-dk-border);
    outline: none;
}

.mme-sp-section-nav__tab.active {
    color: var(--mme-dk-accent);
    background: var(--mme-dk-accent-soft);
    border-color: var(--mme-dk-border);
    box-shadow: inset 3px 0 0 var(--mme-dk-accent);
}

/* ========== CONTAINER 2: attributes ========== */
.mme-sp-section-nav__attrs-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 10px;
    background: var(--mme-dk-surface);
    border: 1px solid var(--mme-dk-border);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mme-sp-section-nav__attrs-heading {
    margin: 0 0 2px;
    padding: 0 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mme-dk-text, #0c0c0c);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mme-sp-section-nav__attr {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 10px 12px;
    background: #fafafa;
    border: 1px solid var(--mme-dk-border);
    border-radius: 8px;
    line-height: 1.35;
}

.mme-sp-section-nav__attr-value {
    color: var(--mme-dk-text, #0c0c0c);
    font-weight: 700;
    font-size: 13px;
}

.mme-sp-section-nav__attr-title {
    display: block;
    color: var(--mme-dk-muted, #62666d);
    font-weight: 500;
    font-size: 11px;
}


/* Accordion — Digikala section headers (inside the tabs content card) */
body.mme-sp-layout-digikala .mme-product-tabs-shell .tab-content,
body.mme-sp-layout-digikala .mme-sp-tabs-layout__main .tab-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.mme-sp-layout-digikala .product-section-accordion {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.mme-sp-layout-digikala .product-section-accordion:last-child {
    border-bottom: 0 !important;
}

body.mme-sp-layout-digikala .product-section-accordion > summary {
    list-style: none;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 4px !important;
    border: 0 !important;
    /* Separator always — closed and open */
    border-bottom: 1px solid var(--mme-dk-border, #e0e0e2) !important;
    background: transparent !important;
    color: var(--mme-dk-text, #0c0c0c) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    letter-spacing: -0.01em;
    transition: color .15s ease, border-color .15s ease;
}

body.mme-sp-layout-digikala .product-section-accordion > summary::-webkit-details-marker {
    display: none;
}

body.mme-sp-layout-digikala .product-section-accordion > summary::marker {
    content: "";
    display: none;
}

body.mme-sp-layout-digikala .product-section-accordion > summary:hover,
body.mme-sp-layout-digikala .product-section-accordion > summary:focus-visible {
    color: var(--mme-dk-accent) !important;
    outline: none;
}

/* Chevron toggle — replaces ugly +/- text */
body.mme-sp-layout-digikala .product-section-accordion > summary::after {
    content: "" !important;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin: 0;
    border-radius: 8px;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    background-color: #f7f8f7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23424750' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
    box-shadow: none;
    transition: transform .2s ease, background-color .15s ease, border-color .15s ease;
}

body.mme-sp-layout-digikala .product-section-accordion[open] > summary {
    color: var(--mme-dk-accent) !important;
    margin-bottom: 12px !important;
    padding-bottom: 14px !important;
}

body.mme-sp-layout-digikala .product-section-accordion[open] > summary::after {
    transform: rotate(180deg);
    border-color: color-mix(in srgb, var(--mme-dk-accent) 35%, #e0e0e2);
    background-color: var(--mme-dk-accent-soft);
}

body.mme-sp-layout-digikala .product-section-accordion > summary:hover::after {
    border-color: color-mix(in srgb, var(--mme-dk-accent) 40%, #e0e0e2);
    background-color: var(--mme-dk-accent-soft);
}

body.mme-sp-layout-digikala .product-section-accordion__body {
    padding: 0 4px 18px !important;
    color: #424750;
    font-size: 14px;
    line-height: 1.7;
}

body.mme-sp-layout-digikala .product-section-accordion__body > *:first-child {
    margin-top: 0;
}

body.mme-sp-layout-digikala .product-section-accordion__body > *:last-child {
    margin-bottom: 0;
}

/* Hide YIKES duplicate H2 inside accordion body when summary already shows title */
body.mme-sp-layout-digikala .product-section-accordion__body .yikes-custom-woo-tab-title {
    display: none !important;
}

/* Key features — each attribute in its own card */
.mme-sp-key-features {
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.mme-sp-key-features__title {
    font-size: 13px;
    font-weight: 700;
    color: var(--mme-dk-text);
    margin: 0 0 10px;
}

.mme-sp-key-features__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mme-sp-key-features__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--mme-dk-border);
    border-radius: 8px;
    background: #fafafa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    font-size: 12px;
    line-height: 1.4;
}

.mme-sp-key-features__item::before {
    content: none;
}

.mme-sp-key-features__label {
    color: var(--mme-dk-muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.mme-sp-key-features__value {
    color: var(--mme-dk-text);
    font-weight: 700;
    font-size: 13px;
}

/* Buy box */
.mme-sp-buybox {
    border: 1px solid var(--mme-dk-border);
    border-radius: 8px;
    background: var(--mme-dk-surface);
    padding: 16px;
}

.mme-sp-buybox--sticky {
    position: sticky;
    top: calc(var(--storefront-sticky-header-inset, 0px) + 16px);
}

.mme-sp-buybox__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mme-sp-buybox__price {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: 1.2;
}

.mme-sp-buybox__price del {
    color: #b42318;
    font-size: 13px;
    font-weight: 500;
}

.mme-sp-buybox__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.mme-sp-buybox__rating-value {
    font-weight: 700;
}

.mme-sp-buybox__rating-stars {
    color: #f9bc00;
}

.mme-sp-buybox__rating-link {
    color: var(--mme-dk-muted);
    text-decoration: none;
}

.mme-sp-buybox__rating-link:hover,
.mme-sp-buybox__rating-link:focus-visible {
    color: var(--mme-dk-accent);
}

.mme-sp-buybox__stock-ok {
    color: #00a049;
    font-size: 13px;
    font-weight: 600;
}

.mme-sp-buybox__stock-out {
    color: var(--mme-dk-accent);
    font-size: 13px;
    font-weight: 600;
}

.mme-sp-buybox__stock {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.mme-sp-buybox__stock-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    border: 1px solid transparent;
}

.mme-sp-buybox__stock-tag--ok {
    color: #0a7a3a;
    background: #eaf8ef;
    border-color: #c6ebd4;
}

.mme-sp-buybox__stock-tag--out {
    color: #b42318;
    background: #fef3f2;
    border-color: #f9d2ce;
}

.mme-sp-buybox__stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: currentColor;
    box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

.mme-sp-buybox__cart .single_add_to_cart_button,
.mme-sp-buybox__cart .button.alt:not(.wd-buy-now-btn) {
    width: 100%;
    background: var(--mme-dk-accent) !important;
    border-color: var(--mme-dk-accent) !important;
    color: #fff !important;
    border-radius: 8px !important;
    min-height: 48px;
    font-weight: 700;
}

.mme-sp-buybox__cart .wd-buy-now-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 8px !important;
    border: 1px solid var(--mme-dk-accent) !important;
    background: #fff !important;
    color: var(--mme-dk-accent) !important;
    font-weight: 700;
    box-shadow: none !important;
}

.mme-sp-buybox__trust {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--mme-dk-border);
    font-size: 12px;
    color: #81858b;
    line-height: 1.45;
}

.mme-sp-buybox__trust-icon {
    flex: 0 0 auto;
    margin-top: 0.1em;
    color: #00a049;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.mme-sp-buybox__trust-text {
    color: #81858b;
}

/* Digikala specs table */
body.mme-sp-specs-digikala .woocommerce table.shop_attributes,
body.mme-sp-layout-digikala .woocommerce table.shop_attributes {
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.mme-sp-specs-digikala .woocommerce table.shop_attributes th,
body.mme-sp-layout-digikala .woocommerce table.shop_attributes th {
    width: 40%;
    background: transparent;
    color: var(--mme-dk-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--mme-dk-border);
    padding: 14px 8px;
}

body.mme-sp-specs-digikala .woocommerce table.shop_attributes td,
body.mme-sp-layout-digikala .woocommerce table.shop_attributes td {
    color: var(--mme-dk-text);
    font-weight: 600;
    border-bottom: 1px solid var(--mme-dk-border);
    padding: 14px 8px;
}

/* Mobile sticky bar */
.mme-sp-sticky-bar {
    display: none;
}

@media (max-width: 991px) {
    .mme-sp-buybox--sticky {
        position: static;
    }

    /* Avoid stacking Woodmart sticky ATC + our bar */
    body.mme-sp-has-sticky-bar .wd-sticky-btn,
    body.mme-sp-has-sticky-bar .wd-sticky-btn.wd-sticky-btn-shown {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body.mme-sp-has-sticky-bar .scrollToTop.wd-sticky-btn-shown {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 12px) !important;
    }

    body.mme-sp-has-sticky-bar.sticky-toolbar-on .scrollToTop.wd-sticky-btn-shown,
    body.mme-sp-has-sticky-bar.sticky-toolbar-on .scrollToTop {
        bottom: calc(72px + 55px + env(safe-area-inset-bottom, 0px) + 12px) !important;
    }

    .mme-sp-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1000;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid var(--mme-dk-border);
        box-shadow: 0 -6px 20px rgba(12, 12, 12, 0.08);
    }

    /* Sit above Woodmart mobile toolbar when present */
    body.sticky-toolbar-on .mme-sp-sticky-bar {
        bottom: 55px;
        padding-bottom: 10px;
        z-index: 351;
    }

    body.mme-sp-has-sticky-bar,
    body:has(.mme-sp-sticky-bar) {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    body.mme-sp-has-sticky-bar.sticky-toolbar-on,
    body.sticky-toolbar-on:has(.mme-sp-sticky-bar) {
        padding-bottom: calc(72px + 55px + env(safe-area-inset-bottom, 0px));
    }

    .mme-sp-sticky-bar__price {
        font-size: 15px;
        font-weight: 800;
        color: var(--mme-dk-text);
        min-width: 0;
    }

    .mme-sp-sticky-bar__price del {
        display: none;
    }

    .mme-sp-sticky-bar__actions {
        flex: 0 0 auto;
    }

    .mme-sp-sticky-bar__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 0 18px;
        border-radius: 8px !important;
        background: var(--mme-dk-accent) !important;
        border-color: var(--mme-dk-accent) !important;
        color: #fff !important;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

    .mme-sp-sticky-bar__btn.disabled {
        opacity: 0.55;
        pointer-events: none;
    }
}

@media (min-width: 992px) {
    .mme-sp-sticky-bar {
        display: none !important;
    }
}

/* Full Digikala layout shortcode [mme_digikala_product] */
.mme-dk-layout {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px;
}

.mme-dk-layout__breadcrumbs {
    margin: 0 0 16px;
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--mme-dk-muted, #62666d);
    background: #f7f8f7;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    border-radius: 8px;
}

.mme-dk-layout__breadcrumbs .woocommerce-breadcrumb,
.mme-dk-layout__breadcrumbs .wd-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 2px;
    margin: 0;
    padding: 0;
    font-size: inherit;
    color: inherit;
    background: transparent;
    border: 0;
}

.mme-dk-layout__breadcrumbs a {
    color: var(--mme-dk-muted, #62666d);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color .15s ease, background .15s ease;
}

.mme-dk-layout__breadcrumbs a:hover,
.mme-dk-layout__breadcrumbs a:focus-visible {
    color: var(--mme-dk-accent);
    background: var(--mme-dk-accent-soft, rgba(126, 185, 52, 0.12));
    outline: none;
}

.mme-dk-layout__breadcrumbs .wd-last,
.mme-dk-layout__breadcrumbs .breadcrumb_last {
    display: inline-block;
    max-width: min(42ch, 55vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    color: var(--mme-dk-text, #0c0c0c);
    font-weight: 700;
    padding: 2px 4px;
}

.mme-dk-layout__breadcrumbs .wd-delimiter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0 2px;
    color: transparent;
    font-size: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a3a8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    flex: 0 0 auto;
}

.mme-dk-layout__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
    background: var(--mme-dk-surface, #fff);
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    border-radius: 12px;
    padding: 16px;
    box-shadow: none;
}

@media (min-width: 992px) {
    .mme-dk-layout__top {
        grid-template-columns: minmax(320px, 420px) minmax(0, 1fr) minmax(240px, 268px);
        gap: 0;
        padding: 24px;
        column-gap: 28px;
        overflow: visible;
        /* Pack to content — don’t stretch cols 2/3 to the gallery height */
        align-items: start;
    }

    .mme-dk-layout__info,
    .mme-dk-layout__buybox,
    .mme-dk-layout__gallery {
        min-height: 0;
        height: auto;
        align-self: start;
    }

    .mme-dk-layout__info {
        min-height: 0;
    }

    /* Gallery can shrink toward middle-column height; grows up to column width (square). */
    .mme-dk-layout__gallery {
        width: 100%;
        max-width: 100%;
    }

    .mme-dk-layout__gallery .mme-dk-gallery__stage {
        --mme-dk-gallery-size: var(--mme-dk-gallery-max-h, 420px);
        width: min(100%, var(--mme-dk-gallery-size));
        height: var(--mme-dk-gallery-size);
        max-height: var(--mme-dk-gallery-size);
        min-height: 0;
        aspect-ratio: auto;
        margin-inline: auto;
    }

    .mme-dk-layout__gallery .mme-dk-gallery__main-img {
        max-height: 100%;
    }
}

.mme-dk-layout__gallery,
.mme-dk-layout__info,
.mme-dk-layout__buybox {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mme-dk-layout__gallery,
.mme-dk-layout__info {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none !important;
}

/* Allow left sidebar + floating zoom panel to sit outside the gallery card */
.mme-dk-layout__gallery {
    overflow: visible;
    position: relative;
    z-index: 2;
}

.mme-dk-layout__info {
    padding-top: 2px;
}

.mme-dk-trust-badges-slot {
    width: 100%;
}

.mme-dk-trust-badges-slot[hidden] {
    display: none !important;
}

.mme-sp-buybox__shipping-terms {
    list-style: none;
    margin: 10px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--mme-dk-border, #e0e0e2);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mme-sp-buybox__shipping-term {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #81858b;
}

.mme-sp-buybox__shipping-term-icon {
    flex: 0 0 auto;
    margin-top: 0.1em;
    color: #00a049;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
}

.mme-sp-buybox__shipping-term-text {
    flex: 1 1 auto;
    min-width: 0;
    color: #81858b;
}

/* Buy box: divider panel, not a nested card */
.mme-dk-layout__buybox {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 16px 0 0;
    box-shadow: none;
}

@media (min-width: 992px) {
    .mme-dk-layout__buybox {
        position: sticky;
        top: calc(var(--mme-sticky-tabs-top, 56px) + 12px);
        padding: 0 0 0 24px;
        border-inline-start: 1px solid var(--mme-dk-border, #e0e0e2);
    }
}

@media (max-width: 991px) {
    .mme-dk-layout__buybox {
        margin-top: 4px;
        padding-top: 16px;
        border-top: 1px solid var(--mme-dk-border, #e0e0e2);
    }
}

.mme-dk-layout__buybox .mme-sp-buybox__inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Title — Digikala-scale; beat Woodmart h1 { 28px } / title font vars */
.mme-dk-layout h1.mme-dk-layout__title,
.mme-dk-layout .mme-dk-layout__title {
    display: block;
    margin: 0 0 8px !important;
    padding: 0;
    font-size: 15px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    letter-spacing: -0.01em;
    color: #0c0c0c !important;
    text-transform: none !important;
}

@media (min-width: 992px) {
    .mme-dk-layout h1.mme-dk-layout__title,
    .mme-dk-layout .mme-dk-layout__title {
        font-size: 16px !important;
        line-height: 1.55 !important;
    }
}

.mme-dk-layout__brand-sku {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--mme-dk-muted, #62666d);
}

.mme-dk-layout__brands,
.mme-dk-layout__sku {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.mme-dk-layout__brands-label,
.mme-dk-layout__sku-label {
    font-weight: 600;
    color: var(--mme-dk-muted, #62666d);
}

.mme-dk-layout__brand-link,
.mme-dk-layout__brand-name,
.mme-dk-layout__sku-value {
    color: var(--mme-dk-accent);
    font-weight: 700;
    text-decoration: none;
}

.mme-dk-layout__brand-link:hover,
.mme-dk-layout__brand-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.mme-dk-layout__brands-sep {
    color: var(--mme-dk-muted, #62666d);
    font-weight: 500;
}

.mme-dk-layout__sku-value {
    color: var(--mme-dk-text, #0c0c0c);
}

.mme-dk-layout__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0 0 14px;
    font-size: 12px;
}

.mme-dk-layout__rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f9bc00;
}

.mme-dk-layout__rating strong {
    color: #0c0c0c;
    font-size: 12px;
    font-weight: 700;
}

.mme-dk-layout__reviews-link {
    color: var(--mme-dk-muted, #81858b);
    text-decoration: none;
}

.mme-dk-layout__reviews-link:hover,
.mme-dk-layout__reviews-link:focus-visible {
    color: var(--mme-dk-accent);
}

.mme-product-share {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-inline-start: auto;
}

.mme-product-share__label {
    margin-inline-end: 2px;
    color: var(--mme-dk-muted, #81858b);
    font-size: 11px;
    font-weight: 600;
}

.mme-product-share__button {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 29px;
    height: 29px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e3e5e8;
    border-radius: 999px;
    background: #fff;
    color: #62666d;
    text-decoration: none !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.07);
    cursor: pointer;
    transform: translateY(0) scale(1);
    transition: color .18s ease, background .18s ease, border-color .18s ease,
        box-shadow .18s ease, transform .18s cubic-bezier(.2, .8, .2, 1);
}

/* Woodmart styles BUTTON differently from anchors — match Instagram/Copy to the others. */
.mme-product-share button.mme-product-share__button {
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    height: 29px !important;
    min-height: 29px !important;
    padding: 0 !important;
    border: 1px solid #e3e5e8 !important;
    border-radius: 999px !important;
    background: #fff !important;
    background-color: #fff !important;
    background-image: none !important;
    color: #62666d !important;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.07) !important;
    line-height: 1 !important;
    flex: 0 0 29px !important;
}

.mme-product-share button.mme-product-share__button:hover,
.mme-product-share button.mme-product-share__button:focus-visible {
    color: #fff !important;
    border-color: transparent !important;
}

.mme-product-share button.mme-product-share__button--instagram:hover,
.mme-product-share button.mme-product-share__button--instagram:focus-visible {
    background: linear-gradient(135deg, #833ab4, #fd1d1d 58%, #fcb045) !important;
}

.mme-product-share button.mme-product-share__button--copy:hover,
.mme-product-share button.mme-product-share__button--copy:focus-visible,
.mme-product-share button.mme-product-share__button--copy.is-copied {
    background: var(--mme-dk-accent) !important;
    background-color: var(--mme-dk-accent) !important;
    color: #fff !important;
    border-color: transparent !important;
}

.mme-product-share__button svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    min-height: 14px !important;
    flex: 0 0 14px !important;
    fill: currentColor !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity .15s ease, transform .2s ease;
}

.mme-product-share__button:hover,
.mme-product-share__button:focus-visible {
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 7px 15px rgba(15, 23, 42, 0.18);
    outline: none;
}

.mme-product-share__button:active {
    transform: translateY(-1px) scale(.96);
}

.mme-product-share__button--facebook:hover,
.mme-product-share__button--facebook:focus-visible {
    background: #1877f2;
}

.mme-product-share__button--instagram:hover,
.mme-product-share__button--instagram:focus-visible {
    background: linear-gradient(135deg, #833ab4, #fd1d1d 58%, #fcb045);
}

.mme-product-share__button--x:hover,
.mme-product-share__button--x:focus-visible {
    background: #111;
}

.mme-product-share__button--whatsapp:hover,
.mme-product-share__button--whatsapp:focus-visible {
    background: #25d366;
}

.mme-product-share__button--telegram:hover,
.mme-product-share__button--telegram:focus-visible {
    background: #229ed9;
}

.mme-product-share__button--copy:hover,
.mme-product-share__button--copy:focus-visible,
.mme-product-share__button--copy.is-copied {
    background: var(--mme-dk-accent);
    color: #fff;
    border-color: transparent;
}

.mme-product-share__check {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    opacity: 0;
    transform: scale(.4) rotate(-25deg);
    transition: opacity .18s ease, transform .28s cubic-bezier(.2, 1.4, .4, 1);
}

.mme-product-share__button--copy.is-copied svg {
    opacity: 0 !important;
    transform: scale(.5) rotate(20deg);
}

.mme-product-share__button--copy.is-copied .mme-product-share__check {
    opacity: 1;
    transform: scale(1) rotate(0);
}

.mme-product-share__button--copy.is-copied::after {
    content: "";
    position: absolute;
    inset: -1px;
    border: 2px solid var(--mme-dk-accent);
    border-radius: inherit;
    animation: mme-share-success-ring .65s ease-out both;
}

.mme-product-share__status {
    position: absolute;
    inset-inline-end: 0;
    bottom: calc(100% + 8px);
    z-index: 12;
    max-width: 220px;
    padding: 6px 9px;
    border-radius: 7px;
    background: #171b22;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px) scale(.96);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    pointer-events: none;
}

.mme-product-share.is-showing-status .mme-product-share__status {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

@keyframes mme-share-success-ring {
    from {
        opacity: .75;
        transform: scale(.85);
    }
    to {
        opacity: 0;
        transform: scale(1.75);
    }
}

@media (max-width: 575px) {
    .mme-product-share {
        width: 100%;
        margin-inline-start: 0;
    }

    .mme-product-share__button {
        width: 31px;
        height: 31px;
    }

    .mme-product-share button.mme-product-share__button {
        width: 31px !important;
        min-width: 31px !important;
        max-width: 31px !important;
        height: 31px !important;
        min-height: 31px !important;
        flex-basis: 31px !important;
    }

    .mme-product-share__status {
        inset-inline-start: 0;
        inset-inline-end: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mme-product-share__button,
    .mme-product-share__button svg,
    .mme-product-share__check,
    .mme-product-share__status {
        transition: none;
    }

    .mme-product-share__button--copy.is-copied::after {
        animation: none;
    }
}

.mme-dk-layout__excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
    color: #424750;
}

.mme-dk-layout__excerpt p {
    margin: 0 0 8px;
}

.mme-dk-layout__excerpt p:last-child {
    margin-bottom: 0;
}

.mme-dk-layout__excerpt ul,
.mme-dk-layout__excerpt ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mme-dk-layout__excerpt li {
    position: relative;
    margin: 0 0 8px;
    padding: 0 0 0 14px;
    color: #424750;
    font-size: 13px;
    line-height: 1.55;
}

.mme-dk-layout__excerpt li::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mme-dk-accent-mid, #a8c96e);
}

.mme-dk-layout__excerpt li:last-child {
    margin-bottom: 0;
}

.mme-dk-layout__buybox .mme-sp-buybox {
    border: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

/* Digikala gallery:
   - Main image uses FULL column width (no empty gutter)
   - Hover thumbs float outside/left without resizing the image */
.mme-dk-gallery {
    position: relative;
    width: 100%;
    flex: 0 1 auto;
    display: block;
    padding: 0;
    box-sizing: border-box;
    min-height: 0;
    overflow: visible;
}

/* Invisible hover bridge so moving to left thumbs does not drop :hover */
.mme-dk-gallery::before {
    content: "";
    position: absolute;
    inset-inline-start: -80px;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 5;
}

/* Hover thumbs — float in the left zone OUTSIDE the image; image width never changes */
.mme-dk-gallery__sidebar {
    position: absolute;
    inset-inline-start: -76px;
    top: 0;
    width: 64px;
    z-index: 6;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-4px);
    transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}

.mme-dk-gallery:hover .mme-dk-gallery__sidebar,
.mme-dk-gallery:focus-within .mme-dk-gallery__sidebar {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

/* Main image card — full width of gallery column */
.mme-dk-gallery__frame {
    position: relative;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    border-radius: 10px;
    padding: 0;
    box-shadow: none;
}

.mme-dk-gallery__badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--mme-dk-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--mme-dk-accent) 35%, transparent);
}

.mme-dk-gallery__stamp--discontinued {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    transform: translate(-50%, -50%) rotate(-18deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58%;
    padding: 10px 18px;
    border: 3px solid #b42318;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #b42318;
    font-size: clamp(14px, 2.4vw, 22px);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(180, 35, 24, 0.18);
}

.mme-dk-gallery__stage {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #fafafa;
    cursor: crosshair;
    min-height: 280px;
    min-width: 0;
    aspect-ratio: 1 / 1;
    max-height: 420px;
    width: 100%;
}

.mme-dk-gallery__main-img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    padding: 12px;
    box-sizing: border-box;
}

/* Fullscreen + zoom hint sit together at the bottom-end of the image */
.mme-dk-gallery__tools {
    position: absolute;
    inset-inline-end: 12px;
    bottom: 12px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mme-dk-gallery__fullscreen-trigger,
.mme-dk-gallery__magnifier-icon {
    appearance: none;
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96);
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    transition: color .15s ease, border-color .15s ease, transform .15s ease;
    overflow: visible;
}

/*
 * Woodmart styles all `button`s with gray bg + zero border — that makes the
 * fullscreen control disappear against product photos. Force the pill look.
 */
button.mme-dk-gallery__fullscreen-trigger {
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--mme-dk-border, #e0e0e2) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    background-image: none !important;
    color: #1f2937 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
    text-transform: none !important;
    line-height: 1 !important;
    cursor: pointer;
}

.mme-dk-gallery__fullscreen-trigger {
    cursor: pointer;
    color: #1f2937 !important;
}

.mme-dk-gallery__fullscreen-trigger svg,
.mme-dk-gallery__fullscreen-icon {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
    flex: 0 0 auto;
    fill: currentColor !important;
    stroke: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    color: inherit !important;
}

.mme-dk-gallery__fullscreen-trigger svg path,
.mme-dk-gallery__fullscreen-icon path {
    fill: currentColor !important;
    stroke: none !important;
    opacity: 1 !important;
}

.mme-dk-gallery__fullscreen-trigger:hover,
.mme-dk-gallery__fullscreen-trigger:focus-visible,
button.mme-dk-gallery__fullscreen-trigger:hover,
button.mme-dk-gallery__fullscreen-trigger:focus-visible {
    color: var(--mme-dk-accent) !important;
    border-color: var(--mme-dk-accent) !important;
    background: #fff !important;
    background-color: #fff !important;
    transform: scale(1.05);
    outline: none;
}

.mme-dk-gallery__magnifier-icon {
    pointer-events: none;
    color: var(--mme-dk-muted);
}

.mme-dk-gallery.is-zooming .mme-dk-gallery__magnifier-icon {
    color: var(--mme-dk-accent);
    border-color: var(--mme-dk-accent-mid);
}

.mme-dk-gallery__lens {
    position: absolute;
    top: 0;
    left: 0;
    width: 140px;
    height: 140px;
    border: 2px solid var(--mme-dk-accent);
    border-radius: 4px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 0 0;
    /* Light rim only — no full-stage wash that makes the product look smaller */
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    will-change: transform, background-position;
    overflow: hidden;
}

/* Magnified preview — separate floating box (does not resize main image or sidebar) */
.mme-dk-gallery__zoom {
    position: absolute;
    top: 0;
    left: calc(100% + 12px);
    width: min(420px, 40vw);
    height: min(100%, 380px);
    min-height: 280px;
    border-radius: 10px;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    z-index: 30;
    overflow: hidden;
}

.mme-dk-gallery.is-zooming .mme-dk-gallery__lens {
    opacity: 1;
}

.mme-dk-gallery.is-zooming .mme-dk-gallery__zoom {
    opacity: 1;
    visibility: visible;
}

.mme-dk-gallery.is-zooming .mme-dk-gallery__main-img {
    opacity: 1;
}

html.mme-dk-fullscreen-open,
body.mme-dk-fullscreen-open {
    overflow: hidden !important;
}

.mme-dk-gallery__fullscreen[hidden] {
    display: none !important;
}

.mme-dk-gallery__fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(54px, 7vw, 88px) clamp(16px, 6vw, 84px);
    box-sizing: border-box;
    background: rgba(4, 8, 15, 0.94);
    backdrop-filter: blur(5px);
}

.mme-dk-gallery__fullscreen-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    min-width: 0;
    margin: 0;
}

.mme-dk-gallery__fullscreen-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    line-height: 0;
}

.mme-dk-gallery__fullscreen-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 130px);
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35);
}

.mme-dk-gallery__fullscreen-count {
    min-height: 20px;
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
}

.mme-dk-gallery__fullscreen-close,
.mme-dk-gallery__fullscreen-nav {
    appearance: none;
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.mme-dk-gallery__fullscreen-close:hover,
.mme-dk-gallery__fullscreen-close:focus-visible,
.mme-dk-gallery__fullscreen-nav:hover,
.mme-dk-gallery__fullscreen-nav:focus-visible {
    background: var(--mme-dk-accent);
    transform: scale(1.06);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Close sits on the top-right corner of the picture itself */
.mme-dk-gallery__fullscreen-close {
    top: 10px;
    inset-inline-end: 10px;
    width: 42px;
    height: 42px;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.mme-dk-gallery__fullscreen-nav {
    top: 50%;
    width: 52px;
    height: 52px;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-50%);
}

.mme-dk-gallery__fullscreen-nav:hover,
.mme-dk-gallery__fullscreen-nav:focus-visible {
    transform: translateY(-50%) scale(1.06);
}

.mme-dk-gallery__fullscreen-nav--prev {
    inset-inline-start: max(14px, env(safe-area-inset-left));
}

.mme-dk-gallery__fullscreen-nav--next {
    inset-inline-end: max(14px, env(safe-area-inset-right));
}

/* Thumbs in the left gutter sidebar */
.mme-dk-gallery__thumbs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 64px;
    max-height: 380px;
    gap: 8px;
    margin: 0;
    padding: 6px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    background: #fff;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.mme-dk-gallery__thumbs-close {
    display: none !important;
}

.mme-dk-gallery__thumb {
    appearance: none;
    box-sizing: border-box;
    border: 1px solid var(--mme-dk-border);
    background: #fafafa;
    border-radius: 8px;
    padding: 0;
    width: 52px;
    height: 52px;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    flex: 0 0 auto;
    transition: border-color .15s ease, background .15s ease;
}

.mme-dk-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-sizing: border-box;
}

.mme-dk-gallery__thumb:hover,
.mme-dk-gallery__thumb:focus-visible {
    border-color: var(--mme-dk-accent);
    background: var(--mme-dk-accent-soft);
    outline: none;
}

.mme-dk-gallery__thumb.is-active {
    border: 2px solid var(--mme-dk-accent);
    box-shadow: none;
    background: #fff;
}

/* Phone: thumbs under image, always visible */
@media (max-width: 767px) {
    .mme-dk-gallery {
        padding: 0;
        overflow: visible;
    }

    .mme-dk-gallery::before {
        display: none;
    }

    .mme-dk-gallery__sidebar {
        position: relative;
        inset: auto;
        width: 100%;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .mme-dk-gallery__lens,
    .mme-dk-gallery__zoom {
        display: none !important;
    }

    .mme-dk-gallery__stage {
        cursor: default;
    }

    .mme-dk-gallery__tools {
        inset-inline-end: 10px;
        bottom: 10px;
        gap: 6px;
    }

    .mme-dk-gallery__fullscreen-trigger,
    .mme-dk-gallery__magnifier-icon,
    button.mme-dk-gallery__fullscreen-trigger {
        width: 36px;
        height: 36px;
    }

    button.mme-dk-gallery__fullscreen-trigger {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
    }

    .mme-dk-gallery__fullscreen {
        padding: 64px 12px 52px;
    }

    .mme-dk-gallery__fullscreen-img {
        max-height: calc(100vh - 130px);
    }

    .mme-dk-gallery__fullscreen-nav {
        top: auto;
        bottom: max(14px, env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
        font-size: 36px;
        transform: none;
    }

    .mme-dk-gallery__fullscreen-nav:hover,
    .mme-dk-gallery__fullscreen-nav:focus-visible {
        transform: scale(1.06);
    }

    .mme-dk-gallery__thumbs {
        width: 100%;
        max-height: none;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        box-shadow: none;
    }

    .mme-dk-gallery__thumb {
        width: 56px;
        height: 56px;
    }
}

body.mme-sp-layout-digikala .mme-dk-layout__gallery,
body.mme-sp-layout-digikala .mme-dk-layout__info {
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
}

/* Sticky Description / Specs / Reviews nav — Digikala & sticky setting */
.mme-dk-layout,
.mme-dk-layout__tabs,
.mme-dk-layout__tabs .mme-product-tabs-shell,
.mme-dk-layout__tabs .product-details-bottom,
.mme-dk-layout__tabs .product-details-bottom-inner,
.mme-dk-layout__tabs .product-details-tab,
.mme-dk-layout__tabs .mme-sp-tabs-layout,
.mme-dk-layout__tabs .mme-sp-tabs-layout__sidebar,
.mme-product-tabs-shell--sticky-nav,
.mme-product-tabs-shell--sticky-nav .product-details-bottom,
.mme-product-tabs-shell--sticky-nav .product-details-bottom-inner,
.mme-product-tabs-shell--sticky-nav .product-details-tab,
body.mme-sp-layout-digikala .site-content,
body.mme-sp-layout-digikala .wd-content-layout,
body.mme-sp-layout-digikala .wd-grid-col,
body.mme-sp-layout-digikala .entry-content,
body.mme-sp-layout-digikala .woocommerce-tabs {
    overflow: visible !important;
}

.mme-product-tabs-shell--sticky-nav .product-details-tab-overflow--sticky,
.mme-dk-layout .product-details-tab-overflow--sticky,
body.mme-sp-sticky-nav .product-details-tab-overflow--sticky,
body.mme-sp-layout-digikala .product-details-tab-overflow--sticky,
[data-mme-sticky-tabs="1"]:not(.mme-sp-section-nav):not(.product-details-tab-mobile-pills-wrap) {
    position: sticky !important;
    top: var(--mme-sticky-tabs-top, 0px) !important;
    z-index: 90 !important;
    margin: 0 0 8px;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--mme-dk-border, #e0e0e2);
    box-shadow: none;
}

.product-details-tab-mobile-pills-wrap[data-mme-sticky-tabs="1"] {
    position: sticky !important;
    top: var(--mme-sticky-tabs-top, 0px) !important;
    z-index: 95 !important;
    background: #fff !important;
    border-bottom: 1px solid var(--mme-dk-border, #e8eaed);
    box-shadow: none !important;
}

/* Digikala right sidebar sticky stack (no outer card — children are boxes) */
.mme-sp-section-nav[data-mme-sticky-tabs="1"] {
    position: sticky !important;
    top: calc(var(--mme-sticky-tabs-top, 56px) + 12px) !important;
    z-index: 50 !important;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    max-height: calc(100vh - var(--mme-sticky-tabs-top, 56px) - 28px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.mme-sp-section-nav.is-fixed-sidebar {
    position: fixed !important;
    z-index: 50 !important;
    margin: 0;
}

[data-mme-sticky-tabs="1"]:not(.mme-sp-section-nav) .product-details-tab-overflow__chrome {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

[data-mme-sticky-tabs="1"]:not(.mme-sp-section-nav) .nav-tabs {
    margin-bottom: 0;
}

[data-mme-sticky-tabs="1"].is-fixed-tabs {
    position: sticky !important;
}

.mme-sticky-tabs-placeholder {
    display: none !important;
}

.mme-dk-layout__tabs {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    box-shadow: none !important;
}

.mme-dk-layout__tabs:empty {
    display: none;
}

.mme-dk-layout__tabs .mme-product-tabs-shell {
    margin: 0;
}

.mme-dk-layout__related {
    margin-top: 28px;
    padding-top: 8px;
    clear: both;
}

.mme-dk-layout__related .element-title,
.mme-dk-layout__related .wd-el-title,
.mme-dk-layout__related > h2,
.mme-dk-layout__related .related-products .element-title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--mme-dk-text, #0c0c0c);
}

/* Compact related product cards — kill the empty vertical space */
.mme-dk-layout__related .wd-products,
.mme-dk-layout__related .products,
.mme-dk-layout__related .wd-carousel-wrap {
    align-items: stretch;
}

.mme-dk-layout__related .product-grid-item,
.mme-dk-layout__related .wd-product,
.mme-dk-layout__related .product {
    height: 100%;
}

.mme-dk-layout__related .wd-product-wrapper,
.mme-dk-layout__related .product-wrapper {
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: none;
}

.mme-dk-layout__related .wd-product-card-bg,
.mme-dk-layout__related .content-product-imagin {
    display: none !important;
}

/* Image: tight square, less padding around photo */
.mme-dk-layout__related .wd-product-thumb,
.mme-dk-layout__related .product-element-top {
    flex: 0 0 auto !important;
    position: relative;
    aspect-ratio: 1 / 1;
    max-height: 200px;
    margin: 0 !important;
    padding: 10px !important;
    background: #fff;
}

.mme-dk-layout__related .product-image-link,
.mme-dk-layout__related .wd-product-img-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.mme-dk-layout__related .product-image-link img,
.mme-dk-layout__related .wd-product-img-link img,
.mme-dk-layout__related .wd-product-thumb img,
.mme-dk-layout__related .attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Info block: compact, no growing empty middle */
.mme-dk-layout__related .product-element-bottom,
.mme-dk-layout__related .product-information {
    flex: 0 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 10px 12px 12px !important;
    background: #f7f7f8 !important;
    min-height: 0 !important;
}

.mme-dk-layout__related .wd-entities-title,
.mme-dk-layout__related .product-title,
.mme-dk-layout__related .woocommerce-loop-product__title {
    margin: 0 0 2px !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mme-dk-layout__related .wd-product-cats,
.mme-dk-layout__related .wd-product-brands-links,
.mme-dk-layout__related .posted_in {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mme-dk-layout__related .star-rating,
.mme-dk-layout__related .wd-star-rating,
.mme-dk-layout__related .wd-product-rating {
    margin: 2px 0 0 !important;
    font-size: 12px !important;
}

.mme-dk-layout__related .price,
.mme-dk-layout__related .wrapp-product-price,
.mme-dk-layout__related .product-rating-price,
.mme-dk-layout__related .price-wrapper {
    margin: 6px 0 0 !important;
    padding: 0 !important;
}

.mme-dk-layout__related .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--mme-dk-accent, #7eb934) !important;
}

.mme-dk-layout__related .price del {
    font-size: 12px !important;
    font-weight: 500 !important;
    opacity: 0.75;
}

.mme-dk-layout__related .wd-add-btn,
.mme-dk-layout__related .wd-bottom-actions,
.mme-dk-layout__related .wrapp-swatches,
.mme-dk-layout__related .wd-buttons {
    margin-top: 6px !important;
}

@media (max-width: 991px) {
    .mme-dk-layout__related .wd-product-thumb,
    .mme-dk-layout__related .product-element-top {
        max-height: 170px;
        padding: 8px !important;
    }

    .mme-dk-layout__related .product-element-bottom,
    .mme-dk-layout__related .product-information {
        padding: 8px 10px 10px !important;
    }
}

.mme-sp-section-nav-placeholder {
    display: none;
    width: 100%;
    pointer-events: none;
}

@media (max-width: 991px) {
    body.mme-sp-layout-digikala .product-details-tab-mobile-pills-wrap,
    .mme-dk-layout .product-details-tab-mobile-pills-wrap {
        margin-left: -12px;
        margin-right: -12px;
        width: calc(100% + 24px);
        padding-left: 12px;
        padding-right: 0;
        border-bottom-color: var(--mme-dk-border, #e8eaed);
    }

    body.mme-sp-layout-digikala .product-details-tab-mobile-pills .product-section-link,
    body.mme-sp-layout-digikala .product-details-tab-mobile-pills .nav-link,
    .mme-dk-layout .product-details-tab-mobile-pills .product-section-link,
    .mme-dk-layout .product-details-tab-mobile-pills .nav-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 32px !important;
        height: 32px !important;
        padding: 0 12px !important;
        line-height: 1 !important;
        box-sizing: border-box !important;
    }

    body.mme-sp-layout-digikala .product-details-tab-mobile-pills .product-section-link *,
    .mme-dk-layout .product-details-tab-mobile-pills .product-section-link * {
        line-height: 1 !important;
        vertical-align: middle;
    }
}

@media (min-width: 992px) {
    .mme-dk-layout .product-details-tab-overflow__scroll.d-none.d-lg-block {
        display: block !important;
    }

    .mme-dk-layout .product-details-tab-mobile-pills-wrap.d-lg-none,
    .mme-dk-layout .product-details-tab-mobile-pills.d-lg-none {
        display: none !important;
    }
}

body.mme-sp-layout-digikala .mme-dk-layout__gallery,
body.mme-sp-layout-digikala .mme-dk-layout__info,
body.mme-sp-layout-digikala .mme-dk-layout__buybox {
    box-shadow: none !important;
}

/* Buy box chrome — stacked price + save tag */
.mme-dk-layout__buybox .mme-sp-buybox__price {
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.25;
    letter-spacing: 0;
    color: inherit;
}

.mme-sp-buybox__price-row {
    display: block;
    width: 100%;
}

.mme-sp-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    width: 100%;
}

/* Was + sale price (left) with SAVE tag stretched to that full height (right). */
.mme-sp-price-stack__sale-row {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px 10px;
    width: 100%;
    min-width: 0;
}

.mme-sp-price-stack__prices {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.mme-sp-price-stack__prices .mme-sp-price-stack__now {
    width: auto;
}

.mme-sp-buybox__save {
    --mme-save-tag: #e31e24;
    --mme-save-upto: #ffd400;
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    align-self: stretch;
    max-width: min(48%, 12rem);
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1.5px solid #3a3a3a;
    border-radius: 2px 8px 8px 2px;
    background: #fff;
    color: var(--mme-save-tag);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
}

.mme-sp-buybox__save-label {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    /* Extra start padding so SAVE/Up To clear the chevron tip */
    padding: 6px 8px 6px 20px;
    background: var(--mme-save-tag);
    color: #fff;
    text-align: center;
    line-height: 1.1;
}

.mme-sp-buybox__save-save {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.mme-sp-buybox__save-upto {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--mme-save-upto);
}

.mme-sp-buybox__save-amount {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 5px 10px 5px 8px;
    background: #fff;
    color: var(--mme-save-tag);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: normal;
    text-align: center;
}

.mme-sp-buybox__save .woocommerce-Price-amount,
.mme-sp-buybox__save .amount,
.mme-sp-buybox__save-amount .woocommerce-Price-amount,
.mme-sp-buybox__save-amount .amount {
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.mme-sp-buybox__save-amount .woocommerce-Price-amount,
.mme-sp-buybox__save-amount .woocommerce-Price-amount bdi {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    white-space: nowrap;
}

.mme-sp-buybox__save-number {
    display: block;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.mme-sp-buybox__save-currency {
    display: block;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

/* Currency under the savings number so the digits can stay large */
.mme-sp-buybox__save .woocommerce-Price-currencySymbol,
.mme-sp-buybox__save-amount .woocommerce-Price-currencySymbol {
    display: block;
    order: 2;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: baseline;
}

.mme-sp-price-stack__was {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #b42318;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.mme-sp-price-stack__was .woocommerce-Price-amount,
.mme-sp-price-stack__was .amount {
    color: #b42318;
    font-weight: 600;
    font-size: 13px;
}

.mme-sp-price-stack__now {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--mme-dk-accent);
}

.mme-sp-price-stack__now .woocommerce-Price-amount,
.mme-sp-price-stack__now .amount {
    color: inherit;
    font-weight: inherit;
    font-size: inherit;
}

.mme-sp-price-stack__now--regular {
    color: #0c0c0c;
}

.mme-sp-price-stack__suffix {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 500;
    color: var(--mme-dk-muted, #81858b);
    letter-spacing: 0;
    text-decoration: none;
}

.mme-sp-price-stack--native {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.mme-sp-price-stack--native del {
    order: 1;
    font-size: 13px;
    font-weight: 600;
    color: #b42318;
}

.mme-sp-price-stack--native del .woocommerce-Price-amount {
    color: #b42318;
}

.mme-sp-price-stack--native ins {
    order: 2;
    text-decoration: none;
    background: transparent;
    font-size: 24px;
    font-weight: 800;
    color: var(--mme-dk-accent);
}

.mme-sp-price-stack--native .woocommerce-Price-currencySymbol {
    font-size: 0.55em;
    font-weight: 600;
}

/* Product documents under trust badges */
.mme-dk-docs {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--mme-dk-border, #e0e0e2);
}

.mme-dk-docs[hidden] {
    display: none !important;
}

.mme-dk-docs--buybox {
    margin-top: 12px;
    padding-top: 12px;
}

.mme-dk-layout__buybox .mme-dk-docs--buybox {
    border-top: 1px solid var(--mme-dk-border, #e0e0e2);
}

.mme-dk-docs__list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mme-dk-docs__item {
    list-style: none !important;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.mme-dk-docs__item::before,
.mme-dk-docs__item::marker {
    content: none !important;
    display: none !important;
}

.mme-dk-docs__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    border-radius: 8px;
    background: #fafafa;
    color: #2c2c2c;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.mme-dk-docs__link:hover,
.mme-dk-docs__link:focus-visible {
    border-color: var(--mme-dk-accent);
    background: var(--mme-dk-accent-soft);
    color: var(--mme-dk-accent);
    outline: none;
}

.mme-dk-docs__icon {
    flex: 0 0 auto;
    display: inline-flex;
    color: var(--mme-dk-accent);
}

.mme-dk-docs__label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.mme-dk-docs__action {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mme-dk-muted, #81858b);
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
}

@media (max-width: 575px) {
    .mme-dk-docs__list {
        gap: 6px;
    }
}

.mme-dk-layout__buybox .mme-sp-buybox__price .woocommerce-Price-currencySymbol,
.mme-sp-price-stack__now .woocommerce-Price-currencySymbol {
    font-size: 0.55em;
    font-weight: 600;
    margin-inline-start: 2px;
}

.mme-dk-layout__buybox .mme-sp-buybox__cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    row-gap: 10px;
    width: 100%;
}

.mme-dk-layout__buybox .mme-sp-buybox__cart > form.cart,
.mme-dk-layout__buybox .mme-sp-buybox__cart > form.variations_form {
    display: contents !important;
}

.mme-dk-layout__buybox .mme-sp-buybox__cart .quantity {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.mme-dk-layout__buybox .mme-sp-buybox__stock {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    margin: 0;
}

.mme-dk-layout__buybox .mme-sp-buybox__cart .single_add_to_cart_button,
.mme-dk-layout__buybox .mme-sp-buybox__cart .button.alt,
.mme-dk-layout__buybox .mme-sp-buybox__cart .wd-buy-now-btn,
.mme-dk-layout__buybox .mme-sp-buybox__cart .cart-wishlist-compare,
.mme-dk-layout__buybox .mme-sp-buybox__cart .woocommerce-variation-add-to-cart,
.mme-dk-layout__buybox .mme-sp-buybox__cart .single_variation_wrap,
.mme-dk-layout__buybox .mme-sp-buybox__cart table.variations,
.mme-dk-layout__buybox .mme-sp-buybox__cart .woocommerce-variation {
    grid-column: 1 / -1;
}

.mme-dk-layout__buybox form.cart {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mme-dk-layout__buybox form.cart .quantity {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    align-self: center !important;
    gap: 0 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 140px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--mme-dk-border, #e0e0e2) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #f7f7f8 !important;
    box-shadow: none !important;
    font-size: 0;
}

.mme-dk-layout__buybox .quantity > * {
    margin: 0 !important;
    float: none !important;
}

.mme-dk-layout__buybox .quantity .qty,
.mme-dk-layout__buybox .quantity input.qty {
    flex: 1 1 auto !important;
    width: 48px !important;
    min-width: 40px !important;
    min-height: 42px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    text-align: center !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    line-height: 42px !important;
    box-shadow: none !important;
    outline: none !important;
    background: #fff !important;
    color: #0c0c0c !important;
    -moz-appearance: textfield;
    appearance: textfield;
}

.mme-dk-layout__buybox .quantity .qty::-webkit-outer-spin-button,
.mme-dk-layout__buybox .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.mme-dk-layout__buybox .quantity .minus,
.mme-dk-layout__buybox .quantity .plus,
.mme-dk-layout__buybox .quantity input[type="button"].minus,
.mme-dk-layout__buybox .quantity input[type="button"].plus,
.mme-dk-layout__buybox .quantity .wd-quantity-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    min-height: 42px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #f7f7f8 !important;
    background-color: #f7f7f8 !important;
    color: #424750 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mme-dk-layout__buybox .quantity .minus,
.mme-dk-layout__buybox .quantity input[type="button"].minus {
    border-radius: 7px 0 0 7px !important;
}

.mme-dk-layout__buybox .quantity .plus,
.mme-dk-layout__buybox .quantity input[type="button"].plus {
    border-radius: 0 7px 7px 0 !important;
}

.mme-dk-layout__buybox .quantity .minus:hover,
.mme-dk-layout__buybox .quantity .plus:hover,
.mme-dk-layout__buybox .quantity input[type="button"].minus:hover,
.mme-dk-layout__buybox .quantity input[type="button"].plus:hover,
.mme-dk-layout__buybox .quantity .wd-quantity-btn:hover {
    background: var(--mme-dk-accent-soft) !important;
    background-color: var(--mme-dk-accent-soft) !important;
    border-color: transparent !important;
    color: var(--mme-dk-accent) !important;
}

/* Primary: Add to cart — force visible solid button (Woodmart bordered/full styles hide it) */
.mme-dk-layout__buybox .mme-sp-buybox__cart .single_add_to_cart_button,
.mme-dk-layout__buybox form.cart .single_add_to_cart_button {
    --btn-accented-bgcolor: var(--mme-dk-accent);
    --btn-accented-bgcolor-hover: var(--mme-dk-accent);
    --btn-accented-color: #fff;
    --btn-accented-color-hover: #fff;
    --btn-brd-color: var(--mme-dk-accent);
    --btn-brd-color-hover: var(--mme-dk-accent);
    --btn-accented-box-shadow: none;
    --btn-accented-box-shadow-hover: none;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    border: 1px solid var(--mme-dk-accent) !important;
    background: var(--mme-dk-accent) !important;
    background-color: var(--mme-dk-accent) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    text-transform: none !important;
    text-indent: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    transition: filter .15s ease;
}

.mme-dk-layout__buybox .mme-sp-buybox__cart .single_add_to_cart_button:hover,
.mme-dk-layout__buybox .mme-sp-buybox__cart .single_add_to_cart_button:focus-visible,
.mme-dk-layout__buybox form.cart .single_add_to_cart_button:hover,
.mme-dk-layout__buybox form.cart .single_add_to_cart_button:focus-visible {
    filter: brightness(0.94);
    color: #fff !important;
    background: var(--mme-dk-accent) !important;
}

/* Secondary: Buy now — outline */
.mme-dk-layout__buybox .mme-sp-buybox__cart .wd-buy-now-btn,
.mme-dk-layout__buybox form.cart .wd-buy-now-btn {
    --btn-accented-bgcolor: #fff;
    --btn-accented-bgcolor-hover: var(--mme-dk-accent-soft);
    --btn-accented-color: var(--mme-dk-accent);
    --btn-accented-color-hover: var(--mme-dk-accent);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border-radius: 8px !important;
    border: 1px solid var(--mme-dk-accent) !important;
    background: #fff !important;
    color: var(--mme-dk-accent) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.mme-dk-layout__buybox .mme-sp-buybox__cart .wd-buy-now-btn:hover,
.mme-dk-layout__buybox form.cart .wd-buy-now-btn:hover {
    background: var(--mme-dk-accent-soft) !important;
    color: var(--mme-dk-accent) !important;
}

.mme-dk-layout__buybox .mme-sp-buybox__trust {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--mme-dk-border, #e0e0e2);
    font-size: 12px;
    line-height: 1.45;
}

.mme-dk-layout__buybox .mme-sp-buybox__shipping-terms {
    margin-top: 8px;
}

.mme-dk-layout__buybox .mme-sp-buybox__trust + .mme-sp-buybox__shipping-terms {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
}

.mme-sp-buybox__status-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
}

.mme-sp-buybox__status-banner--discontinued {
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #f9d2ce;
}

.mme-sp-buybox__replacements-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mme-dk-text, #0c0c0c);
}

.mme-sp-buybox__replacements-empty {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #81858b;
}

.mme-sp-buybox__replacements-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mme-sp-buybox__replacement {
    margin: 0;
    padding: 0;
}

.mme-sp-buybox__replacement-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
    border-radius: 10px;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, background .15s ease;
}

.mme-sp-buybox__replacement-link:hover,
.mme-sp-buybox__replacement-link:focus-visible {
    border-color: var(--mme-dk-accent);
    background: var(--mme-dk-accent-soft);
    outline: none;
}

.mme-sp-buybox__replacement-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--mme-dk-border, #e0e0e2);
}

.mme-sp-buybox__replacement-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mme-sp-buybox__replacement-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--mme-dk-text, #0c0c0c);
}

.mme-sp-buybox__call-price-label {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--mme-dk-text, #0c0c0c);
}

.mme-sp-buybox__call-price-list--whatsapp {
    margin: 0 0 12px !important;
    padding: 0;
}

.mme-sp-buybox__call-price-btn .mme-sp-buybox__call-price-icon svg {
    display: block;
}

.mme-sp-buybox__call-price-empty {
    margin: 0;
    font-size: 13px;
    color: #81858b;
}

.mme-sp-buybox__call-price-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mme-sp-buybox__call-price-list li {
    margin: 0;
    padding: 0;
}

.mme-sp-buybox__call-price-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--mme-dk-accent);
    background: #fff;
    color: var(--mme-dk-accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    cursor: pointer;
}

.mme-sp-buybox__call-price-btn:hover,
.mme-sp-buybox__call-price-btn:focus-visible {
    background: var(--mme-dk-accent);
    color: #fff;
    outline: none;
}

.mme-sp-buybox__call-price-btn.is-copied {
    border-color: #00a049;
    background: #eaf8ef;
    color: #0a7a3a;
}

.mme-sp-buybox__call-price-icon {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1;
}

.mme-sp-buybox__call-price-text {
    flex: 1 1 auto;
    min-width: 0;
}

.mme-sp-buybox__call-price-hint {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.75;
}

@media (hover: none) and (pointer: coarse), (max-width: 991px) {
    .mme-sp-buybox__call-price-hint {
        display: none;
    }
}

.mme-sp-buybox__sku {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--mme-dk-border, #e0e0e2);
    font-size: 12px;
    line-height: 1.4;
    color: var(--mme-dk-muted, #62666d);
}

.mme-sp-buybox__sku-label {
    font-weight: 600;
    margin-inline-end: 4px;
}

.mme-sp-buybox__sku-value {
    color: var(--mme-dk-text, #0c0c0c);
    font-weight: 700;
}

/* Trust badges — shown only when info column has leftover space */
.mme-dk-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    list-style: none;
    margin: 14px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--mme-dk-border, #e0e0e2);
}

.mme-dk-trust-badges__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 10px;
    min-width: 0;
    background: #f7f8f7;
    border: 1px solid #e8ebe8;
    border-radius: 10px;
}

.mme-dk-trust-badges__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff;
    color: var(--mme-dk-accent);
    border: 1px solid color-mix(in srgb, var(--mme-dk-accent) 22%, #e8ebe8);
}

.mme-dk-trust-badges__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.mme-dk-trust-badges__img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mme-dk-trust-badges__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.mme-dk-trust-badges__label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #2c2c2c;
    letter-spacing: 0;
    hyphens: none;
    word-break: normal;
    overflow-wrap: break-word;
}

@media (max-width: 575px) {
    .mme-dk-trust-badges {
        gap: 6px;
    }

    .mme-dk-trust-badges__item {
        padding: 7px 8px;
        gap: 8px;
    }

    .mme-dk-trust-badges__icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .mme-dk-trust-badges__label {
        font-size: 11px;
        line-height: 1.25;
    }
}

/* Product DESCRIPTION tab — Show more / Show less */
.mme-desc-collapse {
    position: relative;
}

.mme-desc-collapse__body {
    position: relative;
}

.mme-desc-collapse.is-collapsible.is-collapsed .mme-desc-collapse__body {
    max-height: 14rem;
    overflow: hidden;
}

.mme-desc-collapse.is-collapsible.is-collapsed .mme-desc-collapse__body::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5rem;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 72%);
    pointer-events: none;
    z-index: 1;
}

.mme-desc-collapse__toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 4px 0 0;
    padding: 8px 4px;
    border: 0;
    background: none;
    color: var(--mme-dk-accent, #00a049);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.mme-desc-collapse__toggle::after {
    content: "";
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -0.2em;
    transition: transform 0.15s ease;
}

.mme-desc-collapse:not(.is-collapsed) .mme-desc-collapse__toggle::after {
    transform: rotate(-135deg);
    margin-top: 0.25em;
}

.mme-desc-collapse__toggle:hover,
.mme-desc-collapse__toggle:focus-visible {
    text-decoration: underline;
    outline: none;
}

.mme-desc-collapse.is-collapsed .mme-desc-collapse__less,
.mme-desc-collapse:not(.is-collapsed) .mme-desc-collapse__more {
    display: none;
}

.mme-desc-collapse:not(.is-collapsed) .mme-desc-collapse__less,
.mme-desc-collapse.is-collapsed .mme-desc-collapse__more {
    display: inline;
}
