/* ============================================
   Mecaprograms shop — forklift category
   Layered on top of blog.css / contact-us.css
   ============================================ */

.shop-hero {
  min-height: min(54vh, 560px);
  padding-bottom: 3rem;
}

.shop-gradient {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shop-hero .hero-subtitle {
  max-width: 780px;
}

.shop-hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  color: var(--text-dimmed, var(--silver));
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.shop-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.shop-hero-meta i {
  color: var(--fire-red);
}

/* ---------- catalog ---------- */

.shop-section {
  padding: 2rem 2rem 5rem;
  position: relative;
  scroll-margin-top: 96px;
}

.shop-container {
  max-width: 1400px;
  margin: 0 auto;
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.8125rem;
  color: var(--text-dimmed, var(--silver));
}

.shop-breadcrumb a {
  color: var(--mercury);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.shop-breadcrumb a:hover {
  color: var(--fire-red);
}

.shop-breadcrumb i {
  font-size: 0.6rem;
  opacity: 0.5;
}

.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.shop-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.shop-lead {
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.shop-stats {
  display: flex;
  gap: 2.5rem;
}

.shop-stat strong {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.shop-stat span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dimmed, var(--silver));
}

/* ---------- toolbar ---------- */

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  margin-bottom: 1.25rem;
}

.shop-search {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
}

.shop-search i {
  position: absolute;
  left: 1rem;
  color: var(--text-dimmed, var(--silver));
  font-size: 0.875rem;
  pointer-events: none;
}

.shop-search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.shop-search input::placeholder {
  color: var(--text-dimmed, var(--silver));
}

.shop-search input:focus {
  border-color: rgba(255, 0, 51, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.12);
}

.shop-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.8rem 2.4rem 0.8rem 1rem;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238e8e8e' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.6rem;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s ease;
}

.shop-select:focus {
  border-color: rgba(255, 0, 51, 0.5);
}

.shop-select option {
  background: #141414;
  color: #e8e8e8;
}

.shop-result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.shop-result {
  font-size: 0.8125rem;
  color: var(--text-dimmed, var(--silver));
}

.shop-result strong {
  color: var(--text-primary);
}

.shop-reset {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--fire-red);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.shop-reset.is-visible {
  display: inline-flex;
}

.shop-reset:hover {
  text-decoration: underline;
}

/* ---------- product grid ---------- */

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1.75rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-smooth), border-color 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 0, 51, 0.35);
  box-shadow: var(--glow-red), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.product-card.is-hidden {
  display: none;
}

.product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 230px;
  padding: 1.35rem;
  background: radial-gradient(circle at 50% 48%, rgba(255, 0, 51, 0.16), transparent 68%);
  border-bottom: 1px solid var(--card-border);
  overflow: hidden;
}

.product-media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-media img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s var(--ease-smooth);
}

.product-card:hover .product-media img {
  transform: scale(1.06);
}

.product-flag,
.product-discount {
  position: absolute;
  top: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
}

.product-flag {
  left: 0.85rem;
  background: rgba(10, 10, 10, 0.82);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.product-discount {
  right: 0.85rem;
  background: var(--gradient-fire);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 0, 51, 0.35);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.25rem 1.4rem;
}

.product-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fire-red);
  margin-bottom: 0.5rem;
  min-height: 18px;
}

.product-brand-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  padding: 1px;
  flex: 0 0 auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.product-brand-name {
  display: inline;
}

/* Brand filter - Metro tile view, horizontal (category/shop pages) */
.shop-brand-strip--above-footer { margin-top: 1.25rem; }
.shop-brand-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(118px, 132px);
  grid-template-rows: 1fr;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 2px 2px 0.6rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.shop-brand-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 104px;
  width: 100%;
  padding: 0.85rem 0.65rem;
  border: 1px solid var(--card-border, rgba(148, 163, 184, 0.18));
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  color: var(--text-primary, inherit);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.shop-brand-chip::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  width: auto;
  bottom: auto;
  background: transparent;
  transition: background 0.18s ease;
}
.shop-brand-chip:hover {
  border-color: rgba(249, 115, 22, 0.42);
  background: linear-gradient(180deg, rgba(249,115,22,0.08), rgba(255,255,255,0.02));
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}
.shop-brand-chip:focus-visible {
  outline: 2px solid rgba(249,115,22,0.55);
  outline-offset: 2px;
}
.shop-brand-chip.is-active {
  border-color: rgba(249, 115, 22, 0.55);
  background: linear-gradient(180deg, rgba(249,115,22,0.14), rgba(249,115,22,0.05));
  color: var(--text-primary, inherit);
  box-shadow: 0 0 0 1px rgba(249,115,22,0.10) inset, 0 10px 24px rgba(249,115,22,0.08);
}
.shop-brand-chip.is-active::before {
  background: var(--fire-red, #f97316);
}
.shop-brand-chip img {
  width: 52px;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 6px;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.shop-brand-chip span {
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100%;
}
@media (max-width: 640px) {
  .shop-brand-strip { grid-auto-columns: minmax(96px, 108px); gap: 0.55rem; }
  .shop-brand-chip { min-height: 92px; padding: 0.7rem 0.5rem; border-radius: 12px; }
  .shop-brand-chip img { width: 44px; height: 44px; padding: 5px; border-radius: 8px; }
}

.product-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-title a:hover {
  color: var(--fire-red);
}

.product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.6875rem;
  color: var(--text-dimmed, var(--silver));
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-meta i {
  font-size: 0.65rem;
  opacity: 0.8;
}

.product-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--card-border);
}

.product-price small {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dimmed, var(--silver));
  margin-bottom: 0.15rem;
}

.price-now {
  display: block;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.price-old {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-dimmed, var(--silver));
  text-decoration: line-through;
}

.product-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.05rem;
  background: var(--gradient-fire);
  border-radius: 100px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(255, 0, 51, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 0, 51, 0.45);
}

.product-btn i {
  font-size: 0.65rem;
}

/* ---------- pagination / empty / note ---------- */

.shop-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

.shop-pagination {
  --shop-page-accent: #F57814;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.shop-pagination[hidden] {
  display: none;
}

.shop-page-btn,
.shop-page-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0 2px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.shop-page-btn:hover,
.shop-page-btn:focus-visible,
.shop-page-arrow:not(:disabled):hover,
.shop-page-arrow:not(:disabled):focus-visible {
  background: var(--shop-page-accent);
  border-color: var(--shop-page-accent);
  color: #fff;
  outline: none;
}

.shop-page-btn.is-active {
  background: var(--shop-page-accent);
  border-color: var(--shop-page-accent);
  color: #fff;
  font-weight: 700;
  cursor: default;
}

.shop-page-arrow {
  color: var(--shop-page-accent);
}

.shop-page-arrow svg {
  display: block;
  width: 12px;
  height: 18px;
}

.shop-page-arrow path {
  fill: currentColor;
}

.shop-page-arrow:disabled {
  color: var(--text-muted);
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-page-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 0.45rem;
  color: var(--text-muted);
}

.shop-page-dots span {
  font-weight: 700;
  line-height: 1;
}

.shop-empty {
  padding: 4rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--card-border);
  border-radius: 20px;
  color: var(--text-muted);
}

.shop-empty i {
  display: block;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--fire-red);
  opacity: 0.7;
}

.shop-empty strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.shop-empty[hidden] {
  display: none;
}

.shop-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.65;
}

.shop-note i {
  margin-top: 0.15rem;
  color: var(--fire-red);
}

.shop-note a {
  color: var(--fire-red);
  text-decoration: none;
  font-weight: 600;
}

.shop-note a:hover {
  text-decoration: underline;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .shop-stats {
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .shop-section {
    padding: 1rem 1.25rem 3.5rem;
  }

  .shop-head {
    gap: 1.25rem;
  }

  .shop-stats {
    width: 100%;
    justify-content: space-between;
    padding: 1rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
  }

  .shop-stat strong {
    font-size: 1.4rem;
  }

  .shop-toolbar {
    padding: 0.85rem;
  }

  .shop-search {
    flex-basis: 100%;
  }

  .shop-select {
    flex: 1;
    min-width: 0;
  }

  .product-media {
    height: 210px;
  }

  .shop-grid {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .shop-hero {
    padding-top: 6rem;
  }

  .shop-select {
    flex-basis: 100%;
  }

  .shop-stats {
    gap: 1rem;
  }

  .product-media {
    height: 190px;
  }

  .product-body {
    padding: 1.1rem 1.1rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-media img,
  .product-btn,
  .shop-page-btn,
  .shop-page-arrow {
    transition: none;
  }
}

/* Language switcher + RTL (shop) */
.lang-switch { display: inline-flex; align-items: center; gap: 0.25rem; margin-inline-start: 0.35rem; }
.lang-switch a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 30px; padding: 0 0.55rem;
  border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); color: var(--text-dimmed, #94a3b8);
  text-decoration: none; font-size: 0.72rem; font-weight: 700; letter-spacing: .04em;
}
.lang-switch a:hover { color: var(--text-primary, #f8fafc); border-color: rgba(255,0,51,0.35); }
.lang-switch a[aria-current="true"] { background: rgba(255,0,51,0.14); color: #fff; border-color: rgba(255,0,51,0.4); }
html[dir="rtl"] body { font-family: "Noto Sans Arabic", Inter, system-ui, sans-serif; }
html[dir="rtl"] .shop-breadcrumb i { transform: scaleX(-1); }
html[dir="rtl"] .shop-search input { padding-inline-start: 2.5rem; }
html[dir="rtl"] .shop-note, html[dir="rtl"] .product-card, html[dir="rtl"] .shop-result-row { text-align: right; }
html[dir="rtl"] .product-footer { direction: rtl; }
html[dir="rtl"] .mc-cart-drawer { right: auto; left: 0; border-left: 0; border-right: 1px solid rgba(148,163,184,.18); transform: translateX(-102%); }
html[dir="rtl"] .mc-cart-drawer.is-open { transform: translateX(0); }
@media (max-width: 768px) { .lang-switch { margin-inline-start: 0; } }

/* Mecaprograms-style rich footer */
.footer-brand p{margin:.5rem 0 1rem;font-size:.9rem;line-height:1.6}
.footer-contact-list li a{display:inline-flex;align-items:center;gap:.5rem}
.footer-social{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:.25rem}
.footer-social a{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:var(--mercury,#d1d5db);text-decoration:none;transition:all .25s ease}
.footer-social a:hover{color:#fff;background:var(--fire-red,#ff2a2a);border-color:var(--fire-red,#ff2a2a);transform:translateY(-2px)}
.footer-payments{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem;list-style:none;margin:1rem 0 0;padding:0}
.footer-payments img{height:22px;width:auto;max-width:64px;object-fit:contain;filter:brightness(1.05);opacity:.92}
.footer.footer--meca{background-color:#070a12;background-size:cover;background-position:center}
@media (min-width:1024px){.footer.footer--meca{background-position:right top}}
html[dir="rtl"] .footer-contact-list li a{flex-direction:row-reverse}

.product-brand-link { text-decoration: none; color: inherit; }
.product-brand-link:hover .product-brand-name { color: var(--fire-red, #f97316); }
.meca-auth-register { font-weight: 700; }
/* Imported social SVG icons from mecaprograms.com */
.footer-social a img{width:26px;height:26px;display:block;opacity:.95;transition:opacity .25s ease}
.footer-social a:hover img{opacity:1}
