/* =====================================================
   VBU-S.COM — Unified Master CSS
   ===================================================== */

/* ── 1. SECTION BACKGROUNDS & COLORS ────────────────── */
/* الأكثر مبيعًا (Best Sellers) - Clean White */
section.yasmeen-fixed-product-2 {
  background-color: #ffffff !important;
}

/* PowerUp (بور أب) - Premium Black */
section.yasmeen-fixed-product-3 {
  background-color: #111111 !important;
}
section.yasmeen-fixed-product-3 .yasmeen-fixed-product-title h2 {
  color: #ffffff !important;
}
section.yasmeen-fixed-product-3 .yasmeen-fixed-product-title span {
  color: #d1d5db !important;
}
section.yasmeen-fixed-product-3 .yasmeen-fixed-product-title h2::after {
  background: var(--color-primary, #c8a96e) !important;
}

/* SandForce (قوة الرمال) - Sandy / Desert Tone */
section.yasmeen-fixed-product-4 {
  background-color: #ecd9b8 !important;
}
section.yasmeen-fixed-product-4 .yasmeen-fixed-product-title h2 {
  color: #2e210b !important;
}
section.yasmeen-fixed-product-4 .yasmeen-fixed-product-title span {
  color: #4a3818 !important;
}
section.yasmeen-fixed-product-4 .yasmeen-fixed-product-title h2::after {
  background: #8c6827 !important;
}

/* Additional sections */
section.yasmeen-fixed-product-5 {
  background-color: #f0ece4 !important;
}
section.yasmeen-fixed-product-3-was-offers {
  display: none !important;
}

/* ── 2. PRODUCT CARDS & HOVER ────────────────────────── */
.s-product-card-entry {
  border: 1px solid #e8e8e8 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #ffffff !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07) !important;
}
.s-product-card-entry:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.16) !important;
  border-color: #ccc !important;
}
.s-product-card-entry img {
  transition: transform 0.4s ease !important;
  width: 100% !important;
  object-fit: cover !important;
}
.s-product-card-entry:hover img {
  transform: scale(1.04) !important;
}

/* Hide default sliding cart button */
.s-product-card-entry div:has(> salla-add-product-button) {
  display: none !important;
}

/* ── 3. CUSTOM EXPANDING CART BUTTON ─────────────────── */
.vbu-cart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.20);
  transition: max-width 0.4s cubic-bezier(0.4,0,0.2,1),
              gap 0.4s ease, box-shadow 0.3s ease, background 0.3s ease;
  direction: rtl;
}
.vbu-icon {
  flex-shrink: 0;
}
.vbu-cart-text {
  max-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-family: inherit;
  color: #1a1a1a;
  transition: max-width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.s-product-card-entry:hover .vbu-cart-btn {
  max-width: 160px;
  gap: 7px;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.s-product-card-entry:hover .vbu-cart-text {
  max-width: 120px;
}
.vbu-cart-btn:active {
  filter: brightness(0.88);
  transform: scale(0.96);
}

/* ── 4. BRAND SLIDER ─────────────────────────────────── */
.yasmeen-square-slide {
  background-color: #ffffff !important;
  border: 1px solid #eaeaea !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}
.yasmeen-square-slide:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.13) !important;
}
.yasmeen-square-slide h4,
.yasmeen-square-slide span,
.yasmeen-square-slide p {
  display: none !important;
}

/* ── 5. SECTION TITLES & UNDERLINES ─────────────────── */
.yasmeen-fixed-product-title h2 {
  position: relative !important;
  padding-bottom: 10px !important;
}
.yasmeen-fixed-product-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
}
.yasmeen-fixed-product-title span {
  opacity: 0.65 !important;
}

/* ── 6. BUTTONS & GENERAL STYLES ─────────────────────── */
.yasmeen-fixed-product .bg-\[var\(--color-primary\)\] {
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
  transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}
.yasmeen-fixed-product .bg-\[var\(--color-primary\)\]:hover {
  opacity: 0.82 !important;
  transform: scale(1.015) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18) !important;
}
.yasmeen-fixed-product {
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* ── 7. NAVIGATION DROPDOWNS ─────────────────────────── */
.sub-nav li > ul, .main-menu li ul {
  border-top: 2px solid var(--color-primary) !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10) !important;
  overflow: hidden !important;
}
.sub-nav li > ul li a, .main-menu li ul li a {
  transition: background 0.2s ease, padding-right 0.2s ease !important;
  border-radius: 6px !important;
  margin: 2px 6px !important;
}
.sub-nav li > ul li a:hover, .main-menu li ul li a:hover {
  background: rgba(0,0,0,0.05) !important;
  padding-right: 16px !important;
}

/* ── 8. FOOTER & CLEANUP ─────────────────────────────── */
footer {
  border-top: 3px solid var(--color-primary) !important;
}
footer a {
  transition: opacity 0.2s ease !important;
}
footer a:hover {
  opacity: 0.7 !important;
}
.yasmeen-payment-methods {
  display: none !important;
}

/* WhatsApp Floating Pulse */
@keyframes whatsappPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
a[href*="wa.me"], a[href*="whatsapp"] {
  animation: whatsappPulse 2.5s infinite !important;
  border-radius: 50% !important;
}

/* Scroll to top button */
.scroll-top, [class*="go-top"] {
  border-radius: 50% !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  transition: all 0.3s ease !important;
}
.scroll-top:hover, [class*="go-top"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22) !important;
}

html {
  scroll-behavior: smooth !important;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.yasmeen-fixed-product {
  animation: fadeInUp 0.55s ease forwards !important;
}

@media (max-width: 768px) {
  .yasmeen-fixed-product-title h2 { font-size: 22px !important; }
  .s-product-card-entry { border-radius: 10px !important; }
}

/* ── 9. MEDIA & BANNER CROPPING FIXES ─────────────────── */
/* عفريتة Mobile Slider */
#main-slider-6 .yasmeen-slide img {
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #f8f8f8 !important;
  padding: 8px !important;
}
#main-slider-6 .yasmeen-slide [style*="max-height"] {
  height: 290px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #f8f8f8 !important;
  border-radius: 12px !important;
}

/* عفريتة Desktop */
.yasmeen-who-are-we .sticky img {
  object-fit: contain !important;
  object-position: center center !important;
  background-color: rgba(0,0,0,0.15) !important;
  padding: 20px !important;
}

/* Bottom mobile banner (#main-slider-5) uncropped */
#main-slider-5 .yasmeen-slide [style*="max-height"] {
  max-height: none !important;
  height: auto !important;
}
#main-slider-5 .yasmeen-slide img {
  object-fit: contain !important;
  object-position: center !important;
  height: auto !important;
  width: 100% !important;
  max-height: 420px !important;
}

/* ── 10. POWERUP CATEGORY PAGE OVERRIDES ─────────────── */
body:has(salla-products-list[source-value="1484845565"]) {
  background-color: #1e1e1e !important;
}
body:has(salla-products-list[source-value="1484845565"]) #page-main-title {
  color: #ffffff !important;
}
body:has(salla-products-list[source-value="1484845565"]) .main-content {
  background-color: #1e1e1e !important;
}

/* ── 11. SIDE MENU SCROLL FIX (MmenuLight) ───────────── */
.mm-ocd--open .mm-ocd__content {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding-bottom: 80px !important;
  box-sizing: border-box !important;
}