/* B.Tech Storefront v5.5.0 — WooCommerce Product Cards, Single Product & Checkout Polish */
:root {
  --makaa-blue: #075fae;
  --makaa-navy: #102b4c;
  --makaa-pale: #eef6ff;
  --makaa-border: #dce8f4;
  --makaa-muted: #4b6075;
  --makaa-used: #854d0e;
  --makaa-used-bg: #fef3c7;
  --makaa-renewed: #065f46;
  --makaa-renewed-bg: #d1fae5;
}

.makaa-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-block-end: .55rem;
}
.makaa-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: .22rem .62rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
}
.makaa-badge--new { background: #e0f0ff; color: #06477f; }
.makaa-badge--used { background: var(--makaa-used-bg); color: var(--makaa-used); }
.makaa-badge--excellent { background: var(--makaa-renewed-bg); color: var(--makaa-renewed); }
.makaa-badge--grade { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }

/* Elevated WooCommerce Product Cards */
:where(.woocommerce ul.products > li.product:not(.product-category), .makaa-card) {
  border: 1px solid var(--makaa-border);
  border-radius: 1rem;
  background: #fff;
  color: var(--makaa-navy);
  box-shadow: 0 2px 10px rgb(16 43 76 / 6%);
  padding: 1rem;
  text-align: start;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
:where(.woocommerce ul.products > li.product:not(.product-category), .makaa-card):hover {
  transform: translateY(-3px);
  border-color: #93c5fd;
  box-shadow: 0 12px 26px rgb(16 43 76 / 11%);
}
:where(.woocommerce ul.products > li.product:not(.product-category), .makaa-card)
:where(.woocommerce-loop-product__title, .makaa-card-title) {
  color: var(--makaa-navy);
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.45;
  margin-block: .4rem;
}
:where(.woocommerce ul.products > li.product:not(.product-category), .makaa-card) .price {
  color: var(--makaa-navy);
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
:where(.woocommerce ul.products > li.product:not(.product-category), .makaa-card) .price del {
  color: var(--makaa-muted);
  opacity: 1;
  font-weight: 500;
  margin-inline-end: .35rem;
}
:where(.woocommerce ul.products > li.product:not(.product-category), .makaa-card) .price ins {
  color: #064e95;
  text-decoration: none;
}

/* Compact Spec Chips inside Shop Cards */
.makaa-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-block: .45rem .65rem;
}
.makaa-card-specs span {
  display: inline-block;
  padding: .16rem .5rem;
  border-radius: .35rem;
  background: #f1f5f9;
  color: #334155;
  font-size: .75rem;
  font-weight: 600;
}

:where(.woocommerce ul.products > li.product, .makaa-card)
:where(.add_to_cart_button, .makaa-order-button) {
  min-block-size: 42px;
  border-radius: .55rem;
  padding-inline: .9rem;
  background-color: var(--makaa-blue);
  color: #fff;
  font-weight: 700;
  width: 100%;
  text-align: center;
}
:where(.woocommerce ul.products > li.product, .makaa-card)
:where(.add_to_cart_button, .makaa-order-button):hover {
  background-color: #054a8a;
  color: #fff;
}
.makaa-card .makaa-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-block-start: .65rem;
  text-decoration: none;
}

/* Single Product Technical Specs Strip */
.makaa-single-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: .55rem;
  margin-block: 1rem;
}
.makaa-spec-chip {
  padding: .6rem .75rem;
  border-radius: .65rem;
  background: #f8fbff;
  border: 1px solid var(--makaa-border);
}
.makaa-spec-chip small {
  display: block;
  font-size: .74rem;
  color: var(--makaa-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.makaa-spec-chip strong {
  display: block;
  font-size: .9rem;
  color: var(--makaa-navy);
  margin-block-start: .15rem;
}

/* Single Product WhatsApp + Kuwait Trust Box */
.makaa-product-box {
  margin-block: 1.25rem;
  padding: 1.1rem;
  border-radius: .9rem;
  background: #f8fbff;
  border: 1px solid var(--makaa-border);
}
.makaa-wa-product-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  width: 100%;
  min-block-size: 46px;
  padding: .65rem 1.1rem;
  margin-block-end: .95rem;
  border-radius: .65rem;
  background: #0f766e;
  color: #fff !important;
  font-weight: 700;
  font-size: .94rem;
  text-decoration: none !important;
  transition: background-color .2s ease;
}
.makaa-wa-product-btn:hover {
  background: #115e59;
  color: #fff !important;
}
.makaa-product-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .88rem;
  color: var(--makaa-muted);
}
.makaa-product-trust strong {
  color: var(--makaa-navy);
}
.makaa-product-trust a {
  color: var(--makaa-blue);
  font-weight: 700;
}

/* Shop & Category Archive Header Polish */
.woocommerce .woocommerce-breadcrumb {
  font-size: .85rem;
  color: var(--makaa-muted);
  margin-bottom: .9rem;
}
.woocommerce .woocommerce-ordering select {
  border-radius: .55rem;
  border: 1px solid #cbd5e1;
  padding: .45rem .85rem;
  min-height: 40px;
  color: var(--makaa-navy);
  background-color: #fff;
  font-weight: 600;
}
.woocommerce nav.woocommerce-pagination ul {
  border: 0;
  display: inline-flex;
  gap: .35rem;
}
.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border-radius: .5rem;
  border: 1px solid var(--makaa-border);
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--makaa-blue);
  color: #fff;
  border-color: var(--makaa-blue);
}

/* Cart Page Harmony with Makaa Cart Layout Plugin */
@media (min-width: 1101px) {
  .woocommerce-cart .entry-content .woocommerce .cart-collaterals {
    position: sticky;
    top: 24px;
  }
}
.woocommerce-cart .cart-empty.woocommerce-info,
.woocommerce-cart .wc-empty-cart-message .woocommerce-info {
  border-radius: 1rem;
  border: 1px solid var(--makaa-border);
  background: #f8fbff;
  color: var(--makaa-navy);
  padding: 1.5rem;
  font-weight: 700;
}
.woocommerce-cart .return-to-shop a.button {
  border-radius: .65rem;
  background: var(--makaa-blue);
  color: #fff;
  font-weight: 700;
  padding: .75rem 1.4rem;
}
.woocommerce-cart .return-to-shop a.button:hover {
  background: #054a8a;
  color: #fff;
}
.makaa-cart-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
  margin-top: 1rem;
  padding-top: .95rem;
  border-top: 1px solid rgb(255 255 255 / 16%);
}
.makaa-cart-trust span {
  display: inline-flex;
  align-items: center;
  padding: .24rem .62rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  color: #e2e8f0;
  font-size: .75rem;
  font-weight: 700;
}

/* Checkout Form Polish (keeps Makaa Cart Layout white checkout button untouched) */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border-radius: .55rem;
  border: 1px solid #cbd5e1;
  padding: .6rem .8rem;
}
.woocommerce-checkout #place_order {
  border-radius: .65rem !important;
  background-color: var(--makaa-blue) !important;
  color: #fff !important;
  font-weight: 800 !important;
  min-block-size: 48px;
}
.woocommerce-checkout #place_order:hover {
  background-color: #054a8a !important;
}


/* ==========================================================================
   Cart Page Dark-Card Contrast & Shipping Calculator Overhaul (v3.1.0)
   Fixes unreadable dark text on dark navy Cart Totals card
   ========================================================================== */
.woocommerce-cart .entry-content .woocommerce .cart_totals,
.woocommerce-cart .entry-content .woocommerce .cart_totals th,
.woocommerce-cart .entry-content .woocommerce .cart_totals td,
.woocommerce-cart .entry-content .woocommerce .cart_totals p,
.woocommerce-cart .entry-content .woocommerce .cart_totals span:not(.select2-selection__rendered):not(.select2-selection__placeholder),
.woocommerce-cart .entry-content .woocommerce .cart_totals strong {
  color: #f8fafc !important;
}

/* Shipping Method Row (Flat rate / Free shipping / Local pickup) */
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method {
  list-style: none !important;
  display: grid;
  gap: 8px;
  margin: 0 0 10px !important;
  padding: 0 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method li {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / 9%);
  border: 1px solid rgb(255 255 255 / 16%);
  margin: 0 !important;
  color: #ffffff !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method li label {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: .92rem !important;
  margin: 0 !important;
  cursor: pointer;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method li .woocommerce-Price-amount,
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method li .amount {
  color: #6ee7b7 !important;
  font-weight: 800 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .woocommerce-shipping-destination {
  color: #cbd5e1 !important;
  font-size: .85rem !important;
  line-height: 1.5;
  margin: 6px 0 10px !important;
}

/* Calculate Shipping Toggle Link (no harsh dotted outline) */
.woocommerce-cart .entry-content .woocommerce .cart_totals a.shipping-calculator-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(59 130 246 / 18%);
  border: 1px solid rgb(147 197 253 / 35%);
  color: #bfdbfe !important;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none !important;
  outline: none !important;
  transition: background-color .18s ease, color .18s ease;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals a.shipping-calculator-button:hover {
  background: rgb(59 130 246 / 32%);
  color: #ffffff !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals a.shipping-calculator-button:focus-visible {
  outline: 2px solid #93c5fd !important;
  outline-offset: 2px;
}

/* Shipping Calculator Form Inside Dark Totals Card */
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgb(8 18 38 / 48%);
  border: 1px solid rgb(148 163 184 / 22%);
  text-align: start;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form .form-row {
  margin: 0 0 11px !important;
  padding: 0 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form label {
  display: block;
  color: #dbeafe !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  margin-bottom: 5px !important;
  text-align: start !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form .required {
  color: #fbbf24 !important;
  text-decoration: none;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form input.input-text,
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form select,
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form .select2-container--default .select2-selection--single {
  width: 100% !important;
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 9px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #0f2544 !important;
  padding: 0 12px !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #0f2544 !important;
  line-height: 40px !important;
  padding-inline: 0 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form button[name="calc_shipping"] {
  width: 100% !important;
  min-height: 42px !important;
  margin-top: 4px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: linear-gradient(135deg, #2563eb 0%, #075fae 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: .92rem !important;
  cursor: pointer;
  box-shadow: 0 6px 16px rgb(37 99 235 / 32%);
  transition: transform .16s ease, filter .16s ease;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .shipping-calculator-form button[name="calc_shipping"]:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Keep Checkout White CTA Button Crisp + Extra Polish on Totals & Trust Pills */
.woocommerce-cart .entry-content .woocommerce .cart_totals a.checkout-button {
  background: #ffffff !important;
  color: #0b2545 !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgb(0 0 0 / 22%) !important;
  text-decoration: none !important;
  transition: transform .16s ease, background-color .16s ease !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals a.checkout-button:hover {
  background: #e0f0ff !important;
  color: #075fae !important;
  transform: translateY(-1px);
}
.woocommerce-cart .entry-content .woocommerce .cart_totals .order-total .amount {
  color: #ffffff !important;
}
.makaa-cart-trust {
  gap: .5rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
}
.makaa-cart-trust span {
  padding: .3rem .72rem;
  font-size: .76rem;
  background: rgb(255 255 255 / 11%);
  border-color: rgb(255 255 255 / 20%);
  color: #e2e8f0 !important;
}

/* Left Cart Table Action Buttons Polish */
.woocommerce-cart .entry-content .woocommerce .woocommerce-cart-form .actions button[name="apply_coupon"] {
  background: #075fae !important;
  color: #ffffff !important;
  border-color: #075fae !important;
}
.woocommerce-cart .entry-content .woocommerce .woocommerce-cart-form .actions button[name="apply_coupon"]:hover {
  background: #054a8a !important;
}


/* v3.1.0 — WiBi-Style % OFF Discount Pill & Modern Kuwait Checkout Layout */
.woocommerce span.onsale.makaa-sale-pill {
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  color: #ffffff !important;
  font-size: .74rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  top: 12px !important;
  inset-inline-start: 12px !important;
  inset-inline-end: auto !important;
  box-shadow: 0 6px 14px rgb(220 38 38 / 28%);
}

/* Clean Shipping Note on Cart Totals Card */
.woocommerce-cart .entry-content .woocommerce .cart_totals .makaa-clean-ship-note {
  margin: 8px 0 0 !important;
  padding: 9px 12px !important;
  border-radius: 9px;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 14%);
  color: #dbeafe !important;
  font-size: .83rem !important;
  line-height: 1.5;
  text-align: start;
}

/* Hide Postcode Row Cleanly on Kuwait Checkout */
body.makaa-kw-checkout.woocommerce-checkout #billing_postcode_field,
body.makaa-kw-checkout.woocommerce-checkout #shipping_postcode_field {
  display: none !important;
}

/* Modern Checkout Card Styling */
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
  background: #ffffff;
  border: 1px solid #dce8f4;
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgb(16 43 76 / 5%);
}
.woocommerce-checkout #order_review {
  background: #f8fbff;
  border: 1px solid #d5e4f3;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgb(16 43 76 / 6%);
}


/* ==========================================================================
   v4.5.0 — Exclusive Compact WiBi-Style Shop Layout, Filter Sidebar & Pro Cards
   ========================================================================== */
body.makaa-shop-archive-v45 .woocommerce-products-header,
body.makaa-shop-archive-v45 .ast-woocommerce-container > .woocommerce-products-header {
  display: none !important;
}
body.makaa-shop-archive-v45 .ast-woocommerce-container {
  padding-top: 12px !important;
}
body.makaa-shop-archive-v45 .woocommerce-breadcrumb {
  margin: 0 0 6px !important;
  font-size: 12.5px !important;
  color: #64748b !important;
}

/* 1. Ultra-Compact Instant-Products Category Header (Zero wasted vertical space!) */
.makaa-cat-head-compact {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.makaa-cat-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.makaa-cat-title {
  margin: 0 !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0b1630 !important;
  line-height: 1.2 !important;
}
.makaa-cat-subpills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.makaa-subpill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.makaa-subpill:hover {
  background: #0b1630;
  border-color: #0b1630;
  color: #ffffff !important;
}
.makaa-subpill small {
  font-size: 11px;
  opacity: 0.7;
}
.makaa-subpill--accent {
  background: #0b1630;
  border-color: #0b1630;
  color: #ffffff !important;
}

/* 2. Two-Column WiBi Archive Shell (Left Filter Sidebar + Right Product Grid) */
.makaa-archive-shell {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.makaa-filter-backdrop,
.makaa-fs-mobile-head,
.makaa-mobile-filter-btn {
  display: none;
}
.makaa-filter-sidebar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 16px;
}
.makaa-fcard {
  border-bottom: 1px solid #eef2f7;
  padding: 10px 2px;
}
.makaa-fcard:first-child { padding-top: 2px; }
.makaa-fcard:last-of-type { border-bottom: 0; }
.makaa-fcard summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: #0b1630;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}
.makaa-fcard summary::-webkit-details-marker { display: none; }
.makaa-fcard summary::after {
  content: "▾";
  font-size: 12px;
  color: #64748b;
  transition: transform 0.15s;
}
.makaa-fcard:not([open]) summary::after {
  transform: rotate(-90deg);
}
.makaa-fcard-body {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.makaa-fcard-scroll {
  max-height: 210px;
  overflow-y: auto;
  padding-inline-end: 4px;
}
.makaa-price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 5px;
  align-items: center;
}
.makaa-price-inputs input {
  width: 100% !important;
  min-width: 0 !important;
  height: 32px !important;
  padding: 4px 6px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  background: #f8fafc !important;
}
.makaa-f-apply-sm {
  width: 100%;
  padding: 6px 10px !important;
  border-radius: 8px !important;
  background: #0b1630 !important;
  color: #ffffff !important;
  border: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  margin-top: 2px;
}
.makaa-fcheck {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  line-height: 1.3;
}
.makaa-fcheck input {
  margin: 0 !important;
  width: 15px !important;
  height: 15px !important;
  accent-color: #0b1630;
  flex-shrink: 0;
}
.makaa-fcheck small {
  margin-inline-start: auto;
  color: #94a3b8;
  font-size: 11px;
}
.makaa-f-reset {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
}

/* 3. Compact Floating Control Toolbar (Result Count + Per-Page Pills + Grid/List + Sort) */
.makaa-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.makaa-tb-left,
.makaa-tb-perpage,
.makaa-tb-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.makaa-tb-count {
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}
.makaa-tb-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}
.makaa-pp-pills {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}
.makaa-pp-btn {
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #334155 !important;
  text-decoration: none !important;
  line-height: 1.4;
}
.makaa-pp-btn:hover {
  background: #e2e8f0;
}
.makaa-pp-btn.is-active {
  background: #0b1630;
  color: #ffffff !important;
}
.makaa-view-toggle {
  display: inline-flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.makaa-view-toggle button {
  background: transparent !important;
  border: 0 !important;
  color: #64748b !important;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  min-height: 0 !important;
  border-radius: 6px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.makaa-view-toggle button.is-active {
  background: #ffffff !important;
  color: #0b1630 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.makaa-sort-form {
  margin: 0 !important;
}
.makaa-sort-sel {
  height: 33px !important;
  min-height: 33px !important;
  padding: 4px 10px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

/* 4. Compact 5-Column Pro Product Cards (Zero Clutter + Smaller Photo + Bottom-Right Used Badge!) */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 !important;
}
@media (min-width: 1280px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
  content: none !important;
}
.woocommerce ul.products > li.product:not(.product-category),
.makaa-card {
  width: 100% !important;
  margin: 0 !important;
  padding: 10px !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
}

/* Hide Astra Category Subtitle & Clutter inside Cards (Green-Crossed Items Removed!) */
.woocommerce ul.products > li.product .ast-woo-product-category,
.woocommerce ul.products > li.product .makaa-card-specs,
.woocommerce ul.products > li.product .makaa-card-img-note {
  display: none !important;
}

/* Compact Smaller Product Image Stage (~150px height so MORE products fit on screen!) */
.woocommerce ul.products > li.product .astra-shop-thumbnail-wrap,
.makaa-card .makaa-card-img-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8fafc !important;
  border-radius: 10px !important;
  padding: 8px !important;
  margin: 0 0 8px !important;
  height: 152px !important;
  overflow: hidden !important;
}
.woocommerce ul.products > li.product .astra-shop-thumbnail-wrap a.woocommerce-LoopProduct-link,
.woocommerce ul.products > li.product > a.woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  width: 100%;
  text-decoration: none !important;
}
.woocommerce ul.products > li.product .astra-shop-thumbnail-wrap img:not(.emoji):not(.wp-smiley),
.woocommerce ul.products > li.product > a > img.attachment-woocommerce_thumbnail:not(.emoji):not(.wp-smiley),
.makaa-card .makaa-card-img-wrap img:not(.emoji):not(.wp-smiley) {
  width: 100% !important;
  height: 136px !important;
  max-height: 136px !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  display: block !important;
}

/* BOLD, UNMISTAKABLE "Used / مستعمل" Badge in the BOTTOM-RIGHT Corner of the Product Image! */
.makaa-card-used-pill {
  position: absolute !important;
  bottom: 7px !important;
  right: 7px !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: #f59e0b !important;
  color: #1c1917 !important;
  border: 1.5px solid #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.32) !important;
  pointer-events: none;
}
/* Fallback when Astra does not wrap thumbnail in .astra-shop-thumbnail-wrap */
.woocommerce ul.products > li.product > .woocommerce-LoopProduct-link {
  position: relative !important;
}
.woocommerce ul.products > li.product > .woocommerce-LoopProduct-link > .makaa-card-used-pill {
  top: 116px !important;
  bottom: auto !important;
  right: 7px !important;
}

/* Clean 2-Line Clamped Title + Price + Perfectly Aligned Dark Navy Button */
.woocommerce ul.products > li.product .astra-shop-summary-wrap {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 0 !important;
}
.woocommerce ul.products > li.product .woocommerce-loop-product__title,
.makaa-card .makaa-card-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  color: #0b1630 !important;
  margin: 0 0 6px !important;
  min-height: 36px;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.woocommerce ul.products > li.product .price,
.makaa-card .price {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #0b1630 !important;
  margin: 0 0 8px !important;
}
.woocommerce ul.products > li.product a.button,
.woocommerce ul.products > li.product .add_to_cart_button,
.makaa-card .makaa-order-button {
  margin-top: auto !important;
  min-block-size: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: #0b1630 !important;
  color: #ffffff !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  border: 0 !important;
  transition: background 0.16s ease, transform 0.15s ease !important;
}
.woocommerce ul.products > li.product a.button:hover,
.woocommerce ul.products > li.product .add_to_cart_button:hover,
.makaa-card .makaa-order-button:hover {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* Optional Horizontal List View Mode (when visitor clicks List View icon) */
.makaa-archive-shell.is-list-view ul.products {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
.makaa-archive-shell.is-list-view ul.products > li.product {
  flex-direction: row !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 12px 16px !important;
}
.makaa-archive-shell.is-list-view ul.products > li.product .astra-shop-thumbnail-wrap {
  width: 130px !important;
  height: 110px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}
.makaa-archive-shell.is-list-view ul.products > li.product .astra-shop-thumbnail-wrap img:not(.emoji):not(.wp-smiley) {
  height: 96px !important;
}
.makaa-archive-shell.is-list-view ul.products > li.product .astra-shop-summary-wrap {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}
.makaa-archive-shell.is-list-view ul.products > li.product .woocommerce-loop-product__title {
  min-height: 0;
  margin: 0 !important;
  font-size: 14.5px !important;
  flex: 1;
}
.makaa-archive-shell.is-list-view ul.products > li.product a.button {
  width: auto !important;
  min-width: 130px !important;
  margin-top: 0 !important;
}

/* 5. Modern Floating Pagination Dock */
.woocommerce nav.woocommerce-pagination {
  margin: 22px 0 6px !important;
  text-align: center !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  padding: 6px 10px !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
  margin: 0 !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li a,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 11px !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li a:hover {
  background: #eff6ff !important;
  color: #2563eb !important;
  border-color: #bfdbfe !important;
}
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.current {
  background: #0b1630 !important;
  color: #ffffff !important;
  border-color: #0b1630 !important;
  box-shadow: 0 3px 10px rgba(11, 22, 48, 0.25) !important;
}
.makaa-page-meta {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-top: 6px;
}

/* Mobile Slide-Out Filter Drawer */
@media (max-width: 980px) {
  .makaa-archive-shell {
    grid-template-columns: 1fr;
  }
  .makaa-mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background: #0b1630 !important;
    color: #ffffff !important;
    border: 0 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer;
    min-height: 0 !important;
  }
  .makaa-filter-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(300px, 85vw);
    z-index: 99999;
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(-110%);
    transition: transform 0.22s ease;
  }
  [dir="rtl"] .makaa-filter-sidebar {
    transform: translateX(110%);
  }
  .makaa-archive-shell.is-filter-open .makaa-filter-sidebar {
    transform: translateX(0);
  }
  .makaa-archive-shell.is-filter-open .makaa-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 99998;
  }
  .makaa-fs-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
  }
  .makaa-fs-close {
    background: #f1f5f9 !important;
    border: 0 !important;
    width: 30px;
    height: 30px;
    border-radius: 8px !important;
    color: #0f172a !important;
    font-weight: 800;
    cursor: pointer;
    min-height: 0 !important;
    padding: 0 !important;
  }
}


/* ==========================================================================
   v4.5.1 — Zero White Gap Below Quick Ribbon (Eliminates Astra #primary 4em Margin!)
   ========================================================================== */
body.makaa-shop-archive-v45 #content.site-content,
body.makaa-shop-archive-v45 .site-content > .ast-container,
body.makaa-shop-archive-v45 #primary.content-area,
body.makaa-shop-archive-v45.ast-separate-container #primary,
body.makaa-shop-archive-v45.ast-plain-container #primary,
body.makaa-shop-archive-v45 #main.site-main,
body.makaa-shop-archive-v45 .ast-article-single {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body.makaa-shop-archive-v45.ast-separate-container .ast-woocommerce-container,
body.makaa-shop-archive-v45 .ast-woocommerce-container {
  padding-top: 8px !important;
  padding-bottom: 24px !important;
  margin-top: 0 !important;
}
body.makaa-shop-archive-v45 .woocommerce-breadcrumb {
  margin: 0 0 6px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}
body.makaa-shop-archive-v45 .woocommerce-notices-wrapper:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.makaa-shop-archive-v45 .makaa-cat-head-compact {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

/* Also eliminate Astra top gap on Makaa custom pages (Pre-Owned, Offers, Home, CCTV Quote) */
body.page:has(.makaa-page) #content.site-content,
body.page:has(.makaa-page) #primary.content-area,
body.page.ast-separate-container:has(.makaa-page) #primary,
body.page:has(.makaa-page) .ast-article-single,
body.page:has(.makaa-page) .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}


/* ==========================================================================
   v5.10.1 — Compact Corner Low-Stock Pill + WP-Emoji Protection + WA Price CTA
   ========================================================================== */
.woocommerce ul.products > li.product img.emoji,
.woocommerce ul.products > li.product img.wp-smiley,
.woocommerce ul.products > li.product .astra-shop-thumbnail-wrap img.emoji,
.woocommerce ul.products > li.product .astra-shop-thumbnail-wrap img.wp-smiley,
.makaa-card img.emoji,
.makaa-ui img.emoji {
  width: 1em !important;
  height: 1em !important;
  max-width: 1em !important;
  max-height: 1em !important;
  display: inline !important;
  margin: 0 0.15em !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  vertical-align: -0.1em !important;
}

.makaa-card-lowstock-pill {
  position: absolute !important;
  top: 7px !important;
  bottom: auto !important;
  inset-inline-end: 7px !important;
  inset-inline-start: auto !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  height: auto !important;
  max-height: 24px !important;
  padding: 2.5px 9px !important;
  border-radius: 999px !important;
  background: rgba(185, 28, 28, 0.94) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(185, 28, 28, 0.25) !important;
  pointer-events: none !important;
}
.makaa-card-lowstock-pill--two {
  background: rgba(217, 119, 6, 0.94) !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.24) !important;
}
.woocommerce ul.products > li.product > .woocommerce-LoopProduct-link > .makaa-card-lowstock-pill {
  top: 7px !important;
  bottom: auto !important;
  inset-inline-end: 7px !important;
  inset-inline-start: auto !important;
}
.makaa-ls-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
  flex-shrink: 0;
}
.makaa-ls-dot--red {
  background: #dc2626;
}
.makaa-ls-dot--amber {
  background: #d97706;
}
.makaa-ls-dot--blue {
  background: #2563eb;
}
.makaa-price-on-req {
  display: inline-block;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  color: #059669 !important;
}
.woocommerce ul.products > li.product a.button.makaa-wa-price-btn {
  background: #059669 !important;
  color: #ffffff !important;
  gap: 5px !important;
}
.woocommerce ul.products > li.product a.button.makaa-wa-price-btn:hover {
  background: #047857 !important;
  color: #ffffff !important;
}
.woocommerce ul.products > li.product a.button.makaa-wa-price-btn svg.makaa-btn-wa-ic {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
}


/* ==========================================================================
   v5.11.1 — Cart Summary & Checkout UI Precision Fixes (RTL & LTR)
   1) Cart Dark Card: Readable notice box, clean radio pills, hide raw destination
   2) Checkout Order Review: Remove detached heading border, full-width shipping
      cards (zero radio/Shipment overlap!)
   3) Checkout Form: Fix Select2/Select arrow overlap on Country & Governorate
      in RTL + visible label on House/Building/Flat (address_2)
   ========================================================================== */

/* --- 1) Cart Page Dark Navy Summary Card Fixes --- */
.woocommerce-cart .entry-content .woocommerce .cart_totals p.woocommerce-shipping-destination {
  display: none !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals tr.woocommerce-shipping-totals th {
  vertical-align: top !important;
  padding-top: 14px !important;
  font-weight: 800 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method li {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
  text-align: start !important;
  text-indent: 0 !important;
  margin: 0 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method li:has(input:checked) {
  background: rgba(56, 189, 248, 0.14) !important;
  border-color: #38bdf8 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method li input.shipping_method {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0 !important;
  accent-color: #38bdf8;
  cursor: pointer;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals ul#shipping_method li label {
  display: inline-block !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  line-height: 1.45 !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-align: start !important;
}

/* Fix unreadable pale-yellow notice box inside dark navy Cart Summary card! */
.woocommerce-cart .entry-content .woocommerce .cart_totals p.makaa-checkout-img-note {
  background: rgba(251, 191, 36, 0.13) !important;
  border: 1px solid rgba(252, 211, 77, 0.36) !important;
  color: #fef3c7 !important;
  border-radius: 11px !important;
  padding: 10px 12px !important;
  margin: 12px 0 4px !important;
  text-align: start !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals p.makaa-checkout-img-note span {
  color: #fef3c7 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
}
.woocommerce-cart .entry-content .woocommerce .cart_totals p.makaa-checkout-img-note svg {
  color: #fbbf24 !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

/* --- 2) Checkout Page Heading & Order Summary Card Fixes --- */
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3 {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 2px 12px !important;
  margin: 0 0 8px !important;
  font-size: 1.32rem !important;
  font-weight: 800 !important;
  color: #0b1630 !important;
  line-height: 1.3 !important;
}
.woocommerce-checkout .woocommerce-billing-fields > h3 {
  border-bottom: 1px solid #e2e8f0 !important;
  margin-bottom: 16px !important;
}

/* Convert Checkout Order Review Table to Clean Flex Rows so Delivery Options Span 100% Card Width! */
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table {
  display: block !important;
  width: 100% !important;
  border: 0 !important;
  margin: 0 0 16px !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot {
  display: block !important;
  width: 100% !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tr {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 11px 4px !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table thead tr {
  padding-top: 2px !important;
  border-bottom: 2px solid #cbd5e1 !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody tr.cart_item {
  align-items: flex-start !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table td {
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  width: auto !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table .product-name {
  flex: 1 1 auto !important;
  text-align: start !important;
  font-weight: 700 !important;
  color: #0b1630 !important;
  line-height: 1.45 !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table .product-total,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot td {
  flex: 0 0 auto !important;
  text-align: end !important;
  font-weight: 800 !important;
  color: #0b1630 !important;
  white-space: nowrap;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot th {
  font-weight: 800 !important;
  color: #334155 !important;
  text-align: start !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total {
  border-bottom: 0 !important;
  padding-top: 14px !important;
  padding-bottom: 4px !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total td,
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.order-total .amount {
  font-size: 1.18rem !important;
  font-weight: 900 !important;
  color: #0b1630 !important;
}

/* Full-Width Stacked Delivery Method Selector inside Checkout Order Summary (Zero Overlap!) */
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 9px !important;
  padding: 13px 2px !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals th {
  width: 100% !important;
  font-size: 0.94rem !important;
  font-weight: 800 !important;
  color: #0b1630 !important;
  text-align: start !important;
}
.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td {
  width: 100% !important;
  white-space: normal !important;
  text-align: start !important;
}
.woocommerce-checkout #order_review ul#shipping_method {
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.woocommerce-checkout #order_review ul#shipping_method li {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 10px 13px !important;
  margin: 0 !important;
  text-indent: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 11px !important;
  text-align: start !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.woocommerce-checkout #order_review ul#shipping_method li:has(input:checked) {
  border-color: #0066ff !important;
  background: #eff6ff !important;
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
}
.woocommerce-checkout #order_review ul#shipping_method li input.shipping_method {
  position: static !important;
  float: none !important;
  margin: 0 !important;
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0 !important;
  accent-color: #0066ff;
  cursor: pointer;
}
.woocommerce-checkout #order_review ul#shipping_method li label {
  display: inline-block !important;
  flex: 1 1 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  font-size: 0.87rem !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  color: #0b1630 !important;
  cursor: pointer;
  text-align: start !important;
}
.woocommerce-checkout #order_review ul#shipping_method li .amount {
  color: #0066ff !important;
  font-weight: 800 !important;
}

/* Readable Notice Box on Light Checkout Card */
.woocommerce-checkout #payment p.makaa-checkout-img-note,
.woocommerce-checkout #order_review p.makaa-checkout-img-note {
  background: #fffbeb !important;
  border: 1px solid #fcd34d !important;
  color: #78350f !important;
}
.woocommerce-checkout #payment p.makaa-checkout-img-note span,
.woocommerce-checkout #order_review p.makaa-checkout-img-note span {
  color: #78350f !important;
}

/* --- 3) Checkout Form Dropdowns (Country & Governorate) & Inputs RTL/LTR Alignment --- */
.woocommerce-checkout .form-row label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) {
  display: block !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #0b1630 !important;
  margin-bottom: 6px !important;
}
.woocommerce-checkout #billing_address_2_field > label.screen-reader-text,
.woocommerce-checkout #shipping_address_2_field > label.screen-reader-text {
  position: static !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: normal !important;
}
.woocommerce-checkout .form-row input.input-text:not(#billing_phone),
.woocommerce-checkout .form-row textarea {
  min-height: 44px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.93rem !important;
  color: #0b1630 !important;
  text-align: start !important;
}
.woocommerce-checkout .form-row input#billing_phone {
  min-height: 44px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  padding: 0.55rem 0.9rem !important;
  font-size: 0.95rem !important;
  color: #0b1630 !important;
}
/* Single-country static readout (when WooCommerce renders <strong>الكويت</strong> instead of <select>) */
.woocommerce-checkout #billing_country_field .woocommerce-input-wrapper > strong,
.woocommerce-checkout #shipping_country_field .woocommerce-input-wrapper > strong {
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #0b1630 !important;
  font-weight: 700 !important;
  font-size: 0.93rem !important;
}

/* Select2 Single Dropdowns (Country & Governorate) — Zero Arrow Overlap in RTL & LTR! */
.woocommerce-checkout .select2-container .select2-selection--single {
  height: 44px !important;
  min-height: 44px !important;
  border-radius: 10px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 41px !important;
  color: #0b1630 !important;
  font-weight: 700 !important;
  font-size: 0.93rem !important;
  width: 100% !important;
  padding-left: 14px !important;
  padding-right: 38px !important;
  text-align: left !important;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  height: 40px !important;
  width: 30px !important;
  right: 6px !important;
  left: auto !important;
}
/* RTL Mirror: Text on RIGHT, Dropdown Arrow strictly on LEFT! */
html[dir="rtl"] .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered,
body.rtl .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-right: 14px !important;
  padding-left: 38px !important;
  text-align: right !important;
}
html[dir="rtl"] .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow,
body.rtl .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  left: 6px !important;
  right: auto !important;
}
/* Native <select> fallback in RTL & LTR */
html[dir="rtl"] .woocommerce-checkout .form-row select,
body.rtl .woocommerce-checkout .form-row select {
  background-position: left 12px center !important;
  padding-right: 14px !important;
  padding-left: 36px !important;
  text-align: right !important;
}


/* ==========================================================================
   v5.12.1 — Fix Mirrored/Flipped RTL Pagination Buttons ("التالي" & "السابق")
             + Clean Breadcrumb Spacing
   ========================================================================== */
html[dir="rtl"] .woocommerce nav.woocommerce-pagination ul.page-numbers li a.prev,
html[dir="rtl"] .woocommerce nav.woocommerce-pagination ul.page-numbers li a.next,
body.rtl .woocommerce nav.woocommerce-pagination ul.page-numbers li a.prev,
body.rtl .woocommerce nav.woocommerce-pagination ul.page-numbers li a.next,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.prev,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.next {
  transform: none !important;
  -webkit-transform: none !important;
  rotate: 0deg !important;
  scale: 1 !important;
  writing-mode: horizontal-tb !important;
  unicode-bidi: isolate !important;
  white-space: nowrap !important;
  width: auto !important;
  padding: 0 13px !important;
  gap: 5px !important;
}
html[dir="rtl"] .woocommerce nav.woocommerce-pagination ul.page-numbers li a.prev::before,
html[dir="rtl"] .woocommerce nav.woocommerce-pagination ul.page-numbers li a.prev::after,
html[dir="rtl"] .woocommerce nav.woocommerce-pagination ul.page-numbers li a.next::before,
html[dir="rtl"] .woocommerce nav.woocommerce-pagination ul.page-numbers li a.next::after {
  transform: none !important;
  -webkit-transform: none !important;
}
body.makaa-shop-archive-v45 .woocommerce-breadcrumb {
  position: relative;
  z-index: 1;
  margin: 2px 0 10px !important;
  padding: 2px 2px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #64748b !important;
}
body.makaa-shop-archive-v45 .woocommerce-breadcrumb a {
  color: #334155 !important;
  text-decoration: none !important;
}
body.makaa-shop-archive-v45 .woocommerce-breadcrumb a:hover {
  color: #0066ff !important;
}


/* ==========================================================================
   v5.13.1 — Active Filter Chips Bar & Bilingual Empty-Filter State Card
   ========================================================================== */
.makaa-active-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #f8fbff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}
.makaa-af-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #1e3a8a;
  white-space: nowrap;
}
.makaa-af-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1 1 auto;
}
.makaa-af-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  color: #0b1630 !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.makaa-af-chip em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.makaa-af-chip:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c !important;
}
.makaa-af-chip:hover em {
  background: #dc2626;
  color: #ffffff;
}
.makaa-af-clear-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  margin-inline-start: auto;
  transition: background-color 0.15s ease;
}
.makaa-af-clear-all:hover {
  background: #b91c1c;
  color: #ffffff !important;
}

.makaa-empty-filter-card {
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}
.makaa-empty-filter-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eff6ff;
  color: #0066ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.makaa-empty-filter-card h3 {
  margin: 0 !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0b1630 !important;
}
.makaa-empty-filter-card p {
  margin: 0 !important;
  max-width: 520px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}
.makaa-empty-filter-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.makaa-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none !important;
  transition: background-color 0.16s ease, transform 0.14s ease;
}
.makaa-empty-btn--primary {
  background: #0066ff;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.24);
}
.makaa-empty-btn--primary:hover {
  background: #004ec4;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.makaa-empty-btn--soft {
  background: #f1f5f9;
  color: #0b1630 !important;
  border: 1px solid #cbd5e1;
}
.makaa-empty-btn--soft:hover {
  background: #e2e8f0;
  color: #0b1630 !important;
}
