/* ===================================================================
   Home page — Al Rawnaq design.  Sections: hero, info ribbon, shop by
   need, category pills, school-list band, new arrivals, budget band,
   why us, reviews, visit us, FAQ.  Pixel values come from the Figma
   "v2 · Home" frame (1440 canvas, 120px side padding = --rw-pad-x).
   =================================================================== */

.rw-sec { padding-inline: var(--rw-pad-x); }
.rw-sec--white { background: #fff; }
.rw-sec--off { background: var(--offwhite); }
.rw-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.rw-sec-head__t { display: flex; flex-direction: column; gap: 8px; }

/* ---- Hero ------------------------------------------------------------ */
.rw-herosec {
  background: var(--navy);
  padding: 72px var(--rw-pad-x);
  display: flex; align-items: center; gap: 64px;
}
.rw-hero__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.rw-hero__eyebrow { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.14em; color: var(--yellow); white-space: pre-wrap; text-transform: uppercase; }
[dir="rtl"] .rw-hero__eyebrow { letter-spacing: 0; }
.rw-hero__title { margin: 0; font-size: 56px; line-height: 64px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.rw-hero__sub { margin: 0; font-size: 16px; line-height: 26px; color: var(--navytint); }
.rw-hero__search {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: #fff; border-radius: 999px; padding: 8px 8px 8px 28px;
}
[dir="rtl"] .rw-hero__search { padding: 8px 28px 8px 8px; }
.rw-hero__search img { width: 22px; height: 22px; flex-shrink: 0; }
.rw-hero__search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 400 16px/26px var(--font-body); color: var(--navy);
}
.rw-hero__search input::placeholder { color: var(--gray); }
.rw-hero__search button {
  border: 0; cursor: pointer; background: var(--yellow); color: var(--navy);
  padding: 14px 28px; border-radius: 999px; font: 600 14px/20px var(--font-body);
}
.rw-hero__rating { display: flex; align-items: center; gap: 6px; }
.rw-hero__rating img { width: 16px; height: 16px; display: block; }
.rw-hero__rating span { font-size: 14px; line-height: 22px; color: var(--navytint); }

.rw-hero__bento { flex: 0 0 496px; display: flex; gap: 16px; align-items: flex-start; }
.rw-hero__col { display: flex; flex-direction: column; gap: 16px; }
.rw-tile {
  position: relative; width: 240px; border-radius: 28px; overflow: hidden; padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; isolation: isolate;
}
.rw-tile--tall { height: 416px; background: var(--yellow); }
.rw-tile--short { height: 200px; }
.rw-tile--short.rw-tile--2 { background: var(--yellowtint); }
.rw-tile--short.rw-tile--3 { background: var(--navytint); }
.rw-tile img.rw-tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.rw-tile::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 50%; z-index: -1;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
}
.rw-tile__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rw-tile__title { font-size: 18px; line-height: 26px; font-weight: 600; color: var(--navy); }
.rw-tile__arrow { width: 36px; height: 36px; border-radius: 999px; background: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rw-tile__arrow img { width: 16px; height: 16px; }
[dir="rtl"] .rw-tile__arrow img, [dir="rtl"] .rw-need__arrow img, [dir="rtl"] .rw-budget__go img { transform: scaleX(-1); }

/* ---- Info ribbon ------------------------------------------------------ */
.rw-ribbon { background: var(--yellow); padding: 20px var(--rw-pad-x); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.rw-ribbon__item { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 22px; color: var(--navy); }
.rw-ribbon__item img { width: 20px; height: 20px; display: block; flex-shrink: 0; }

/* ---- Shop by need ----------------------------------------------------- */
.rw-need-sec { padding: 72px var(--rw-pad-x) 40px; background: #fff; }
.rw-need-sec .rw-sec-head { margin-bottom: 36px; }
.rw-need { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rw-need__card {
  display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 28px;
  text-decoration: none; color: var(--navy); min-width: 0; transition: transform 0.2s ease;
}
.rw-need__card:hover { transform: translateY(-3px); }
.rw-need__card--1, .rw-need__card--4 { background: var(--yellowtint); }
.rw-need__card--2 { background: var(--navytint); }
.rw-need__card--3 { background: var(--graytint); }
.rw-need__card--5 { background: var(--yellowtint); }
.rw-need__card--6 { background: var(--navytint); }
.rw-need__pic { height: 150px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.5); }
.rw-need__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rw-need__title { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--navy); }
.rw-need__foot { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 10px; }
.rw-need__count { background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 14px; line-height: 22px; color: var(--navy); }
.rw-need__arrow { width: 36px; height: 36px; border-radius: 999px; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-inline-start: auto; }
.rw-need__arrow img { width: 16px; height: 16px; }

/* ---- All categories pills --------------------------------------------- */
.rw-pills-sec { background: #fff; padding: 24px var(--rw-pad-x) 70px; }
.rw-pills-sec h3 { margin: 0 0 20px; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--navy); }
.rw-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.rw-pill {
  display: inline-flex; align-items: center; padding: 15px 22px; border-radius: 999px;
  background: var(--offwhite); border: 1px solid var(--line);
  font-size: 14px; line-height: 22px; color: var(--navy); text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.rw-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.rw-pill.is-active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 500; }

/* ---- School list band ------------------------------------------------- */
.rw-school-sec { background: var(--offwhite); padding: 88px var(--rw-pad-x); }
.rw-school { background: var(--navy); border-radius: 36px; padding: 56px; display: flex; gap: 56px; align-items: center; }
.rw-school__copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.rw-school__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--navy); padding: 6px 14px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
[dir="rtl"] .rw-school__badge { letter-spacing: 0; }
.rw-school__badge img { width: 16px; height: 16px; }
.rw-school__title { margin: 0; font-size: 36px; line-height: 44px; font-weight: 700; color: #fff; }
.rw-school__text { margin: 0; font-size: 16px; line-height: 26px; color: var(--navytint); }
.rw-school__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.rw-school__btns .rw-btn { padding: 16px 28px; }
.rw-school__btns .rw-btn--outline-light { border-width: 1px; }
.rw-steps { flex: 0 0 480px; display: flex; flex-direction: column; gap: 16px; }
.rw-step { display: flex; align-items: center; gap: 16px; padding: 20px; background: #fff; border-radius: 20px; }
.rw-step__num { width: 44px; height: 44px; border-radius: 999px; background: var(--yellow); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 26px; font-weight: 600; flex-shrink: 0; }
.rw-step__tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rw-step__title { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--navy); }
.rw-step__sub { font-size: 14px; line-height: 22px; color: var(--gray); }

/* ---- New arrivals ----------------------------------------------------- */
.rw-arrivals { background: #fff; padding: 88px var(--rw-pad-x); }
.rw-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }

/* ---- Budget band ------------------------------------------------------ */
.rw-budget-sec { background: #fff; padding: 24px var(--rw-pad-x) 88px; }
.rw-budget { background: var(--yellow); border-radius: 36px; padding: 48px 56px; display: flex; align-items: center; gap: 48px; color: var(--navy); }
.rw-budget__copy { flex: 0 0 360px; display: flex; flex-direction: column; gap: 12px; }
.rw-budget__copy .rw-eyebrow { color: var(--navy); }
.rw-budget__copy p { margin: 0; font-size: 14px; line-height: 22px; }
.rw-budget__tiles { flex: 1 1 0; min-width: 0; display: flex; gap: 16px; }
.rw-budget__tile {
  flex: 1 1 0; min-width: 0; background: #fff; border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--navy); transition: transform 0.2s ease;
}
.rw-budget__tile:hover { transform: translateY(-3px); }
.rw-budget__under { font-size: 14px; line-height: 22px; color: var(--gray); }
.rw-budget__val { font-size: 28px; line-height: 36px; font-weight: 700; }
.rw-budget__go { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; font-weight: 600; }
.rw-budget__go img { width: 14px; height: 14px; }

/* ---- Why us ----------------------------------------------------------- */
.rw-why-sec { background: var(--offwhite); padding: 88px var(--rw-pad-x); }
.rw-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.rw-why__card { background: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 228px; }
.rw-why__ico { width: 52px; height: 52px; border-radius: 16px; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.rw-why__ico img { width: 26px; height: 26px; }
.rw-why__card h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--navy); }
.rw-why__card p { margin: 0; font-size: 14px; line-height: 22px; color: var(--gray); }

/* ---- Reviews ---------------------------------------------------------- */
.rw-reviews-sec { background: #fff; padding: 88px var(--rw-pad-x); }
.rw-reviews { display: flex; gap: 24px; align-items: flex-start; }
.rw-rating { flex: 0 0 340px; background: var(--navy); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.rw-rating .rw-eyebrow { color: var(--yellow); }
.rw-rating__score { margin: 0; font-size: 56px; line-height: 64px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.rw-rating__stars { display: flex; gap: 4px; }
.rw-rating__stars img { width: 20px; height: 20px; display: block; }
.rw-rating__based { margin: 0; font-size: 14px; line-height: 22px; color: var(--navytint); }
.rw-quotes { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rw-quote { background: var(--offwhite); border-radius: 20px; padding: 24px; display: flex; align-items: center; gap: 20px; }
.rw-quote[hidden] { display: none; }
.rw-quote__tx { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rw-quote__stars { display: flex; gap: 3px; }
.rw-quote__stars img { width: 14px; height: 14px; display: block; }
.rw-quote__tx p { margin: 0; font-size: 14px; line-height: 22px; color: var(--navy); }
.rw-quote__who { flex: 0 0 170px; display: flex; flex-direction: column; }
.rw-quote__who strong { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--navy); }
.rw-quote__who span { font-size: 14px; line-height: 22px; color: var(--gray); }
.rw-reviews__nav { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.rw-dots { display: flex; align-items: center; gap: 8px; }
.rw-dot { width: 8px; height: 8px; border-radius: 4px; background: #d1d1e0; border: 0; padding: 0; cursor: pointer; transition: width 0.2s ease, background-color 0.2s ease; }
.rw-dot.is-active { width: 28px; background: var(--yellow); }
.rw-reviews__btns { display: flex; gap: 12px; }
.rw-reviews__btns button { width: 48px; height: 48px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 999px; }
.rw-reviews__btns img { width: 48px; height: 48px; display: block; }
[dir="rtl"] .rw-reviews__btns img { transform: scaleX(-1); }

/* ---- Visit us --------------------------------------------------------- */
.rw-visit-sec { background: var(--offwhite); padding: 88px var(--rw-pad-x); }
.rw-visit { display: flex; gap: 40px; align-items: flex-start; }
.rw-visit__map { flex: 0 0 640px; height: 420px; border-radius: 28px; overflow: hidden; display: block; background: var(--graytint); }
.rw-visit__map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rw-visit__info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.rw-visit__row { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 26px; color: var(--navy); text-decoration: none; }
.rw-visit__row img { width: 20px; height: 20px; display: block; flex-shrink: 0; }
.rw-hours { width: 100%; background: #fff; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--navy); }
.rw-hours div { display: flex; justify-content: space-between; gap: 16px; }
.rw-hours strong { font-size: 16px; line-height: 24px; font-weight: 500; }
.rw-hours span { font-size: 14px; line-height: 22px; }
.rw-visit__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.rw-visit__btns .rw-btn { padding: 16px 28px; }
.rw-visit__btns .rw-btn--outline { border-width: 1px; }

/* ---- FAQ -------------------------------------------------------------- */
.rw-faq-sec { background: #fff; padding: 88px var(--rw-pad-x); }
.rw-faq { display: flex; gap: 64px; align-items: flex-start; }
.rw-faq__copy { flex: 0 0 380px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.rw-faq__copy p { margin: 0; font-size: 14px; line-height: 22px; color: var(--gray); }
.rw-faq__items { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rw-faq__item { background: var(--offwhite); border-radius: 16px; padding: 20px 24px; }
.rw-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--navy); }
.rw-faq__item summary::-webkit-details-marker { display: none; }
.rw-faq__item summary img { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.2s ease; }
.rw-faq__item[open] summary img { transform: rotate(45deg); }
.rw-faq__item p { margin: 8px 0 0; font-size: 14px; line-height: 22px; color: var(--gray); }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1199px) {
  .rw-herosec { flex-direction: column; align-items: stretch; gap: 40px; padding-block: 48px; }
  .rw-hero__bento { flex: 0 0 auto; width: 100%; max-width: 496px; margin-inline: auto; }
  .rw-need, .rw-why { grid-template-columns: repeat(2, 1fr); }
  .rw-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .rw-school { flex-direction: column; align-items: stretch; padding: 36px; }
  .rw-steps { flex-basis: auto; }
  .rw-budget { flex-direction: column; align-items: stretch; padding: 36px; }
  .rw-budget__copy { flex-basis: auto; }
  .rw-budget__tiles { flex-wrap: wrap; }
  .rw-budget__tile { flex: 1 1 calc(50% - 8px); }
  .rw-reviews, .rw-visit, .rw-faq { flex-direction: column; align-items: stretch; }
  .rw-rating, .rw-visit__map, .rw-faq__copy { flex-basis: auto; }
  .rw-visit__map { height: 320px; }
}
@media (max-width: 767px) {
  .rw-hero__title { font-size: 36px; line-height: 44px; }
  .rw-hero__search { padding-inline-start: 18px; }
  .rw-hero__search button { padding: 12px 18px; }
  .rw-hero__bento { flex-direction: column; }
  .rw-tile { width: 100%; }
  .rw-tile--tall { height: 260px; }
  .rw-sec-head { flex-direction: column; align-items: flex-start; }
  .rw-h2, .rw-school__title { font-size: 28px; line-height: 36px; }
  .rw-need, .rw-why { grid-template-columns: 1fr; }
  .rw-arrivals, .rw-why-sec, .rw-reviews-sec, .rw-visit-sec, .rw-faq-sec, .rw-school-sec { padding-block: 56px; }
  .rw-need-sec { padding-top: 48px; }
  .rw-school, .rw-budget { padding: 28px 22px; border-radius: 28px; }
  .rw-quote { flex-direction: column; align-items: flex-start; }
  .rw-quote__who { flex-basis: auto; }
  .rw-ribbon { justify-content: flex-start; }
  .rw-grid4 { gap: 16px; }
}

.rw-arrivals--off { background: var(--offwhite); }

/* Visit us: branch switcher + live map */
.rw-branch-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.rw-branch-tab { cursor: pointer; font-family: var(--font-body); padding: 11px 22px; }
.rw-branch-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.rw-visit[hidden] { display: none; }
.rw-visit__map iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }

/* Category without an image: neutral placeholder instead of a stock photo */
.rw-need__pic img.rw-need__ph { width: 84px; height: 84px; object-fit: contain; margin: auto; display: block; }
.rw-need__pic:has(.rw-need__ph) { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.6); }

/* ===== Tighter card padding across the home sections ===== */
.rw-need__card { padding: 18px; gap: 14px; border-radius: 24px; }
.rw-why__card { padding: 20px; gap: 12px; min-height: 0; border-radius: 20px; }
.rw-school { padding: 36px; gap: 36px; border-radius: 28px; }
.rw-step { padding: 14px 16px; }
.rw-budget { padding: 32px 36px; gap: 32px; border-radius: 28px; }
.rw-budget__tile { padding: 16px; border-radius: 20px; }
.rw-rating { padding: 24px; border-radius: 24px; }
.rw-quote { padding: 16px 20px; border-radius: 18px; }
.rw-hours { padding: 16px 18px; border-radius: 18px; }
.rw-faq__item { padding: 14px 20px; border-radius: 14px; }
.rw-tile { padding: 18px; }
@media (max-width: 767px) {
  .rw-school, .rw-budget { padding: 22px 18px; }
  .rw-need__card { padding: 16px; }
}

/* ===== Card padding capped at 14px ===== */
.rw-need__card, .rw-why__card, .rw-school, .rw-budget, .rw-budget__tile, .rw-rating, .rw-hours, .rw-tile { padding: 14px; }
.rw-step { padding: 12px 14px; }
.rw-quote { padding: 14px; }
.rw-faq__item { padding: 12px 14px; }
@media (max-width: 767px) { .rw-school, .rw-budget, .rw-need__card { padding: 14px; } }

/* ===== Card padding: 16px ===== */
.rw-need__card, .rw-why__card, .rw-school, .rw-budget, .rw-budget__tile, .rw-rating, .rw-hours, .rw-tile, .rw-quote { padding: 16px; }
.rw-step { padding: 14px 16px; }
.rw-faq__item { padding: 14px 16px; }
@media (max-width: 767px) { .rw-school, .rw-budget, .rw-need__card { padding: 16px; } }

/* Mobile hero tiles: wide "Back to school" tile on top, two tiles side by side below */
@media (max-width: 767px) {
  .rw-hero__bento { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 12px !important; width: 100% !important; max-width: none !important; }
  .rw-hero__col { display: grid !important; width: 100% !important; gap: 12px !important; }
  .rw-hero__col:first-child { grid-template-columns: 1fr; }
  .rw-hero__col:not(:first-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rw-tile { width: 100% !important; min-width: 0; box-sizing: border-box; padding: 14px !important; border-radius: 20px; }
  .rw-tile--tall { height: 220px !important; }
  .rw-tile--short { height: 170px !important; }
  .rw-tile__title { font-size: 15px; line-height: 22px; }
  .rw-tile__arrow { width: 32px; height: 32px; }
}

/* Mobile: categories ("Shop by need") as a compact 2-column grid */
@media (max-width: 767px) {
  .rw-need { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .rw-need__card { padding: 10px !important; gap: 10px !important; border-radius: 18px !important; min-width: 0; }
  .rw-need__pic { height: auto !important; aspect-ratio: 1.15 / 1; border-radius: 12px !important; }
  .rw-need__pic img.rw-need__ph { width: 52px; height: 52px; }
  .rw-need__title { font-size: 14px; line-height: 20px; padding: 0 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rw-need__foot { min-height: 28px; gap: 6px; padding: 0 2px; }
  .rw-need__count { font-size: 11px; line-height: 16px; padding: 2px 8px; }
  .rw-need__arrow { width: 28px; height: 28px; }
  .rw-need__arrow img { width: 13px; height: 13px; }
}

/* Mobile: "All categories" pills as a tidy 2-column grid */
@media (max-width: 767px) {
  .rw-pills-sec { padding: 8px var(--rw-pad-x) 40px; }
  .rw-pills-sec h3 { font-size: 16px; line-height: 24px; margin-bottom: 12px; }
  .rw-pills { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; }
  .rw-pill { display: flex !important; align-items: center; justify-content: center; text-align: center; min-width: 0; padding: 9px 10px !important; font-size: 12px !important; line-height: 16px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Mobile: hide the yellow info ribbon */
@media (max-width: 767px) { .rw-ribbon { display: none !important; } }

/* Mobile: "All categories" — 2 rows, larger pills, swipe sideways */
@media (max-width: 767px) {
  .rw-pills { grid-template-columns: none !important; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content; gap: 10px !important; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: calc(var(--rw-pad-x) * -1); padding: 2px var(--rw-pad-x) 6px; }
  .rw-pills::-webkit-scrollbar { display: none; }
  .rw-pill { scroll-snap-align: start; padding: 13px 20px !important; font-size: 14px !important; line-height: 20px !important; font-weight: 500; overflow: visible; text-overflow: clip; }
}

/* Mobile: school-list card — hide badge, secondary button and the 3 steps */
@media (max-width: 767px) { .rw-school__badge, .rw-school__btns .rw-btn--outline-light, .rw-steps { display: none !important; } }

/* Mobile: "Fresh on the shelf" — products in a single swipeable row */
@media (max-width: 767px) {
  .rw-arrivals .rw-grid4 { display: flex !important; flex-wrap: nowrap; gap: 12px !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc(var(--rw-pad-x) * -1); padding: 2px var(--rw-pad-x) 8px; scroll-padding-inline: var(--rw-pad-x); }
  .rw-arrivals .rw-grid4::-webkit-scrollbar { display: none; }
  .rw-arrivals .rw-grid4 > * { flex: 0 0 68%; max-width: 260px; min-width: 0; scroll-snap-align: start; }
}

/* Mobile: "Why" cards — icon at the start, title beside it */
@media (max-width: 767px) {
  .rw-why__card { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 14px !important; padding: 14px 16px !important; }
  .rw-why__ico { flex: 0 0 auto; margin: 0 !important; }
  .rw-why__card h3 { margin: 0 !important; font-size: 16px; line-height: 24px; }
}

/* Mobile: reviews — one swipeable row, all reviews shown (no paging buttons) */
@media (max-width: 767px) {
  .rw-quotes { flex-direction: row !important; align-items: stretch; gap: 12px !important; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc(var(--rw-pad-x) * -1); padding: 2px var(--rw-pad-x) 6px; scroll-padding-inline: var(--rw-pad-x); }
  .rw-quotes::-webkit-scrollbar { display: none; }
  .rw-quote, .rw-quote[hidden] { display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: space-between; gap: 16px !important; flex: 0 0 82%; max-width: 320px; min-width: 0; scroll-snap-align: start; }
  .rw-quote__who { flex: 0 0 auto; }
  .rw-reviews__nav { display: none !important; }
}
@media (max-width: 767px) {
  .rw-quotes { flex: 0 0 auto !important; width: auto !important; height: auto !important; min-height: 0; }
  .rw-quote, .rw-quote[hidden] { height: auto !important; min-height: 150px; }
}

/* Mobile: "Visit us" — swipeable branch tabs, compact map, info in a card, full-width buttons */
@media (max-width: 767px) {
  .rw-visit-sec { padding: 40px var(--rw-pad-x) !important; }
  .rw-branch-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 calc(var(--rw-pad-x) * -1) 16px; padding: 2px var(--rw-pad-x); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rw-branch-tabs::-webkit-scrollbar { display: none; }
  .rw-branch-tab { flex: 0 0 auto; white-space: nowrap; padding: 9px 18px !important; font-size: 13px; }
  .rw-visit { gap: 0 !important; }
  .rw-visit__map { height: 200px !important; border-radius: 20px 20px 0 0; }
  .rw-visit__info { background: #fff; border-radius: 0 0 20px 20px; padding: 18px 16px 20px; gap: 12px !important; align-items: stretch; }
  .rw-visit__info .rw-h2 { font-size: 24px; line-height: 32px; }
  .rw-visit__row { font-size: 14px; line-height: 22px; gap: 10px; padding: 10px 12px; background: var(--offwhite); border-radius: 12px; }
  .rw-visit__row img { width: 18px; height: 18px; }
  .rw-hours { background: var(--offwhite); }
  .rw-visit__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .rw-visit__btns .rw-btn { padding: 13px 12px; justify-content: center; font-size: 14px; }
}

/* Mobile: tighter vertical padding on home sections */
@media (max-width: 767px) {
  .rw-arrivals, .rw-need-sec, .rw-pills-sec, .rw-school-sec, .rw-budget-sec, .rw-why-sec, .rw-reviews-sec, .rw-visit-sec, .rw-faq-sec { padding-top: 36px !important; padding-bottom: 36px !important; }
  .rw-sec-head { margin-bottom: 20px !important; }
  .rw-need-sec .rw-sec-head { margin-bottom: 20px !important; }
}

/* Mobile: smaller gap between a section's heading block and its content */
@media (max-width: 767px) {
  .rw-faq { gap: 20px !important; }
  .rw-reviews { gap: 16px !important; }
  .rw-budget, .rw-school { gap: 20px !important; }
}

/* Mobile: "Visit us" branches swipe sideways (tabs follow along) */
@media (max-width: 767px) {
  .rw-branches { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .rw-branches::-webkit-scrollbar { display: none; }
  .rw-branches > .rw-visit, .rw-branches > .rw-visit[hidden] { display: flex !important; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
}

/* Mobile: "All categories" pills — keep the side padding when snapping/scrolling */
@media (max-width: 767px) {
  .rw-pills { scroll-padding-inline: var(--rw-pad-x); scroll-snap-type: none !important; padding-inline: var(--rw-pad-x) !important; }
  .rw-pills::after { content: ""; grid-row: 1 / -1; width: calc(var(--rw-pad-x) - 10px); }
}
