/* ===============================
   CAF CAR Premium Store UI
   Colors: White / Gold / Deep Teal
================================ */

:root {
  --caf-gold: #be944c;
  --caf-gold-dark: #a8792f;
  --caf-teal: #003f40;
  --caf-bg: #fbf6ee;
  --caf-soft: #fffaf2;
  --caf-border: rgba(190, 148, 76, 0.22);
  --caf-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

/* خلفية عامة ناعمة */
body {
  background:
    radial-gradient(circle at 20% 10%, rgba(190, 148, 76, 0.12), transparent 28%),
    radial-gradient(circle at 90% 30%, rgba(0, 63, 64, 0.08), transparent 24%),
    linear-gradient(180deg, #fffaf3 0%, #ffffff 42%, #fbf6ee 100%) !important;
  color: var(--caf-teal);
}

/* تحسين العرض العام */
.container,
.s-container {
  max-width: 1180px !important;
}

/* الهيدر */
header,
.store-header,
.main-header {
  background: linear-gradient(135deg, #c4933d 0%, #b7822f 45%, #d7ad67 100%) !important;
  box-shadow: 0 8px 24px rgba(109, 72, 18, 0.18) !important;
  border-bottom: 1px solid rgba(255,255,255,0.24);
}

/* شريط البحث */
.search,
.search-box,
input[type="search"],
.s-search-input,
.s-search-modal-input {
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}

input[type="search"]::placeholder,
.s-search-input::placeholder {
  color: rgba(255,255,255,0.85) !important;
}

/* اللوقو */
header img,
.store-header img,
.main-header img {
  transition: transform .3s ease, filter .3s ease;
}

header img:hover,
.store-header img:hover,
.main-header img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.16));
}

/* البانر الرئيسي */
.hero,
.banner,
.s-slider-block,
.s-block--fixed-banner,
.s-block--banners,
.s-block--photos-slider,
.swiper,
.swiper-wrapper {
  border-radius: 18px !important;
  overflow: hidden !important;
}

.s-block--fixed-banner img,
.s-block--banners img,
.s-block--photos-slider img,
.swiper-slide img,
.banner img {
  border-radius: 18px !important;
  box-shadow: var(--caf-shadow) !important;
  transition: transform .5s ease, filter .5s ease;
}

.s-block--fixed-banner img:hover,
.s-block--banners img:hover,
.s-block--photos-slider img:hover,
.swiper-slide img:hover,
.banner img:hover {
  transform: scale(1.015);
  filter: saturate(1.05) contrast(1.03);
}

/* أقسام الصور */
.s-block,
section {
  margin-bottom: 22px !important;
}

/* بطاقات الأقسام والمنتجات */
.s-product-card,
.product-card,
.s-card,
.category-card,
.s-block--categories a,
.s-block--features__item,
.s-block--banners a,
.s-block--square-images a {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid var(--caf-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.055) !important;
  overflow: hidden !important;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.s-product-card:hover,
.product-card:hover,
.s-card:hover,
.category-card:hover,
.s-block--categories a:hover,
.s-block--features__item:hover,
.s-block--banners a:hover,
.s-block--square-images a:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.11) !important;
  border-color: rgba(190, 148, 76, 0.45) !important;
}

/* صور المنتجات */
.s-product-card-image,
.product-card__image,
.s-product-card-image img,
.product-card img {
  border-radius: 16px 16px 0 0 !important;
  transition: transform .45s ease;
}

.s-product-card:hover img,
.product-card:hover img {
  transform: scale(1.035);
}

/* عناوين المنتجات */
.s-product-card-content-title,
.product-card__title,
.s-product-card h3,
.product-card h3 {
  color: var(--caf-teal) !important;
  font-weight: 800 !important;
  letter-spacing: -0.2px;
}

/* الأسعار */
.s-product-card-price,
.product-card__price,
.price {
  color: var(--caf-gold-dark) !important;
  font-weight: 800 !important;
}

/* الأزرار */
button,
.s-button-btn,
.s-button-element,
.btn,
a.button,
.s-product-card-content-footer button {
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--caf-teal), #006264) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 18px rgba(0, 63, 64, 0.18) !important;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

button:hover,
.s-button-btn:hover,
.s-button-element:hover,
.btn:hover,
a.button:hover,
.s-product-card-content-footer button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 63, 64, 0.26) !important;
  background: linear-gradient(135deg, #00595b, var(--caf-teal)) !important;
}

/* أيقونات السلة والمفضلة */
.s-cart-summary-count,
.cart-count,
.badge {
  background: #c40000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
  box-shadow: 0 4px 12px rgba(196,0,0,0.25);
}

/* تحسين بلوك طرق الدفع */
.s-block--features,
.s-block--features .s-block__title,
.payment-methods,
.s-block--banners:last-of-type {
  position: relative;
}

.s-block--features__item {
  padding: 16px !important;
}

/* حركة ظهور ناعمة */
.caf-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.caf-reveal.caf-visible {
  opacity: 1;
  transform: translateY(0);
}

/* زر واتساب */
a[href*="wa.me"],
a[href*="whatsapp"],
.whatsapp,
.salla-whatsapp {
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28) !important;
  animation: cafWhatsappPulse 2.2s infinite;
}

@keyframes cafWhatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.38);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* تحسين الجوال */
@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at 15% 4%, rgba(190, 148, 76, 0.12), transparent 28%),
      linear-gradient(180deg, #fff9ef 0%, #ffffff 55%, #fbf6ee 100%) !important;
  }

  .s-block,
  section {
    margin-bottom: 16px !important;
  }

  .s-block--fixed-banner img,
  .s-block--banners img,
  .s-block--photos-slider img,
  .swiper-slide img,
  .banner img {
    border-radius: 14px !important;
  }

  .s-product-card,
  .product-card,
  .s-card,
  .category-card,
  .s-block--categories a,
  .s-block--banners a,
  .s-block--square-images a {
    border-radius: 15px !important;
  }

  .container,
  .s-container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}
/* CAF CAR Mini Vehicle Filter - Compact Spacing */

.caf-mini-filter {
  margin: 6px 8px !important;
  padding: 10px 12px !important;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #fff8ed 100%);
  border: 1px solid rgba(190, 148, 76, 0.18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
}

.caf-mini-title {
  min-width: 130px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.caf-mini-title strong {
  color: #003f40;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.caf-mini-title span {
  color: rgba(0, 63, 64, 0.58);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.caf-mini-form {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 70px;
  gap: 7px;
}

.caf-mini-form select,
.caf-mini-form button {
  height: 36px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.caf-mini-form select {
  width: 100%;
  padding: 0 10px;
  background: #fff;
  color: #003f40;
  border: 1px solid rgba(190, 148, 76, 0.24);
  cursor: pointer;
}

.caf-mini-form select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f7f7f7;
}

.caf-mini-form button {
  border: none;
  background: #7fa7a4;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 63, 64, 0.14);
  transition: 0.2s ease;
}

.caf-mini-form button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #003f40;
}

.caf-mini-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* تقليل فراغ عنصر HTML من سلة */
.s-block:has(.caf-mini-filter),
section:has(.caf-mini-filter),
.store-section:has(.caf-mini-filter) {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 768px) {
  .caf-mini-filter {
    margin: 4px 6px !important;
    padding: 9px 10px !important;
    border-radius: 13px;
    display: block;
  }

  .caf-mini-title {
    min-width: auto;
    margin-bottom: 7px;
    text-align: right;
  }

  .caf-mini-title strong {
    font-size: 14px;
  }

  .caf-mini-title span {
    font-size: 10.5px;
  }

  .caf-mini-form {
    grid-template-columns: 1fr 1fr 58px;
    gap: 6px;
  }

  .caf-mini-form select,
  .caf-mini-form button {
    height: 34px;
    border-radius: 10px;
    font-size: 11.5px;
    padding: 0 7px;
  }
}/* ===============================
   CAF CAR Clean Reviews
================================ */

.caf-reviews-clean {
  width: 100%;
  margin: 18px auto !important;
  padding: 18px 10px !important;
  box-sizing: border-box;
  background: transparent !important;
  overflow: hidden;
}

.caf-reviews-clean-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 0 10px;
}

.caf-reviews-clean-head span {
  display: inline-flex;
  padding: 6px 14px;
  margin-bottom: 9px;
  border-radius: 999px;
  background: rgba(190, 148, 76, 0.10);
  border: 1px solid rgba(190, 148, 76, 0.22);
  color: #9b6d24;
  font-size: 12px;
  font-weight: 800;
}

.caf-reviews-clean-head h2 {
  margin: 0 0 6px;
  color: #003f40;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.35;
}

.caf-reviews-clean-head p {
  margin: 0;
  color: rgba(0, 63, 64, 0.68);
  font-size: 13px;
  line-height: 1.8;
}

.caf-reviews-clean-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.caf-review-clean-card {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(190, 148, 76, 0.10), transparent 38%),
    linear-gradient(145deg, #ffffff 0%, #fffaf2 100%);
  border: 1px solid rgba(190, 148, 76, 0.16);
  border-radius: 20px;
  padding: 18px 16px;
  min-height: 215px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.055);
  box-sizing: border-box;
  transition: 0.25s ease;
}

.caf-review-clean-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.09);
}

.caf-review-stars {
  color: #be944c;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-align: right;
}

.caf-review-clean-card p {
  margin: 0 0 18px;
  color: rgba(0, 63, 64, 0.80);
  font-size: 13px;
  line-height: 1.9;
  min-height: 76px;
}

.caf-review-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid rgba(190, 148, 76, 0.14);
}

.caf-review-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003f40, #00666a);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 63, 64, 0.18);
}

.caf-review-user h3 {
  margin: 0 0 2px;
  color: #003f40;
  font-size: 14px;
  font-weight: 900;
}

.caf-review-user small {
  color: rgba(0, 63, 64, 0.55);
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 992px) {
  .caf-reviews-clean-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .caf-reviews-clean {
    margin: 12px auto !important;
    padding: 14px 8px !important;
  }

  .caf-reviews-clean-head {
    margin-bottom: 14px;
  }

  .caf-reviews-clean-head h2 {
    font-size: 20px;
  }

  .caf-reviews-clean-head p {
    font-size: 12px;
  }

  .caf-reviews-clean-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 14px;
    scrollbar-width: none;
  }

  .caf-reviews-clean-grid::-webkit-scrollbar {
    display: none;
  }

  .caf-review-clean-card {
    flex: 0 0 84%;
    min-width: 84%;
    scroll-snap-align: start;
    min-height: 205px;
    border-radius: 18px;
    padding: 16px 14px;
  }

  .caf-review-clean-card p {
    font-size: 12.5px;
    min-height: 72px;
  }
}