/* Madar look for Salla's Imtiaz theme — CSS only (paste in «الكود المخصص → CSS»).
 * Re-skins Imtiaz's OWN home blocks (products, sliders, banners, features, blog, testimonials) + header/footer,
 * so every block stays an editable component in «تخصيص». Remove this CSS to go back to the plain Imtiaz look.
 * Look source: tires-store (app/styles/04-components/tire-components.scss + tc-sections.scss). */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Archivo:wght@700;800;900&display=swap');

:root {
  --color-primary: #ffb71b;
  --color-primary-dark: #e5a200;
  --color-primary-light: #ffd36b;
  --color-primary-reverse: #221800;
  --brand-primary: #ffb71b; /* read by the elements made with «ميز متجرك» */
  --brand-primary-light: #ffd36b;
  --brand-primary-pale: #fff5df;
  --mz-gold: #ffb71b;
  --mz-gold-2: #e5a200;
  --mz-gold-soft: #fff1d1;
  --mz-ink: #1d2023;
  --mz-slate: #4a4f54;
  --mz-muted: #767b80;
  --mz-line: #e8e7e3;
  --mz-bg: #f5f4f0;
  --mz-r: 14px;
  --mz-ar: 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --mz-en: 'Archivo', Arial, sans-serif;
}

/* ---------- type ---------- */
body, body *:not(i):not([class*='sicon']):not(svg):not(path) { font-family: var(--mz-ar); }
body { color: var(--mz-ink); }
.s-block__title h2, .s-slider-block__title h2, .s-block h2 { font-weight: 800; letter-spacing: -0.01em; color: var(--mz-ink); }

/* ---------- section rhythm + titles (gold bar = the design's kicker) ---------- */
body.index .s-block { margin-block: 0; }
body.index .s-block:not(.s-block--full-bg):not(.s-block--fixed-banner):not(.s-block--default-home-slider) { padding-block: 28px; }
.s-block__title, .s-slider-block__title { align-items: flex-end; margin-bottom: 26px; }
.s-block__title h2, .s-slider-block__title h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; position: relative; }
.s-block__title h2::before, .s-slider-block__title h2::before {
  content: ''; display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--mz-gold); margin-bottom: 12px;
}
.s-block__display-all, .s-slider-block__display-all {
  font-weight: 600; font-size: 14px; color: var(--mz-ink); border-bottom: 2px solid var(--mz-gold); padding-bottom: 3px; line-height: 1.4;
  transition: color .2s, border-color .2s;
}
.s-block__display-all:hover, .s-slider-block__display-all:hover { color: var(--mz-gold-2); }

/* slider arrows: the design's square buttons */
.s-slider-nav-arrow, .s-slider-block__title-nav button {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--mz-line); background: #fff; color: var(--mz-ink);
  display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, border-color .2s;
}
.s-slider-nav-arrow:hover, .s-slider-block__title-nav button:hover { background: var(--mz-ink); border-color: var(--mz-ink); color: #fff; }
.s-slider-nav-arrow:hover svg, .s-slider-nav-arrow:hover path { fill: #fff; stroke: #fff; }
.swiper-pagination-bullet { background: var(--mz-line); opacity: 1; }
.swiper-pagination-bullet-active { background: var(--mz-gold); }

/* ---------- product cards ---------- */
.s-product-card-entry {
  background: #fff; border: 1px solid var(--mz-line); border-radius: var(--mz-r); overflow: hidden; box-shadow: none; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.s-product-card-entry:hover { border-color: var(--mz-gold); transform: translateY(-3px); box-shadow: 0 16px 34px -20px rgba(29, 32, 35, .4); }
.s-product-card-image { position: relative; overflow: hidden; background: var(--mz-bg); aspect-ratio: 1 / 0.78; }
.s-product-card-image > a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.s-product-card-image-cover, .s-product-card-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; }
.triangle-overlay { display: none !important; }
salla-button.s-product-card-wishlist-btn { position: absolute !important; top: 10px !important; bottom: auto !important; inset-inline-end: 10px !important; inset-inline-start: auto !important; margin: 0 !important; transform: none !important; z-index: 3; width: 36px; height: 36px; opacity: 1 !important; visibility: visible !important; }
button.s-product-card-wishlist-btn { position: static !important; width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid var(--mz-line); box-shadow: none; display: inline-flex; align-items: center; justify-content: center; }
.s-product-card-wishlist-btn i { color: var(--mz-ink); font-size: 16px; line-height: 1; }
.s-product-card-wishlist-btn:hover i, .s-product-card-wishlist-btn.is-added i { color: #d92d20; }
.s-product-card-content { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; gap: 4px; }
.s-product-card-content-main { order: 1; }
.s-product-card-content-sub { order: 2; margin-top: 10px; }
.s-product-card-content-footer { order: 3; margin-top: auto; padding-top: 14px; }
.s-product-card-content-title, .s-product-card-content-title a { font-size: 19px; font-weight: 800; line-height: 1.4; color: var(--mz-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-product-card-content-title a:hover { color: var(--mz-gold-2); }
.s-product-card-content-subtitle { font-size: 13.5px; color: var(--mz-muted); margin: 2px 0 0; }
.s-product-card-price, .s-product-card-sale-price { font-family: var(--mz-en) !important; font-weight: 900; font-size: 28px; line-height: 1; letter-spacing: -0.01em; color: var(--mz-ink); }
.s-product-card-price .sicon-sar, .s-product-card-sale-price .sicon-sar { font-size: 16px; font-weight: 600; margin-inline-start: 3px; }
.s-product-card-starting-price, .s-product-card-sale-end, .s-product-card-content-sub s, .s-product-card-content-sub del { color: var(--mz-muted); font-size: 13px; }
.s-product-card-promotion-title, .s-product-card-badge {
  background: var(--mz-gold) !important; color: #221800 !important; border-radius: 6px; font-weight: 700; font-size: 11px; padding: 3px 9px; line-height: 1.6;
}
/* grid cards (fixed products): dark add button, soft glow behind the tire */
.fixed-products .s-product-card-entry { background: linear-gradient(#fffaf0, #fff 60%); }
.fixed-products .s-product-card-image { background: radial-gradient(at 50% 85%, #ecebe6, transparent 65%); }
.s-product-card-entry .s-button-element {
  background: var(--mz-ink); color: #fff; border: 0; border-radius: 12px; font-weight: 600; font-size: 13px; min-height: 42px; width: 100%; transition: background .2s, color .2s;
}
.s-product-card-entry .s-button-element:hover { background: var(--mz-gold); color: #221800; }
/* slider cards: the design's cream «details» button + highlighted first card */
.s-products-slider-wrapper .s-product-card-image { background: var(--mz-bg); aspect-ratio: 1 / 0.76; }
.s-products-slider-wrapper .s-product-card-entry .s-button-element {
  background: var(--mz-gold-soft); color: #5a4100; border: 1px solid #f3d995; min-height: 46px; font-size: 14px;
}
.s-products-slider-wrapper .s-product-card-entry .s-button-element:hover { background: var(--mz-gold); border-color: var(--mz-gold); color: #221800; }
.s-products-slider-wrapper .swiper-slide:first-child .s-product-card-entry { border: 2px solid var(--mz-gold); }
.s-products-slider-wrapper .swiper-slide:first-child .s-product-card-image { background: var(--mz-gold-soft); }
.s-product-card-out-of-stock .s-product-card-image-cover { opacity: .55; }

/* ---------- banners ---------- */
.banner--fixed, .banner-entry, .banner-entry a, .s-block--banners a { border-radius: 18px; overflow: hidden; display: block; }
.banner--fixed img, .banner-entry img { border-radius: 18px; transition: transform .5s; }
.banner-entry:hover img, .banner--fixed:hover img { transform: scale(1.03); }
.s-block--fixed-banner { padding-block: 22px; }

/* double banner (info blocks): one dark card, one light card — the design's .dbl */
.info-block__list { display: grid !important; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-block { border-radius: var(--mz-r) !important; overflow: hidden; min-height: 300px; display: flex !important; background: var(--mz-bg) !important; color: var(--mz-ink); box-shadow: none !important; border: 0 !important; }
.info-block:first-child { background: var(--mz-ink) !important; color: #fff; }
.info-block__content { padding: 34px 36px; display: flex; align-items: center; flex: 1 1 55%; }
.info-block h2 { font-size: 28px !important; font-weight: 800; line-height: 1.2; margin-bottom: 10px; color: inherit; }
.info-block p { font-size: 15px; color: inherit !important; opacity: .75; margin-bottom: 20px; }
.info-block .btn { background: var(--mz-ink) !important; color: #fff !important; border-radius: 12px; height: 46px; width: auto !important; padding: 0 26px; font-weight: 600; display: inline-flex; align-items: center; }
.info-block:first-child .btn { background: var(--mz-gold) !important; color: #221800 !important; }
.info-block__img { flex: 1 1 45%; }
@media (max-width: 767px) { .info-block__list { grid-template-columns: 1fr; } .info-block { flex-direction: column-reverse; } .info-block__content { padding: 24px; } }

/* ---------- features: the design's strip (no cards, thin rules, dividers) ---------- */
body.index .s-block--features.container { padding-inline: 10px !important; border-block: 1px solid var(--mz-line); margin-block: 24px; padding-block: 0 !important; }
.s-block--features > div { gap: 0 !important; }
.s-block--features__item { background: transparent !important; border: 0 !important; border-radius: 0 !important; display: flex !important; flex-direction: row !important; align-items: center; gap: 16px; padding: 26px 18px !important; text-align: start !important; box-shadow: none !important; }
.s-block--features__item + .s-block--features__item { border-inline-start: 1px solid var(--mz-line) !important; }
.s-block--features__item .feature-icon { width: auto; height: auto; background: transparent !important; color: var(--mz-gold-2) !important; font-size: 28px; flex: none; margin: 0 !important; }
.s-block--features__item h4 { font-weight: 800; font-size: 15px; margin: 0; }
.s-block--features__item p { font-size: 13px; color: var(--mz-muted); margin: 2px 0 0; }
@media (max-width: 767px) { .s-block--features__item { flex-direction: column !important; text-align: center !important; padding: 16px 8px !important; } .s-block--features__item + .s-block--features__item { border-inline-start: 0 !important; } }

/* ---------- category cards (home «الأقسام الرئيسية») with 01 02 03 counters ---------- */
.s-block--categories .s-slider-swiper-wrapper { counter-reset: mzcat; }
.s-block--categories .swiper-slide { counter-increment: mzcat; }
.slide--cat-entry {
  position: relative; display: grid !important; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: center; background: #fff; border: 1px solid var(--mz-line);
  border-radius: var(--mz-r); padding: 22px 22px 20px; text-align: start; min-height: 130px; box-shadow: none; transition: border-color .2s, transform .2s;
}
.slide--cat-entry:hover { border-color: var(--mz-gold); transform: translateY(-3px); }
.slide--cat-entry::before { content: counter(mzcat, decimal-leading-zero); position: absolute; top: 14px; inset-inline-end: 18px; font-family: var(--mz-en); font-size: 12px; font-weight: 700; color: #9a9ea2; }
.slide--cat-entry i { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 16px; background: var(--mz-bg); color: var(--mz-ink); font-size: 26px; display: inline-flex; align-items: center; justify-content: center; margin: 0 !important; }
.slide--cat-entry h4 { font-size: 16px; font-weight: 800; margin: 0; align-self: end; }
.slide--cat-entry span { font-size: 13px; color: var(--mz-muted); align-self: start; }
.s-block--categories .swiper-slide:first-child .slide--cat-entry { background: var(--mz-gold-soft); border-color: var(--mz-gold); }
.s-block--categories .swiper-slide:first-child .slide--cat-entry i { background: var(--mz-gold); }

/* ---------- FAQ ---------- */
.s-block--faqs.s-block--full-bg { background: #fff !important; }
.faqs-list { counter-reset: mzfaq; max-width: 880px; margin-inline: auto; }
.faqs-list > div { counter-increment: mzfaq; }
.faqs-list__item { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--mz-line) !important; border-radius: 0 !important; box-shadow: none !important; }
.faqs-list__item label { display: flex; align-items: center; gap: 16px; padding: 22px 0 !important; font-size: 15.5px; font-weight: 500; color: var(--mz-ink); cursor: pointer; }
.faqs-list__item label::before { content: counter(mzfaq, decimal-leading-zero); font-family: var(--mz-en); font-size: 13px; font-weight: 700; color: #9a9ea2; flex: none; }
.faqs-list__item .open-badge { margin-inline-start: auto; color: var(--mz-gold-2); background: transparent !important; }
.faq-answer { font-size: 14.5px; color: var(--mz-slate); }

/* ---------- reviews (testimonials) + blog + stats ---------- */
body.index .s-block--testimonials { background: #fbfaf7 !important; border-block: 1px solid var(--mz-line); }
.s-block--testimonials .swiper-slide > div { background: #fff !important; border: 1px solid var(--mz-line); border-radius: var(--mz-r); box-shadow: none !important; padding: 26px !important; }
.s-block--testimonials .swiper-slide > div:hover { transform: none; border-color: var(--mz-gold); }
.s-block--testimonials .s-rating-stars-selected svg, .s-block--testimonials .sicon-star { color: var(--mz-gold) !important; fill: var(--mz-gold) !important; }
.s-block--testimonials .sicon-quote-open { color: var(--mz-gold-soft) !important; }
.s-block--testimonials p { font-size: 15px; color: var(--mz-slate) !important; line-height: 1.8; }
.s-block--testimonials h4 { font-weight: 800; }
.s-block--blog .swiper-slide > div { background: #fff; border: 1px solid var(--mz-line) !important; border-radius: var(--mz-r); box-shadow: none !important; padding: 0 !important; overflow: hidden; }
.s-block--blog .swiper-slide > div > div:first-child { height: 190px !important; border-radius: 0; background: var(--mz-bg); }
.s-block--blog .swiper-slide h2, .s-block--blog .swiper-slide p, .s-block--blog .swiper-slide > div > div:last-child { padding-inline: 18px; }
.s-block--blog .swiper-slide h2 a { font-size: 16px; font-weight: 800; color: var(--mz-ink); }
.s-block--blog .swiper-slide p { padding-bottom: 18px; }
.statistics-list__item span[class*='sicon'] { background: var(--mz-gold) !important; color: var(--mz-ink) !important; }
.statistics-list__item strong { font-family: var(--mz-en); font-weight: 900; color: var(--mz-ink); }

/* ---------- bands, buttons, inputs ---------- */
.s-block--full-bg, .bg-gray-50 { background: var(--mz-bg); }
body.index .s-block--full-bg { padding-block: 56px; }
.btn--primary, .s-button-primary, .s-button-solid.s-button-primary { background: var(--mz-gold); color: var(--mz-ink); border-radius: 12px; font-weight: 600; border-color: var(--mz-gold); }
.btn--primary:hover, .s-button-primary:hover { background: var(--mz-gold-2); color: var(--mz-ink); }
input[type='text'], input[type='search'], input[type='email'], select, textarea, .form-input { border-radius: 12px; border-color: var(--mz-line); }
input:focus, select:focus, textarea:focus { border-color: var(--mz-gold) !important; box-shadow: 0 0 0 3px rgba(255, 183, 27, .25) !important; outline: 0; }

@media (max-width: 640px) {
  body.index .s-block:not(.s-block--full-bg):not(.s-block--fixed-banner):not(.s-block--default-home-slider) { padding-block: 18px; }
  .s-block__title h2, .s-slider-block__title h2 { font-size: 24px; }
  .s-product-card-content { padding: 14px; }
  .s-product-card-price, .s-product-card-sale-price { font-size: 22px; }
}

/* ---------- header: our layout (needs «الوضع الداكن للهيدر» OFF in theme settings) ---------- */
.store-header .top-nav { background: var(--mz-ink) !important; color: #e8e9ea; font-size: 13px; border: 0; }
.store-header .top-nav a, .store-header .top-nav button { color: #e8e9ea; }
.store-header .top-nav a:hover { color: var(--mz-gold); }
.store-header .main-nav-container, .store-header .main-nav-container .inner { background: #fcfbf7 !important; color: var(--mz-ink); border: 0; }
.store-header .main-nav-container { border-bottom: 1px solid var(--mz-line); }
.main-nav-container .sides-wrap { display: flex; align-items: center; gap: 20px; padding-block: 18px; }
.main-nav-container .right-side { display: flex; align-items: center; flex: 1; gap: 28px; }
.main-nav-container .right-side > .flex { margin: 0 !important; flex: 1; max-width: 640px; order: 2; }
.navbar-brand { order: 1; }
.navbar-brand img { max-height: 56px; width: auto; }
.search-bar { flex: 1; }
.search-bar .s-search-input { background: var(--mz-bg); border: 1px solid var(--mz-line); border-radius: 14px; height: 48px; color: var(--mz-ink); }
.search-bar .s-search-input::placeholder { color: var(--mz-muted); }
.search-bar .s-search-icon, .search-bar .s-search-icon svg { color: var(--mz-slate); fill: currentColor; }
.main-nav-container .left-side { display: flex; align-items: center; gap: 6px; }
.header-icon-button, .header-icon-button *, .s-cart-summary-wrapper, .s-cart-summary-content, .s-cart-summary-total { color: var(--mz-ink) !important; }
.header-icon-button:hover, .header-icon-button:hover * { color: var(--mz-gold-2) !important; }
.s-cart-summary-count { background: var(--mz-gold) !important; color: var(--mz-ink) !important; font-weight: 700; }
.humb-icon span { background: var(--mz-ink); }

/* the menu as a centred row under the header (desktop), like the design */
@media (min-width: 1024px) {
  .main-nav-container .humb.menu-trigger { display: none !important; }
  .store-header nav#side-panel, .store-header .side-panel {
    position: static !important; transform: none !important; inset: auto !important; width: 100% !important; max-width: none !important; height: auto !important;
    display: block !important; opacity: 1 !important; visibility: visible !important; background: transparent !important; box-shadow: none !important;
    border-top: 1px solid var(--mz-line); padding: 0 !important; overflow: visible !important; color: var(--mz-ink);
    pointer-events: auto !important; z-index: 40; /* Imtiaz sets none while the side panel is closed */
  }
  .store-header nav#side-panel *, .store-header .side-panel * { pointer-events: auto; }
  .store-header .side-panel > .flex.lg\:hidden, .store-header .side-panel .mobile-only { display: none !important; }
  .store-header .main-menu { display: flex !important; flex-direction: row !important; height: auto !important; max-height: none !important; overflow: visible !important; justify-content: center; align-items: center; gap: 34px; margin: 0; padding: 0; flex-wrap: wrap; }
  .store-header .main-menu > li { position: static; }
  .store-header .main-menu > li > a { display: inline-flex; padding: 14px 0; color: var(--mz-slate) !important; font-size: 14.5px; font-weight: 500; }
  .store-header .main-menu > li > a:hover { color: var(--mz-gold-2) !important; }
  .store-header .main-menu li.has-children { position: relative; }
  .store-header .main-menu li .sub-menu { display: none; position: absolute; inset-inline-start: 0; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--mz-line); border-radius: var(--mz-r); padding: 10px; z-index: 50; box-shadow: 0 18px 40px -20px rgba(29, 32, 35, .35); }
  .store-header .main-menu li:hover > .sub-menu, .store-header .main-menu li:focus-within > .sub-menu { display: block !important; visibility: visible !important; opacity: 1 !important; height: auto !important; max-height: none !important; overflow: visible !important; transform: none !important; }
  .store-header .main-menu li .sub-menu > div, .store-header .main-menu li .sub-menu ul { position: static !important; display: block; width: auto !important; max-width: none; height: auto !important; max-height: none !important; overflow: visible !important; margin: 0 !important; padding: 0; }
  .store-header .main-menu li .sub-menu li { display: block; width: 100%; }
  .store-header .main-menu li .sub-menu li a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--mz-ink) !important; font-size: 14px; white-space: nowrap; }
  .store-header .main-menu li .sub-menu li a:hover { background: var(--mz-bg); color: var(--mz-gold-2) !important; }
  .store-header .main-menu li.mega-menu > .sub-menu { width: min(1100px, calc(100vw - 40px)); }
}
.store-header a:hover { color: var(--mz-gold-2); }

/* ---------- footer ---------- */
.store-footer { background: var(--mz-ink) !important; color: #c9cccf; }
.store-footer a:hover { color: var(--mz-gold); }
.store-footer h3, .store-footer h4, .store-footer .footer-title { color: #fff; font-weight: 800; }
.store-footer iframe, .store-footer .map, .store-footer [class*='map'] { border-radius: var(--mz-r); overflow: hidden; }
.store-footer .site-info-bar { border-top: 1px solid rgba(255, 255, 255, .1); background: transparent; }

@media (max-width: 640px) {
  .s-block--features__item { flex-direction: column !important; text-align: center !important; padding: 16px 10px; gap: 10px; }
  body.index .s-block:not(.s-block--full-bg):not(.s-block--fixed-banner):not(.s-block--default-home-slider) { padding-block: 18px; }
  .s-block__title h2, .s-slider-block__title h2 { font-size: 24px; }
  .s-product-card-content { padding: 12px 12px 14px; }
  .s-product-card-price, .s-product-card-sale-price { font-size: 20px; }
}