/* Add custom CSS styles below */ 
/* =====================================================================
   ثيم متجر ورود — اتجاهات تصميم 2026
   ---------------------------------------------------------------------
   متجر: ماي روز — مبني على هوية الشعار
   الأسلوب: Playful Line-Art / Joyful Minimal
   - خلفية بيضاء نظيفة + لون الحبر الداكن (لون غلاف الباقة في الشعار)
   - ألوان الشعار الخمسة كلمسات مرحة: وردي، أحمر، أزرق، أصفر، أخضر
   - خطوط متموّجة بنهايات دائرية تحاكي رسم الشعار اليدوي
   - بطاقات منحنية بظلال ناعمة جداً
   - حركات دقيقة (micro-interactions) بـ transform/opacity فقط ⇒ لا تؤثر على CLS
   - ظهور الأقسام مع التمرير بـ CSS فقط (scroll-driven animations)

   التطبيق في سلة: لوحة التحكم ← المتجر ← تخصيص الثيم ← CSS مخصص
   ⚠ أسماء الكلاسات (.s-product-card-…) مأخوذة من ثيم رائد الافتراضي؛
     تحقّق منها في ثيمك عبر أدوات المطوّر قبل النشر.
   ===================================================================== */


/* ---------------------------------------------------------------------
   0) الخطوط
   الأفضل اختيار الخط من إعدادات سلة نفسها (أسرع).
   إن لم يتوفر، فعّل السطر التالي — مع العلم أن @import يبطئ التحميل قليلاً.
   --------------------------------------------------------------------- */
/* @import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&family=IBM+Plex+Sans+Arabic:wght@400;500&display=swap"); */


/* ---------------------------------------------------------------------
   1) هوية الألوان (Design Tokens)
   غيّر القيم هنا فقط ليتغيّر المتجر بالكامل
   --------------------------------------------------------------------- */
:root {
  /* ألوان الشعار */
  --ink:      #1E1E1E;   /* الحبر الداكن — غلاف الباقة، النصوص، الأزرار */
  --pink:     #F04878;   /* الوردي — اللون المميّز للعلامة */
  --pink-dk:  #C92F5E;   /* وردي داكن للنصوص والأسعار (تباين 5.2:1 على الأبيض) */
  --red:      #C8140A;   /* الأحمر */
  --blue:     #00549C;   /* الأزرق */
  --yellow:   #D8B424;   /* الأصفر */
  --green:    #6CCC48;   /* الأخضر */

  /* درجات مساندة */
  --paper:    #FFFFFF;   /* الخلفية — بيضاء مثل خلفية الشعار */
  --cream:    #FAF8F4;   /* خلفية الأقسام والصور */
  --pink-50:  #FFF0F4;   /* وردي فاتح جداً */
  --line:     #ECE8E3;   /* الحدود */
  --muted:    #6E6A66;   /* نص ثانوي */

  /* تدرّج ألوان الشعار الخمسة (للحلقات والزخارف) */
  --logo-gradient: conic-gradient(var(--pink), var(--red), var(--blue), var(--green), var(--yellow), var(--pink));

  /* ربطها بمتغيرات سلة */
  --color-primary: var(--ink);
  --color-primary-dark: #000;
  --color-primary-light: var(--pink-50);
  --color-primary-reverse: #fff;

  /* الشكل */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 1px 2px rgb(30 30 30 / .04), 0 8px 24px -10px rgb(30 30 30 / .12);
  --shadow-lift: 0 2px 4px rgb(30 30 30 / .05), 0 22px 40px -14px rgb(240 72 120 / .30);
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* خط متموّج وردي — يحاكي ضربات الرسم في الشعار */
  --squiggle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 10'%3E%3Cpath d='M2 6 Q9 1 16 5 T30 5 T44 5 T58 4' fill='none' stroke='%23F04878' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");

  /* الخطوط — Rubik بحوافه الدائرية يناسب طابع الشعار المرح */
  --font-display: "Rubik", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
}


/* ---------------------------------------------------------------------
   2) الأساسيات
   --------------------------------------------------------------------- */
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .s-block__title h2, .section-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* عناوين الأقسام مع خط متموّج وردي تحتها — مستوحى من خطوط الشعار */
.s-block__title h2,
.section-title {
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2.2rem);
  position: relative;
  padding-bottom: .8rem;
  font-weight: 700;
}
.s-block__title h2::after,
.section-title::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 64px;
  height: 10px;
  background: var(--squiggle) no-repeat center / contain;
}

::selection {
  background: var(--pink);
  color: #fff;
}


/* ---------------------------------------------------------------------
   3) الهيدر — زجاجي ناعم (Glass) ولاصق
   --------------------------------------------------------------------- */
.main-nav-container,
.store-header,
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  min-height: 68px;            /* يمنع CLS */
}

/* شريط الإعلان العلوي */
.top-navbar,
.announcement-bar {
  background: var(--ink);
  color: #fff;
  font-size: .85rem;
  /* شريط بألوان الشعار الخمسة أسفل الإعلان */
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--pink) 0 20%, var(--red) 20% 40%, var(--blue) 40% 60%, var(--green) 60% 80%, var(--yellow) 80%) 1;
  text-align: center;
  min-height: 38px;
}


/* ---------------------------------------------------------------------
   4) البنر الرئيسي
   --------------------------------------------------------------------- */
.s-slider-block__slide,
.hero-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
@media (max-width: 768px) {
  .s-slider-block__slide,
  .hero-banner { aspect-ratio: 4 / 5; border-radius: var(--radius-md); }
}
.s-slider-block__slide img,
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ---------------------------------------------------------------------
   5) الأزرار
   --------------------------------------------------------------------- */
.s-button-primary,
.btn--primary,
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: .8rem 1.6rem;
  font-weight: 500;
  box-shadow: 0 6px 18px -8px rgb(30 30 30 / .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.s-button-primary:hover,
.btn--primary:hover,
.btn-primary:hover {
  background: var(--pink-dk);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgb(240 72 120 / .55);
}
.s-button-primary:active { transform: translateY(0) scale(.98); }

.s-button-outline,
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  transition: background .3s, border-color .3s;
}
.s-button-outline:hover,
.btn--outline:hover {
  background: var(--pink-50);
  border-color: var(--pink);
  color: var(--pink-dk);
}

/* حلقة تركيز واضحة لسهولة الوصول */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}


/* ---------------------------------------------------------------------
   6) بطاقة المنتج — قلب التصميم
   --------------------------------------------------------------------- */
.s-product-card-entry,
.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.s-product-card-entry:hover,
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

/* الصورة: نسبة 4:5 (عمودية) أنسب لتنسيقات الورد */
.s-product-card-image,
.product-card__image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}
.s-product-card-image img,
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.s-product-card-entry:hover .s-product-card-image img,
.product-card:hover .product-card__image img {
  transform: scale(1.06);
}

/* المحتوى */
.s-product-card-content,
.product-card__body {
  padding: 1rem 1.1rem 1.2rem;
}
.s-product-card-content-title,
.product-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}
.s-product-card-content-subtitle,
.product-card__subtitle {
  color: var(--muted);
  font-size: .85rem;
}
.s-product-card-price,
.product-card__price {
  color: var(--pink-dk);
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  min-height: 1.6em;
}
.s-product-card-sale-price del,
.product-card__price del {
  color: var(--muted);
  font-weight: 400;
  font-size: .85rem;
  margin-inline-start: .4rem;
}

/* الشارات (جديد / خصم / الأكثر طلباً) */
.s-product-card-promotion-title,
.product-card__badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--pink);
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  z-index: 2;
}
/* شارات بألوان الشعار حسب النوع — أضف الكلاس المناسب */
.product-card__badge.is-new  { background: var(--blue); }
.product-card__badge.is-sale { background: var(--red); }
.product-card__badge.is-gift { background: var(--yellow); color: var(--ink); }
.product-card__badge.is-eco  { background: var(--green); color: var(--ink); }

/* زر المفضلة يظهر عند التمرير على الديسكتوب */
.s-product-card-wishlist-btn,
.product-card__wish {
  background: rgb(255 255 255 / .9) !important;
  border-radius: 50%;
  transition: transform .3s var(--ease), opacity .3s;
}
@media (hover: hover) {
  .s-product-card-entry .s-product-card-wishlist-btn,
  .product-card .product-card__wish {
    opacity: 0;
    transform: scale(.8);
  }
  .s-product-card-entry:hover .s-product-card-wishlist-btn,
  .product-card:hover .product-card__wish {
    opacity: 1;
    transform: scale(1);
  }
}


/* ---------------------------------------------------------------------
   7) التصنيفات — دوائر بأسلوب القصص (Stories)
   --------------------------------------------------------------------- */
.s-block--categories .category-item img,
.category-circle img {
  width: 92px;
  height: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  padding: 3px;
  background: var(--logo-gradient);   /* حلقة بألوان الشعار الخمسة */
  transition: transform .4s var(--ease);
}
.s-block--categories .category-item:hover img,
.category-circle:hover img {
  transform: rotate(-4deg) scale(1.05);
}


/* ---------------------------------------------------------------------
   8) شبكة Bento للمناسبات (أسلوب 2026 الأبرز)
   استخدمها في قسم HTML مخصص: <div class="occasion-bento">…</div>
   --------------------------------------------------------------------- */
.occasion-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.occasion-bento > a {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.1rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  isolation: isolate;
  text-decoration: none;
}
.occasion-bento > a img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .9s var(--ease);
}
.occasion-bento > a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(30 30 30 / .7), transparent 60%);
}
.occasion-bento > a:hover img { transform: scale(1.07); }
/* خط سفلي ملوّن لكل مربع بلون من الشعار */
.occasion-bento > a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 5px;
  background: var(--pink);
}
.occasion-bento > a:nth-child(5n+2)::after { background: var(--blue); }
.occasion-bento > a:nth-child(5n+3)::after { background: var(--yellow); }
.occasion-bento > a:nth-child(5n+4)::after { background: var(--green); }
.occasion-bento > a:nth-child(5n+5)::after { background: var(--red); }
.occasion-bento > a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
/* مع 4 مربعات يتمدد الرابع؛ مع 5 مربعات تكتمل الشبكة تلقائياً */
.occasion-bento > a:nth-child(4):last-child { grid-column: span 2; }

@media (max-width: 768px) {
  .occasion-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }
  .occasion-bento > a:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .occasion-bento > a:nth-child(4):last-child { grid-column: span 2; }
}


/* ---------------------------------------------------------------------
   9) شريط المزايا (توصيل نفس اليوم، بطاقة إهداء…)
   --------------------------------------------------------------------- */
.s-block--features .feature-item,
.trust-strip > div {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  border-top: 4px solid var(--pink);
}
.s-block--features .feature-item:nth-child(4n+2), .trust-strip > div:nth-child(4n+2) { border-top-color: var(--blue); }
.s-block--features .feature-item:nth-child(4n+3), .trust-strip > div:nth-child(4n+3) { border-top-color: var(--green); }
.s-block--features .feature-item:nth-child(4n+4), .trust-strip > div:nth-child(4n+4) { border-top-color: var(--yellow); }


/* ---------------------------------------------------------------------
   10) ظهور الأقسام مع التمرير — CSS فقط بدون جافاسكربت
   يعمل في المتصفحات الحديثة ويتجاهله القديم بأمان
   --------------------------------------------------------------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .s-block,
    .reveal {
      animation: bloom-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes bloom-in {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to   { opacity: 1; transform: none; }
}


/* ---------------------------------------------------------------------
   11) صفحة المنتج
   --------------------------------------------------------------------- */
.product-single .s-slider-container,
.product-gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
}
.product-single .product-title,
.product-details h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem);
}

/* خيارات المنتج (الحجم / لون التغليف) كأزرار شرائح */
.s-product-options-option-container label,
.option-chip {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: .45rem 1.1rem;
  transition: all .25s var(--ease);
  cursor: pointer;
}
.s-product-options-option-container input:checked + label,
.option-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* حقل رسالة بطاقة الإهداء */
.s-product-options-textarea textarea,
.gift-message textarea {
  background: var(--pink-50);
  border: 2px dashed var(--pink);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-body);
  min-height: 110px;
}


/* ---------------------------------------------------------------------
   12) الفوتر
   --------------------------------------------------------------------- */
.store-footer,
footer.site-footer {
  background: var(--ink);
  color: #EDEDED;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 4rem;
}
.store-footer a,
footer.site-footer a {
  color: #CFCFCF;
  transition: color .2s;
}
.store-footer a:hover,
footer.site-footer a:hover { color: var(--pink); }


/* ---------------------------------------------------------------------
   13) زر واتساب العائم
   --------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 20px;
  z-index: 60;
  border-radius: 50%;
  box-shadow: var(--shadow-lift);
  animation: soft-pulse 2.6s var(--ease) infinite;
}
@keyframes soft-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}


/* ---------------------------------------------------------------------
   14) احترام إعداد "تقليل الحركة"
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}