/* =========================================================
   PATCH-042H — CLEAN LUXURY PRODUCT PAGE
   Final visual override loaded after single-product.css.
   Purpose: replace the cramped two-column phone composition with
   a clean, readable, premium product layout while preserving all
   WooCommerce and Asala commerce logic.
   ========================================================= */

body.single-product .asala-product-reference {
    --asala-brown: #8f431d;
    --asala-brown-dark: #5f2616;
    --asala-gold: #e6b13f;
    --asala-rose: #a80036;
    --asala-ink: #1f1a17;
    --asala-muted: #756b64;
    --asala-line: #eadfd7;
    --asala-soft: #fffaf6;
    --asala-green: #19934b;
    direction: rtl;
}

body.single-product .asala-product-reference .asala-product-container {
    width: min(1180px, calc(100% - 32px)) !important;
    margin-inline: auto !important;
}

/* ---------- Main product area ---------- */
body.single-product .asala-product-reference .asala-product-main,
body.single-product .asala-product-reference.product-type-variable .asala-product-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr) !important;
    gap: 34px !important;
    align-items: start !important;
    margin-top: 20px !important;
}

body.single-product .asala-product-reference .asala-product-gallery,
body.single-product .asala-product-reference .asala-product-summary {
    min-width: 0 !important;
    width: 100% !important;
}

body.single-product .asala-product-reference .asala-product-gallery-shell {
    display: grid !important;
    grid-template-columns: 82px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: stretch !important;
    background: #fff !important;
    border: 1px solid var(--asala-line) !important;
    border-radius: 20px !important;
    padding: 14px !important;
    box-shadow: 0 12px 34px rgba(70, 36, 21, .06) !important;
}

body.single-product .asala-product-reference .asala-product-thumbnails {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 82px !important;
    max-height: 520px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 1px !important;
}

body.single-product .asala-product-reference .asala-product-thumb {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    border: 1px solid #e8ddd6 !important;
    border-radius: 12px !important;
    background: #fff !important;
    overflow: hidden !important;
    padding: 4px !important;
}

body.single-product .asala-product-reference .asala-product-thumb.is-active {
    border: 2px solid var(--asala-rose) !important;
    box-shadow: 0 0 0 2px rgba(168, 0, 54, .08) !important;
}

body.single-product .asala-product-reference .asala-product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

body.single-product .asala-product-reference .asala-product-main-image {
    min-height: 520px !important;
    height: 100% !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

body.single-product .asala-product-reference .asala-product-main-image > .asala-main-image-link,
body.single-product .asala-product-reference .asala-product-main-image > .asala-main-image-link > img,
body.single-product .asala-product-reference #asala-product-main-image {
    width: 100% !important;
    height: 100% !important;
    min-height: 520px !important;
    object-fit: contain !important;
    background: #fff !important;
}

/* ---------- Summary / typography ---------- */
body.single-product .asala-product-reference .asala-product-summary {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 6px 0 0 !important;
}

body.single-product .asala-product-reference .asala-product-heading-row {
    display: flex !important;
    gap: 12px !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    margin: 0 0 8px !important;
}

body.single-product .asala-product-reference .asala-product-title {
    margin: 0 !important;
    color: var(--asala-ink) !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: clamp(28px, 2.6vw, 38px) !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    letter-spacing: -.35px !important;
    text-align: right !important;
}

body.single-product .asala-product-reference .asala-single-favorite {
    flex: 0 0 46px !important;
    width: 46px !important;
    height: 46px !important;
    display: inline-grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    border: 1px solid #e4d7ce !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(70, 36, 21, .06) !important;
}

body.single-product .asala-product-reference .asala-single-favorite svg {
    width: 22px !important;
    height: 22px !important;
}

body.single-product .asala-product-reference .asala-product-sku {
    margin: 4px 0 7px !important;
    font-size: 13px !important;
    color: #766b65 !important;
}
body.single-product .asala-product-reference .asala-product-sku.is-empty { display: none !important; }

body.single-product .asala-product-reference .asala-product-rating {
    margin: 5px 0 12px !important;
}

body.single-product .asala-product-reference .asala-product-intro,
body.single-product .asala-product-reference .asala-product-intro * {
    direction: rtl !important;
    text-align: right !important;
    font-family: Tahoma, Arial, sans-serif !important;
}

body.single-product .asala-product-reference .asala-product-intro {
    color: #332d29 !important;
    font-size: 16px !important;
    line-height: 2 !important;
    margin: 0 0 16px !important;
}
body.single-product .asala-product-reference .asala-product-intro p { margin: 0 !important; }

/* ---------- Purchase area: open, compact, readable ---------- */
body.single-product .asala-product-reference .asala-purchase-panel {
    display: block !important;
    margin: 10px 0 0 !important;
    padding: 18px 0 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid var(--asala-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
body.single-product .asala-product-reference .asala-purchase-panel::before,
body.single-product .asala-product-reference .asala-purchase-panel-heading,
body.single-product .asala-product-reference .asala-purchase-panel-badge { display: none !important; }

body.single-product .asala-product-reference .asala-product-price-box {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .asala-product-reference .asala-price-icon {
    order: 2 !important;
    width: 40px !important;
    height: 40px !important;
    color: #9b4a20 !important;
}

body.single-product .asala-product-reference .asala-price-copy { min-width: 0 !important; }
body.single-product .asala-product-reference .asala-product-price {
    color: var(--asala-rose) !important;
    font-size: clamp(30px, 3vw, 40px) !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    white-space: normal !important;
}
body.single-product .asala-product-reference .asala-product-price del {
    color: #aaa09a !important;
    font-size: .5em !important;
    font-weight: 600 !important;
    margin-inline-start: 8px !important;
}
body.single-product .asala-product-reference .asala-product-yemeni-price {
    margin-top: 4px !important;
    color: var(--asala-rose) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

body.single-product .asala-product-reference .asala-stock-status {
    display: inline-flex !important;
    width: auto !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 13px 0 16px !important;
    padding: 7px 12px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: #effbf3 !important;
    color: var(--asala-green) !important;
    border: 1px solid #a8dfb8 !important;
}
body.single-product .asala-product-reference .asala-stock-status.is-out-of-stock {
    background: #fff3f3 !important;
    color: #b42318 !important;
    border-color: #efb7b7 !important;
}

body.single-product .asala-product-reference .asala-product-cart-area {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.single-product .asala-product-reference .asala-product-cart-area > .asala-quantity-label {
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: #544840 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

/* Variations */
body.single-product .asala-product-reference .variations {
    width: 100% !important;
    margin: 0 0 12px !important;
    border: 0 !important;
}
body.single-product .asala-product-reference .variations tr {
    display: block !important;
    margin: 0 0 12px !important;
}
body.single-product .asala-product-reference .variations th.label,
body.single-product .asala-product-reference .variations td.value {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: right !important;
}
body.single-product .asala-product-reference .variations th.label {
    margin-bottom: 7px !important;
    color: #4d433d !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}
body.single-product .asala-product-reference .asala-variation-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    direction: rtl !important;
}
body.single-product .asala-product-reference .asala-variation-chip {
    width: auto !important;
    min-width: 74px !important;
    min-height: 42px !important;
    padding: 8px 16px !important;
    border: 1px solid #d9cec7 !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #312b27 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    box-shadow: none !important;
}
body.single-product .asala-product-reference .asala-variation-chip.is-selected {
    background: var(--asala-brown) !important;
    color: #fff !important;
    border-color: var(--asala-brown) !important;
    box-shadow: 0 0 0 3px rgba(143, 67, 29, .12) !important;
}
body.single-product .asala-product-reference .asala-variation-chip:disabled { opacity: .4 !important; }
body.single-product .asala-product-reference .reset_variations {
    display: inline-block !important;
    margin-top: 7px !important;
    color: #7e6d63 !important;
    font-size: 12px !important;
}

/* PATCH-QTY-002: unavailable or incomplete selection has no visible counter. */
body.single-product .asala-product-reference .quantity[hidden] { display: none !important; }

/* quantity */
body.single-product .asala-product-reference .asala-qty-control,
body.single-product .asala-product-reference .quantity {
    border-color: #e0d6cf !important;
    border-radius: 12px !important;
}
body.single-product .asala-product-reference .asala-qty-control {
    min-height: 48px !important;
    margin: 8px 0 10px !important;
    overflow: hidden !important;
}
body.single-product .asala-product-reference .asala-qty-minus,
body.single-product .asala-product-reference .asala-qty-plus {
    min-width: 50px !important;
    font-size: 24px !important;
    background: #fff !important;
    color: #2c2521 !important;
}

/* CTAs */
body.single-product .asala-product-reference .single_add_to_cart_button,
body.single-product .asala-product-reference .asala-buy-now-button {
    width: 100% !important;
    min-height: 52px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 12px !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
body.single-product .asala-product-reference .single_add_to_cart_button {
    background: linear-gradient(135deg, #9c4a1f, #783417) !important;
    color: #fff !important;
    border: 1px solid #783417 !important;
}
body.single-product .asala-product-reference .asala-buy-now-button {
    margin-top: 9px !important;
    background: linear-gradient(135deg, #f3c85d, #e5ab32) !important;
    color: #2e2116 !important;
    border: 1px solid #d9a12f !important;
}
body.single-product .asala-product-reference .asala-buy-now-button.is-disabled {
    opacity: .52 !important;
    cursor: not-allowed !important;
}

/* ---------- Full-width trust / logistics ---------- */
body.single-product .asala-product-reference .asala-reference-support {
    margin-top: 28px !important;
}
body.single-product .asala-product-reference .asala-product-trust {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0,1fr)) !important;
    gap: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid var(--asala-line) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 26px rgba(70,36,21,.04) !important;
}
body.single-product .asala-product-reference .asala-trust-item {
    min-height: 112px !important;
    padding: 18px 12px !important;
    border-left: 1px solid #eee3dc !important;
    background: #fff !important;
}
body.single-product .asala-product-reference .asala-trust-item:last-child { border-left: 0 !important; }
body.single-product .asala-product-reference .asala-trust-icon { color: #9a4a22 !important; }
body.single-product .asala-product-reference .asala-trust-item strong { color: #332820 !important; font-size: 14px !important; }
body.single-product .asala-product-reference .asala-trust-item small { color: #7c7069 !important; }

body.single-product .asala-product-reference .asala-reference-logistics {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important;
    gap: 14px !important;
    margin-top: 14px !important;
}
body.single-product .asala-product-reference .asala-reference-logistics > * {
    margin: 0 !important;
    min-width: 0 !important;
    border: 1px solid var(--asala-line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none !important;
}

/* ---------- Details ---------- */
body.single-product .asala-product-reference .asala-product-details {
    margin-top: 22px !important;
}
body.single-product .asala-product-reference .asala-product-detail-box {
    margin: 0 0 10px !important;
    border: 1px solid var(--asala-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    overflow: hidden !important;
    box-shadow: none !important;
}
body.single-product .asala-product-reference .asala-product-detail-box summary {
    min-height: 58px !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
}
body.single-product .asala-product-reference .asala-product-detail-content {
    padding: 4px 18px 18px !important;
    font-size: 15px !important;
    line-height: 1.9 !important;
}

/* ---------- Related products ---------- */
body.single-product .asala-product-reference .asala-related-products {
    margin-top: 30px !important;
}
body.single-product .asala-product-reference .asala-related-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
}
body.single-product .asala-product-reference .asala-related-products ul.products li.product,
body.single-product .asala-product-reference .asala-related-products ul.products li.product.asala-loop-product-item {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
}

/* ---------- Mobile: deliberately single-column ---------- */
@media (max-width: 767px) {
    body.single-product .asala-product-reference .asala-product-container {
        width: min(100% - 20px, 640px) !important;
    }

    body.single-product .asala-product-reference .asala-product-main,
    body.single-product .asala-product-reference.product-type-variable .asala-product-main {
        display: block !important;
        margin-top: 12px !important;
    }

    body.single-product .asala-product-reference .asala-product-gallery {
        margin: 0 0 18px !important;
    }

    body.single-product .asala-product-reference .asala-product-gallery-shell {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 10px !important;
        border-radius: 16px !important;
    }

    body.single-product .asala-product-reference .asala-product-main-image {
        order: 1 !important;
        width: 100% !important;
        min-height: 320px !important;
        height: 320px !important;
        border-radius: 12px !important;
    }

    body.single-product .asala-product-reference .asala-product-main-image > .asala-main-image-link,
    body.single-product .asala-product-reference .asala-product-main-image > .asala-main-image-link > img,
    body.single-product .asala-product-reference #asala-product-main-image {
        min-height: 320px !important;
        height: 320px !important;
        object-fit: contain !important;
    }

    body.single-product .asala-product-reference .asala-product-thumbnails {
        order: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 2px 0 4px !important;
        scrollbar-width: thin !important;
    }

    body.single-product .asala-product-reference .asala-product-thumb {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
    }

    body.single-product .asala-product-reference .asala-mobile-quick-specs {
        display: none !important;
    }

    body.single-product .asala-product-reference .asala-product-summary {
        padding: 0 !important;
    }

    body.single-product .asala-product-reference .asala-product-title {
        font-size: 25px !important;
        line-height: 1.4 !important;
    }

    body.single-product .asala-product-reference .asala-single-favorite {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    body.single-product .asala-product-reference .asala-product-intro {
        font-size: 18px !important;
        line-height: 1.9 !important;
        margin-bottom: 12px !important;
    }

    body.single-product .asala-product-reference .asala-purchase-panel {
        padding-top: 14px !important;
        margin-top: 8px !important;
    }

    body.single-product .asala-product-reference .asala-product-price {
        font-size: 32px !important;
    }

    body.single-product .asala-product-reference .asala-product-yemeni-price {
        font-size: 13px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product .variations tr,
    body.single-product .asala-product-reference .variations tr {
        display: block !important;
        margin-bottom: 10px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product .asala-variation-chips,
    body.single-product .asala-product-reference .asala-variation-chips {
        display: flex !important;
        grid-template-columns: none !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product .asala-variation-chip,
    body.single-product .asala-product-reference .asala-variation-chip {
        width: auto !important;
        min-width: 74px !important;
        min-height: 42px !important;
        padding: 8px 14px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        overflow: visible !important;
        text-overflow: clip !important;
        color: #312b27 !important;
    }
    body.single-product .asala-product-reference .asala-variation-chip.is-selected {
        color: #fff !important;
    }

    body.single-product .asala-product-reference .asala-product-trust {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        border-radius: 14px !important;
    }
    body.single-product .asala-product-reference .asala-trust-item {
        min-height: 96px !important;
        padding: 14px 8px !important;
        border-bottom: 1px solid #eee3dc !important;
    }
    body.single-product .asala-product-reference .asala-trust-item:nth-child(2n) { border-left: 0 !important; }
    body.single-product .asala-product-reference .asala-trust-item:nth-last-child(-n+2) { border-bottom: 0 !important; }

    body.single-product .asala-product-reference .asala-reference-logistics {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        margin-top: 10px !important;
    }

    body.single-product .asala-product-reference .asala-related-products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.single-product .asala-product-reference .asala-related-track,
    body.single-product .asala-product-reference .asala-related-carousel {
        overflow: visible !important;
    }

    body.single-product .asala-product-reference .asala-product-service-strip {
        margin-top: 18px !important;
    }
}

@media (max-width: 390px) {
    body.single-product .asala-product-reference .asala-product-container {
        width: calc(100% - 14px) !important;
    }
    body.single-product .asala-product-reference .asala-product-main-image,
    body.single-product .asala-product-reference .asala-product-main-image > .asala-main-image-link,
    body.single-product .asala-product-reference .asala-product-main-image > .asala-main-image-link > img,
    body.single-product .asala-product-reference #asala-product-main-image {
        min-height: 285px !important;
        height: 285px !important;
    }
    body.single-product .asala-product-reference .asala-product-title { font-size: 23px !important; }
    body.single-product .asala-product-reference .asala-product-intro { font-size: 18px !important; }
    body.single-product .asala-product-reference .asala-related-products ul.products { grid-template-columns: 1fr 1fr !important; }
}

/* =========================================================
   PATCH-042J — SMART DEFAULT VARIATION + GALLERY WHITESPACE
   Presentation only. The selection rule itself is emitted by the product
   template; these rules keep the initial choice visually clean and use the
   desktop gallery-column whitespace instead of leaving a dead empty block.
   ========================================================= */
body.single-product .asala-product-reference .reset_variations {
    display: none !important;
}

body.single-product .asala-product-reference .asala-gallery-assurance {
    display: none;
}

@media (min-width: 768px) {
    body.single-product .asala-product-reference .asala-gallery-assurance {
        display: block !important;
        margin-top: 14px !important;
        padding: 16px !important;
        border: 1px solid var(--asala-line, #eadfd7) !important;
        border-radius: 18px !important;
        background: linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%) !important;
        box-shadow: 0 10px 28px rgba(77, 42, 24, .045) !important;
        direction: rtl !important;
    }

    body.single-product .asala-product-reference .asala-gallery-assurance-heading {
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        margin-bottom: 12px !important;
        color: #7f3c1d !important;
        font-size: 15px !important;
        font-weight: 900 !important;
        text-align: right !important;
    }

    body.single-product .asala-product-reference .asala-gallery-assurance-heading span {
        display: grid !important;
        place-items: center !important;
        width: 28px !important;
        height: 28px !important;
        border-radius: 50% !important;
        background: #f4e4d8 !important;
        color: #9a4b22 !important;
        font-size: 13px !important;
    }

    body.single-product .asala-product-reference .asala-gallery-assurance-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    body.single-product .asala-product-reference .asala-gallery-assurance-item {
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
        min-width: 0 !important;
        min-height: 64px !important;
        padding: 10px 11px !important;
        border: 1px solid #eee3dc !important;
        border-radius: 12px !important;
        background: #fff !important;
    }

    body.single-product .asala-product-reference .asala-gallery-assurance-icon {
        display: grid !important;
        place-items: center !important;
        flex: 0 0 34px !important;
        width: 34px !important;
        height: 34px !important;
        border-radius: 10px !important;
        background: #fff4ea !important;
        color: #8f431d !important;
        font-size: 16px !important;
        font-weight: 900 !important;
    }

    body.single-product .asala-product-reference .asala-gallery-assurance-item > div {
        min-width: 0 !important;
    }

    body.single-product .asala-product-reference .asala-gallery-assurance-item strong,
    body.single-product .asala-product-reference .asala-gallery-assurance-item small {
        display: block !important;
        text-align: right !important;
        direction: rtl !important;
    }

    body.single-product .asala-product-reference .asala-gallery-assurance-item strong {
        margin-bottom: 2px !important;
        color: #332820 !important;
        font-size: 13px !important;
        line-height: 1.4 !important;
        font-weight: 900 !important;
    }

    body.single-product .asala-product-reference .asala-gallery-assurance-item small {
        color: #796c64 !important;
        font-size: 11px !important;
        line-height: 1.45 !important;
    }

    /* The same four trust points are now living in the gallery whitespace on
       desktop. Keep the existing full-width trust row for mobile only. */
    body.single-product .asala-product-reference .asala-reference-support > .asala-product-trust {
        display: none !important;
    }
}

@media (max-width: 767px) {
    body.single-product .asala-product-reference .asala-gallery-assurance {
        display: none !important;
    }
}

/* PATCH-043B — Single-size visibility + dynamic variation gallery support. */
body.single-product .asala-product-reference .asala-product-thumbnails.is-empty {
    display: none !important;
}

body.single-product .asala-product-reference .asala-simple-size-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 4px;
    padding: 10px 12px;
    border: 1px solid #eaded6;
    border-radius: 12px;
    background: #fffaf6;
    direction: rtl;
}

body.single-product .asala-product-reference .asala-simple-size-label {
    color: #65564d;
    font-size: 14px;
    font-weight: 700;
}

body.single-product .asala-product-reference .asala-simple-size-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 38px;
    padding: 6px 14px;
    border: 1px solid #d9c4b8;
    border-radius: 999px;
    background: #fff;
    color: #2c221d;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   PATCH-043D — Product readability refinements
   Only the text/logo areas explicitly requested.
   ========================================================= */
body.single-product .asala-product-reference .asala-simple-size-label{font-size:15px!important;font-weight:800!important}
body.single-product .asala-product-reference .asala-reference-card-heading{font-size:16px!important;line-height:1.65!important;font-weight:900!important}
body.single-product .asala-product-reference .asala-branch-tabs button,body.single-product .asala-product-reference .asala-branch-tab{min-height:42px!important;font-size:14px!important;line-height:1.5!important;font-weight:800!important}
body.single-product .asala-product-reference .asala-available-governorates,body.single-product .asala-product-reference .asala-available-governorates strong,body.single-product .asala-product-reference .asala-available-governorates span{font-size:14px!important;line-height:1.85!important}
body.single-product .asala-product-reference .asala-carrier-logo-card{min-height:88px!important;padding:9px 10px!important}
body.single-product .asala-product-reference .asala-carrier-logo-card img{width:auto!important;max-width:100%!important;height:56px!important;object-fit:contain!important}
body.single-product .asala-product-reference .asala-carrier-logo-card span{margin-top:5px!important;font-size:13px!important;line-height:1.45!important;font-weight:700!important}
@media(max-width:767px){
 body.single-product .asala-product-reference .asala-simple-size-label{font-size:15px!important}
 body.single-product .asala-product-reference .asala-reference-card-heading{margin-bottom:7px!important;font-size:14px!important;line-height:1.65!important}
 body.single-product .asala-product-reference .asala-branch-tabs button,body.single-product .asala-product-reference .asala-branch-tab{min-height:40px!important;font-size:13px!important}
 body.single-product .asala-product-reference .asala-available-governorates,body.single-product .asala-product-reference .asala-available-governorates strong,body.single-product .asala-product-reference .asala-available-governorates span{font-size:13px!important;line-height:1.8!important}
 body.single-product .asala-product-reference .asala-carrier-logo-card{min-height:76px!important;padding:7px 8px!important}
 body.single-product .asala-product-reference .asala-carrier-logo-card img{height:46px!important}
 body.single-product .asala-product-reference .asala-carrier-logo-card span{font-size:12px!important}
}

/* =========================================================
   PATCH-043E — Readability pass requested by store owner
   Only the specific small labels/logistics areas are enlarged.
   Dashboard runtime CSS still owns configurable typography.
   ========================================================= */
body.single-product .asala-product-reference .asala-simple-size-label{font-size:16px!important}
body.single-product .asala-product-reference .asala-reference-card-heading{font-size:18px!important;line-height:1.7!important}
body.single-product .asala-product-reference .asala-branch-tabs button,
body.single-product .asala-product-reference .asala-branch-tab{font-size:15px!important;line-height:1.55!important}
body.single-product .asala-product-reference .asala-available-governorates,
body.single-product .asala-product-reference .asala-available-governorates strong,
body.single-product .asala-product-reference .asala-available-governorates span{font-size:15px!important;line-height:1.9!important}
body.single-product .asala-product-reference .asala-carrier-logo-card{min-height:94px!important}
body.single-product .asala-product-reference .asala-carrier-logo-card img{height:62px!important;max-width:100%!important;object-fit:contain!important}
body.single-product .asala-product-reference .asala-carrier-logo-card span{font-size:14px!important}
body.single-product .asala-product-reference .asala-variation-chip.is-disabled::after{content:"نفد";display:inline-block;margin-right:6px;padding:2px 5px;border-radius:999px;background:#f7e8e8;color:#a42a2a;font-size:10px;font-weight:800;vertical-align:middle}
@media(max-width:767px){
 body.single-product .asala-product-reference .asala-simple-size-label{font-size:16px!important}
 body.single-product .asala-product-reference .asala-reference-card-heading{font-size:16px!important;line-height:1.75!important}
 body.single-product .asala-product-reference .asala-branch-tabs button,
 body.single-product .asala-product-reference .asala-branch-tab{font-size:14px!important;line-height:1.6!important}
 body.single-product .asala-product-reference .asala-available-governorates,
 body.single-product .asala-product-reference .asala-available-governorates strong,
 body.single-product .asala-product-reference .asala-available-governorates span{font-size:14px!important;line-height:1.9!important}
 body.single-product .asala-product-reference .asala-carrier-logo-card{min-height:84px!important}
 body.single-product .asala-product-reference .asala-carrier-logo-card img{height:54px!important}
 body.single-product .asala-product-reference .asala-carrier-logo-card span{font-size:13px!important}
}


/* =========================================================
   PATCH-043I — Reviews at page end + compact presentation
   Keeps WooCommerce review data/native form intact while reducing visual bulk.
   ========================================================= */
body.single-product .asala-product-reference section.asala-product-reviews{
    margin-top:18px!important;
    padding:14px 16px!important;
    border-radius:10px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-reviews-heading{
    gap:12px!important;
    padding-bottom:10px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-reviews-kicker{
    font-size:10px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-reviews-heading h2{
    font-size:18px!important;
    line-height:1.35!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-reviews-summary{
    min-width:130px!important;
    gap:2px 7px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-reviews-summary>strong{
    font-size:24px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-reviews-summary small{
    font-size:10px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-review-actions{
    margin-top:9px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-review-toggle-button{
    min-height:38px!important;
    padding:7px 14px!important;
    font-size:12px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-native-reviews{
    padding-top:10px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-native-reviews .comment_container{
    grid-template-columns:40px minmax(0,1fr)!important;
    gap:9px!important;
    padding:9px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-native-reviews .avatar{
    width:40px!important;
    height:40px!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-native-reviews .description,
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-native-reviews .description p{
    font-size:13px!important;
    line-height:1.75!important;
}
body.single-product .asala-product-reference section.asala-product-reviews .asala-product-native-reviews #review_form_wrapper{
    margin-top:10px!important;
    padding:11px!important;
}
@media(max-width:767px){
    body.single-product .asala-product-reference section.asala-product-reviews{
        margin-top:12px!important;
        padding:10px!important;
        border-radius:8px!important;
    }
    body.single-product .asala-product-reference section.asala-product-reviews .asala-product-reviews-heading h2{
        font-size:16px!important;
    }
    body.single-product .asala-product-reference section.asala-product-reviews .asala-product-reviews-summary{
        min-width:105px!important;
    }
    body.single-product .asala-product-reference section.asala-product-reviews .asala-product-reviews-summary>strong{
        font-size:21px!important;
    }
    body.single-product .asala-product-reference section.asala-product-reviews .asala-review-toggle-button{
        min-height:38px!important;
        font-size:11.5px!important;
    }
}

/* PATCH-043T — Clickable product audience badge. */
body.single-product .asala-product-reference .asala-product-gender-wrap{
    display:flex;
    justify-content:flex-start;
    margin:8px 0 10px;
}
body.single-product .asala-product-reference .asala-product-gender-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:6px 16px;
    border:1px solid rgba(143,67,29,.28);
    border-radius:999px;
    background:linear-gradient(135deg,#fffaf5 0%,#f8eadf 100%);
    color:#6f3018;
    box-shadow:0 5px 14px rgba(95,38,22,.08);
    font-family:Tahoma,Arial,sans-serif;
    font-size:14px;
    font-weight:800;
    line-height:1.35;
    text-decoration:none;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
body.single-product .asala-product-reference .asala-product-gender-badge:hover,
body.single-product .asala-product-reference .asala-product-gender-badge:focus-visible{
    border-color:#8f431d;
    color:#5f2616;
    box-shadow:0 7px 18px rgba(95,38,22,.13);
    transform:translateY(-1px);
    outline:none;
}
@media(max-width:767px){
    body.single-product .asala-product-reference .asala-product-gender-badge{
        min-height:32px;
        padding:5px 14px;
        font-size:13px;
    }
}


/* PATCH-043X — extra sections media, image color swatches, fixed size, bundle promo. */
body.single-product .asala-product-reference .asala-fixed-size-display{
    display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 0;padding:9px 12px;border:1px solid #eadfd7;border-radius:12px;background:#fffaf6;color:#5f2616;
}
body.single-product .asala-product-reference .asala-fixed-size-display span{font-size:13px;color:#756b64;font-weight:700}
body.single-product .asala-product-reference .asala-fixed-size-display strong{font-size:15px;font-weight:900;color:#2a211d}
body.single-product .asala-product-reference .asala-variation-chips.is-image-swatches{display:flex;flex-wrap:wrap;gap:10px}
body.single-product .asala-product-reference .asala-variation-chip-image{
    width:104px;min-height:118px;padding:6px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px;border-radius:13px!important;background:#fff!important;color:#2d241f!important;overflow:hidden;
}
body.single-product .asala-product-reference .asala-variation-chip-image img{width:90px;height:78px;object-fit:contain;border-radius:8px;background:#fff}
body.single-product .asala-product-reference .asala-variation-chip-image span{display:block;width:100%;font-size:12px;font-weight:800;line-height:1.35;text-align:center;white-space:normal}
body.single-product .asala-product-reference .asala-variation-chip-image.is-selected{box-shadow:0 0 0 2px #8f431d!important;background:#fff8f3!important}
body.single-product .asala-product-reference .asala-extra-section-copy{margin-bottom:14px}
body.single-product .asala-product-reference .asala-extra-media{margin-top:14px}
body.single-product .asala-product-reference .asala-extra-media.is-horizontal{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
body.single-product .asala-product-reference .asala-extra-media.is-vertical{display:flex;flex-direction:column}
body.single-product .asala-product-reference .asala-extra-media-item{margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
body.single-product .asala-product-reference .asala-extra-media-image{order:2;border:1px solid #eee2da;border-radius:14px;overflow:hidden;background:#fff}
body.single-product .asala-product-reference .asala-extra-media-image img{display:block;width:100%;height:auto;object-fit:cover}
body.single-product .asala-product-reference .asala-extra-media-title{order:1;margin:0;line-height:1.55;text-align:right}
body.single-product .asala-product-reference .asala-extra-media.title-below .asala-extra-media-title{order:3}
body.single-product .asala-product-reference .asala-extra-media.title-right .asala-extra-media-item{display:grid;grid-template-columns:minmax(92px,.42fr) minmax(0,1fr);align-items:center;gap:12px;direction:rtl}
body.single-product .asala-product-reference .asala-extra-media.title-right .asala-extra-media-title{order:1}
body.single-product .asala-product-reference .asala-extra-media.title-right .asala-extra-media-image{order:2}
body.single-product .asala-product-reference .asala-product-bundle-promo{margin:24px 0;padding:14px;border:1px solid #e2d6cf;border-radius:18px;background:#fff;box-shadow:0 7px 24px rgba(78,45,28,.06);overflow:hidden}
body.single-product .asala-product-reference .asala-product-bundle-title{margin:0 0 10px;text-align:center;font-size:22px;font-weight:800;line-height:1.5;color:#2a211d}
body.single-product .asala-product-reference .asala-product-bundle-images{display:flex;align-items:flex-start;justify-content:center;gap:12px;padding:8px 6px 14px}
body.single-product .asala-product-reference .asala-product-bundle-item{flex:0 1 30%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center}
body.single-product .asala-product-reference .asala-product-bundle-link{display:block;width:100%;text-decoration:none;color:inherit}
body.single-product .asala-product-reference .asala-product-bundle-image{width:100%;min-width:0;display:flex;align-items:center;justify-content:center}
body.single-product .asala-product-reference .asala-product-bundle-image img{display:block;max-width:100%;height:110px;object-fit:contain}
body.single-product .asala-product-reference .asala-product-bundle-item-title{margin-top:7px;font-size:14px;font-weight:800;line-height:1.45;color:#2a211d}
body.single-product .asala-product-reference .asala-product-bundle-item-size{margin-top:3px;font-size:13px;font-weight:700;line-height:1.4;color:#756b64}
body.single-product .asala-product-reference .asala-product-bundle-plus{align-self:center;font-size:28px;font-weight:700;color:#6f625b}
body.single-product .asala-product-reference .asala-product-bundle-text{margin:0 -14px -14px;padding:16px 18px;border-top:1px solid #eadfd7;background:linear-gradient(135deg,#fffaf6,#f7eee7);font-size:22px;font-weight:900;line-height:1.5;text-align:center;color:#8f1538}
@media(max-width:767px){
    body.single-product .asala-product-reference .asala-variation-chips.is-image-swatches{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
    body.single-product .asala-product-reference .asala-variation-chip-image{flex:0 0 98px;width:98px;min-height:112px}
    body.single-product .asala-product-reference .asala-variation-chip-image img{width:84px;height:72px}
    body.single-product .asala-product-reference .asala-extra-media.is-horizontal{display:flex;overflow-x:auto;align-items:stretch;padding-bottom:6px;scroll-snap-type:x proximity}
    body.single-product .asala-product-reference .asala-extra-media.is-horizontal .asala-extra-media-item{flex:0 0 78%;scroll-snap-align:start}
    body.single-product .asala-product-reference .asala-extra-media.title-right .asala-extra-media-item{grid-template-columns:minmax(82px,.42fr) minmax(0,1fr)}
    body.single-product .asala-product-reference .asala-product-bundle-title{font-size:18px}
    body.single-product .asala-product-reference .asala-product-bundle-images{gap:7px}
    body.single-product .asala-product-reference .asala-product-bundle-image img{height:82px}
    body.single-product .asala-product-reference .asala-product-bundle-item-title{font-size:13px}
    body.single-product .asala-product-reference .asala-product-bundle-item-size{font-size:12px}
    body.single-product .asala-product-reference .asala-product-bundle-plus{font-size:22px}
    body.single-product .asala-product-reference .asala-product-bundle-text{font-size:18px;padding:14px 12px}
}

/* ========================================================================
   PATCH-045L — Premium responsive product extra-media + bundle presentation
   Keeps existing content/settings/data model; presentation only.
   ======================================================================== */
body.single-product .asala-product-reference .asala-detail-extra .asala-product-detail-content {
    background: linear-gradient(180deg, #fff 0%, #fffdfb 100%);
}

body.single-product .asala-product-reference .asala-extra-media {
    align-items: stretch;
}

body.single-product .asala-product-reference .asala-extra-media.is-horizontal {
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

body.single-product .asala-product-reference .asala-extra-media-item {
    min-width: 0;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eadfd7;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #fffaf6 100%);
    box-shadow: 0 9px 24px rgba(62, 35, 23, .045);
}

body.single-product .asala-product-reference .asala-extra-media-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 13px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #eee4dc;
}

body.single-product .asala-product-reference .asala-extra-media-image img {
    width: 100%;
    height: 100%;
    max-height: 340px;
    padding: 3px;
    object-fit: contain;
    object-position: center;
    background: #fff;
}

body.single-product .asala-product-reference .asala-extra-media-title {
    padding-inline: 3px;
    line-height: 1.65;
}

body.single-product .asala-product-reference .asala-extra-media.title-right .asala-extra-media-item {
    grid-template-columns: minmax(130px, .44fr) minmax(0, 1fr);
    padding: 12px;
}

body.single-product .asala-product-reference .asala-product-bundle-promo {
    position: relative;
    margin: 28px 0;
    padding: 20px 18px 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 12%, rgba(205, 168, 139, .12), transparent 27%),
        linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%);
    box-shadow: 0 14px 34px rgba(65, 36, 23, .075);
}

body.single-product .asala-product-reference .asala-product-bundle-title {
    margin-bottom: 16px;
    font-size: clamp(20px, 2vw, 25px);
    color: #291b15;
}

body.single-product .asala-product-reference .asala-product-bundle-images {
    gap: 10px;
    padding: 4px 0 16px;
}

body.single-product .asala-product-reference .asala-product-bundle-item {
    align-self: stretch;
    padding: 10px 8px 12px;
    border: 1px solid #ede2da;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 7px 18px rgba(65, 36, 23, .04);
}

body.single-product .asala-product-reference .asala-product-bundle-image {
    min-height: 0;
    padding: 5px;
    border-radius: 12px;
    background: #fff;
}

body.single-product .asala-product-reference .asala-product-bundle-image img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

body.single-product .asala-product-reference .asala-product-bundle-item-title {
    margin-top: 9px;
    line-height: 1.55;
}

body.single-product .asala-product-reference .asala-product-bundle-item-size {
    margin-top: 4px;
    line-height: 1.5;
}

body.single-product .asala-product-reference .asala-product-bundle-plus {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    align-self: center;
    border: 1px solid #dfd1c6;
    border-radius: 50%;
    background: #fff;
    color: #79543f;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 5px 14px rgba(65,36,23,.05);
}

body.single-product .asala-product-reference .asala-product-bundle-text {
    margin: 2px -18px -18px;
    padding: 16px 18px;
    border-top: 1px solid #eadfd7;
    font-size: clamp(18px, 2vw, 22px);
}

@media (max-width: 767px) {
    body.single-product .asala-product-reference .asala-extra-media.is-horizontal {
        display: flex;
        gap: 11px !important;
        margin-inline: -2px;
        padding: 2px 2px 8px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    body.single-product .asala-product-reference .asala-extra-media.is-horizontal .asala-extra-media-item {
        flex: 0 0 min(84vw, 330px);
        scroll-snap-align: start;
    }

    body.single-product .asala-product-reference .asala-extra-media-image {
        aspect-ratio: 4 / 3;
    }

    body.single-product .asala-product-reference .asala-extra-media-image img {
        max-height: 245px;
    }

    body.single-product .asala-product-reference .asala-extra-media.title-right .asala-extra-media-item {
        display: flex;
        flex-direction: column;
        gap: 9px;
    }

    body.single-product .asala-product-reference .asala-extra-media.title-right .asala-extra-media-title {
        order: 3;
    }

    body.single-product .asala-product-reference .asala-extra-media.title-right .asala-extra-media-image {
        order: 2;
    }

    body.single-product .asala-product-reference .asala-product-bundle-promo {
        margin: 22px 0;
        padding: 14px 10px 12px;
        border-radius: 17px;
    }

    body.single-product .asala-product-reference .asala-product-bundle-title {
        margin-bottom: 12px;
        font-size: 19px;
    }

    body.single-product .asala-product-reference .asala-product-bundle-images {
        gap: 5px;
        padding-bottom: 12px;
    }

    body.single-product .asala-product-reference .asala-product-bundle-item {
        padding: 7px 5px 9px;
        border-radius: 13px;
    }

    body.single-product .asala-product-reference .asala-product-bundle-image {
        padding: 3px;
        border-radius: 10px;
    }

    body.single-product .asala-product-reference .asala-product-bundle-plus {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
        font-size: 15px;
    }

    body.single-product .asala-product-reference .asala-product-bundle-item-title {
        margin-top: 6px;
        line-height: 1.45;
    }

    body.single-product .asala-product-reference .asala-product-bundle-item-size {
        margin-top: 2px;
    }

    body.single-product .asala-product-reference .asala-product-bundle-text {
        margin: 2px -10px -12px;
        padding: 13px 10px;
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    body.single-product .asala-product-reference .asala-product-bundle-images {
        gap: 3px;
    }

    body.single-product .asala-product-reference .asala-product-bundle-item {
        padding-inline: 4px;
    }

    body.single-product .asala-product-reference .asala-product-bundle-plus {
        flex-basis: 18px;
        width: 18px;
        height: 18px;
        font-size: 13px;
    }
}

/* PATCH-047AM — the designed stock row above the form is the visible authority.
 * Hide only WooCommerce's duplicate in-stock text inside the purchase form;
 * out-of-stock/backorder messages and variation/form controls remain available. */
html body#asala-page.single-product .asala-product-reference .asala-product-cart-area .stock.in-stock {
    display: none !important;
}

/* PATCH-048D: collapsible intro uses the same brand typography; always accessible. */
body.single-product .asala-product-reference details.asala-pd-intro-toggle { display:block; width:100%; border:1px solid var(--asala-line,#e7ded7); border-radius:12px; padding:12px 16px; }
body.single-product .asala-product-reference details.asala-pd-intro-toggle > summary { cursor:pointer; font-weight:800; list-style:auto; }
body.single-product .asala-product-reference .asala-pd-intro-body { margin-top:10px; }
body.single-product .asala-product-reference .asala-pd-relocated { margin-block:18px !important; }
