/**
 * Q8Kart storefront — Jarir-inspired UI
 * White chrome · Red accent #E31C23 · Soft gray page · Rounded cards
 * Layout reference: https://www.jarir.com/kw-en/
 */
:root {
  --jr-red: #e31c23;
  --jr-red-deep: #c4161c;
  --jr-ink: #222222;
  --jr-muted: #6b6b6b;
  --jr-line: #e8e8e8;
  --jr-page: #ffffff;
  --jr-soft: #f3f3f3;
  --jr-soft-2: #f7f7f7;
  --jr-white: #ffffff;
  --jr-price: #e31c23;
  --jr-radius: 16px;
  --jr-radius-sm: 12px;
  --jr-max: 1280px;
  --jr-font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --jr-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --jr-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--jr-white) !important;
  width: 100%;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

html, body {
  font-family: var(--jr-font) !important;
  color: var(--jr-ink);
  line-height: 1.45;
}

body {
  display: block !important;
  background: var(--jr-white) !important;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--jr-ink); transition: color 0.15s var(--jr-ease); }
:focus-visible { outline: 2px solid var(--jr-red); outline-offset: 2px; }
[x-cloak] { display: none !important; }

.page-wrapper {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  background: var(--jr-white);
  overflow-x: clip;
}

/* —— Sticky Jarir header —— */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--jr-white);
}

.jr-chrome { width: 100%; }

.jr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--jr-white);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: box-shadow 0.2s var(--jr-ease), border-color 0.2s var(--jr-ease);
}

.jr-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom-color: var(--jr-line);
}

.jr-header__bar { background: var(--jr-white); }

.jr-header__inner {
  max-width: var(--jr-max);
  margin: 0 auto;
  padding: 0.55rem 0.75rem;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "menu logo search actions";
  align-items: center;
  gap: 0.55rem 0.5rem;
  width: 100%;
}

@media (max-width: 639px) {
  .jr-header__inner {
    grid-template-columns: auto auto 1fr auto;
    grid-template-areas: "menu logo search actions";
  }
}

@media (min-width: 1024px) {
  .jr-header__inner {
    padding: 0.75rem 1.25rem;
    gap: 0.85rem 1rem;
  }
  .jr-header__menu { display: none !important; }
  .jr-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search actions";
  }
}

.jr-header__menu { grid-area: menu; }
.jr-header__logo { grid-area: logo; min-width: 0; }
.jr-header__search { grid-area: search; min-width: 0; }
.jr-header__actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.jr-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none !important;
  color: var(--jr-ink) !important;
}
.jr-logo__mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: var(--jr-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.jr-logo__text {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (max-width: 420px) {
  .jr-logo__text { display: none; }
}

.jr-icon-btn {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--jr-soft);
  color: var(--jr-ink) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.jr-header__cart { background: var(--jr-soft); }
.jr-header__account { background: transparent; }
@media (max-width: 639px) {
  .jr-header__account { display: none; }
}

.jr-cart-badge {
  position: absolute;
  top: -0.1rem;
  right: -0.1rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--jr-red);
  color: #fff !important;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}

.jr-deliver {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border: 0;
  border-top: 1px solid var(--jr-line);
  border-bottom: 1px solid var(--jr-line);
  background: var(--jr-soft-2);
  color: var(--jr-ink);
  font-size: 0.875rem;
  cursor: pointer;
  text-align: left;
}
.jr-deliver strong { font-weight: 700; }

/* Search — pill like Jarir */
.jr-search__form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.2rem 0.35rem 0.2rem 0.85rem;
  background: var(--jr-soft);
  border-radius: 999px;
}
.jr-search__icon {
  display: inline-flex;
  color: #888;
  flex-shrink: 0;
}
.jr-search__input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.45rem 0.35rem !important;
  font-size: 15px !important;
  color: var(--jr-ink) !important;
}
.jr-search__input::placeholder { color: #9a9a9a; }
.jr-search__btn {
  display: none;
  border: 0;
  background: var(--jr-red);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
@media (min-width: 768px) {
  .jr-search__btn { display: inline-flex; }
  .jr-search__form { min-height: 46px; }
}
.jr-search__suggest {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: #fff;
  border: 1px solid var(--jr-line);
  border-radius: var(--jr-radius-sm);
  box-shadow: var(--jr-shadow);
  overflow: hidden;
}
.jr-search__suggest-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.jr-search__suggest-item:hover { background: var(--jr-soft); }
.jr-search__suggest-count { color: var(--jr-muted); }

/* Drawer */
.jr-drawer { position: fixed; inset: 0; z-index: 120; }
.jr-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.jr-drawer__panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(86vw, 320px);
  background: #fff;
  box-shadow: 8px 0 28px rgba(0,0,0,.16);
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
}
.jr-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--jr-red);
  color: #fff;
  font-weight: 700;
}
.jr-drawer__head .jr-icon-btn { background: rgba(255,255,255,.15); color: #fff !important; }
.jr-drawer__body { overflow: auto; padding: 0.35rem 0; }
.jr-drawer__body a {
  display: block;
  padding: 0.85rem 1.1rem;
  color: var(--jr-ink) !important;
  text-decoration: none !important;
  font-weight: 500;
  border-bottom: 1px solid var(--jr-line);
}
html.jr-drawer-open, body.jr-drawer-open { overflow: hidden !important; }

nav.q8kart-mobile-tabbar,
#q8kart-wide-nav.q8kart-mobile-tabbar { display: none !important; }

/* —— Homepage —— */
.jr-home {
  width: 100%;
  padding: 0 0 2rem;
  overflow-x: hidden;
  background: var(--jr-white);
}

body.cms-home .page-main,
body.q8kart-home .page-main,
body.cms-index-index .page-main {
  padding: 0 !important;
  max-width: none !important;
  background: var(--jr-white);
}
body.cms-home .columns,
body.q8kart-home .columns,
body.cms-index-index .columns {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none !important;
}
body.cms-home .column.main,
body.q8kart-home .column.main,
body.cms-index-index .column.main {
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}
body.cms-index-index .page-title-wrapper { display: none; }

.jr-hero {
  max-width: var(--jr-max);
  margin: 0 auto;
  padding: 0.85rem 0.75rem 0;
}
@media (min-width: 768px) {
  .jr-hero { padding: 1rem 1.15rem 0; }
}
.jr-hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--jr-radius);
  background: var(--jr-soft);
}
.jr-hero__track {
  display: flex;
  width: 100%;
  transition: transform 0.45s var(--jr-ease);
}
.jr-hero__slide {
  flex: 0 0 100%;
  width: 100%;
  display: block;
  line-height: 0;
}
.jr-hero__slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}
@media (max-width: 639px) {
  .jr-hero__slide img { aspect-ratio: 16 / 9; }
}

.jr-rail-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 120, 120, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.jr-rail-btn--prev { left: 0.55rem; }
.jr-rail-btn--next { right: 0.55rem; }
.jr-rail-wrap .jr-rail-btn--prev { display: none; }

.jr-section {
  max-width: var(--jr-max);
  margin: 0 auto;
  padding: 1.35rem 0.75rem 0.15rem;
}
@media (min-width: 768px) {
  .jr-section { padding: 1.6rem 1.15rem 0.25rem; }
}
.jr-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.jr-section__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--jr-ink);
}
@media (min-width: 768px) {
  .jr-section__title { font-size: 1.4rem; }
}
.jr-section__link {
  color: var(--jr-red) !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none !important;
}

.jr-rail-wrap { position: relative; }
.jr-rail {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 2.2rem 0.35rem 0.1rem;
  scrollbar-width: none;
}
.jr-rail::-webkit-scrollbar { display: none; }

.jr-cat {
  flex: 0 0 7.4rem;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 8.6rem;
  padding: 0.95rem 0.55rem 0.75rem;
  border-radius: var(--jr-radius-sm);
  background: var(--jr-cat-bg, #eee);
  text-decoration: none !important;
  color: var(--jr-ink) !important;
  transition: transform 0.15s var(--jr-ease);
}
@media (min-width: 768px) {
  .jr-cat { flex-basis: 8.4rem; min-height: 9.4rem; }
}
.jr-cat:hover { transform: translateY(-2px); }
.jr-cat__icon {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.55rem;
}
.jr-cat__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

/* Simple CSS icon glyphs via emoji-like shapes using SVG masks as data URI-free CSS */
.jr-cat__icon--office { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Cpath d='M8 21V10h8v11M6 21h12M10 10V7h4v3'/%3E%3C/svg%3E"); }
.jr-cat__icon--school { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Cpath d='M6 9v9h12V9M4 9l8-4 8 4M9 13h6'/%3E%3C/svg%3E"); }
.jr-cat__icon--toys { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='10' r='4'/%3E%3Cpath d='M7 20c1.2-2.5 3-3.5 5-3.5s3.8 1 5 3.5'/%3E%3C/svg%3E"); }
.jr-cat__icon--arts { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='9' cy='10' r='1.2' fill='%23222'/%3E%3Ccircle cx='14' cy='9' r='1.2' fill='%23222'/%3E%3Ccircle cx='15' cy='13.5' r='1.2' fill='%23222'/%3E%3C/svg%3E"); }
.jr-cat__icon--computers { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='12' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.jr-cat__icon--phones { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Crect x='8' y='3' width='8' height='18' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.jr-cat__icon--watch { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5.5'/%3E%3Cpath d='M12 9.5v3l2 1M9 4h6M9 20h6'/%3E%3C/svg%3E"); }
.jr-cat__icon--accessories { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Cpath d='M7 10v4a5 5 0 0 0 10 0v-4M7 10a5 5 0 0 1 10 0'/%3E%3C/svg%3E"); }
.jr-cat__icon--audio { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Cpath d='M4 12v3a3 3 0 0 0 3 3h1v-8H7a3 3 0 0 0-3 3Zm16 0v3a3 3 0 0 1-3 3h-1v-8h1a3 3 0 0 1 3 3Z'/%3E%3C/svg%3E"); }
.jr-cat__icon--home { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Cpath d='m4 11 8-7 8 7v9H4v-9Z'/%3E%3C/svg%3E"); }
.jr-cat__icon--gaming { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Cpath d='M7 15v-2m0 0V11m0 2H5m2 0h2m8.5-1.5h.01M17.5 14.5h.01M7.5 8h9A4.5 4.5 0 0 1 21 12.5v0A3.5 3.5 0 0 1 17.5 16h-11A3.5 3.5 0 0 1 3 12.5v0A4.5 4.5 0 0 1 7.5 8Z'/%3E%3C/svg%3E"); }
.jr-cat__icon--print { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23222' stroke-width='1.7' viewBox='0 0 24 24'%3E%3Cpath d='M7 9V4h10v5M7 17H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2m-10 0h10v4H7v-4Z'/%3E%3C/svg%3E"); }

.jr-rail--brands { padding-right: 2.2rem; }
.jr-brand {
  flex: 0 0 7.5rem;
  scroll-snap-align: start;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  border: 1px solid var(--jr-line);
  border-radius: var(--jr-radius-sm);
  background: #fff;
  text-decoration: none !important;
  color: var(--jr-ink) !important;
  font-weight: 700;
  font-size: 0.9rem;
}
.jr-brand--all {
  color: var(--jr-red) !important;
  border-color: #f0c8ca;
  background: #fff7f7;
}

.jr-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
@media (min-width: 768px) {
  .jr-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
}
.jr-product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--jr-line);
  border-radius: var(--jr-radius-sm);
  padding: 0.7rem;
  text-decoration: none !important;
  color: var(--jr-ink) !important;
  transition: box-shadow 0.15s var(--jr-ease), transform 0.15s var(--jr-ease);
}
.jr-product:hover { box-shadow: var(--jr-shadow); transform: translateY(-2px); }
.jr-product__media {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--jr-soft-2);
  margin-bottom: 0.55rem;
}
.jr-product__media img { width: 100%; height: 100%; object-fit: contain; }
.jr-product__name {
  font-size: 0.8rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.15em;
}
.jr-product__was { color: var(--jr-muted); text-decoration: line-through; font-size: 0.72rem; display: block; }
.jr-product__now { color: var(--jr-price); font-weight: 800; font-size: 0.95rem; }
.jr-product__now small { font-size: 0.65rem; font-weight: 600; }

.jr-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
@media (min-width: 900px) {
  .jr-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.jr-service {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 0.9rem;
  border: 1px solid var(--jr-line);
  border-radius: var(--jr-radius-sm);
  text-decoration: none !important;
  color: var(--jr-ink) !important;
  background: var(--jr-soft-2);
}
.jr-service strong { font-size: 0.9rem; }
.jr-service span { font-size: 0.75rem; color: var(--jr-muted); }

.jr-trust {
  max-width: var(--jr-max);
  margin: 1.5rem auto 0;
  padding: 0.5rem 0.75rem 0;
  display: grid;
  gap: 0.7rem;
}
@media (min-width: 768px) {
  .jr-trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0.75rem 1.15rem 0;
  }
}
.jr-trust__item {
  padding: 1rem 0.9rem;
  border-radius: var(--jr-radius-sm);
  background: var(--jr-soft-2);
  border: 1px solid var(--jr-line);
}
.jr-trust__item strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
}
.jr-trust__item span {
  font-size: 0.78rem;
  color: var(--jr-muted);
  line-height: 1.4;
}

/* —— Footer —— */
.jr-footer {
  margin-top: 2rem;
  background: #1a1a1a;
  color: #eee;
  padding: 1.75rem 1rem 2rem;
}
.jr-footer a { color: #cfcfcf !important; text-decoration: none !important; }
.jr-footer a:hover { color: #fff !important; }
.jr-footer__newsletter {
  max-width: var(--jr-max);
  margin: 0 auto 1.5rem;
  text-align: center;
}
.jr-footer__newsletter-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}
.jr-footer__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.jr-footer__email {
  min-width: min(100%, 280px);
  flex: 1 1 220px;
  max-width: 360px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}
.jr-footer__subscribe {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  background: var(--jr-red);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.jr-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
.jr-footer__social a {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff !important;
}
.jr-footer__grid {
  max-width: var(--jr-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #333;
}
@media (min-width: 900px) {
  .jr-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.jr-footer__grid h4 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 0.95rem;
}
.jr-footer__grid a {
  display: block;
  padding: 0.28rem 0;
  font-size: 0.84rem;
}
.jr-footer__copy {
  max-width: var(--jr-max);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.78rem;
  color: #999;
}

/* —— Auth pages keep usable on new theme —— */
body.customer-account-login .page-main,
body.customer-account-create .page-main,
body.customer-account-forgotpassword .page-main {
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 1.25rem 1rem 2.5rem !important;
}
body.customer-account-login .page-title-wrapper,
body.customer-account-create .page-title-wrapper {
  text-align: center;
  margin-bottom: 1rem;
}
.login-container,
.xc-auth {
  display: grid;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 800px) {
  .login-container,
  .xc-auth:not(.xc-auth--register) {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.xc-auth-card,
body.customer-account-login .card,
body.customer-account-create .card,
body.customer-account-forgotpassword .card {
  background: #fff !important;
  border: 1px solid var(--jr-line) !important;
  border-radius: var(--jr-radius-sm) !important;
  box-shadow: var(--jr-shadow) !important;
  padding: 1.35rem 1.2rem !important;
  margin: 0 !important;
}
.xc-auth-card--aside {
  background: linear-gradient(165deg, #e31c23 0%, #a81217 100%) !important;
  border: 0 !important;
  color: #fff !important;
}
.xc-auth-card--aside .xc-auth-card__title,
.xc-auth-card--aside .xc-auth-card__lead { color: #fff !important; }
.xc-auth-card__title { margin: 0 0 0.35rem; font-size: 1.2rem; font-weight: 800; }
.xc-auth-card__lead { margin: 0 0 1.1rem; color: var(--jr-muted); font-size: 0.92rem; }
.xc-auth-benefits { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: 0.55rem; }
.xc-auth-benefits li { padding-left: 1.3rem; position: relative; color: rgba(255,255,255,.95); font-size: 0.9rem; }
.xc-auth-benefits li::before {
  content: '';
  position: absolute; left: 0; top: 0.4rem;
  width: 0.55rem; height: 0.55rem; border-radius: 999px; background: #fff;
}
.xc-auth-form .field,
body.customer-account-create .field { margin-bottom: 1rem; }
.xc-auth-form .label,
body.customer-account-login .label,
body.customer-account-create .label {
  display: block; margin-bottom: 0.35rem; font-size: 0.875rem; font-weight: 700;
}
.xc-auth-form .form-input,
body.customer-account-login .form-input,
body.customer-account-create .form-input,
body.customer-account-create .form-select {
  width: 100% !important;
  min-height: 46px;
  border: 1px solid #d7d7d7 !important;
  border-radius: 999px !important;
  padding: 0.7rem 1rem !important;
  font-size: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
}
.xc-auth-password,
body.customer-account-login .field.password .control,
body.customer-account-create .field.password .control {
  position: relative; display: flex; align-items: center;
}
.xc-auth-password .form-input,
body.customer-account-login .field.password .form-input,
body.customer-account-create .field.password .form-input { padding-right: 3rem !important; }
.xc-auth-password__toggle,
body.customer-account-login .field.password button,
body.customer-account-create .field.password button {
  position: absolute; right: 0.2rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: #777 !important; padding: 0.65rem 0.75rem; cursor: pointer;
}
.xc-auth-actions { display: flex; flex-direction: column; gap: 0.8rem; padding-top: 0.5rem; }
.xc-auth-btn,
body.customer-account-login .btn-primary,
body.customer-account-create .btn-primary {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 100%; min-height: 48px;
  border: 0 !important; border-radius: 999px !important;
  background: var(--jr-red) !important; color: #fff !important;
  font-weight: 800 !important; text-decoration: none !important;
}
.xc-auth-btn--outline {
  background: transparent !important;
  border: 1.5px solid rgba(255,255,255,.65) !important;
  color: #fff !important;
}
.xc-auth-link { color: var(--jr-red) !important; text-align: center; font-weight: 700; text-decoration: none !important; }
.xc-auth-error {
  display: flex; gap: 0.5rem; margin-top: 0.75rem; padding: 0.75rem;
  border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 0.875rem;
}

/* Global buttons / PLP */
.btn-primary, .action.primary, button.action.primary, .box-q8kart__atc {
  background: var(--jr-red) !important;
  border-color: var(--jr-red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}
.box-q8kart {
  background: #fff;
  border: 1px solid var(--jr-line);
  border-radius: var(--jr-radius-sm);
  box-shadow: none;
}
.product-items,
ol.products.list.items.product-items {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 1.5rem;
}
@media (min-width: 768px) {
  .product-items,
  ol.products.list.items.product-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .product-items,
  ol.products.list.items.product-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Legacy class aliases so older markup does not break */
.xc-header, #header.xc-header { background: transparent; }
.xc-footer { display: contents; }
EOF
