/* TireOne – brand colours from the media kit */
@font-face { font-family: 'Sharjah'; src: url('../fonts/SharjahMedia-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sharjah'; src: url('../fonts/SharjahMedia-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sharjah'; src: url('../fonts/SharjahMedia-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sharjah'; src: url('../fonts/SharjahMedia-Extrabold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --teal: #095150;
  --teal-2: #0c6564;
  --teal-dark: #063a3a;
  --orange: #f58320;
  --orange-2: #ff9a3d;
  --cream: #fef9f3;
  --bg: #f4f2ec;
  --card: #ffffff;
  --ink: #142424;
  --muted: #5d6f6e;
  --line: #e3e0d6;
  --radius: 0;
  --shadow: 0 1px 2px rgba(6, 58, 58, .06), 0 8px 24px rgba(6, 58, 58, .07);
  --shadow-lg: 0 24px 60px rgba(6, 30, 30, .28);
  --font: 'Sharjah', 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 0; padding: 11px 20px; font-weight: 700; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 6px 16px rgba(245, 131, 32, .35); }
.btn-orange:hover { background: var(--orange-2); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-2); }
.btn-ghost { background: #fff; color: var(--teal); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); }
.btn.full { width: 100%; }
.link-btn { background: none; border: 0; color: var(--orange); cursor: pointer; font-weight: 700; padding: 0; }
.close-x { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 10px; }
.only-mobile { display: none; }

/* ---------- header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--teal); color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { height: 34px; width: auto; }
.mainnav { display: flex; gap: 4px; margin-inline-start: auto; }
.mainnav a { color: #e9f1f0; text-decoration: none; padding: 8px 14px; border-radius: 0; font-weight: 700; font-size: 15px; transition: background .15s; }
.mainnav a:hover { background: rgba(255, 255, 255, .1); }
.mainnav a.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 -2px 0 var(--orange); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.lang-btn { background: transparent; border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 0; padding: 5px 14px; cursor: pointer; font-weight: 800; letter-spacing: .5px; }
.lang-btn:hover { background: #fff; color: var(--teal); }
.menu-btn { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 0; transition: .2s; }
.stripes { position: absolute; inset-inline-end: 6%; top: 0; height: 100%; width: 70px; pointer-events: none; overflow: hidden; }
.stripes i { position: absolute; top: -10%; height: 120%; background: var(--orange); transform: skewX(-28deg); }
[dir="rtl"] .stripes i { transform: skewX(28deg); }
.stripes i:first-child { width: 16px; inset-inline-start: 0; }
.stripes i:last-child { width: 6px; inset-inline-start: 30px; }
.topbar .stripes { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background: var(--teal); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('../img/pattern.jpg') left center / cover no-repeat; }
[dir="ltr"] .hero::before { transform: scaleX(-1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(9, 81, 80, .96) 30%, rgba(9, 81, 80, .35) 75%, rgba(9, 81, 80, .15)); }
[dir="ltr"] .hero::after { background: linear-gradient(to right, rgba(9, 81, 80, .96) 30%, rgba(9, 81, 80, .35) 75%, rgba(9, 81, 80, .15)); }
.hero .stripes { display: block; inset-inline-end: 9%; width: 90px; z-index: 0; }
.hero .stripes i:first-child { width: 22px; }
.hero .stripes i:last-child { width: 8px; inset-inline-start: 42px; }
.hero-in { position: relative; z-index: 1; padding: 30px 0 34px; display: flex; justify-content: flex-start; }
.hero-text { max-width: 640px; }
.hero h1 { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2; margin: 0 0 8px; font-weight: 800; }
.hero p { margin: 0 0 16px; color: #d6e6e4; font-size: 15.5px; max-width: 560px; }
.hero-search { display: flex; gap: 10px; background: #fff; padding: 6px; border-radius: 0; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 10px 18px; font-size: 16px; background: transparent; color: var(--ink); }
.hero-stats { display: flex; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 28px; font-weight: 800; color: var(--orange); line-height: 1.1; }
.hero-stats span { font-size: 13px; color: #cfe1df; }

/* ---------- catalog layout ---------- */
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding: 32px 0 60px; align-items: start; }
.filters { background: var(--card); border-radius: 0; box-shadow: var(--shadow); padding: 20px; position: sticky; top: 88px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters-head h2 { font-size: 18px; margin: 0; }
.filters .close-x { display: none; }
.f { display: block; margin-bottom: 14px; }
.f > span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.f select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 0; background: #fbfaf7; cursor: pointer; }
.f select:focus, .results-bar select:focus { outline: 2px solid var(--teal); outline-offset: 1px; }
.f select.on { border-color: var(--orange); background: #fff7ef; }
.f.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.f.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.f.check span { margin: 0; font-size: 15px; color: var(--ink); }

.results-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-bar .count { font-weight: 700; color: var(--muted); }
.bar-right { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.results-bar select { padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 0; background: #fff; cursor: pointer; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--teal); color: #fff; border-radius: 0; padding: 5px 8px 5px 12px; font-size: 13px; border: 0; cursor: pointer; }
[dir="rtl"] .chip { padding: 5px 12px 5px 8px; }
.chip b { background: rgba(255, 255, 255, .2); border-radius: 0; width: 18px; height: 18px; display: inline-grid; place-items: center; font-size: 12px; }
.photo-banner { display: flex; align-items: center; gap: 14px; background: #fff7ef; border: 1.5px solid #fbd2ad; border-radius: 0; padding: 10px 14px; margin-bottom: 14px; }
.photo-banner img { width: 56px; height: 56px; object-fit: cover; border-radius: 0; }
.photo-banner .grow { flex: 1; font-weight: 700; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: 0; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; cursor: pointer; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(6, 58, 58, .06), 0 16px 34px rgba(6, 58, 58, .14); }
.card-img { aspect-ratio: 1; background: #f3f1ec; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #b9c4c3; }
.card-img .noimg svg { width: 64px; height: 64px; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 0; }
.badge.used { background: #7a5b2b; }
.badge.orig { background: var(--orange); color: #063b3b; }
.badge.out { background: #8a8f8f; inset-inline-start: auto; inset-inline-end: 10px; }
.badge.score { background: var(--orange); inset-inline-start: auto; inset-inline-end: 10px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-code { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .3px; direction: ltr; text-align: start; }
[dir="rtl"] .card-code { text-align: right; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.spec { background: #f6f5f1; border-radius: 0; padding: 5px 8px; min-width: 0; }
.spec small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.spec b { display: block; font-size: 14px; direction: ltr; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[dir="rtl"] .spec b { text-align: right; }
.spec.wide { grid-column: 1 / -1; }
.spec.wide b { direction: inherit; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { font-size: 20px; font-weight: 800; color: var(--teal); }
.price small { font-size: 13px; color: var(--orange); font-weight: 700; }
.price.ask { font-size: 14px; color: var(--muted); font-weight: 700; }
.card .btn { padding: 8px 14px; font-size: 14px; }
.more-wrap { text-align: center; margin-top: 26px; }
.empty { grid-column: 1 / -1; text-align: center; background: #fff; padding: 40px 20px; border-radius: 0; color: var(--muted); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(6, 30, 30, .62); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { background: #fff; border-radius: 0; box-shadow: var(--shadow-lg); width: min(1060px, 100%); max-height: calc(100vh - 40px); overflow: auto; position: relative; animation: pop .25s; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal-close { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3; background: rgba(255, 255, 255, .9); border-radius: 0; width: 42px; height: 42px; padding: 0; }
.rim-box { display: grid; grid-template-columns: 1.1fr 1fr; }
.rim-gallery { background: #f3f1ec; padding: 18px; }
.zoom { aspect-ratio: 1; border-radius: 0; overflow: hidden; background: #fff; cursor: zoom-in; position: relative; touch-action: pan-y; }
.zoom img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.zoom.zoomed { cursor: zoom-out; touch-action: none; }
.zoom.zoomed img { transform: scale(2.6); transition: transform .25s, transform-origin 0s; }
.zoom-hint { font-size: 12px; color: var(--muted); text-align: center; margin: 8px 0; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.thumbs button { width: 70px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 0; overflow: hidden; cursor: pointer; background: #fff; }
.thumbs button.on { border-color: var(--orange); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rim-info { padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.rim-info h2 { margin: 0; font-size: 24px; line-height: 1.25; }
.rim-info .sub { color: var(--muted); font-weight: 700; direction: ltr; text-align: start; }
[dir="rtl"] .rim-info .sub { text-align: right; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 8px 4px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 700; width: 42%; }
.spec-table td { font-weight: 700; }
.ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .spec-table td.ltr { text-align: right; }
.fits { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fits li { background: #eef5f4; color: var(--teal); border-radius: 0; padding: 4px 11px; font-size: 13px; font-weight: 700; }
.notes { margin: 0; padding-inline-start: 18px; font-size: 14px; }
.notes li { margin-bottom: 4px; }
.caution-box { background: #fff7ef; border: 1.5px solid #fbd2ad; border-inline-start: 5px solid var(--orange); border-radius: 0; padding: 12px 14px; font-size: 14px; }
.caution-box b { display: flex; align-items: center; gap: 6px; color: #b55a0c; }
.caution-box p { margin: 4px 0 6px; }
.rim-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rim-actions .btn { flex: 1; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; }
h4.sec { margin: 0 0 6px; font-size: 15px; color: var(--teal); }

/* photo search */
.photo-box { width: min(540px, 100%); padding: 28px; }
.photo-box h2 { margin: 0 0 6px; }
.drop { display: grid; place-items: center; min-height: 220px; border: 2px dashed #c9d6d5; border-radius: 0; margin-top: 14px; cursor: pointer; background: #f8faf9; text-align: center; padding: 16px; color: var(--teal); font-weight: 700; position: relative; overflow: hidden; }
.drop:hover { border-color: var(--teal); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { max-height: 260px; border-radius: 0; }
.photo-status { margin-top: 12px; min-height: 24px; font-weight: 700; color: var(--teal); display: flex; align-items: center; gap: 10px; }
.spinner { width: 20px; height: 20px; border: 3px solid #cfe1df; border-top-color: var(--teal); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- content pages ---------- */
.page-hero { background: var(--teal) url('../img/pattern.jpg') center / cover; color: #fff; position: relative; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: rgba(9, 81, 80, .78); }
.page-hero .wrap { position: relative; z-index: 1; padding: 28px 0; }
.page-hero h1 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); }
.page-body { padding: 36px 0 60px; }
.prose { background: #fff; border-radius: 0; box-shadow: var(--shadow); padding: clamp(20px, 4vw, 40px); max-width: 900px; font-size: 17px; }
.prose h3 { color: var(--teal); margin: 26px 0 6px; font-size: 20px; }
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.service { background: #fff; border-radius: 0; box-shadow: var(--shadow); padding: 24px; position: relative; overflow: hidden; }
.service::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 5px; height: 100%; background: var(--orange); }
.service .num { font-size: 34px; font-weight: 800; color: #e7efee; position: absolute; top: 8px; inset-inline-end: 16px; }
.service h3 { margin: 0 0 6px; color: var(--teal); }
.service p { margin: 0; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 20px; }
.c-card { background: #fff; border-radius: 0; box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); }
.c-card .ic { width: 46px; height: 46px; border-radius: 0; display: grid; place-items: center; background: #eef5f4; color: var(--teal); }
.c-card .ic.wa { background: #e5f9ec; color: #1ebe5b; }
.c-card b { font-size: 18px; }
.c-card span { color: var(--muted); }
.cta-band { margin-top: 26px; background: var(--teal); color: #fff; border-radius: 0; padding: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.cta-band b { font-size: 20px; }

/* ---------- footer ---------- */
.footer { background: var(--teal-dark); color: #cfe0de; position: relative; overflow: hidden; margin-top: 0; }
.footer .stripes-top { inset-inline-end: 8%; height: 100%; opacity: .25; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; padding: 46px 0 30px; position: relative; z-index: 1; }
.f-logo { height: 32px; width: auto; margin-bottom: 12px; }
.f-col h4 { color: #fff; margin: 0 0 12px; font-size: 16px; }
.f-col a { display: block; color: #cfe0de; text-decoration: none; padding: 3px 0; }
.f-col a:hover { color: var(--orange); }
.f-col p { margin: 0 0 12px; font-size: 14px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 0; background: rgba(255, 255, 255, .08); display: grid; place-items: center; padding: 0; }
.social a:hover { background: var(--orange); color: #fff; }
.copy { border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0; font-size: 13px; text-align: center; position: relative; z-index: 1; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }

/* ---------- floating expert button ---------- */
.expert { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); inset-inline-end: 18px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
[dir="rtl"] .expert { align-items: flex-start; }
.expert-main { display: flex; align-items: center; gap: 8px; background: #25d366; color: #fff; border: 0; border-radius: 0; padding: 12px 18px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 26px rgba(37, 211, 102, .45); }
.expert-main svg { width: 24px; height: 24px; }
.expert-menu { background: #fff; border-radius: 0; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; min-width: 190px; order: -1; }
.expert-menu a { padding: 11px 14px; border-radius: 0; text-decoration: none; color: var(--ink); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.expert-menu a:hover { background: #f3f6f5; }
.expert-menu a::before { content: ''; width: 10px; height: 10px; border-radius: 0; background: #25d366; }
.expert-menu a.call::before { background: var(--orange); }

/* install as an app – branded bottom sheet */
.install { position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 75; max-width: 440px; margin-inline: auto;
  background: var(--teal); color: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); padding: 20px 20px 18px; overflow: hidden;
  border-top: 5px solid var(--orange); transform: translateY(30px); opacity: 0; transition: transform .25s, opacity .25s; }
.install.show { transform: none; opacity: 1; }
.install-stripes { position: absolute; top: 0; height: 96px; inset-inline-end: 44px; width: 50px; overflow: hidden; pointer-events: none; opacity: .9; }
.install-stripes i { position: absolute; top: -10%; height: 120%; background: var(--orange); transform: skewX(-27deg); }
[dir="rtl"] .install-stripes i { transform: skewX(27deg); }
.install-stripes i:first-child { width: 12px; inset-inline-start: 0; }
.install-stripes i:last-child { width: 5px; inset-inline-start: 22px; }
.install-x { position: absolute; top: 6px; inset-inline-end: 6px; z-index: 2; background: rgba(0, 0, 0, .25); color: #fff; border: 0; width: 34px; height: 34px; font-size: 22px; line-height: 1; cursor: pointer; }
.install-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding-inline-end: 70px; }
.install-head img { width: 56px; height: 56px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }
.install-head b { display: block; font-size: 19px; font-weight: 800; line-height: 1.25; }
.install-head small { display: block; color: #cfe1df; font-size: 13.5px; margin-top: 2px; }
.install-points { position: relative; z-index: 1; list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.install-points li { display: flex; gap: 8px; align-items: center; }
.install-points li::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--orange); transform: skewX(-20deg); }
.install-how { position: relative; z-index: 1; margin: 14px 0 0; background: rgba(255, 255, 255, .1); border-inline-start: 4px solid var(--orange); padding: 10px 12px; font-size: 14.5px; line-height: 1.6; }
.install-how b { color: #ffd2a6; }
.install-actions { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 16px; }
.install-actions .btn-orange { flex: 1; font-size: 16px; padding: 12px 18px; box-shadow: none; }
.install-later { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.install-later:hover { border-color: #fff; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0; z-index: 80; font-weight: 700; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .catalog { grid-template-columns: 1fr; padding-top: 20px; }
  .filters { position: fixed; inset: 0; z-index: 70; border-radius: 0; overflow: auto; transform: translateX(-105%); transition: transform .25s; top: 0; padding-bottom: 90px; }
  [dir="rtl"] .filters { transform: translateX(105%); }
  .filters.open { transform: none !important; }
  .filters .close-x { display: block; }
  .only-mobile { display: inline-flex; }
  .filters .only-mobile { position: fixed; bottom: 16px; inset-inline: 16px; width: auto; }
  .rim-box { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-in .f-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .mainnav { position: fixed; top: 68px; inset-inline: 0; background: var(--teal); flex-direction: column; padding: 10px 16px 18px; gap: 2px; transform: translateY(-120%); transition: transform .25s; box-shadow: 0 12px 20px rgba(0, 0, 0, .2); z-index: -1; }
  .mainnav.open { transform: none; }
  .mainnav a { padding: 12px 14px; border-radius: 0; }
  .menu-btn { display: block; }
  .top-actions { margin-inline-start: auto; }
  .brand img { height: 28px; }
  .hero-in { padding: 20px 0 24px; }
  .hero-search { flex-direction: column; border-radius: 0; }
  .hero-search .btn { width: 100%; }
  .hero::after { background: rgba(9, 81, 80, .84) !important; }
  .hero .stripes { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; gap: 6px; }
  .spec { padding: 4px 6px; }
  .spec b { font-size: 13px; }
  .price { font-size: 17px; }
  .card .btn { display: none; }
  .results-bar .bar-right { width: 100%; margin: 0; }
  .results-bar .bar-right select { flex: 1; min-width: 0; }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 0; max-height: 94vh; }
  .rim-info { padding: 18px 16px 24px; }
  .expert-main span { display: none; }
  .expert-main { padding: 14px; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- "Original" label: orange background everywhere ---------- */
.orig-tag { display: inline-block; background: var(--orange); color: #063b3b; padding: 1px 8px; font-weight: 800; line-height: 1.5; }
.spec.orig { background: var(--orange); }
.spec.orig small { color: #5a2c00; }
.spec.orig b { color: #063b3b; }
.chip.orig { background: var(--orange); color: #063b3b; }
.sysid { font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .5px; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.card-code { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
[dir="rtl"] .card-code { flex-direction: row-reverse; }

/* ---------- photos on About / Contact (changeable from the control panel) ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.about-grid.noimg { grid-template-columns: 1fr; }
.about-grid .prose { max-width: none; }
.site-photo { margin: 0; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.site-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo { position: sticky; top: 88px; border-bottom: 5px solid var(--orange); }
.about-photo img { aspect-ratio: 4 / 3; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.photo-grid .ph { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #eef1ef; }
.photo-grid figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-top: 4px solid var(--orange); }
.photo-grid figcaption b { display: flex; align-items: center; gap: 6px; color: var(--teal); }
.photo-grid figcaption a { color: var(--orange); font-weight: 700; text-decoration: none; }
.photo-grid figcaption span { color: var(--muted); font-size: 14px; }
.btn-try { background: var(--teal-dark); color: #fff; flex: 2 1 60% !important; }
.rim-actions #shareBtn { flex: 1 1 30%; }
.btn-try:hover { background: var(--teal); }
.mainnav a.nav-try { color: #fff; box-shadow: inset 0 -2px 0 var(--orange); }
@media (max-width: 860px) { .about-grid, .photo-grid { grid-template-columns: 1fr; } .about-photo { position: static; } }
.card-code span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#pdfBtn.off { background: #9aa9a8; cursor: not-allowed; }
.card .stretch { position: absolute; inset: 0; z-index: 2; }
.card .stretch:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }

/* ---------- rim page (rim.php) and plain links for search engines ---------- */
.rim-main { padding: 18px 0 50px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--teal); text-decoration: none; font-weight: 700; }
.rim-sheet { display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: var(--shadow); }
.rim-sheet-img { position: relative; background: #f3f1ec; padding: 18px; }
.rim-sheet-img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; }
.rim-sheet h1 { margin: 0; font-size: 22px; line-height: 1.35; color: var(--teal); }
.rim-sheet h2.sec { margin: 0 0 6px; font-size: 15px; color: var(--teal); }
.similar h2 { color: var(--teal); font-size: 20px; margin: 30px 0 14px; }
.seo-links { background: #ebe8df; padding: 26px 0 18px; border-top: 4px solid var(--orange); }
.seo-links .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; }
.seo-links h2 { font-size: 16px; color: var(--teal); margin: 0 0 8px; }
.seo-links p { margin: 0; line-height: 2.1; }
.seo-links a { display: inline-block; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); padding: 1px 10px; margin: 0 0 6px; font-size: 14px; }
.seo-links a:hover { border-color: var(--orange); color: var(--teal); }
.seo-links small { color: var(--muted); }
@media (max-width: 860px) { .rim-sheet, .seo-links .wrap { grid-template-columns: 1fr; } }
