/* v5.4.0: !important reduction via CSS Specificity Doubling */
/*
 * Lahdod Theme — WooCommerce UI Skin (CLEAN)
 * Version: v2026-02-21
 * Scope:
 *   - Global Woo pages: body.lahdod-wc:is(.lahdod-wc)
 *   - Shop/archives/listings: body.lahdod-wc-products
 *   - Single product: body.lahdod-wc-single
 * Goal: Dark glass premium UI WITHOUT changing Woo functionality.
 * Supports: Classic Woo + Select2 checkout + Woo Blocks checkout/shop.
 */

/* =========================================================
   0) Variables + Theme bridge
========================================================= */
:root{
  --lahdod-cyan: var(--color-cyan, #00d4ff);
  --lahdod-violet: var(--color-violet, #7c3aed);
  /* Back-compat alias (some older rules used --lahdod-purple) */
  --lahdod-purple: var(--lahdod-violet);

  --lahdod-bg: var(--color-bg, #060d1a);
  --lahdod-surface: var(--color-bg-card, rgba(10, 22, 40, 0.72));
  --lahdod-surface-2: rgba(255,255,255,0.04);

  --lahdod-text: var(--color-text-primary, rgba(255,255,255,0.92));
  --lahdod-text-dim: rgba(255,255,255,0.72);

  --lahdod-border: var(--color-border, rgba(0, 212, 255, 0.16));
  --lahdod-border-soft: rgba(255,255,255,0.08);

  --lahdod-shadow: var(--shadow-card, 0 10px 30px rgba(0,0,0,0.35));
  --lahdod-radius: var(--radius-lg, 24px);
  --lahdod-radius-sm: 16px;
  --lahdod-gap: 22px;

  /* Shop cards */
  --lahdod-shop-card-min: 240px;
  --lahdod-shop-card-max: 330px;
  --lahdod-shop-img-h: 240px;

  /* Computed max widths (limit columns on large screens) */
  --lahdod-shop-max: calc((var(--lahdod-shop-card-max) * 4) + (var(--lahdod-gap) * 3));
}

/* Prefer dark form controls on Woo pages */
body.lahdod-wc:is(.lahdod-wc){ color-scheme: dark; }

/* Respect RTL */
html[dir="rtl"] body.lahdod-wc:is(.lahdod-wc){ direction: rtl; }

/* Allow optional column cap from body class */
body.lahdod-wc:is(.lahdod-wc).lahdod-shop-cols-2{ --lahdod-shop-max: calc((var(--lahdod-shop-card-max) * 2) + (var(--lahdod-gap) * 1)); }
body.lahdod-wc:is(.lahdod-wc).lahdod-shop-cols-3{ --lahdod-shop-max: calc((var(--lahdod-shop-card-max) * 3) + (var(--lahdod-gap) * 2)); }
body.lahdod-wc:is(.lahdod-wc).lahdod-shop-cols-4{ --lahdod-shop-max: calc((var(--lahdod-shop-card-max) * 4) + (var(--lahdod-gap) * 3)); }

/* =========================================================
   1) Base: wrapper, links, breadcrumbs, notices, widgets
========================================================= */
body.lahdod-wc:is(.lahdod-wc) .lahdod-woocommerce-main{
  color: var(--lahdod-text);
  /* القيم المنقولة من inline style في PHP (lahdod_wc_wrapper_start) */
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 60vh;
}



/* Theme container for Woo pages (provided by woocommerce.php) */
body.lahdod-wc:is(.lahdod-wc) .container.lahdod-woocommerce-main{
  max-width: 1240px;
  padding-left: 16px;
  padding-right: 16px;
}


body.lahdod-wc:is(.lahdod-wc) #secondary,
body.lahdod-wc:is(.lahdod-wc) .woocommerce-sidebar,
body.lahdod-wc:is(.lahdod-wc) .woocommerce-widget-area{
  display:none;
}

body.lahdod-wc:is(.lahdod-wc) .woocommerce a{
  color: var(--lahdod-cyan);
  text-decoration:none;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce a:hover{ color:#fff; }

body.lahdod-wc:is(.lahdod-wc) .woocommerce-breadcrumb{
  color: var(--lahdod-text-dim);
  margin: 0 0 14px;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce-breadcrumb a{ color: rgba(255,255,255,0.82); }
body.lahdod-wc:is(.lahdod-wc) .woocommerce-breadcrumb a:hover{ color:#fff; }

/* Hide clutter widgets on Woo pages */
body.lahdod-wc:is(.lahdod-wc) :is(
  .search-form,
  .wp-block-search,
  .widget_search,
  .widget_product_search,
  .widget_pages,
  .widget_archive,
  .widget_categories,
  .wp-block-archives,
  .wp-block-categories
){
  display:none;
}

/* Notices */
body.lahdod-wc:is(.lahdod-wc) .woocommerce .woocommerce-notices-wrapper > *{ margin: 0 0 14px; }

body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(.woocommerce-message,.woocommerce-error,.woocommerce-info){
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--lahdod-surface);
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--lahdod-text);
  box-shadow: var(--lahdod-shadow);
}

/* Hide default Woo icons (RTL/mobile odd squares) */
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(.woocommerce-message,.woocommerce-error,.woocommerce-info)::before{
  display:none;
  content:none !important;
}

/* =========================================================
   2) Forms (Classic Woo + Select2)
========================================================= */
body.lahdod-wc:is(.lahdod-wc) .woocommerce form .form-row label{
  color: var(--lahdod-text);
  font-weight: 800;
}

body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  textarea,
  select
){
  background: var(--lahdod-surface-2);
  border: 1px solid rgba(0, 212, 255, 0.14);
  color: var(--lahdod-text);
  border-radius: var(--lahdod-radius-sm);
  padding: 12px 14px;
  outline: none;
  box-shadow: none;
}

body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(input,textarea)::placeholder{
  color: rgba(255,255,255,0.55);
}

body.lahdod-wc:is(.lahdod-wc) .woocommerce textarea{ min-height: 120px; }

body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(input,textarea,select):focus{
  border-color: rgba(0, 212, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.10);
}

/* Select2 (classic checkout) */
body.lahdod-wc:is(.lahdod-wc) .woocommerce .select2-container--default .select2-selection--single{
  background: var(--lahdod-surface-2);
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: var(--lahdod-radius-sm);
  min-height: 56px;
  box-shadow: none;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce .select2-container--default .select2-selection--single .select2-selection__rendered{
  color:#fff;
  line-height: 54px;
  padding-right: 14px;
  padding-left: 38px;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow{
  height:56px;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce .select2-container--default .select2-dropdown{
  background: rgba(7, 18, 32, 0.96);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 16px;
  overflow:hidden;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce .select2-container--default .select2-search--dropdown .select2-search__field{
  background: var(--lahdod-surface-2);
  border: 1px solid rgba(0, 212, 255, 0.14);
  color: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
}

/* Chrome Autofill fix */
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(input,textarea,select):-webkit-autofill,
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(input,textarea,select):-webkit-autofill:hover,
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(input,textarea,select):-webkit-autofill:focus{
  -webkit-text-fill-color: var(--lahdod-text);
  caret-color: #fff;
  box-shadow: 0 0 0px 1000px var(--lahdod-surface-2) inset;
  -webkit-box-shadow: 0 0 0px 1000px var(--lahdod-surface-2) inset;
  transition: background-color 600000s ease-in-out 0s;
}

/* =========================================================
   3) Buttons
========================================================= */
/* Ensure all Woo buttons inherit theme font */
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(
  a.button,
  button.button,
  input.button,
  #respond input#submit,
  .button,
  .wc-block-components-button
){
  font-family: inherit;
}

body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(a.button,button.button,input.button,#respond input#submit,.button){
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--lahdod-cyan), var(--lahdod-violet));
  color: #fff;
  box-shadow: 0 16px 36px -18px rgba(0, 212, 255, 0.42);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(a.button,button.button,input.button,#respond input#submit,.button):hover{
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -18px rgba(0, 212, 255, 0.42);
  color: #fff;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce .button:disabled,
body.lahdod-wc:is(.lahdod-wc) .woocommerce .button[disabled]{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Secondary buttons */
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(.button.wc-backward,a.button.wc-backward,.button.alt:not(.checkout),a.button.alt:not(.checkout)){
  background: rgba(255, 255, 255, 0.06);
  color: var(--lahdod-text);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: none;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(.button.alt:not(.checkout),a.button.alt:not(.checkout),.button.wc-backward,a.button.wc-backward):hover{
  background: rgba(0, 212, 255, 0.10);
  border-color: rgba(0, 212, 255, 0.24);
}

/* =========================================================
   4) Tables
========================================================= */
body.lahdod-wc:is(.lahdod-wc) .woocommerce table.shop_table{
  width: 100%;
  background: var(--lahdod-surface);
  border: 1px solid rgba(0, 212, 255, 0.14);
  border-radius: 22px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

/* ── Mobile: جدول السلة يلتف بـ overflow-x:auto ──────────── */

body.lahdod-wc:is(.lahdod-wc) .woocommerce table.shop_table :is(th,td){
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  color: var(--lahdod-text);
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce table.shop_table thead th{
  border-top: none;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 1000;
}
body.lahdod-wc:is(.lahdod-wc) .woocommerce table.shop_table a{ color: var(--lahdod-cyan); }

/* =========================================================
   5) SHOP / ARCHIVES — compact cards + deterministic grid
   Body class provided by theme: body.lahdod-wc-products
========================================================= */

/* Hide ordering (optional) */
body.lahdod-wc-products .woocommerce-ordering{
  display:none;
}

body.lahdod-wc-products .woocommerce-result-count{
  display:none;
}


/* Wider container for product listings */
body.lahdod-wc-products .container.lahdod-woocommerce-main{
  max-width: calc(var(--lahdod-shop-max) + 64px);
  padding-bottom: 72px;
}

/* Kill legacy clearfix pseudo elements (break grid) */
body.lahdod-wc-products :is(ul.products,.woocommerce ul.products)::before,
body.lahdod-wc-products :is(ul.products,.woocommerce ul.products)::after{
  display:none;
}

/* Reset lists */
body.lahdod-wc-products .woocommerce :is(ul.products,.wc-block-grid__products,.wp-block-woocommerce-product-template){
  list-style:none;
  padding:0;
  margin:0;
}

/* Deterministic grid (Classic + Blocks) */
body.lahdod-wc-products :is(
  ul.products,
  .woocommerce ul.products,
  ul.wc-block-grid__products,
  ul.wp-block-woocommerce-product-template,
  .wp-block-woocommerce-product-template,
  .wp-block-woocommerce-all-products ul.wc-block-grid__products
){
  display:grid !important;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, var(--lahdod-shop-card-min)), var(--lahdod-shop-card-max))
  ) !important;
  gap: var(--lahdod-gap) !important;
  width:100% !important;
  max-width: var(--lahdod-shop-max) !important;
  margin: 0 auto 72px !important;
  justify-content:center !important;
  align-content:start !important;
  float:none !important;
}

/* Product card (Classic + Blocks) */
body.lahdod-wc-products :is(
  ul.products li.product,
  .woocommerce ul.products li.product,
  li.wc-block-grid__product,
  .wc-block-grid__products > li,
  .wp-block-woocommerce-product-template > li
){
  float:none !important;
  width:auto !important;
  margin:0 !important;
  justify-self:center !important;
  max-width: var(--lahdod-shop-card-max) !important;

  background: var(--lahdod-surface) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 24px !important;
  box-shadow: var(--lahdod-shadow);
  padding: 14px !important;

  display:flex !important;
  flex-direction:column !important;
  height:100% !important;

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

body.lahdod-wc-products :is(
  ul.products li.product:hover,
  .woocommerce ul.products li.product:hover,
  li.wc-block-grid__product:hover,
  .wc-block-grid__products > li:hover,
  .wp-block-woocommerce-product-template > li:hover
){
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.22) !important;
  background: rgba(12, 26, 46, 0.62) !important;
}

/* Card links */
body.lahdod-wc-products :is(
  ul.products li.product a,
  .woocommerce ul.products li.product a
){
  text-decoration:none;
}

/* Product image */
body.lahdod-wc-products :is(
  ul.products li.product a img,
  .woocommerce ul.products li.product a img,
  .wc-block-grid__product-image img,
  .wc-block-grid__product img,
  .wp-block-woocommerce-product-image img
){
  width:100% !important;
  height:auto !important;
  max-height: var(--lahdod-shop-img-h) !important;
  object-fit: cover !important;
  aspect-ratio: 1 / 1;
  border-radius: 18px !important;
  margin: 0 0 12px !important;
  display:block !important;
}

/* Title */
body.lahdod-wc-products :is(
  .woocommerce-loop-product__title,
  .wc-block-grid__product-title,
  .wc-block-components-product-name,
  .wp-block-post-title
){
  color:#fff !important;
  font-size: 1.02rem !important;
  font-weight: 900 !important;
  margin: 10px 0 6px !important;
  padding:0 !important;
}

/* Price */
body.lahdod-wc-products :is(
  .price,
  .wc-block-grid__product-price,
  .wc-block-components-product-price
){
  color: var(--lahdod-cyan) !important;
  font-weight: 900 !important;
  font-size: 1.08rem !important;
  margin: 0 0 12px !important;
}

/* Add-to-cart button (full width) */
body.lahdod-wc-products :is(
  a.button,
  .button,
  .wc-block-grid__product-add-to-cart a,
  .wc-block-grid__product-add-to-cart button,
  .wc-block-grid__product-add-to-cart .wp-block-button__link,
  .wc-block-grid__product-add-to-cart .wp-element-button
){
  width:100% !important;
  text-align:center !important;
  border-radius: 999px !important;
  padding: 11px 18px !important;
  font-size: 0.95rem !important;
  margin-top:auto !important;
}

/* ── Mobile Responsive Grid ──────────────────────────────────────
   المنطق:
   • < 400px  → عمود واحد (الشاشات الصغيرة جداً: بطاقة كاملة العرض)
   • 400–680px → عمودان مضبوطان مع حجم أدنى مريح (160px كحد أدنى)
   • 680px+    → تعود CSS Variables العادية للعمل تلقائياً
──────────────────────────────────────────────────────────────── */

/* 1️⃣  شاشات صغيرة جداً (≤ 400px) — عمود واحد */
@media (max-width: 400px){
  body.lahdod-wc-products :is(
    ul.products,
    .woocommerce ul.products,
    ul.wc-block-grid__products,
    ul.wp-block-woocommerce-product-template,
    .wp-block-woocommerce-product-template
  ){
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    max-width: 100% !important;
  }

  /* بطاقة كاملة العرض — لا حد أقصى */
  body.lahdod-wc-products :is(
    ul.products li.product,
    .woocommerce ul.products li.product,
    li.wc-block-grid__product,
    .wc-block-grid__products > li,
    .wp-block-woocommerce-product-template > li
  ){
    max-width: 100% !important;
    justify-self: stretch !important;
  }

  /* صورة أطول قليلاً لملء العرض */
  body.lahdod-wc-products :is(
    ul.products li.product a img,
    .woocommerce ul.products li.product a img,
    .wc-block-grid__product-image img
  ){
    max-height: 220px !important;
  }

  body.lahdod-wc-products :is(
    .woocommerce-loop-product__title,
    .wc-block-grid__product-title,
    .wc-block-components-product-name
  ){
    font-size: 1.05rem !important;
  }
}

/* 2️⃣  جوال عادي (401–679px) — عمودان محسّنان */
@media (min-width: 401px) and (max-width: 679px){
  body.lahdod-wc-products :is(
    ul.products,
    .woocommerce ul.products,
    ul.wc-block-grid__products,
    ul.wp-block-woocommerce-product-template,
    .wp-block-woocommerce-product-template
  ){
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-width: 100% !important;
  }

  /* بطاقة مرنة داخل عمودها */
  body.lahdod-wc-products :is(
    ul.products li.product,
    .woocommerce ul.products li.product,
    li.wc-block-grid__product,
    .wc-block-grid__products > li,
    .wp-block-woocommerce-product-template > li
  ){
    max-width: 100% !important;
    justify-self: stretch !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  /* صورة مربعة مضغوطة */
  body.lahdod-wc-products :is(
    ul.products li.product a img,
    .woocommerce ul.products li.product a img,
    .wc-block-grid__product-image img
  ){
    max-height: 140px !important;
    border-radius: 13px !important;
    margin-bottom: 8px !important;
  }

  /* نص أصغر ليتناسب */
  body.lahdod-wc-products :is(
    .woocommerce-loop-product__title,
    .wc-block-grid__product-title,
    .wc-block-components-product-name
  ){
    font-size: 0.82rem !important;
    margin: 6px 0 4px !important;
    line-height: 1.3 !important;
    /* منع تجاوز النص وطوله خطان كحد أقصى */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }

  /* سعر أصغر */
  body.lahdod-wc-products :is(
    .price,
    .wc-block-grid__product-price,
    .wc-block-components-product-price
  ){
    font-size: 0.88rem !important;
    margin: 0 0 8px !important;
  }

  /* زر "احصل عليه" — padding أصغر */
  body.lahdod-wc-products :is(
    a.button,
    .button,
    .wc-block-grid__product-add-to-cart a,
    .wc-block-grid__product-add-to-cart button,
    .wc-block-grid__product-add-to-cart .wp-block-button__link
  ){
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    border-radius: 999px !important;
  }
}

/* 3️⃣  تابلت صغير (680–767px) — عمودان مريحان */
@media (min-width: 680px) and (max-width: 767px){
  body.lahdod-wc-products :is(
    ul.products,
    .woocommerce ul.products,
    ul.wc-block-grid__products,
    ul.wp-block-woocommerce-product-template
  ){
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }
}

/* =========================================================
   6) SINGLE PRODUCT — premium two-card layout (responsive)
   Body class provided by theme: body.lahdod-wc-single
========================================================= */

/* Ensure wrapper is wide enough */
body.lahdod-wc-single .container.lahdod-woocommerce-main{
  max-width: 1180px !important;
}

/* Kill Woo floats that can fight with grid */
body.lahdod-wc-single .woocommerce div.product div.images,
body.lahdod-wc-single .woocommerce div.product div.summary{
  float: none !important;
  width: 100% !important;
}



/* Card surfaces */
body.lahdod-wc-single :is(
  .woocommerce-product-gallery,
  .woocommerce div.product .summary,
  .woocommerce div.product .entry-summary
){
  background: var(--lahdod-surface);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--lahdod-shadow);
  min-width: 0 !important;
}


/* Gallery */
body.lahdod-wc-single .woocommerce-product-gallery{
  position: relative;
  overflow: hidden;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
body.lahdod-wc-single .woocommerce-product-gallery .flex-viewport{ width:100% !important; }
body.lahdod-wc-single .woocommerce-product-gallery :is(img, img.wp-post-image, img.woocommerce-placeholder){
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  max-height: 540px !important;
  object-fit: contain !important;
  border-radius: 16px !important;
  display:block !important;
  margin:0 !important;
}
body.lahdod-wc-single .woocommerce-product-gallery__trigger{
  position:absolute !important;
  top:14px;
  right:14px;
  left:auto;
  z-index:10;
}

/* Summary typography */
body.lahdod-wc-single .woocommerce div.product .product_title{
  color:#fff;
  font-weight: 1000;
  margin: 0 0 10px;
  letter-spacing: .2px;
}
body.lahdod-wc-single .woocommerce div.product :is(p.price, span.price){
  color: var(--lahdod-cyan) !important;
  font-weight: 1000;
  margin: 0 0 14px;
}
body.lahdod-wc-single .woocommerce div.product .woocommerce-product-details__short-description{
  color: rgba(255,255,255,0.86);
  line-height: 1.85;
  font-size: 0.98rem;
  margin: 0 0 16px;
}
body.lahdod-wc-single .woocommerce div.product .woocommerce-product-details__short-description :is(ul,ol){
  margin: 10px 0 0 0;
  padding-inline-start: 18px;
}
body.lahdod-wc-single .woocommerce div.product .woocommerce-product-details__short-description li{ margin: 6px 0; }

/* Meta: keep clean */
body.lahdod-wc-single .woocommerce div.product .product_meta .posted_in{ display:none; }

/* Add to cart sizing */
body.lahdod-wc-single .woocommerce div.product form.cart{
  width:100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  /* الجوال (default): عمود واحد مع مسافة بين الكمية والزر */
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}
/* حاوية الكمية */
body.lahdod-wc-single .woocommerce div.product form.cart .quantity{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0 !important;
}
body.lahdod-wc-single .woocommerce div.product form.cart .quantity input.qty{
  min-height: 54px;
  border-radius: 16px;
  width: 110px;
  text-align:center;
  flex-shrink: 0;
}
body.lahdod-wc-single .woocommerce div.product form.cart button.single_add_to_cart_button{
  width: 100% !important;
  min-height: 54px;
  padding: 14px 18px;
  font-weight: 1000;
  font-size: 15px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit !important;
}
/* ≥992px: صف واحد grid (الكمية + الزر بجانب بعض) */

/* 480px: تأكيد عمودي */


/* Tabs (Description) */
body.lahdod-wc-single .woocommerce div.product .woocommerce-tabs{ margin-top: 18px; }

body.lahdod-wc-single .woocommerce-tabs ul.tabs{
  position: static !important;
  padding:0 !important;
  margin: 0 0 14px !important;
  list-style:none;
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  border:0 !important;
}

body.lahdod-wc-single .woocommerce-tabs ul.tabs li{
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  background:transparent !important;
  float:none !important;
  position: static !important;
}

body.lahdod-wc-single .woocommerce-tabs ul.tabs li a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  font-weight: 900;
  text-decoration:none !important;
  line-height: 1 !important;
  font-family: inherit !important;
  position: static !important;
}

body.lahdod-wc-single .woocommerce-tabs ul.tabs li.active a,
body.lahdod-wc-single .woocommerce-tabs ul.tabs li a:hover{
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.26);
  color:#fff;
}

body.lahdod-wc-single .woocommerce-tabs .panel,
body.lahdod-wc-single .woocommerce div.product .woocommerce-tabs div.panel,
body.lahdod-wc:is(.lahdod-wc).single-product .woocommerce div.product .woocommerce-tabs div.panel{
  background: var(--lahdod-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  box-shadow: var(--lahdod-shadow);
  padding: 40px 40px 40px 40px;
  color: rgba(255,255,255,0.88);
  line-height: 1.9;
  margin-top: 0;
  position: relative !important;
  overflow: hidden !important;
}
/* خط علوي متدرج */
body.lahdod-wc-single .woocommerce-tabs .panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--lahdod-cyan), var(--lahdod-violet));
}

/* ── المحتوى داخل الوصف ──────────────────────────────── */
body.lahdod-wc-single .woocommerce-tabs .panel h2,
body.lahdod-wc-single .woocommerce-tabs .panel h3,
body.lahdod-wc-single .woocommerce-tabs .panel h4 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 28px 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,212,255,0.12);
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  display: flex;
  align-items: center;
  gap: 10px;
}
body.lahdod-wc-single .woocommerce-tabs .panel h2:first-child,
body.lahdod-wc-single .woocommerce-tabs .panel h3:first-child {
  margin-top: 0;
}

body.lahdod-wc-single .woocommerce-tabs .panel p {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 18px;
}

/* قوائم مرقّمة وغير مرقّمة */
body.lahdod-wc-single .woocommerce-tabs .panel ol,
body.lahdod-wc-single .woocommerce-tabs .panel ul {
  padding-right: 0;
  padding-left: 0;
  margin: 0 0 20px;
  list-style: none;
}
body.lahdod-wc-single .woocommerce-tabs .panel ul li,
body.lahdod-wc-single .woocommerce-tabs .panel ol li {
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  line-height: 1.7;
  padding: 9px 0 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
body.lahdod-wc-single .woocommerce-tabs .panel ul li::before {
  content: '✓';
  color: var(--lahdod-cyan);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px; height: 20px;
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
body.lahdod-wc-single .woocommerce-tabs .panel ol {
  counter-reset: wc-desc-counter;
}
body.lahdod-wc-single .woocommerce-tabs .panel ol li {
  counter-increment: wc-desc-counter;
}
body.lahdod-wc-single .woocommerce-tabs .panel ol li::before {
  content: counter(wc-desc-counter);
  color: var(--lahdod-bg, #060d1f);
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--lahdod-cyan), var(--lahdod-violet));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* فواصل أفقية hr */
body.lahdod-wc-single .woocommerce-tabs .panel hr {
  border: none;
  border-top: 1px solid rgba(0,212,255,0.1);
  margin: 28px 0;
}

/* نصوص emoji كعناوين مساعدة */
body.lahdod-wc-single .woocommerce-tabs .panel strong {
  color: #fff;
  font-weight: 700;
}

/* ── responsive ────────────────────────────────────────── */


/* Hide related / upsells */
body.lahdod-wc-single :is(section.related.products, .related.products, .up-sells.upsells.products){
  display:none;
}

/* =========================================================
   7) CART + CHECKOUT (Classic)
========================================================= */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .woocommerce-cart-form{ margin-bottom: 22px; }

body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart-collaterals{
  display:grid;
  grid-template-columns: 1fr 380px;
  gap: var(--lahdod-gap);
  align-items:start;
}


/* Checkout classic grid */
body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout form.checkout{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap: var(--lahdod-gap);
  align-items:start;
}


/* Cards */
body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout form.checkout :is(#customer_details,#order_review){
  background: var(--lahdod-surface-2);
  border: 1px solid var(--lahdod-border-soft);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

/* Payment box */
body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout #payment{
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout #payment ul.payment_methods{ border:0; }
body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout #payment ul.payment_methods li{
  background: var(--lahdod-surface-2);
  border: 1px solid var(--lahdod-border-soft);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout #payment div.payment_box{
  background: rgba(0, 212, 255, 0.10);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 18px;
  color: var(--lahdod-text);
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout #payment div.payment_box::before{
  border-bottom-color: rgba(0, 212, 255, 0.10);
}

/* Place order sizing (Classic) */
body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout :is(#place_order, button#place_order, button#place_order.button){
  width: 100%;
  min-height: 58px;
  padding: 15px 22px;
  font-size: 16px;
  font-weight: 1000;
  border-radius: 999px;
}


/* =========================================================
   8) CHECKOUT (Woo Blocks) — fields + popover + buttons
========================================================= */

/* Inputs */
body.woocommerce-checkout :is(
  .wc-block-components-text-input input,
  .wc-block-components-textarea textarea,
  .wc-block-components-select select,
  .wc-block-components-combobox .components-combobox-control__input,
  .wc-block-components-form .components-base-control__field input,
  .wc-block-components-form .components-base-control__field textarea,
  .wc-block-components-form .components-base-control__field select
){
  background: var(--lahdod-surface-2);
  border: 1px solid rgba(0, 212, 255, 0.14);
  color: #fff;
  border-radius: var(--lahdod-radius-sm);
  min-height: 56px !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
  outline: none !important;
  color-scheme: dark !important;
}

/* Backdrop layer (common reason for “white fields” in Blocks) */
body.woocommerce-checkout :is(
  .wc-block-components-text-input .components-input-control__backdrop,
  .wc-block-components-textarea .components-input-control__backdrop,
  .wc-block-components-select .components-input-control__backdrop,
  .wc-block-components-combobox .components-input-control__backdrop
){
  background: var(--lahdod-surface-2) !important;
  border: 1px solid rgba(0, 212, 255, 0.14) !important;
  border-radius: var(--lahdod-radius-sm) !important;
  box-shadow: none !important;
}

body.woocommerce-checkout :is(
  .wc-block-components-text-input input::placeholder,
  .wc-block-components-textarea textarea::placeholder,
  .wc-block-components-combobox .components-combobox-control__input::placeholder
){
  color: rgba(255,255,255,0.55) !important;
}

body.woocommerce-checkout :is(
  .wc-block-components-text-input input:focus,
  .wc-block-components-textarea textarea:focus,
  .wc-block-components-select select:focus,
  .wc-block-components-combobox .components-combobox-control__input:focus
){
  border-color: rgba(0, 212, 255, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.10) !important;
}

/* Country field (closed state) */
body.woocommerce-checkout :is(.wc-block-components-address-form__country, .wc-block-components-country-input)
  .wc-blocks-components-select__container{
  width: 100% !important;
  max-width: 100% !important;
  background: rgba(7, 18, 32, 0.88) !important;
  border: 1px solid rgba(0, 212, 255, 0.18) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color-scheme: dark !important;
}
body.woocommerce-checkout :is(.wc-block-components-address-form__country, .wc-block-components-country-input)
  .wc-blocks-components-select__label{
  color: rgba(255,255,255,0.80) !important;
}
body.woocommerce-checkout :is(.wc-block-components-address-form__country, .wc-block-components-country-input)
  :is(.wc-blocks-components-select__select, select.wc-blocks-components-select__select){
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  min-height: 56px !important;
  padding: 0 16px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  color-scheme: dark !important;
}

/* Open dropdown popover (WP components renders via portal) */
body.woocommerce-checkout :is(
  .components-popover,
  .components-popover__content,
  .components-combobox-control__suggestions-container,
  .components-menu-group,
  [role="listbox"]
){
  background: rgba(7, 18, 32, 0.96) !important;
  border: 1px solid rgba(0, 212, 255, 0.18) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  color: #fff !important;
  color-scheme: dark !important;
}

/* Options buttons / rows */
body.woocommerce-checkout :is(
  .components-menu-item__button,
  [role="option"]
){
  background: transparent !important;
  color: rgba(255,255,255,0.92) !important;
  font-weight: 800 !important;
}

/* Hover / active option */
body.woocommerce-checkout :is(
  .components-menu-item__button:hover,
  [role="option"]:hover,
  [role="option"][aria-selected="true"]
){
  background: rgba(0, 212, 255, 0.14) !important;
  color: #fff !important;
}

/* Fallback: if browser shows native <select> list */
body.woocommerce-checkout :is(select, option){
  background-color: #081628 !important;
  color: #fff !important;
  color-scheme: dark !important;
}

/* Blocks place order / proceed buttons */
body.woocommerce-checkout :is(
  button.wc-block-components-checkout-place-order-button,
  .wc-block-checkout__actions button[type="submit"].wc-block-components-button,
  .wc-block-checkout__actions .wc-block-components-button
){
  width: 100% !important;
  min-height: 58px !important;
  padding: 15px 22px !important;
  font-size: 16px !important;
  font-weight: 1000 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--lahdod-cyan), var(--lahdod-violet)) !important;
  color: #fff !important;
  border: 0 !important;
  font-family: inherit !important;
}
body.woocommerce-checkout :is(
  button.wc-block-components-checkout-place-order-button,
  .wc-block-checkout__actions button[type="submit"].wc-block-components-button,
  .wc-block-checkout__actions .wc-block-components-button
):hover{ filter: brightness(1.07); }



/* =========================================================
   9) MY ACCOUNT — side nav + content cards
========================================================= */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .lahdod-woocommerce-main .woocommerce{
  display:flex;
  flex-wrap:wrap;
  gap: var(--lahdod-gap);
  align-items:stretch;
}

body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation{
  flex:0 0 280px;
  max-width:280px;
  background: var(--lahdod-surface-2);
  border:1px solid rgba(0,212,255,0.12);
  border-radius:22px;
  padding:14px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content{
  flex:1 1 520px;
  min-width:min(100%,520px);
  background: var(--lahdod-surface-2);
  border:1px solid rgba(0,212,255,0.12);
  border-radius:22px;
  padding:22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}



body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation ul{
  list-style:none;
  padding:0;
  margin:0;
}

body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px;
  border-radius:14px;
  color: rgba(255,255,255,0.86);
  font-weight:900;
  border:1px solid transparent;
  background: transparent;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation a:hover{
  background: rgba(0,212,255,0.10);
  border-color: rgba(0,212,255,0.22);
  color:#fff;
}

/* Addresses cards */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-Address{
  background: var(--lahdod-surface);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:20px;
  padding:16px;
  box-shadow: var(--lahdod-shadow);
}

/* =========================================================
   10) Small fixes
========================================================= */
/* RTL sale badge positioning */
html[dir="rtl"] body.lahdod-wc:is(.lahdod-wc) .woocommerce span.onsale{
  left: auto;
  right: 18px;
}

/* Prevent huge spacing in some themes */
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(.woocommerce-result-count, .products + .woocommerce-pagination){
  margin-top: 12px;
}
/* =========================================================
   Lahdod — FINAL Button + Tabs Polish (paste at very END)
   Scope: Woo only
========================================================= */

/* 0) Fix/alias: some rules use --lahdod-purple (keep compatibility) */
:root{
  --lahdod-purple: var(--lahdod-violet, #7c3aed);
  --lahdod-btn-h: 52px;
  --lahdod-btn-h-lg: 60px;
  --lahdod-btn-font: 15px;
  --lahdod-btn-font-lg: 16px;
}

/* 1) Global Woo buttons: size + cleaner glow (keeps your gradient) */
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(a.button, button.button, input.button, #respond input#submit, .button),
body.lahdod-wc:is(.lahdod-wc) .wc-block-components-button{
  min-height: var(--lahdod-btn-h);
  font-size: var(--lahdod-btn-font);
  padding: 12px 18px;
  border-radius: 999px;
  font-family: inherit;
  box-shadow: 0 14px 34px -18px rgba(0,212,255,0.55);
}

/* Hover: أقل “قفزة” وأكثر نعومة */
body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(a.button, button.button, input.button, #respond input#submit, .button):hover,
body.lahdod-wc:is(.lahdod-wc) .wc-block-components-button:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* 2) Shop/Archive “Add to cart” — forced premium gradient (fixes gray look) */
body.lahdod-wc-products :is(
  .woocommerce ul.products li.product a.button,
  ul.products li.product a.button,
  .wc-block-grid__product-add-to-cart a,
  .wc-block-grid__product-add-to-cart button,
  .wc-block-grid__product-add-to-cart .wp-element-button,
  .wc-block-product-add-to-cart a,
  .wc-block-product-add-to-cart button
){
  background: linear-gradient(135deg, var(--lahdod-cyan), var(--lahdod-purple));
  color: #fff;
  border: 0;
  width: 100%;
  min-height: 50px;
  font-size: 14px;
  opacity: 1;
}

/* 3) Single product “Add to cart” — bigger + more premium */
body.lahdod-wc:is(.lahdod-wc).single-product .woocommerce div.product form.cart button.single_add_to_cart_button,
body.lahdod-wc-single .woocommerce div.product form.cart button.single_add_to_cart_button,
body.lahdod-wc:is(.lahdod-wc).single-product form.cart :is(button.wp-element-button, .wp-element-button){
  min-height: var(--lahdod-btn-h-lg);
  font-size: var(--lahdod-btn-font-lg);
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--lahdod-cyan), var(--lahdod-purple));
  box-shadow: 0 18px 44px -20px rgba(0,212,255,0.60);
}

/* 4) Tabs (زر الوصف) — مقاس/تباين أوضح + نفس روح القالب */
body.lahdod-wc:is(.lahdod-wc).single-product .woocommerce-tabs ul.tabs{
  gap: 10px;
  margin: 0 0 14px;
}

body.lahdod-wc:is(.lahdod-wc).single-product .woocommerce-tabs ul.tabs li a{
  padding: 11px 16px;
  font-size: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
}

body.lahdod-wc:is(.lahdod-wc).single-product .woocommerce-tabs ul.tabs li.active a,
body.lahdod-wc:is(.lahdod-wc).single-product .woocommerce-tabs ul.tabs li a:hover{
  background: rgba(0,212,255,0.14);
  border-color: rgba(0,212,255,0.32);
  color: #fff;
}

/* 5) Mobile: buttons slightly smaller to avoid “chunky” look */
@media (max-width: 560px){
  body.lahdod-wc:is(.lahdod-wc) .woocommerce :is(a.button, button.button, input.button, #respond input#submit, .button),
  body.lahdod-wc:is(.lahdod-wc) .wc-block-components-button{
    min-height: 48px;
    font-size: 14px;
    padding: 11px 16px;
  }
}

/* =========================================================
   CART TOTALS & CHECKOUT ENHANCEMENTS (v4.8.0)
   ========================================================= */

/* ── Cart Totals box ─────────────────────────────────────── */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals {
  background: var(--lahdod-surface);
  border: 1px solid rgba(0, 212, 255, 0.16);
  border-radius: 24px;
  padding: 32px 28px;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals table {
  width: 100%;
  border-collapse: collapse;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals table th,
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals table td {
  padding: 10px 0;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.95rem;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals table th {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  text-align: right;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals .order-total th,
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals .order-total td {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--lahdod-cyan);
  border-bottom: none;
  padding-top: 16px;
}

/* Proceed to checkout button */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .wc-proceed-to-checkout {
  margin-top: 20px;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lahdod-cyan), var(--lahdod-violet));
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.3);
}

/* ── Shop: product card inter-gap fix ─────────────────────── */
/* تأكيد: لا تلاصق بين بطاقات المنتجات */
body.lahdod-wc-products :is(
  ul.products,
  .woocommerce ul.products,
  ul.wc-block-grid__products
){
  row-gap: var(--lahdod-gap);
  column-gap: var(--lahdod-gap);
}

/* ── Single product: spacing ──────────────────────────────── */
body.lahdod-wc-single .woocommerce-product-gallery__wrapper {
  gap: 8px;
}
body.lahdod-wc-single .woocommerce div.product .quantity {
  margin-bottom: 12px;
}

/* ── WooCommerce My Account ─────────────────────────────── */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation {
  background: var(--lahdod-surface);
  border: 1px solid rgba(0,212,255,0.14);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  display: flex !important;
  flex-direction: column;
  gap: 4px;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block !important;
  padding: 10px 16px;
  border-radius: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  transition: all .18s ease;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: rgba(0,212,255,0.1);
  color: var(--lahdod-cyan);
}

/* ── Mobile: WooCommerce cart totals ──────────────────────── */


/* =========================================================
   🛒 CART EMPTY STATE — v4.8.0
   تصميم احترافي لصفحة السلة الفارغة مع عرض المنتجات
   ========================================================= */

/* ── Wrapper ─────────────────────────────────────────────── */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .woocommerce-cart--empty,
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart-empty-message {
  text-align: center;
  padding: 60px 24px;
}

/* ── رسالة "السلة فارغة" ────────────────────────────────── */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart p.cart-empty {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  display: block !important;
}

/* أيقونة سلة كبيرة قبل النص */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart p.cart-empty::before {
  content: "🛒";
  display: block;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 20px;
  opacity: .85;
}

/* ── زر "العودة للمتجر" ─────────────────────────────────── */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart p.return-to-shop {
  margin-top: 24px;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart p.return-to-shop a.button {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--lahdod-cyan), var(--lahdod-violet));
  color: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 18px rgba(0,212,255,.28);
  text-decoration: none;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart p.return-to-shop a.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,212,255,.4);
}

/* ── Block-based empty cart ──────────────────────────────── */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .wp-block-woocommerce-empty-cart-message {
  text-align: center;
  padding: 48px 24px;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .wp-block-woocommerce-empty-cart-message h2 {
  color: #fff;
  font-size: clamp(20px,4vw,32px);
  margin-bottom: 16px;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .wp-block-woocommerce-empty-cart-message p {
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
}

/* ── Products suggested on empty cart ───────────────────── */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .woocommerce-cart-empty-products-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,212,255,.12);
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .woocommerce-cart-empty-products-section h2 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 24px;
  text-align: center;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .woocommerce-cart-empty-products-section ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%,220px),1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

/* =========================================================
   📱 RESPONSIVE FIXES — Cart, Checkout, Shop (v4.8.0)
   ========================================================= */

/* ── Cart page ───────────────────────────────────────────── */


/* ── Checkout ────────────────────────────────────────────── */


/* ── Shop archive ────────────────────────────────────────── */


/* ── Single product ──────────────────────────────────────── */


/* ── My Account ─────────────────────────────────────────── */


/* ── WooCommerce notices ─────────────────────────────────── */


/* =========================================================
   🛒 CROSS-SELLS & EMPTY CART PRODUCTS — v4.9.0
   تنسيق المنتجات المقترحة في صفحة السلة (فارغة أو ممتلئة)
   ========================================================= */

/* ── Cross-sells wrapper ─────────────────────────────────── */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  clear: both;
}

body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells > h2,
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells > h3 {
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  text-align: right;
}

/* Grid للمنتجات المقترحة */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* بطاقة منتج مقترح مُبسَّطة */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product {
  background: var(--lahdod-surface);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  overflow: hidden !important;
  transition: transform .2s ease, border-color .2s ease;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
}

/* صورة المنتج */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product a img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  display: block !important;
}

/* اسم المنتج */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

/* السعر */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product .price {
  font-size: 15px;
  font-weight: 800;
  color: var(--lahdod-cyan);
  margin: 0;
}

/* الـ short description في المنتجات المقترحة: نُخفيها */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product .woocommerce-product-details__short-description {
  display: none;
}

/* زر الإضافة للسلة */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product .button {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 50px;
  font-weight: 700;
}

/* ── Empty cart: block-based cross-sells ─────────────────── */
body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
}

/* إخفاء الـ short description في كل loops غير المنتج المفرد */
body.lahdod-wc:is(.lahdod-wc):not(.single-product) .woocommerce-product-details__short-description {
  display: none;
}
/* وفي صفحة المنتج المفرد: نُظهرها */
body.lahdod-wc-single .woocommerce-product-details__short-description {
  display: block !important;
  color: rgba(255,255,255,0.86);
  line-height: 1.85;
  font-size: 0.98rem;
  margin: 0 0 16px;
}

/* ── mobile cross-sells ──────────────────────────────────── */




/* =========================================================
   🛡️ LDC SHORTCODE PROTECTION — v5.0.0
   يمنع ظهور نموذج البطاقة الرقمية خارج صفحة المنتج المفرد
   CSS Layer 3 (يعمل مع طبقات PHP)
   ========================================================= */

/* ── إخفاء كل محتوى LDC في سياق غير المنتج ─────────────── */
/* في cart, shop, related, cross-sells, any loop */
/* ⚠️ v5.7.7: استثناء صفحة حسابي (.woocommerce-account) لعرض بطاقتي */
body.woocommerce-cart  [class*="ldc-"],
body.woocommerce-shop  [class*="ldc-"],
body.woocommerce-page:not(.single-product):not(.woocommerce-account) [class*="ldc-"],
body.lahdod-wc:is(.lahdod-wc):not(.single-product):not(.woocommerce-account) [class*="ldc-"],
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single):not(.woocommerce-account) [class*="ldc-"] {
  display: none;
  visibility: hidden !important;
  height: 0;
  overflow: hidden !important;
  padding: 0;
  margin: 0;
}

/* ── إخفاء الـ short description كلياً في cross-sells ───── */
body.lahdod-wc:is(.lahdod-wc) .cross-sells .woocommerce-product-details__short-description,
body.lahdod-wc:is(.lahdod-wc) .cross-sells .product_excerpt,
body.lahdod-wc:is(.lahdod-wc) .cross-sells p:not(.price),
body.lahdod-wc:is(.lahdod-wc) .related.products .woocommerce-product-details__short-description,
body.lahdod-wc:is(.lahdod-wc) .related.products .product_excerpt {
  display: none;
}

/* ── إخفاء في WooCommerce Blocks (Empty cart recommendations) */
.wp-block-woocommerce-cart [class*="ldc-"],
.wc-block-cart [class*="ldc-"],
.wp-block-woocommerce-cart .wc-block-components-product-summary [class*="ldc-"],
.wc-block-cart-items [class*="ldc-"] {
  display: none !important;
  height: 0;
  overflow: hidden !important;
}

/* الـ wc-block short description: نُخفي الـ HTML الطويل فيها */
.wp-block-woocommerce-cart .wc-block-components-product-summary,
.wc-block-cart .wc-block-components-product-summary {
  display: none !important;
}

/* ── Form inputs/iframes في loop products ─────────────────── */
/* منع أي form أو input من الظهور في product loops */
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single) ul.products form,
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single) ul.products input:not([type="submit"]):not([type="hidden"]):not([type="number"]),
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single) ul.products select,
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single) ul.products textarea,
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single) ul.products iframe,
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single) .cross-sells form,
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single) .cross-sells input:not([type="submit"]):not([type="hidden"]):not([type="number"]),
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single) .cross-sells select,
body.lahdod-wc:is(.lahdod-wc):not(.lahdod-wc-single) .cross-sells textarea {
  display: none;
}

/* ── صفحة المنتج المفرد: أعِد ظهور LDC ─────────────────── */
body.single-product [class*="ldc-"],
body.lahdod-wc-single [class*="ldc-"] {
  display: revert !important;
  visibility: visible !important;
  height: auto;
  overflow: visible !important;
}

/* الـ form.cart في single product — لا تُخفى */
body.lahdod-wc-single .woocommerce div.product form.cart input,
body.lahdod-wc-single .woocommerce div.product form.cart select,
body.lahdod-wc-single .woocommerce div.product form.cart textarea {
  display: block !important;
}


/* ================================================================
 * @media (max-width: 480px) — MERGED v5.3.0 (T1 Fix)
 * دُمجت 10 كتل منفصلة في كتلة واحدة لتحسين الصيانة
 * ================================================================ */
@media (max-width: 480px) {

.lahdod-woocommerce-main{
    padding-top: 80px;
    padding-bottom: 48px;
  }

body.lahdod-wc-single .woocommerce div.product form.cart{
    gap: 12px !important;
  }
  body.lahdod-wc-single .woocommerce div.product form.cart .quantity input.qty{
    min-height: 48px !important;
    width: 100px !important;
  }
  body.lahdod-wc-single .woocommerce div.product form.cart button.single_add_to_cart_button{
    min-height: 50px !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
  }

body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals {
    padding: 22px 16px;
    border-radius: 18px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 14px;
  }

/* Cart empty state */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart p.cart-empty::before { font-size: 44px; margin-bottom: 14px; }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart p.return-to-shop a.button {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Cart collaterals box */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals {
    padding: 20px 14px;
    border-radius: 16px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals table th,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart_totals table td {
    font-size: 13px;
    padding: 8px 0;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    font-size: 14px;
    padding: 12px 18px;
  }

  /* Cart form */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .woocommerce-cart-form {
    margin-bottom: 16px;
  }

body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout form.checkout :is(#customer_details, #order_review) {
    padding: 16px 14px;
    border-radius: 14px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout #payment ul.payment_methods li {
    padding: 10px;
    border-radius: 12px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout #payment div.payment_box {
    padding: 12px;
    border-radius: 12px;
    font-size: 13px;
  }

/* Product card bottom button spacing */
  body.lahdod-wc-products .lahdod-wc-card {
    padding: 18px 16px;
    gap: 12px;
  }
  body.lahdod-wc-products .lahdod-wc-card-footer {
    gap: 8px;
    flex-direction: column;
  }
  body.lahdod-wc-products .lahdod-wc-card-title {
    font-size: 14px;
  }
  body.lahdod-wc-products .lahdod-wc-card-price {
    font-size: 15px;
  }

body.lahdod-wc-single .product-summary-card {
    padding: 20px 16px;
    border-radius: 16px;
  }
  body.lahdod-wc-single .woocommerce div.product .price {
    font-size: 1.3rem !important;
  }
  body.lahdod-wc-single .woocommerce div.product form.cart .quantity {
    margin-bottom: 0 !important;
  }
  body.lahdod-wc-single .woocommerce-tabs .panel {
    padding: 20px 14px !important;
    border-radius: 14px !important;
  }
  body.lahdod-wc-single .woocommerce-tabs ul.tabs li a {
    font-size: 13px !important;
    padding: 10px 14px !important;
  }

body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 12px;
    border-radius: 14px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    padding: 8px 12px;
    font-size: 0.88rem;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-orders-table {
    font-size: 13px;
  }

body.lahdod-wc:is(.lahdod-wc) .woocommerce-message,
  body.lahdod-wc:is(.lahdod-wc) .woocommerce-error,
  body.lahdod-wc:is(.lahdod-wc) .woocommerce-info {
    padding: 12px 14px;
    font-size: 13px;
    gap: 10px;
    border-radius: 14px;
    flex-wrap: wrap;
  }
  body.lahdod-wc:is(.lahdod-wc) .woocommerce-message a.button,
  body.lahdod-wc:is(.lahdod-wc) .woocommerce-info a.button {
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 50px;
  }

body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells {
    margin-top: 32px;
    padding-top: 24px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product {
    padding: 12px;
    gap: 8px;
    border-radius: 14px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product a img {
    height: 100px;
    border-radius: 8px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product .price {
    font-size: 13px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product .button {
    font-size: 11px;
    padding: 8px 10px;
  }

}

/* @media (min-width: 992px) — MERGED v5.4.0 (5 → 1) */
@media (min-width: 992px) {

body.lahdod-wc-single .woocommerce div.product{
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 32px !important;
    align-items: start !important;
    grid-template-areas: "gallery summary";
  }
  /* RTL: keep image on the RIGHT, summary on the LEFT */
  html[dir="rtl"] body.lahdod-wc-single .woocommerce div.product{
    grid-template-areas: "summary gallery";
  }

  body.lahdod-wc-single .woocommerce div.product .woocommerce-product-gallery{ grid-area: gallery; }
  body.lahdod-wc-single .woocommerce div.product :is(.summary, .entry-summary){ grid-area: summary; }
  body.lahdod-wc-single .woocommerce div.product .woocommerce-tabs{ grid-column: 1 / -1 !important; }

body.lahdod-wc-single :is(
    .woocommerce-product-gallery,
    .woocommerce div.product .summary,
    .woocommerce div.product .entry-summary
  ){
    padding: 26px !important;
  }

body.lahdod-wc-single .woocommerce div.product form.cart{
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 14px;
    align-items: center;
    flex-direction: unset;
  }
  body.lahdod-wc-single .woocommerce div.product form.cart button.single_add_to_cart_button{
    min-height: 58px;
    padding: 16px 22px;
    font-size: 16px;
    white-space: nowrap;
  }

body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout :is(#place_order, button#place_order, button#place_order.button){
    min-height: 62px;
    padding: 16px 26px;
    font-size: 17px;
  }

body.woocommerce-checkout :is(
    button.wc-block-components-checkout-place-order-button,
    .wc-block-checkout__actions button[type="submit"].wc-block-components-button,
    .wc-block-checkout__actions .wc-block-components-button
  ){
    min-height: 62px !important;
    padding: 16px 26px !important;
    font-size: 17px !important;
  }

}

/* @media (max-width: 980px) — MERGED v5.4.0 (3 → 1) */
@media (max-width: 980px) {

body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cart-collaterals{ grid-template-columns: 1fr; }

body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout form.checkout{ grid-template-columns: 1fr; }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-checkout form.checkout :is(#customer_details,#order_review_heading,#order_review){ grid-column: 1; }

body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-navigation,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content{
    flex:1 1 100%;
    max-width:100%;
  }

}

/* @media (max-width: 768px) — MERGED v5.4.0 (2 → 1) */
@media (max-width: 768px) {

.lahdod-woocommerce-main{
    padding-top: 90px;
    padding-bottom: 60px;
  }

body.lahdod-wc-single .woocommerce-tabs .panel {
    padding: 32px 24px;
  }

}

/* @media (max-width: 767px) — MERGED v5.4.0 (2 → 1) */
@media (max-width: 767px) {

body.lahdod-wc:is(.lahdod-wc) .woocommerce-cart-form {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 22px;
  }
  body.lahdod-wc:is(.lahdod-wc) .woocommerce table.shop_table:not(.woocommerce-orders-table):not(.woocommerce-table--order-downloads) {
    min-width: 520px;
    font-size: 13px;
    border-radius: 16px;
  }
  body.lahdod-wc:is(.lahdod-wc) .woocommerce table.shop_table:not(.woocommerce-orders-table):not(.woocommerce-table--order-downloads) :is(th,td) {
    padding: 10px 8px;
  }
  body.lahdod-wc:is(.lahdod-wc) .woocommerce-cart-form .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 0;
  }
  body.lahdod-wc:is(.lahdod-wc) .woocommerce-cart-form .coupon {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  body.lahdod-wc:is(.lahdod-wc) .woocommerce-cart-form .coupon input#coupon_code {
    flex: 1 1 140px;
    min-width: 0;
  }

body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-cart .cross-sells ul.products li.product a img {
    height: 120px;
  }

}

/* =========================================================
   12) Lahdod License Server — Dark Theme Overrides
   License portal inline styles use light colors;
   override them to match the dark theme.
========================================================= */

/* Container */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] {
  color: var(--lahdod-text) !important;
}

/* Title */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] > h3 {
  color: #fff !important;
}

/* Table outer wrapper */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] > div[style*="overflow"] {
  background: var(--lahdod-surface) !important;
  border-color: var(--lahdod-border) !important;
}

/* Table */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] table {
  color: var(--lahdod-text) !important;
}

/* Table header */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] thead tr {
  background: rgba(0, 212, 255, 0.06) !important;
}

body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] th {
  color: var(--lahdod-text-dim) !important;
  border-bottom-color: var(--lahdod-border) !important;
}

/* Table cells */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] td {
  color: var(--lahdod-text) !important;
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

/* License key code */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] td code {
  background: rgba(0, 212, 255, 0.10) !important;
  color: var(--lahdod-cyan) !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0, 212, 255, 0.18) !important;
}

/* Subdued text in cells */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] td[style*="color:#6b7280"],
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] td span[style*="color:#9ca3af"] {
  color: var(--lahdod-text-dim) !important;
}

/* Reset button */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] button.button {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #f87171 !important;
  border: 1px solid rgba(248, 113, 113, 0.25) !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] button.button:hover {
  background: rgba(239, 68, 68, 0.22) !important;
  border-color: rgba(248, 113, 113, 0.45) !important;
}

/* Empty state */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] div[style*="dashed"] {
  background: var(--lahdod-surface) !important;
  border-color: var(--lahdod-border) !important;
  color: var(--lahdod-text-dim) !important;
}

/* Footer hint text */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] > p[style*="font-size:12px"] {
  color: var(--lahdod-text-dim) !important;
}

/* Success/warning messages */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] > div[style*="background:#ecfdf5"] {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #6ee7b7 !important;
}

body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="direction:rtl"] > div[style*="background:#fff7ed"] {
  background: rgba(251, 146, 60, 0.12) !important;
  border-color: rgba(251, 146, 60, 0.3) !important;
  color: #fdba74 !important;
}

/* Login prompt */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account .woocommerce-MyAccount-content div[style*="background:#fafafa"] {
  background: var(--lahdod-surface) !important;
  border-color: var(--lahdod-border) !important;
  color: var(--lahdod-text) !important;
}


/* =========================================================
   13) My Account — Premium Responsive v9.1.2
   ─────────────────────────────────────────────────────────
   Design: Stripe / Apple-level mobile account UI
   Standards: 44px touch targets, 8pt grid, WCAG AA
   RTL: Fully tested — label right, value left
   ─────────────────────────────────────────────────────────
   IMPORTANT: Uses maximum specificity to override both
   WooCommerce defaults AND earlier theme rules.
========================================================= */

/* ─── ALL SCREENS: Tame account action buttons ───────────── */
/* Override global 999px pill + 52px height for account area  */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-content :is(a.button, button.button, .button, .woocommerce-button, a.woocommerce-button) {
  min-height: 40px !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
  line-height: 1.4 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  width: auto !important;
  transition: all .15s ease !important;
}
body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-content :is(a.button, button.button, .button):hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0,212,255,.18) !important;
}

/* Submit/save buttons stay big */
body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-content form :is(button[type="submit"], input[type="submit"]) {
  width: 100% !important;
  min-height: 48px !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  margin-top: 10px !important;
  box-shadow: 0 8px 20px -6px rgba(0,212,255,.3) !important;
}

/* ─── TABLET: ≤ 980px — Nav becomes pills ────────────────── */
@media (max-width: 980px) {
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation {
    padding: 14px !important;
    border-radius: 16px !important;
    margin-bottom: 14px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 auto !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.04) !important;
    border: 1px solid rgba(255,255,255,.06) !important;
    min-height: 40px !important;
    line-height: 1.3 !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li.is-active a,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(0,212,255,.12) !important;
    border-color: rgba(0,212,255,.25) !important;
    color: var(--lahdod-cyan) !important;
  }
}

/* ═════════════════════════════════════════════════════════
   MOBILE: ≤ 768px — Full card transformation
   ═════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ─── Content area ──────────────────────────────────── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-content {
    padding: 0 !important;
  }

  /* ─── ORDERS TABLE → STACKED CARDS ─────────────────── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) table.woocommerce-orders-table,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce table.woocommerce-orders-table,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce table.shop_table.woocommerce-orders-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-collapse: separate !important;
    table-layout: auto !important;
    overflow: visible !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-orders-table thead {
    display: none !important;
    visibility: hidden !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-orders-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  /* ── Each order = glass card ────────────────────────── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-orders-table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--lahdod-surface) !important;
    border: 1px solid rgba(0,212,255,.08) !important;
    border-radius: 14px !important;
    padding: 4px 16px !important;
    gap: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
  }
  /* ── Each td = label:value row (FLEX ROW, not column!) ── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-orders-table tbody tr td {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.04) !important;
    border-top: none !important;
    font-size: 14px !important;
    color: var(--lahdod-text) !important;
    gap: 16px !important;
    line-height: 1.5 !important;
    background: transparent !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-orders-table tbody tr td:last-child {
    border-bottom: none !important;
  }
  /* ── data-title label (::before) — INLINE, not block ── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-orders-table tbody tr td::before {
    content: attr(data-title) !important;
    display: inline !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: rgba(255,255,255,.4) !important;
    text-transform: none !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* ── Inner button (View/Pay) ──────────────────────── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-orders-table td :is(a.button, a.woocommerce-button, .button) {
    min-height: 34px !important;
    padding: 7px 18px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    width: auto !important;
  }

  /* ─── DOWNLOADS TABLE → SAME CARD SYSTEM ───────────── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) table.woocommerce-table--order-downloads,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce table.shop_table.woocommerce-table--order-downloads {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-table--order-downloads thead {
    display: none !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-table--order-downloads tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-table--order-downloads tbody tr {
    display: flex !important;
    flex-direction: column !important;
    background: var(--lahdod-surface) !important;
    border: 1px solid rgba(0,212,255,.08) !important;
    border-radius: 14px !important;
    padding: 4px 16px !important;
    gap: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-table--order-downloads tbody tr td {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,.04) !important;
    border-top: none !important;
    font-size: 14px !important;
    color: var(--lahdod-text) !important;
    gap: 16px !important;
    line-height: 1.5 !important;
    background: transparent !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-table--order-downloads tbody tr td:last-child {
    border-bottom: none !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-table--order-downloads tbody tr td::before {
    content: attr(data-title) !important;
    display: inline !important;
    float: none !important;
    width: auto !important;
    flex: 0 0 auto !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: rgba(255,255,255,.4) !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-table--order-downloads td :is(a.button, .button) {
    min-height: 34px !important;
    padding: 7px 18px !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    width: auto !important;
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* ─── ADDRESSES → VERTICAL STACK ───────────────────── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-Addresses {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-Addresses :is(.col-1, .col-2) {
    width: 100% !important;
    float: none !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-Address {
    padding: 18px !important;
    border-radius: 14px !important;
    background: var(--lahdod-surface) !important;
    border: 1px solid rgba(0,212,255,.08) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-Address .woocommerce-Address-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid rgba(255,255,255,.06) !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-Address .woocommerce-Address-title h3 {
    font-size: 15px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    color: #fff !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-Address .woocommerce-Address-title .edit {
    font-size: 12px !important;
    padding: 5px 12px !important;
    border-radius: 8px !important;
    min-height: auto !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-Address address {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: var(--lahdod-text-dim) !important;
    padding: 4px 6px !important;
  }

  /* ─── EDIT ACCOUNT FORM ────────────────────────────── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-EditAccountForm fieldset {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    border-color: rgba(255,255,255,.08) !important;
    margin-bottom: 14px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-EditAccountForm fieldset legend {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #fff !important;
    padding: 0 8px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-EditAccountForm .woocommerce-form-row {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
    margin-bottom: 14px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-EditAccountForm .woocommerce-form-row label {
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 6px !important;
    display: block !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-EditAccountForm :is(input[type="text"], input[type="email"], input[type="password"]) {
    width: 100% !important;
    font-size: 15px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    min-height: 44px !important;
  }

  /* ─── ORDER DETAIL VIEW ────────────────────────────── */
  /* Order details section → standalone card */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-order-details {
    background: var(--lahdod-surface) !important;
    border: 1px solid rgba(0,212,255,.08) !important;
    border-radius: 14px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-order-details .shop_table {
    min-width: 0 !important;
    font-size: 13px !important;
    border-radius: 10px !important;
  }
  /* "تكرار الطلب" (order-again) button container */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) p.order-again {
    padding: 14px 0 4px !important;
    margin: 0 !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) p.order-again .button {
    width: 100% !important;
    max-height: none !important;
    min-height: 46px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px -4px rgba(0,212,255,.25) !important;
  }
  /* Customer details (billing/shipping in order view) → card */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-customer-details {
    background: var(--lahdod-surface) !important;
    border: 1px solid rgba(0,212,255,.08) !important;
    border-radius: 14px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-customer-details address {
    padding: 4px 6px !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
  }
  /* Order downloads section (inside order detail view) → card */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) section.woocommerce-order-downloads {
    background: var(--lahdod-surface) !important;
    border: 1px solid rgba(0,212,255,.08) !important;
    border-radius: 14px !important;
    padding: 18px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
  }
  /* Section headings inside transparent content area */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-order-details h2,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) section.woocommerce-order-downloads h2,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-customer-details h2 {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 14px !important;
  }

  /* ─── GENERAL SHOP TABLE IN ACCOUNT ────────────────── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce table.shop_table:not(.woocommerce-orders-table):not(.woocommerce-table--order-downloads) {
    min-width: 0 !important;
    font-size: 13px !important;
  }

  /* ─── LICENSE TABLE → HORIZONTAL SCROLL ────────────── */
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-content div[style*="direction:rtl"] table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    font-size: 13px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-content div[style*="direction:rtl"] > div[style*="overflow"] {
    border-radius: 14px !important;
  }
}

/* ─── SMALL PHONES: ≤ 480px ────────────────────────────── */
@media (max-width: 480px) {
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation {
    padding: 10px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul {
    gap: 6px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li a {
    padding: 7px 11px !important;
    font-size: 12px !important;
    min-height: 34px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-orders-table tbody tr,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-table--order-downloads tbody tr {
    padding: 2px 12px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-orders-table tbody tr td,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-table--order-downloads tbody tr td {
    font-size: 13px !important;
    padding: 10px 0 !important;
    gap: 10px !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-Address {
    padding: 14px 12px !important;
  }
}

/* ─── EXTRA SMALL: ≤ 360px ─────────────────────────────── */
@media (max-width: 360px) {
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li a {
    padding: 6px 9px !important;
    font-size: 11px !important;
  }
}

/* =========================================================
   14) My Account — Mobile App Shell v9.2.0
   ─────────────────────────────────────────────────────────
   Transforms the My Account page into a native-app experience:
   • Fixed bottom tab bar with SVG icons (iOS / Android style)
   • Glassmorphism frosted bar with safe-area support
   • Profile card at the top (mobile only)
   • Smooth icon glow on active tab
   ─────────────────────────────────────────────────────────
   Requires: assets/js/account-mobile.js (icon injection)
             PHP hook lahdod_account_profile_card()
   ========================================================= */

/* ─── Profile Card: hidden on desktop ───────────────────── */
.lahdod-account-profile-card {
  display: none;
}

/* ─── HARD RESET: cancel Section 13 tablet styles at mobile ─ */
/* Runs first so Section 14 fixed-bar rules apply cleanly.      */
@media (max-width: 768px) {
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 4px 6px !important;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: rgba(6, 12, 26, 0.94) !important;
    border: none !important;
    border-top: 1px solid rgba(0, 212, 255, 0.2) !important;
    z-index: 99999 !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 2px !important;
    justify-content: flex-start !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 auto !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 7px 13px !important;
    min-width: 62px !important;
    min-height: 56px !important;
    border-radius: 12px !important;
    border: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li.is-active a,
  body.lahdod-wc:is(.lahdod-wc).woocommerce-account:is(.woocommerce-account) .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(0, 212, 255, 0.09) !important;
    color: #00d4ff !important;
    border-color: transparent !important;
  }
}

/* ═════════════════════════════════════════════════════════
   MOBILE APP SHELL: ≤ 768px
   ═════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ─── Profile Card ──────────────────────────────────── */
  .lahdod-account-profile-card {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: var(--lahdod-surface, rgba(10, 22, 40, 0.72)) !important;
    border: 1px solid rgba(0, 212, 255, 0.12) !important;
    border-radius: 20px !important;
    padding: 16px 18px !important;
    margin-bottom: 20px !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2) !important;
  }

  .lahdod-account-avatar {
    flex-shrink: 0 !important;
  }

  .lahdod-account-avatar img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(0, 212, 255, 0.35) !important;
    object-fit: cover !important;
    display: block !important;
  }

  .lahdod-account-info {
    flex: 1 !important;
    text-align: right !important;
    min-width: 0 !important;
  }

  .lahdod-account-name {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    margin: 0 0 3px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    border: none !important;
    background: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .lahdod-account-email {
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    margin: 0 0 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .lahdod-account-since {
    font-size: 10.5px !important;
    color: rgba(0, 212, 255, 0.65) !important;
    margin: 0 !important;
    font-weight: 600 !important;
  }

  /* ─── Fixed Bottom Tab Bar ──────────────────────────── */
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    /* Frosted glass dark bar */
    background: rgba(6, 12, 26, 0.94) !important;
    backdrop-filter: saturate(180%) blur(24px) !important;
    -webkit-backdrop-filter: saturate(180%) blur(24px) !important;
    /* Top glow border */
    border: none !important;
    border-top: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 0 !important;
    /* Spacing */
    padding: 4px 6px !important;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px)) !important;
    margin: 0 !important;
    z-index: 99999 !important;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.4) !important;
  }

  /* Scrollable horizontal list — no scrollbar visible */
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    gap: 2px !important;
    padding: 0 !important;
    list-style: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none !important;
  }

  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 auto !important;
  }

  /* Each tab: icon stacked above label */
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 7px 13px !important;
    min-width: 62px !important;
    min-height: 56px !important;
    border-radius: 12px !important;
    border: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: color 0.15s ease, background 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Active + hover state */
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(0, 212, 255, 0.09) !important;
    color: #00d4ff !important;
  }

  /* SVG icon size */
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation .lahdod-nav-icon {
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    display: block !important;
  }

  /* Active tab: icon glow */
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active .lahdod-nav-icon {
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.55)) !important;
  }

  /* Logout tab: subtle red accent */
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul li[data-endpoint="customer-logout"] a {
    color: rgba(255, 100, 100, 0.45) !important;
  }
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul li[data-endpoint="customer-logout"] a:hover {
    background: rgba(255, 80, 80, 0.08) !important;
    color: #ff6464 !important;
  }

  /* ─── Content: clear the bottom bar ─────────────────── */
  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-content {
    padding-bottom: 90px !important;
  }
  body.lahdod-wc.woocommerce-account .lahdod-woocommerce-main {
    padding-bottom: 90px !important;
  }

} /* end @media max-width: 768px */

/* ─── Smaller phones: ≤ 480px ───────────────────────────── */
@media (max-width: 480px) {

  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    min-width: 54px !important;
    padding: 7px 9px !important;
    font-size: 9.5px !important;
    gap: 3px !important;
    min-height: 54px !important;
  }

  body.lahdod-wc.woocommerce-account .woocommerce-MyAccount-navigation .lahdod-nav-icon {
    width: 20px !important;
    height: 20px !important;
  }

  .lahdod-account-profile-card {
    padding: 14px 15px !important;
    gap: 12px !important;
  }

  .lahdod-account-avatar img {
    width: 48px !important;
    height: 48px !important;
  }

}


/* ═══════════════════════════════════════════════════════════════════ */
/* != ACCORDION-ATC  Product description accordion + inline ATC btn   */
/* Moved from customizer.php inline wp_add_inline_style — v9.3.1      */
/* Loads only on is_product() pages (controlled via PHP enqueue hook) */
/* ═══════════════════════════════════════════════════════════════════ */

/* ── Accordion ──────────────────────────────────────── */
.lahdod-acc-body {
    overflow: hidden;
    max-height: 230px;
    position: relative;
    transition: max-height .55s cubic-bezier(.4,0,.2,1);
}
.lahdod-acc-body.open {
    max-height: 4000px;
}
.lahdod-acc-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 90px;
    background: linear-gradient(transparent, var(--lahdod-surface, rgba(10,22,40,.97)));
    pointer-events: none;
    transition: opacity .45s;
    border-radius: 0 0 6px 6px;
}
.lahdod-acc-body.open .lahdod-acc-fade {
    opacity: 0;
    pointer-events: none;
}
.lahdod-acc-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; margin-top: 12px; padding: 11px 24px;
    background: rgba(0,212,255,.07); border: 1px solid rgba(0,212,255,.22);
    border-radius: 50px; color: #00d4ff; font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all .2s; direction: rtl;
}
.lahdod-acc-toggle:hover {
    background: rgba(0,212,255,.15);
    border-color: rgba(0,212,255,.5); color: #fff;
}

/* ── Inline Add-to-Cart button ──────────────────────── */
.lahdod-atc-wrap { margin-top: 24px; }
a.lahdod-atc-btn,
.lahdod-atc-btn {
    display: flex !important; align-items: center !important;
    justify-content: center !important; gap: 10px !important;
    width: 100% !important; padding: 14px 28px !important;
    background: linear-gradient(135deg, #00d4ff, #7c3aed) !important;
    color: #fff !important; font-size: 15px !important; font-weight: 700 !important;
    border: none !important; border-radius: 50px !important;
    cursor: pointer !important; text-decoration: none !important;
    font-family: inherit !important; transition: all .3s !important;
    box-shadow: 0 4px 20px rgba(0,212,255,.28) !important;
    direction: rtl !important; box-sizing: border-box !important;
}
a.lahdod-atc-btn:hover,
.lahdod-atc-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 32px rgba(0,212,255,.4) !important;
    color: #fff !important;
}
