/* =========================================================
   منتجع العناية بالسيارات — RESORT CAR CARE
   كود CSS المتناسق والشامل v3.0
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --resort-black: #08090b;
  --resort-dark-card: #111114;
  --resort-dark-surface: #18181c;
  --resort-orange: #d68b3c;
  --resort-orange-light: #eca952;
  --resort-orange-dark: #b86e24;
  --resort-silver: #d9dde1;
  --resort-silver-muted: #a0a5ab;
  --resort-border: rgba(214, 139, 60, 0.28);
  --resort-header-height: 88px;
}

* {
  box-sizing: border-box;
}

body, html {
  font-family: 'Cairo', sans-serif !important;
  background-color: var(--resort-black) !important;
  color: var(--resort-silver);
}

/* =========================================================
   1. الهيدر وشريط البحث المنبثق
   ========================================================= */

html.resort-header-ready body > header:not(.resort-custom-header),
html.resort-header-ready .store-header,
html.resort-header-ready .header-wrapper,
html.resort-header-ready .top-navbar,
html.resort-header-ready .main-nav-container {
  display: none !important;
}

html.resort-header-ready body {
  padding-top: var(--resort-header-height) !important;
}

.resort-custom-header {
  direction: rtl;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 99990;
  width: 100%;
  height: var(--resort-header-height);
  background: rgba(8, 9, 11, 0.98);
  border-bottom: 1px solid var(--resort-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.resort-header-inner {
  position: relative;
  width: min(1380px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.resort-header-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.resort-header-actions {
  direction: ltr;
}

.resort-header-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resort-header-logo img {
  max-height: 62px;
  width: auto;
  object-fit: contain;
}

.resort-header-button {
  appearance: none;
  background: transparent;
  border: 0;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--resort-orange) !important;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s;
}

.resort-header-button svg {
  width: 24px;
  height: 24px;
  stroke: var(--resort-orange);
  fill: none;
  stroke-width: 2;
}

.resort-header-button:hover {
  background: rgba(214, 139, 60, 0.12);
  color: var(--resort-orange-light) !important;
}

.resort-menu-text {
  font-weight: 700;
  font-size: 15px;
}

.resort-cart-link {
  position: relative;
}

.resort-cart-count {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #111;
  background: var(--resort-orange);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.resort-cart-count.is-visible {
  display: flex;
}

/* شريط البحث المنبثق الفخم */
.resort-search-bar {
  position: absolute;
  top: var(--resort-header-height);
  right: 0;
  left: 0;
  background: #0d0e12;
  border-bottom: 2px solid var(--resort-orange);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  padding: 14px 20px;
  display: none;
  z-index: 99995;
  animation: resortSlideDown 0.25s ease forwards;
}

.resort-search-bar.is-open {
  display: block;
}

@keyframes resortSlideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.resort-search-container {
  width: min(800px, 100%);
  margin: 0 auto;
}

.resort-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #14151a;
  border: 1px solid var(--resort-border);
  border-radius: 12px;
  padding: 6px 14px;
}

.resort-search-input {
  flex: 1;
  background: transparent !important;
  border: 0 !important;
  color: #ffffff !important;
  font-size: 15px;
  font-family: 'Cairo', sans-serif;
  outline: none !important;
}

.resort-search-submit {
  background: transparent;
  border: 0;
  color: var(--resort-orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

.resort-search-submit svg {
  stroke: var(--resort-orange);
}

.resort-search-close {
  background: transparent;
  border: 0;
  color: var(--resort-silver-muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

/* =========================================================
   2. القائمة الجانبية (Drawer)
   ========================================================= */

.resort-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 99991;
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.75);
  transition: opacity 0.25s, visibility 0.25s;
}

.resort-menu-drawer {
  direction: rtl;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99992;
  width: min(360px, 86vw);
  height: 100vh;
  padding: 24px;
  color: #fff;
  background: #0d0e11;
  border-left: 1px solid var(--resort-border);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.5);
  transform: translateX(105%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

html.resort-menu-open {
  overflow: hidden;
}

html.resort-menu-open .resort-menu-overlay {
  opacity: 1;
  visibility: visible;
}

html.resort-menu-open .resort-menu-drawer {
  transform: translateX(0);
}

.resort-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--resort-border);
}

.resort-drawer-head img {
  max-height: 52px;
}

.resort-drawer-close {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--resort-orange);
  border: 1px solid var(--resort-border);
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

.resort-drawer-title {
  margin: 20px 0 10px;
  color: var(--resort-silver-muted);
  font-size: 13px;
  font-weight: 700;
}

.resort-drawer-links {
  display: grid;
  gap: 8px;
}

.resort-drawer-links a {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--resort-silver) !important;
  background: #141519;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}

.resort-drawer-links a:hover {
  color: var(--resort-orange-light) !important;
  background: #1c1d24;
}

/* =========================================================
   3. بطاقات المنتجات وأزرار "أضف إلى السلة" (حل الصورة 1)
   ========================================================= */

salla-product-card,
.s-product-card-entry,
custom-salla-product-card {
  background: var(--resort-dark-card) !important;
  border: 1px solid var(--resort-border) !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
  transition: transform 0.25s ease, border-color 0.25s ease !important;
}

salla-product-card:hover,
.s-product-card-entry:hover {
  transform: translateY(-4px);
  border-color: var(--resort-orange) !important;
}

.s-product-card-content {
  background: transparent !important;
  padding: 14px !important;
}

.s-product-card-content-title,
.s-product-card-content-title a {
  color: var(--resort-silver) !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}

.s-product-card-price,
.s-product-card-sale-price {
  color: var(--resort-orange-light) !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

/* زر أضف للسلة في بطاقات المنتجات - برتقالي بارز ومحدد */
salla-product-card .s-product-card-content-footer button,
salla-product-card .s-product-card-content-footer .s-button-element,
.s-product-card-entry .s-product-card-content-footer button,
.s-product-card-entry .s-product-card-content-footer .s-button-element,
.s-block--products-slider .s-product-card-content-footer button,
.resort-products-dark-section .s-product-card-content-footer button {
  background: linear-gradient(135deg, var(--resort-orange-light), var(--resort-orange)) !important;
  color: #0c0d10 !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 900 !important;
  font-size: 13.5px !important;
  padding: 10px 14px !important;
  width: 100% !important;
  box-shadow: 0 6px 16px rgba(214, 139, 60, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: transform 0.2s, filter 0.2s !important;
}

salla-product-card .s-product-card-content-footer button *,
.s-product-card-entry .s-product-card-content-footer button * {
  color: #0c0d10 !important;
  fill: none !important;
  stroke: #0c0d10 !important;
  stroke-width: 2.2 !important;
}

salla-product-card .s-product-card-content-footer button:hover,
.s-product-card-entry .s-product-card-content-footer button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* =========================================================
   4. صفحة المنتج وإزالة الـ Gap الأبيض وزر اشتر الآن (حل الصورة 2)
   ========================================================= */

body.product-single {
  background-color: var(--resort-black) !important;
}

/* إزالة أي شريط أبيض أو فواصل بين الأقسام نهائياً */
body.product-single main,
body.product-single main > *,
body.product-single .s-block,
body.product-single .s-block--comments,
body.product-single salla-comments,
body.product-single .s-comments,
body.product-single [class*="comments"],
body.product-single [class*="bg-white"],
body.product-single [class*="bg-gray"] {
  background-color: var(--resort-black) !important;
  background: var(--resort-black) !important;
  border-color: var(--resort-border) !important;
}

/* إخفاء صندوق التقييمات إذا كان فارغاً لمنع أي فراغ في المنتصف */
body.product-single salla-comments:empty,
body.product-single .s-comments:empty {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.product-single h1 {
  color: var(--resort-orange) !important;
  font-weight: 900 !important;
  font-size: clamp(20px, 2.5vw, 28px) !important;
  line-height: 1.6 !important;
}

/* صندوق الشراء الرئيسي في صفحة المنتج */
body.product-single .product-form,
body.product-single .product-form-wrapper,
body.product-single salla-product-options {
  background: var(--resort-dark-card) !important;
  border: 1px solid var(--resort-border) !important;
  border-radius: 16px !important;
  padding: 18px !important;
}

/* زر أضف إلى السلة في صفحة المنتج */
body.product-single salla-add-product-button .s-button-element,
body.product-single button[class*="add-to-cart"] {
  background: linear-gradient(135deg, var(--resort-orange-light), var(--resort-orange)) !important;
  color: #0c0d10 !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 900 !important;
  font-size: 15px !important;
}

body.product-single salla-add-product-button .s-button-element *,
body.product-single button[class*="add-to-cart"] * {
  color: #0c0d10 !important;
  stroke: #0c0d10 !important;
}

/* حل زر اشتر الآن: توضيحه بإطار برتقالي مذهب وخلفية راقية */
body.product-single salla-quick-buy,
body.product-single salla-quick-buy .s-button-element,
body.product-single button[class*="quick-buy"],
body.product-single .btn--quick-buy {
  background: rgba(214, 139, 60, 0.14) !important;
  color: var(--resort-orange-light) !important;
  border: 1.5px solid var(--resort-orange) !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  font-size: 14.5px !important;
  transition: all 0.25s ease !important;
}

body.product-single salla-quick-buy .s-button-element *,
body.product-single button[class*="quick-buy"] * {
  color: var(--resort-orange-light) !important;
  fill: none !important;
  stroke: var(--resort-orange-light) !important;
}

body.product-single salla-quick-buy .s-button-element:hover,
body.product-single button[class*="quick-buy"]:hover {
  background: var(--resort-orange) !important;
  color: #0c0d10 !important;
}

body.product-single salla-quick-buy .s-button-element:hover *,
body.product-single button[class*="quick-buy"]:hover * {
  color: #0c0d10 !important;
  stroke: #0c0d10 !important;
}

/* سلايدر منتجات قد تعجبك */
body.product-single .s-block--similar-products,
body.product-single .s-block--related-products {
  padding-top: 35px !important;
  border-top: 1px solid rgba(214, 139, 60, 0.2) !important;
}

body.product-single .s-slider-block__title h2,
body.product-single .s-slider-block__title h3 {
  color: var(--resort-orange) !important;
  font-weight: 800 !important;
  text-align: center !important;
}

/* =========================================================
   5. الفوتر الأنيق المطور ومنع تشوه السياسات والشعار
   ========================================================= */

html.resort-footer-ready body > footer:not(.resort-custom-footer),
html.resort-footer-ready .store-footer {
  display: none !important;
}

.resort-custom-footer {
  direction: rtl;
  position: relative;
  background: #050506;
  border-top: 1px solid var(--resort-border);
  color: var(--resort-silver);
  padding-top: 45px;
  overflow: hidden;
}

.resort-footer-glow {
  position: absolute;
  top: -100px;
  right: 15%;
  width: 300px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 139, 60, 0.12), transparent 70%);
  pointer-events: none;
}

.resort-footer-container {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
}

.resort-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 45px;
  padding-bottom: 30px;
}

/* الشعار محدد بحجم طبيعي ومثالي */
.resort-footer-logo {
  display: inline-block !important;
  width: 120px !important;
  height: 68px !important;
  margin-bottom: 12px !important;
}

.resort-footer-logo img {
  max-width: 100% !important;
  max-height: 64px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
}

.resort-footer-brand h2 {
  color: var(--resort-orange);
  font-size: 19px;
  margin: 8px 0;
  font-weight: 800;
}

.resort-footer-brand p {
  color: var(--resort-silver-muted);
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 360px;
}

.resort-footer-website {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 14px;
  color: var(--resort-orange) !important;
  background: rgba(214, 139, 60, 0.08);
  border: 1px solid var(--resort-border);
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s;
}

.resort-footer-heading {
  color: var(--resort-orange);
  font-size: 17px;
  margin-bottom: 18px;
  font-weight: 800;
}

/* روابط السياسات والقضاء التام على الأسهم الكبيرة المشوهة */
.resort-footer-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.resort-footer-links a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  color: var(--resort-silver-muted) !important;
  text-decoration: none !important;
  font-size: 14px !important;
  width: fit-content !important;
  transition: color 0.2s, transform 0.2s !important;
}

/* حماية صارمة لمنع تمدد أيقونات الأسهم في الفوتر */
.resort-footer-links a svg,
.resort-footer-website svg {
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  stroke: var(--resort-orange) !important;
  fill: none !important;
  stroke-width: 2.5 !important;
}

.resort-footer-links a:hover {
  color: var(--resort-orange-light) !important;
  transform: translateX(-3px);
}

.resort-footer-contact {
  display: grid;
  gap: 12px;
}

.resort-footer-contact a,
.resort-footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--resort-silver-muted) !important;
  text-decoration: none !important;
  font-size: 14px;
}

.resort-footer-contact-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 139, 60, 0.1);
  border: 1px solid var(--resort-border);
  border-radius: 8px;
  color: var(--resort-orange);
}

.resort-footer-contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--resort-orange);
  fill: none;
}

.resort-footer-bottom {
  border-top: 1px solid rgba(214, 139, 60, 0.15);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.resort-payment-methods {
  display: flex;
  gap: 8px;
}

.resort-payment-badge {
  background: #ffffff;
  color: #111;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.resort-footer-copyright {
  color: var(--resort-silver-muted);
  font-size: 13px;
  margin: 0;
}

/* =========================================================
   6. تجاوب الجوال
   ========================================================= */

@media (max-width: 768px) {
  :root {
    --resort-header-height: 74px;
  }

  .resort-menu-text {
    display: none;
  }

  .resort-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .resort-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
/* تنسيق وسائل الدفع وتخصيص تابي والتحويل البنكي */
.resort-payment-methods {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.resort-payment-badge {
  background: #ffffff;
  color: #111111;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
  height: 26px;
}

/* شارة تابي الخضراء الرسمية */
.resort-payment-badge.resort-badge-tabby {
  background: #3efeaf !important;
  color: #000000 !important;
  font-weight: 900 !important;
  font-size: 12px !important;
  letter-spacing: -0.3px;
}

/* شارة التحويل البنكي */
.resort-payment-badge.resort-badge-bank {
  background: #ffffff !important;
  color: #1a1a1a !important;
}

.resort-payment-badge.resort-badge-bank svg {
  stroke: #1a1a1a;
}
.resort-reviews {
  direction: rtl;
  padding: 70px 20px;
  background: #0d0d0d;
  color: #fff;
  font-family: inherit;
}

.resort-reviews-wrap {
  max-width: 1300px;
  margin: 0 auto;
}

.resort-reviews-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.resort-reviews-ey {
  display: inline-block;
  color: #d88939;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.resort-reviews-head h2 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
}

.resort-reviews-head h2 span {
  color: #d88939;
}

.resort-reviews-head p {
  margin: 0;
  color: #b9b9b9;
  font-size: 16px;
  line-height: 1.9;
}

.resort-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resort-review-card {
  background: #171717;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 24px;
  transition: .3s ease;
}

.resort-review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216,137,57,.45);
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
}

.resort-stars {
  color: #f5b942;
  font-size: 20px;
  letter-spacing: 2px;
  margin-bottom: 14px;
  direction: ltr;
  text-align: right;
}

.resort-review-card strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.resort-review-card p {
  margin: 0;
  color: #c7c7c7;
  line-height: 1.85;
  font-size: 14px;
}

/* Tablet */
@media (max-width: 992px) {
  .resort-reviews-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resort-reviews-head h2 {
    font-size: 30px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .resort-reviews {
    padding: 45px 14px;
  }

  .resort-reviews-grid {
    grid-template-columns: 1fr;
  }

  .resort-reviews-head h2 {
    font-size: 27px;
  }

  .resort-review-card {
    padding: 20px;
  }
}