/* ---------- Shop / filters ---------- */
.shop { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.filters {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filters__head h3 { font-size: 1.05rem; margin: 0; }
.filter-clear { border: 0; background: transparent; color: var(--accent); font-weight: 700; font-size: 0.85rem; padding: 4px; }
.filter-clear:hover { text-decoration: underline; }
.filter-group { padding-block: 16px; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; padding-bottom: 0; }
.filter-group__title {
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-50); margin-bottom: 12px;
}
html[lang="ar"] .filter-group__title { letter-spacing: 0; text-transform: none; }
.filter-group label {
  display: flex; align-items: center; gap: 10px; padding: 7px 0;
  font-size: 0.93rem; color: var(--ink-70); cursor: pointer;
  transition: color var(--t-fast);
}
.filter-group label:hover { color: var(--accent); }
.filter-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; flex: none; }
.filter-group__count { margin-inline-start: auto; font-size: 0.78rem; color: var(--ink-50); }

.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-bottom: 22px; padding: 14px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.toolbar__count { font-weight: 700; color: var(--brand); }
.toolbar__right { display: flex; gap: 10px; margin-inline-start: auto; flex-wrap: wrap; align-items: center; }

.field {
  display: flex; align-items: center; gap: 10px; background: var(--tint-50);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 10px 18px; flex: 1; min-width: 220px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(212, 40, 88, 0.1); }
.field svg { width: 19px; height: 19px; color: var(--accent); flex: none; }
.field input, .field select {
  border: 0; background: transparent; outline: 0; width: 100%;
  font-size: 0.95rem; font-weight: 600; color: var(--ink); min-width: 0;
}
.field select { cursor: pointer; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip-btn {
  border: 1px solid var(--tint-200); background: var(--white); color: var(--ink-70);
  border-radius: var(--radius-pill); padding: 8px 16px;
  font-size: 0.87rem; font-weight: 600; transition: all var(--t-fast);
}
.chip-btn:hover { border-color: var(--tint-300); color: var(--brand); }
.chip-btn.is-active { background: var(--grad-brand); color: var(--white); border-color: transparent; box-shadow: var(--shadow-brand); }

.view-toggle { display: flex; gap: 4px; background: var(--tint-50); border-radius: var(--radius-pill); padding: 4px; }
.view-toggle button {
  width: 36px; height: 32px; border: 0; background: transparent;
  border-radius: var(--radius-pill); color: var(--ink-50);
  display: grid; place-items: center; transition: background var(--t-fast), color var(--t-fast);
}
.view-toggle button.is-active { background: var(--white); color: var(--accent); box-shadow: var(--shadow-sm); }
.view-toggle svg { width: 18px; height: 18px; }

.view-4 { grid-template-columns: repeat(3, 1fr); }
.view-3 { grid-template-columns: repeat(2, 1fr); }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg { width: 68px; height: 68px; color: var(--tint-200); margin: 0 auto 18px; }
.empty-state h3 { margin-bottom: 0.3em; }
.empty-state p { color: var(--ink-50); }

/* ---------- Brands ---------- */
.brand-card {
  display: flex; align-items: center; gap: 18px; padding: 24px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--tint-200); color: var(--ink); }
.brand-logo {
  width: 78px; height: 78px; flex: none; border-radius: 20px;
  background: var(--grad-brand-soft); border: 1px solid var(--tint-200);
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  color: var(--brand); text-align: center; line-height: 1.2; overflow: hidden;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.brand-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.brand-card p { margin: 0; font-size: 0.88rem; color: var(--ink-50); }

/* ---------- Blog ---------- */
.post-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
}
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--tint-200); color: var(--ink); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint-50); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 0.8rem; color: var(--ink-50); }
.post-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-card__meta svg { width: 14px; height: 14px; color: var(--tint-400); }
.post-card h3 { margin: 0; font-size: 1.12rem; }
.post-card p { margin: 0; font-size: 0.92rem; color: var(--ink-50); flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.post-card__more svg { width: 16px; height: 16px; transition: transform var(--t-fast); }
html[dir="ltr"] .post-card__more svg { transform: scaleX(-1); }
.post-card:hover .post-card__more svg { transform: translateX(5px); }
html[dir="rtl"] .post-card__more svg { transform: scaleX(-1); }
html[dir="rtl"] .post-card:hover .post-card__more svg { transform: translateX(-5px) scaleX(-1); }

.article-body { max-width: 780px; margin-inline: auto; font-size: 1.05rem; }
.article-body h2 { margin-top: 2rem; font-size: 1.5rem; }
.article-body h3 { margin-top: 1.5rem; }
.article-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.article-body ul, .article-body ol { padding-inline-start: 1.4em; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote {
  margin: 1.75rem 0; padding: 20px 26px; border-inline-start: 4px solid var(--accent);
  background: var(--tint-50); border-radius: var(--radius); color: var(--brand); font-weight: 600;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.94rem; }
.article-body th, .article-body td { padding: 12px 14px; border: 1px solid var(--line); text-align: start; }
.article-body th { background: var(--tint-50); color: var(--ink); font-weight: 700; }

.author-box {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  background: var(--tint-50); border: 1px solid var(--tint-200); border-radius: var(--radius-lg);
}
.author-box__avatar {
  width: 60px; height: 60px; flex: none; border-radius: 50%;
  background: var(--grad-brand); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 1.3rem;
}
.author-box b { display: block; color: var(--ink); }
.author-box span { font-size: 0.86rem; color: var(--ink-50); }

/* ---------- Timeline / values ---------- */
.timeline { position: relative; padding-inline-start: 40px; }
.timeline::before {
  content: ""; position: absolute; inset-block: 8px; inset-inline-start: 13px;
  width: 2px; background: var(--grad-brand); opacity: 0.35;
}
.timeline__item { position: relative; padding-bottom: 30px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; inset-inline-start: -33px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--white);
  border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--tint-100);
}
.timeline__item h3 { margin-bottom: 0.2em; }
.timeline__item p { margin: 0; }

.value-card {
  text-align: center; padding: 30px 22px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.value-card .card__icon { margin-inline: auto; }
.value-card h3 { margin-bottom: 0.2em; }
.value-card p { margin: 0; font-size: 0.9rem; color: var(--ink-50); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split__media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--grad-brand-soft); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.form-group .req { color: var(--accent); }
.input {
  width: 100%; padding: 14px 18px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--tint-50);
  font-size: 0.96rem; font-weight: 600; color: var(--ink); outline: 0;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.input::placeholder { color: var(--placeholder); font-weight: 500; }
.input:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px rgba(212, 40, 88, 0.1); }
.input[aria-invalid="true"] { border-color: #C42E4E; background: #FEF5F7; }
textarea.input { min-height: 140px; resize: vertical; }
select.input { cursor: pointer; }
.input[type="file"] { padding: 12px; cursor: pointer; font-weight: 500; }
.field-error { font-size: 0.82rem; color: #C42E4E; font-weight: 600; display: none; }
.field-error.is-visible { display: block; }
.help-text { font-size: 0.82rem; color: var(--ink-50); }

.alert {
  display: none; align-items: flex-start; gap: 12px; padding: 16px 20px;
  border-radius: var(--radius); font-weight: 600; margin-bottom: 18px;
}
.alert.is-visible { display: flex; animation: fadeUp 0.4s var(--ease); }
.alert--ok { background: #E7F7F0; color: #14664A; border: 1px solid #B6E4D2; }
.alert--err { background: #FDECEF; color: #99203C; border: 1px solid #F6C6D0; }
.alert svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }

/* ---------- Info cards ---------- */
.info-card {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: var(--tint-50); border: 1px solid var(--tint-200);
  transition: transform var(--t), box-shadow var(--t);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.info-card .card__icon { margin: 0; width: 48px; height: 48px; border-radius: 14px; flex: none; }
.info-card .card__icon svg { width: 22px; height: 22px; }
.info-card h3 { font-size: 1rem; margin-bottom: 2px; }
.info-card p, .info-card a { margin: 0; font-size: 0.94rem; color: var(--ink-70); display: block; }
.info-card a:hover { color: var(--accent); }
.info-card .ltr { direction: ltr; text-align: start; unicode-bidi: embed; }

/* ---------- Floating actions ---------- */
.fab-stack {
  position: fixed; inset-block-end: 20px; inset-inline-start: 20px; z-index: 250;
  display: flex; flex-direction: column-reverse; gap: 12px;
}
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: var(--white); box-shadow: var(--shadow-lg);
  transition: transform var(--t), width var(--t); position: relative;
}
.fab svg { width: 28px; height: 28px; }
.fab:hover { transform: scale(1.1) translateY(-2px); color: var(--white); }
.fab--wa { background: #25D366; }
.fab--call { background: var(--grad-brand); }
.fab--top {
  background: var(--white); color: var(--brand); border: 1px solid var(--line);
  width: 44px; height: 44px; opacity: 0; visibility: hidden;
}
.fab--top svg { width: 20px; height: 20px; }
.fab--top.is-visible { opacity: 1; visibility: visible; }
.fab::after {
  content: attr(data-label); position: absolute; inset-inline-start: calc(100% + 12px);
  top: 50%; transform: translateY(-50%) scale(0.9);
  background: var(--brand-900); color: var(--white);
  font-size: 0.8rem; font-weight: 700; padding: 7px 13px;
  border-radius: var(--radius-pill); white-space: nowrap;
  opacity: 0; visibility: hidden; transition: all var(--t-fast); pointer-events: none;
}
.fab:hover::after { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
html[dir="ltr"] .fab::after { inset-inline-start: auto; inset-inline-end: calc(100% + 12px); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem); background: var(--grad-brand);
  color: var(--white); text-align: center; box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.09); top: -140px; inset-inline-end: -100px;
}
.cta-band::after {
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.07); bottom: -120px; inset-inline-start: -80px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--tint-100); max-width: 52ch; margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-900); color: var(--tint-100); padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 3vw, 2.5rem); }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1.1rem; position: relative; padding-bottom: 12px; }
.footer h4::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 38px; height: 3px; border-radius: 3px; background: var(--grad-text);
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1.1rem; }
.footer__brand .brand__logo { background: var(--white); border-radius: 14px; padding: 5px; }
.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__tag { color: var(--tint-300); }
.footer p { color: var(--tint-200); font-size: 0.93rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--tint-200); font-size: 0.93rem; }
.footer a:hover { color: var(--white); padding-inline-start: 5px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; color: var(--tint-400); flex: none; margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 1.25rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); color: var(--white);
  transition: background var(--t-fast), transform var(--t-fast), color var(--t-fast);
}
.socials a:hover { background: var(--accent); transform: translateY(-3px); padding: 0; }
.socials svg { width: 19px; height: 19px; }
.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem); padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  justify-content: space-between; font-size: 0.88rem; color: var(--tint-300);
}

/* ---------- Animations ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal="right"] { transform: translateY(34px) scale(0.98); }
[data-reveal="left"] { transform: translateY(34px) scale(0.98); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][style*="--d"] { transition-delay: var(--d, 0ms); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: grid; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .view-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; width: 100%; max-width: 480px; margin-inline: auto; }
  .hero__card { inset-inline-start: 16px; bottom: 16px; padding: 12px 16px; max-width: calc(100% - 32px); }
  .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .navbar { gap: 10px; }
  .nav-tools { gap: 6px; }
  .brand { gap: 9px; min-width: 0; }
.brand__logo { width: 40px; height: 40px; }
.brand__logo img { width: 100%; height: 100%; object-fit: contain; }
  .brand__text { min-width: 0; }
  .brand__name { font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand__tag { display: none; }
  .icon-btn, .lang-toggle { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .lang-toggle span[data-lang-label] { display: none; }
  .topbar__inner { justify-content: center; }
  .topbar__list--social { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .view-4, .view-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .toolbar { padding: 12px 14px; }
  .toolbar__right { width: 100%; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .brand-card { flex-direction: column; text-align: center; }
  .fab { width: 52px; height: 52px; }
  .fab svg { width: 25px; height: 25px; }
  .fab-stack { inset-block-end: 16px; inset-inline-start: 16px; }
  .cta-band { border-radius: var(--radius-lg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
