:root {
  --primary: #EE9440;      /* nest orange */
  --primary-dark: #DB7E2A;
  --leaf: #7CB94A;         /* leaf green */
  --brand-gray: #58595B;   /* logo text gray */
  --bg: #FFF9F1;
  --card-bg: #FFFFFF;
  --text: #4A4A52;
  --text-light: #75757D;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(74, 58, 41, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Nunito", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== الشريط العلوي ===== */
.header {
  background: #E3E9EE; /* أبيض مكسر بارد - أغمق درجة */
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
}
.logo-icon-img { height: 40px; width: auto; }
.logo-text { color: var(--brand-gray); letter-spacing: 0.2px; }
.nav { display: flex; gap: 24px; }
.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--primary-dark); }

/* ===== البطل ===== */
.hero {
  background: linear-gradient(135deg, #FFDDA6 0%, #FFEDD6 50%, #FFF6EA 100%);
  padding: 70px 0;
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.hero-text h1,
.section-title,
.card-title {
  font-family: "Fredoka", sans-serif;
}
.hero-text h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 16px; }
.highlight { color: var(--primary-dark); }
.hero-text p { font-size: 1.15rem; color: var(--text-light); margin-bottom: 26px; max-width: 480px; }

.hero-art {
  position: relative;
  width: 300px;
  height: 320px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-mascot {
  width: 270px;
  height: auto;
  animation: bob 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 22px rgba(74, 58, 41, 0.18));
}
.float {
  position: absolute;
  font-size: 2.6rem;
  animation: bob 3.2s ease-in-out infinite;
}
.float-1 { top: -6px; right: 6px; animation-delay: 0s; }
.float-2 { top: 34%; left: -6px; animation-delay: 0.7s; }
.float-3 { bottom: 4px; right: 16%; animation-delay: 1.3s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== الأزرار ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 159, 67, 0.4);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ===== الأقسام ===== */
section { padding: 60px 0; }
.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 34px;
}

.featured { background: var(--card-bg); }

/* ===== الفلاتر ===== */
.filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}
.filter-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filter-btn {
  padding: 8px 18px;
  border: 2px solid #F0E6D8;
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary-dark); }
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== شبكة الكتب ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.13);
}
.card-cover {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.card-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 12px;
  flex: 1;
}
.card-tags { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tag {
  font-size: 0.78rem;
  padding: 3px 12px;
  border-radius: 999px;
  background: #F6EFE4;
  color: #8A6D3B;
  font-weight: 500;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.card-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.old-price {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  text-decoration: line-through;
}
.buy-btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: #F56400; /* برتقالي Etsy */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.buy-btn:hover { background: #D95600; transform: translateY(-2px); }

.empty-msg { text-align: center; font-size: 1.1rem; color: var(--text-light); padding: 30px 0; }

/* ===== من نحن ===== */
.about { background: var(--card-bg); }
.about-inner {
  display: flex;
  gap: 50px;
  align-items: center;
  flex-wrap: wrap;
}
.about-inner > div { flex: 1; min-width: 280px; }
.about-mascot { flex: 0 0 190px; align-self: center; }
.about-mascot img { width: 100%; height: auto; }
.about-badges { display: flex; flex-direction: column; gap: 14px; }
.badge {
  background: #F4F9EE;
  border: 2px dashed var(--leaf);
  border-radius: var(--radius);
  padding: 14px 22px;
  font-weight: 700;
  text-align: center;
}

/* ===== تواصل ===== */
.contact { text-align: center; }
.contact p { color: var(--text-light); margin-bottom: 26px; }
.contact-links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== التذييل ===== */
.footer {
  background: var(--brand-gray);
  color: #F4F4F5;
  text-align: center;
  padding: 30px 0;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo {
  height: 68px;
  width: auto;
  background: #ffffff;
  padding: 6px 20px;
  border-radius: 16px;
}

/* ===== موبايل ===== */
@media (max-width: 720px) {
  .nav { display: none; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-text h1 { font-size: 2rem; }
  .hero-text p { margin-inline: auto; }
  .hero-mascot { width: 210px; }
  .about-mascot { display: none; }
  .footer-logo { height: 58px; }
}

/* ===== صفحة المنتج ===== */
.product-page { padding: 14px 0 40px; }
.product-page .container { max-width: 1220px; }

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary-dark); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.product-layout {
  display: grid;
  grid-template-columns: 64px minmax(0, 635px) 432px;
  gap: 24px;
  align-items: start;
  justify-content: center;
}
/* المعرض يوزع عناصره على أعمدة الشبكة الرئيسية */
.product-gallery { display: contents; }



/* عمود المصغرات — يسار الصورة، شفاف قليلاً */
.gallery-thumbs {
  position: relative; /* مرجع offsetTop للتمرير الداخلي */
  display: flex;
  flex-direction: column;
  align-items: center; /* مصغرات مثبتة في المنتصف — لا حركة يمين/يسار */
  gap: 8px;
  max-height: max(360px, calc(100vh - 150px));
  overflow-y: auto; /* التمرير بالعجلة يعمل */
  overflow-x: hidden; /* بلا حركة أفقية إطلاقاً */
  padding: 2px;
  scrollbar-width: none; /* إخفاء شريط التمرير (Firefox) */
  -ms-overflow-style: none; /* إخفاء شريط التمرير (Edge القديم) */
}
/* إخفاء شريط التمرير في Chrome / Edge / Safari — الوظيفة تبقى */
.gallery-thumbs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.thumb {
  position: relative;
  flex: 0 0 auto;
  width: 56px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(74, 58, 41, 0.08);
  opacity: 0.55;
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
}
.thumb:hover { opacity: 0.85; transform: translateY(-1px); }
.thumb.active { opacity: 1; border-color: var(--primary); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-video video { object-fit: cover; filter: brightness(0.85); }
.play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
}

/* المسرح الرئيسي + الأسهم الشفافة */
.gallery-stage { position: relative; }
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg); /* بنفس لون الخلفية: بلا إطار أبيض */
  width: 100%;
  aspect-ratio: 1 / 1; /* 635×635 مثل Etsy — ثابت بين الشرائح */
  max-height: max(360px, calc(100vh - 150px)); /* تظهر كاملة دون نزول */
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(74, 58, 41, 0.22);
  opacity: 0.65;
  transition: opacity 0.15s, background 0.15s, transform 0.1s;
  z-index: 2;
}
.gallery-nav:hover { opacity: 1; background: #ffffff; }
.gallery-nav:active { transform: translateY(-50%) scale(0.94); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
  z-index: 2;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.product-info .tag { display: inline-block; margin-bottom: 12px; }
.product-info h1 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}
.product-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.discount-badge {
  display: inline-block;
  background: #3E9B4F;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-price { font-size: 1.6rem; font-weight: 800; color: var(--primary-dark); }
.product-price-row .old-price { font-size: 1rem; }

.product-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #F4F9EE;
  border: 2px dashed var(--leaf);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 22px;
  font-weight: 600;
}

.buy-btn-lg {
  display: block;
  width: 100%;
  text-align: center;
  background: #F56400;
  color: #fff;
  font-size: 1.15rem;
  padding: 15px 28px;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(245, 100, 0, 0.32);
  transition: background 0.2s, transform 0.15s;
}
.buy-btn-lg:hover { background: #D95600; transform: translateY(-2px); }
.buy-note { font-size: 0.88rem; color: var(--text-light); margin-top: 10px; text-align: center; }

.product-desc {
  margin-top: 46px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 34px;
}
.product-desc h2, .related h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.desc-body { white-space: pre-line; color: var(--text); line-height: 1.8; }

/* الوصف المطوي: جزء ظاهر + تدرج شفاف + زر Learn more */
.desc-clip {
  position: relative;
  max-height: 180px; /* معاينة أقصر بسطرين */
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.desc-wrap.expanded .desc-clip { max-height: 4000px; }
.desc-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 88%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.desc-wrap.expanded .desc-fade { opacity: 0; visibility: hidden; }

.desc-toggle {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 12px auto 0; /* موسّط في منتصف مساحة الوصف */
  padding: 9px 24px;
  border: none; /* بلا إطار */
  border-radius: 999px;
  background: transparent;
  color: var(--primary-dark);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.desc-toggle:hover { background: #FFE9CC; } /* تظليل ناعم عند التحويم */
.desc-toggle-chevron { font-size: 0.85rem; }

.related { margin-top: 26px; padding-top: 0; } /* هامش أنيق بدل الفجوة الكبيرة */
.related .grid { margin-bottom: 26px; }
.related-more { text-align: center; }

.not-found { text-align: center; padding: 70px 0; }
.not-found h1 { font-family: "Fredoka", sans-serif; margin-bottom: 12px; }
.not-found p { color: var(--text-light); margin-bottom: 24px; }

/* روابط البطاقة في الرئيسية */
.card-cover-link { display: block; text-decoration: none; }
.card-title-link { text-decoration: none; color: inherit; }
.card-title-link .card-title { transition: color 0.15s; }
.card-title-link:hover .card-title { color: var(--primary-dark); }

@media (max-width: 1180px) {
  .product-layout { grid-template-columns: 64px minmax(0, 1fr); }
  .product-info {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    align-items: center;
  }
}
@media (max-width: 860px) {
  .product-layout { grid-template-columns: 1fr; gap: 18px; }
  .gallery-stage { order: -1; }
  .product-info { order: 2; display: flex; flex-direction: column; gap: 16px; }
  .product-info h1 { font-size: 1.4rem; }
  .gallery-thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .thumb { width: 56px; }
}

/* ============================================
   V2 — هيرو بوسط رجائي + مروحة أغلفة + بطاقات جديدة
   ============================================ */

.t-gray { color: #8F8F8F; }
.t-dark { color: #23262B; }

/* --- الهيرو المركزي --- */
.hero-v2 {
  padding: 18px 0 26px;
  text-align: center;
  /* صورة خلفية الهيرو: توضع في brand/hero-bg.png — إن غابت يظهر التدرج الحالي */
  background-image:
    linear-gradient(180deg, rgba(255, 249, 241, 0.6) 0%, rgba(255, 249, 241, 0.28) 32%, rgba(255, 249, 241, 0.05) 58%, rgba(255, 249, 241, 0) 78%),
    url("brand/hero-bg.png"),
    linear-gradient(135deg, #DFF0E2 0%, #F3F7EE 55%, #FFF9F1 100%);
  background-size: cover, cover, cover;
  background-position: center, center bottom, center;
  background-repeat: no-repeat;
}
.hero-v2-inner { max-width: 760px; }
.hero-v2-title {
  font-family: "Fredoka", sans-serif;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-v2-title .t-dark { font-weight: 700; }
.hero-v2-sub {
  color: var(--text-light);
  font-size: 1.08rem;
  max-width: 540px;
  margin: 0 auto 12px;
}
.hero-v2-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-v2-dark {
  background: #23262B;
  color: #fff;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-v2-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(35, 38, 43, 0.28); }
.btn-v2-light {
  background: #fff;
  border: 1.5px solid #E3DED6;
  color: #23262B;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s;
}
.btn-v2-light:hover { transform: translateY(-2px); border-color: var(--primary); }

/* --- حزام كتب دائري ثابت المواقع + مسطرة سحب --- */
.fan-wrap { margin-top: 56px; user-select: none; } /* مسافة أكبر بين الأزرار والحزام */
.fan { position: relative; height: 278px; }
.fan.dragging .fan-book { transition: none; }
.fan-track { position: absolute; inset: 0; }
.fan-book {
  position: absolute;
  left: 0;
  bottom: 0;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(45, 40, 32, 0.24);
  transform-origin: bottom center;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.fan-track.dragging .fan-book, .fan.dragging .fan-book { transition: none; }
.fan-book img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fan-book:hover { filter: brightness(1.06); }

/* المسطرة: شرطات + مقبض أسود قابل للسحب + سهم ثابت */
.ruler {
  position: relative;
  height: 26px;
  max-width: 880px;
  margin: 4px auto 0; /* ملاصقة تقريباً للكتب */
  overflow: hidden;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.ruler:active { cursor: grabbing; }
.ruler::before {
  content: "▼";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #23262B;
  z-index: 4;
}
.ruler-strip {
  position: absolute;
  top: 6px;
  left: -70px;   /* امتداد على الجانبين ليتكرر النمط بلا نهاية */
  right: -70px;
  height: 18px;
  transition: transform 0.25s ease;
  /* نمط متكرر: شرطة طويلة داكنة كل 70px (كتاب) + شرطات صغيرة كل 14px */
  background:
    repeating-linear-gradient(90deg, #4A4440 0 2.5px, transparent 2.5px 70px),
    repeating-linear-gradient(90deg, #CBC5BB 0 1.5px, transparent 1.5px 14px);
}
.ruler.dragging .ruler-strip { transition: none; }
.ruler-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 68px;
  height: 10px;
  margin-left: -34px;
  background: #23262B;
  border-radius: 999px;
  z-index: 3;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease;
}
.ruler.dragging .ruler-handle { transition: none; cursor: grabbing; }

/* --- عنوان القسم بنمط الصورة --- */
.v2-head { text-align: left; margin-bottom: 6px; }
.v2-heading { font-family: "Fredoka", sans-serif; font-size: 2.2rem; font-weight: 500; }
.v2-heading .t-dark { font-weight: 700; }
.v2-head-sub { color: var(--text-light); max-width: 520px; margin: 4px 0 22px; }

/* --- بطاقات المنتجات بنمط الصورة المرجعية --- */
.bcard {
  background: #F4F2ED;
  border-radius: 16px;
  padding: 12px 12px 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bcard:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(74, 58, 41, 0.13); }
.bcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bcard-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  padding: 3px 12px;
  border-radius: 999px;
}
.badge-coloring { background: #3E9B4F; }
.badge-educational { background: #2E86DE; }
.badge-activities { background: #7C5CBF; }

/* ألوان الفلاتر النشطة تطابق شارات الفئات */
.filter-btn[data-value="Coloring"].active { background: #3E9B4F; border-color: #3E9B4F; }
.filter-btn[data-value="Educational"].active { background: #2E86DE; border-color: #2E86DE; }
.filter-btn[data-value="Activities"].active { background: #7C5CBF; border-color: #7C5CBF; }
.bcard-icons { display: flex; gap: 4px; }
.bcard-icon {
  background: none;
  border: none;
  font-size: 0.95rem;
  color: #8F8F8F;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 8px;
  line-height: 1;
}
.bcard-icon:hover { background: #ECE9E2; }
.bcard-heart.liked { color: #E23B3B; }
.bcard-cover {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}
.bcard-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.bcard-cover:hover img { transform: scale(1.045); }
.bcard-info { text-align: center; margin-top: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.bcard-title { font-family: "Fredoka", sans-serif; font-size: 1.02rem; font-weight: 600; line-height: 1.35; }
.bcard-title a { color: var(--text); text-decoration: none; }
.bcard-title a:hover { color: var(--primary-dark); }
.bcard-price { font-weight: 800; color: var(--primary-dark); }
.bcard-price s { color: var(--text-light); font-weight: 400; font-size: 0.82rem; margin-left: 6px; }
.bcard-buy {
  font-size: 0.88rem;
  font-weight: 700;
  color: #F56400;
  text-decoration: none;
  margin: auto 12px 0;
  padding: 3px 14px;
  border: 2px solid transparent;
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bcard-buy:hover {
  text-decoration: none;
  border-color: #F0954E; /* إطار برتقالي بارد */
  background: #FFF4E8;
}

/* --- استجابة --- */
@media (max-width: 1100px) {
  .fan { height: 235px; }
  .fan-book { bottom: 0; }
}
@media (max-width: 860px) {
  .hero-v2-title { font-size: 2.1rem; }
  .fan { height: 185px; }
  .fan-book { bottom: 0; }
}
@media (max-width: 560px) {
  .fan { height: 155px; }
  .fan-book { bottom: 0; }
  .ruler { height: 22px; margin-top: 2px; }
}

/* ===== أيقونات PNG المدمجة ===== */
.ic { height: 1.1em; width: auto; vertical-align: -0.18em; }
.ic-h { height: 1.25em; vertical-align: -0.22em; margin-right: 4px; }
.ic-btn { height: 1.15em; vertical-align: -0.25em; margin-right: 5px; }
.bcard-icon img { height: 21px; width: auto; display: block; }
.bcard-heart.liked img { transform: scale(1.08); }

/* ===== V2: شريط علوي أنحف + أيقونات التنقل ===== */
.header-inner { padding-top: 8px !important; padding-bottom: 8px !important; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; }
.nav-ic { height: 22px; width: auto; display: block; }


/* ===== V2: الفوتر الجديد ===== */
.footer-v2 {
  background: #E9EEF2; /* بارد فاتح متناسق مع الهيدر — بلا أسود */
  color: var(--text);
  padding: 46px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1.3fr;
  gap: 30px;
  align-items: start;
}
.f-brand img.f-logo { height: 86px; width: auto; }
.f-tag { font-weight: 700; margin-top: 10px; }
.f-hash { color: var(--primary-dark); font-weight: 700; }
.f-social { text-align: center; }
.f-col h4, .f-social h4 {
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand-gray);
  margin-bottom: 14px;
}
.f-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 9px;
  transition: color 0.15s;
}
.f-col a:hover { color: var(--primary-dark); }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.soc {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.soc img { width: 36px; height: 36px; object-fit: contain; display: block; }
.soc:hover { transform: translateY(-3px) scale(1.12); opacity: 1; }
.f-copy {
  text-align: center;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(74, 58, 41, 0.15);
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}
