/* =========================================================
   Base / Fonts
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap");

body:not(i, span) {
  font-family: "Cairo", sans-serif;
}
body.index {
  background-color: var(--white-color) !important;
}

/* =========================================================
   CSS Variables
   ========================================================= */
:root {
  --color-primary: #e5dfd5;
  --main-color: #e5dfd5;
  --white-color: #fff;
  --black-color: #000;
  --normal-box-shadow: rgba(0, 0, 0, 0.3) 1px 2px 3px;
  --gradient-primary: #e5dfd5;
  --gradient-alt: #e5dfd5;
}

/* =========================================================
   Product Cards — Strong Lift on Hover (No Glow)
   ========================================================= */
.s-product-card-entry {
  border: none;
  border-radius: 15px !important;
  box-shadow: rgba(0, 0, 0, 0.3) 1px 2px 3px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.s-product-card-entry:hover {
  transform: translateY(-35px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Add to Cart Button — Burgundy Background / White Text
   ========================================================= */
button.s-button-btn.s-button-solid.s-button-primary,
button.s-button-btn.s-button-solid.s-button-wide.s-button-primary,
button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary {
  background-color: #800000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  transition: all 0.3s ease;
}

button.s-button-btn.s-button-solid.s-button-primary:hover,
button.s-button-btn.s-button-solid.s-button-wide.s-button-primary:hover {
  background-color: #a00000 !important;
  transform: scale(1.05);
}

/* =========================================================
   Footer
   ========================================================= */
footer.store-footer {
  background: transparent !important;
}
.store-footer__inner {
  color: var(--black-color);
  border-radius: 100px 100px 0 0;
  background: var(--gradient-primary) !important;
  position: relative;
  text-align: center !important;
}
.store-footer * {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}
.store-footer h3 {
  background-color: #fff;
  color: var(--black-color);
  border-radius: 15px;
  padding: 6px 20px;
  display: inline-block;
}
.copyright-text p {
  color: var(--main-color);
  text-align: center;
}

/* =========================================================
   WhatsApp & Email Icons — Burgundy Only / No Background
   ========================================================= */
footer.store-footer a[href*="whatsapp"],
footer.store-footer a[href*="wa.me"],
footer.store-footer a[href^="mailto:"],
footer.store-footer a[href*="whatsapp"] i,
footer.store-footer a[href*="wa.me"] i,
footer.store-footer a[href^="mailto:"] i,
footer.store-footer a[href*="whatsapp"] svg,
footer.store-footer a[href*="wa.me"] svg,
footer.store-footer a[href^="mailto:"] svg,
footer.store-footer a[href*="whatsapp"] svg path,
footer.store-footer a[href*="wa.me"] svg path,
footer.store-footer a[href^="mailto:"] svg path {
  background: transparent !important;
  color: #800000 !important;
  fill: #800000 !important;
  stroke: #800000 !important;
  border: none !important;
  transition: transform 0.3s ease;
}
footer.store-footer a[href*="whatsapp"]:hover,
footer.store-footer a[href*="wa.me"]:hover,
footer.store-footer a[href^="mailto:"]:hover {
  transform: translateY(-6px);
}

/* =========================================================
   Social Links — Gold Hover
   ========================================================= */
.s-social-link a:hover {
  background: #d4af37 !important;
  color: #000 !important;
  transform: scale(1.2) rotate(5deg);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.s-social-link a svg,
.s-social-link a i {
  color: inherit !important;
  fill: currentColor !important;
}

/* =========================================================
   Animation Overlay — Logo Entry
   ========================================================= */
body.index::before {
  content: "";
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15)
    url("https://i.ibb.co/2Y3gW08t/IMG-1813.png");
  position: fixed;
  backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 999999999;
  transform: scale(0);
  background-size: 200px !important;
  background-repeat: no-repeat;
  background-position: center !important;
  animation: logobg 2s ease forwards;
}

@keyframes logobg {
  0%, 20%, 80% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* =========================================================
   Add to Cart Button — Burgundy Background / White Text (Force)
   ========================================================= */
button.s-button-btn.s-button-solid.s-button-primary,
button.s-button-btn.s-button-solid.s-button-wide.s-button-primary,
button.s-button-element.s-button-btn.s-button-solid.s-button-wide.s-button-primary,
.s-button.s-button-primary,
.s-product-card-entry button,
.s-add-to-cart-button,
.s-add-product-button-mini-checkout,
button.add-to-cart,
button.salla-add-product-button {
  background-color: #800000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  transition: all 0.3s ease;
}

/* تأثير عند اللمس */
button.s-button-btn.s-button-solid.s-button-primary:hover,
button.s-button-btn.s-button-solid.s-button-wide.s-button-primary:hover,
.s-button.s-button-primary:hover,
.s-add-to-cart-button:hover,
.salla-add-product-button:hover {
  background-color: #a00000 !important;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(128, 0, 0, 0.4);
}

/* =========================================================
   Promo Banner (CSS-only) — White BG / Burgundy Text
   يظهر أعلى الصفحة بدون إضافة HTML
   ========================================================= */

:root { --promo-height: 44px; }

body { padding-top: var(--promo-height); }

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--promo-height);
  background: #ffffff;
  border-top: 2px solid #800000;
  border-bottom: 2px solid #800000;
  z-index: 99998;
}

body::after {
  content: "خصم على الطلبات فوق 500 ⃁ كود [ تستاهلين ]🌟";
  position: fixed;
  top: 0; left: 0;
  height: var(--promo-height);
  line-height: var(--promo-height);
  color: #800000;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  z-index: 99999;
  transform: translateX(100vw);
  animation: promo-marquee 18s linear infinite;
  direction: rtl;
}

@keyframes promo-marquee {
  0%   { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; transform: none; }
}

/* =========================================================
   PRODUCT IMAGE SIZE — FORCE (حل قوي)
   ========================================================= */

.s-product-card-entry .s-product-card-image,
.s-product-card-entry .product-image,
.s-product-card .s-product-card-image,
.s-product-card .product-image {
  height: 420px !important;
  min-height: 420px !important;
  max-height: 420px !important;
  overflow: hidden !important;
  border-radius: 14px !important;
}

.s-product-card-entry img,
.s-product-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

@media (max-width: 768px) {
  .s-product-card-entry .s-product-card-image,
  .s-product-card-entry .product-image,
  .s-product-card .s-product-card-image,
  .s-product-card .product-image {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
  }
}

/* =========================================================
   SOLD OUT — FIXED FOR DISABLED CART BUTTON ONLY
   ========================================================= */

.s-product-card-entry,
.product-entry,
.s-product-card {
  position: relative !important;
  overflow: hidden !important;
}

/* فقط إذا زر الإضافة نفسه معطّل */
.s-product-card-entry .s-add-to-cart-button[disabled]::after,
.s-product-card-entry .s-button-element[disabled]::after,
.s-product-card .s-add-to-cart-button[disabled]::after,
.s-product-card .s-button-element[disabled]::after,
.product-entry .s-add-to-cart-button[disabled]::after,
.product-entry .s-button-element[disabled]::after,
.s-product-card-entry button.s-button-primary[disabled]::after,
.s-product-card button.s-button-primary[disabled]::after,
.product-entry button.s-button-primary[disabled]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://i.postimg.cc/tRZWCdZq/925275e4-ece8-47f3-87a7-d46686a1f18d.png") center/60% no-repeat;
  z-index: 20;
  opacity: 0.95;
  pointer-events: none;
}

/* نخفي نص الزر المعطّل فقط */
.s-product-card-entry .s-add-to-cart-button[disabled],
.s-product-card-entry .s-button-element[disabled],
.s-product-card .s-add-to-cart-button[disabled],
.s-product-card .s-button-element[disabled],
.product-entry .s-add-to-cart-button[disabled],
.product-entry .s-button-element[disabled],
.s-product-card-entry button.s-button-primary[disabled],
.s-product-card button.s-button-primary[disabled],
.product-entry button.s-button-primary[disabled] {
  color: transparent !important;
  position: relative !important;
}