/* =====================================================================
   NEW37 — PREMIUM LAYER
   ---------------------------------------------------------------------
   طبقة شكل بس فوق main-style.css — مفيش أي تغيير في طريقة الشغل.
   الألوان هي نفس ألوان الثيم (--primary-color ...) عشان لو اتغيرت من
   إعدادات المتجر، كل حاجة هنا تتغير معاها.
   كل القواعد متقفلة على body.theme-new37 عشان ما تأثرش على أي ثيم تاني.
   ===================================================================== */

:root {
  --np-primary: var(--primary-color, #6f22ad);
  --np-primary-deep: color-mix(in srgb, var(--np-primary) 72%, #000);
  --np-primary-soft: color-mix(in srgb, var(--np-primary) 9%, #fff);
  --np-primary-ring: color-mix(in srgb, var(--np-primary) 28%, transparent);
  --np-ink: #1d1724;
  --np-muted: #6e6679;
  --np-line: rgba(33, 8, 58, 0.09);
  --np-surface: #ffffff;
  --np-surface-2: #f7f4fa;
  --np-radius-sm: 12px;
  --np-radius: 16px;
  --np-radius-lg: 22px;
  --np-shadow-xs: 0 1px 2px rgba(33, 8, 58, 0.05);
  --np-shadow-sm: 0 1px 2px rgba(33, 8, 58, 0.04), 0 4px 14px rgba(33, 8, 58, 0.06);
  --np-shadow-md: 0 2px 6px rgba(33, 8, 58, 0.05), 0 14px 34px rgba(33, 8, 58, 0.1);
  --np-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --np-font: "IBM Plex Sans Arabic", "Poppins", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --np-nav-space: calc(92px + env(safe-area-inset-bottom));
}

/* =====================================================================
   1. الأساس: الخط، النعومة، التركيز
   ===================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.theme-new37 {
  font-family: var(--np-font);
  color: var(--np-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.65;
}

body.theme-new37 :is(button, input, select, textarea, optgroup) {
  font-family: inherit;
}

body.theme-new37 :is(h1, h2, h3, h4, h5, h6) {
  color: var(--np-ink);
  letter-spacing: 0;
  line-height: 1.4;
}

body.theme-new37 ::selection {
  background: var(--np-primary-ring);
}

body.theme-new37 :is(a, button, [role="button"], input, select, textarea):focus-visible {
  outline: 2px solid var(--np-primary) !important;
  outline-offset: 2px;
  border-radius: 10px;
}

body.theme-new37 input[type="checkbox"],
body.theme-new37 input[type="radio"] {
  accent-color: var(--np-primary);
}

body.theme-new37 img {
  -webkit-user-drag: none;
}

/* =====================================================================
   2. الهيدر — أبيض زجاجي (نفس الشكل الحالي) في كل الصفحات وكل المقاسات
   ===================================================================== */

html body.theme-new37 .site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 60 !important;
  background: rgba(255, 255, 255, 0.88) !important;
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  color: var(--np-ink) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--np-line) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset !important;
  transition: box-shadow 0.3s ease;
}

html body.theme-new37 .site-header.np-scrolled {
  box-shadow: 0 10px 30px rgba(33, 8, 58, 0.08) !important;
}

/* الطبقات القديمة كانت بتلوّن الأجزاء الداخلية أبيض سادة فوق الزجاج */
html body.theme-new37 .site-header > div {
  background: transparent !important;
  background-color: transparent !important;
  border-bottom: 0 !important;
}

/* شريط الأقسام الموف في الرئيسية على الديسكتوب يفضل زي ما هو */
html body.theme-new37:has(.stylique-home) .site-header nav {
  background: linear-gradient(135deg, #21083a 0%, #3a1060 45%, var(--np-primary) 100%) !important;
}

/* اللوجو كان بيتقلب أبيض في الرئيسية فكان بيختفي على الهيدر الأبيض */
html body.theme-new37 .site-header .logo-col img {
  filter: none !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

html body.theme-new37 .site-header .logo-col h1 {
  margin: 0;
  line-height: 0;
}

/* الأيقونات تاخد لون الهيدر بدل اللون الثابت المرسوم جوه الـ SVG */
html body.theme-new37 .site-header svg {
  color: inherit !important;
}

html body.theme-new37 .site-header svg :is(path, line, circle, rect, polyline, polygon)[stroke]:not([stroke="none"]) {
  stroke: currentColor !important;
}

html body.theme-new37 .site-header :is(#search-toggle, #mobile-menu-toggle, .cart-header, .wishlist-header),
html body.theme-new37 .site-header .flex.items-center.gap-3 > a,
html body.theme-new37 .site-header #form_logout > a {
  width: 40px !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  color: var(--np-ink) !important;
  background: var(--np-surface-2) !important;
  border: 1px solid var(--np-line) !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease !important;
  position: relative;
}

html body.theme-new37 .site-header :is(#search-toggle, #mobile-menu-toggle, .cart-header, .wishlist-header):active,
html body.theme-new37 .site-header .flex.items-center.gap-3 > a:active {
  transform: scale(0.93);
}

@media (hover: hover) {
  html body.theme-new37 .site-header :is(#search-toggle, #mobile-menu-toggle, .cart-header, .wishlist-header):hover,
  html body.theme-new37 .site-header .flex.items-center.gap-3 > a:hover,
  html body.theme-new37 .site-header #form_logout > a:hover {
    background: var(--np-primary-soft) !important;
    color: var(--np-primary) !important;
  }
}

html body.theme-new37 .site-header .cart-badge {
  top: -4px !important;
  right: -4px !important;
  min-width: 18px !important;
  width: auto !important;
  height: 18px !important;
  padding: 0 4px;
  border-radius: 999px !important;
  background: var(--np-primary) !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: 0 3px 8px -2px var(--np-primary);
  font-size: 10px !important;
  font-weight: 700;
  line-height: 14px;
}

/* بحث الديسكتوب */
html body.theme-new37 .site-header #desktop-search-form {
  border-radius: 14px !important;
  border-color: #e7e2ec !important;
  box-shadow: var(--np-shadow-xs) !important;
}

html body.theme-new37 .site-header #desktop-search-form:focus-within {
  border-color: var(--np-primary) !important;
  box-shadow: 0 0 0 4px var(--np-primary-ring) !important;
}

html body.theme-new37 .site-header #desktop-search-form button {
  background: var(--np-primary) !important;
  color: #fff !important;
}

@media (max-width: 1023px) {
  html body.theme-new37 .site-header > div:first-child {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: 0 !important;
  }

  html body.theme-new37 .site-header .md\:container,
  html body.theme-new37 .site-header .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  html body.theme-new37 .site-header .logo-col img {
    max-height: 38px !important;
    max-width: 118px !important;
  }

  html body.theme-new37 .site-header .flex.items-center.gap-3 {
    gap: 8px !important;
  }
}

@media (max-width: 360px) {
  html body.theme-new37 .site-header :is(#search-toggle, #mobile-menu-toggle, .cart-header, .wishlist-header),
  html body.theme-new37 .site-header .flex.items-center.gap-3 > a,
  html body.theme-new37 .site-header #form_logout > a {
    width: 36px !important;
    height: 36px !important;
  }
}

/* =====================================================================
   3. الأزرار والحقول
   ===================================================================== */

body.theme-new37 .btn-primary {
  min-height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-primary-deep) 100%) !important;
  color: #fff !important;
  border: 0;
  font-weight: 700;
  box-shadow: 0 10px 22px -10px var(--np-primary);
  transition: transform 0.2s var(--np-ease), box-shadow 0.2s var(--np-ease), filter 0.2s ease;
}

body.theme-new37 .btn-primary:hover {
  opacity: 1;
  filter: brightness(1.06);
  box-shadow: 0 14px 26px -12px var(--np-primary);
}

body.theme-new37 .btn-primary:active {
  transform: scale(0.98);
}

/* زرار الأقسام في ناف الديسكتوب يفضل مستطيل زي ما هو */
body.theme-new37 .site-header nav .btn-primary {
  min-height: 0;
  box-shadow: none;
}

body.theme-new37 .btn-outline {
  min-height: 46px;
  border-radius: 14px;
  border-width: 1.5px;
  font-weight: 700;
}

body.theme-new37 .form-input,
body.theme-new37 select.form-input {
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: var(--np-radius-sm);
  border: 1px solid #e4dfe9;
  background-color: #fff;
  color: var(--np-ink);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-new37 textarea.form-input {
  min-height: 96px;
  line-height: 1.7;
}

body.theme-new37 .form-input::placeholder {
  color: #aaa3b3;
}

body.theme-new37 .form-input:focus {
  border-color: var(--np-primary) !important;
  box-shadow: 0 0 0 4px var(--np-primary-ring);
}

body.theme-new37 input[type="file"].form-input {
  min-height: 0;
  padding: 0.55rem;
  font-size: 13px;
}

body.theme-new37 input[type="file"]::file-selector-button {
  margin-inline-end: 10px;
  padding: 7px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--np-primary-soft);
  color: var(--np-primary);
  font-weight: 700;
  cursor: pointer;
}

body.theme-new37 .select2-container--default .select2-selection--single {
  min-height: 48px;
  border-radius: var(--np-radius-sm) !important;
  border-color: #e4dfe9 !important;
  display: flex;
  align-items: center;
}

/* على الموبايل: 16px عشان آيفون ما يعملش زووم لما تدوس على الحقل */
@media (max-width: 767px) {
  body.theme-new37 .form-input,
  body.theme-new37 select.form-input,
  body.theme-new37 input[type="text"],
  body.theme-new37 input[type="email"],
  body.theme-new37 input[type="number"],
  body.theme-new37 input[type="tel"],
  body.theme-new37 input[type="search"],
  body.theme-new37 textarea {
    font-size: 16px;
  }
}

/* =====================================================================
   4. كارت المنتج (في كل مكان)
   ===================================================================== */

body.theme-new37 .product-card {
  border-radius: 20px !important;
  border: 1px solid var(--np-line) !important;
  background: var(--np-surface) !important;
  box-shadow: var(--np-shadow-sm) !important;
  transition: transform 0.35s var(--np-ease), box-shadow 0.35s var(--np-ease) !important;
}

@media (hover: hover) {
  body.theme-new37 .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow-md) !important;
  }
}

body.theme-new37 .product-card > .relative > a {
  border-radius: 15px !important;
  background: var(--np-surface-2) !important;
}

body.theme-new37 .product-card > .relative > a img {
  background: var(--np-surface-2);
}

/* اسم المنتج: سطرين بالظبط عشان كل الكروت تبقى على نفس الخط */
body.theme-new37 .product-card h3 {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  min-height: calc(1.55em * 2) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--np-ink);
}

body.theme-new37 .product-card h3 a {
  color: inherit;
}

body.theme-new37 .product-card .fa-star {
  font-size: 11px !important;
}

body.theme-new37 .product-card .text-orange-500 {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* زرار المفضلة: زجاجي */
body.theme-new37 .product-card .wishlist-btn {
  width: 34px !important;
  height: 34px !important;
  border: 0 !important;
  background: rgba(255, 255, 255, 0.86) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(33, 8, 58, 0.12) !important;
  transition: transform 0.2s var(--np-ease) !important;
}

body.theme-new37 .product-card .wishlist-btn:active {
  transform: scale(0.9);
}

body.theme-new37 .product-card .wishlist-btn i {
  font-size: 15px !important;
}

body.theme-new37 .product-card .wishlist-btn.active i {
  color: #ef4444 !important;
  font-weight: 900;
}

/* زرار الإضافة للسلة: دايرة عايمة على ركن الصورة */
body.theme-new37 .product-card .addtocart-btn {
  width: 40px !important;
  height: 40px !important;
  bottom: 8px !important;
  right: 18px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-primary-deep) 100%) !important;
  border: 3px solid #fff !important;
  box-shadow: 0 8px 18px -6px var(--np-primary) !important;
}

body.theme-new37 .product-card .addtocart-btn:active {
  transform: scale(0.92) !important;
}

body.theme-new37 .product-card .addtocart-btn i {
  font-size: 14px !important;
}

@media (max-width: 767px) {
  body.theme-new37 .product-card {
    border-radius: 18px !important;
  }

  body.theme-new37 .product-card > .relative {
    padding: 8px 8px 0 !important;
  }

  body.theme-new37 .product-card > .relative > a {
    border-radius: 13px !important;
  }

  body.theme-new37 .product-card > .flex-col {
    padding: 10px 10px 12px !important;
  }

  body.theme-new37 .product-card h3 {
    font-size: 13px !important;
  }

  body.theme-new37 .product-card .addtocart-btn {
    width: 38px !important;
    height: 38px !important;
    right: 14px !important;
    bottom: 6px !important;
  }

  body.theme-new37 .product-card .wishlist-btn {
    width: 32px !important;
    height: 32px !important;
  }

  body.theme-new37 .product-card .absolute.top-5.left-5 {
    top: 14px !important;
    left: 14px !important;
  }

  body.theme-new37 .products-home-grid {
    gap: 12px !important;
  }
}

/* =====================================================================
   5. عناوين الأقسام في الرئيسية
   ===================================================================== */

body.theme-new37 .stylique-home section h2 {
  font-weight: 800;
}

@media (max-width: 767px) {
  body.theme-new37 .stylique-home section > div > .flex.items-end h2 {
    font-size: 22px !important;
  }

  body.theme-new37 .stylique-home section > div > .flex.items-end p {
    font-size: 13px !important;
    margin-top: 4px !important;
  }

  body.theme-new37 .stylique-home section > div > .flex.items-end > a {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--np-primary-soft);
    font-size: 12.5px !important;
  }
}

/* بانر أعلى الصفحات (السلة، الدفع، ...) */
body.theme-new37 .banner-section {
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

@media (max-width: 767px) {
  body.theme-new37 .banner-section {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    border-radius: 0 0 22px 22px;
  }

  body.theme-new37 .banner-section h2 {
    font-size: 24px !important;
    margin-bottom: 0 !important;
  }
}

/* =====================================================================
   6. صفحة المنتج
   ===================================================================== */

body.theme-new37 section:has(.main-image-slider) {
  background: transparent !important;
}

body.theme-new37 section:has(.main-image-slider) > div > .bg-white {
  border-radius: 26px !important;
  box-shadow: var(--np-shadow-md) !important;
  border: 1px solid var(--np-line);
}

body.theme-new37 .main-image-slider .relative {
  border: 0 !important;
  border-radius: 20px !important;
  background: var(--np-surface-2) !important;
}

body.theme-new37 .thumbnail-slider .thumb-image {
  border-radius: 14px !important;
  border: 2px solid transparent !important;
  background: var(--np-surface-2) !important;
  transition: border-color 0.2s ease;
}

body.theme-new37 .thumbnail-slider .swiper-slide-thumb-active .thumb-image {
  border-color: var(--np-primary) !important;
}

body.theme-new37 .main-image-slider .pdp-arrow {
  width: 38px !important;
  height: 38px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--np-shadow-sm) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.theme-new37 section:has(.main-image-slider) h2.font-bold {
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

body.theme-new37 .product-price-amount {
  color: var(--np-primary) !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums;
}

body.theme-new37 .stock_status_color {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #ecfdf3;
}

body.theme-new37 .stock_status_color.text-red-600 {
  background: #fef2f2;
}

body.theme-new37 section:has(.main-image-slider) .border-t.border-b {
  color: #4b4456;
  line-height: 1.9;
  border-color: var(--np-line) !important;
}

/* عداد الكمية: كبسولة واحدة */
body.theme-new37 .quantity-wrp > .flex {
  border: 1px solid #e4dfe9;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

body.theme-new37 .quantity-wrp :is(.quantity-decrement, .quantity-increment) {
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--np-surface-2) !important;
  color: var(--np-primary);
  transition: background 0.2s ease;
}

body.theme-new37 .quantity-wrp :is(.quantity-decrement, .quantity-increment):active {
  background: var(--np-primary-soft) !important;
}

body.theme-new37 .quantity-wrp input.quantity {
  height: 44px !important;
  width: 52px !important;
  border: 0 !important;
  font-weight: 700;
  font-size: 16px;
}

body.theme-new37 .price-wise-btn.addtocart-btn {
  min-height: 52px;
  font-size: 16px;
  border-radius: 16px !important;
}

@media (max-width: 767px) {
  body.theme-new37 section:has(.main-image-slider) {
    padding-top: 14px !important;
  }

  body.theme-new37 section:has(.main-image-slider) > div {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.theme-new37 section:has(.main-image-slider) > div > .bg-white {
    border-radius: 22px !important;
  }

  body.theme-new37 section:has(.main-image-slider) > div > .bg-white > .grid {
    padding: 12px !important;
    gap: 18px !important;
  }

  body.theme-new37 section:has(.main-image-slider) h2.font-bold {
    font-size: 21px !important;
  }

  body.theme-new37 .price-wise-btn.addtocart-btn {
    max-width: none !important;
    width: 100% !important;
  }
}

/* =====================================================================
   7. السلة
   ===================================================================== */

body.theme-new37 .cart-page-section .overflow-x-auto {
  border-radius: var(--np-radius-lg) !important;
  border-color: var(--np-line) !important;
  background: #fff;
  box-shadow: var(--np-shadow-sm);
}

body.theme-new37 .cart-page-section thead th {
  background: var(--np-primary) !important;
  color: #fff !important;
}

body.theme-new37 .cart-page-section tbody td img {
  border-radius: 12px;
}

body.theme-new37 .cart-page-section .lg\:w-1\/3 > div {
  background: #fff !important;
  border: 1px solid var(--np-line) !important;
  border-radius: var(--np-radius-lg) !important;
  box-shadow: var(--np-shadow-sm);
}

body.theme-new37 .cart-page-section .lg\:w-1\/3 .btn-primary {
  min-height: 52px;
  font-size: 16px;
}

body.theme-new37 .cart-page-section .change-cart-globaly {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* الموبايل: كل منتج في كارت بدل جدول بيتسحب بالعرض */
@media (max-width: 767px) {
  body.theme-new37 .cart-page-section {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
  }

  body.theme-new37 .cart-page-section .overflow-x-auto {
    overflow: visible !important;
    border: 0 !important;
    background: transparent;
    box-shadow: none;
  }

  body.theme-new37 .cart-page-section table {
    display: block;
    min-width: 0 !important;
    width: 100% !important;
  }

  body.theme-new37 .cart-page-section thead {
    display: none;
  }

  body.theme-new37 .cart-page-section tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  body.theme-new37 .cart-page-section tbody > tr {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--np-line);
    border-radius: 20px;
    box-shadow: var(--np-shadow-sm);
  }

  body.theme-new37 .cart-page-section tbody > tr > td {
    padding: 0 !important;
    border: 0 !important;
    text-align: start !important;
  }

  body.theme-new37 .cart-page-section tbody > tr > td:first-child,
  body.theme-new37 .cart-page-section tbody > tr > td[colspan] {
    grid-column: 1 / -1;
  }

  /* أي خلية إضافية من الإضافات تاخد سطر كامل */
  body.theme-new37 .cart-page-section tbody > tr > td:not(:first-child):not([data-label]):not(:has(.change-cart-globaly)) {
    grid-column: 1 / -1;
  }

  body.theme-new37 .cart-page-section tbody > tr > td:has(.change-cart-globaly) {
    grid-column: 1;
  }

  body.theme-new37 .cart-page-section tbody > tr > td:has(.change-cart-globaly) > div {
    justify-content: flex-start !important;
  }

  body.theme-new37 .cart-page-section tbody > tr > td[data-label="Price"] {
    display: none;
  }

  body.theme-new37 .cart-page-section tbody > tr > td[data-label="Total"] {
    grid-column: 2;
    font-size: 16px;
  }

  body.theme-new37 .cart-page-section tbody > tr > td:first-child > .flex {
    gap: 12px !important;
    align-items: flex-start !important;
  }

  /* زرار الحذف يروح آخر السطر */
  body.theme-new37 .cart-page-section .remove_item_from_cart {
    order: 3;
    margin-inline-start: auto;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fef2f2;
  }

  body.theme-new37 .cart-page-section tbody td .h-20.w-20 {
    width: 72px !important;
    height: 72px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: var(--np-surface-2) !important;
  }

  body.theme-new37 .cart-page-section tbody td h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
  }

  body.theme-new37 .cart-page-section tbody td .border.rounded-md {
    border-radius: 12px !important;
    border-color: #e4dfe9 !important;
    overflow: hidden;
  }

  body.theme-new37 .cart-page-section tbody td input[type="text"] {
    width: 38px !important;
    font-weight: 700;
    font-size: 15px;
  }

  body.theme-new37 .cart-page-section .lg\:w-1\/3 > div {
    padding: 18px !important;
  }
}

/* =====================================================================
   8. صفحة الدفع
   ===================================================================== */

body.theme-new37 #formdata .bg-gray-50.border,
body.theme-new37 .checkout-page-right > div {
  background: #fff !important;
  border: 1px solid var(--np-line) !important;
  border-radius: var(--np-radius-lg) !important;
  box-shadow: var(--np-shadow-sm) !important;
}

body.theme-new37 .checkout-page-right > div {
  top: 90px !important;
}

body.theme-new37 #formdata h2.font-semibold {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
}

body.theme-new37 #formdata h2 > span.rounded-full {
  width: 30px !important;
  height: 30px !important;
  background: linear-gradient(135deg, var(--np-primary) 0%, var(--np-primary-deep) 100%) !important;
  box-shadow: 0 6px 14px -6px var(--np-primary);
  margin-inline-end: 8px;
  margin-right: 0 !important;
}

body.theme-new37 #formdata label.block {
  color: #4b4456;
  font-weight: 600;
}

/* اختيارات الدفع والشحن: كروت تتحدد بلون المتجر */
body.theme-new37 #formdata .radio-btn,
body.theme-new37 #shipping_location_content .radio-group {
  position: relative;
  border: 1.5px solid #e9e4ee !important;
  border-radius: 16px !important;
  background: #fff;
  padding: 14px !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

body.theme-new37 #shipping_location_content .radio-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.theme-new37 #shipping_location_content .radio-group label {
  flex: 1;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

body.theme-new37 #formdata .radio-btn:has(input[type="radio"]:checked),
body.theme-new37 #shipping_location_content .radio-group:has(input:checked) {
  border-color: var(--np-primary) !important;
  background: var(--np-primary-soft);
  box-shadow: 0 0 0 3px var(--np-primary-ring);
}

body.theme-new37 #formdata .radio-btn input[type="radio"],
body.theme-new37 #shipping_location_content input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-inline-end: 10px;
}

body.theme-new37 #formdata .radio-btn label {
  gap: 2px 10px;
  cursor: pointer;
}

body.theme-new37 #formdata .radio-btn label .font-medium {
  font-weight: 700;
  margin: 0 !important;
}

body.theme-new37 .checkout-page-right .price {
  white-space: nowrap;
}

body.theme-new37 #formdata .radio-btn .center-descrp {
  color: var(--np-muted);
  font-size: 12.5px;
  margin-top: 2px;
}

body.theme-new37 #geo-btn {
  border-radius: 999px !important;
  padding: 7px 14px !important;
  background: var(--np-primary-soft) !important;
  border-color: transparent !important;
  color: var(--np-primary) !important;
  font-weight: 700;
}

/* الكوبون: حقل وزرار ملزوقين */
body.theme-new37 .checkout-page-right .coupon_code {
  min-height: 46px;
  border-start-end-radius: 0 !important;
  border-end-end-radius: 0 !important;
}

body.theme-new37 .checkout-page-right .apply_coupon {
  display: inline-flex;
  align-items: center;
  padding: 0 18px !important;
  min-height: 46px;
  background: var(--np-primary) !important;
  color: #fff !important;
  font-weight: 700;
  border-start-end-radius: 12px !important;
  border-end-end-radius: 12px !important;
  border-start-start-radius: 0 !important;
  border-end-start-radius: 0 !important;
  cursor: pointer;
}

body.theme-new37 .checkout-page-right .text-lg.font-bold {
  font-size: 19px !important;
}

body.theme-new37 .checkout-page-right .btn-primary,
body.theme-new37 .checkout-page-right button[type="submit"] {
  min-height: 54px;
  font-size: 16px;
  border-radius: 16px !important;
}

@media (max-width: 767px) {
  body.theme-new37 #formdata {
    margin-top: 0;
  }

  body.theme-new37 section:has(#formdata) {
    padding-top: 18px !important;
  }

  body.theme-new37 #formdata h2.font-semibold {
    font-size: 17px !important;
  }

  body.theme-new37 .checkout-page-right > div {
    position: static !important;
  }
}

/* =====================================================================
   9. المتاجر والأقسام
   ===================================================================== */

body.theme-new37 .vendor-card {
  border-radius: 22px !important;
  border-color: var(--np-line) !important;
  box-shadow: var(--np-shadow-sm) !important;
  transition: transform 0.35s var(--np-ease), box-shadow 0.35s var(--np-ease) !important;
}

@media (hover: hover) {
  body.theme-new37 .vendor-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow-md) !important;
  }
}

body.theme-new37 .vendor-card > div:first-child {
  background: linear-gradient(180deg, var(--np-primary-soft) 0%, #fff 100%) !important;
  border-color: var(--np-line) !important;
}

body.theme-new37 .vendor-card img.rounded-full {
  box-shadow: 0 0 0 3px #fff, 0 6px 16px rgba(33, 8, 58, 0.14) !important;
}

body.theme-new37 .vendor-card > div:last-child > span:last-child {
  border-radius: 12px !important;
  font-weight: 700;
}

body.theme-new37 .store-categories-page .relative.aspect-square {
  border-radius: 20px;
}

body.theme-new37 .store-categories-page a:has(.aspect-square) {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--np-shadow-sm);
  transition: transform 0.35s var(--np-ease), box-shadow 0.35s var(--np-ease);
}

@media (hover: hover) {
  body.theme-new37 .store-categories-page a:has(.aspect-square):hover {
    transform: translateY(-4px);
    box-shadow: var(--np-shadow-md);
  }
}

/* =====================================================================
   10. شريط الموبايل السفلي + الأزرار العايمة
   ===================================================================== */

@media (max-width: 767px) {
  body.theme-new37 {
    padding-bottom: calc(var(--np-nav-space) + 8px) !important;
  }

  /* الشريط كان محشور في النص (84px من كل ناحية) فالكلام كان بيتقطع */
  html body.theme-new37 .mobile-glass-bottom-nav {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    height: 68px !important;
    padding: 6px !important;
    gap: 2px !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 14px 40px rgba(33, 8, 58, 0.16), 0 3px 10px rgba(33, 8, 58, 0.08) !important;
  }

  html body.theme-new37 .mobile-glass-nav-item {
    flex: 1 1 0 !important;
    width: auto !important;
    color: #8b8397 !important;
    border-radius: 18px !important;
    gap: 3px !important;
  }

  html body.theme-new37 .mobile-glass-nav-item.active {
    color: var(--np-primary) !important;
    background: var(--np-primary-soft) !important;
  }

  html body.theme-new37 .mobile-glass-nav-item.active::before {
    background: var(--np-primary) !important;
    top: 2px !important;
  }

  html body.theme-new37 .mobile-glass-nav-icon {
    font-size: 18px !important;
  }

  html body.theme-new37 .mobile-glass-nav-label,
  html body.theme-new37 .mega-tones-nav-item .mobile-glass-nav-label {
    font-size: 10px !important;
    font-weight: 700 !important;
  }

  /* "منتجات ميجا تونز" كانت بتتقص — بقت على سطرين */
  html body.theme-new37 .mega-tones-nav-item .mobile-glass-nav-label {
    white-space: normal !important;
    line-height: 1.15 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 9.5px !important;
  }

  html body.theme-new37 .mobile-glass-badge {
    background: var(--np-primary) !important;
    font-size: 9px !important;
  }

  /* شات البوت وواتساب يطلعوا فوق الشريط بدل ما يغطّوه */
  html body.theme-new37 .sitebot-widget {
    bottom: var(--np-nav-space) !important;
  }

  html body.theme-new37 .sitebot-bubble {
    width: 52px !important;
    height: 52px !important;
    box-shadow: 0 10px 24px -8px rgba(33, 8, 58, 0.45) !important;
  }

  html body.theme-new37 .external-btns,
  html body.theme-new37 .floating-action-menu {
    bottom: var(--np-nav-space) !important;
  }
}

@media (max-width: 360px) {
  html body.theme-new37 .mobile-glass-bottom-nav {
    left: 8px !important;
    right: 8px !important;
  }

  html body.theme-new37 .mobile-glass-nav-label,
  html body.theme-new37 .mega-tones-nav-item .mobile-glass-nav-label {
    font-size: 9px !important;
  }
}

/* =====================================================================
   11. تفاصيل صغيرة
   ===================================================================== */

body.theme-new37 .swiper-pagination-bullet-active {
  background: var(--np-primary) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-new37 *,
  body.theme-new37 *::before,
  body.theme-new37 *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
