/*
Theme Name: H-CRYSTAL
Theme URI: https://h-crystal.example
Author: H-CRYSTAL
Description: قالب ووردبرس/ووكومرس لمتاجر الطباعة حسب الطلب — أكواب حرارية، أغطية هواتف، طباعة على الحجر والزجاج والخشب. مصمم بالعربية أولاً مع دعم كامل لاتجاه RTL، ومهيّأ للعمل مع إضافة رفع تصاميم الزبائن. A print-on-demand WooCommerce theme, Arabic-first with full RTL support.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hcrystal
Tags: e-commerce, rtl-language-support, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
WC requires at least: 7.0
WC tested up to: 9.9
*/

/* ==========================================================================
   1. التوكنز — الألوان والخطوط والمقاسات
   ========================================================================== */

:root {
  /* ألوان الهوية — مستخرجة من شعار الألماسة */
  --hc-red: #e30b23;
  --hc-red-bright: #ff1f38;
  --hc-red-deep: #a60016;
  --hc-maroon: #5a0009;

  /* الحياد */
  --hc-ink: #140a0c;
  --hc-ink-soft: #3d3033;
  --hc-muted: #7c6f72;
  --hc-line: #e8e1e2;
  --hc-surface: #ffffff;
  --hc-surface-2: #faf7f7;
  --hc-surface-3: #f3eeef;

  /* دلالية */
  --hc-success: #157a4a;
  --hc-warning: #b26a00;

  /* أسطح داكنة (الهيدر العلوي والفوتر) */
  --hc-dark: #170a0d;
  --hc-dark-2: #241014;
  --hc-on-dark: #f6f0f1;
  --hc-on-dark-muted: #b7a5a8;

  /* الخطوط */
  --hc-font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --hc-font-display: "Playfair Display", "Tajawal", Georgia, serif;

  /* المقاسات */
  --hc-container: 1280px;
  --hc-radius: 14px;
  --hc-radius-sm: 8px;
  --hc-radius-pill: 999px;

  /* الظلال */
  --hc-shadow-sm: 0 1px 2px rgba(20, 10, 12, .06), 0 2px 8px rgba(20, 10, 12, .04);
  --hc-shadow: 0 4px 12px rgba(20, 10, 12, .08), 0 12px 32px rgba(20, 10, 12, .06);
  --hc-shadow-lg: 0 12px 28px rgba(20, 10, 12, .12), 0 32px 64px rgba(20, 10, 12, .10);

  --hc-header-h: 76px;
}

/* ==========================================================================
   2. الأساسيات
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--hc-font-ar);
  font-size: 16px;
  line-height: 1.75;
  color: var(--hc-ink);
  background: var(--hc-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--hc-red); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--hc-red-deep); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .6em;
  line-height: 1.3;
  font-weight: 700;
  color: var(--hc-ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

ul, ol { padding-inline-start: 1.4em; }

:focus-visible {
  outline: 3px solid var(--hc-red);
  outline-offset: 2px;
  border-radius: 4px;
}

.hc-container {
  width: 100%;
  max-width: var(--hc-container);
  margin-inline: auto;
  padding-inline: 20px;
}

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; overflow: hidden;
  position: absolute !important; width: 1px; white-space: nowrap;
}

.skip-link {
  position: absolute; inset-block-start: -60px; inset-inline-start: 12px;
  background: var(--hc-red); color: #fff; padding: 10px 18px;
  border-radius: var(--hc-radius-sm); z-index: 999;
}
.skip-link:focus { inset-block-start: 12px; color: #fff; }

/* ==========================================================================
   3. الأزرار
   ========================================================================== */

.hc-btn,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--hc-font-ar);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--hc-radius-pill);
  background: var(--hc-red);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease, box-shadow .18s ease;
  text-align: center;
}

.hc-btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--hc-red-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--hc-shadow);
}

.hc-btn:active { transform: translateY(0); }

.hc-btn--ghost {
  background: transparent;
  color: var(--hc-ink);
  border-color: var(--hc-line);
}
.hc-btn--ghost:hover { background: var(--hc-surface-3); color: var(--hc-ink); box-shadow: none; }

.hc-btn--dark { background: var(--hc-ink); }
.hc-btn--dark:hover { background: var(--hc-maroon); }

.hc-btn--on-dark {
  background: #fff; color: var(--hc-ink);
}
.hc-btn--on-dark:hover { background: var(--hc-surface-3); color: var(--hc-ink); }

.hc-btn--lg { padding: 17px 34px; font-size: 1.02rem; }
.hc-btn--sm { padding: 10px 18px; font-size: .85rem; }

/* ==========================================================================
   4. شريط الإعلان + الهيدر
   ========================================================================== */

.hc-announce {
  background: linear-gradient(90deg, var(--hc-maroon), var(--hc-red) 45%, var(--hc-red-deep));
  color: #fff;
  font-size: .84rem;
  font-weight: 500;
  text-align: center;
  padding: 9px 20px;
}
.hc-announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.hc-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  border-block-end: 1px solid var(--hc-line);
}

.hc-header__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--hc-header-h);
}

.hc-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.hc-brand img, .hc-brand .custom-logo { width: 40px; height: auto; }
.hc-brand__name {
  font-family: var(--hc-font-display);
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--hc-ink);
  line-height: 1;
  text-transform: uppercase;
}
.hc-brand__tag {
  display: block;
  font-family: var(--hc-font-ar);
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--hc-muted);
  font-weight: 500;
  margin-block-start: 4px;
}

/* البحث */
.hc-search { flex: 1; max-width: 520px; position: relative; }
.hc-search input[type="search"],
.hc-search input[type="text"] {
  width: 100%;
  font-family: var(--hc-font-ar);
  font-size: .93rem;
  padding: 12px 44px 12px 18px;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius-pill);
  background: var(--hc-surface-2);
  color: var(--hc-ink);
  transition: border-color .18s ease, background .18s ease;
}
.hc-search input:focus {
  border-color: var(--hc-red);
  background: #fff;
  outline: none;
}
.hc-search__submit {
  position: absolute;
  inset-inline-end: 6px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  background: var(--hc-red);
  border: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  color: #fff;
  padding: 0;
}
.hc-search__submit:hover { background: var(--hc-red-deep); }
.hc-search__submit svg { width: 17px; height: 17px; }

/* أدوات الهيدر */
.hc-tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }

.hc-tool {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: var(--hc-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.hc-tool:hover { background: var(--hc-surface-3); color: var(--hc-red); }
.hc-tool svg { width: 21px; height: 21px; }

.hc-tool__count {
  position: absolute;
  inset-block-start: 2px;
  inset-inline-end: 2px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--hc-radius-pill);
  background: var(--hc-red);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: grid; place-items: center;
  line-height: 1;
  border: 2px solid #fff;
}

.hc-lang {
  font-size: .82rem;
  font-weight: 700;
  color: var(--hc-ink-soft);
  padding: 8px 12px;
  border-radius: var(--hc-radius-pill);
  border: 1px solid var(--hc-line);
}
.hc-lang:hover { border-color: var(--hc-red); color: var(--hc-red); }

.hc-burger { display: none; }

/* ==========================================================================
   5. القائمة الرئيسية
   ========================================================================== */

.hc-nav { border-block-start: 1px solid var(--hc-line); }
.hc-nav__close { display: none; }
.hc-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.hc-nav__list > li { position: relative; }
.hc-nav__list > li > a {
  display: block;
  padding: 15px 16px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--hc-ink-soft);
  position: relative;
}
.hc-nav__list > li > a::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline: 16px;
  height: 2px;
  background: var(--hc-red);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.hc-nav__list > li:hover > a,
.hc-nav__list > li.current-menu-item > a { color: var(--hc-red); }
.hc-nav__list > li:hover > a::after,
.hc-nav__list > li.current-menu-item > a::after { transform: scaleX(1); }

/* القوائم المنسدلة */
.hc-nav .sub-menu {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  box-shadow: var(--hc-shadow);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.hc-nav li:hover > .sub-menu,
.hc-nav li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.hc-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--hc-radius-sm);
  font-size: .9rem;
  color: var(--hc-ink-soft);
}
.hc-nav .sub-menu a:hover { background: var(--hc-surface-3); color: var(--hc-red); }

/* ==========================================================================
   6. الهيرو
   ========================================================================== */

.hc-hero {
  position: relative;
  min-height: min(74vh, 620px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(1200px 500px at 80% 15%, rgba(227, 11, 35, .22), transparent 60%),
    linear-gradient(135deg, var(--hc-dark) 0%, var(--hc-maroon) 58%, var(--hc-red-deep) 100%);
  color: var(--hc-on-dark);
  overflow: hidden;
}
.hc-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .32;
}
.hc-hero__inner { position: relative; padding-block: 74px; max-width: 640px; }
.hc-hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: var(--hc-radius-pill);
  margin-block-end: 20px;
}
.hc-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-block-end: 18px;
}
.hc-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, .86);
  margin-block-end: 32px;
  max-width: 52ch;
}
.hc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   7. شريط المزايا
   ========================================================================== */

.hc-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hc-line);
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  overflow: hidden;
  margin-block: 46px;
}
.hc-feature {
  background: #fff;
  padding: 26px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hc-feature__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(227, 11, 35, .09);
  color: var(--hc-red);
}
.hc-feature__icon svg { width: 22px; height: 22px; }
.hc-feature strong { display: block; font-size: .96rem; }
.hc-feature span { font-size: .82rem; color: var(--hc-muted); }

/* ==========================================================================
   8. عناوين الأقسام
   ========================================================================== */

.hc-section { padding-block: 52px; }
.hc-section--tint { background: var(--hc-surface-2); }

.hc-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 30px;
}
.hc-section__title { margin: 0; }
.hc-section__title small {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--hc-red);
  margin-block-end: 8px;
}
.hc-section__link {
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   9. بطاقات الأقسام
   ========================================================================== */

.hc-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* شبكة الأقسام أعلى صفحة المتجر */
.hc-shop-cats {
  margin-block-end: 44px;
  padding-block-end: 40px;
  border-block-end: 1px solid var(--hc-line);
}
.hc-shop-cats .hc-section__head { margin-block-end: 22px; }
.woocommerce .hc-shop-cats + .woocommerce-notices-wrapper { margin-block-start: 0; }
.hc-cat {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--hc-radius);
  overflow: hidden;
  background: var(--hc-surface-3);
  box-shadow: var(--hc-shadow-sm);
}
.hc-cat img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.hc-cat:hover img { transform: scale(1.06); }
.hc-cat::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 10, 12, .82) 0%, rgba(20, 10, 12, .1) 55%, transparent 100%);
}
.hc-cat__label {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 18px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.hc-cat__label span {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .78);
}

/* ==========================================================================
   10. شبكة المنتجات
   ========================================================================== */

.woocommerce ul.products,
.hc-products {
  /* عدد الأعمدة يتبع اختيارك في: تخصيص ▸ ووكومرس ▸ فهرس المنتجات */
  --hc-cols: 4;
  display: grid !important;
  grid-template-columns: repeat(var(--hc-cols), minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products.columns-1 { --hc-cols: 1; }
.woocommerce ul.products.columns-2 { --hc-cols: 2; }
.woocommerce ul.products.columns-3 { --hc-cols: 3; }
.woocommerce ul.products.columns-4 { --hc-cols: 4; }
.woocommerce ul.products.columns-5 { --hc-cols: 5; }
.woocommerce ul.products.columns-6 { --hc-cols: 6; }
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }

.woocommerce ul.products li.product,
.hc-products > li {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  position: relative;
  background: #fff;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}
.woocommerce ul.products li.product:hover,
.hc-products > li:hover {
  box-shadow: var(--hc-shadow);
  transform: translateY(-3px);
  border-color: transparent;
}

.hc-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--hc-surface-2);
  overflow: hidden;
}
.woocommerce ul.products li.product a img,
.hc-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  margin: 0;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.woocommerce ul.products li.product:hover a img,
.hc-card__media:hover img { transform: scale(1.05); }

.hc-card__body {
  padding: 15px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.hc-card__cat {
  font-size: .74rem;
  color: var(--hc-muted);
  letter-spacing: .06em;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.hc-card__title {
  font-size: .98rem !important;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 6px !important;
  padding: 0 !important;
  color: var(--hc-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.woocommerce ul.products li.product a { color: inherit; }

.woocommerce ul.products li.product .price,
.hc-card__price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--hc-red) !important;
  font-weight: 800;
  font-size: 1.06rem !important;
  margin: 0 0 12px !important;
  margin-block-start: auto !important;
}
.woocommerce ul.products li.product .price del,
.hc-card__price del {
  color: var(--hc-muted) !important;
  font-weight: 500;
  font-size: .86rem;
  opacity: 1;
}
.woocommerce ul.products li.product .price ins { text-decoration: none; }

.woocommerce ul.products li.product .button,
.hc-card__btn {
  width: 100%;
  margin: 0 !important;
  padding: 11px 16px !important;
  font-size: .88rem !important;
  background: var(--hc-ink);
  /* لازم صراحةً: قاعدة `li.product a { color: inherit }` أعلاه تلغي لون الزر */
  color: #fff;
}
.woocommerce ul.products li.product .button:hover,
.hc-card__btn:hover { background: var(--hc-red); color: #fff; }
.woocommerce ul.products li.product .added_to_cart { display: none; }

/* الشارات */
.hc-badge,
.woocommerce span.onsale {
  /* إعادة ضبط قيم ووكومرس الفيزيائية أولاً، ثم تطبيق الخصائص المنطقية */
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  min-width: auto;
  min-height: auto;
  margin: 0;
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 3;
  background: var(--hc-red);
  color: #fff;
  font-family: var(--hc-font-ar);
  font-size: .74rem;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  border-radius: var(--hc-radius-pill);
}
.hc-badge--new { background: var(--hc-ink); }
.hc-badge--out { background: var(--hc-muted); }

/* ==========================================================================
   10b. كيف تطلب؟ — ثلاث خطوات
   ========================================================================== */

.hc-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: hc-step;
}
.hc-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  padding: 28px 26px 26px;
}
.hc-step__num {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 22px;
  font-family: var(--hc-font-display);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 700;
  color: var(--hc-surface-3);
}
.hc-step__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(227, 11, 35, .09);
  color: var(--hc-red);
  margin-block-end: 16px;
}
.hc-step h3 { font-size: 1.08rem; margin-block-end: 6px; }
.hc-step p { color: var(--hc-muted); font-size: .92rem; margin: 0; }

/* ==========================================================================
   11. بانر ترويجي
   ========================================================================== */

.hc-promo {
  position: relative;
  border-radius: var(--hc-radius);
  overflow: hidden;
  background: linear-gradient(120deg, var(--hc-dark), var(--hc-maroon) 60%, var(--hc-red-deep));
  color: #fff;
  padding: 52px 44px;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.hc-promo::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -6%;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 31, 56, .45), transparent 68%);
}
.hc-promo > * { position: relative; }
.hc-promo h2 { color: #fff; margin: 0; }
.hc-promo p { color: rgba(255, 255, 255, .85); margin: 0; max-width: 54ch; }

/* ==========================================================================
   12. صفحة المنتج المفرد
   ========================================================================== */

.woocommerce div.product { margin-block: 34px; }
.woocommerce div.product .product_title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-block-end: 12px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--hc-red);
  font-size: 1.7rem;
  font-weight: 800;
}
.woocommerce div.product p.price del { font-size: 1.05rem; color: var(--hc-muted); font-weight: 500; }
.woocommerce div.product .woocommerce-product-rating { margin-block-end: 16px; }
.woocommerce div.product form.cart { margin-block: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.woocommerce div.product form.cart .button { flex: 1; min-width: 200px; }
.woocommerce div.product div.images img { border-radius: var(--hc-radius); }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  gap: 6px;
  border-block-end: 1px solid var(--hc-line);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 13px 20px;
  font-weight: 700;
  color: var(--hc-muted);
  border-block-end: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--hc-red);
  border-block-end-color: var(--hc-red);
}

.hc-trust {
  display: grid;
  gap: 10px;
  padding: 18px 20px;
  background: var(--hc-surface-2);
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  margin-block-start: 22px;
}
.hc-trust div { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.hc-trust svg { width: 18px; height: 18px; color: var(--hc-red); flex-shrink: 0; }

/* الكمية */
.woocommerce .quantity .qty {
  width: 78px;
  height: 48px;
  text-align: center;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius-pill);
  font-family: var(--hc-font-ar);
  font-weight: 700;
}

/* ==========================================================================
   13. السلة والدفع والنماذج
   ========================================================================== */

.woocommerce table.shop_table {
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  border-collapse: separate;
  overflow: hidden;
}
.woocommerce table.shop_table th {
  background: var(--hc-surface-2);
  font-weight: 700;
  padding: 14px 16px;
}
.woocommerce table.shop_table td { padding: 14px 16px; }

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 { font-size: 1.2rem; }

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container .select2-selection--single {
  width: 100%;
  font-family: var(--hc-font-ar);
  font-size: .94rem;
  padding: 12px 16px;
  height: auto;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius-sm);
  background: #fff;
  color: var(--hc-ink);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--hc-red);
  outline: none;
}
.woocommerce form .form-row label { font-weight: 600; font-size: .9rem; margin-block-end: 6px; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-block-start: 0;
  border-inline-start: 4px solid var(--hc-red);
  background: var(--hc-surface-2);
  border-radius: var(--hc-radius-sm);
  padding: 16px 20px;
  font-size: .93rem;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { display: none; }
.woocommerce-message { border-inline-start-color: var(--hc-success); }

/* ==========================================================================
   14. الفوتر
   ========================================================================== */

.hc-footer {
  background: var(--hc-dark);
  color: var(--hc-on-dark-muted);
  margin-block-start: 64px;
  font-size: .92rem;
}

.hc-footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-block: 54px 40px;
}
.hc-footer h4 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .06em;
  margin-block-end: 18px;
}
.hc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hc-footer a { color: var(--hc-on-dark-muted); }
.hc-footer a:hover { color: #fff; }

.hc-footer__brand { display: flex; align-items: center; gap: 12px; margin-block-end: 16px; }
.hc-footer__brand img { width: 38px; }
.hc-footer__brand .hc-brand__name { color: #fff; }

.hc-social { display: flex; gap: 10px; margin-block-start: 18px; }
.hc-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  color: var(--hc-on-dark);
  transition: background .18s ease, transform .18s ease;
}
.hc-social a:hover { background: var(--hc-red); color: #fff; transform: translateY(-2px); }
.hc-social svg { width: 19px; height: 19px; }

.hc-footer__pay {
  display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 16px;
}
.hc-footer__pay span {
  font-size: .74rem;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--hc-radius-sm);
  color: var(--hc-on-dark);
}

.hc-footer__bottom {
  border-block-start: 1px solid rgba(255, 255, 255, .1);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .84rem;
}

/* واتساب عائم */
.hc-whatsapp {
  position: fixed;
  inset-block-end: 22px;
  inset-inline-start: 22px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--hc-shadow);
  transition: transform .18s ease;
}
.hc-whatsapp:hover { transform: scale(1.07); color: #fff; }
.hc-whatsapp svg { width: 30px; height: 30px; }

/* ==========================================================================
   15. المدونة والصفحات
   ========================================================================== */

.hc-page { padding-block: 40px; }
.hc-page__header {
  background: var(--hc-surface-2);
  border-block-end: 1px solid var(--hc-line);
  padding-block: 34px;
  margin-block-end: 34px;
}
.hc-page__header h1 { margin: 0; }

.hc-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hc-post {
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
  overflow: hidden;
  background: #fff;
}
.hc-post__thumb { aspect-ratio: 16 / 10; background: var(--hc-surface-3); }
.hc-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.hc-post__body { padding: 18px 20px 22px; }
.hc-post__meta { font-size: .8rem; color: var(--hc-muted); margin-block-end: 8px; }

.hc-entry { max-width: 760px; margin-inline: auto; }
.hc-entry img { border-radius: var(--hc-radius); margin-block: 20px; }
/* بطاقات التواصل */
.hc-contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-block: 24px;
}
.hc-contact-card {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: var(--hc-surface-2);
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius);
}
.hc-contact-card__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(227, 11, 35, .09);
  color: var(--hc-red);
  margin-block-end: 8px;
}
.hc-contact-card strong { font-size: .92rem; }
.hc-contact-card span:last-child { color: var(--hc-muted); font-size: .95rem; }

.hc-entry blockquote {
  margin: 24px 0;
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--hc-red);
  color: var(--hc-ink-soft);
  font-size: 1.05rem;
}

/* الترقيم */
.hc-pagination, .woocommerce nav.woocommerce-pagination ul {
  display: flex; justify-content: center; gap: 8px;
  margin-block: 40px; padding: 0; border: 0;
  list-style: none;
}
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; list-style: none; }
.hc-pagination a, .hc-pagination span,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--hc-line);
  border-radius: var(--hc-radius-sm);
  font-weight: 700;
  color: var(--hc-ink-soft);
  padding: 0 12px;
  background: #fff;
}
.hc-pagination .current,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--hc-red);
  border-color: var(--hc-red);
  color: #fff;
}
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--hc-surface-3); color: var(--hc-red); }

/* ==========================================================================
   16. الاستجابة للجوال
   ========================================================================== */

@media (max-width: 1100px) {
  /* نخفض عدد الأعمدة فقط إن كان أكبر من ٣ — ولا نرفع اختيارك */
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products.columns-5,
  .woocommerce ul.products.columns-6,
  .hc-products { --hc-cols: 3; }
  .hc-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hc-features { grid-template-columns: repeat(2, 1fr); }
  .hc-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hc-posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hc-burger { display: grid; }
  .hc-nav {
    position: fixed;
    inset-block-start: 0;
    inset-inline-end: 0;
    height: 100dvh;
    width: min(86vw, 340px);
    background: #fff;
    border: 0;
    box-shadow: var(--hc-shadow-lg);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2, .7, .3, 1);
    z-index: 120;
    overflow-y: auto;
    padding: 68px 18px 28px;
  }
  /* الاتجاه فيزيائي في التحويلات: في RTL اللوحة على اليسار فعلياً */
  [dir="rtl"] .hc-nav { transform: translateX(-100%); }
  .hc-nav.is-open { transform: translateX(0); }
  .hc-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .hc-nav__list > li > a { padding: 13px 14px; border-radius: var(--hc-radius-sm); }
  .hc-nav__list > li > a::after { display: none; }
  .hc-nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-inline-start: 2px solid var(--hc-line);
    border-radius: 0;
    margin-inline-start: 14px;
    padding-block: 0;
  }
  .hc-nav__close {
    display: grid;
    position: absolute;
    inset-block-start: 16px;
    inset-inline-end: 16px;
  }
  .hc-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 10, 12, .48);
    z-index: 110;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
  }
  .hc-overlay.is-open { opacity: 1; visibility: visible; }
  .hc-search { order: 3; flex-basis: 100%; max-width: none; padding-block-end: 12px; }
  .hc-header__bar { flex-wrap: wrap; padding-block-start: 12px; }
  .hc-lang { display: none; }
}

@media (max-width: 720px) {
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products.columns-5,
  .woocommerce ul.products.columns-6,
  .hc-products { --hc-cols: 2; }
  .woocommerce ul.products, .hc-products { gap: 14px; }
  .hc-posts { grid-template-columns: 1fr; }
  .hc-steps { grid-template-columns: 1fr; }
  .hc-footer__top { grid-template-columns: 1fr; gap: 28px; }
  .hc-cats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hc-promo { padding: 36px 24px; }
  .hc-section { padding-block: 36px; }
  .hc-card__body { padding: 12px 12px 15px; }
  .hc-section__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hc-brand__tag { display: none; }
}

@media (max-width: 420px) {
  .hc-features { grid-template-columns: 1fr; }
  .hc-brand__name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* الطباعة */
@media print {
  .hc-header, .hc-footer, .hc-whatsapp, .hc-announce { display: none !important; }
}
