/* ============================================================
   JAZEER — قالب «تحرير» (editorial)
   لغة تصميم مختلفة عن القوالب الخمسة الحالية:
   ورق دافئ بدل الترويسة الداكنة، زوايا حادة بدل المستديرة،
   خطوط شعرة بدل الظلال، وطباعة كبيرة واثقة.
   ============================================================ */

[data-theme="editorial"] {
  --paper:   #faf7f2;
  --ink:     #141210;
  --ink2:    #3d3730;
  --rust:    #c14a24;
  --rust2:   #9c3a1a;
  --rule:    #ddd6cb;

  /* إعادة تعيين متغيرات المتجر */
  --navy:    #faf7f2;
  --navy2:   #f2ece2;
  --orange:  #c14a24;
  --orange2: #e0764a;
  --cream:   #f2ece2;
  --white:   #fffdfa;
  --muted:   #857c70;
  --line:    #ddd6cb;
}

/* ---------- الأساس ---------- */

[data-theme="editorial"] body {
  background: var(--paper);
  color: var(--ink);
}

[data-theme="editorial"] * {
  border-radius: 0 !important;
}

[data-theme="editorial"] .lang-switch ul {
  border-radius: 0 !important;
}

/* ---------- الترويسة: ورقية لا داكنة ----------
   هذا أوضح فارق عن القوالب الخمسة، فكلها بترويسة داكنة. */

[data-theme="editorial"] .site-header {
  background: var(--paper) !important;
  color: var(--ink);
  border-block-end: 1px solid var(--ink);
  box-shadow: none;
}

[data-theme="editorial"] .site-header a,
[data-theme="editorial"] .site-header strong,
[data-theme="editorial"] .site-header span {
  color: var(--ink);
}

[data-theme="editorial"] .site-header .search input {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  font-size: 14.5px;
}

[data-theme="editorial"] .site-header .search input::placeholder {
  color: var(--muted);
}

[data-theme="editorial"] .site-header .search input:focus {
  border-color: var(--ink);
  outline: none;
}

[data-theme="editorial"] .lang-switch > button {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
}

[data-theme="editorial"] .lang-switch > button:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- البطل: طباعة تحريرية ---------- */

[data-theme="editorial"] .hero {
  background: var(--paper);
  border-block-end: 1px solid var(--ink);
}

[data-theme="editorial"] .hero .kicker {
  color: var(--rust);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
}

[data-theme="editorial"] .hero h1 {
  color: var(--ink);
  font-size: clamp(38px, 6.4vw, 82px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
}

[data-theme="editorial"] .hero h1 em {
  font-style: normal;
  color: var(--rust);
}

[data-theme="editorial"] .hero p {
  color: var(--ink2);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 46ch;
}

[data-theme="editorial"] .shop-now {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 15px 32px;
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: none;
  transition: .25s;
}

[data-theme="editorial"] .shop-now:hover {
  background: var(--rust);
  border-color: var(--rust);
  transform: none;
}

[data-theme="editorial"] .hero-visual,
[data-theme="editorial"] .showcase {
  background: var(--cream);
  border: 1px solid var(--ink);
  box-shadow: none;
}

/* ---------- الأقسام: شرائط لا كبسولات ---------- */

[data-theme="editorial"] .categories {
  background: var(--paper);
  border-block-end: 1px solid var(--rule);
}

[data-theme="editorial"] .category {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink2);
  font-weight: 500;
  transition: .2s;
}

[data-theme="editorial"] .category:hover {
  border-color: var(--ink);
  color: var(--ink);
}

[data-theme="editorial"] .category.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

[data-theme="editorial"] .category.active .category-copy small {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

[data-theme="editorial"] .category-mark {
  border-color: currentColor !important;
  background: transparent !important;
}

/* ---------- البطاقات: خط شعرة، بلا ظل ---------- */

[data-theme="editorial"] .product-card {
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: none;
  transition: border-color .25s, transform .25s;
}

[data-theme="editorial"] .product-card:hover {
  border-color: var(--ink);
  box-shadow: none;
  transform: translateY(-3px) !important;
}

[data-theme="editorial"] .card-image {
  background: var(--cream);
  border-block-end: 1px solid var(--rule);
}

[data-theme="editorial"] .card-category {
  color: var(--rust);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

[data-theme="editorial"] .card-body h3 {
  font-size: 16.5px;
  font-weight: 500;
  letter-spacing: -.015em;
}

[data-theme="editorial"] .card-bottom {
  border-block-start: 1px solid var(--rule);
  padding-block-start: 13px;
}

[data-theme="editorial"] .price strong {
  font-weight: 600;
  font-size: 17px;
}

[data-theme="editorial"] .sale {
  background: var(--rust);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .06em;
  padding: 5px 10px;
}

[data-theme="editorial"] .views-badge,
[data-theme="editorial"] .video-badge {
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  color: var(--paper);
  font-size: 10.5px;
  backdrop-filter: none;
}

/* ---------- عناوين الأقسام ---------- */

[data-theme="editorial"] .section-head span,
[data-theme="editorial"] .related-head span {
  color: var(--rust);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

[data-theme="editorial"] .section-head h2,
[data-theme="editorial"] .related-head h2 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -.03em;
}

[data-theme="editorial"] .related-section {
  border-block-start: 1px solid var(--ink);
}

/* ---------- صفحة المنتج ---------- */

[data-theme="editorial"] .detail-image {
  background: var(--cream);
  border: 1px solid var(--ink);
}

[data-theme="editorial"] .detail-image img {
  filter: none;
}

[data-theme="editorial"] .detail-title,
[data-theme="editorial"] .detail-info h1 {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -.032em;
  line-height: 1.12;
}

[data-theme="editorial"] .detail-price strong {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  color: var(--ink);
}

[data-theme="editorial"] .description {
  color: var(--ink2);
  font-size: 16px;
}

[data-theme="editorial"] .buy-button {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-weight: 500;
  letter-spacing: .02em;
  box-shadow: none;
}

[data-theme="editorial"] .buy-button:hover {
  background: var(--rust);
  border-color: var(--rust);
}

[data-theme="editorial"] .countdown {
  background: transparent;
  border: 1px solid var(--rust);
}

[data-theme="editorial"] .countdown b {
  color: var(--rust);
  font-weight: 600;
}

[data-theme="editorial"] .back-link {
  color: var(--ink2);
  border-block-end: 1px solid transparent;
}

[data-theme="editorial"] .back-link:hover {
  color: var(--rust);
  border-block-end-color: var(--rust);
}

/* ---------- شريط الطلب ---------- */

[data-theme="editorial"] .order-bar {
  background: var(--paper);
  border-block-start: 1px solid var(--ink);
  box-shadow: none;
  backdrop-filter: none;
}

/* ---------- التذييل ---------- */

[data-theme="editorial"] .site-footer {
  background: var(--ink);
  color: var(--paper);
  border: none;
}

[data-theme="editorial"] .site-footer a,
[data-theme="editorial"] .site-footer small,
[data-theme="editorial"] .site-footer p {
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}

/* ---------- هياكل التحميل ---------- */

[data-theme="editorial"] .skeleton-card {
  border-color: var(--rule);
}

[data-theme="editorial"] .skeleton-card i {
  background: linear-gradient(100deg,
    var(--cream) 30%,
    color-mix(in srgb, var(--rule) 70%, var(--cream)) 50%,
    var(--cream) 70%);
  background-size: 220% 100%;
}

/* ---------- الموبايل ---------- */

@media (max-width: 760px) {
  [data-theme="editorial"] .hero h1 { font-size: clamp(30px, 8.5vw, 44px); }
  [data-theme="editorial"] .mobile-menu {
    background: var(--paper);
    border-inline-start: 1px solid var(--ink);
  }
  [data-theme="editorial"] .mobile-menu a { color: var(--ink); }
}
