/*
Theme Name: Asalat Alotoor
Section: Custom Single Product
PATCH-036 - Mobile Gap + Functional Carrier Tabs
*/

/* =========================================================
   PAGE RESET / TOKENS
   ========================================================= */

body.single-product #primary,
body.single-product .content-area,
body.single-product .site-main {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .widget-area,
body.single-product #secondary {
    display: none !important;
}

body.single-product {
    overflow-x: hidden;
}

.asala-product-reference {
    --asala-brown: #5e2b18;
    --asala-brown-2: #8c451d;
    --asala-gold: #d7a14d;
    --asala-gold-soft: #f3d589;
    --asala-red: #a90032;
    --asala-green: #199451;
    --asala-text: #211713;
    --asala-muted: #756960;
    --asala-line: #eadfd6;
    --asala-cream: #fffaf6;
    --asala-soft: #faf6f2;
    direction: rtl;
    background: #fff;
    color: var(--asala-text);
    font-family: inherit;
}

.asala-product-reference *,
.asala-product-reference *::before,
.asala-product-reference *::after {
    box-sizing: border-box;
}

.asala-product-container {
    width: min(1280px, calc(100% - 28px));
    margin: 0 auto;
    padding: 16px 0 34px;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */

.asala-product-breadcrumb {
    margin: 0 0 13px;
    color: #7d716a;
    font-size: 13px;
    line-height: 1.7;
}

.asala-breadcrumb-nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 2px;
}

.asala-breadcrumb-nav a {
    color: #695a51;
    text-decoration: none;
}

.asala-breadcrumb-separator {
    margin: 0 6px;
    color: #b49a86;
}

/* =========================================================
   HERO GRID
   ========================================================= */

.asala-product-main {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(360px, .87fr);
    grid-template-areas: "gallery summary";
    gap: 22px;
    align-items: start;
    direction: ltr;
}

.asala-product-gallery {
    grid-area: gallery;
    min-width: 0;
    direction: rtl;
}

.asala-product-summary {
    grid-area: summary;
    min-width: 0;
    direction: rtl;
    position: sticky;
    top: 18px;
}

/* =========================================================
   GALLERY
   ========================================================= */

.asala-product-gallery-shell {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
    direction: ltr;
}

.asala-product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-height: 610px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1px;
    scrollbar-width: thin;
}

.asala-product-thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    border: 2px solid #ddd4cd;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.asala-product-thumb.is-active {
    border-color: #9f1233;
    box-shadow: 0 0 0 1px rgba(159, 18, 51, .14);
}

.asala-product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asala-product-main-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e4d8cf;
    border-radius: 7px;
    background: #f8f5f2;
    aspect-ratio: 1 / 1;
}

.asala-product-main-image a,
.asala-product-main-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.asala-product-main-image img {
    object-fit: cover;
    object-position: center;
}

.asala-product-zoom-button {
    position: absolute;
    left: 11px;
    bottom: 11px;
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #171717;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 13px rgba(0, 0, 0, .12);
}

/* =========================================================
   PRODUCT SUMMARY
   ========================================================= */

.asala-product-title {
    margin: 0 0 5px;
    color: #111;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.2;
    font-weight: 900;
}

.asala-product-sku {
    margin: 0 0 7px;
    color: #566270;
    font-size: 14px;
    font-weight: 700;
}

.asala-product-sku strong {
    margin-inline-start: 4px;
}

.asala-product-rating {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
    color: #5d5049;
    font-size: 14px;
}

.asala-product-rating .star-rating {
    float: none;
    margin: 0;
}

.asala-product-rating .star-rating::before,
.asala-product-rating .star-rating span::before {
    color: #f0a400;
}

.asala-product-short-description {
    margin: 0 0 10px;
    color: #403833;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 600;
}

.asala-product-short-description p {
    margin: 0;
}

.asala-product-price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px;
    padding: 0;
    border: 0;
}

.asala-price-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: #9c4a1d;
}

.asala-price-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
}

.asala-price-icon ellipse {
    fill: rgba(156, 74, 29, .08);
}

.asala-product-price {
    color: var(--asala-red);
    font-size: clamp(32px, 3.2vw, 46px);
    font-weight: 900;
    line-height: 1;
}

.asala-product-price .price,
.asala-product-price ins {
    color: inherit;
    text-decoration: none;
}

.asala-product-price del {
    margin-inline-end: 7px;
    color: #8f8178;
    font-size: .55em;
    opacity: .58;
}

.asala-product-yemeni-price {
    margin-top: 5px;
    color: #ab1638;
    font-size: 17px;
    font-weight: 800;
}

.asala-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 5px 0 10px;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    font-size: 14px;
    font-weight: 800;
}

.asala-stock-status.is-in-stock {
    color: #22a455;
}

.asala-stock-status.is-out-of-stock {
    color: #ad283b;
}

.asala-stock-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: currentColor;
    color: #fff;
    font-size: 11px;
}

/* =========================================================
   QUANTITY / CART
   ========================================================= */

.asala-product-cart-area {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    width: 100%;
    margin-top: 3px;
}

.asala-quantity-label {
    padding-top: 12px;
    color: #443832;
    font-size: 14px;
    font-weight: 800;
}

.asala-product-cart-area form.cart {
    display: grid !important;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    width: 100%;
    margin: 0 !important;
}

.asala-product-cart-area .quantity {
    width: 126px !important;
    margin: 0 !important;
}

.asala-product-cart-area .quantity > input.qty {
    display: none;
}

.asala-qty-control {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    width: 100%;
    height: 48px;
    overflow: hidden;
    border: 1px solid #e1d6ce;
    border-radius: 2px;
    background: #fff;
}

.asala-qty-control button {
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: #fff;
    color: #2a2220;
    font-size: 25px;
    cursor: pointer;
}

.asala-qty-control button:first-child {
    border-left: 1px solid #e7ded7;
}

.asala-qty-control button:last-child {
    border-right: 1px solid #e7ded7;
}

.asala-qty-slot {
    display: block;
    min-width: 0;
}

.asala-qty-slot input.qty {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #1a1412;
    text-align: center !important;
    font-size: 17px !important;
    font-weight: 800;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.asala-qty-slot input.qty::-webkit-inner-spin-button,
.asala-qty-slot input.qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.asala-product-cart-area button.single_add_to_cart_button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0 !important;
    padding: 8px 14px !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: linear-gradient(135deg, #7a391b, #9b4b20) !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.2;
}

.asala-product-cart-area button.single_add_to_cart_button::before {
    content: "🛒";
    margin-inline-end: 7px;
    font-size: 17px;
}

.asala-buy-now-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 70px);
    min-height: 48px;
    margin: 7px 0 0 0;
    margin-inline-start: 70px;
    padding: 8px 14px;
    border-radius: 3px;
    background: linear-gradient(135deg, #e2b45f, #efc978);
    color: #29180f !important;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 900;
}

.asala-buy-now-button:hover,
.asala-product-cart-area button.single_add_to_cart_button:hover {
    filter: brightness(.97);
}

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

.asala-product-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 8px;
    border: 1px solid #eee6df;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.asala-trust-item {
    min-width: 0;
    padding: 10px 8px 9px;
    border-inline-start: 1px solid #eee6df;
    text-align: center;
}

.asala-trust-item:first-child {
    border-inline-start: 0;
}

.asala-trust-icon {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    margin: 0 auto 5px;
    color: #8f4a24;
}

.asala-trust-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.asala-trust-item strong,
.asala-trust-item small {
    display: block;
}

.asala-trust-item strong {
    color: #3a2b25;
    font-size: 12px;
    line-height: 1.4;
}

.asala-trust-item small {
    margin-top: 2px;
    color: #786a62;
    font-size: 10px;
    line-height: 1.35;
}

/* =========================================================
   SHIPPING / BRANCHES
   ========================================================= */

.asala-shipping-reference-row {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(360px, .87fr);
    gap: 22px;
    margin-top: 11px;
    direction: ltr;
}

.asala-carriers-card,
.asala-branches-card {
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #eadfd7;
    border-radius: 5px;
    background: #fff;
    direction: rtl;
}

.asala-reference-card-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: #a71534;
    font-size: 14px;
}

.asala-reference-card-heading > span {
    font-size: 20px;
}

.asala-carrier-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.asala-carrier-logo-card {
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 7px;
    border-radius: 4px;
    background: #f8f8f8;
}

.asala-carrier-logo-card img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 54px;
    object-fit: contain;
}

.asala-carrier-logo-card span {
    margin-top: 3px;
    color: #4f433d;
    font-size: 11px;
    font-weight: 700;
}

.asala-branch-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 7px;
    border: 1px solid #eee3dc;
    border-radius: 3px;
    overflow: hidden;
}

.asala-branch-tabs span {
    padding: 6px 5px;
    background: #fff;
    color: #3c557c;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
}

.asala-branch-tabs span + span {
    border-inline-start: 1px solid #eee3dc;
    color: #a6203a;
}

.asala-available-governorates {
    color: #51463f;
    font-size: 12px;
    line-height: 1.65;
}

.asala-available-governorates strong,
.asala-available-governorates span {
    display: block;
}

.asala-available-governorates strong {
    color: #a6203a;
}

/* =========================================================
   ACCORDIONS
   ========================================================= */

.asala-product-details {
    display: grid;
    gap: 5px;
    margin-top: 13px;
}

.asala-product-detail-box {
    overflow: hidden;
    border: 1px solid #e7ded7;
    border-radius: 4px;
    background: #fff;
}

.asala-product-detail-box summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 47px;
    padding: 9px 14px;
    list-style: none;
    cursor: pointer;
    color: #2e2622;
    font-size: 15px;
    font-weight: 900;
}

.asala-product-detail-box summary::-webkit-details-marker {
    display: none;
}

.asala-product-detail-box summary::after {
    content: "⌄";
    margin-right: auto;
    color: #b00035;
    font-size: 20px;
    line-height: 1;
    transition: transform .2s ease;
}

.asala-product-detail-box[open] summary::after {
    transform: rotate(180deg);
}

.asala-detail-summary-icon {
    color: #9c4a24;
    font-size: 19px;
}

.asala-product-detail-content {
    padding: 2px 16px 15px;
    color: #5f544d;
    font-size: 14px;
    line-height: 1.9;
}

.asala-product-detail-content p:first-child {
    margin-top: 0;
}

.asala-product-detail-content table {
    width: 100%;
    border-collapse: collapse;
}

.asala-product-detail-content th,
.asala-product-detail-content td {
    padding: 9px 7px;
    border-bottom: 1px solid #eee7e1;
    text-align: right;
}

/* =========================================================
   RELATED PRODUCTS - REFERENCE CAROUSEL
   ========================================================= */

.asala-related-products {
    margin-top: 10px;
}

.asala-related-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
}

.asala-related-heading h2 {
    margin: 0;
    color: #2b211d;
    font-size: 21px;
    font-weight: 900;
}

.asala-related-heading > a {
    color: #a51b38;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.asala-related-carousel {
    position: relative;
}

.asala-related-track {
    direction: ltr;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.asala-related-track::-webkit-scrollbar {
    display: none;
}

.asala-related-products .related.products > h2 {
    display: none !important;
}

.asala-related-products .related.products,
.asala-related-products ul.products {
    width: 100% !important;
}

.asala-related-products ul.products {
    direction: rtl;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: max-content !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 1px !important;
    list-style: none !important;
}

.asala-related-products ul.products::before,
.asala-related-products ul.products::after {
    display: none !important;
}

.asala-related-products ul.products li.product {
    flex: 0 0 205px !important;
    width: 205px !important;
    min-width: 205px !important;
    float: none !important;
    margin: 0 !important;
    padding: 7px !important;
    border: 1px solid #eee4dd;
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
}

.asala-related-products .asala-loop-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.asala-related-products .asala-loop-image-wrap {
    position: relative;
}

.asala-related-products .asala-loop-image,
.asala-related-products ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    margin: 0 0 5px !important;
    border-radius: 3px !important;
}

.asala-related-products .asala-loop-badges,
.asala-related-products .asala-loop-description,
.asala-related-products .asala-loop-yemeni-price {
    display: none !important;
}

.asala-related-products .asala-loop-favorite {
    top: 3px !important;
    left: 3px !important;
    width: 25px !important;
    height: 25px !important;
}

.asala-related-products .asala-loop-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0 !important;
    text-align: center;
}

.asala-related-products .asala-loop-title,
.asala-related-products .asala-loop-title a,
.asala-related-products .woocommerce-loop-product__title {
    margin: 1px 0 !important;
    padding: 0 !important;
    color: #2b201b !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

.asala-related-products .asala-loop-price {
    margin-top: auto !important;
    color: #a81536 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

.asala-related-products .asala-loop-regular-price {
    display: none !important;
}

.asala-related-products .asala-loop-actions {
    margin-top: 4px !important;
}

.asala-related-products .asala-loop-add-to-cart,
.asala-related-products ul.products li.product .button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 31px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    border-radius: 2px !important;
    background: #84401e !important;
    color: #fff !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.asala-related-arrow {
    position: absolute;
    top: 45%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #d8d1cb;
    border-radius: 50%;
    background: #fff;
    color: #38404a;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.asala-related-arrow-prev {
    right: -17px;
}

.asala-related-arrow-next {
    left: -17px;
}

/* =========================================================
   SERVICE STRIP
   ========================================================= */

.asala-product-service-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 12px;
    border: 1px solid #e9e2dc;
    border-radius: 5px;
    background: #e9e2dc;
    overflow: hidden;
}

.asala-whatsapp-box,
.asala-customer-service-box {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 78px;
    padding: 10px 14px;
    background: #fff;
    color: #3a2a24;
    text-decoration: none !important;
}

.asala-whatsapp-box {
    gap: 9px;
}

.asala-whatsapp-box b {
    margin-inline-start: auto;
    color: #b3153b;
    font-size: 24px;
}

.asala-whatsapp-icon {
    display: grid;
    place-items: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #11a94b;
    color: #fff;
    font-size: 27px;
}

.asala-customer-service-box {
    justify-content: center;
    gap: 10px;
}

.asala-service-truck {
    font-size: 34px;
}

.asala-product-service-strip strong,
.asala-product-service-strip small {
    display: block;
}

.asala-product-service-strip strong {
    font-size: 15px;
}

.asala-product-service-strip small {
    margin-top: 3px;
    color: #73665e;
    font-size: 11px;
}

/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {
    .asala-product-container {
width: min(100% - 22px, 1050px);
    }

    .asala-product-main,
    .asala-shipping-reference-row {
        grid-template-columns: minmax(0, 1.05fr) minmax(310px, .95fr);
        gap: 15px;
    }

    .asala-product-gallery-shell {
        grid-template-columns: 62px minmax(0, 1fr);
        gap: 8px;
    }

    .asala-product-thumb {
        flex-basis: 62px;
        width: 62px;
        height: 62px;
    }

    .asala-product-title {
        font-size: 30px;
    }

    .asala-product-short-description {
        font-size: 14px;
    }

    .asala-product-price {
        font-size: 34px;
    }

    .asala-related-products ul.products li.product {
        flex-basis: 180px !important;
        width: 180px !important;
        min-width: 180px !important;
    }
}

/* =========================================================
   PHONE - MATCH THE PROVIDED REFERENCE COMPOSITION
   ========================================================= */

@media (max-width: 767px) {
    .asala-product-container {
        width: calc(100% - 14px);
        max-width: 690px;
        padding: 8px 0 22px;
    }

    .asala-product-breadcrumb {
        margin-bottom: 7px;
        font-size: 10px;
        line-height: 1.45;
    }

    .asala-breadcrumb-separator {
        margin: 0 4px;
    }

    .asala-product-main {
        display: grid;
        grid-template-columns: minmax(0, 1.16fr) minmax(145px, .84fr);
        grid-template-areas: "gallery summary";
        gap: 8px;
        align-items: start;
    }

    .asala-product-summary {
        position: static;
    }

    .asala-product-gallery-shell {
        grid-template-columns: 43px minmax(0, 1fr);
        gap: 5px;
    }

    .asala-product-thumbnails {
        gap: 5px;
        max-height: 315px;
    }

    .asala-product-thumb {
        flex: 0 0 43px;
        width: 43px;
        height: 43px;
        border-width: 1px;
        border-radius: 4px;
    }

    .asala-product-main-image {
        border-radius: 3px;
    }

    .asala-product-zoom-button {
        left: 5px;
        bottom: 5px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .asala-product-title {
        margin-bottom: 3px;
        font-size: clamp(18px, 5.7vw, 24px);
        line-height: 1.15;
    }

    .asala-product-sku {
        margin-bottom: 3px;
        font-size: 10px;
        line-height: 1.25;
    }

    .asala-product-rating {
        gap: 4px;
        margin-bottom: 4px;
        font-size: 9px;
    }

    .asala-product-rating .star-rating {
        font-size: .72em;
    }

    .asala-product-short-description {
        display: -webkit-box;
        margin-bottom: 5px;
        overflow: hidden;
        color: #36302c;
        font-size: 10px;
        line-height: 1.45;
        font-weight: 600;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
    }

    .asala-product-price-box {
        gap: 5px;
        margin: 4px 0 2px;
    }

    .asala-price-icon {
        flex-basis: 27px;
        width: 27px;
        height: 27px;
    }

    .asala-product-price {
        font-size: clamp(24px, 7vw, 31px);
    }

    .asala-product-yemeni-price {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.25;
    }

    .asala-stock-status {
        gap: 3px;
        margin: 2px 0 5px;
        font-size: 10px;
    }

    .asala-stock-icon {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .asala-product-cart-area {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 4px;
        margin-top: 1px;
    }

    .asala-quantity-label {
        padding-top: 8px;
        font-size: 10px;
    }

    .asala-product-cart-area form.cart {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 4px;
    }

    .asala-product-cart-area .quantity {
        width: 88px !important;
    }

    .asala-qty-control {
        grid-template-columns: 27px minmax(0, 1fr) 27px;
        height: 35px;
    }

    .asala-qty-control button {
        font-size: 18px;
    }

    .asala-qty-slot input.qty {
        height: 33px !important;
        font-size: 12px !important;
    }

    .asala-product-cart-area button.single_add_to_cart_button {
        min-height: 35px;
        padding: 5px 6px !important;
        font-size: 12px !important;
    }

    .asala-product-cart-area button.single_add_to_cart_button::before {
        margin-inline-end: 3px;
        font-size: 11px;
    }

    .asala-buy-now-button {
        width: calc(100% - 48px);
        min-height: 35px;
        margin-top: 4px;
        margin-inline-start: 48px;
        padding: 5px 6px;
        font-size: 12px;
    }

    .asala-buy-now-icon {
        font-size: 12px;
    }

    .asala-product-trust {
        margin-top: 5px;
        border-radius: 3px;
    }

    .asala-trust-item {
        padding: 6px 2px 5px;
    }

    .asala-trust-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 2px;
    }

    .asala-trust-item strong {
        font-size: 8px;
        line-height: 1.25;
    }

    .asala-trust-item small {
        margin-top: 1px;
        font-size: 7px;
        line-height: 1.2;
    }

    .asala-shipping-reference-row {
        display: grid;
        grid-template-columns: minmax(0, 1.16fr) minmax(145px, .84fr);
        gap: 8px;
        margin-top: 7px;
    }

    .asala-carriers-card,
    .asala-branches-card {
        padding: 7px;
        border-radius: 3px;
    }

    .asala-reference-card-heading {
        gap: 4px;
        margin-bottom: 5px;
        font-size: 9px;
        line-height: 1.3;
    }

    .asala-reference-card-heading > span {
        font-size: 13px;
    }

    .asala-carrier-logos {
        gap: 5px;
    }

    .asala-carrier-logo-card {
        min-height: 59px;
        padding: 3px;
    }

    .asala-carrier-logo-card img {
        height: 38px;
    }

    .asala-carrier-logo-card span {
        margin-top: 1px;
        font-size: 7px;
    }

    .asala-branch-tabs {
        margin-bottom: 4px;
    }

    .asala-branch-tabs span {
        padding: 4px 2px;
        font-size: 8px;
    }

    .asala-available-governorates {
        font-size: 8px;
        line-height: 1.45;
    }

    .asala-product-details {
        gap: 3px;
        margin-top: 7px;
    }

    .asala-product-detail-box {
        border-radius: 3px;
    }

    .asala-product-detail-box summary {
        min-height: 35px;
        gap: 5px;
        padding: 5px 8px;
        font-size: 10px;
    }

    .asala-product-detail-box summary::after {
        font-size: 15px;
    }

    .asala-detail-summary-icon {
        font-size: 12px;
    }

    .asala-product-detail-content {
        padding: 2px 9px 10px;
        font-size: 10px;
        line-height: 1.7;
    }

    .asala-related-products {
        margin-top: 7px;
    }

    .asala-related-heading {
        margin-bottom: 4px;
    }

    .asala-related-heading h2 {
        font-size: 13px;
    }

    .asala-related-heading > a {
        font-size: 8px;
    }

    .asala-related-products ul.products {
        gap: 5px !important;
    }

    .asala-related-products ul.products li.product {
        flex: 0 0 calc((100vw - 43px) / 4) !important;
        width: calc((100vw - 43px) / 4) !important;
        min-width: calc((100vw - 43px) / 4) !important;
        max-width: 150px !important;
        padding: 4px !important;
    }

    .asala-related-products .asala-loop-favorite {
        width: 20px !important;
        height: 20px !important;
    }

    .asala-related-products .asala-loop-title,
    .asala-related-products .asala-loop-title a,
    .asala-related-products .woocommerce-loop-product__title {
        font-size: 8px !important;
        line-height: 1.25 !important;
    }

    .asala-related-products .asala-loop-price {
        font-size: 8px !important;
        line-height: 1.2 !important;
    }

    .asala-related-products .asala-loop-add-to-cart,
    .asala-related-products ul.products li.product .button {
        min-height: 22px !important;
        padding: 3px 2px !important;
        font-size: 7px !important;
    }

    .asala-related-arrow {
        width: 25px;
        height: 25px;
        font-size: 18px;
    }

    .asala-related-arrow-prev {
        right: -10px;
    }

    .asala-related-arrow-next {
        left: -10px;
    }

    .asala-product-service-strip {
        margin-top: 7px;
        border-radius: 3px;
    }

    .asala-whatsapp-box,
    .asala-customer-service-box {
        min-height: 53px;
        padding: 5px 7px;
    }

    .asala-whatsapp-box {
        gap: 5px;
    }

    .asala-whatsapp-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .asala-whatsapp-box b {
        font-size: 15px;
    }

    .asala-service-truck {
        font-size: 22px;
    }

    .asala-product-service-strip strong {
        font-size: 9px;
    }

    .asala-product-service-strip small {
        font-size: 7px;
    }
}

/* =========================================================
   NARROW PHONES
   Keep the same visual identity while avoiding unusable columns.
   ========================================================= */

@media (max-width: 355px) {
    .asala-product-main,
    .asala-shipping-reference-row {
        grid-template-columns: minmax(0, 1.08fr) minmax(132px, .92fr);
        gap: 6px;
    }

    .asala-product-gallery-shell {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 4px;
    }

    .asala-product-thumb {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
    }

    .asala-product-title {
        font-size: 17px;
    }

    .asala-product-short-description {
        font-size: 9px;
        -webkit-line-clamp: 5;
    }

    .asala-product-price {
        font-size: 23px;
    }

    .asala-product-cart-area {
        grid-template-columns: 39px minmax(0, 1fr);
    }

    .asala-product-cart-area form.cart {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .asala-product-cart-area .quantity {
        width: 80px !important;
    }

    .asala-buy-now-button {
        width: calc(100% - 43px);
        margin-inline-start: 43px;
    }

    .asala-trust-item strong {
        font-size: 7px;
    }

    .asala-trust-item small {
        font-size: 6px;
    }
}

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

@media (min-width: 1350px) {
    .asala-product-container {
        width: min(1320px, calc(100% - 50px));
    }

    .asala-product-main,
    .asala-shipping-reference-row {
        grid-template-columns: minmax(0, 1.16fr) minmax(390px, .84fr);
        gap: 28px;
    }

    .asala-product-gallery-shell {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
    }

    .asala-product-thumb {
        flex-basis: 88px;
        width: 88px;
        height: 88px;
    }
}

/* =========================================================
   PATCH-032A — PHONE OVERFLOW / COMPOSITION REPAIR
   Scope: single product page only
   Reason: keep the reference two-column phone composition while
   preventing title/price/cart controls from escaping the summary column.
   ========================================================= */

@media (max-width: 767px) {
    body.single-product,
    body.single-product #page,
    body.single-product #content,
    body.single-product #primary,
    body.single-product .site-main,
    .asala-product-reference,
    .asala-product-container {
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    .asala-product-container {
        width: calc(100% - 12px) !important;
        margin-inline: auto !important;
    }

    /* Keep the same side-by-side composition as the approved reference,
       but remove the hard 145px minimum that could force horizontal overflow. */
    .asala-product-main {
        grid-template-columns: minmax(0, 59%) minmax(0, 41%) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .asala-product-gallery,
    .asala-product-summary,
    .asala-product-gallery-shell,
    .asala-product-main-image,
    .asala-product-summary > *,
    .asala-product-price-box,
    .asala-product-price-box > div,
    .asala-product-cart-area,
    .asala-product-cart-area form.cart {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .asala-product-gallery-shell {
        grid-template-columns: 39px minmax(0, 1fr) !important;
        gap: 4px !important;
    }

    .asala-product-thumbnails {
        gap: 4px !important;
        max-height: 292px !important;
    }

    .asala-product-thumb {
        flex: 0 0 39px !important;
        width: 39px !important;
        height: 39px !important;
    }

    .asala-product-title {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 3px !important;
        font-size: clamp(17px, 5.1vw, 22px) !important;
        line-height: 1.18 !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }

    .asala-product-sku,
    .asala-product-rating,
    .asala-product-short-description,
    .asala-product-yemeni-price,
    .asala-stock-status {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
    }

    .asala-product-short-description {
        font-size: 9.5px !important;
        line-height: 1.42 !important;
        -webkit-line-clamp: 5 !important;
    }

    /* WooCommerce sale-price HTML can have a large min-content width.
       Allow regular/sale prices to wrap safely inside the narrow column. */
    .asala-product-price-box {
        align-items: flex-start !important;
        gap: 3px !important;
    }

    .asala-price-icon {
        flex: 0 0 23px !important;
        width: 23px !important;
        height: 23px !important;
    }

    .asala-product-price {
        width: 100% !important;
        max-width: 100% !important;
        font-size: clamp(21px, 6vw, 28px) !important;
        line-height: 1.05 !important;
        overflow: hidden !important;
    }

    .asala-product-price .price {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: baseline !important;
        gap: 1px 3px !important;
        width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        white-space: normal !important;
    }

    .asala-product-price del,
    .asala-product-price ins,
    .asala-product-price .woocommerce-Price-amount {
        max-width: 100% !important;
        white-space: nowrap !important;
    }

    .asala-product-price del {
        font-size: .48em !important;
    }

    .asala-product-yemeni-price {
        font-size: 10px !important;
        line-height: 1.25 !important;
    }

    /* The old phone grid tried to fit quantity + add-to-cart in one narrow row.
       Stack them inside the summary column so nothing overlaps the gallery. */
    .asala-product-cart-area {
        display: block !important;
        width: 100% !important;
        margin-top: 4px !important;
    }

    .asala-quantity-label {
        display: block !important;
        padding: 0 0 3px !important;
        font-size: 9px !important;
    }

    .asala-product-cart-area form.cart {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 4px !important;
        width: 100% !important;
    }

    .asala-product-cart-area .quantity {
        width: 100% !important;
        max-width: 100% !important;
    }

    .asala-qty-control {
        grid-template-columns: 26px minmax(0, 1fr) 26px !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 34px !important;
    }

    .asala-qty-slot input.qty {
        min-width: 0 !important;
        width: 100% !important;
        height: 32px !important;
        font-size: 11px !important;
    }

    .asala-product-cart-area button.single_add_to_cart_button,
    .asala-buy-now-button {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        min-height: 36px !important;
        margin: 0 !important;
        padding: 5px 4px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
    }

    .asala-buy-now-button {
        margin-top: 4px !important;
    }

    /* Shipping cards keep the same reference layout without hard minimums. */
    .asala-shipping-reference-row {
        grid-template-columns: minmax(0, 59%) minmax(0, 41%) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .asala-carriers-card,
    .asala-branches-card,
    .asala-carrier-logo-card,
    .asala-carrier-logo-card img,
    .asala-available-governorates {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .asala-reference-card-heading {
        overflow-wrap: anywhere !important;
    }

    /* If the catalog does not yet have related products, do not leave
       a heading and navigation arrows floating by themselves. */
    .asala-related-products:not(:has(li.product)) {
        display: none !important;
    }
}

/* Extra safety for very narrow phones. */
@media (max-width: 360px) {
    .asala-product-main,
    .asala-shipping-reference-row {
        grid-template-columns: minmax(0, 60%) minmax(0, 40%) !important;
        gap: 5px !important;
    }

    .asala-product-gallery-shell {
        grid-template-columns: 36px minmax(0, 1fr) !important;
        gap: 3px !important;
    }

    .asala-product-thumb {
        flex-basis: 36px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .asala-product-title {
        font-size: 16px !important;
    }

    .asala-product-price {
        font-size: 20px !important;
    }

    .asala-product-short-description {
        font-size: 9px !important;
        -webkit-line-clamp: 4 !important;
    }
}

/* =========================================================
   PATCH-032B — PRODUCT PAGE VISUAL POLISH
   Scope: breadcrumb + product image fill + detail accordions
   Reason: align mobile product page more closely with reference
   without changing product/cart/shipping business logic.
   ========================================================= */

/* Breadcrumb: explicit Arabic RTL flow and stronger hierarchy. */
.asala-product-breadcrumb,
.asala-breadcrumb-nav {
    direction: rtl !important;
    text-align: right !important;
}

.asala-breadcrumb-nav {
    width: 100% !important;
    justify-content: flex-start !important;
    font-weight: 800 !important;
}

.asala-breadcrumb-nav a,
.asala-breadcrumb-nav .woocommerce-breadcrumb,
.asala-product-breadcrumb {
    font-weight: 800 !important;
}

.asala-breadcrumb-separator {
    font-weight: 900 !important;
}

/* Main image: force the WooCommerce image to fully cover its visual frame.
   This neutralizes generic theme rules such as img { height:auto } that can
   leave the cream-colored strip visible below the product photo. */
.asala-product-main-image {
    position: relative !important;
}

.asala-product-main-image > .asala-main-image-link {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.asala-product-main-image > .asala-main-image-link > img,
.asala-product-main-image > img,
#asala-product-main-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Product detail accordions: right aligned, larger and cleaner. */
.asala-product-detail-box summary {
    direction: rtl !important;
    justify-content: flex-start !important;
    text-align: right !important;
    min-height: 54px !important;
    padding: 12px 16px !important;
    background: linear-gradient(180deg, #fffefd 0%, #fffaf6 100%) !important;
    color: #2d211c !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.asala-product-detail-box summary > span:not(.asala-detail-summary-icon) {
    text-align: right !important;
    font-weight: 900 !important;
}

.asala-detail-summary-icon {
    flex: 0 0 auto !important;
    color: #93461f !important;
    font-size: 20px !important;
}

.asala-product-detail-box summary::after {
    margin-right: 0 !important;
    margin-inline-start: auto !important;
    color: #a90032 !important;
    font-size: 22px !important;
    font-weight: 900 !important;
}

@media (max-width: 767px) {
    .asala-product-breadcrumb {
        margin: 3px 0 10px !important;
        font-size: 12px !important;
        line-height: 1.65 !important;
    }

    .asala-breadcrumb-nav {
        gap: 1px !important;
    }

    .asala-breadcrumb-separator {
        margin: 0 5px !important;
        font-size: 12px !important;
    }

    .asala-product-detail-box {
        border-color: #e2d5cc !important;
        border-radius: 7px !important;
        box-shadow: 0 1px 2px rgba(74, 40, 25, .035) !important;
    }

    .asala-product-detail-box summary {
        min-height: 52px !important;
        padding: 12px 13px !important;
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .asala-detail-summary-icon {
        font-size: 18px !important;
    }

    .asala-product-detail-box summary::after {
        font-size: 20px !important;
    }
}

/* =========================================================
   PATCH-034 — REFERENCE TYPOGRAPHY + NATIVE REVIEWS
   Scope: reference-like typography, details, native WooCommerce
   product reviews, and related products. Checkout/shipping logic unchanged.
   ========================================================= */

/* Keep each shipping card in the column it visually belongs to.
   This removes the large white gap that appeared below the gallery
   while the right-side purchase column was taller. */
.asala-column-card {
    margin-top: 11px !important;
}

.asala-product-gallery > .asala-carriers-card,
.asala-product-summary > .asala-branches-card {
    width: 100% !important;
    max-width: 100% !important;
}

/* Product title and short description - richer reference-like typography. */
.asala-product-title {
    color: #15110f !important;
    font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.asala-product-short-description {
    color: #2e2926 !important;
    font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.85 !important;
}

.asala-product-short-description strong,
.asala-product-short-description b {
    color: #6a321f;
    font-weight: 800 !important;
}

/* Detail boxes: premium headers, real SVG icons, and clear reading rhythm. */
.asala-product-detail-box {
    border-color: #e7d9ce !important;
    border-radius: 9px !important;
    box-shadow: 0 3px 14px rgba(76, 42, 24, .045) !important;
}

.asala-product-detail-box summary {
    gap: 10px !important;
    background: linear-gradient(135deg, #fffdfb 0%, #fff7ef 100%) !important;
    color: #33231d !important;
    font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif !important;
    font-weight: 900 !important;
}

.asala-product-detail-box summary::after {
    content: none !important;
    display: none !important;
}

.asala-detail-summary-icon {
    display: inline-grid !important;
    place-items: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    border: 1px solid #ead4c4 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #944620 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.6) !important;
}

.asala-detail-summary-icon svg {
    width: 19px !important;
    height: 19px !important;
    fill: currentColor !important;
}

.asala-detail-toggle-icon {
    display: inline-grid;
place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin-inline-start: auto;
    border: 1px solid #ead8ca;
    border-radius: 50%;
    background: #fff;
    color: #9f1538;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.asala-detail-toggle-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.asala-product-detail-box[open] .asala-detail-toggle-icon {
    transform: rotate(180deg);
    background: #fff2f4;
    color: #a90032;
}

.asala-product-detail-content {
    padding: 13px 18px 18px !important;
    color: #4f433d !important;
    font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif !important;
    font-size: 16px !important;
    line-height: 2.05 !important;
    font-weight: 500 !important;
    text-align: right !important;
}

.asala-product-detail-content p {
    margin: 0 0 10px;
}

.asala-product-detail-content p:last-child {
    margin-bottom: 0;
}

.asala-product-detail-content strong,
.asala-product-detail-content b {
    color: #5f2c1e;
    font-weight: 800 !important;
}

.asala-product-detail-content table {
    overflow: hidden;
    border: 1px solid #eee3da;
    border-radius: 7px;
    background: #fff;
}

.asala-product-detail-content tr:nth-child(odd) {
    background: #fffdfb;
}

.asala-product-detail-content th {
    color: #4d382e;
    font-weight: 800 !important;
}

.asala-product-detail-content td {
    color: #65574f;
}

/* Related products: no previous/next circular arrows. More products remain
   swipeable/scrollable directly, which is cleaner on touch screens. */
.asala-related-arrow,
.asala-related-arrow-prev,
.asala-related-arrow-next {
    display: none !important;
}

.asala-related-carousel {
    overflow: hidden;
}

.asala-related-track {
    padding: 0 !important;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

.asala-related-heading h2 {
    color: #4a261b !important;
    font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif !important;
}

.asala-related-heading > a {
    color: #a90032 !important;
    font-weight: 900 !important;
}


/* Native WooCommerce reviews / ratings. The data remains WooCommerce-native,
   so moderation and product review settings continue to work from WordPress. */
.asala-product-rating {
    direction: rtl;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 2px 0 9px;
    font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif !important;
}

.asala-product-rating .star-rating,
.asala-product-reviews-stars .star-rating {
    float: none !important;
    margin: 0 !important;
    color: #efa800 !important;
}

.asala-product-rating .star-rating::before,
.asala-product-rating .star-rating span::before,
.asala-product-reviews-stars .star-rating::before,
.asala-product-reviews-stars .star-rating span::before {
    color: #efa800 !important;
}

.asala-product-rating-link {
    color: #514a45 !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
}

.asala-product-rating-link:hover {
    color: #a90032 !important;
}

.asala-empty-rating-stars,
.asala-product-reviews-stars.is-empty {
    color: #d8d1cb;
    letter-spacing: 2px;
    font-size: 17px;
    line-height: 1;
}

.asala-product-reviews {
    margin-top: 12px;
    padding: 18px;
    border: 1px solid #e7ddd5;
    border-radius: 9px;
    background: #fff;
    direction: rtl;
    font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif !important;
}

.asala-product-reviews-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eee5df;
}

.asala-product-reviews-kicker {
    display: block;
    margin-bottom: 2px;
    color: #9b4b20;
    font-size: 12px;
    font-weight: 800;
}

.asala-product-reviews-heading h2 {
    margin: 0;
    color: #171311;
    font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif !important;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 900;
}

.asala-product-reviews-summary {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    justify-items: end;
    gap: 2px 9px;
    min-width: 155px;
}

.asala-product-reviews-summary > strong {
    grid-row: 1 / span 2;
    align-self: center;
    color: #a90032;
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.asala-product-reviews-summary small {
    color: #6c625c;
    font-size: 11px;
    font-weight: 700;
}

.asala-product-native-reviews {
    padding-top: 14px;
}

.asala-product-native-reviews #reviews,
.asala-product-native-reviews .woocommerce-Reviews {
    margin: 0 !important;
    padding: 0 !important;
}

.asala-product-native-reviews .woocommerce-Reviews-title {
    display: none !important;
}

.asala-product-native-reviews #comments {
    margin: 0 0 14px !important;
}

.asala-product-native-reviews ol.commentlist {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.asala-product-native-reviews ol.commentlist li.review,
.asala-product-native-reviews ol.commentlist li.comment {
    margin: 0 0 10px !important;
    padding: 0 !important;
}

.asala-product-native-reviews .comment_container {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 12px;
    border: 1px solid #eee5df;
    border-radius: 8px;
    background: #fffdfb;
}

.asala-product-native-reviews .avatar {
    position: static !important;
    float: none !important;
    width: 48px !important;
    height: 48px !important;
    margin: 0 !important;
    border: 1px solid #e7ddd5 !important;
    border-radius: 50% !important;
}

.asala-product-native-reviews .comment-text {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.asala-product-native-reviews .star-rating {
    float: none !important;
    margin: 0 0 5px !important;
}

.asala-product-native-reviews .meta {
    margin: 0 0 6px !important;
    color: #746962 !important;
    font-size: 12px !important;
}

.asala-product-native-reviews .description,
.asala-product-native-reviews .description p {
    color: #352f2c !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
}

.asala-product-native-reviews #review_form_wrapper {
    margin-top: 14px;
    padding: 15px;
    border: 1px solid #eadfd7;
    border-radius: 8px;
    background: #fffaf6;
}

.asala-product-native-reviews #reply-title {
    display: block;
    margin: 0 0 10px;
    color: #201816;
    font-size: 18px;
    font-weight: 900;
}

.asala-product-native-reviews .comment-form-rating,
.asala-product-native-reviews .comment-form-comment,
.asala-product-native-reviews .comment-form-author,
.asala-product-native-reviews .comment-form-email {
    margin-bottom: 11px !important;
}

.asala-product-native-reviews label {
    display: block;
    margin-bottom: 5px;
    color: #3a302b;
    font-size: 13px;
    font-weight: 800;
}

.asala-product-native-reviews textarea,
.asala-product-native-reviews input[type="text"],
.asala-product-native-reviews input[type="email"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 11px !important;
    border: 1px solid #ded3cb !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #211b18 !important;
    font: inherit !important;
    box-shadow: none !important;
}

.asala-product-native-reviews textarea {
    min-height: 110px;
    resize: vertical;
}

.asala-product-native-reviews .comment-form-rating .stars {
    margin: 0 !important;
}

.asala-product-native-reviews .comment-form-rating .stars a {
    color: #efa800 !important;
}

.asala-product-native-reviews input#submit,
.asala-product-native-reviews .submit {
    min-height: 42px !important;
    padding: 9px 20px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: linear-gradient(135deg, #7a391b, #9b4b20) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    cursor: pointer;
}

.asala-product-reviews-closed {
    margin: 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fff5e9;
    color: #715842;
    font-size: 13px;
}

@media (max-width: 767px) {
    /* Slightly richer typography while preserving the approved compact
       two-column phone composition. */
    .asala-product-title {
        color: #15110f !important;
        font-size: clamp(18px, 5.4vw, 23px) !important;
        line-height: 1.2 !important;
    }

    .asala-product-short-description {
        color: #2e2926 !important;
        font-size: 10.5px !important;
        line-height: 1.58 !important;
        font-weight: 600 !important;
    }

    .asala-column-card {
        margin-top: 7px !important;
    }

    .asala-product-detail-box summary {
        min-height: 56px !important;
        padding: 10px 11px !important;
        font-size: 15.5px !important;
    }

    .asala-detail-summary-icon {
        flex-basis: 32px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
    }

    .asala-detail-summary-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .asala-detail-toggle-icon {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .asala-detail-toggle-icon svg {
        width: 15px;
        height: 15px;
    }

    .asala-product-detail-content {
        padding: 11px 13px 15px !important;
        font-size: 13.5px !important;
        line-height: 1.95 !important;
    }

    .asala-product-detail-content th,
    .asala-product-detail-content td {
        padding: 10px 8px !important;
        font-size: 12.5px !important;
        line-height: 1.65 !important;
    }



    .asala-product-rating {
        gap: 4px;
        margin: 1px 0 5px;
    }

    .asala-product-rating-link {
        font-size: 9px;
    }

    .asala-empty-rating-stars {
        font-size: 12px;
        letter-spacing: 1px;
    }

    .asala-product-reviews {
        margin-top: 8px;
        padding: 12px 10px;
        border-radius: 7px;
    }

    .asala-product-reviews-heading {
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 10px;
    }

    .asala-product-reviews-kicker {
        font-size: 9px;
    }

    .asala-product-reviews-heading h2 {
        font-size: 15px;
    }

    .asala-product-reviews-summary {
        min-width: 118px;
        gap: 1px 5px;
    }

    .asala-product-reviews-summary > strong {
        font-size: 24px;
    }

    .asala-product-reviews-summary small {
        font-size: 8px;
    }

    .asala-product-native-reviews {
        padding-top: 10px;
    }

    .asala-product-native-reviews .comment_container {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 8px;
        padding: 9px;
    }

    .asala-product-native-reviews .avatar {
        width: 36px !important;
        height: 36px !important;
    }

    .asala-product-native-reviews .meta {
        font-size: 9px !important;
    }

    .asala-product-native-reviews .description,
    .asala-product-native-reviews .description p {
        font-size: 11px !important;
        line-height: 1.7 !important;
    }

    .asala-product-native-reviews #review_form_wrapper {
        margin-top: 10px;
        padding: 10px;
    }

    .asala-product-native-reviews #reply-title {
        font-size: 14px;
    }

    .asala-product-native-reviews label {
        font-size: 10px;
    }

    .asala-product-native-reviews textarea,
    .asala-product-native-reviews input[type="text"],
    .asala-product-native-reviews input[type="email"] {
        padding: 8px 9px !important;
        font-size: 11px !important;
    }

    .asala-product-native-reviews textarea {
        min-height: 86px;
    }

    .asala-product-native-reviews input#submit,
    .asala-product-native-reviews .submit {
        width: 100% !important;
        min-height: 38px !important;
        font-size: 12px !important;
    }

}



/* =========================================================
   PATCH-035 — LONG MOBILE DESCRIPTION + READABILITY POLISH
   Scope: product presentation only.
   Root cause fixed: older phone rules used -webkit-line-clamp,
   which intentionally cut the short description and rendered "...".
   This patch makes the description fully visible at every length,
   keeps the hero responsive, and refines the review form visually.
   No cart / checkout / shipping / pricing business logic changed.
   ========================================================= */

/* Never truncate the product short description. It is allowed to grow
   naturally, including when the merchant enters a long description. */
.asala-product-short-description {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

.asala-product-short-description p {
    margin: 0 0 8px !important;
}

.asala-product-short-description p:last-child {
    margin-bottom: 0 !important;
}

/* Keep long text readable instead of visually merging title, rating,
   description and price into one block. */
.asala-product-rating + .asala-product-short-description,
.asala-product-sku + .asala-product-short-description {
    margin-top: 3px !important;
}

.asala-product-short-description + .asala-product-price-box {
    margin-top: 10px !important;
}

/* The native WooCommerce "no reviews" notice should match the product
   palette instead of appearing as an unrelated bright-blue block. */
.asala-product-native-reviews .woocommerce-info,
.asala-product-native-reviews .woocommerce-message,
.asala-product-native-reviews .woocommerce-noreviews {
    margin: 0 0 14px !important;
    padding: 12px 14px !important;
    border: 1px solid #ead8ca !important;
    border-inline-start: 4px solid #9b4b20 !important;
    border-radius: 8px !important;
    background: #fff8f1 !important;
    color: #5d473c !important;
    box-shadow: none !important;
}

.asala-product-native-reviews .woocommerce-info::before,
.asala-product-native-reviews .woocommerce-message::before {
    color: #9b4b20 !important;
}

@media (max-width: 767px) {
    /* Preserve the approved two-column mobile composition but allow the
       information column to become as tall as its content requires. */
    .asala-product-main {
        align-items: start !important;
    }

    .asala-product-summary {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .asala-product-title {
        margin-bottom: 4px !important;
        text-wrap: pretty !important;
    }

    .asala-product-rating {
        flex-wrap: wrap !important;
        row-gap: 2px !important;
        margin-bottom: 6px !important;
    }

    .asala-product-short-description {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        margin-bottom: 7px !important;
        color: #302925 !important;
        font-size: clamp(10.5px, 2.8vw, 12px) !important;
        line-height: 1.78 !important;
        font-weight: 500 !important;
        text-align: right !important;
        -webkit-box-orient: initial !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }

    .asala-product-short-description p {
        margin: 0 0 6px !important;
    }

    /* Keep the review form useful without letting the textarea dominate
       the whole phone screen. It remains vertically resizable. */
    .asala-product-native-reviews textarea {
        height: 120px !important;
        min-height: 120px !important;
        max-height: 320px !important;
        resize: vertical !important;
    }

    .asala-product-native-reviews #review_form_wrapper {
        border-radius: 10px !important;
        background: #fffaf6 !important;
    }
}

@media (max-width: 355px) {
    .asala-product-short-description {
        font-size: 10px !important;
        line-height: 1.72 !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }
}

/* =========================================================
   PATCH-036 — MOBILE GAP + FUNCTIONAL CARRIER TABS
   Scope: product-page presentation + branch-tab UI only.
   No cart / checkout / payment / shipping business logic changes.
   ========================================================= */

/* ---------------------------------------------------------
   Functional carrier tabs
   --------------------------------------------------------- */
.asala-branch-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: hidden !important;
}

.asala-branch-tab {
    min-width: 0 !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 6px 5px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #655a54 !important;
    font-family: inherit !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease !important;
}

.asala-branch-tab + .asala-branch-tab {
    border-inline-start: 1px solid #e9dfd8 !important;
}

.asala-branch-tab[data-asala-carrier-tab="aljawal"].is-active {
    background: #f5f8fc !important;
    color: #31577e !important;
    box-shadow: inset 0 -2px 0 #31577e !important;
}

.asala-branch-tab[data-asala-carrier-tab="almoqtari"].is-active {
    background: #fff5f6 !important;
    color: #a21d3c !important;
    box-shadow: inset 0 -2px 0 #a21d3c !important;
}

.asala-branch-tab:focus-visible {
    outline: 2px solid #c9975d !important;
    outline-offset: -2px !important;
}

.asala-branch-panel[hidden] {
    display: none !important;
}

.asala-branch-panel {
    animation: asalaBranchPanelIn .16s ease both;
}

@keyframes asalaBranchPanelIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------
   Mobile useful filler card
   --------------------------------------------------------- */
.asala-mobile-quick-specs {
    display: none;
}

@media (max-width: 767px) {
    .asala-product-main {
        align-items: stretch !important;
    }

    .asala-product-gallery {
        display: flex !important;
        flex-direction: column !important;
        align-self: stretch !important;
        min-height: 100% !important;
    }

    .asala-mobile-quick-specs {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        justify-content: center !important;
        min-height: 92px !important;
        margin-top: 6px !important;
        padding: 7px !important;
        border: 1px solid #e7ddd6 !important;
        border-radius: 5px !important;
        background: linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%) !important;
        box-shadow: none !important;
        direction: rtl !important;
    }

    .asala-mobile-quick-specs-heading {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        margin-bottom: 6px !important;
        color: #8c3f20 !important;
        text-align: center !important;
    }

    .asala-mobile-quick-specs-heading span {
        font-size: 10px !important;
        line-height: 1 !important;
    }

    .asala-mobile-quick-specs-heading strong {
        font-size: 8px !important;
        line-height: 1.25 !important;
        font-weight: 900 !important;
    }

    .asala-mobile-quick-specs-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }

    .asala-mobile-quick-spec {
        min-width: 0 !important;
        min-height: 38px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 3px !important;
        border: 1px solid #eee4dd !important;
        border-radius: 4px !important;
        background: #fff !important;
        text-align: center !important;
    }

    .asala-mobile-quick-spec small {
        display: block !important;
        margin-bottom: 2px !important;
        color: #8a7b71 !important;
        font-size: 6px !important;
        line-height: 1.2 !important;
        font-weight: 700 !important;
    }

    .asala-mobile-quick-spec strong {
        display: block !important;
        max-width: 100% !important;
        color: #3c2d26 !important;
        font-size: 7px !important;
        line-height: 1.25 !important;
        font-weight: 900 !important;
        overflow-wrap: anywhere !important;
    }

    .asala-branch-tab {
        min-height: 25px !important;
        padding: 3px 2px !important;
        font-size: 7px !important;
    }

    .asala-branch-panels {
        min-height: 35px !important;
    }
}

@media (max-width: 355px) {
    .asala-mobile-quick-specs {
        min-height: 84px !important;
        padding: 5px !important;
    }

    .asala-mobile-quick-specs-grid {
        gap: 3px !important;
    }

    .asala-mobile-quick-spec {
        min-height: 34px !important;
        padding: 3px 2px !important;
    }

    .asala-mobile-quick-spec strong {
        font-size: 6.5px !important;
    }
}


/* =========================================================
   PATCH-037 — FINAL PRODUCT PAGE POLISH
   Scope: compact review UX, mobile quick-info polish,
   carrier tab feedback, and future related-products polish.
   Business logic, cart, checkout, payment, and shipping rules unchanged.
   ========================================================= */

/* ---------------------------------------------------------
   Reviews: keep the summary visible, hide the long form until requested.
   Existing approved reviews remain visible; only the form is collapsed.
   --------------------------------------------------------- */
.asala-review-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
}

.asala-review-toggle-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 9px 18px !important;
    border: 1px solid #d9bfae !important;
    border-radius: 7px !important;
    background: linear-gradient(135deg, #fffaf5 0%, #fff3e7 100%) !important;
    color: #7f351e !important;
    font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(92, 49, 28, .05) !important;
}

.asala-review-toggle-button:hover {
    border-color: #b36d48 !important;
    background: #fff6ee !important;
}

.asala-review-toggle-button:focus-visible {
    outline: 2px solid #c9975d !important;
    outline-offset: 2px !important;
}

.asala-review-toggle-icon {
    color: #e5a400;
    font-size: 15px;
    line-height: 1;
}

.asala-product-reference:not(.is-review-form-open)
.asala-product-native-reviews #review_form_wrapper {
    display: none !important;
}

.asala-product-reference.is-review-form-open
.asala-product-native-reviews #review_form_wrapper {
    display: block !important;
    animation: asalaReviewFormIn .18s ease both;
}

@keyframes asalaReviewFormIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Make the native WooCommerce "no reviews" notice part of the visual language. */
.asala-product-native-reviews .woocommerce-noreviews,
.asala-product-native-reviews .woocommerce-info {
    margin: 0 !important;
    padding: 11px 13px !important;
    border: 1px solid #ead9cc !important;
    border-inline-start: 4px solid #9b4b20 !important;
    border-radius: 7px !important;
    background: #fff9f3 !important;
    color: #584a43 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

/* ---------------------------------------------------------
   Mobile quick information: use the former blank gallery-column space
   without looking like a filler block.
   --------------------------------------------------------- */
@media (max-width: 767px) {
    .asala-mobile-quick-specs {
        min-height: 88px !important;
        justify-content: flex-start !important;
        padding: 7px 7px 8px !important;
        border-color: #eadfd7 !important;
        border-radius: 6px !important;
        background: #fffdfb !important;
    }

    .asala-mobile-quick-specs-heading {
        justify-content: flex-start !important;
        margin-bottom: 5px !important;
        padding-inline: 2px !important;
        color: #8a3c24 !important;
        text-align: right !important;
    }

    .asala-mobile-quick-specs-heading span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 14px !important;
        height: 14px !important;
        border-radius: 50% !important;
        background: #fff1e3 !important;
        color: #a4532c !important;
        font-size: 8px !important;
    }

    .asala-mobile-quick-specs-heading strong {
        font-size: 8.5px !important;
        letter-spacing: 0 !important;
    }

    .asala-mobile-quick-specs-grid {
        gap: 4px !important;
    }

    .asala-mobile-quick-spec {
        min-height: 35px !important;
        padding: 4px 3px !important;
        border-color: #eee5df !important;
        border-radius: 4px !important;
        background: #fff !important;
    }

    .asala-mobile-quick-spec small {
        margin-bottom: 1px !important;
        color: #9a877d !important;
        font-size: 6.5px !important;
    }

    .asala-mobile-quick-spec strong {
        color: #342722 !important;
        font-size: 7.4px !important;
        line-height: 1.3 !important;
    }

    .asala-review-actions {
        margin-top: 9px !important;
    }

    .asala-review-toggle-button {
        width: 100% !important;
        min-height: 40px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    /* When no reviews exist, the section should be compact until the customer
       explicitly asks to write a review. */
    .asala-product-reference:not(.is-review-form-open)
    .asala-product-reviews {
        padding-bottom: 11px !important;
    }
}

/* ---------------------------------------------------------
   Carrier tabs: stronger active feedback and touch target.
   --------------------------------------------------------- */
.asala-branch-tab {
    position: relative !important;
}

.asala-branch-tab.is-active::after {
    content: "";
    position: absolute;
    right: 20%;
    bottom: 0;
    left: 20%;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: .85;
}

/* ---------------------------------------------------------
   Related products: future-ready reference layout.
   The section stays hidden automatically when WooCommerce returns none.
   --------------------------------------------------------- */
.asala-related-products {
    padding-top: 2px;
}

.asala-related-heading {
    border-bottom: 1px solid #eee4dc;
    padding-bottom: 8px;
}

.asala-related-products ul.products li.product {
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease !important;
}

.asala-related-products ul.products li.product:hover {
    transform: translateY(-2px);
    border-color: #ddc9bb !important;
    box-shadow: 0 6px 18px rgba(83, 46, 27, .08) !important;
}

@media (max-width: 767px) {
    .asala-related-heading h2 {
        font-size: 17px !important;
    }

    .asala-related-heading > a {
        font-size: 10px !important;
    }

    .asala-related-products ul.products li.product {
        flex-basis: 132px !important;
        width: 132px !important;
        min-width: 132px !important;
    }
}

/* =========================================================
   PATCH-040C — PRODUCT TITLE + SHORT DESCRIPTION TYPOGRAPHY
   Scope: product-page typography only.
   - Keep one shared visual rule for every product.
   - Improve Arabic readability without external font requests.
   - No cart, price, gallery, shipping, review-data, or SEO logic changes.
   ========================================================= */

.asala-product-title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-size: clamp(30px, 3vw, 40px) !important;
    line-height: 1.32 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    color: #17110f !important;
}

.asala-product-short-description {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.9 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    color: #3b332f !important;
}

@media (max-width: 767px) {
    .asala-product-title {
        font-size: 21px !important;
        line-height: 1.35 !important;
    }

    .asala-product-short-description {
        font-size: 12px !important;
        line-height: 1.8 !important;
    }
}

@media (max-width: 390px) {
    .asala-product-title {
        font-size: 19px !important;
    }

    .asala-product-short-description {
        font-size: 11.5px !important;
        line-height: 1.75 !important;
    }
}

/* =========================================================
   PATCH-040C1 — REMOVE NATIVE REVIEW NOTICE ICON OVERLAY
   Scope: review notices inside the single-product page only.
   WooCommerce/Storefront can inject a ::before notice icon that overlaps
   Arabic no-review text on narrow screens. Keep the notice text/card, but
   remove that decorative pseudo-element.
   ========================================================= */
.asala-product-native-reviews .woocommerce-info::before,
.asala-product-native-reviews .woocommerce-message::before,
.asala-product-native-reviews .woocommerce-noreviews::before {
    content: none !important;
    display: none !important;
}

/* =========================================================
   PATCH-040C2 — MATCH REFERENCE PRODUCT TYPOGRAPHY
   Scope: product title + short description only.
   Reference-match choice: Tahoma/Arial Arabic sans stack already used by
   the theme, avoiding external font requests and preserving performance.
   ========================================================= */
.asala-product-title {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: clamp(28px, 2.7vw, 36px) !important;
    line-height: 1.34 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: #111827 !important;
}

.asala-product-short-description {
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.78 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    color: #2f2a27 !important;
}

@media (max-width: 767px) {
    .asala-product-title {
        font-size: 22px !important;
        line-height: 1.32 !important;
    }

    .asala-product-short-description {
        font-size: 13px !important;
        line-height: 1.72 !important;
    }
}

@media (max-width: 390px) {
    .asala-product-title {
        font-size: 21px !important;
    }

    .asala-product-short-description {
        font-size: 12.5px !important;
        line-height: 1.68 !important;
    }
}

/* =========================================================
   PATCH-040E2 — SMART VARIABLE PRODUCT UI
   Native WooCommerce variations remain the source of truth.
   ========================================================= */

.asala-product-sku.is-empty {
    display: none !important;
}

.asala-product-cart-area.is-variable-product {
    display: block;
    width: 100%;
}

.asala-product-cart-area.is-variable-product > .asala-quantity-label {
    padding: 0 0 7px;
    color: #443832;
    font-size: 14px;
    font-weight: 800;
}

.asala-product-cart-area form.variations_form.cart {
    display: block !important;
    width: 100%;
    margin: 0 !important;
}

.asala-product-cart-area .variations {
    display: block;
    width: 100%;
    margin: 0 0 8px !important;
    border: 0 !important;
}

.asala-product-cart-area .variations tbody,
.asala-product-cart-area .variations tr,
.asala-product-cart-area .variations th,
.asala-product-cart-area .variations td {
    display: block;
    width: 100%;
}

.asala-product-cart-area .variations tr {
    margin: 0 0 10px;
}

.asala-product-cart-area .variations th.label {
    padding: 0 0 5px !important;
    border: 0 !important;
    color: #352a25;
    text-align: right !important;
    font-size: 13px;
    font-weight: 800;
}

.asala-product-cart-area .variations td.value {
    position: relative;
    padding: 0 !important;
    border: 0 !important;
}

.asala-product-cart-area .variations select {
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
    padding: 8px 12px;
    border: 1px solid #dfd2c8;
    border-radius: 6px;
    background: #fff;
    color: #2a211d;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

/* Hide only selectors that have a working chip replacement. */
.asala-variation-ui-ready .asala-product-cart-area .variations select.asala-variation-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.asala-variation-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
}

.asala-variation-chip {
    min-width: 68px;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid #ddcfc5;
    border-radius: 999px;
    background: #fff;
    color: #3c2d27;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.asala-variation-chip:hover:not(:disabled) {
    border-color: #9b4b20;
    color: #7a391b;
}

.asala-variation-chip.is-selected {
    border-color: #7a391b;
    background: #7a391b;
    color: #fff;
    box-shadow: 0 3px 10px rgba(122, 57, 27, .14);
}

.asala-variation-chip.is-disabled,
.asala-variation-chip:disabled {
    border-color: #e9e3df;
    background: #f7f4f2;
    color: #aaa09b;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: .72;
}

.asala-product-cart-area .reset_variations {
    display: inline-block;
    margin-top: 6px;
    color: #806c61;
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.asala-product-cart-area .single_variation_wrap {
    width: 100%;
    margin-top: 4px;
}

/* Price and availability are synchronized into the approved summary blocks above. */
.asala-product-cart-area .single_variation .woocommerce-variation-price,
.asala-product-cart-area .single_variation .woocommerce-variation-availability {
    display: none !important;
}

.asala-product-cart-area .woocommerce-variation-add-to-cart.variations_button {
    display: grid !important;
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
    width: 100%;
    margin-top: 7px;
}

.asala-product-cart-area .woocommerce-variation-add-to-cart.variations_button .quantity {
    width: 126px !important;
    margin: 0 !important;
}

.asala-product-cart-area .woocommerce-variation-add-to-cart.variations_button button.single_add_to_cart_button {
    min-width: 0;
}

@media (max-width: 767px) {
    .asala-product-cart-area.is-variable-product > .asala-quantity-label {
        padding-bottom: 4px !important;
        font-size: 10px !important;
    }

    .asala-product-cart-area .variations tr {
        margin-bottom: 7px;
    }

    .asala-product-cart-area .variations th.label {
        padding-bottom: 4px !important;
        font-size: 10px !important;
    }

    .asala-variation-chips {
        gap: 5px;
    }

    .asala-variation-chip {
        min-width: 54px;
        min-height: 32px;
        padding: 5px 9px;
        font-size: 10px;
    }

    .asala-product-cart-area .variations select {
        min-height: 36px;
        padding: 6px 9px;
        font-size: 10px;
    }

    .asala-product-cart-area .woocommerce-variation-add-to-cart.variations_button {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 4px !important;
        margin-top: 5px;
    }

    .asala-product-cart-area .woocommerce-variation-add-to-cart.variations_button .quantity {
        width: 100% !important;
        max-width: 100% !important;
    }

    .asala-product-cart-area .reset_variations {
        margin-top: 4px;
        font-size: 9px;
    }
}


/* =========================================================
   PATCH-040E2F — RELATED PRODUCTS REFERENCE CARD FIX
   Source of truth: current uploaded theme + approved reference screenshot.
   Goals:
   - Four compact related-product cards across the section.
   - Real white circular wishlist heart instead of the black placeholder.
   - Keep the small Add to Cart / Buy Now actions; never render raw giant SVGs.
   - Remove the oversized lightning presentation only; the Buy Now action stays.
   ========================================================= */

.asala-related-products {
    --asala-related-brown: #8d431f;
    --asala-related-red: #a90036;
    --asala-related-gold: #e6bd62;
    --asala-related-text: #2b211d;
    overflow: hidden;
}

.asala-related-products .asala-related-track {
    direction: rtl !important;
    width: 100% !important;
    overflow: visible !important;
}

.asala-related-products .related.products {
    width: 100% !important;
    margin: 0 !important;
}

.asala-related-products ul.products {
    direction: rtl !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.asala-related-products ul.products li.product,
.asala-related-products ul.products li.product.asala-loop-product-item {
    display: flex !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 5px !important;
    border: 1px solid #eee4dd !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.asala-related-products .asala-loop-card {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    height: 100% !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.asala-related-products .asala-loop-image-wrap {
    position: relative !important;
    min-width: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
}

.asala-related-products .asala-loop-image-link {
    display: block !important;
    width: 100% !important;
}

.asala-related-products .asala-loop-image,
.asala-related-products ul.products li.product img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1.08 !important;
    margin: 0 0 5px !important;
    padding: 2px !important;
    border-radius: 2px !important;
    object-fit: contain !important;
    background: #fff !important;
}

/* Reference card keeps the face clean: no badge, description, rating or stock line. */
.asala-related-products .asala-loop-badges,
.asala-related-products .asala-loop-description,
.asala-related-products .asala-loop-rating,
.asala-related-products .asala-loop-stock {
    display: none !important;
}

/* Real wishlist heart — fixes the black rectangle from the unstyled button. */
.asala-related-products .asala-loop-favorite {
    position: absolute !important;
    top: 5px !important;
    left: 5px !important;
    z-index: 5 !important;
    display: grid !important;
    place-items: center !important;
    width: 27px !important;
    min-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e7ddd6 !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #3a302b !important;
    box-shadow: 0 1px 5px rgba(55, 29, 17, .08) !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.asala-related-products .asala-loop-favorite:hover,
.asala-related-products .asala-loop-favorite:focus-visible,
.asala-related-products .asala-loop-favorite.is-active {
    border-color: #dba9b7 !important;
    background: #fff !important;
    color: var(--asala-related-red) !important;
}

.asala-related-products .asala-loop-favorite svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    margin: 0 !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

.asala-related-products .asala-loop-favorite.is-active svg {
    fill: currentColor !important;
}

.asala-related-products .asala-loop-favorite.is-loading {
    opacity: .55 !important;
    pointer-events: none !important;
}

.asala-related-products .asala-loop-content {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: center !important;
}

.asala-related-products .asala-loop-title,
.asala-related-products .asala-loop-title a,
.asala-related-products .woocommerce-loop-product__title {
    min-height: 0 !important;
    margin: 1px 0 3px !important;
    padding: 0 !important;
    overflow: visible !important;
    color: var(--asala-related-text) !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-align: center !important;
    text-decoration: none !important;
    -webkit-line-clamp: 2 !important;
}

.asala-related-products .asala-loop-price {
    display: flex !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: auto 0 0 !important;
    color: var(--asala-related-red) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
}

.asala-related-products .asala-loop-current-price {
    color: var(--asala-related-red) !important;
    font-size: inherit !important;
    font-weight: 900 !important;
}

.asala-related-products .asala-loop-regular-price {
    display: none !important;
}

/* Reference shows the secondary YER amount under the SAR price. */
.asala-related-products .asala-loop-yemeni-price {
    display: block !important;
    min-height: 13px !important;
    margin-top: 1px !important;
    color: #b0003c !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: center !important;
}

/* Keep both small actions. Never allow their SVGs to inherit raw browser size. */
.asala-related-products .asala-loop-actions,
.asala-related-products .asala-loop-actions.has-buy-now {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 3px !important;
    width: 100% !important;
    margin: 4px 0 0 !important;
    padding: 0 !important;
}

.asala-related-products .asala-loop-add-to-cart,
.asala-related-products .asala-loop-buy-now,
.asala-related-products ul.products li.product .button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 29px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 4px 4px !important;
    border-radius: 3px !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 8.5px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: normal !important;
    overflow: hidden !important;
}

.asala-related-products .asala-loop-add-to-cart,
.asala-related-products ul.products li.product .button {
    border: 0 !important;
    background: var(--asala-related-brown) !important;
    color: #fff !important;
}

.asala-related-products .asala-loop-buy-now {
    border: 1px solid #e2bb62 !important;
    background: linear-gradient(135deg, #f3d583, #e8bc58) !important;
    color: #3b2516 !important;
}

/* Keep the reference's small cart glyph, but remove the lightning glyph itself. */
.asala-related-products .asala-loop-add-to-cart svg {
    display: block !important;
    flex: 0 0 11px !important;
    width: 11px !important;
    height: 11px !important;
    max-width: 11px !important;
    max-height: 11px !important;
    margin: 0 !important;
    fill: currentColor !important;
}

.asala-related-products .asala-loop-buy-now svg {
    display: none !important;
}

.asala-related-products .asala-loop-actions .added_to_cart {
    grid-column: 1 / -1 !important;
    margin: 2px 0 0 !important;
    font-size: 8px !important;
}

@media (max-width: 767px) {
    .asala-related-products ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    .asala-related-products ul.products li.product,
    .asala-related-products ul.products li.product.asala-loop-product-item {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 3px !important;
    }

    .asala-related-products .asala-loop-favorite {
        top: 3px !important;
        left: 3px !important;
        width: 21px !important;
        min-width: 21px !important;
        height: 21px !important;
        min-height: 21px !important;
    }

    .asala-related-products .asala-loop-favorite svg {
        width: 14px !important;
        height: 14px !important;
        max-width: 14px !important;
        max-height: 14px !important;
    }

    .asala-related-products .asala-loop-title,
    .asala-related-products .asala-loop-title a,
    .asala-related-products .woocommerce-loop-product__title {
        margin-bottom: 2px !important;
        font-size: 8.5px !important;
        line-height: 1.3 !important;
    }

    .asala-related-products .asala-loop-price,
    .asala-related-products .asala-loop-current-price {
        font-size: 8.5px !important;
    }

    .asala-related-products .asala-loop-yemeni-price {
        min-height: 10px !important;
        font-size: 6.8px !important;
    }

    .asala-related-products .asala-loop-actions,
    .asala-related-products .asala-loop-actions.has-buy-now {
        grid-template-columns: 1fr !important;
        gap: 2px !important;
        margin-top: 3px !important;
    }

    .asala-related-products .asala-loop-add-to-cart,
    .asala-related-products .asala-loop-buy-now,
    .asala-related-products ul.products li.product .button {
        min-height: 22px !important;
        padding: 3px 2px !important;
        font-size: 6.8px !important;
    }

    .asala-related-products .asala-loop-add-to-cart svg {
        width: 9px !important;
        height: 9px !important;
        max-width: 9px !important;
        max-height: 9px !important;
        flex-basis: 9px !important;
    }
}

/* =========================================================
   PATCH-042E — VARIATION RELIABILITY + ARABIC DESCRIPTION DIRECTION
   - Keep Arabic short descriptions RTL regardless of product type.
   - Variation creation itself is handled in functions.php; this block is
     presentation-only and does not alter cart/price/inventory logic.
   ========================================================= */
.asala-product-summary .asala-product-short-description,
.asala-product-summary .asala-product-short-description p,
.asala-product-summary .asala-product-short-description div,
.asala-product-summary .asala-product-short-description span,
.asala-product-summary .asala-product-short-description strong,
.asala-product-summary .asala-product-short-description b {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: plaintext;
}
\n\n/* =========================================================\n   PATCH-042E2 — VARIABLE PRODUCT COMPOSITION REPAIR\n   Keep the approved two-column phone design while making the\n   variation selector compact enough that it cannot distort it.\n   ========================================================= */\n@media (max-width: 767px) {\n    body.single-product .product-type-variable .asala-product-main {\n        grid-template-columns: minmax(0, 56%) minmax(0, 44%) !important;\n        gap: 6px !important;\n    }\n\n    .asala-product-cart-area.is-variable-product {\n        margin-top: 3px !important;\n        padding-top: 2px !important;\n    }\n\n    .asala-product-cart-area.is-variable-product > .asala-quantity-label {\n        padding: 0 0 3px !important;\n        font-size: 9px !important;\n        line-height: 1.25 !important;\n        color: #6a554a !important;\n    }\n\n    .asala-product-cart-area.is-variable-product .variations {\n        margin: 0 0 3px !important;\n    }\n\n    .asala-product-cart-area.is-variable-product .variations tr {\n        display: grid !important;\n        grid-template-columns: auto minmax(0, 1fr) !important;\n        gap: 4px !important;\n        align-items: center !important;\n        margin: 0 0 4px !important;\n    }\n\n    .asala-product-cart-area.is-variable-product .variations th.label {\n        width: auto !important;\n        padding: 0 !important;\n        font-size: 8.5px !important;\n        line-height: 1.2 !important;\n        white-space: nowrap !important;\n    }\n\n    .asala-product-cart-area.is-variable-product .variations td.value {\n        width: auto !important;\n        min-width: 0 !important;\n    }\n\n    .asala-product-cart-area.is-variable-product .asala-variation-chips {\n        display: grid !important;\n        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;\n        gap: 3px !important;\n        width: 100% !important;\n        direction: rtl !important;\n    }\n\n    .asala-product-cart-area.is-variable-product .asala-variation-chip {\n        width: 100% !important;\n        min-width: 0 !important;\n        min-height: 27px !important;\n        padding: 3px 4px !important;\n        border-radius: 999px !important;\n        font-size: 9px !important;\n        line-height: 1.15 !important;\n        white-space: nowrap !important;\n        overflow: hidden !important;\n        text-overflow: ellipsis !important;\n    }\n\n    .asala-product-cart-area.is-variable-product .reset_variations {\n        margin-top: 2px !important;\n        font-size: 8px !important;\n        line-height: 1.15 !important;\n    }\n\n    .asala-product-cart-area.is-variable-product .woocommerce-variation-add-to-cart.variations_button {\n        gap: 3px !important;\n        margin-top: 3px !important;\n    }\n}\n
/* =========================================================
   PATCH-042F — PREMIUM PRODUCT PURCHASE COMPOSITION
   Visual refinement only. WooCommerce remains the source of truth
   for price, stock, variations, quantity and cart behavior.
   ========================================================= */

/* Give the information column a composed, premium hierarchy without
   changing the approved gallery/summary grid. */
@media (min-width: 768px) {
    .asala-product-summary {
        padding: 18px 18px 16px;
        border: 1px solid #efe4db;
        border-radius: 14px;
        background:
            linear-gradient(180deg, rgba(255,250,246,.96), rgba(255,255,255,.98));
        box-shadow: 0 10px 30px rgba(78, 42, 24, .055);
    }
}

.asala-product-title {
    letter-spacing: -.015em;
    text-wrap: balance;
}

.asala-product-short-description {
    max-width: 62ch;
    color: #4f443d;
}

/* Price, availability and purchasing now read as one intentional module. */
.asala-purchase-panel {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #eadfd6;
    border-radius: 12px;
    background:
        radial-gradient(circle at 92% 0%, rgba(215,161,77,.11), transparent 34%),
        linear-gradient(180deg, #fffdfa 0%, #fff9f4 100%);
    box-shadow: 0 7px 22px rgba(91, 48, 28, .055);
}

.asala-purchase-panel .asala-product-price-box {
    margin: 0 0 6px;
}

.asala-purchase-panel .asala-price-copy {
    min-width: 0;
}

.asala-purchase-panel .asala-price-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    margin-top: 1px;
}

.asala-purchase-panel .asala-product-price {
    font-size: clamp(30px, 3vw, 43px);
}

.asala-purchase-panel .asala-product-yemeni-price {
    margin-top: 4px;
    color: #8d3c28;
    font-size: 15px;
}

.asala-purchase-panel .asala-stock-status {
    width: fit-content;
    margin: 4px 0 11px;
    padding: 5px 9px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.25;
}

.asala-purchase-panel .asala-stock-status.is-in-stock {
    background: rgba(25,148,81,.055) !important;
}

.asala-purchase-panel .asala-stock-status.is-out-of-stock {
    background: rgba(173,40,59,.055) !important;
}

.asala-purchase-panel .asala-product-cart-area {
    margin-top: 2px;
}

/* Variation pills should feel like selectable product options rather than
   generic WooCommerce controls. */
.asala-purchase-panel .asala-variation-chips {
    gap: 8px;
}

.asala-purchase-panel .asala-variation-chip {
    min-width: 76px;
    border-color: #d9c8bb;
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 7px rgba(72,38,23,.035);
}

.asala-purchase-panel .asala-variation-chip.is-selected {
    border-color: #7a391b;
    background: linear-gradient(135deg, #6d3018, #97461f);
    box-shadow: 0 5px 15px rgba(122,57,27,.16);
}

/* Keep both purchase actions. Buy Now is intentionally preserved and is
   available for variable products after a valid variation is selected. */
.asala-purchase-panel .asala-buy-now-button {
    width: 100%;
    margin: 8px 0 0;
    min-height: 48px;
    border: 1px solid rgba(165,112,35,.24);
    border-radius: 7px;
    background: linear-gradient(135deg, #f0c96f, #e2ad4f);
    box-shadow: 0 5px 14px rgba(179,126,43,.13);
}

.asala-purchase-panel .asala-product-cart-area button.single_add_to_cart_button {
    border-radius: 7px !important;
    box-shadow: 0 5px 14px rgba(122,57,27,.13);
}

.asala-buy-now-button.is-variable-buy-now.is-disabled,
.asala-buy-now-button[aria-disabled="true"] {
    opacity: .52;
    cursor: not-allowed;
    filter: grayscale(.12);
    box-shadow: none;
}

/* Subordinate operational cards so the actual purchase decision remains
   the strongest visual element in the information column. */
.asala-product-summary .asala-branches-card {
    margin-top: 11px;
    background: #fff;
    box-shadow: none;
}

.asala-product-gallery .asala-product-trust,
.asala-product-gallery .asala-carriers-card {
    box-shadow: 0 5px 17px rgba(67,38,25,.035);
}

@media (max-width: 767px) {
    /* Preserve PATCH-042E2's approved two-column phone composition. */
    .asala-purchase-panel {
        margin-top: 5px;
        padding: 7px 6px 6px;
        border-radius: 8px;
        box-shadow: none;
    }

    .asala-purchase-panel .asala-product-price-box {
        gap: 4px !important;
        margin-bottom: 3px !important;
    }

    .asala-purchase-panel .asala-price-icon {
        flex-basis: 20px !important;
        width: 20px !important;
        height: 20px !important;
    }

    .asala-purchase-panel .asala-product-price {
        font-size: clamp(20px, 5.8vw, 26px) !important;
    }

    .asala-purchase-panel .asala-product-yemeni-price {
        margin-top: 2px !important;
        font-size: 8.8px !important;
        line-height: 1.25 !important;
    }

    .asala-purchase-panel .asala-stock-status {
        margin: 3px 0 5px !important;
        padding: 3px 6px !important;
        gap: 4px !important;
        font-size: 8.5px !important;
        white-space: nowrap !important;
    }

    .asala-purchase-panel .asala-stock-icon {
        width: 13px !important;
        height: 13px !important;
        font-size: 8px !important;
    }

    .asala-purchase-panel .asala-variation-chips {
        gap: 3px !important;
    }

    .asala-purchase-panel .asala-variation-chip {
        min-width: 0 !important;
        min-height: 26px !important;
        padding: 3px 4px !important;
        font-size: 8.7px !important;
        box-shadow: none !important;
    }

    .asala-purchase-panel .asala-product-cart-area button.single_add_to_cart_button,
    .asala-purchase-panel .asala-buy-now-button {
        min-height: 34px !important;
        border-radius: 5px !important;
        padding: 5px 4px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    .asala-purchase-panel .asala-buy-now-button {
        margin-top: 4px !important;
    }

    /* In the tight phone column, the purchase card should not create a
       second visual wall; keep its background quiet and compact. */
    .asala-product-summary .asala-branches-card {
        margin-top: 6px !important;
    }
}


/* =========================================================
   PATCH-042F1 — VISIBLE PREMIUM PURCHASE PANEL
   Strong visual pass after the first refinement proved too subtle on the
   live phone/desktop composition. Presentation only; no commerce logic.
   ========================================================= */
body.single-product .asala-purchase-panel {
    position: relative !important;
    overflow: hidden !important;
    margin-top: 12px !important;
    padding: 15px !important;
    border: 1px solid #d9c2b2 !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, #fffdfb 0%, #fff6ee 100%) !important;
    box-shadow: 0 12px 34px rgba(92, 47, 25, .10) !important;
}

body.single-product .asala-purchase-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #5b2413 0%, #a45225 52%, #d6a64c 100%);
}

body.single-product .asala-purchase-panel-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin: 0 0 11px !important;
    padding: 0 0 10px !important;
    border-bottom: 1px solid rgba(132, 83, 53, .13) !important;
    direction: rtl !important;
    text-align: right !important;
}

body.single-product .asala-purchase-panel-heading > div {
    min-width: 0 !important;
}

body.single-product .asala-purchase-panel-heading strong {
    display: block !important;
    color: #2e1b13 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.35 !important;
}

body.single-product .asala-purchase-panel-heading small {
    display: block !important;
    margin-top: 2px !important;
    color: #806b60 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
}

body.single-product .asala-purchase-panel-badge {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #f2dfc8 !important;
    color: #8a3e1d !important;
    font-size: 16px !important;
}

body.single-product .asala-purchase-panel .asala-product-price-box {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 0 8px !important;
    padding: 10px 11px !important;
    border: 1px solid #eee0d5 !important;
    border-radius: 12px !important;
    background: #fff !important;
}

body.single-product .asala-purchase-panel .asala-price-icon {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    color: #9d4c24 !important;
}

body.single-product .asala-purchase-panel .asala-product-price {
    color: #ad163c !important;
    font-size: clamp(30px, 3vw, 42px) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
}

body.single-product .asala-purchase-panel .asala-product-yemeni-price {
    margin-top: 5px !important;
    color: #8f3f28 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

body.single-product .asala-purchase-panel .asala-stock-status {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    margin: 2px 0 10px !important;
    padding: 6px 10px !important;
    border: 1px solid currentColor !important;
    border-radius: 999px !important;
    font-size: 12px !important;
}

body.single-product .asala-purchase-panel .asala-product-cart-area {
    margin-top: 4px !important;
    padding-top: 9px !important;
    border-top: 1px dashed rgba(132, 83, 53, .18) !important;
}

body.single-product .asala-purchase-panel .asala-variation-chip {
    border: 1px solid #d6c1b1 !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: #3b2a21 !important;
    font-weight: 900 !important;
}

body.single-product .asala-purchase-panel .asala-variation-chip.is-selected {
    border-color: #7a3519 !important;
    background: linear-gradient(135deg, #6b2c15, #9f4b21) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(111, 47, 21, .18) !important;
}

body.single-product .asala-purchase-panel .single_add_to_cart_button {
    border: 0 !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #8e3f1c, #a95624) !important;
    color: #fff !important;
    font-weight: 900 !important;
    box-shadow: 0 7px 18px rgba(124, 54, 24, .16) !important;
}

body.single-product .asala-purchase-panel .asala-buy-now-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    margin-top: 8px !important;
    border: 1px solid rgba(179, 126, 43, .24) !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #f3cf79, #dfa63c) !important;
    color: #382012 !important;
    font-weight: 900 !important;
    box-shadow: 0 7px 18px rgba(185, 127, 38, .16) !important;
}

@media (max-width: 767px) {
    body.single-product .asala-purchase-panel {
        margin-top: 6px !important;
        padding: 8px !important;
        border-radius: 10px !important;
        box-shadow: 0 6px 18px rgba(92, 47, 25, .08) !important;
    }

    body.single-product .asala-purchase-panel::before {
        height: 3px !important;
    }

    body.single-product .asala-purchase-panel-heading {
        margin-bottom: 6px !important;
        padding-bottom: 6px !important;
        gap: 5px !important;
    }

    body.single-product .asala-purchase-panel-heading strong {
        font-size: 11px !important;
    }

    body.single-product .asala-purchase-panel-heading small {
        display: none !important;
    }

    body.single-product .asala-purchase-panel-badge {
        flex-basis: 22px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 10px !important;
    }

    body.single-product .asala-purchase-panel .asala-product-price-box {
        gap: 5px !important;
        margin-bottom: 5px !important;
        padding: 6px !important;
        border-radius: 7px !important;
    }

    body.single-product .asala-purchase-panel .asala-price-icon {
        flex-basis: 20px !important;
        width: 20px !important;
        height: 20px !important;
    }

    body.single-product .asala-purchase-panel .asala-product-price {
        font-size: clamp(20px, 5.6vw, 25px) !important;
    }

    body.single-product .asala-purchase-panel .asala-product-yemeni-price {
        font-size: 8.8px !important;
        line-height: 1.25 !important;
    }

    body.single-product .asala-purchase-panel .asala-stock-status {
        margin: 1px 0 5px !important;
        padding: 3px 6px !important;
        font-size: 8.5px !important;
        white-space: nowrap !important;
    }

    body.single-product .asala-purchase-panel .asala-product-cart-area {
        margin-top: 2px !important;
        padding-top: 5px !important;
    }

    body.single-product .asala-purchase-panel .asala-variation-chips {
        gap: 4px !important;
    }

    body.single-product .asala-purchase-panel .asala-variation-chip {
        min-height: 27px !important;
        padding: 3px 4px !important;
        border-radius: 6px !important;
        font-size: 8.5px !important;
    }

    body.single-product .asala-purchase-panel .single_add_to_cart_button,
    body.single-product .asala-purchase-panel .asala-buy-now-button {
        min-height: 35px !important;
        border-radius: 6px !important;
        padding: 5px 4px !important;
        font-size: 9.5px !important;
    }

    body.single-product .asala-purchase-panel .asala-buy-now-button {
        margin-top: 5px !important;
    }
}

/* =========================================================
   PATCH-042G — REFERENCE-BASED PRODUCT PAGE REDESIGN
   Presentation-only redesign based on the user-approved reference.
   Keeps WooCommerce price/stock/variation/cart logic and Buy Now intact.
   ========================================================= */

/* Main composition: large gallery + clean purchase summary, without card walls. */
body.single-product .asala-product-reference .asala-product-main {
    grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr) !important;
    gap: 18px !important;
    align-items: start !important;
}

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

body.single-product .asala-product-reference .asala-product-summary {
    position: relative !important;
    top: auto !important;
    padding: 2px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Gallery closer to the approved reference: clean white stage and full image. */
body.single-product .asala-product-reference .asala-product-gallery-shell {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    gap: 9px !important;
    align-items: start !important;
}

body.single-product .asala-product-reference .asala-product-main-image {
    border-color: #e7ddd6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

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 {
    object-fit: contain !important;
    object-position: center !important;
    background: #fff !important;
}

body.single-product .asala-product-reference .asala-product-thumb {
    width: 72px !important;
    height: 72px !important;
    flex-basis: 72px !important;
    border-width: 1px !important;
    border-color: #ded6d0 !important;
    border-radius: 7px !important;
    background: #fff !important;
}

body.single-product .asala-product-reference .asala-product-thumb.is-active {
    border: 2px solid #a90032 !important;
    box-shadow: 0 0 0 1px rgba(169, 0, 50, .08) !important;
}

body.single-product .asala-product-reference .asala-product-thumb img {
    object-fit: contain !important;
    background: #fff !important;
}

/* Product heading + real wishlist heart. */
body.single-product .asala-product-reference .asala-product-heading-row {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 10px !important;
    direction: rtl !important;
}

body.single-product .asala-product-reference .asala-product-title {
    flex: 1 1 auto !important;
    margin: 0 0 5px !important;
    color: #15110f !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: clamp(27px, 2.45vw, 38px) !important;
    font-weight: 900 !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
    text-align: right !important;
}

body.single-product .asala-product-reference .asala-single-favorite {
    position: static !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e5ddd8 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #29313d !important;
    box-shadow: 0 3px 12px rgba(58, 34, 23, .06) !important;
    cursor: pointer !important;
}

body.single-product .asala-product-reference .asala-single-favorite svg {
    width: 23px !important;
    height: 23px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
}

body.single-product .asala-product-reference .asala-single-favorite.is-active {
    border-color: rgba(169, 0, 50, .24) !important;
    color: #a90032 !important;
    background: #fff7f9 !important;
}

body.single-product .asala-product-reference .asala-single-favorite.is-active svg {
    fill: currentColor !important;
}

body.single-product .asala-product-reference .asala-product-sku {
    margin: 0 0 6px !important;
    color: #4f5964 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.single-product .asala-product-reference .asala-product-rating {
    margin: 0 0 9px !important;
    gap: 7px !important;
}

body.single-product .asala-product-reference .asala-empty-rating-stars {
    color: #ded6d0 !important;
    letter-spacing: 1px !important;
}

body.single-product .asala-product-reference .asala-product-short-description,
body.single-product .asala-product-reference .asala-product-short-description p {
    margin: 0 !important;
    color: #2f2926 !important;
    font-family: Tahoma, Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.9 !important;
    direction: rtl !important;
    text-align: right !important;
}

/* Remove the heavy F/F1 card treatment. Price/options should feel native to the summary. */
body.single-product .asala-product-reference .asala-purchase-panel {
    position: relative !important;
    overflow: visible !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !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;
    content: none !important;
}

body.single-product .asala-product-reference .asala-purchase-panel .asala-product-price-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .asala-product-reference .asala-purchase-panel .asala-price-icon {
    flex: 0 0 34px !important;
    width: 34px !important;
    height: 34px !important;
    color: #a2542b !important;
}

body.single-product .asala-product-reference .asala-purchase-panel .asala-product-price {
    color: #aa1239 !important;
    font-size: clamp(32px, 3.3vw, 46px) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
}

body.single-product .asala-product-reference .asala-purchase-panel .asala-product-price del {
    color: #9c948e !important;
    font-size: .52em !important;
    font-weight: 700 !important;
    opacity: .72 !important;
}

body.single-product .asala-product-reference .asala-purchase-panel .asala-product-yemeni-price {
    margin-top: 4px !important;
    color: #a11f3d !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
}

body.single-product .asala-product-reference .asala-purchase-panel .asala-stock-status {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    margin: 3px 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #15914d !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

body.single-product .asala-product-reference .asala-purchase-panel .asala-stock-status.is-out-of-stock {
    color: #ad283b !important;
}

body.single-product .asala-product-reference .asala-purchase-panel .asala-stock-icon {
    width: 20px !important;
    height: 20px !important;
    font-size: 11px !important;
}

/* Variations: clear, compact chips immediately above quantity/actions. */
body.single-product .asala-product-reference .asala-purchase-panel .asala-product-cart-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border: 0 !important;
}

body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product > .asala-quantity-label {
    margin: 0 0 5px !important;
    padding: 0 !important;
    color: #3f332d !important;
    font-size: 13px !important;
    font-weight: 900 !important;
}

body.single-product .asala-product-reference .asala-product-cart-area .variations {
    margin-bottom: 7px !important;
}

body.single-product .asala-product-reference .asala-product-cart-area .variations tr {
    margin-bottom: 7px !important;
}

body.single-product .asala-product-reference .asala-product-cart-area .variations th.label {
    padding-bottom: 4px !important;
    color: #3d312b !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

body.single-product .asala-product-reference .asala-variation-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    width: 100% !important;
    direction: rtl !important;
}

body.single-product .asala-product-reference .asala-variation-chip {
    width: auto !important;
    min-width: 62px !important;
    min-height: 36px !important;
    padding: 6px 12px !important;
    border: 1px solid #d8cec7 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #2c2420 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

body.single-product .asala-product-reference .asala-variation-chip.is-selected {
    border-color: #8b3f1d !important;
    background: #8b3f1d !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

body.single-product .asala-product-reference .asala-product-cart-area .reset_variations {
    margin: 4px 0 0 !important;
    color: #77685f !important;
    font-size: 10px !important;
}

/* Quantity and the two purchase actions: reference-like, simple, strong. */
body.single-product .asala-product-reference .asala-qty-control {
    height: 44px !important;
    border-color: #ddd4ce !important;
    border-radius: 5px !important;
}

body.single-product .asala-product-reference .asala-qty-slot input.qty {
    height: 42px !important;
}

body.single-product .asala-product-reference .asala-product-cart-area button.single_add_to_cart_button,
body.single-product .asala-product-reference .asala-purchase-panel .single_add_to_cart_button {
    min-height: 46px !important;
    border-radius: 5px !important;
    background: linear-gradient(135deg, #7a391b, #9f4b20) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

body.single-product .asala-product-reference .asala-buy-now-button,
body.single-product .asala-product-reference .asala-purchase-panel .asala-buy-now-button {
    width: 100% !important;
    min-height: 46px !important;
    margin: 7px 0 0 !important;
    margin-inline-start: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid #dda847 !important;
    border-radius: 5px !important;
    background: linear-gradient(135deg, #f4cf78, #e8b34e) !important;
    color: #2f1b10 !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    box-shadow: none !important;
}

body.single-product .asala-product-reference .asala-buy-now-button.is-disabled,
body.single-product .asala-product-reference .asala-buy-now-button[aria-disabled="true"] {
    opacity: .48 !important;
}

/* The old mobile quick-spec card duplicates trust/variation information. */
body.single-product .asala-product-reference .asala-mobile-quick-specs {
    display: none !important;
}

/* Full-width trust + shipping band, matching the approved reference structure. */
body.single-product .asala-product-reference .asala-reference-support {
    display: grid !important;
    gap: 10px !important;
    margin-top: 14px !important;
}

body.single-product .asala-product-reference .asala-reference-support .asala-product-trust {
    margin: 0 !important;
    border-color: #eadfd8 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.single-product .asala-product-reference .asala-reference-support .asala-trust-item {
    padding: 12px 9px 10px !important;
}

body.single-product .asala-product-reference .asala-reference-support .asala-trust-icon {
    width: 34px !important;
    height: 34px !important;
    margin-bottom: 4px !important;
    color: #925024 !important;
}

body.single-product .asala-product-reference .asala-reference-support .asala-trust-item strong {
    font-size: 13px !important;
}

body.single-product .asala-product-reference .asala-reference-support .asala-trust-item small {
    font-size: 10px !important;
}

body.single-product .asala-product-reference .asala-reference-logistics {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
    gap: 10px !important;
    direction: ltr !important;
}

body.single-product .asala-product-reference .asala-reference-logistics > * {
    direction: rtl !important;
}

body.single-product .asala-product-reference .asala-carriers-card,
body.single-product .asala-product-reference .asala-branches-card {
    margin: 0 !important;
    padding: 10px 12px !important;
    border: 1px solid #eadfd8 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: none !important;
}

body.single-product .asala-product-reference .asala-carrier-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
}

body.single-product .asala-product-reference .asala-carrier-logo-card {
    min-height: 72px !important;
    padding: 6px !important;
    background: #fbf8f6 !important;
}

body.single-product .asala-product-reference .asala-carrier-logo-card img {
    height: 43px !important;
}

body.single-product .asala-product-reference .asala-reference-card-heading {
    margin-bottom: 7px !important;
    font-size: 13px !important;
}

/* Details stay calm and compact, like the reference. */
body.single-product .asala-product-reference .asala-product-details {
    margin-top: 11px !important;
    gap: 5px !important;
}

body.single-product .asala-product-reference .asala-product-detail-box {
    border-color: #e7ded7 !important;
    border-radius: 5px !important;
    box-shadow: none !important;
}

body.single-product .asala-product-reference .asala-product-detail-box summary {
    min-height: 46px !important;
    padding: 9px 13px !important;
    font-size: 14px !important;
}

/* Phone composition: keep the reference-style side-by-side hero, but remove clutter. */
@media (max-width: 767px) {
    body.single-product .asala-product-reference .asala-product-container {
        width: calc(100% - 18px) !important;
        padding-top: 9px !important;
    }

    body.single-product .asala-product-reference .asala-product-main,
    body.single-product .asala-product-reference.product-type-variable .asala-product-main {
        grid-template-columns: minmax(0, 58%) minmax(0, 42%) !important;
        gap: 7px !important;
        align-items: start !important;
    }

    body.single-product .asala-product-reference .asala-product-gallery-shell {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        gap: 5px !important;
    }

    body.single-product .asala-product-reference .asala-product-thumbnails {
        gap: 5px !important;
        max-height: 330px !important;
    }

    body.single-product .asala-product-reference .asala-product-thumb {
        width: 38px !important;
        height: 46px !important;
        flex-basis: 46px !important;
        border-radius: 5px !important;
    }

    body.single-product .asala-product-reference .asala-product-main-image {
        border-radius: 5px !important;
    }

    body.single-product .asala-product-reference .asala-product-zoom-button {
        left: 5px !important;
        bottom: 5px !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 16px !important;
    }

    body.single-product .asala-product-reference .asala-product-heading-row {
        gap: 4px !important;
    }

    body.single-product .asala-product-reference .asala-product-title {
        margin-bottom: 3px !important;
        font-size: clamp(17px, 4.8vw, 21px) !important;
        line-height: 1.35 !important;
    }

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

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

    body.single-product .asala-product-reference .asala-product-sku {
        margin-bottom: 3px !important;
        font-size: 8.5px !important;
    }

    body.single-product .asala-product-reference .asala-product-rating {
        margin-bottom: 5px !important;
        font-size: 8.5px !important;
    }

    body.single-product .asala-product-reference .asala-product-short-description,
    body.single-product .asala-product-reference .asala-product-short-description p {
        font-size: 10px !important;
        line-height: 1.7 !important;
        font-weight: 700 !important;
    }

    body.single-product .asala-product-reference .asala-purchase-panel {
        margin-top: 7px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.single-product .asala-product-reference .asala-purchase-panel .asala-product-price-box {
        gap: 4px !important;
        margin-bottom: 3px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.single-product .asala-product-reference .asala-purchase-panel .asala-price-icon {
        flex-basis: 20px !important;
        width: 20px !important;
        height: 20px !important;
    }

    body.single-product .asala-product-reference .asala-purchase-panel .asala-product-price {
        font-size: clamp(20px, 6vw, 27px) !important;
        line-height: 1.05 !important;
    }

    body.single-product .asala-product-reference .asala-purchase-panel .asala-product-yemeni-price {
        margin-top: 2px !important;
        font-size: 8.5px !important;
        line-height: 1.25 !important;
    }

    body.single-product .asala-product-reference .asala-purchase-panel .asala-stock-status {
        margin: 2px 0 5px !important;
        padding: 0 !important;
        font-size: 8px !important;
        white-space: nowrap !important;
    }

    body.single-product .asala-product-reference .asala-purchase-panel .asala-stock-icon {
        width: 13px !important;
        height: 13px !important;
        font-size: 8px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product > .asala-quantity-label {
        margin-bottom: 2px !important;
        font-size: 8.5px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product .variations {
        margin-bottom: 3px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product .variations tr {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr) !important;
        gap: 3px !important;
        align-items: center !important;
        margin-bottom: 3px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product .variations th.label {
        width: auto !important;
        padding: 0 !important;
        font-size: 8px !important;
        white-space: nowrap !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product .variations td.value {
        width: auto !important;
        min-width: 0 !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product .asala-variation-chips {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 3px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area.is-variable-product .asala-variation-chip {
        width: auto !important;
        min-width: 36px !important;
        min-height: 27px !important;
        padding: 3px 6px !important;
        border-radius: 5px !important;
        font-size: 8.5px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area .woocommerce-variation-add-to-cart.variations_button,
    body.single-product .asala-product-reference .asala-product-cart-area form.cart {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 4px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area .quantity,
    body.single-product .asala-product-reference .asala-product-cart-area .woocommerce-variation-add-to-cart.variations_button .quantity {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.single-product .asala-product-reference .asala-qty-control {
        grid-template-columns: 31px minmax(0, 1fr) 31px !important;
        height: 34px !important;
        border-radius: 4px !important;
    }

    body.single-product .asala-product-reference .asala-qty-control button {
        font-size: 18px !important;
    }

    body.single-product .asala-product-reference .asala-qty-slot input.qty {
        height: 32px !important;
        font-size: 11px !important;
    }

    body.single-product .asala-product-reference .asala-product-cart-area button.single_add_to_cart_button,
    body.single-product .asala-product-reference .asala-buy-now-button,
    body.single-product .asala-product-reference .asala-purchase-panel .single_add_to_cart_button,
    body.single-product .asala-product-reference .asala-purchase-panel .asala-buy-now-button {
        min-height: 34px !important;
        padding: 5px 4px !important;
        border-radius: 4px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
    }

    body.single-product .asala-product-reference .asala-buy-now-button {
        margin-top: 4px !important;
    }

    body.single-product .asala-product-reference .asala-reference-support {
        margin-top: 8px !important;
        gap: 6px !important;
    }

    body.single-product .asala-product-reference .asala-reference-support .asala-product-trust {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        border-radius: 5px !important;
    }

    body.single-product .asala-product-reference .asala-reference-support .asala-trust-item {
        padding: 7px 3px 6px !important;
    }

    body.single-product .asala-product-reference .asala-reference-support .asala-trust-icon {
        width: 24px !important;
        height: 24px !important;
        margin-bottom: 2px !important;
    }

    body.single-product .asala-product-reference .asala-reference-support .asala-trust-item strong {
        font-size: 8.5px !important;
        line-height: 1.3 !important;
    }

    body.single-product .asala-product-reference .asala-reference-support .asala-trust-item small {
        margin-top: 1px !important;
        font-size: 7px !important;
        line-height: 1.25 !important;
    }

    body.single-product .asala-product-reference .asala-reference-logistics {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 6px !important;
    }

    body.single-product .asala-product-reference .asala-carriers-card,
    body.single-product .asala-product-reference .asala-branches-card {
        padding: 7px 8px !important;
        border-radius: 5px !important;
    }

    body.single-product .asala-product-reference .asala-reference-card-heading {
        margin-bottom: 5px !important;
        font-size: 10px !important;
    }

    body.single-product .asala-product-reference .asala-carrier-logo-card {
        min-height: 58px !important;
    }

    body.single-product .asala-product-reference .asala-carrier-logo-card img {
        height: 35px !important;
    }

    body.single-product .asala-product-reference .asala-carrier-logo-card span,
    body.single-product .asala-product-reference .asala-available-governorates,
    body.single-product .asala-product-reference .asala-branch-tabs button {
        font-size: 8px !important;
    }

    body.single-product .asala-product-reference .asala-product-details {
        margin-top: 7px !important;
    }

    body.single-product .asala-product-reference .asala-product-detail-box summary {
        min-height: 42px !important;
        padding: 7px 9px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 420px) {
    body.single-product .asala-product-reference .asala-product-main,
    body.single-product .asala-product-reference.product-type-variable .asala-product-main {
        grid-template-columns: minmax(0, 57%) minmax(0, 43%) !important;
        gap: 5px !important;
    }

    body.single-product .asala-product-reference .asala-product-gallery-shell {
        grid-template-columns: 34px minmax(0, 1fr) !important;
        gap: 4px !important;
    }

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

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

    body.single-product .asala-product-reference .asala-product-short-description,
    body.single-product .asala-product-reference .asala-product-short-description p {
        font-size: 9px !important;
    }

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

/* PATCH-044D — Keep customer-service numbers intact in RTL and narrow layouts. */
body.single-product .asala-whatsapp-box b {
    white-space: nowrap;
    direction: ltr;
    unicode-bidi: isolate;
    flex-shrink: 0;
    overflow-wrap: normal;
    word-break: normal;
}
body.single-product .asala-whatsapp-box > span:not(.asala-whatsapp-icon) {
    min-width: 0;
}
@media (max-width: 767px) {
    body.single-product .asala-product-service-strip {
        grid-template-columns: minmax(0, 1fr);
    }
    body.single-product .asala-product-service-strip strong { font-size: 14px; }
    body.single-product .asala-product-service-strip small { font-size: 12px; }
}

/* PATCH-044E — Consistent mobile service rows; phone below WhatsApp copy. */
@media (max-width: 767px) {
    html body#asala-page.single-product .asala-product-service-strip,
    html body#asala-page.asala-atelier.single-product .asala-product-reference .asala-product-service-strip {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 4px 14px !important;
    }
    body.single-product .asala-product-service-strip .asala-whatsapp-box,
    body.single-product .asala-product-service-strip .asala-customer-service-box {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 6px;
        align-items: center;
        justify-content: normal;
        min-height: 96px;
        padding: 16px 0;
        text-align: right;
    }
    body.single-product .asala-product-service-strip .asala-whatsapp-box {
        grid-template-areas: "icon copy" "icon number";
    }
    body.single-product .asala-product-service-strip .asala-whatsapp-icon {
        grid-area: icon;
        width: 42px;
        height: 42px;
        font-size: 23px;
    }
    body.single-product .asala-product-service-strip .asala-whatsapp-box > span:not(.asala-whatsapp-icon) {
        grid-area: copy;
        min-width: 0;
    }
    body.single-product .asala-product-service-strip .asala-whatsapp-box b {
        grid-area: number;
        justify-self: start;
        margin: 0;
        margin-inline-start: 0;
        font-size: 20px;
        line-height: 1.3;
    }
    body.single-product .asala-product-service-strip .asala-customer-service-box {
        border-top: 1px solid #eadfd7;
    }
    body.single-product .asala-product-service-strip .asala-service-truck {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #fff6eb;
        font-size: 24px;
    }
    body.single-product .asala-product-service-strip strong {
        font-size: 14px;
        line-height: 1.55;
    }
    body.single-product .asala-product-service-strip small {
        margin-top: 4px;
        font-size: 12px;
        line-height: 1.65;
    }
}

/* PATCH-18.10-01 — Drag follows the finger in the single-product image viewport. */
body.single-product .asala-product-reference .asala-main-image-link {
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}
body.single-product .asala-product-reference .asala-main-image-link img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}
body.single-product .asala-product-reference .asala-main-image-link > .asala-gallery-drag-neighbor {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    object-fit: contain !important;
    background: #fff !important;
    pointer-events: none !important;
}
