/* Spaceland Product App V3 — compact, Flutter-like admin preview */
body.slapp-v3-preview {
  --slapp-bg:#f6f8fb;
  --slapp-card:#fff;
  --slapp-ink:#0e1b36;
  --slapp-muted:#738096;
  --slapp-line:#e7ebf1;
  --slapp-blue:#2f73f6;
  --slapp-blue-dark:#1e60e8;
  --slapp-green:#10a567;
  --slapp-red:#ef5f68;
  --slapp-soft:#f0f3f7;
  --slapp-radius:22px;
  --slapp-radius-sm:14px;
  background:var(--slapp-bg)!important;
  color:var(--slapp-ink)!important;
}
.slapp-v3-preview .main-page-wrapper,
.slapp-v3-preview .wd-content-area { background:var(--slapp-bg)!important; }
.slapp-v3-preview .wd-content-area { padding-bottom:36px!important; }
.slapp-v3-preview .single-product-page > .container { max-width:1160px!important; }

/* breadcrumbs */
.slapp-v3-preview .single-breadcrumbs-wrapper { background:transparent!important; margin:0!important; padding:10px 0 8px!important; }
.slapp-v3-preview .single-breadcrumbs-wrapper .wd-breadcrumbs { font-size:11px!important; color:#8792a4!important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* top product app shell */
.slapp-v3-preview .product-image-summary-wrap { margin:0!important; }
.slapp-v3-preview .product-image-summary { background:transparent!important; }
.slapp-v3-preview .product-image-summary-inner {
  align-items:stretch!important;
  gap:18px!important;
  --wd-gap-lg:18px!important;
  --wd-gap-md:16px!important;
  --wd-gap-sm:14px!important;
}
.slapp-v3-preview .product-images.wd-grid-col {
  --wd-col-lg:5!important;
  --wd-col-md:5!important;
  --wd-col-sm:12!important;
  background:var(--slapp-card)!important;
  border:1px solid var(--slapp-line)!important;
  border-radius:var(--slapp-radius)!important;
  padding:18px!important;
  box-shadow:0 8px 24px rgba(25,39,68,.055)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.slapp-v3-preview .summary.entry-summary.wd-grid-col {
  --wd-col-lg:7!important;
  --wd-col-md:7!important;
  --wd-col-sm:12!important;
  text-align:start!important;
  align-self:stretch!important;
  background:var(--slapp-card)!important;
  border:1px solid var(--slapp-line)!important;
  border-radius:var(--slapp-radius)!important;
  padding:24px 26px!important;
  box-shadow:0 8px 24px rgba(25,39,68,.055)!important;
}
.slapp-v3-preview .summary-inner { max-width:none!important; margin:0!important; }

/* compact gallery */
.slapp-v3-preview .woocommerce-product-gallery { margin:0!important; }
.slapp-v3-preview .woocommerce-product-gallery__wrapper { min-height:0!important; }
.slapp-v3-preview .woocommerce-product-gallery__image { display:flex!important; align-items:center!important; justify-content:center!important; min-height:360px!important; background:linear-gradient(145deg,#f5f7fa,#eef1f5)!important; border-radius:18px!important; overflow:hidden!important; }
.slapp-v3-preview .woocommerce-product-gallery__image > a { display:flex!important; width:100%!important; height:100%!important; align-items:center!important; justify-content:center!important; }
.slapp-v3-preview .woocommerce-product-gallery__image img { width:auto!important; height:auto!important; max-width:320px!important; max-height:390px!important; object-fit:contain!important; margin:auto!important; box-shadow:0 16px 32px rgba(35,41,51,.12)!important; }
.slapp-v3-preview .wd-gallery-thumb .wd-carousel-item,
.slapp-v3-preview .woocommerce-product-gallery .wd-nav-pagin-wrap { border-radius:12px!important; }
.slapp-v3-preview .wd-gallery-thumb { margin-top:12px!important; }
.slapp-v3-preview .wd-gallery-thumb img { max-height:76px!important; object-fit:contain!important; background:#f6f7f9!important; border-radius:10px!important; }
.slapp-v3-preview .woocommerce-product-gallery .wd-btn-arrow { width:36px!important; height:36px!important; border-radius:50%!important; background:#fff!important; box-shadow:0 4px 14px rgba(17,31,54,.12)!important; }

/* top metadata chips */
.slapp-v3-preview .slapp3-eyebrow { display:flex; gap:9px; align-items:center; flex-wrap:wrap; margin:0 0 12px!important; }
.slapp-v3-preview .slapp3-category,
.slapp-v3-preview .slapp3-stock { display:inline-flex; align-items:center; gap:7px; min-height:30px; padding:6px 10px; border-radius:999px; font-size:12px; line-height:1; font-weight:700; }
.slapp-v3-preview .slapp3-category { background:#f2f5f9; color:#58657a; }
.slapp-v3-preview .slapp3-stock.is-in { background:#eaf9f2; color:#0c8e58; }
.slapp-v3-preview .slapp3-stock.is-out { background:#fff0f1; color:#bb4450; }
.slapp-v3-preview .slapp3-stock i { width:7px; height:7px; border-radius:50%; background:currentColor; display:block; }
.slapp-v3-preview .slapp3-author { display:flex; gap:7px; align-items:center; color:#677489; font-size:13px; margin:-2px 0 10px!important; }

/* title, rating, short description, price */
.slapp-v3-preview .product_title { font-size:clamp(26px,2.5vw,38px)!important; line-height:1.24!important; color:var(--slapp-ink)!important; font-weight:800!important; letter-spacing:-.02em!important; margin:0 0 9px!important; text-align:start!important; }
.slapp-v3-preview .woocommerce-product-rating { display:flex!important; align-items:center!important; gap:10px!important; justify-content:flex-start!important; margin:0 0 12px!important; font-size:12px!important; }
.slapp-v3-preview .woocommerce-product-rating .woocommerce-review-link { color:#778397!important; }
.slapp-v3-preview .woocommerce-product-details__short-description { color:#68758a!important; font-size:14px!important; line-height:1.8!important; margin:0 0 14px!important; }
.slapp-v3-preview .summary .price { color:var(--slapp-ink)!important; font-size:31px!important; line-height:1.15!important; font-weight:850!important; margin:8px 0 5px!important; text-align:start!important; }
.slapp-v3-preview .summary .price del { font-size:15px!important; color:#9ba5b4!important; margin-inline:8px!important; }
.slapp-v3-preview .summary .price ins { color:var(--slapp-red)!important; }

/* buy panel */
.slapp-v3-preview .summary form.cart { display:flex!important; flex-wrap:nowrap!important; gap:12px!important; align-items:center!important; margin:18px 0!important; padding:12px!important; background:#f7f9fc!important; border:1px solid var(--slapp-line)!important; border-radius:18px!important; }
.slapp-v3-preview .summary form.cart .quantity { display:grid!important; grid-template-columns:40px 46px 40px!important; width:126px!important; flex:0 0 126px!important; height:48px!important; border:1px solid #dfe5ed!important; border-radius:13px!important; overflow:hidden!important; background:#fff!important; }
.slapp-v3-preview .summary form.cart .quantity .btn,
.slapp-v3-preview .summary form.cart .quantity input.qty { width:100%!important; min-width:0!important; height:48px!important; padding:0!important; border:0!important; background:transparent!important; color:var(--slapp-ink)!important; box-shadow:none!important; font-size:16px!important; font-weight:750!important; }
.slapp-v3-preview .summary form.cart .quantity input.qty { text-align:center!important; }
.slapp-v3-preview .single_add_to_cart_button { flex:1 1 auto!important; min-height:50px!important; border-radius:14px!important; background:linear-gradient(135deg,var(--slapp-blue),#3f83ff)!important; color:#fff!important; box-shadow:0 8px 18px rgba(47,115,246,.22)!important; font-size:15px!important; font-weight:800!important; text-transform:none!important; letter-spacing:0!important; }
.slapp-v3-preview .single_add_to_cart_button:hover { background:linear-gradient(135deg,var(--slapp-blue-dark),var(--slapp-blue))!important; transform:translateY(-1px); }
.slapp-v3-preview .wd-compare-btn,
.slapp-v3-preview .wd-wishlist-btn { display:none!important; }

/* service tiles */
.slapp-v3-preview .slapp3-service-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:14px 0 0!important; }
.slapp-v3-preview .slapp3-service-grid > div { min-width:0; padding:12px 10px; border:1px solid var(--slapp-line); background:#fbfcfe; border-radius:14px; text-align:center; }
.slapp-v3-preview .slapp3-service-icon { display:flex; align-items:center; justify-content:center; width:30px; height:30px; margin:0 auto 7px; border-radius:10px; background:#eef4ff; color:var(--slapp-blue); font-weight:900; }
.slapp-v3-preview .slapp3-service-grid strong { display:block; font-size:12px; line-height:1.3; color:var(--slapp-ink); }
.slapp-v3-preview .slapp3-service-grid small { display:block; margin-top:4px; color:#8a94a4; font-size:10px; line-height:1.45; }

/* existing product meta de-emphasis */
.slapp-v3-preview .product_meta { margin-top:14px!important; padding-top:10px!important; border-top:1px dashed var(--slapp-line)!important; color:#8a94a4!important; font-size:11px!important; }

/* segmented/tab card */
.slapp-v3-preview .product-tabs-wrapper { margin-top:18px!important; background:transparent!important; }
.slapp-v3-preview .product-tabs-inner { max-width:1160px!important; }
.slapp-v3-preview .woocommerce-tabs { background:#fff!important; border:1px solid var(--slapp-line)!important; border-radius:22px!important; box-shadow:0 8px 24px rgba(25,39,68,.045)!important; overflow:hidden!important; padding:0!important; }
.slapp-v3-preview .wd-accordion-item + .wd-accordion-item { border-top:1px solid var(--slapp-line)!important; }
.slapp-v3-preview .wd-accordion-title { min-height:56px!important; padding:0 20px!important; font-weight:800!important; color:#33425a!important; background:#fff!important; }
.slapp-v3-preview .wd-accordion-title.wd-active { color:var(--slapp-blue)!important; }
.slapp-v3-preview .wd-accordion-content { padding:4px 20px 20px!important; color:#4e5c70!important; line-height:1.9!important; }
.slapp-v3-preview .woocommerce-Tabs-panel--description .wc-tab-inner > h1:first-child { display:none!important; }
.slapp-v3-preview .woocommerce-Tabs-panel img { border-radius:14px!important; }

/* attribute/info card inserted before tabs */
.slapp-v3-preview .slapp3-meta-card { max-width:1160px; margin:18px auto 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(155px,1fr)); gap:1px; background:var(--slapp-line); border:1px solid var(--slapp-line); border-radius:18px; overflow:hidden; }
.slapp-v3-preview .slapp3-meta-card > div { padding:13px 15px; background:#fff; }
.slapp-v3-preview .slapp3-meta-card span { display:block; color:#8a94a4; font-size:10px; margin-bottom:4px; }
.slapp-v3-preview .slapp3-meta-card strong { display:block; color:#29374e; font-size:12px; overflow-wrap:anywhere; }

/* related products as app shelf */
.slapp-v3-preview .related-and-upsells { max-width:1160px!important; margin-top:22px!important; }
.slapp-v3-preview .related-products { background:#fff!important; border:1px solid var(--slapp-line)!important; border-radius:22px!important; padding:18px!important; box-shadow:0 8px 24px rgba(25,39,68,.04)!important; }
.slapp-v3-preview .related-products .wd-el-title { text-align:start!important; font-size:19px!important; margin-bottom:14px!important; color:var(--slapp-ink)!important; }
.slapp-v3-preview .related-products .wd-product { border-radius:16px!important; overflow:hidden!important; box-shadow:none!important; }
.slapp-v3-preview .related-products .product-wrapper { border:1px solid var(--slapp-line)!important; border-radius:16px!important; overflow:hidden!important; background:#fff!important; }
.slapp-v3-preview .related-products .wd-product-thumb img { object-fit:contain!important; aspect-ratio:4/5!important; }

/* preview label */
.slapp-v3-preview .slapp3-preview-label { position:fixed; left:12px; bottom:12px; z-index:9997; padding:6px 9px; border-radius:999px; background:#0e1b36; color:#fff; font-size:9px; font-weight:800; letter-spacing:.07em; opacity:.72; pointer-events:none; }
.slapp-v3-preview .slapp3-mobile-buybar { display:none; }

@media (max-width:1024px) {
  .slapp-v3-preview .product-images.wd-grid-col { --wd-col-md:5!important; padding:14px!important; }
  .slapp-v3-preview .summary.entry-summary.wd-grid-col { --wd-col-md:7!important; padding:20px!important; }
  .slapp-v3-preview .woocommerce-product-gallery__image { min-height:320px!important; }
  .slapp-v3-preview .woocommerce-product-gallery__image img { max-width:285px!important; max-height:350px!important; }
}

@media (max-width:767px) {
  body.slapp-v3-preview { padding-bottom:84px!important; }
  .slapp-v3-preview .single-breadcrumbs-wrapper { display:none!important; }
  .slapp-v3-preview .single-product-page > .container { padding-inline:10px!important; }
  .slapp-v3-preview .product-image-summary-inner { gap:10px!important; }
  .slapp-v3-preview .product-images.wd-grid-col,
  .slapp-v3-preview .summary.entry-summary.wd-grid-col { --wd-col-sm:12!important; border-radius:18px!important; box-shadow:none!important; }
  .slapp-v3-preview .product-images.wd-grid-col { padding:10px!important; }
  .slapp-v3-preview .woocommerce-product-gallery__image { min-height:285px!important; border-radius:15px!important; }
  .slapp-v3-preview .woocommerce-product-gallery__image img { max-width:min(68vw,250px)!important; max-height:300px!important; box-shadow:0 10px 24px rgba(35,41,51,.11)!important; }
  .slapp-v3-preview .wd-gallery-thumb { margin-top:8px!important; }
  .slapp-v3-preview .wd-gallery-thumb img { max-height:58px!important; }
  .slapp-v3-preview .summary.entry-summary.wd-grid-col { padding:17px 16px!important; }
  .slapp-v3-preview .product_title { font-size:25px!important; margin-bottom:7px!important; }
  .slapp-v3-preview .woocommerce-product-details__short-description { font-size:13px!important; line-height:1.65!important; }
  .slapp-v3-preview .summary .price { font-size:28px!important; }
  .slapp-v3-preview .summary form.cart { padding:8px!important; gap:8px!important; margin:14px 0!important; }
  .slapp-v3-preview .summary form.cart .quantity { grid-template-columns:34px 38px 34px!important; width:106px!important; flex-basis:106px!important; height:46px!important; }
  .slapp-v3-preview .summary form.cart .quantity .btn,
  .slapp-v3-preview .summary form.cart .quantity input.qty { height:46px!important; }
  .slapp-v3-preview .single_add_to_cart_button { min-height:46px!important; font-size:14px!important; }
  .slapp-v3-preview .slapp3-service-grid { gap:6px; }
  .slapp-v3-preview .slapp3-service-grid > div { padding:10px 6px; }
  .slapp-v3-preview .slapp3-service-grid small { display:none; }
  .slapp-v3-preview .product-tabs-wrapper { margin-top:10px!important; }
  .slapp-v3-preview .product-tabs-inner { padding-inline:10px!important; }
  .slapp-v3-preview .woocommerce-tabs { border-radius:18px!important; box-shadow:none!important; }
  .slapp-v3-preview .wd-accordion-title { min-height:52px!important; padding:0 15px!important; }
  .slapp-v3-preview .wd-accordion-content { padding:2px 15px 16px!important; }
  .slapp-v3-preview .slapp3-meta-card { margin:10px 10px 0; border-radius:16px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .slapp-v3-preview .related-and-upsells { margin-top:12px!important; padding-inline:10px!important; }
  .slapp-v3-preview .related-products { padding:14px 10px!important; border-radius:18px!important; box-shadow:none!important; overflow:hidden!important; }
  .slapp-v3-preview .related-products .products { display:flex!important; flex-wrap:nowrap!important; overflow-x:auto!important; scroll-snap-type:x proximity; gap:10px!important; padding:2px 1px 8px!important; scrollbar-width:none; }
  .slapp-v3-preview .related-products .products::-webkit-scrollbar { display:none; }
  .slapp-v3-preview .related-products .wd-product { flex:0 0 44vw!important; max-width:178px!important; scroll-snap-align:start; }
  .slapp-v3-preview .slapp3-mobile-buybar { position:fixed; left:8px; right:8px; bottom:8px; z-index:9999; display:grid; grid-template-columns:46px minmax(72px,.65fr) minmax(126px,1.35fr); align-items:center; gap:8px; padding:8px; background:rgba(255,255,255,.96); border:1px solid #e2e7ee; border-radius:18px; box-shadow:0 10px 32px rgba(11,27,54,.18); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
  .slapp-v3-preview .slapp3-mobile-thumb { width:46px; height:46px; border-radius:11px; background:#f2f4f7; overflow:hidden; }
  .slapp-v3-preview .slapp3-mobile-thumb img { width:100%!important; height:100%!important; object-fit:contain!important; }
  .slapp-v3-preview .slapp3-mobile-price { min-width:0; font-size:14px; color:var(--slapp-ink); }
  .slapp-v3-preview .slapp3-mobile-price .price,
  .slapp-v3-preview .slapp3-mobile-price .amount { font-size:14px!important; margin:0!important; color:inherit!important; white-space:nowrap; }
  .slapp-v3-preview .slapp3-mobile-price del { display:none!important; }
  .slapp-v3-preview .slapp3-mobile-cta { min-height:46px; border:0; border-radius:13px; background:linear-gradient(135deg,var(--slapp-blue),#3f83ff); color:#fff; font-family:inherit; font-size:13px; font-weight:800; padding:0 12px; }
  .slapp-v3-preview .slapp3-preview-label { display:none; }
}
/* SPACELAND_PRODUCT_APP_V3_2_FORCE_HIDE_INFO_TILES */
.slapp-v3-preview .slapp3-service-grid{display:none!important;}

/* SPACELAND_PRODUCT_RTL_V3_6_LIVE_START */
/* Approved Arabic RTL behavior from Product RTL V3.6, published for live Product App V3. */
body.slapp-v3-live .product-tabs-wrapper,
body.slapp-v3-live .product-tabs-inner,
body.slapp-v3-live .woocommerce-tabs,
body.slapp-v3-live .woocommerce-tabs .wd-accordion-item,
body.slapp-v3-live .woocommerce-tabs .wd-accordion-title,
body.slapp-v3-live .woocommerce-tabs .wd-accordion-title-text,
body.slapp-v3-live .woocommerce-tabs .wd-accordion-content,
body.slapp-v3-live .woocommerce-tabs .wc-tab-inner,
body.slapp-v3-live .related-and-upsells,
body.slapp-v3-live .related-products,
body.slapp-v3-live .slapp3-meta-card {
    direction: rtl !important;
    text-align: right !important;
}

body.slapp-v3-live .woocommerce-tabs .wd-accordion-title {
    display: flex;
    align-items: center;
    flex-direction: row;
}

body.slapp-v3-live .woocommerce-tabs .wd-accordion-title-text {
    flex: 1 1 auto;
    text-align: right !important;
}

body.slapp-v3-live .woocommerce-tabs .wd-accordion-opener {
    margin-inline-start: 14px !important;
    margin-inline-end: 0 !important;
}

body.slapp-v3-live #tab-description .wc-tab-inner,
body.slapp-v3-live #tab-description .wc-tab-inner > *,
body.slapp-v3-live #tab-reviews,
body.slapp-v3-live #tab-reviews .wc-tab-inner,
body.slapp-v3-live #tab-reviews .wc-tab-inner > * {
    direction: rtl !important;
    text-align: right !important;
}

body.slapp-v3-live #tab-description .wc-tab-inner :is(p, h1, h2, h3, h4, h5, h6, li, blockquote, div),
body.slapp-v3-live #tab-reviews :is(p, h1, h2, h3, h4, h5, h6, li, blockquote, div, label) {
    direction: rtl !important;
    text-align: right !important;
    unicode-bidi: plaintext;
}

body.slapp-v3-live #tab-description .wc-tab-inner p,
body.slapp-v3-live #tab-description .wc-tab-inner blockquote {
    line-height: 1.95;
}

body.slapp-v3-live .slapp3-meta-card {
    justify-content: flex-start !important;
}

body.slapp-v3-live .slapp3-meta-card > div {
    direction: rtl !important;
    text-align: right !important;
}

body.slapp-v3-live .slapp3-meta-card strong,
body.slapp-v3-live .slapp3-meta-card [dir="ltr"] {
    direction: ltr !important;
    unicode-bidi: isolate;
    text-align: left !important;
}

body.slapp-v3-live .related-products .wd-el-title,
body.slapp-v3-live .related-products .element-title,
body.slapp-v3-live .related-products .slrel-kicker {
    direction: rtl !important;
    text-align: right !important;
}

body.slapp-v3-live .related-products .products,
body.slapp-v3-live .related-products .wd-carousel,
body.slapp-v3-live .related-products .wd-carousel-wrap {
    direction: rtl !important;
}

body.slapp-v3-live .related-products .wd-product,
body.slapp-v3-live .related-products .wd-product-wrapper,
body.slapp-v3-live .related-products .product-element-bottom,
body.slapp-v3-live .related-products .wd-entities-title,
body.slapp-v3-live .related-products .wd-entities-title a,
body.slapp-v3-live .related-products .price {
    direction: rtl !important;
    text-align: right !important;
}

body.slapp-v3-live .related-products .price .amount,
body.slapp-v3-live .related-products .price bdi,
body.slapp-v3-live .related-products .woocommerce-Price-amount {
    unicode-bidi: isolate;
}

@media (max-width: 768px) {
    body.slapp-v3-live .product-tabs-wrapper,
    body.slapp-v3-live .related-and-upsells {
        text-align: right !important;
    }

    body.slapp-v3-live #tab-description .wc-tab-inner :is(p, h1, h2, h3, h4, h5, h6, li, blockquote),
    body.slapp-v3-live .related-products .wd-entities-title {
        text-align: right !important;
    }
}
/* SPACELAND_PRODUCT_RTL_V3_6_LIVE_END */


/* SPACELAND_PRODUCT_APP_V3_7_2_LIVE */
body.slapp-v3-live .slapp3-preview-label{display:none!important;}

/* SPACELAND_PRODUCT_APP_V3_8_MOBILE_RTL_ISBN_START */
/* Product App V3.8 — mobile purchase usability + Arabic RTL. */
body.slapp-v3-live .single-product-page,
body.slapp-v3-live .product-image-summary-wrap,
body.slapp-v3-live .product-image-summary-inner,
body.slapp-v3-live .summary.entry-summary,
body.slapp-v3-live .summary.entry-summary .slapp3-eyebrow,
body.slapp-v3-live .summary.entry-summary .slapp3-author,
body.slapp-v3-live .summary.entry-summary .product_title,
body.slapp-v3-live .summary.entry-summary .woocommerce-product-details__short-description,
body.slapp-v3-live .summary.entry-summary form.cart,
body.slapp-v3-live .summary.entry-summary .product_meta,
body.slapp-v3-live .product-tabs-wrapper,
body.slapp-v3-live .related-and-upsells {
    direction: rtl !important;
    text-align: right !important;
}

body.slapp-v3-live .summary.entry-summary .product_title,
body.slapp-v3-live .summary.entry-summary .woocommerce-product-details__short-description,
body.slapp-v3-live #tab-description .wc-tab-inner,
body.slapp-v3-live #tab-reviews,
body.slapp-v3-live .related-products .wd-entities-title,
body.slapp-v3-live .related-products .wd-entities-title a {
    unicode-bidi: plaintext;
}

body.slapp-v3-live .summary.entry-summary .price,
body.slapp-v3-live .summary.entry-summary .price .amount,
body.slapp-v3-live .slapp3-mobile-price,
body.slapp-v3-live .slapp3-mobile-price .amount,
body.slapp-v3-live .cart-widget-side .woocommerce-Price-amount,
body.slapp-v3-live .cart-widget-side .amount {
    unicode-bidi: isolate;
}

/* Woodmart mini cart: Arabic app-like direction. */
body.slapp-v3-live .cart-widget-side,
body.slapp-v3-live .cart-widget-side .wd-heading,
body.slapp-v3-live .cart-widget-side .widget_shopping_cart,
body.slapp-v3-live .cart-widget-side .widget_shopping_cart_content,
body.slapp-v3-live .cart-widget-side .woocommerce-mini-cart,
body.slapp-v3-live .cart-widget-side .mini_cart_item,
body.slapp-v3-live .cart-widget-side .woocommerce-mini-cart__total,
body.slapp-v3-live .cart-widget-side .woocommerce-mini-cart__buttons {
    direction: rtl !important;
    text-align: right !important;
}

body.slapp-v3-live .cart-widget-side .wd-heading {
    display: flex !important;
    align-items: center !important;
}

body.slapp-v3-live .cart-widget-side .wd-heading .title {
    margin-inline-end: 0 !important;
    margin-inline-start: auto !important;
    text-align: right !important;
}

body.slapp-v3-live .cart-widget-side .close-side-widget {
    margin-inline-start: 0 !important;
    margin-inline-end: auto !important;
}

body.slapp-v3-live .cart-widget-side .mini_cart_item :is(a, span, div, p) {
    unicode-bidi: plaintext;
}

body.slapp-v3-live .cart-widget-side .woocommerce-mini-cart__buttons {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
}

body.slapp-v3-live .cart-widget-side .woocommerce-mini-cart__buttons .button {
    width: 100% !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    /* V3 originally reserved 84px permanently; V3.8 reserves it only while the quick-buy bar is visible. */
    body.slapp-v3-live {
        padding-bottom: 0 !important;
    }

    body.slapp-v3-live.slapp3-buybar-visible {
        padding-bottom: 82px !important;
    }

    body.slapp-v3-live .slapp3-mobile-buybar {
        display: grid !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(calc(100% + 22px)) !important;
        transition: opacity .18s ease, transform .22s ease, visibility .18s ease !important;
    }

    body.slapp-v3-live.slapp3-buybar-visible:not(.slapp3-cart-open):not(.slapp3-footer-visible) .slapp3-mobile-buybar {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Never cover cart actions or subtotal. */
    body.slapp-v3-live.slapp3-cart-open .slapp3-mobile-buybar,
    body.slapp-v3-live.slapp3-cart-open .sl-whatsapp-float {
        display: none !important;
    }

    body.slapp-v3-live.slapp3-cart-open {
        padding-bottom: 0 !important;
    }

    body.slapp-v3-live .summary.entry-summary,
    body.slapp-v3-live .summary.entry-summary .product_title,
    body.slapp-v3-live .summary.entry-summary .woocommerce-product-details__short-description,
    body.slapp-v3-live .summary.entry-summary .slapp3-eyebrow,
    body.slapp-v3-live .summary.entry-summary .slapp3-author,
    body.slapp-v3-live .product-tabs-wrapper,
    body.slapp-v3-live .related-and-upsells,
    body.slapp-v3-live .related-products {
        direction: rtl !important;
        text-align: right !important;
    }

    body.slapp-v3-live .slapp3-mobile-buybar {
        direction: rtl !important;
    }

    body.slapp-v3-live .slapp3-mobile-cta,
    body.slapp-v3-live .slapp3-mobile-price {
        direction: rtl !important;
        text-align: center !important;
    }

    body.slapp-v3-live .cart-widget-side {
        width: min(92vw, 420px) !important;
        max-width: 420px !important;
    }
}
/* SPACELAND_PRODUCT_APP_V3_8_MOBILE_RTL_ISBN_END */

/* SPACELAND_PRODUCT_INFO_V3_9_START */
/* Product Info V3.9 — hierarchy cleanup only. No gallery/cart/checkout JS changes. */
body.slapp-v3-live .summary.entry-summary .slapp3-eyebrow,
body.slapp-v3-live .summary.entry-summary .slapp3-stock,
body.slapp-v3-live .summary.entry-summary .slapp3-category {
    display: none !important;
}

body.slapp-v3-live .summary.entry-summary .slapp39-delivery {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    margin: 2px 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #56657a;
    font-size: 13px;
    line-height: 1.5;
    direction: rtl;
    text-align: right;
}

body.slapp-v3-live .summary.entry-summary .slapp39-delivery strong {
    color: #17243b;
    font-weight: 800;
}

body.slapp-v3-live .summary.entry-summary .slapp39-delivery-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    font-size: 15px;
    line-height: 1;
}

body.slapp-v3-live .summary.entry-summary .slapp39-category-line {
    margin: 8px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #8a94a4;
    font-size: 12px;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

body.slapp-v3-live .summary.entry-summary .slapp39-category-line a {
    color: #52637b;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(82, 99, 123, .28);
    transition: color .16s ease, border-color .16s ease;
}

body.slapp-v3-live .summary.entry-summary .slapp39-category-line a:hover,
body.slapp-v3-live .summary.entry-summary .slapp39-category-line a:focus-visible {
    color: var(--slapp-blue, #2f73f6);
    border-bottom-color: currentColor;
}

/* Avoid duplicate raw WooCommerce SKU/category metadata: V3.8 already renders a validated ISBN card. */
body.slapp-v3-live .summary.entry-summary .product_meta .sku_wrapper,
body.slapp-v3-live .summary.entry-summary .product_meta .posted_in {
    display: none !important;
}

@media (max-width: 767px) {
    /* Title is the first visual element in the information area. */
    body.slapp-v3-live .summary.entry-summary.wd-grid-col {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 14px 8px 10px !important;
    }

    body.slapp-v3-live .summary.entry-summary .product_title {
        margin: 0 0 7px !important;
        font-size: clamp(27px, 8vw, 34px) !important;
        line-height: 1.22 !important;
        text-align: right !important;
    }

    body.slapp-v3-live .summary.entry-summary .slapp39-delivery {
        margin: 0 0 9px !important;
        font-size: 13px;
    }

    body.slapp-v3-live .summary.entry-summary .woocommerce-product-rating {
        margin-top: 2px !important;
        margin-bottom: 10px !important;
        justify-content: flex-start !important;
    }

    body.slapp-v3-live .summary.entry-summary .price {
        margin-top: 4px !important;
    }

    body.slapp-v3-live .summary.entry-summary .slapp39-category-line {
        margin-top: 7px !important;
    }
}
/* SPACELAND_PRODUCT_INFO_V3_9_END */

/* SPACELAND_PRODUCT_INFO_V3_9_1_SPACING_START */
/* V3.9.1 — spacing only. No layout, cart, gallery, description or commerce behavior changes. */
@media (max-width: 767px) {
    body.slapp-v3-live .summary.entry-summary .product_title {
        margin: 0 0 7px !important;
    }

    body.slapp-v3-live .summary.entry-summary .slapp39-delivery {
        margin: 0 0 8px !important;
    }

    body.slapp-v3-live .summary.entry-summary .woocommerce-product-rating {
        margin-top: 0 !important;
        margin-bottom: 8px !important;
    }

    body.slapp-v3-live .summary.entry-summary .price {
        display: block;
        margin: 0 0 15px !important;
        line-height: 1.15 !important;
    }

    body.slapp-v3-live .summary.entry-summary form.cart {
        margin-top: 0 !important;
    }
}

@media (min-width: 768px) {
    body.slapp-v3-live .summary.entry-summary .product_title {
        margin-bottom: 9px !important;
    }

    body.slapp-v3-live .summary.entry-summary .slapp39-delivery {
        margin-bottom: 9px !important;
    }

    body.slapp-v3-live .summary.entry-summary .woocommerce-product-rating {
        margin-bottom: 10px !important;
    }

    body.slapp-v3-live .summary.entry-summary .price {
        margin-top: 0 !important;
        margin-bottom: 17px !important;
    }
}
/* SPACELAND_PRODUCT_INFO_V3_9_1_SPACING_END */

/* SPACELAND_PRODUCT_INFO_V4_PREMIUM_START */
/* V4 Premium Polish — visual-only. No PHP/JS/cart/gallery/checkout behavior changes. */
body.slapp-v3-live .summary.entry-summary .product_title {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    color: #101828 !important;
    text-wrap: balance;
}

/* Remove the noisy live-viewer block entirely. */
body.slapp-v3-live .summary.entry-summary .wd-visits-count {
    display: none !important;
}

/* Premium share row: Arabic label, subtle icons, no boxed treatment. */
body.slapp-v3-live .summary.entry-summary .product-share {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 8px !important;
    direction: rtl;
    text-align: right !important;
    margin: 14px 0 0 !important;
    padding: 13px 0 0 !important;
    border-top: 1px solid #eef1f5;
}

body.slapp-v3-live .summary.entry-summary .product-share .share-title {
    order: -1;
    margin: 0 0 0 5px !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

body.slapp-v3-live .summary.entry-summary .product-share .share-title::before {
    content: "مشاركة المنتج";
    font-size: 12px;
    font-weight: 700;
    color: #667085;
}

body.slapp-v3-live .summary.entry-summary .product-share .wd-social-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border: 1px solid #e7ebf1 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #344054 !important;
    box-shadow: none !important;
    transition: transform .16s ease, border-color .16s ease, background-color .16s ease !important;
}

body.slapp-v3-live .summary.entry-summary .product-share .wd-social-icon:hover,
body.slapp-v3-live .summary.entry-summary .product-share .wd-social-icon:focus-visible {
    transform: translateY(-1px);
    border-color: #cfd6df !important;
    background: #f8fafc !important;
}

/* Make the validated ISBN metadata a slim information row instead of a large two-column card. */
body.slapp-v3-live .slapp3-meta-card {
    display: block !important;
    max-width: 1160px !important;
    margin: 14px auto 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: visible !important;
}

body.slapp-v3-live .slapp3-meta-card > div {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px;
    width: 100% !important;
    min-height: 44px;
    padding: 10px 2px !important;
    border-top: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    background: transparent !important;
    direction: rtl;
}

body.slapp-v3-live .slapp3-meta-card span {
    display: inline !important;
    margin: 0 !important;
    color: #98a2b3 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.slapp-v3-live .slapp3-meta-card strong,
body.slapp-v3-live .slapp3-meta-card [dir="ltr"] {
    display: inline !important;
    margin: 0 !important;
    color: #344054 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

/* Description accordion: flatter, calmer, more editorial. */
body.slapp-v3-live .product-tabs-wrapper .woocommerce-tabs {
    border-color: #e9edf2 !important;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .035) !important;
}

body.slapp-v3-live #tab-item-title-description .wd-accordion-title-text span,
body.slapp-v3-live #tab-item-title-reviews .wd-accordion-title-text span {
    font-weight: 700 !important;
    color: #1d2939 !important;
}

body.slapp-v3-live #tab-description h2.sl-desc-author,
body.slapp-v3-live #tab-description .wc-tab-inner > h2:first-of-type {
    width: auto !important;
    max-width: none !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #667085 !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.7 !important;
    text-align: right !important;
}

@media (max-width: 767px) {
    body.slapp-v3-live .summary.entry-summary .product_title {
        font-size: clamp(29px, 8vw, 36px) !important;
        line-height: 1.24 !important;
    }

    body.slapp-v3-live .summary.entry-summary .product-share {
        margin-top: 12px !important;
        padding-top: 12px !important;
    }

    body.slapp-v3-live .slapp3-meta-card {
        margin: 12px 18px 0 !important;
    }

    body.slapp-v3-live #tab-description {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}
/* SPACELAND_PRODUCT_INFO_V4_PREMIUM_END */

/* SPACELAND_PRODUCT_TITLE_V3_9_4_ALMARAI_START */
/* Restore the site's native Arabic title family. Keep the existing two-line clamp/spacing from V3.9.3. */
body.slapp-v3-live.single-product .summary.entry-summary .product_title,
body.single-product .summary.entry-summary .product_title {
    font-family: var(--wd-title-font, "Almarai", Arial, Helvetica, sans-serif) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    color: #101828 !important;
}

@media (max-width: 767px) {
    body.slapp-v3-live.single-product .summary.entry-summary .product_title,
    body.single-product .summary.entry-summary .product_title {
        font-size: clamp(24px, 6.4vw, 29px) !important;
        line-height: 1.38 !important;
    }
}
/* SPACELAND_PRODUCT_TITLE_V3_9_4_ALMARAI_END */

/* SPACELAND_PRODUCT_TITLE_V3_9_5_FULL_NAME_START */
/* Full product name: never truncate the title. Keep the site's Almarai title family and existing RTL alignment. */
body.slapp-v3-live.single-product .summary.entry-summary .product_title,
body.single-product .summary.entry-summary .product_title {
    display: block !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow: visible !important;
    max-height: none !important;
    white-space: normal !important;
    text-overflow: clip !important;
    max-width: 100% !important;
    margin: 0 0 16px !important;
    font-family: var(--wd-title-font, "Almarai", Arial, Helvetica, sans-serif) !important;
    font-weight: 700 !important;
    line-height: 1.30 !important;
    text-align: right !important;
    direction: rtl !important;
    text-wrap: balance;
    overflow-wrap: anywhere;
    color: #101828 !important;
}

@media (min-width: 768px) {
    body.slapp-v3-live.single-product .summary.entry-summary .product_title,
    body.single-product .summary.entry-summary .product_title {
        font-size: clamp(28px, 2.05vw, 34px) !important;
    }
}

@media (max-width: 767px) {
    body.slapp-v3-live.single-product .summary.entry-summary .product_title,
    body.single-product .summary.entry-summary .product_title {
        font-size: clamp(22px, 5.7vw, 27px) !important;
        line-height: 1.34 !important;
        margin-bottom: 16px !important;
    }
}
/* SPACELAND_PRODUCT_TITLE_V3_9_5_FULL_NAME_END */
