
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: fixed !important;
  bottom: 0 !important;
  inset-inline-end: 0 !important;
}

.store-details-modal-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary-500);
  color: #fff;
  font-size: 1.25rem;
}
.store-details-modal-header .modal-title {
  font-size: 1.05rem;
}
.store-details-modal-header small {
  font-size: 0.7rem;
}

.header-content.header-style-three .notification-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.header-content.header-style-three .notification-trigger-btn {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.header-content.header-style-three .notification-trigger-btn .notification-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--success-500);
  position: absolute;
  top: 6px;
  right: 2px;
  display: inline-block;
  -webkit-animation: flashing 1.2s 0s infinite;
          animation: flashing 1.2s 0s infinite;
}
[dir="rtl"] .header-content .notification-trigger-btn .notification-dot {
  right: auto;
  left: 2px;
}
[data-theme=dark] .header-content.header-style-three .notification-trigger-btn .notification-dot {
  background-color: var(--danger-500);
}

.header-content.header-style-three .logo-wrapper-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: auto;
}
.header-content.header-style-three .navbar-content-wrapper,
.header-content.header-style-three .navbar-toggler {
  position: relative;
  z-index: 1;
}

.header-content.header-style-three .back-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--primary-50);
  color: var(--text);
  margin-left: 0;
}
.header-content.header-style-three .back-button a:hover,
.header-content.header-style-three .back-button a:focus {
  color: var(--primary-950);
}
.header-content.header-style-three .back-button .auth-header-back-icon {
  font-size: 1.5rem;
  line-height: 1;
}
[data-theme=dark] .header-content.header-style-three .back-button a {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--success-500);
}
[data-theme=dark] .header-content.header-style-three .back-button a:hover,
[data-theme=dark] .header-content.header-style-three .back-button a:focus {
  color: var(--success-400);
}

.header-content.header-style-three .navbar-toggler.auth-header-action-wrap {
  width: auto;
  height: auto;
  min-height: 2.25rem;
  background-color: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-content.header-style-three .navbar-toggler.auth-header-action-wrap span {
  display: none;
}
.header-content.header-style-three .navbar-toggler.auth-header-action-wrap .btn {
  white-space: nowrap;
}

.tooltip,
.tooltip-inner {
  font-family: "Tajawal", sans-serif !important;
}

.tiny-slider-one-wrapper .single-hero-slide {
  aspect-ratio: 1920 / 1280;
  min-height: 200px;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.tiny-slider-one-wrapper .single-hero-slide .h-100 {
  min-height: 100%;
}

.tiny-slider-one-wrapper .tns-controls button[data-controls="prev"]:hover,
.tiny-slider-one-wrapper .tns-controls button[data-controls="prev"]:focus,
.tiny-slider-one-wrapper .tns-controls button[data-controls="next"]:hover,
.tiny-slider-one-wrapper .tns-controls button[data-controls="next"]:focus {
  background-color: #2ecc4a !important;
  color: #011542 !important;
}

.tiny-slider-one-wrapper .tns-nav button.tns-nav-active {
  background-color: #2ecc4a !important;
}

.tiny-slider-one-wrapper .tns-nav button:hover {
  background-color: #25a23c !important;
}

.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list {
  display: grid !important;
  align-items: center;
  justify-items: center;
  width: 100%;
  height: 62px;
  min-height: 62px;
  margin: 0;
  list-style: none;
  padding-inline: 0.75rem;
  transition: grid-template-columns 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list:has(.footer-nav-cart-link[data-cart-count="0"]),
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list.footer-nav-list--cart-hidden {
  grid-template-columns: repeat(4, 1fr) !important;
}
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list:has(.footer-nav-cart-link:not([data-cart-count="0"])),
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list.footer-nav-list--cart-visible {
  grid-template-columns: repeat(5, 1fr) !important;
}
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list:has(.footer-nav-cart-link[data-cart-count="0"]) li.footer-nav-cart-li,
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list.footer-nav-list--cart-hidden li.footer-nav-cart-li {
  display: none !important;
}
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list:has(.footer-nav-cart-link:not([data-cart-count="0"])) li.footer-nav-cart-li,
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list.footer-nav-list--cart-visible li.footer-nav-cart-li {
  display: flex !important;
  align-items: center;
  justify-content: center;
  max-height: 100px;
  opacity: 1;
  visibility: visible;
}
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list li {
  flex: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.footer-nav-area .footer-nav.footer-style-two ul.footer-nav-list li.footer-nav-cart-li .footer-nav-cart-link {
  margin: -18px auto 0;
  flex-shrink: 0;
}

.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link {
  --fc-bg: var(--primary-50);
  --fc-fg: var(--primary-600);
  --fc-border: var(--primary-200);
  --fc-shadow: rgba(13, 110, 253, 0.22);
  --fc-shadow-ring: var(--primary-400);
  --fc-badge-bg: var(--primary-500);
  --fc-badge-fg: #fff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  min-width: 62px;
  min-height: 62px;
  border-radius: 50%;
  overflow: visible;
  text-decoration: none;
  border: 2px solid var(--fc-border);
  background: var(--fc-bg);
  color: var(--fc-fg);
  box-shadow: 0 4px 14px var(--fc-shadow), 0 1px 0 0 rgba(255,255,255,0.6) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.35s ease;
}
.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 22px var(--fc-shadow), 0 1px 0 0 rgba(255,255,255,0.7) inset;
}
.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link:focus,
.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--fc-shadow-ring), 0 4px 14px var(--fc-shadow);
}
.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link:active {
  transform: translateY(0) scale(0.96);
}

.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link[data-cart-count="0"] {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  pointer-events: none;
}
.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link:not([data-cart-count="0"]) {
  --fc-bg: var(--primary-100);
  --fc-fg: var(--primary-800);
  --fc-border: var(--primary-400);
  --fc-shadow: rgba(13, 110, 253, 0.35);
  --fc-shadow-ring: var(--primary-500);
  --fc-badge-bg: var(--primary-600);
  --fc-badge-fg: #fff;
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--primary-200) 100%);
  box-shadow: 0 4px 18px var(--fc-shadow), 0 0 0 1px var(--fc-border), 0 1px 0 0 rgba(255,255,255,0.5) inset;
}

@keyframes footer-cart-slide-up {
  from { opacity: 0; transform: translateY(60px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes footer-cart-bump {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.08); }
  70% { transform: scale(0.97); }
}
.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link.footer-cart-enter {
  animation: footer-cart-slide-up 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link.footer-cart-bump {
  animation: footer-cart-bump 0.35s ease;
}

[data-theme="dark"] .footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link,
[data-theme=dark] .footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link {
  --fc-bg: var(--success-700);
  --fc-fg: #fff;
  --fc-border: var(--success-600);
  --fc-shadow: rgba(0, 0, 0, 0.35);
  --fc-shadow-ring: var(--success-400);
  --fc-badge-bg: #fff;
  --fc-badge-fg: var(--success-700);
  box-shadow: 0 4px 14px var(--fc-shadow), 0 1px 0 0 rgba(255,255,255,0.08) inset;
}
[data-theme="dark"] .footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link:not([data-cart-count="0"]),
[data-theme=dark] .footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link:not([data-cart-count="0"]) {
  --fc-fg: #fff;
  --fc-border: var(--success-500);
  --fc-shadow: rgba(25, 135, 84, 0.4);
  --fc-shadow-ring: var(--success-400);
  --fc-badge-bg: #fff;
  --fc-badge-fg: var(--success-700);
  background: var(--fc-bg);
  box-shadow: 0 4px 18px var(--fc-shadow), 0 0 0 1px var(--fc-border), 0 1px 0 0 rgba(255,255,255,0.1) inset;
}

.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link .footer-cart-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link .footer-cart-icon-wrap .icon-inline {
  font-size: 1.85rem;
  width: 1em;
  height: 1em;
  display: block;
  margin: 0;
}

.footer-nav-area .footer-nav.footer-style-two .footer-nav-cart-link .footer-cart-count-badge {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  min-width: 1.65em;
  height: 1.35em;
  padding: 0 0.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--fc-badge-bg);
  color: var(--fc-badge-fg);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  box-sizing: border-box;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: background 0.2s ease, color 0.2s ease;
}

#footerNav a.tg-spa-nav {
  position: relative;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  user-select: none;
}
#footerNav a.tg-spa-nav:active {
  transform: scale(0.94);
  transition: transform 0.05s ease, opacity 0.05s ease;
  opacity: 0.92;
}
#footerNav a.tg-spa-nav iconify-icon {
  transition: transform 0.05s ease;
}
#footerNav a.tg-spa-nav:active iconify-icon {
  transform: scale(0.96);
}
#footerNav a.footer-nav-cart-link.tg-spa-nav:active {
  transform: translateY(0) scale(0.94);
  opacity: 1;
}

/* حلقة تحميل دائرية على حدود الزر أثناء طلب HTMX (يختفي تلقائياً مع انتهاء التحميل) */
#footerNav ul.footer-nav-list > li {
  overflow: visible;
}
@keyframes tg-footer-nav-htmx-ring {
  to {
    transform: rotate(360deg);
  }
}
#footerNav a.tg-spa-nav.htmx-request::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  z-index: 12;
  pointer-events: none;
  box-sizing: border-box;
  background: conic-gradient(
    from 0deg,
    var(--primary-500, #198754),
    rgba(25, 135, 84, 0.08),
    rgba(25, 135, 84, 0.45),
    var(--primary-400, #2ecc71),
    var(--primary-500, #198754)
  );
  animation: tg-footer-nav-htmx-ring 0.88s linear infinite;
  -webkit-mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2px)
  );
  mask: radial-gradient(
    farthest-side,
    transparent calc(100% - 3px),
    #000 calc(100% - 2px)
  );
}
[data-theme="dark"] #footerNav a.tg-spa-nav.htmx-request::after {
  background: conic-gradient(
    from 0deg,
    var(--success-400, #4ade80),
    rgba(74, 222, 128, 0.06),
    rgba(74, 222, 128, 0.4),
    var(--success-500, #22c55e),
    var(--success-400, #4ade80)
  );
}
#footerNav a.tg-spa-nav.htmx-request iconify-icon {
  position: relative;
  z-index: 14;
}
#footerNav a.footer-nav-cart-link.tg-spa-nav.htmx-request .footer-cart-count-badge {
  z-index: 16;
}

@media (prefers-reduced-motion: reduce) {
  #footerNav a.tg-spa-nav.htmx-request::after {
    animation: none;
    opacity: 0.9;
  }
}

.login-wrapper .logo-wrapper img.logo-dark {
  display: none;
}
.login-wrapper .logo-wrapper img.logo-light {
  display: block;
}
[data-theme=dark] .login-wrapper .logo-wrapper img.logo-light {
  display: none;
}
[data-theme=dark] .login-wrapper .logo-wrapper img.logo-dark {
  display: block;
}

.login-wrapper .card.bg-overlay::after {
  display: none;
}
[data-theme=dark] .login-wrapper .card.bg-overlay::after {
  display: block;
}

.link-terms {
  color: var(--success-500) !important;
}
.link-terms:hover {
  color: var(--success-500);
  opacity: 0.85;
}

.form-check-terms-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.form-check-terms-row .form-check-input {
  margin-top: 0;
}
.form-check-terms-row .form-check-label {
  padding-inline-start: 0.35rem;
  padding-inline-end: 0;
}
[dir="rtl"] .form-check-terms-row .form-check-label {
  padding-inline-start: 0;
  padding-inline-end: 0.35rem;
}

.order-card {
  position: relative;
  z-index: 0;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.order-card > div {
  position: relative;
  z-index: 2;
}

.order-card .order-id {
  font-weight: 700;
  color: var(--primary-950);
}
.order-card .order-meta {
  font-size: 0.75rem;
  color: var(--primary-600);
}
.order-card .order-total {
  font-weight: 700;
  color: var(--primary-950);
}
.order-card::before {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  content: "";
  background-color: #eef5ff;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 1;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}
.order-card::after {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  content: "";
  background-color: #eef5ff;
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  -webkit-transform: translate(50%, -50%);
  transform: translate(50%, -50%);
}
[dir="rtl"] .order-card::before {
  left: auto;
  right: 0;
  -webkit-transform: translate(50%, -50%);
  transform: translate(50%, -50%);
}
[dir="rtl"] .order-card::after {
  right: auto;
  left: 0;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

[data-theme=dark] .order-card::before,
[data-theme=dark] .order-card::after {
  background-color: var(--primary-950);
}
[data-theme=dark] .order-card .order-id,
[data-theme=dark] .order-card .order-total {
  color: var(--white);
}
[data-theme=dark] .order-card .order-meta {
  color: rgba(255, 255, 255, 0.7);
}

.img-Categories-cover {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.375rem;
  flex-shrink: 0;
  background-color: var(--primary-100, #f0f4f8);
}
.img-Categories-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-slider-Home {
  width: 7rem;
  height: 5rem;
  min-width: 5rem;
  min-height: 5rem;
  overflow: hidden;
  border-radius: 0;
  flex-shrink: 0;
}
.img-slider-Home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.img-Stores-cover {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.375rem;
  flex-shrink: 0;
  background-color: var(--primary-100, #f0f4f8);
}
.img-Stores-cover img,
.img-Stores-cover .lazy-img-wrap {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.img-Stores-cover .lazy-img-wrap .lazy-img {
  object-fit: cover;
}

/* منتجات ذات صلة — لا تقصّ حواف السلايدر داخل البطاقة */
.tg-product-related-block.card {
  overflow: visible;
}
.tg-product-related-block .border-top {
  overflow: visible;
}

.product-details-card .product-gallery-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 0.375rem;
  background-color: var(--primary-100, #f0f4f8);
}

.product-details-card .product-details-gallery .product-details-gallery__inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.product-details-card .product-details-gallery .product-details-gallery__slides {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  /* يساعد السحب الأفقي داخل كانفاز/منطقة قابلة للتمرير مع Pointer Events */
  touch-action: pan-y pinch-zoom;
}
.product-details-card .product-details-gallery .product-details-gallery__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.product-details-card .product-details-gallery .product-details-gallery__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.product-details-card .product-details-gallery .product-details-gallery__slide > a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.product-details-card .product-details-gallery .product-details-gallery__slide > a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.product-details-card .product-details-gallery .product-details-gallery__slide > a {
  pointer-events: auto;
  cursor: pointer;
}
.product-details-card .product-details-gallery .product-details-gallery__nav {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.product-details-card .product-details-gallery .product-details-gallery__dot {
  border: 0;
  margin: 0;
  width: 24px;
  height: 4px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease;
}
.product-details-card .product-details-gallery .product-details-gallery__dot.is-active {
  background-color: var(--danger-500, #ea4c62);
}

.product-details-card .product-gallery-wrapper > .product-gallery,
.product-details-card .product-gallery-wrapper > .tns-outer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.product-details-card .product-gallery-wrapper .tns-ovh,
.product-details-card .product-gallery-wrapper .tns-inner {
  height: 100% !important;
}
.product-details-card .product-gallery-wrapper .product-gallery,
.product-details-card .product-gallery-wrapper .tns-slider {
  height: 100% !important;
}
.product-details-card .product-gallery-wrapper .tns-slider > .tns-item {
  height: 100% !important;
  min-height: 100%;
  box-sizing: border-box;
}
.product-details-card .product-gallery-wrapper .product-gallery > a,
.product-details-card .product-gallery-wrapper .product-gallery > .tns-item > a,
.product-details-card .product-gallery-wrapper .tns-slider > a,
.product-details-card .product-gallery-wrapper .tns-slider > .tns-item > a {
  position: relative !important;
  width: 100%;
  height: 100% !important;
  min-height: 100%;
  vertical-align: top;
  display: block !important;
}
.product-details-card .product-gallery-wrapper .product-gallery > a img,
.product-details-card .product-gallery-wrapper .product-gallery > .tns-item > a img,
.product-details-card .product-gallery-wrapper .tns-slider > a img,
.product-details-card .product-gallery-wrapper .tns-slider > .tns-item > a img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.product-details-card .product-gallery-wrapper .product-gallery > a,
.product-details-card .product-gallery-wrapper .product-gallery > .tns-item > a,
.product-details-card .product-gallery-wrapper .tns-slider > a,
.product-details-card .product-gallery-wrapper .tns-slider > .tns-item > a {
  pointer-events: auto;
  cursor: pointer;
}

.btn-circle-sm {
  border: 0;
  padding: 0;
  width: 1.75rem;
  height: 1.75rem !important;
  min-width: 1.75rem;
  min-height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-circle-sm > i {
  font-size: 1rem;
  line-height: 1;
  margin: 0;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem;
  border: 1px solid var(--primary-300, #cbd5e1);
  border-radius: 9999px;
  overflow: visible;
  background: var(--primary-100, #e2e8f0);
}

.quantity-selector .btn-qty:first-of-type {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-start-start-radius: 9999px;
  border-end-start-radius: 9999px;
  border-start-end-radius: 9999px;
  border-end-end-radius: 9999px;
}

.quantity-selector .btn-qty:last-of-type {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-start-start-radius: 9999px;
  border-end-start-radius: 9999px;
  border-start-end-radius: 9999px;
  border-end-end-radius: 9999px;
}
.quantity-selector .btn-qty {
  padding: 0;
  border: 0;
  background: var(--primary-100, #e2e8f0);
  color: var(--primary-700, #334155);
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.quantity-selector .btn-qty:hover {
  background: var(--primary-200, #cbd5e1);
  color: var(--primary-900, #0f172a);
}

.quantity-selector .qty-input {
  width: 4rem;
  min-width: 4rem;
  height: 3rem;
  padding: 0 0.5rem;
  border: 1px solid var(--primary-200, #e2e8f0);
  border-radius: 9999px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--primary-50, #f8fafc);
  color: var(--primary-950, #0f172a);
  -moz-appearance: textfield;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}
.quantity-selector .qty-input::-webkit-outer-spin-button,
.quantity-selector .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
[dir="rtl"] .quantity-selector .qty-input {
  direction: ltr;
}

.add-to-cart-modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.add-to-cart-modal__row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.add-to-cart-modal__image {
  display: block;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.375rem;
  flex-shrink: 0;
  background-color: var(--primary-100, #f1f5f9);
}
.add-to-cart-modal__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.add-to-cart-modal__price {
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--warning, #ffc107);
  color: var(--primary-950, #0f172a);
}
.add-to-cart-modal__body {
  padding: 1rem 1rem 1.25rem;
  flex: 1;
  min-width: 0;
}
.add-to-cart-modal__details {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  border-radius: 0;
  border-top: 1px solid var(--primary-200, #e2e8f0);
}
[data-theme="dark"] .add-to-cart-modal__details {
  border-top-color: var(--primary-700);
}
.add-to-cart-modal__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-950, #0f172a);
}
[data-theme="dark"] .add-to-cart-modal__title {
  color: var(--white);
}
[data-theme="dark"] .add-to-cart-modal__image {
  background: var(--primary-900);
}

.add-to-cart-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 1rem;
}
.add-to-cart-section .quantity-selector {
  flex-shrink: 0;
}
.add-to-cart-section .btn-add-to-cart-pill {
  flex: 1;
  min-width: 8rem;
  height: 3rem;
  border-radius: 9999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.add-to-cart-section .btn-add-to-cart-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.add-to-cart-section .btn-add-to-cart-pill:active {
  transform: translateY(0);
}

#addToCartModal .btn-details-more {
  border-radius: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

[data-theme="dark"] .add-to-cart-section {
  background: var(--primary-900);
  border-color: var(--primary-700);
}

[data-theme="dark"] .quantity-selector {
  border-color: var(--primary-600);
  background: var(--primary-800);
}
[data-theme="dark"] .quantity-selector .btn-qty {
  background: var(--primary-800);
  color: var(--white);
}
[data-theme="dark"] .quantity-selector .btn-qty:hover {
  background: var(--primary-700);
  color: var(--white);
}
[data-theme="dark"] .quantity-selector .qty-input {
  border-color: var(--primary-600);
  background: var(--primary-950);
  color: var(--white);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.single-product-card a.sale-price {
  color: inherit;
  cursor: pointer;
}
.single-product-card a.sale-price:hover {
  color: inherit;
  opacity: 0.9;
}

.product-in-cart-label {
  display: none;
  position: absolute;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 9999px;
  background: rgba(46, 204, 74, 0.92);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  z-index: 2;
  border: 0;
  font-family: inherit;
}
.product-in-cart-label i {
  font-size: 0.75rem;
  opacity: 0.95;
}
.single-product-card.in-cart .product-in-cart-label,
.product-thumbnail.in-cart .product-in-cart-label {
  display: inline-flex;
}
[data-theme="dark"] .product-in-cart-label {
  background: rgba(46, 204, 74, 0.85);
  color: #fff;

}

.irs,
.irs-line,
.irs-min,
.irs-max,
.irs-from,
.irs-to,
.irs-single,
.irs-grid-text {
  font-family: "Tajawal", sans-serif !important;
}
.irs,
.irs-line {
  touch-action: none;
}
.irs-bar,
.irs-handle,
.irs-from,
.irs-to {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: left;
}
.irs-bar {
  will-change: left, width;
}
.irs-handle {
  cursor: grab;
}
.irs-handle:active {
  cursor: grabbing;
}

.profile-readonly-fields {
  padding: 0.75rem 1rem;
  background: var(--primary-50, #e8ecf7);
  border-radius: 0.5rem;
  border: 1px solid var(--border, #e9ecef);
}
.profile-readonly-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.profile-readonly-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted, #6c757d);
}
.profile-readonly-value {
  font-size: 0.9375rem;
  color: var(--text, #333);
}
[data-theme="dark"] .profile-readonly-fields {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .profile-readonly-value {
  color: inherit;
}

.profile-username-group .input-group-text {
  border-inline-end: 0;
}
.profile-username-group .form-control.border-start-0 {
  border-inline-start: 0;
}
.profile-username-group .form-control:focus {
  box-shadow: none;
  z-index: 1;
}
.profile-username-group .btn {
  border-inline-start: 0;
}

#password-visibility,
.password-visibility {
  pointer-events: auto;
}
.change-password-form .form-control.is-invalid {
  z-index: 2;
}
.change-password-form .invalid-feedback.d-none {
  display: none !important;
}

.modal-fit-viewport .modal-dialog {
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
}
.modal-fit-viewport .modal-dialog .modal-content {
  max-height: calc(100vh - 2rem);
}
.modal-fit-viewport .modal-dialog .modal-body {
  overflow-y: auto;
  max-height: calc(100vh - 8rem);
}

.user-detail-addresses {
  font-size: 0.875rem;
}
.user-detail-address-item {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
  background: var(--primary-50, #f0f4ff);
  border-radius: 0.375rem;
  border-inline-start: 3px solid var(--primary-500, #0134d4);
}
.user-detail-address-item:last-child {
  margin-bottom: 0;
}
.user-detail-address-item .badge {
  vertical-align: middle;
}

.btn-circle.btn-warning,
.btn-circle.btn-info {
  width: 2.5rem !important;
  height: 2.5rem !important;
  min-width: 2.5rem !important;
  min-height: 2.5rem !important;
  padding: 0 !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
}
.btn-circle iconify-icon {
  font-size: 1.25rem;
  width: 1.25rem !important;
  height: 1.25rem !important;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  flex-shrink: 0;
  line-height: 0;
}
.btn-circle iconify-icon svg {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  margin: 0;
}

#addressHelpModal .address-help-tab-icon {
  font-size: 1.1rem;
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  min-height: 1.1rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
#addressHelpModal .address-help-tab-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
#addressHelpModal .address-help-tabs .nav {
  flex-wrap: wrap;
  gap: 0.35rem;
}
.address-help-modal-dialog {
  max-width: min(32rem, calc(100vw - 1.5rem));
}
@media (min-width: 576px) {
  .address-help-modal-dialog.modal-lg {
    max-width: min(40rem, calc(100vw - 2rem));
  }
}

/* رأس البروفايل: صورة يمين (RTL) + نص بجانبها + أزرار تحت النص */
.profile-user-info-head {
  flex-direction: row;
}

/* رأس البروفايل: أزرار أوضح على الشاشات الضيقة (تحت الاسم واليوزر) */
@media (max-width: 575.98px) {
  .profile-user-actions {
    width: 100%;
  }
  .profile-user-actions > .btn {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
  }
  .profile-user-actions form.d-inline {
    display: flex !important;
    flex: 1 1 auto;
    min-width: 0;
  }
  .profile-user-actions form .btn {
    flex: 1;
    width: 100%;
    justify-content: center;
  }
}

.user-info-card .user-profile img,
.user-info-card .user-profile #profileAvatarImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 0;
}

.user-info-card .user-profile .profile-image-change-btn,
.user-info-card .loyalty-avatar-preview-page .loyalty-avatar-preview-page__level-ring > .profile-image-change-btn--loyalty-ring {
  position: absolute;
  top: 0px;
  right: 0px;
  left: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  color: var(--white, #fff);
}
.user-info-card .loyalty-avatar-preview-page .loyalty-avatar-preview-page__level-ring > .profile-image-change-btn--loyalty-ring {
  inset-inline-end: 0;
  left: auto;
  /* فوق المدار (::before) والشارة — الزر ليس داخل سياق isolation للمدار */
  z-index: 30;
}
.user-info-card .user-profile .profile-image-change-btn:hover,
.user-info-card .loyalty-avatar-preview-page .loyalty-avatar-preview-page__level-ring > .profile-image-change-btn--loyalty-ring:hover {
  background: rgba(0, 0, 0, 0.55);
  color: var(--white, #fff);
}
.user-info-card .user-profile .profile-image-change-btn iconify-icon,
.user-info-card .loyalty-avatar-preview-page .loyalty-avatar-preview-page__level-ring > .profile-image-change-btn--loyalty-ring iconify-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.user-info-card .user-profile .profile-image-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
}
.user-info-card .user-profile .profile-image-loader .circle-spinner {
  width: 2rem;
  height: 2rem;
}
.user-info-card .user-profile .profile-image-loader .circle-spinner .circle {
  width: 0.875rem;
  height: 0.875rem;
}

/* حلقة الولاء في البروفايل: style.css يثبت 80×80 على .user-info-card .user-profile — هنا نملأ المدار بالحجم من profile-loyalty-avatar-preview (--lap-size-sm) */
.user-info-card .loyalty-avatar-preview-page .loyalty-avatar-preview-page__orbit .user-profile.img-thumbnail {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 50%;
}

.user-info-card .loyalty-avatar-preview-page .loyalty-avatar-preview-page__orbit--owner .user-profile.img-thumbnail {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 50%;
}

/* الشريط الجانبي: نفس تنسيق المستوى — حجم يطابق دائرة 100px في style.css */
.sidenav-profile .sidenav-profile-loyalty-avatar {
  --lap-size-sm: 100px;
  margin-bottom: 0.5rem;
}
.sidenav-profile .sidenav-profile-loyalty-avatar .loyalty-avatar-preview-page__orbit .user-profile.img-thumbnail {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 50%;
  margin: 0 !important; /* يمنع تكرار margin من .sidenav-profile .user-profile */
}

.sidenav-profile .sidenav-profile-loyalty-avatar .loyalty-avatar-preview-page__orbit--owner .user-profile.img-thumbnail {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 50%;
  margin: 0 !important;
}

.circle-spinner-primary.circle-spinner .circle,
.circle-spinner-primary.circle-spinner .circle::after {
  background-color: var(--bs-primary, var(--primary-500, #0d6efd));
}

[data-theme="dark"] .user-info-card .user-profile .profile-image-loader {
  background: rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .user-info-card .user-profile .profile-image-loader .circle-spinner-primary .circle,
[data-theme="dark"] .user-info-card .user-profile .profile-image-loader .circle-spinner-primary .circle::after {
  background-color: var(--primary-100, rgba(255, 255, 255, 0.9));
}

.profile-crop-modal-app .profile-crop-modal-dialog {
  margin: 1.75rem auto;
  max-width: min(460px, calc(90vw + 1rem));
  width: auto;
}
.profile-crop-modal-app .modal-content {
  max-width: 100%;
}
.profile-crop-wrap {
  position: relative;
  --crop-box-size: min(380px, 85vw, 65vh);
  width: var(--crop-box-size);
  height: var(--crop-box-size);
  margin: 0 auto;
  flex-shrink: 0;
}
.profile-crop-wrap img {
  max-width: 100%;
  display: block;
  width: 100%;
}
#profileCropModal .modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
}
#profileCropModal .modal-body .text-muted {
  margin-bottom: 0.5rem;
}
#profileCropModal .modal-header,
#profileCropModal .modal-footer {
  padding: 0.5rem 1rem;
}
#profileCropModal .btn-loading .spinner-border {
  vertical-align: middle;
}

.profile-crop-wrap .cropper-container {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 767.98px) {
  .profile-crop-modal-app .profile-crop-modal-dialog {
    margin: 1rem auto;
    max-width: min(460px, calc(90vw + 1rem));
    width: auto;
  }
  .profile-crop-modal-app .modal-body .profile-crop-wrap {
    --crop-box-size: min(320px, 85vw, 55vh);
  }
}

iconify-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
iconify-icon svg {
  display: block;
  vertical-align: middle;
}

.icon-inline {
    font-size: 1.4rem;
    width: 1.4rem;
    height: 1.4rem;
    min-width: 1.4rem;
    min-height: 1.4rem;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.profile-address-item__icon .icon-inline {
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
}

.roles-table-icon-wrap {
  width: 40px;
  height: 40px;
}
.roles-table-icon {
  width: 22px;
  height: 22px;
  display: block;
}
.roles-table-icon-wrap .roles-table-icon,
.roles-table-icon-wrap iconify-icon {
  width: 22px;
  height: 22px;
}
.roles-table-icon-sm {
  width: 1.1rem;
  height: 1.1rem;
}
.roles-table-icon-sm svg {
  width: 100%;
  height: 100%;
}
.roles-detail-icon-wrap {
  width: 56px;
  height: 56px;
}
.roles-detail-icon,
.roles-detail-icon-wrap iconify-icon {
  width: 28px;
  height: 28px;
  display: block;
}
.roles-detail-icon-wrap .roles-detail-icon svg {
  width: 100%;
  height: 100%;
}
.roles-modal-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.roles-modal-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card .card iconify-icon {
  font-size: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  margin: 0;
  padding: 0;
  display: block;
  color: var(--primary-500);
}
.feature-card .card iconify-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
[data-theme="dark"] .feature-card .card iconify-icon {
  color: var(--success-500);
}

.single-counter-wrap iconify-icon {
  font-size: 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  margin: 0 auto 0.5rem;
  padding: 0;
  display: block;
}
.single-counter-wrap iconify-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

#password-visibility iconify-icon,
.password-visibility iconify-icon {
  color: var(--primary-950);
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
}
#password-visibility iconify-icon:first-child,
.password-visibility iconify-icon:first-child {
  display: inline-block;
}
#password-visibility iconify-icon:last-child,
.password-visibility iconify-icon:last-child {
  display: none;
}
#password-visibility.active iconify-icon:first-child,
.password-visibility.active iconify-icon:first-child {
  display: none;
}
#password-visibility.active iconify-icon:last-child,
.password-visibility.active iconify-icon:last-child {
  display: inline-block;
}
[data-theme="dark"] #password-visibility iconify-icon,
[data-theme="dark"] .password-visibility iconify-icon {
  color: var(--success-500);
}

.cart-table table .remove-product {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.cart-table table .remove-product iconify-icon {
  font-size: 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  display: block;
}
.cart-table table .remove-product iconify-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* محتوى تبويبات البروفايل */
.profile-tabs-content {
  background-color: var(--bs-body-bg, #fff);
  border-color: var(--border, #dee2e6) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .profile-tabs-content {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.profile-section-icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-section-icon-wrap .icon-inline {
  font-size: 1.35rem;
}

.profile-phone-field__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}
.profile-phone-field__group {
  flex: 1 1 14rem;
  min-width: 0;
}
.profile-phone-field__group .profile-phone-field__dial {
  flex: 0 0 5.75rem;
  width: 5.75rem;
  max-width: 5.75rem;
  min-height: calc(1.5em + 0.75rem + 2px);
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  padding-inline-start: 0.5rem;
  padding-inline-end: 2rem;
  font-size: 1rem;
  line-height: 1.5;
  text-align: start;
  background-position: right 0.65rem center;
  background-size: 14px 10px;
  font-variant-numeric: tabular-nums;
}
.profile-phone-field__group .profile-phone-field__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: calc(1.5em + 0.75rem + 2px);
  font-size: 1rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.profile-phone-field__save {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.profile-phone-field .form-control:focus,
.profile-phone-field .form-select:focus {
  border-color: var(--bs-primary, #0d6efd);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
  z-index: 3;
}
@media (max-width: 575.98px) {
  .profile-phone-field__row {
    flex-direction: column;
  }
  .profile-phone-field__group {
    flex: 1 1 auto;
    width: 100%;
  }
  .profile-phone-field__save {
    width: 100%;
  }
}

.profile-address-section-head.card {
  border-radius: 0.5rem;
}
.profile-address-toolbar.circle-btn-wrapper {
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
}
[data-theme="dark"] .profile-address-section-head.card {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.profile-phone-card {
  border-radius: 0.5rem;
  overflow: visible;
}
.profile-phone-row {
  align-items: center;
}
.profile-phone-text .icon-inline {
  font-size: 1.25rem;
}
.profile-phone-input-group {
  flex-shrink: 0;
  max-width: 100%;
}
.profile-phone-input-group .form-control {
  min-width: 0;
}
@media (max-width: 576px) {
  .profile-phone-row {
    flex-direction: column;
    align-items: stretch;
  }
  .profile-phone-input-group {
    flex-wrap: nowrap;
  }
  .profile-phone-input-group .form-control {
    min-width: 0;
  }
}

.profile-address-card {
  border-radius: 0.5rem;
  overflow: hidden;
}
.profile-address-card__body {
  padding: 1rem 1.25rem;
}
.profile-address-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.profile-address-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border, #e9ecef);
  border-radius: 0.5rem;
  margin: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.profile-address-item:last-child {
  margin-bottom: 0;
}
.profile-address-item--default {
  border-color: var(--primary-500, #0d6efd);
  background-color: rgba(13, 110, 253, 0.06);
}
.profile-address-item__row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}
.profile-address-item__main {
  flex: 1;
  min-width: 0;
}
.profile-address-item__check {
  min-width: 0;
}
.profile-address-item__radio {
  margin-top: 0.2rem;
}
.profile-address-item__label-link {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.profile-address-item__label-link:hover .profile-address-item__title {
  color: var(--primary-500, #0d6efd);
}
.profile-address-item__label-link:hover .profile-address-item__detail--primary {
  color: var(--primary-500, #0d6efd);
}
.profile-address-item__lines {
  min-width: 0;
}
.profile-address-item__title {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.profile-address-item__detail {
  font-size: 0.875rem;
  line-height: 1.55;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.profile-address-item__detail--primary {
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}
/* Checkout وغيره: تسمية عنوان بسيطة */
.profile-address-item__label {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Products: infinite scroll (HTMX revealed) */
.tg-products-more.htmx-request .tg-products-more-spinner {
  display: inline-block !important;
}
.tg-products-more.htmx-request .tg-products-more-btn {
  pointer-events: none;
  opacity: 0.7;
}

/* Blog: infinite scroll */
.tg-blog-more.htmx-request .tg-blog-more-spinner {
  display: inline-block !important;
}
.tg-blog-more.htmx-request .tg-blog-more-btn {
  pointer-events: none;
  opacity: 0.7;
}
.address-default-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 0.3rem;
  margin-top: 0.1rem;
  align-self: flex-start;
}
.profile-address-item__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, #e9ecef);
}
.profile-address-item__actions .btn {
  width: 2.25rem !important;
  height: 2.25rem !important;
  min-width: 2.25rem;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0.375rem;
}
.profile-address-item__icon {
  flex-shrink: 0;
  width: 1.75rem;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.15rem;
  color: var(--primary-500, #0d6efd);
}
.profile-address-item__icon .icon-inline {
  font-size: 1.2rem;
}
[data-theme="dark"] .profile-address-item__actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .profile-address-item {
  border-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .profile-address-item--default {
  border-color: var(--primary-500);
  background-color: rgba(13, 110, 253, 0.12);
}

.action-loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.action-loader-overlay[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.action-loader-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.action-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.action-loader-overlay .spinner-grow {
  flex-shrink: 0;
}
.action-loader-overlay .action-loader-text {
  display: block !important;
  color: #333;
}
[data-theme="dark"] .action-loader-overlay {
  background: rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .action-loader-content {
  background: rgba(30, 33, 37, 0.95);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .action-loader-overlay .action-loader-text {
  color: #e9ecef;
}
.btn-loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn-loading .btn-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-inline-end: 0.35em;
  vertical-align: -0.1em;
  border: 0.15em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: action-loader-spin 0.6s linear infinite;
}
@keyframes action-loader-spin {
  to { transform: rotate(360deg); }
}

main#tg-main-swap.tg-main-swap {
  position: relative;
  min-height: calc(100vh - 70px - 62px);
}
.tg-main-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.tg-main-loader.htmx-request {
  display: flex !important;
  pointer-events: auto;
}
.tg-main-loader-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.tg-main-loader-inner .spinner-grow {
  flex-shrink: 0;
  width: 2.5rem !important;
  height: 2.5rem !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-block !important;
}
[data-theme="dark"] .tg-main-loader {
  background: rgba(0, 0, 0, 0.5);
}
.footer-nav-area {
  z-index: 10050;
}

.landing-reveal,
[data-landing-reveal] {
  opacity: 0;
  height: auto;
  min-height: 0;
  overflow: visible;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 2.0s cubic-bezier(0.22, 1, 0.36, 1);
}
.landing-reveal[data-landing-reveal="right"],
[data-landing-reveal="right"] {
  transform: translateX(24px);
}
.landing-reveal[data-landing-reveal="left"],
[data-landing-reveal="left"] {
  transform: translateX(-24px);
}
.landing-reveal.landing-reveal-visible,
[data-landing-reveal].landing-reveal-visible {
  opacity: 1;
  transform: translate(0, 0);
}

[dir="rtl"] .landing-reveal[data-landing-reveal="right"]:not(.landing-reveal-visible),
[dir="rtl"] [data-landing-reveal="right"]:not(.landing-reveal-visible) {
  transform: translateX(-24px);
}
[dir="rtl"] .landing-reveal[data-landing-reveal="left"]:not(.landing-reveal-visible),
[dir="rtl"] [data-landing-reveal="left"]:not(.landing-reveal-visible) {
  transform: translateX(24px);
}

#preloader {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* reCAPTCHA notice */
.tg-recaptcha-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}
.tg-recaptcha-note__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: #0d6efd;
}
.tg-recaptcha-note__text {
  line-height: 1.6;
}
.tg-recaptcha-note__brand {
  color: #0d6efd;
  font-weight: 700;
}
.tg-recaptcha-note__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.tg-recaptcha-note__link:hover {
  color: #0a58ca;
}
[data-theme="dark"] .tg-recaptcha-note {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .tg-recaptcha-note__icon,
[data-theme="dark"] .tg-recaptcha-note__brand {
  color: #8ab4ff;
}

@media (max-width: 991px) {
  body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
  }
  input,
  textarea,
  [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
  }
}

.accordion-bg-primary {
  background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
  border-left: 4px solid var(--bs-primary);
}
.accordion-bg-danger {
  background-color: rgba(var(--bs-danger-rgb), 0.1) !important;
  border-left: 4px solid var(--bs-danger);
}
.accordion-bg-warning {
  background-color: rgba(var(--bs-warning-rgb), 0.1) !important;
  border-left: 4px solid var(--bs-warning);
}
.accordion-bg-info {
  background-color: rgba(var(--bs-info-rgb), 0.1) !important;
  border-left: 4px solid var(--bs-info);
}
.accordion-bg-success {
  background-color: rgba(var(--bs-success-rgb), 0.1) !important;
  border-left: 4px solid var(--bs-success);
}
.accordion-bg-secondary {
  background-color: rgba(var(--bs-secondary-rgb), 0.1) !important;
  border-left: 4px solid var(--bs-secondary);
}
.accordion-style-five .accordion-item {
  border-radius: 0.25rem;
  padding: 0.75rem;
}
.accordion-style-five .accordion-item:last-child {
  margin-bottom: 0;
}
.accordion-style-five .accordion-item h6 {
  cursor: pointer;
  margin-bottom: 0;
  color: var(--bs-body-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-style-five .accordion-item h6 .accordion-icon {
  transition-duration: 400ms;
  font-size: 1.25rem;
  transform: rotate(45deg);
}
.accordion-style-five .accordion-item h6.collapsed .accordion-icon {
  transform: rotate(0deg);
}


.product-selected-color-box {
  transition: background-color 0.2s ease;
}
.product-color-choice {
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.product-color-choice:hover {
  transform: scale(1.1);
}
.product-color-choice.selected {
  box-shadow: 0 0 0 3px var(--bs-primary);
}

.catalog-product-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background-color: var(--bs-light, #f8f9fa);
}
.catalog-product-thumb img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.catalog-dashboard-product-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.catalog-dashboard-product-card .card-body {
  gap: 0.2rem;
}

.catalog-dashboard-product-card .catalog-product-price {
  font-weight: 600;
}
.catalog-dashboard-product-card .catalog-product-store-line {
  min-height: 1.25rem;
}
.catalog-dashboard-product-card .catalog-product-actions {
  width: 100%;
  min-width: 0;
  justify-content: space-between;
  gap: 0.4rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  margin-top: 0.55rem !important;
  padding-top: 0.65rem !important;
}
.catalog-dashboard-product-card .catalog-product-actions__main,
.catalog-dashboard-product-card .catalog-product-actions__state {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.catalog-dashboard-product-card .catalog-product-actions__state {
  margin-inline-start: auto;
}
.catalog-dashboard-product-card .catalog-product-actions .btn,
.catalog-dashboard-product-card .catalog-product-actions a.btn {
  flex: 0 0 auto;
  width: 2.35rem !important;
  height: 2.35rem !important;
  min-width: 2.35rem !important;
}
[data-theme="dark"] .catalog-dashboard-product-card,
[data-theme=dark] .catalog-dashboard-product-card {
  border-color: rgba(255, 255, 255, 0.12);
}
[data-theme="dark"] .catalog-dashboard-product-card .catalog-product-actions,
[data-theme=dark] .catalog-dashboard-product-card .catalog-product-actions {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.tg-testimonial-section-card {
  background-color: var(--primary-50, #eef5ff);
  border-radius: 0.75rem;
}
[data-theme="dark"] .tg-testimonial-section-card,
[data-theme=dark] .tg-testimonial-section-card {
  background-color: rgba(255, 255, 255, 0.06);
}

.tg-testimonial-one-rtl.testimonial-slide-one-wrapper {
  position: relative;
  padding-bottom: 2.75rem;
}

.tg-testimonial-one-rtl .testimonial-style1 .single-testimonial-slide {
  direction: rtl;
  text-align: start;
  gap: 1rem 1.25rem;
}

.tg-testimonial-one-rtl .testimonial-style1 .single-testimonial-slide .image-wrapper {
  margin-right: 0 !important;
  margin-left: 0 !important;
  flex-shrink: 0;
}

.tg-testimonial-one-rtl .testimonial-style1 .single-testimonial-slide .image-wrapper.tg-testimonial-image-wrap {
  position: relative;
}

.tg-testimonial-one-rtl .testimonial-style1 .single-testimonial-slide .image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
}

.tg-testimonial-one-rtl .testimonial-style1 .single-testimonial-slide .image-wrapper .tg-testimonial-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--primary-50);
  color: var(--primary-600);
  font-size: 2rem;
  line-height: 1;
}

[data-theme="dark"] .tg-testimonial-one-rtl .testimonial-style1 .single-testimonial-slide .image-wrapper .tg-testimonial-avatar-placeholder,
[data-theme=dark] .tg-testimonial-one-rtl .testimonial-style1 .single-testimonial-slide .image-wrapper .tg-testimonial-avatar-placeholder {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--success-500);
}

.tg-testimonial-one-rtl .testimonial-style1 .single-testimonial-slide .image-wrapper .tg-testimonial-quote-icon {
  position: absolute !important;
  top: 0.25rem;
  inset-inline-end: 0.25rem;
  left: auto;
  right: auto;
  z-index: 2;
  font-size: 1.35rem;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.tg-testimonial-one-rtl .testimonial-style1 .single-testimonial-slide .text-content p {
  margin-bottom: 0.5rem;
  line-height: 1.55;
}

html[dir="rtl"] .tg-testimonial-one-rtl.testimonial-slide-one-wrapper .tns-nav {
  right: auto;
  left: 1.5rem;
}

html[dir="ltr"] .tg-testimonial-one-rtl.testimonial-slide-one-wrapper .tns-nav {
  left: auto;
  right: 1.5rem;
}

.about-page .about-hero-placeholder {
  min-height: 180px;
  background: linear-gradient(135deg, var(--primary-100, #e8eefc) 0%, var(--body-bg, #f8f9fa) 100%);
  border: 1px dashed rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .about-page .about-hero-placeholder {
  background: linear-gradient(135deg, rgba(1, 52, 212, 0.15) 0%, var(--body-bg, #1a1d21) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.about-page .about-value-icon {
  font-size: 2rem;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
}
.about-page .about-value-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-page .service-card-icon {
  font-size: 3rem;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  opacity: 0.95;
}
.service-page .service-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.service-page .service-card-soon .service-card-icon {
  opacity: 1;
}

.ce-engagement-user-list.chat-user-list li .chat-user-thumbnail {
  width: 3rem;
  height: 3rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 3rem;
  flex: 0 0 3rem;
  overflow: hidden;
}

.ce-engagement-user-list.chat-user-list li .chat-user-thumbnail .ce-engagement-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ce-engagement-user-list.chat-user-list li .chat-user-thumbnail .ce-engagement-avatar-placeholder {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.ce-thread-header-thumb {
  position: relative;
  z-index: 1;
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}

.ce-thread-header-thumb .ce-engagement-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ce-thread-header-thumb .ce-engagement-avatar-placeholder {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.page-content-wrapper .single-chat-item .user-avatar .ce-engagement-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.page-content-wrapper .single-chat-item .user-avatar .ce-engagement-avatar-placeholder {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.page-content-wrapper .ce-engagement-thread-scroll {
  overflow-x: hidden;
  box-sizing: border-box;
}
.page-content-wrapper .ce-engagement-thread-scroll .ce-thread-inner {
  box-sizing: border-box;
}
.page-content-wrapper .ce-engagement-thread-scroll .single-chat-item {
  min-width: 0;
  max-width: 100%;
}
.page-content-wrapper .ce-engagement-thread-scroll .single-chat-item .user-message {
  max-width: 100%;
  min-width: 0;
  flex: 1 1 0%;
}
.page-content-wrapper .ce-engagement-thread-scroll .single-chat-item .user-message .message-content {
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}
.page-content-wrapper .ce-engagement-thread-scroll .single-chat-item .user-message .single-message {
  min-width: 0;
  max-width: 100%;
}
.page-content-wrapper .ce-engagement-thread-scroll .single-chat-item .user-message .single-message p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.page-content-wrapper .ce-engagement-thread-scroll .single-chat-item .card {
  max-width: 100%;
  min-width: 0;
}
.page-content-wrapper .ce-engagement-thread-scroll textarea.form-control {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tg-dashboard-users-avatar {
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  line-height: 0;
}

.tg-dashboard-users-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* جدول المستخدمين — 3 أعمدة: (صورة+مستوى+اسم) | صلاحيات | نقاط فقط */
.tg-users-datatable-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.dataTable-container #usersDataTable.tg-users-data-table,
#usersDataTable.tg-users-data-table {
  table-layout: fixed;
  width: 100%;
}

.dataTable-container #usersDataTable th.tg-users-table-user-cell,
.dataTable-container #usersDataTable td.tg-users-table-user-cell,
#usersDataTable th.tg-users-table-user-cell,
#usersDataTable td.tg-users-table-user-cell {
  vertical-align: middle;
  padding: 0.45rem 0.25rem;
  min-width: 0;
  overflow: visible;
}

/* شبكة ثنائية الأعمدة: عمود ضيق للصورة + عمود مرن للنص — لا ينزل الاسم تحت الصورة */
#usersDataTable .tg-users-table-user-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0;
  width: 100%;
  min-width: 0;
}

#usersDataTable .tg-users-table-avatar-wrap {
  width: fit-content;
  max-width: 3.5rem;
  min-width: 0;
  justify-self: start;
}

#usersDataTable .tg-users-table-name-block {
  min-width: 0;
  text-align: start;
  align-self: center;
}

#usersDataTable .tg-users-table-name-block .tg-users-table-name {
  font-size: 0.8125rem;
  line-height: 1.3;
  margin-bottom: 0.06rem;
}

#usersDataTable .tg-users-table-name-block .tg-users-table-phone {
  font-size: 0.72rem;
  line-height: 1.25;
}

.dataTable-container #usersDataTable th.tg-users-table-roles-col,
.dataTable-container #usersDataTable td.tg-users-table-roles-col,
#usersDataTable th.tg-users-table-roles-col,
#usersDataTable td.tg-users-table-roles-col {
  vertical-align: middle;
  padding: 0.45rem 0.2rem;
  min-width: 0;
  width: 34%;
}

.dataTable-container #usersDataTable th.tg-users-table-actions-col,
.dataTable-container #usersDataTable td.tg-users-table-actions-col,
#usersDataTable th.tg-users-table-actions-col,
#usersDataTable td.tg-users-table-actions-col {
  width: 2.65rem;
  min-width: 2.65rem;
  max-width: 2.65rem;
  padding: 0.35rem 0.15rem;
  vertical-align: middle;
  text-align: center;
}

#usersDataTable .btn-user-actions.btn-user-actions--icon-only {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#usersDataTable .btn-user-actions.btn-user-actions--icon-only iconify-icon {
  font-size: 1.35rem;
}

#usersDataTable .tg-dashboard-users-loyalty {
  --lap-size-sm: 2.28rem;
  --lap-ring: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 3.25rem;
  min-width: 0;
  margin-inline: 0;
  line-height: 0;
  box-sizing: border-box;
}

/* يمنع امتداد كتلة الولاء لتملأ عرض الخلية فيجدول المستخدمين */
#usersDataTable .tg-users-table-avatar-wrap .loyalty-avatar-preview-page {
  width: fit-content;
  max-width: 100%;
}

#usersDataTable .tg-dashboard-users-loyalty .loyalty-avatar-preview-page__grid-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 0;
}

#usersDataTable .tg-dashboard-users-loyalty .loyalty-avatar-preview-page__level-icon--compact {
  font-size: 0.58rem;
  margin-bottom: 0.04rem;
  line-height: 1;
}

#usersDataTable .tg-dashboard-users-loyalty .loyalty-avatar-preview-page__level-ring--compact {
  padding-bottom: 0.26rem;
  --lap-badge-bottom: 1px;
}

#usersDataTable .tg-dashboard-users-loyalty .loyalty-avatar-preview-page__level-badge--compact {
  font-size: 0.38rem;
  padding: 0.05rem 0.18rem;
  letter-spacing: 0.02em;
}

#usersDataTable .tg-dashboard-users-loyalty--owner .loyalty-avatar-preview-page__owner-crown.loyalty-avatar-preview-page__level-icon--compact {
  font-size: 0.58rem;
  margin-bottom: 0.04rem;
  line-height: 1;
}

@media (max-width: 575.98px) {
  #usersDataTable .tg-users-table-user-row {
    column-gap: 0.35rem;
  }

  #usersDataTable .tg-users-table-avatar-wrap {
    max-width: 3rem;
  }


  #usersDataTable th.tg-users-table-roles-col,
  #usersDataTable td.tg-users-table-roles-col {
    width: 30%;
  }

  #usersDataTable td.tg-users-table-roles-col .badge {
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
  }
}

#usersDataTable .btn-user-actions iconify-icon,
#userActionsModal .list-group-item iconify-icon,
#userLoyaltyLevelModal .tg-user-loyalty-pick__ic iconify-icon,
#userLoyaltyLevelModal .tg-user-loyalty-pick__check iconify-icon,
.tg-user-details-header .loyalty-avatar-preview-page__level-icon--compact iconify-icon,
.tg-user-details-header .loyalty-avatar-preview-page__owner-crown iconify-icon {
  pointer-events: none;
}

/* —— مودال تعيين مستوى الولاء (المستخدمون) —— */
#userLoyaltyLevelModal .tg-user-loyalty-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(52vh, 21rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.15rem 0.2rem 0.35rem;
  scrollbar-gutter: stable;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick {
  --tg-loy-pick-accent: var(--bs-primary, #0d6efd);
  --tg-loy-pick-accent-rgb: var(--bs-primary-rgb, 13, 110, 253);
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  padding: 0.8rem 0.9rem;
  text-align: start;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.09));
  border-radius: 0.85rem;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.18s ease,
    background-color 0.2s ease;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick:hover {
  border-color: rgba(var(--tg-loy-pick-accent-rgb), 0.38);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick:focus {
  outline: none;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick:focus-visible {
  border-color: rgba(var(--tg-loy-pick-accent-rgb), 0.55);
  box-shadow:
    0 0 0 3px rgba(var(--tg-loy-pick-accent-rgb), 0.22),
    0 4px 14px rgba(0, 0, 0, 0.06);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick--selected {
  border-color: rgba(var(--tg-loy-pick-accent-rgb), 0.55);
  background: rgba(var(--tg-loy-pick-accent-rgb), 0.07);
  box-shadow:
    inset 0 0 0 1px rgba(var(--tg-loy-pick-accent-rgb), 0.12),
    0 4px 14px rgba(var(--tg-loy-pick-accent-rgb), 0.12);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick--selected:hover {
  border-color: rgba(var(--tg-loy-pick-accent-rgb), 0.65);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick[data-assigned="true"]:not(.tg-user-loyalty-pick--selected) {
  border-color: rgba(25, 135, 84, 0.22);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__ic {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50, rgba(13, 110, 253, 0.1));
  color: var(--primary-600, #0d6efd);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick:hover .tg-user-loyalty-pick__ic {
  transform: scale(1.06);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick--selected .tg-user-loyalty-pick__ic {
  background: rgba(var(--tg-loy-pick-accent-rgb), 0.16);
  color: var(--tg-loy-pick-accent);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__ic iconify-icon {
  font-size: 1.35rem;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__title {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__badge-assigned {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  color: #0f5132;
  background: rgba(25, 135, 84, 0.16);
  border: 1px solid rgba(25, 135, 84, 0.28);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--bs-secondary-color, #6c757d);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__tier {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.12em 0.45em;
  border-radius: 0.35rem;
  background: rgba(0, 0, 0, 0.05);
  color: var(--bs-body-color, #212529);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__dot {
  opacity: 0.45;
  user-select: none;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__orders {
  font-weight: 500;
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__check {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-loy-pick-accent);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.2, 0.64, 1);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick--selected .tg-user-loyalty-pick__check {
  opacity: 1;
  transform: scale(1);
}

#userLoyaltyLevelModal .tg-user-loyalty-pick__check iconify-icon {
  font-size: 1.45rem;
}

@media (prefers-reduced-motion: reduce) {
  #userLoyaltyLevelModal .tg-user-loyalty-pick,
  #userLoyaltyLevelModal .tg-user-loyalty-pick__ic,
  #userLoyaltyLevelModal .tg-user-loyalty-pick__check {
    transition: none;
  }

  #userLoyaltyLevelModal .tg-user-loyalty-pick:hover {
    transform: none;
  }
}

[data-theme="dark"] #userLoyaltyLevelModal .tg-user-loyalty-pick,
[data-theme=dark] #userLoyaltyLevelModal .tg-user-loyalty-pick {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] #userLoyaltyLevelModal .tg-user-loyalty-pick:hover,
[data-theme=dark] #userLoyaltyLevelModal .tg-user-loyalty-pick:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] #userLoyaltyLevelModal .tg-user-loyalty-pick__ic,
[data-theme=dark] #userLoyaltyLevelModal .tg-user-loyalty-pick__ic {
  background: rgba(255, 255, 255, 0.08);
  color: var(--success-500, #75b798);
}

[data-theme="dark"] #userLoyaltyLevelModal .tg-user-loyalty-pick__tier,
[data-theme=dark] #userLoyaltyLevelModal .tg-user-loyalty-pick__tier {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bs-body-color, #e9ecef);
}

[data-theme="dark"] #userLoyaltyLevelModal .tg-user-loyalty-pick__badge-assigned,
[data-theme=dark] #userLoyaltyLevelModal .tg-user-loyalty-pick__badge-assigned {
  color: #a3cfbb;
  background: rgba(25, 135, 84, 0.22);
  border-color: rgba(25, 135, 84, 0.35);
}

.tg-user-details-header__avatar .tg-dashboard-users-loyalty.loyalty-avatar-preview-page {
  --lap-size-sm: 72px;
  --lap-ring: 2.5px;
}

.tg-user-details-header__avatar .tg-dashboard-users-loyalty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 5.5rem;
  min-width: 0;
  margin-inline: 0;
  line-height: 0;
  box-sizing: border-box;
}

.tg-user-details-header__avatar .loyalty-avatar-preview-page {
  width: fit-content;
  max-width: 100%;
}

.tg-user-details-header__avatar .loyalty-avatar-preview-page__grid-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 0;
}

.tg-user-details-header__avatar .loyalty-avatar-preview-page__level-icon--compact {
  font-size: 0.82rem;
  margin-bottom: 0.08rem;
  line-height: 1;
}

.tg-user-details-header__avatar .loyalty-avatar-preview-page__level-ring--compact {
  padding-bottom: 0.32rem;
  --lap-badge-bottom: 2px;
}

.tg-user-details-header__avatar .loyalty-avatar-preview-page__level-badge--compact {
  font-size: 0.52rem;
  padding: 0.07rem 0.22rem;
  letter-spacing: 0.02em;
}

.tg-user-details-header__avatar .tg-dashboard-users-loyalty--owner .loyalty-avatar-preview-page__owner-crown.loyalty-avatar-preview-page__level-icon--compact {
  font-size: 0.82rem;
  margin-bottom: 0.08rem;
  line-height: 1;
}

/* —— لوحة التحكم: الفواتير والمدفوعات (Payments) —— */
.dashboard-payments-table {
  table-layout: fixed;
  width: 100%;
}

.dashboard-payments-table .dashboard-payments-th-invoice {
  width: 20%;
}

.dashboard-payments-table .dashboard-payments-th-order {
  width: 26%;
}

.dashboard-payments-table .dashboard-payments-th-customer-amount {
  width: 44%;
}

.dashboard-payments-table .dashboard-payments-th-action {
  width: 10%;
}

.dashboard-payments-table .dashboard-payments-inv-num {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bs-body-color, #212529);
}

.dashboard-payments-table .dashboard-payments-td--invoice {
  vertical-align: middle;
}

.dashboard-payments-table .dashboard-payments-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.15rem;
  min-width: 0;
}

.dashboard-payments-table .dashboard-payments-customer {
  font-size: 0.85rem;
  line-height: 1.25;
  color: var(--bs-body-color, #212529);
}

.dashboard-payments-table .dashboard-payments-amount {
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--bs-emphasis-color, #000);
}

.dashboard-payments-table .dashboard-payments-td--meta {
  min-width: 0;
}

.dashboard-payments-table .dashboard-payments-td--action {
  white-space: nowrap;
}

.dashboard-payments-table thead th {
  font-size: 0.78rem;
  vertical-align: middle;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.dashboard-payments-table td.dashboard-payments-td {
  vertical-align: middle;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.dashboard-payments-table .pay-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.dashboard-payments-table .pay-line {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  min-width: 0;
  white-space: nowrap;
  line-height: 1.2;
}

.dashboard-payments-table .pay-lbl {
  flex-shrink: 0;
  color: var(--bs-secondary-color);
  font-size: 0.68rem;
  font-weight: 500;
}

.dashboard-payments-table .pay-val {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-payments-table .pay-line a {
  white-space: nowrap;
}

[data-theme="dark"] .dashboard-payments-table thead.table-light th,
[data-theme=dark] .dashboard-payments-table thead.table-light th {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--bs-body-color, #e9ecef);
  border-color: rgba(255, 255, 255, 0.08);
}

#userActionsModal.bottom-align-modal {
  z-index: 1060;
}

.tg-dashboard-users-avatar--icon {
  background-color: var(--primary-50);
  color: var(--primary-600);
  font-size: 1.2rem;
}

[data-theme="dark"] .tg-dashboard-users-avatar--icon,
[data-theme=dark] .tg-dashboard-users-avatar--icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--success-500);
}

.tg-home-category-slider .home-category-slide-card {
  transition: box-shadow 0.2s ease;
  max-width: none;
  width: 100%;
  margin-inline: 0;
}
.tg-home-category-slider .home-category-slide-card:hover {
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.16) !important;
}
.tg-home-category-slider .home-category-slide-card:focus-visible {
  outline: 2px solid var(--primary-500, #0d6efd);
  outline-offset: 2px;
}
.tg-home-category-slider .home-category-slide-card .btn {
  pointer-events: none;
}
.tg-home-category-slider .lazy-img-wrap {
  height: 100%;
}

.tg-home-blog-slider[dir="ltr"] .tg-home-blog-slide-inner {
  direction: rtl;
  unicode-bidi: isolate;
  height: 100%;
}
.tg-home-blog-slider .tns-item {
  height: auto;
}
.tg-home-blog-slider .tns-item > div {
  height: 100%;
}
.tg-home-blog-slider .tg-home-blog-card {
  min-height: 100%;
}
.tg-home-blog-slider .tg-home-blog-card .blog-title {
  unicode-bidi: isolate;
  text-align: start;
  word-break: break-word;
}
.tg-home-blog-slider .tg-home-blog-cat-badge {
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 2;
}
.tg-home-blog-slider .card-img-top {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 992px) {
  .dashboard-blog-create .container-narrow-blog {
    max-width: 720px;
    margin-inline: auto;
  }
}
.dashboard-blog-create .card-header h6 {
  font-weight: 600;
}
.dashboard-blog-create .dashboard-blog-main-preview img {
  object-fit: cover;
}
.dashboard-blog-create .dashboard-blog-gallery-tile {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.dashboard-blog-create .dashboard-blog-gallery-thumb-wrap {
  position: relative;
  transition: transform 0.15s ease;
}
.dashboard-blog-create .dashboard-blog-gallery-thumb-wrap .dashboard-blog-gallery-remove {
  position: absolute;
  top: 0.35rem;
  inset-inline-end: 0.35rem;
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.95;
}
.dashboard-blog-create .dashboard-blog-gallery-thumb-wrap .dashboard-blog-gallery-remove:hover {
  opacity: 1;
  transform: scale(1.05);
}
.dashboard-blog-create .dashboard-blog-gallery-thumb-wrap:hover {
  transform: translateY(-1px);
}
.dashboard-blog-create .dashboard-blog-gallery-add-inner {
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.dashboard-blog-create .dashboard-blog-gallery-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(13, 110, 253, 0.06) 0%, rgba(255, 255, 255, 1) 55%);
  border: 2px dashed rgba(13, 110, 253, 0.35) !important;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-blog-create .dashboard-blog-gallery-add-btn > span {
  min-height: 100%;
  width: 100%;
}
.dashboard-blog-create .dashboard-blog-gallery-add-btn:hover {
  background: linear-gradient(145deg, rgba(13, 110, 253, 0.12) 0%, rgba(255, 255, 255, 1) 55%);
  border-color: rgba(13, 110, 253, 0.55) !important;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.12);
}
.dashboard-blog-create .dashboard-blog-gallery-add-btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.35);
}
.dashboard-blog-create .dashboard-blog-gallery-add-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-inline: auto;
  background: rgba(13, 110, 253, 0.12);
}
.dashboard-blog-create .dashboard-blog-gallery-add-icon iconify-icon {
  display: block;
  margin: auto;
 
}
.dashboard-blog-create .extra-small {
  font-size: 0.7rem;
}

.dashboard-blog-create .blog-linked-products-chips {
  gap: 0.5rem !important;
}
.dashboard-blog-create .blog-linked-product-chip {
  max-width: 100%;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.22);
  background: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dashboard-blog-create .blog-linked-product-chip__label {
  color: inherit;
  min-width: 0;
  max-width: 220px;
}
.dashboard-blog-create .blog-linked-product-chip__remove {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-start: 0.15rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--bs-danger);
  opacity: 0.85;
  line-height: 0;
  border-radius: 50%;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dashboard-blog-create .blog-linked-product-chip__remove:hover {
  opacity: 1;
  transform: scale(1.08);
}
.dashboard-blog-create .blog-linked-product-chip__remove:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}
.dashboard-blog-create .blog-linked-product-chip__remove-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
[data-theme="dark"] .dashboard-blog-create .blog-linked-product-chip,
[data-theme=dark] .dashboard-blog-create .blog-linked-product-chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}
[data-theme="dark"] .dashboard-blog-create .blog-linked-product-chip__remove,
[data-theme=dark] .dashboard-blog-create .blog-linked-product-chip__remove {
  color: #f8a8a8;
}
[data-theme="dark"] .dashboard-blog-create .blog-linked-product-chip__remove:hover,
[data-theme=dark] .dashboard-blog-create .blog-linked-product-chip__remove:hover {
  color: #ffc9c9;
}

.blog-link-products-list {
  max-height: min(52vh, 420px);
  overflow-y: auto;
}
.dashboard-blog-create .blog-link-product-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.dashboard-blog-create .blog-link-product-row--selected {
  background-color: rgba(13, 110, 253, 0.06);
}
.dashboard-blog-create .blog-link-product-thumb-wrap img {
  object-fit: cover;
}

.blog-list-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.blog-list-card:hover {
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}
.blog-list-card > .d-flex {
  align-items: stretch;
  min-height: 0;
}
.blog-list-card .card-blog-img {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  flex: 0 0 140px;
  width: 140px;
  max-width: 140px;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  align-self: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.blog-list-card .card-blog-content {
  margin-left: 0;
  margin-right: 0;
  margin-inline: 0;
  width: auto;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  padding: 1rem 1rem 1rem 0.875rem;
}
[dir="rtl"] .blog-list-card .card-blog-content {
  padding: 1rem 0.875rem 1rem 1rem;
}
[data-theme="dark"] .blog-list-card,
[data-theme=dark] .blog-list-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .blog-list-card:hover,
[data-theme=dark] .blog-list-card:hover {
  border-color: rgba(13, 110, 253, 0.35);
}

.blog-list-card .card-blog-content .blog-title.text-truncate {
  height: auto;
  max-height: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.dashboard-blog-card-actions {
  flex-shrink: 0;
}
.dashboard-blog-card-actions .btn {
  flex-shrink: 0;
}
@media (max-width: 400px) {
  .dashboard-blog-card-actions {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    margin-inline: -2px;
    padding-inline: 2px;
  }
}

.tg-brand-wrap {
  display: inline;
  white-space: nowrap;
}
.tg-brand-tar,
.tg-brand-goo {
  display: inline;
  font-weight: 700;
}
.tg-brand-tar {
  color: #0475e3;
}
.tg-brand-goo {
  color: #6bbb70;
}

.custom-alert-three .tg-brand-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
}
.custom-alert-three .tg-brand-wrap .tg-brand-tar,
.custom-alert-three .tg-brand-wrap .tg-brand-goo {
  display: inline-block;
}

html[data-theme="dark"] .tg-brand-tar,
html[data-theme=dark] .tg-brand-tar {
  color: #0475e3;
}
html[data-theme="dark"] .tg-brand-goo,
html[data-theme=dark] .tg-brand-goo {
  color: #6bbb70;
}

.blog-details-page .tg-blog-prose {
  line-height: 1.9;
  color: var(--text-primary, #1a1a1a);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.blog-details-page .tg-blog-prose p {
  margin-bottom: 1rem;
}
.blog-details-page .tg-blog-prose h1,
.blog-details-page .tg-blog-prose h2,
.blog-details-page .tg-blog-prose h3,
.blog-details-page .tg-blog-prose h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}
.blog-details-page .tg-blog-prose ul,
.blog-details-page .tg-blog-prose ol {
  padding-inline-start: 1.25rem;
  margin-bottom: 1rem;
}
.blog-details-page .tg-blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
.blog-details-page .tg-blog-prose a {
  word-break: break-word;
}
[data-theme="dark"] .blog-details-page .tg-blog-prose {
  color: rgba(255, 255, 255, 0.92);
}

.blog-details-page .tg-blog-gallery-section .ratio img {
  object-fit: cover;
}

.blog-details-page .blog-details-post-thumbnail img {
  height: auto;
  display: block;
}

.blog-details-page .tg-blog-gallery-carousel .carousel-indicators.tg-blog-gallery-carousel-dots {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;
  margin: 0.75rem 0 0;
  padding: 0;
  width: 100%;
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 2;
}
.blog-details-page .tg-blog-gallery-carousel .carousel-indicators.tg-blog-gallery-carousel-dots [type="button"] {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  margin: 0;
  text-indent: unset;
  border: 0;
  opacity: 0.5;
}
.blog-details-page .tg-blog-gallery-carousel .carousel-indicators.tg-blog-gallery-carousel-dots [type="button"].active {
  opacity: 1;
}

.blog-details-page .tg-blog-gallery-carousel .carousel-control-prev,
.blog-details-page .tg-blog-gallery-carousel .carousel-control-next {
  width: 2.75rem;
  opacity: 0.95;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.35));
  z-index: 3;
}
.blog-details-page .tg-blog-gallery-carousel .carousel-control-prev-icon,
.blog-details-page .tg-blog-gallery-carousel .carousel-control-next-icon {
  filter: invert(1);
}
[data-theme="dark"] .blog-details-page .tg-blog-gallery-carousel .carousel-inner,
[data-theme=dark] .blog-details-page .tg-blog-gallery-carousel .carousel-inner {
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.blog-details-page .tg-blog-comment-avatar {
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* تعليقات المدونة: نفس تنسيق مستوى الولاء (أصغر من الشريط الجانبي) */
.blog-details-page .tg-blog-comment-loyalty {
  --lap-size-sm: 48px;
}
.blog-details-page .tg-blog-comment-loyalty--reply {
  --lap-size-sm: 40px;
}
.blog-details-page .tg-blog-comment-loyalty .loyalty-avatar-preview-page__orbit .user-profile.img-thumbnail {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 50%;
  margin: 0 !important;
}

.blog-details-page .tg-blog-related-list-card .list-group-item {
  border-color: rgba(0, 0, 0, 0.06);
}
.blog-details-page .tg-blog-related-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
}
[data-theme="dark"] .blog-details-page .tg-blog-related-list-card,
[data-theme=dark] .blog-details-page .tg-blog-related-list-card {
  border-color: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.02);
}
[data-theme="dark"] .blog-details-page .tg-blog-related-list-card .list-group-item,
[data-theme=dark] .blog-details-page .tg-blog-related-list-card .list-group-item {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}
[data-theme="dark"] .blog-details-page .tg-blog-related-list-card .text-dark,
[data-theme=dark] .blog-details-page .tg-blog-related-list-card .text-dark {
  color: rgba(255, 255, 255, 0.92) !important;
}

.dashboard-site-page {
  max-width: 960px;
}
.dashboard-site-page .dashboard-site-form .form-control:focus,
.dashboard-site-page .dashboard-site-form .form-select:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}
.dashboard-site-page .dashboard-site-table thead th {
  border-bottom-width: 1px;
}
.dashboard-site-page .dashboard-skill-card .card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.dashboard-site-page .dashboard-service-card .border-start {
  min-height: 100%;
}
[data-theme="dark"] .dashboard-site-page .dashboard-skill-card .card-header,
[data-theme=dark] .dashboard-site-page .dashboard-skill-card .card-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .dashboard-site-page .table-light,
[data-theme=dark] .dashboard-site-page .table-light {
  --bs-table-bg: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
}

.dashboard-site-page .dashboard-user-pick-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.dashboard-site-page .dashboard-user-pick-row:hover {
  background-color: rgba(13, 110, 253, 0.06);
}
[data-theme="dark"] .dashboard-site-page .dashboard-user-pick-row:hover,
[data-theme=dark] .dashboard-site-page .dashboard-user-pick-row:hover {
  background-color: rgba(13, 110, 253, 0.12);
}

#productsSearchSection .form-control-clicked {
  min-height: 44px;
}
#productsSearchSection .badge {
  font-weight: 600;
}
.top-products-area .single-product-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.top-products-area .single-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .top-products-area .single-product-card,
[data-theme=dark] .top-products-area .single-product-card {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.tg-directory-sort-select {
  min-width: 11rem;
  max-width: 100%;
}

.blog-details-page .post-bookmark.tg-blog-save-btn {
  position: absolute;
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(2px);
  overflow: visible;
  isolation: isolate;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.blog-details-page .tg-blog-save-ring {
  position: absolute;
  inset: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.blog-details-page .tg-blog-save-ring-track {
  stroke: rgba(13, 110, 253, 0.15);
  stroke-width: 2.25;
}
.blog-details-page .tg-blog-save-ring-fill {
  stroke: var(--bs-primary);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 106.8;
  stroke-dashoffset: 106.8;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}
.blog-details-page .post-bookmark.tg-blog-save-btn.is-loading .tg-blog-save-ring {
  opacity: 1;
}
.blog-details-page .post-bookmark.tg-blog-save-btn.is-loading .tg-blog-save-ring-fill {
  stroke-dashoffset: 0;
}
.blog-details-page .tg-blog-save-btn__content {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 1.2em;
  height: 1.2em;
  line-height: 0;
}
.blog-details-page .tg-blog-save-btn__content > .tg-blog-save-icon {
  grid-area: 1 / 1;
}
.blog-details-page .post-bookmark.tg-blog-save-btn iconify-icon,
.blog-details-page .post-bookmark.tg-blog-save-btn .tg-blog-save-icon {
  font-size: 1.15rem;
}
.blog-details-page .post-bookmark.tg-blog-save-btn:hover:not(.is-busy):not(.is-loading) {
  background: #ffffff;
  color: var(--bs-primary);
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.18);
}
.blog-details-page .post-bookmark.tg-blog-save-btn.is-saved {
  color: var(--bs-primary);
  border-color: rgba(13, 110, 253, 0.4);
}
.blog-details-page .post-bookmark.tg-blog-save-btn.is-busy {
  cursor: wait;
}
.blog-details-page .post-bookmark.tg-blog-save-btn.is-busy:not(.is-loading) {
  opacity: 0.88;
}
@keyframes tg-blog-save-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.22);
  }
  65% {
    transform: scale(0.94);
  }
  100% {
    transform: scale(1);
  }
}
.blog-details-page .post-bookmark.tg-blog-save-btn.tg-blog-save-pop .tg-blog-save-btn__content {
  animation: tg-blog-save-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.blog-details-page .post-bookmark.tg-blog-save-btn.tg-blog-save-pop {
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.45);
  animation: tg-blog-save-pulse-ring 0.6s ease-out;
}
@keyframes tg-blog-save-pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}
[data-theme="dark"] .blog-details-page .post-bookmark.tg-blog-save-btn,
[data-theme=dark] .blog-details-page .post-bookmark.tg-blog-save-btn {
  background: rgba(18, 24, 38, 0.92);
  color: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.18);
}
[data-theme="dark"] .blog-details-page .tg-blog-save-ring-track,
[data-theme=dark] .blog-details-page .tg-blog-save-ring-track {
  stroke: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] .blog-details-page .tg-blog-save-ring-fill,
[data-theme=dark] .blog-details-page .tg-blog-save-ring-fill {
  stroke: var(--bs-primary);
}

.blog-details-page .tg-blog-comment-thread {
  scroll-margin-top: 5rem;
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.025), rgba(13, 110, 253, 0));
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-details-page .tg-blog-comment-thread:hover {
  background: rgba(13, 110, 253, 0.04);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.blog-details-page .tg-blog-comment-pending {
  background: linear-gradient(180deg, rgba(255, 193, 7, 0.08), rgba(13, 110, 253, 0.02));
  border: 1px dashed rgba(255, 193, 7, 0.35);
}

[data-theme="dark"] .blog-details-page .tg-blog-comment-pending,
[data-theme=dark] .blog-details-page .tg-blog-comment-pending {
  background: linear-gradient(180deg, rgba(255, 193, 7, 0.12), rgba(13, 110, 253, 0.05));
  border-color: rgba(255, 193, 7, 0.28);
}

.blog-details-page #blogCommentsStatus {
  border: 1px solid rgba(13, 110, 253, 0.15);
  border-radius: 0.7rem;
  padding: 0.45rem 0.65rem;
  background: rgba(13, 110, 253, 0.03);
}

.blog-details-page .tg-blog-comment-official {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(13, 202, 240, 0.05));
  border: 1px solid rgba(13, 110, 253, 0.12);
}

[data-theme="dark"] .blog-details-page .tg-blog-comment-official,
[data-theme=dark] .blog-details-page .tg-blog-comment-official {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(13, 110, 253, 0.04));
  border-color: rgba(255, 255, 255, 0.1);
}

.blog-details-page .tg-blog-appreciate-btn {
  border-radius: 2rem;
  border: 1px solid rgba(220, 53, 69, 0.35);
  color: #b02a37;
  font-weight: 600;
  padding-inline: 0.85rem;
  line-height: 1.35;
}

.blog-details-page .tg-blog-comment-replies {
  border-inline-start: 2px dashed rgba(13, 110, 253, 0.24);
  margin-inline-start: 0.35rem;
  padding-inline-start: 0.85rem;
}

.blog-details-page .tg-blog-appreciate-btn:hover {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.55);
  color: #842029;
}

.blog-details-page .tg-blog-appreciate-btn.is-active {
  background: rgba(220, 53, 69, 0.92);
  border-color: transparent;
  color: #fff;
}

.blog-details-page .tg-blog-appreciate-btn iconify-icon {
  vertical-align: -0.2em;
  font-size: 1.1em;
}

.blog-details-page .tg-blog-appreciate-badge {
  font-weight: 600;
  background: rgba(220, 53, 69, 0.12);
  color: #9b1c2e;
  border: 1px solid rgba(220, 53, 69, 0.25);
}

.blog-details-page .tg-blog-official-reply-modal .modal-content {
  border-radius: 1rem;
}


/* أيقونة يمين + نص بجانبها؛ فرض rtl إن ورث السطر ltr من المودال */
.tg-directory-contact-list,
.tg-directory-contact-list .tg-directory-contact-line {
  direction: rtl;
}
.tg-directory-contact-list {
  padding-inline-start: 0;
  width: 100%;
}
.tg-directory-contact-list .tg-directory-contact-line {
  line-height: 1.55;
}
.tg-directory-contact-list .tg-directory-contact-text {
  text-align: start;
}
.tg-directory-contact-list .tg-directory-contact-icon {
  line-height: 0;
}
.tg-directory-contact-list .tg-directory-contact-icon .icon-inline {
  font-size: 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
}
#tgDirectoryShopModal .tg-dir-rated-notice {
  border-color: rgba(13, 110, 253, 0.2);
}

#tgDirectoryShopModal .rating-card-three .tg-dir-stars-wrap.stars .stars-checkbox:checked + .stars-star > .star-icon,
#tgDirectoryShopModal .rating-card-three .tg-dir-stars-wrap.stars .stars-checkbox:checked ~ .stars-star > .star-icon,
#tgDirectoryShopModal .rating-card-three .tg-dir-stars-wrap.stars .stars-star:hover > .star-icon,
#tgDirectoryShopModal .rating-card-three .tg-dir-stars-wrap.stars .stars-star:hover ~ .stars-star > .star-icon {
  fill: var(--bs-success, #2ecc4a);
  stroke: var(--bs-success, #2ecc4a);
}

#tgDirectoryShopModal .minimal-tab .tg-directory-user-rating .btn.btn-primary.tg-directory-rating-submit-btn {
  width: 100%;
  background-color: var(--bs-primary) !important;
  border: 1px solid var(--bs-primary) !important;
  color: #fff !important;
  opacity: 1;
}
#tgDirectoryShopModal .minimal-tab .tg-directory-user-rating .btn.btn-primary.tg-directory-rating-submit-btn .icon-inline,
#tgDirectoryShopModal .minimal-tab .tg-directory-user-rating .btn.btn-primary.tg-directory-rating-submit-btn iconify-icon {
  color: inherit;
}

html:has(body.modal-open),
html:has(#affanOffcanvas.show),
html:has(#tgProductDetailsOffcanvas.show) {
  overflow: hidden !important;
}
body.modal-open,
body:has(#affanOffcanvas.show),
body:has(#tgProductDetailsOffcanvas.show) {
  overflow: hidden !important;
  overscroll-behavior: none;
}
#affanOffcanvas.show,
#affanOffcanvas .offcanvas-body,
#tgProductDetailsOffcanvas.show,
#tgProductDetailsOffcanvas .offcanvas-body {
  overscroll-behavior: contain;
}

.tg-directory-modal .modal-body.tg-directory-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 100vh;
  overscroll-behavior: contain;
}

#tgDirectoryFilterOffcanvas .offcanvas-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 100dvh;
  padding-bottom: calc(80px + env(safe-area-inset-bottom));
}
.tg-directory-masonry-grid {
  column-count: 2;
  column-gap: 0.5rem;
}
.tg-directory-masonry-grid .portfolio-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 0.5rem;
  break-inside: avoid;
  vertical-align: top;
}
@media (max-width: 380px) {
  .tg-directory-masonry-grid {
    column-count: 1;
  }
}

#tgDirectoryShopModal .tg-directory-vb-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
#tgDirectoryShopModal .tg-directory-vb-link img {
  pointer-events: none;
  user-select: none;
}
body.modal-open .vbox-overlay {
  z-index: 10000060 !important;
}

.tg-notif-party-card {
  background: linear-gradient(135deg, rgba(1, 52, 212, 0.07) 0%, transparent 58%);
}
.tg-notif-party-avatar-inner {
  width: 7.25rem;
  height: 7.25rem;
  border: 2px solid rgba(1, 52, 212, 0.18);
}
.tg-notif-party-role-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35em 0.75em;
  background-color: rgba(1, 52, 212, 0.1) !important;
  color: #0134d4 !important;
}
[data-theme="dark"] .tg-notif-party-role-badge {
  color: #6ea8fe !important;
  background-color: rgba(110, 168, 254, 0.15) !important;
}
.tg-notifications-toolbar {
  min-height: 2.75rem;
}
.tg-notif-toolbar-btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.tg-notif-toolbar-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.tg-notif-toolbar-btn:active:not(:disabled) {
  transform: translateY(0);
}
.tg-notif-toolbar-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.tg-notif-toolbar-icon {
  font-size: 1.4rem;
}
.tg-notif-toolbar-btn iconify-icon {
  pointer-events: none;
}
[data-theme="dark"] .tg-notif-toolbar-btn:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.tg-notif-detail-body {
  line-height: 1.65;
}
.tg-notif-detail-body .tg-notif-body-line:last-child {
  margin-bottom: 0 !important;
}
.tg-notif-detail-body .tg-notif-body-phone {
  word-break: break-all;
}
.tg-notif-party-phone {
  color: var(--success-600, #198754);
  word-break: break-all;
}
.tg-notif-party-phone iconify-icon {
  pointer-events: none;
}
.tg-notif-party-phone:hover {
  color: var(--success-700, #146c43);
  text-decoration: underline !important;
}
[data-theme="dark"] .tg-notif-party-phone {
  color: var(--success-400, #75b798);
}
[data-theme="dark"] .tg-notif-party-phone:hover {
  color: var(--success-300, #a3cfbb);
}


/* --- Home loyalty packages slider: شريحة واحدة = باقة واحدة بكل العروض (items:1 في JS) --- */
#tgHomeLoyaltyRoot .tg-home-loyalty-packages-partner-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#tgHomeLoyaltyRoot .tg-home-loyalty-packages-partner-wrap .tns-outer,
#tgHomeLoyaltyRoot .tg-home-loyalty-packages-partner-wrap .tns-inner,
#tgHomeLoyaltyRoot .tg-home-loyalty-packages-partner-wrap .tns-slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#tgHomeLoyaltyRoot .tg-home-loyalty-packages-partner-wrap .tns-ovh {
  overflow: hidden !important;
}

#tgHomeLoyaltyRoot .tg-home-loyalty-packages-partner-wrap .tns-item > div {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#tgHomeLoyaltyRoot .tg-home-loyalty-packages-partner-wrap .tg-loyalty-slide-inner,
#tgHomeLoyaltyRoot .tg-home-loyalty-packages-partner-wrap .tg-loy-package-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Home loyalty — tier pills (match profile public package cards / .loy-pkg-pub-tier-pill) */
#tgHomeLoyaltyRoot .tg-loy-tier-row,
#tgHomeLoyaltyDetailModal .tg-loy-tier-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

#tgHomeLoyaltyRoot .tg-loy-tier-pill,
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem 0.2rem 0.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#tgHomeLoyaltyRoot .tg-loy-tier-pill__ic,
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill__ic {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

#tgHomeLoyaltyRoot .tg-loy-tier-pill__lv,
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill__lv {
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
  font-size: 0.68rem;
}

#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="1"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="1"] {
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  color: #475569;
}
#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="2"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="2"] {
  background: linear-gradient(180deg, #ecfdf5, #bbf7d0);
  color: #166534;
}
#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="3"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="3"] {
  background: linear-gradient(180deg, #e0f2fe, #bae6fd);
  color: #0c5c73;
}
#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="4"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="4"] {
  background: linear-gradient(180deg, #eff6ff, #bfdbfe);
  color: #0134d4;
}
#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="5"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="5"] {
  background: linear-gradient(180deg, #eef2ff, #ddd6fe);
  color: #312182;
}
#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="6"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="6"] {
  background: linear-gradient(180deg, #fffbeb, #fde68a);
  color: #a16207;
}
#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="7"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="7"] {
  background: linear-gradient(180deg, #fff7ed, #fed7aa);
  color: #c2410c;
}
#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="8"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="8"] {
  background: linear-gradient(180deg, #fdf2f8, #fbcfe8);
  color: #9d174d;
}
#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="9"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="9"] {
  background: linear-gradient(180deg, #fef2f2, #fecaca);
  color: #991b1b;
}
#tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="10"],
#tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="10"] {
  background: linear-gradient(135deg, #ecfdf5, #fffbeb, #fde68a);
  color: #0f172a;
  font-weight: 800;
}

/* الوضع الداكن: شارات المستوى تستخدم تبايناً أوضح مع الحفاظ على تمييز الدرجات */
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill,
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill,
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill,
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="1"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="1"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="1"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="1"] {
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.35), rgba(71, 85, 105, 0.28));
  color: #e2e8f0;
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="2"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="2"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="2"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="2"] {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.35), rgba(5, 150, 105, 0.22));
  color: #a7f3d0;
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="3"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="3"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="3"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="3"] {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.32), rgba(14, 165, 233, 0.2));
  color: #bae6fd;
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="4"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="4"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="4"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="4"] {
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.38), rgba(37, 99, 235, 0.25));
  color: #dbeafe;
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="5"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="5"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="5"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="5"] {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.35), rgba(109, 40, 217, 0.22));
  color: #ede9fe;
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="6"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="6"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="6"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="6"] {
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.28), rgba(217, 119, 6, 0.22));
  color: #fef3c7;
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="7"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="7"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="7"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="7"] {
  background: linear-gradient(180deg, rgba(251, 146, 60, 0.32), rgba(234, 88, 12, 0.22));
  color: #ffedd5;
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="8"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="8"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="8"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="8"] {
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.3), rgba(219, 39, 119, 0.2));
  color: #fce7f3;
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="9"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="9"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="9"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="9"] {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.32), rgba(220, 38, 38, 0.22));
  color: #fecaca;
}
[data-theme="dark"] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="10"],
[data-theme=dark] #tgHomeLoyaltyRoot .tg-loy-tier-pill[data-tier="10"],
[data-theme="dark"] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="10"],
[data-theme=dark] #tgHomeLoyaltyDetailModal .tg-loy-tier-pill[data-tier="10"] {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(250, 204, 21, 0.22), rgba(251, 191, 36, 0.2));
  color: #f8fafc;
  font-weight: 800;
}

/* Reference total: strikethrough + danger (home cards + detail modal) */
#tgHomeLoyaltyRoot .tg-loy-price-ref__line,
#tgHomeLoyaltyDetailModal .tg-loy-price-ref__line {
  font-size: 0.875rem;
}
#tgHomeLoyaltyRoot .tg-loy-price-ref__num,
#tgHomeLoyaltyRoot .tg-loy-price-ref__cur,
#tgHomeLoyaltyDetailModal .tg-loy-price-ref__num,
#tgHomeLoyaltyDetailModal .tg-loy-price-ref__cur {
  text-decoration: line-through;
  color: var(--bs-danger, #dc3545);
  font-weight: 700;
}

/* Home loyalty — package detail modal */
#tgHomeLoyaltyDetailModal .modal-dialog {
  max-width: min(48rem, calc(100vw - 1.5rem));
}
#tgHomeLoyaltyDetailModal .modal-content {
  max-height: min(92vh, calc(100vh - 1rem));
}
#tgHomeLoyaltyDetailModal .tg-loy-lines-section {
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.65);
  border-radius: 0.75rem;
  overflow: hidden;
}
#tgHomeLoyaltyDetailModal .tg-loy-lines-section__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(var(--bs-border-color-rgb), 0.45);
  background: rgba(var(--bs-primary-rgb), 0.06);
}
#tgHomeLoyaltyDetailModal .tg-loy-lines-section__title {
  flex: 1;
  min-width: 0;
}
#tgHomeLoyaltyDetailModal .tg-loy-lines-section__accent {
  width: 4px;
  height: 1.15rem;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--bs-primary), rgba(var(--bs-primary-rgb), 0.55));
}
#tgHomeLoyaltyDetailModal .tg-loy-lines__thumb {
  width: 3.25rem;
  height: 3.25rem;
  min-width: 3.25rem;
}
#tgHomeLoyaltyDetailModal .tg-loy-lines__qty {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}
#tgHomeLoyaltyDetailModal .tg-loy-lines__qty-val {
  font-weight: 600;
  color: var(--bs-body-color);
}
#tgHomeLoyaltyDetailModal .tg-loy-lines__size-pill {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  background: rgba(var(--bs-secondary-rgb), 0.12);
}
#tgHomeLoyaltyDetailModal .tg-loy-lines__unit-ref {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--bs-secondary-color);
}
#tgHomeLoyaltyDetailModal .tg-loy-lines__color-dot {
  width: 0.65rem;
  height: 0.65rem;
}

/* —— Home: loyalty coupon strip (Tiny Slider + cards) —— */
.tg-loyalty-coupon-cards-scope .tg-home-loyalty-coupons-shell {
  border-radius: 0.75rem;
}
.tg-loyalty-coupon-cards-scope .tg-home-loyalty-coupons-head {
  row-gap: 0.5rem;
}
.tg-home-loyalty-coupons-partner-shell {
  position: relative;
  isolation: isolate;
}
.tg-home-loyalty-coupons-partner-shell .tns-outer,
.tg-home-loyalty-coupons-partner-shell .tns-inner,
.tg-home-loyalty-coupons-partner-shell .tns-slider {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.tg-home-loyalty-coupons-partner-shell .tns-outer {
  overflow: hidden;
}
.tg-home-loyalty-coupons-partner-shell .tns-ovh {
  overflow: hidden !important;
}
.tg-home-loyalty-coupons-partner-shell .tns-inner {
  margin-inline: 0 !important;
}
.tg-home-loyalty-coupons-partner-shell .tns-item > div {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
/* تنسيق شريط التنقّل: نفس partner-logo-slide-wrapper في style.css */
.tg-home-loyalty-coupon-slide-inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.tg-home-loyalty-coupon-surface {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--bs-border-color-rgb), 0.45);
  min-height: 5.5rem;
}
.tg-home-loyalty-coupon-discount-corner {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, var(--bs-danger, #dc2626), rgba(var(--bs-danger-rgb), 0.88));
  border-end-start-radius: 0.5rem;
  border-start-start-radius: 0;
  max-width: min(11rem, 55%);
  box-shadow: 0 2px 10px rgba(var(--bs-danger-rgb), 0.28);
}
.tg-home-loyalty-coupon-discount-corner__ic {
  font-size: 1rem;
  flex-shrink: 0;
}
.tg-home-loyalty-coupon-discount-corner__txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-home-loyalty-coupon-row {
  padding-inline-end: 0.25rem;
  padding-top: 0.15rem;
}

.tg-home-loyalty-coupon-code-badge {
  max-width: 100%;
}
.tg-loyalty-coupon-cards-scope .invoice-search-item.tg-home-loyalty-coupon-item {
  margin-bottom: 0;
}

/* سلة: كوبون ولاء — شريط أدوات + شارات (ألوان Affan من style.css: --primary-*, --text, --border, [data-theme=dark]) */
.tg-cart-loyalty-toolbar {
  flex-wrap: nowrap;
}
.tg-cart-loyalty-toolbar__main {
  min-width: 0;
}
.tg-cart-loyalty-label {
  font-size: 0.7rem;
}
#tgCartLoyaltyStrip .tg-cart-loyalty-label.text-muted {
  color: var(--text) !important;
  opacity: 0.88;
}
[data-theme="dark"] #tgCartLoyaltyStrip .tg-cart-loyalty-label.text-muted,
[data-theme=dark] #tgCartLoyaltyStrip .tg-cart-loyalty-label.text-muted {
  opacity: 0.9;
}
#tgCartLoyaltyStrip .tg-cart-loyalty-applied-code {
  color: var(--primary-950);
  opacity: 0.9;
}
[data-theme="dark"] #tgCartLoyaltyStrip .tg-cart-loyalty-applied-code,
[data-theme=dark] #tgCartLoyaltyStrip .tg-cart-loyalty-applied-code {
  color: var(--border);
  opacity: 1;
}
#tgCartLoyaltyModal .tg-cart-loyalty-modal-title {
  color: var(--primary-950);
}
[data-theme="dark"] #tgCartLoyaltyModal .tg-cart-loyalty-modal-title,
[data-theme=dark] #tgCartLoyaltyModal .tg-cart-loyalty-modal-title {
  color: var(--white);
}
#tgCartLoyaltyModal .tg-cart-loyalty-modal-body {
  color: var(--primary-950);
}
[data-theme="dark"] #tgCartLoyaltyModal .tg-cart-loyalty-modal-body,
[data-theme=dark] #tgCartLoyaltyModal .tg-cart-loyalty-modal-body {
  color: var(--border);
}
.tg-cart-loyalty-strip__track {
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  scrollbar-width: thin;
  gap: 0.2rem;
  flex-wrap: nowrap;
  align-items: center;
}
.tg-cart-loyalty-badge {
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--primary-950);
  background-color: var(--primary-100);
  border: 1px solid rgba(1, 29, 86, 0.1) !important;
  box-shadow: none;
}
[data-theme="dark"] .tg-cart-loyalty-badge:not(.tg-cart-loyalty-badge--on):not(.tg-cart-loyalty-badge--expired),
[data-theme=dark] .tg-cart-loyalty-badge:not(.tg-cart-loyalty-badge--on):not(.tg-cart-loyalty-badge--expired) {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.tg-cart-loyalty-badge__ic {
  font-size: 0.85em;
  flex-shrink: 0;
}
.tg-cart-loyalty-badge--on {
  background-color: var(--primary-500) !important;
  border-color: var(--primary-500) !important;
  color: var(--white) !important;
}
[data-theme="dark"] .tg-cart-loyalty-badge--on,
[data-theme=dark] .tg-cart-loyalty-badge--on {
  background-color: var(--primary-50) !important;
  border-color: var(--primary-50) !important;
  color: var(--white) !important;
}
/* كوبون جاهز: تمييز خفيف بدون حلقة خارجية مزدوجة */
.tg-cart-loyalty-badge--ready:not(.tg-cart-loyalty-badge--on) {
  box-shadow: none;
  border-color: var(--primary-400) !important;
  background-color: rgba(103, 151, 254, 0.14);
}
[data-theme="dark"] .tg-cart-loyalty-badge--ready:not(.tg-cart-loyalty-badge--on),
[data-theme=dark] .tg-cart-loyalty-badge--ready:not(.tg-cart-loyalty-badge--on) {
  box-shadow: none;
  border-color: rgba(154, 186, 254, 0.45) !important;
  background-color: rgba(255, 255, 255, 0.1);
}
.tg-cart-loyalty-badge--expired {
  text-decoration: none;
  opacity: 1 !important;
  color: var(--danger-500) !important;
  background-color: rgba(234, 76, 98, 0.12) !important;
  border-color: rgba(234, 76, 98, 0.45) !important;
  cursor: default;
}
[data-theme="dark"] .tg-cart-loyalty-badge--expired,
[data-theme=dark] .tg-cart-loyalty-badge--expired {
  color: var(--danger-500) !important;
  background-color: rgba(234, 76, 98, 0.15) !important;
  border-color: rgba(234, 76, 98, 0.5) !important;
}
.tg-cart-loyalty-badge--expired:hover {
  filter: none;
}
.tg-cart-loyalty-badge--level-off {
  border-color: rgba(193, 141, 11, 0.55) !important;
}
[data-theme="dark"] .tg-cart-loyalty-badge--level-off,
[data-theme=dark] .tg-cart-loyalty-badge--level-off {
  border-color: rgba(241, 177, 15, 0.55) !important;
}
.tg-cart-loyalty-badge:not(.tg-cart-loyalty-badge--locked):not(.tg-cart-loyalty-badge--expired):hover {
  filter: brightness(0.97);
}
[data-theme="dark"] .tg-cart-loyalty-badge:not(.tg-cart-loyalty-badge--locked):not(.tg-cart-loyalty-badge--expired):hover,
[data-theme=dark] .tg-cart-loyalty-badge:not(.tg-cart-loyalty-badge--locked):not(.tg-cart-loyalty-badge--expired):hover {
  filter: brightness(1.08);
}
.tg-cart-coupon-remove-btn {
  line-height: 1;
  min-width: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tg-cart-coupon-remove__ic {
  display: block;
  flex-shrink: 0;
}
.tg-cart-coupon-remove-btn:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}
.tg-cart-coupon-remove-btn:hover .tg-cart-coupon-remove__ic {
  color: var(--primary-950) !important;
  opacity: 1;
}
[data-theme="dark"] .tg-cart-coupon-remove-btn:hover,
[data-theme=dark] .tg-cart-coupon-remove-btn:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}
[data-theme="dark"] .tg-cart-coupon-remove-btn:hover .tg-cart-coupon-remove__ic,
[data-theme=dark] .tg-cart-coupon-remove-btn:hover .tg-cart-coupon-remove__ic {
  color: var(--white) !important;
}
/* نافذة كوبون السلة: فوق الشريط السفلي (.footer-nav-area ~10050) + توسيط صحيح بعد النقل إلى body */
#tgCartLoyaltyModal.tg-cart-loyalty-bs-modal.modal.show {
  z-index: 10160 !important;
}
body:has(#tgCartLoyaltyModal.show) .modal-backdrop.show {
  z-index: 10155 !important;
}

/* نافذة تأكيد إزالة سطر السلة: فوق الشريط السفلي */
#cartRemoveConfirmModal.tg-cart-remove-confirm-modal.modal.show {
  z-index: 10160 !important;
}
body:has(#cartRemoveConfirmModal.show) .modal-backdrop.show {
  z-index: 10155 !important;
}

/* —— لوحة التحكم: البلدات وسعر التوصيل —— */
.dash-delivery-areas-table {
  table-layout: fixed;
  width: 100%;
}

.dash-delivery-areas-table .dash-da-th-main {
  width: auto;
}

.dash-delivery-areas-table .dash-da-th-actions {
  width: 7rem;
  white-space: nowrap;
}

.dash-delivery-areas-table tbody tr:not(:last-child) td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dash-delivery-areas-table .dash-da-td-main {
  min-width: 0;
}

.dash-delivery-areas-table .dash-da-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.dash-delivery-areas-table .dash-da-name {
  font-size: 0.95rem;
  line-height: 1.35;
}

.dash-delivery-areas-table .dash-da-line {
  line-height: 1.35;
}

.dash-delivery-areas-table .dash-da-badges .badge {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.28em 0.55em;
}

.dash-delivery-areas-table .dash-da-td-actions {
  white-space: nowrap;
  vertical-align: middle;
}

[data-theme="dark"] .dash-delivery-areas-table tbody tr:not(:last-child) td,
[data-theme=dark] .dash-delivery-areas-table tbody tr:not(:last-child) td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* مسؤول المتجر — جدول المنتجات (/Store/Store) */
.tg-store-products-table {
  --tg-store-thumb: 52px;
  --tg-store-action-size: 2rem;
}

.tg-store-products-table .tg-store-products-th-img,
.tg-store-products-table .tg-store-products-td-img {
  width: 1%;
  vertical-align: middle;
}

.tg-store-products-table .tg-store-product-thumb {
  width: var(--tg-store-thumb);
  height: var(--tg-store-thumb);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.04);
}

.tg-store-products-table .tg-store-product-thumb img {
  display: block;
  object-fit: cover;
}

.tg-store-products-table .tg-store-products-td-product {
  min-width: 0;
}

.tg-store-products-table .tg-store-product-cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.tg-store-products-table .tg-store-product-name {
  font-weight: 600;
  line-height: 1.3;
}

.tg-store-products-table .tg-store-product-price-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
  margin-top: 0.1rem;
}

.tg-store-products-table .tg-store-product-price {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-body-color, #212529);
  white-space: nowrap;
}

.tg-store-products-table .tg-store-product-status-badge {
  font-weight: 600;
  font-size: 0.72rem;
  padding: 0.28em 0.55em;
}

.tg-store-products-table .tg-store-product-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.tg-store-products-table .tg-store-product-actions .tg-store-action-btn {
  width: var(--tg-store-action-size);
  height: var(--tg-store-action-size) !important;
  min-width: var(--tg-store-action-size);
  min-height: var(--tg-store-action-size);
  padding: 0;
  flex-shrink: 0;
}

.tg-store-products-table .tg-store-products-th-actions,
.tg-store-products-table .tg-store-products-td-actions {
  width: 1%;
  min-width: 0;
  vertical-align: middle;
  padding-inline: 0.35rem;
}

.tg-store-products-table .tg-store-products-actions-col-icon {
  font-size: 1.15rem;
  opacity: 0.55;
  vertical-align: middle;
}

.tg-store-products-table .tg-store-products-td-actions .tg-store-action-btn iconify-icon {
  font-size: 1.05rem;
  line-height: 1;
}

[data-theme="dark"] .tg-store-products-table .tg-store-product-price {
  color: rgba(255, 255, 255, 0.92);
}

.tg-store-modal-current-img {
  max-height: 56px;
  max-width: 120px;
  object-fit: cover;
  vertical-align: middle;
}

[data-theme="dark"] .tg-store-products-table .tg-store-product-thumb {
  background: rgba(255, 255, 255, 0.06);
}


body:has(#tgProductDetailsOffcanvas.show) #footerNav.footer-nav-area {
  z-index: 1060;
}

/* الهيدر فوق أي طبقة متبقية؛ الكانفاز نفسه يُعرض من تحت الهيدر */
body:has(#tgProductDetailsOffcanvas.show) #headerArea.header-area {
  z-index: 1065;
}

/* كانفاز المنتج: يبدأ تحت الهيدر الثابت (.header-area height: 70px في style.css) */
.tg-product-details-offcanvas.offcanvas-bottom {
  border-top: 0;
  top: 70px;
  bottom: 0;
  left: 0;
  right: 0;
  height: auto !important;
  max-height: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tg-product-details-offcanvas .offcanvas-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* طبقة التعتيم لا تغطي شريط الهيدر */
body:has(#tgProductDetailsOffcanvas.show) .offcanvas-backdrop {
  top: 70px;
}

.tg-product-details-offcanvas .tg-product-details-sheet {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
