:root {
  /* ZahraCare logo colors */
  --navy: #082D61;
  --blue: #2F7DD1;
  --primary: #1F64B5;
  --primary-dark: #082D61;
  --primary-soft: #EAF2FC;
  --text: #13233F;
  --muted: #5F6B7A;
  --border: #E2E8F0;
  --bg: #F6F9FC;
  --card: #ffffff;
  --danger: #d64545;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(8, 45, 97, 0.07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: var(--primary); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header > .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo { text-decoration: none; display: flex; align-items: center; gap: 8px; color: var(--navy); }
.logo-icon { height: 40px; width: auto; flex-shrink: 0; }
/* Wordmark as in the logo: ZAHRA navy + CARE blue, serif */
.logo-word {
  font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; letter-spacing: -.02em;
  color: var(--navy); line-height: 1; white-space: nowrap; direction: ltr;
}
.logo-word span { color: var(--blue); }
.logo-tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  background: var(--primary-soft); color: var(--primary); padding: 3px 8px; border-radius: 6px;
}

/* ---------- Buttons & inputs ---------- */
.btn {
  border: 0; border-radius: 8px; padding: 10px 16px; font: inherit; font-weight: 600;
  cursor: pointer; background: var(--primary); color: #fff; transition: background .15s;
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.btn:hover { background: var(--primary-dark); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b83737; }
.btn-sm { padding: 6px 10px; font-size: .85rem; }
.btn-block { width: 100%; }

input, select, textarea {
  font: inherit; width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
label { font-size: .875rem; font-weight: 600; display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--primary-dark); color: #fff; font-size: .85rem;
  overflow: hidden; white-space: nowrap; height: 34px; display: flex; align-items: center;
}
.announce-track {
  display: inline-flex; gap: 64px; padding-left: 64px;
  animation: marquee 28s linear infinite;
}
.announce:hover .announce-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .announce-track { animation: none; } }

/* ---------- Category bar ---------- */
.catbar { background: var(--primary-soft); border-top: 1px solid var(--border); }
.catbar-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; padding-top: 6px; padding-bottom: 6px;
}
.catbar a {
  color: var(--text); text-decoration: none; font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .02em; padding: 6px 10px; border-radius: 6px; white-space: nowrap;
}
.catbar a:hover { background: #fff; color: var(--primary-dark); }
.catbar a.active { background: var(--primary); color: #fff; }
.catbar a.catbar-promo { color: var(--danger); }
.catbar a.catbar-promo.active { background: var(--danger); color: #fff; }
[dir="rtl"] .catbar a { letter-spacing: 0; font-size: .85rem; }

/* ---------- Promo slider ---------- */
.slider { position: relative; overflow: hidden; margin-bottom: 24px; background: var(--primary-soft); }
.slider-track { display: flex; transition: transform .6s ease; }
@media (prefers-reduced-motion: reduce) { .slider-track { transition: none; } }
.slide {
  flex: 0 0 100%; min-height: 340px; display: flex; align-items: center;
  background-size: cover; background-position: center; color: #fff; text-decoration: none;
}
.slide-text { width: 100%; padding-top: 32px; padding-bottom: 56px; }
.slide-text h2 { margin: 0 0 8px; font-size: 2.4rem; line-height: 1.15; max-width: 600px; text-shadow: 0 2px 12px rgba(0,0,0,.2); }
.slide-text p { margin: 0 0 18px; font-size: 1.1rem; max-width: 520px; opacity: .95; }
.slide-cta { background: #fff; color: var(--primary-dark); }
.slide:hover .slide-cta { background: var(--primary-soft); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.85); color: var(--text); font-size: 1.6rem; line-height: 1;
  box-shadow: var(--shadow);
}
.slider-arrow:hover { background: #fff; }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slider-dots button {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.55); transition: width .3s, background .3s;
}
.slider-dots button.active { width: 28px; background: #fff; }

/* ---------- Perks & footer ---------- */
.perks { background: #fff; border-top: 1px solid var(--border); padding: 28px 0; }
.perks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.perk { display: flex; gap: 12px; align-items: center; }
.perk > span {
  font-size: 1.4rem; width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: var(--primary-soft); display: grid; place-items: center;
}
.perk p { margin: 0; font-size: .85rem; color: var(--muted); }

.footer { background: #061F43; color: #C9D6EA; font-size: .9rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 32px; padding-top: 40px; padding-bottom: 32px;
}
.footer-logo { margin-bottom: 12px; }
.footer-logo .logo-word, .footer-logo .logo-word span { color: #fff; }
.footer-logo .logo-icon { height: 36px; }
.footer h4 { color: #fff; margin: 4px 0 12px; font-size: .95rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: #C9D6EA; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer p { margin: 0; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: .8rem; color: #93A4BF; }

#shop { scroll-margin-top: 150px; }
.filters { display: flex; gap: 12px 20px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.filters input { flex: 0 1 320px; min-width: 200px; margin-inline-start: auto; }
.results-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.results-head h2 { margin: 0; font-size: 1.4rem; }

/* Promotions & brands */
.card-img { position: relative; }
.promo-tag {
  position: absolute; top: 10px; inset-inline-start: 10px; background: var(--danger); color: #fff;
  font-weight: 700; font-size: .8rem; padding: 3px 8px; border-radius: 6px;
}
.old-price { color: var(--muted); font-weight: 500; font-size: .85rem; margin-inline-start: 6px; }
a.card-brand { text-decoration: none; }
a.card-brand:hover { color: var(--primary); }
a.badge { text-decoration: none; }
a.badge:hover { background: var(--primary); color: #fff; }
.brand-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 16px; text-align: center; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 4px; transition: border-color .15s;
}
.brand-tile strong { font-size: 1.1rem; }
.brand-tile:hover { border-color: var(--primary); }

/* ---------- Product grid ---------- */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin-bottom: 48px;
}
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.card-img {
  aspect-ratio: 1 / 1; background: var(--primary-soft); display: grid; place-items: center;
  color: var(--primary); font-size: 3rem;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-brand { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.card-name { font-weight: 600; }
.card-desc { font-size: .85rem; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.price { font-weight: 700; font-size: 1.15rem; color: var(--primary-dark); }
.badge {
  display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary-dark); font-weight: 600;
}
.badge-out { background: #fdeaea; color: var(--danger); }
.badge-low { background: #fff4e0; color: #b46b00; }

.empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* ---------- Cart drawer ---------- */
.cart-btn { position: relative; }
.cart-count {
  background: #fff; color: var(--primary); border-radius: 999px; font-size: .75rem;
  min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px;
}
.overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 20;
  display: none;
}
.overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: #fff; z-index: 30; transform: translateX(100%); transition: transform .25s;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.drawer-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--border); }
.icon-btn { background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--muted); }

.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item-img {
  width: 56px; height: 56px; border-radius: 8px; background: var(--primary-soft);
  flex-shrink: 0; overflow: hidden; display: grid; place-items: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 1rem;
}
.total-line { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .9rem; }
.alert-error { background: #fdeaea; color: var(--danger); }
.alert-success { background: var(--primary-soft); color: var(--primary-dark); }

.success-box { text-align: center; padding: 32px 8px; }
.success-box .check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px;
}

/* ---------- Admin ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card {
  background: #fff; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border);
  width: min(380px, 100%); box-shadow: var(--shadow);
}
.login-card h1 { margin-top: 0; font-size: 1.4rem; }

.admin-main { padding: 24px 0 48px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 1.6rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab {
  background: none; border: 0; padding: 10px 16px; font: inherit; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; font-size: 1.2rem; }
.panel-head input { max-width: 280px; }

.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: start; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafcfb; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; }
.thumb { width: 44px; height: 44px; border-radius: 8px; background: var(--primary-soft); overflow: hidden; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.items-cell { max-width: 320px; font-size: .82rem; color: var(--muted); }

/* Promo banners admin */
.promo-layout { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.promo-list { display: grid; gap: 16px; }
.promo-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.promo-preview {
  height: 140px; background-size: cover; background-position: center; color: #fff;
  padding: 20px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.promo-preview strong { font-size: 1.2rem; }
.promo-meta { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }
@media (max-width: 860px) { .promo-layout { grid-template-columns: 1fr; } }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 40;
  display: none; place-items: center; padding: 16px;
}
.modal.open { display: grid; }
.modal-card {
  background: #fff; border-radius: var(--radius); width: min(560px, 100%);
  max-height: 92vh; overflow-y: auto; padding: 24px;
}
.modal-card h2 { margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.img-preview { width: 90px; height: 90px; border-radius: 8px; object-fit: cover; margin-top: 8px; }
.hint { font-size: .8rem; color: var(--muted); }

@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; }
  .slide { min-height: 260px; }
  .slide-text h2 { font-size: 1.6rem; }
  .slide-text p { font-size: .95rem; }
  .slider-arrow { display: none; }
  .cart-label { display: none; }
  .lang-select { padding: 6px 4px; font-size: .85rem; }
  .header-actions .btn-outline { padding: 8px 10px; font-size: .85rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .panel-head input { max-width: none; }
}

/* ---------- Language menu ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lang-select {
  width: auto; padding: 8px 10px; font-size: .9rem; font-weight: 500; cursor: pointer;
  border-radius: 8px; background: #fff;
}
.login-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.login-top h1 { margin: 0; }
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 18px; }
.login-brand img { height: 84px; width: auto; }
.login-brand .logo-word { font-size: 1.9rem; }
.login-tagline { font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; color: var(--navy); }
.panel-tools { display: flex; gap: 8px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.form-title { margin-top: 0; }
.color-input { height: 44px; padding: 4px; }

/* ---------- Arabic / right-to-left ---------- */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Geeza Pro", "Noto Sans Arabic", Arial, sans-serif; }
[dir="rtl"] .drawer { right: auto; left: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer.open { transform: translateX(0); }
/* Slider and scrolling bar keep moving left-to-right; their text stays right-to-left */
.slider, .announce { direction: ltr; }
[dir="rtl"] .slide, [dir="rtl"] .announce-track span { direction: rtl; }
[dir="rtl"] .card-brand { letter-spacing: 0; }
[dir="rtl"] .stat-label, [dir="rtl"] th { letter-spacing: 0; }
/* Text typed in the admin (any language) follows the page alignment */
[dir="rtl"] [dir="auto"] { text-align: right; }

/* Small screens: the category bar becomes one row you scroll sideways */
@media (max-width: 760px) {
  .header > .container { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 6px; row-gap: 6px; }
  .catbar-inner { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .catbar-inner::-webkit-scrollbar { display: none; }
  .filters input { flex-basis: 100%; margin-inline-start: 0; }
  #shop { scroll-margin-top: 120px; }
  .header .logo { font-size: 1.1rem; gap: 6px; }
  .header .logo-icon { height: 32px; }
  .header .logo-word { font-size: 1.25rem; }
  .header .logo-tag { display: none; }
  .header-actions { gap: 6px; margin-inline-start: auto; }
  .header-actions .btn { padding: 8px 10px; }
}

/* ---------- WhatsApp chat (bottom-left) ---------- */
.wa { position: fixed; bottom: 20px; left: 20px; z-index: 15; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; direction: ltr; }
/* Stays bottom-left in Arabic too; only the chat text is right-to-left */
[dir="rtl"] .wa-panel { direction: rtl; }
.wa-button {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2); transition: transform .15s;
}
.wa-button:hover { transform: scale(1.06); }
.wa-panel {
  width: min(340px, calc(100vw - 40px)); background: #efeae2; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25); display: flex; flex-direction: column;
}
.wa-head { background: #075e54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.wa-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.wa-head-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wa-head-text span { font-size: .78rem; opacity: .85; }
.wa-close { background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; padding: 4px; }
.wa-body { padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.wa-bubble {
  background: #fff; padding: 10px 12px; border-radius: 0 10px 10px 10px; max-width: 85%;
  font-size: .92rem; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
[dir="rtl"] .wa-bubble { border-radius: 10px 0 10px 10px; }
.wa-quick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wa-quick button {
  background: #fff; border: 1px solid #25d366; color: #075e54; border-radius: 999px;
  padding: 6px 12px; font-size: .85rem; cursor: pointer; text-align: start;
}
.wa-quick button:hover { background: #dcf8c6; }
.wa-form { display: flex; gap: 8px; padding: 8px 10px; align-items: flex-end; }
.wa-form textarea {
  flex: 1; resize: none; border-radius: 20px; border: 0; padding: 10px 14px; max-height: 100px; font-size: .92rem;
}
.wa-send {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: #25d366; color: #fff;
  cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
[dir="rtl"] .wa-send svg { transform: scaleX(-1); }
.wa-hint { margin: 0; padding: 0 14px 10px; font-size: .75rem; color: var(--muted); }
@media (max-width: 600px) {
  .header .logo { gap: 5px; }
  .header .logo-icon { height: 26px; }
  .header .logo-word { font-size: 1.02rem; }
}
@media (max-width: 600px) {
  .wa { bottom: 14px; left: 14px; }
  .wa-button { width: 54px; height: 54px; }
}

/* ---------- Brand logos ---------- */
.brand-logo { height: 70px; display: grid; place-items: center; }
.brand-logo img { max-height: 70px; max-width: 100%; object-fit: contain; }

.brand-strip { background: #fff; border-top: 1px solid var(--border); padding: 28px 0 32px; }
.brand-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.brand-strip-head h2 { margin: 0; font-size: 1.3rem; }
.brand-strip-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand-strip-viewport { overflow: hidden; direction: ltr; }
.brand-strip-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.brand-strip-viewport:hover .brand-strip-track,
.brand-strip-viewport:focus-within .brand-strip-track { animation-play-state: paused; }
.brand-chip {
  flex: 0 0 auto; width: 170px; height: 90px; padding: 10px 16px; margin-right: 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; display: grid; place-items: center; transition: border-color .15s;
}
.brand-chip:hover { border-color: var(--primary); }
.brand-chip img { max-width: 100%; max-height: 66px; object-fit: contain; }
/* Without animation the strip simply scrolls sideways */
@media (prefers-reduced-motion: reduce) {
  .brand-strip-viewport { overflow-x: auto; }
  .brand-strip-track { animation: none; }
  .brand-strip-track [aria-hidden="true"] { display: none; }
}
@media (max-width: 600px) {
  .brand-chip { width: 130px; height: 72px; }
  .brand-chip img { max-height: 52px; }
}

/* Empty-state messages use the full width of the product grid */
.grid > .empty { grid-column: 1 / -1; }
