/* ===================================================================
   Al Rawnaq design layer — page level (shop, search, cart, wishlist,
   contact, product).  Loaded after figma.css.
   =================================================================== */

/* ---- shared ---- */
.container { max-width: none; padding-inline: var(--rw-pad-x); }
main { color: var(--navy); }

.rw-pill--white { background: #fff; }
.rw-pill--white:hover { background: var(--navy); color: #fff; }
.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; }

/* Yellow "can't find it?" banner (shop grid + search page) */
.rw-wa-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--yellow); color: var(--navy); border-radius: 24px; padding: 28px 32px;
}
.rw-wa-banner__tx h3 { margin: 0 0 6px; font-size: 18px; line-height: 26px; font-weight: 600; color: var(--navy); }
.rw-wa-banner__tx p { margin: 0; font-size: 14px; line-height: 22px; color: var(--navy); }
.rw-wa-banner .rw-btn { flex-shrink: 0; padding: 16px 28px; }
.rw-wa-banner .rw-btn img { width: 16px; height: 16px; }
.rw-wa-banner--grid { grid-column: 1 / -1; }
.rw-wa-banner--page { margin-top: 56px; padding: 36px 40px; border-radius: 28px; }
.rw-wa-banner--page h3 { font-size: 24px; line-height: 32px; font-weight: 700; }
.rw-wa-banner--page p { font-size: 14px; line-height: 22px; }
@media (max-width: 767px) {
  .rw-wa-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
}

/* Pagination: round 40px buttons, current = navy */
.pagination__step, .pagination__page,
:is(.shop-page, .search-page) .pagination__step,
:is(.shop-page, .search-page) .pagination__page {
  min-width: 40px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy);
  font-size: 14px; font-weight: 500;
}
:is(.shop-page, .search-page) .pagination__step:hover,
:is(.shop-page, .search-page) .pagination__page:hover { border-color: var(--navy); color: var(--navy); }
:is(.shop-page, .search-page) .pagination__page--current,
.pagination__page--current { background: var(--navy); border-color: var(--navy); color: #fff; }
:is(.shop-page, .search-page) .pagination { margin-top: 40px; gap: 8px; }

/* ===================================================================
   SHOP
   =================================================================== */
.shop-page { padding-bottom: 88px; }
.shop-hero__desc { margin: 10px 0 0; max-width: 60ch; font-size: 14px; line-height: 22px; color: var(--gray); }
.rw-rail { background: var(--offwhite); padding: 20px var(--rw-pad-x); display: flex; gap: 12px; flex-wrap: wrap; }
.rw-rail .rw-pill { padding: 13px 22px; }
.rw-rail .rw-pill.is-active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 500; }
.shop-layout { margin-top: 40px; }
@media (min-width: 992px) {
  .shop-layout { grid-template-columns: 216px minmax(0, 1fr); column-gap: 32px; }
}
.shop-grid { gap: 32px 24px; }

/* Filters sidebar → offwhite cards */
.pf-extra-card { background: var(--offwhite); border: 0; border-radius: 20px; box-shadow: none; padding: 20px; }
.cx-filters { padding: 0; background: transparent; }
.cx-filters__title { font-size: 16px; font-weight: 600; color: var(--navy); }
.cx-filters__group { background: var(--offwhite); border-radius: 20px; padding: 18px 20px; margin-bottom: 16px; border: 0; }
.cx-filters__clear { color: var(--waterloo); font-size: 14px; }
.cx-filters__chip { background: var(--yellowtint); color: var(--navy); border-radius: 999px; border: 0; font-size: 14px; }
.cx-filters__submit { border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; }
.cx-filters input[type="checkbox"], .pf-panel input[type="checkbox"] { accent-color: var(--navy); }
.cx-filters__value-count { color: var(--waterloo); font-size: 13px; }
.cx-filters__price input { border-radius: 12px; border: 1px solid var(--line); background: #fff; text-align: center; }
.pf-panel__footer { background: transparent; border: 0; }
.pf-dept__title { color: var(--navy); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.pf-dept__link { font-size: 14px; font-weight: 400; color: var(--navy); }
.pf-dept__link--active { color: var(--navy); font-weight: 600; }

/* Sort dropdown */
.sortby__btn { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); padding: 10px 18px; font-size: 14px; font-weight: 500; }
.sortby__menu { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(33, 34, 69, 0.12); }
.sortby__opt--active { color: var(--navy); font-weight: 600; background: var(--offwhite); }

/* ===================================================================
   SEARCH  (navy band with a big pill form)
   =================================================================== */
.search-hero-band:not([style*="background"]) { background: var(--navy); padding: 56px 0 48px; border: 0; }
.search-hero-band .container { max-width: none; padding-inline: var(--rw-pad-x); }
.search-hero__inner { max-width: none; margin: 0; align-items: stretch; gap: 20px; }
.search-hero__title { margin: 0; text-align: start; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
[dir="rtl"] .search-hero__title { letter-spacing: 0; }
.search-hero-band .search-form { display: flex; align-items: center; gap: 12px; width: 100%; max-width: none; margin: 0; background: #fff; border-radius: 999px; padding: 8px 8px 8px 28px; border: 0; box-shadow: none; }
[dir="rtl"] .search-hero-band .search-form { padding: 8px 28px 8px 8px; }
.search-hero-band .search-form__input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font-size: 16px; line-height: 26px; color: var(--navy); padding: 0; height: auto; }
.search-hero-band .search-form__submit { position: static; transform: none; height: auto; width: auto; border: 0; cursor: pointer; background: var(--yellow); color: var(--navy); padding: 14px 28px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.search-hero-band .search-form__submit svg { display: none; }
.search-hero__count { margin: 0; font-size: 14px; line-height: 22px; color: var(--navytint); }
.search-hero-band .cx-path { display: none; }
.search-page { padding-bottom: 0; background: #fff; }
.search-shell { margin-top: 48px; padding-bottom: 72px; }
.search-query-line { display: none; }
.search-products-heading { font-size: 14px; font-weight: 400; color: var(--gray); border: 0; padding: 0; margin: 0 0 24px; }
.search-results-grid { gap: 32px 24px; justify-content: stretch; }
.search-page .product-card, .search-page .cx-product-card { border: 0 !important; border-radius: 0 !important; box-shadow: none; overflow: visible; }
.search-page .product-card:hover { border-color: transparent !important; }
.search-page .cx-product-card__media img { border-radius: 0 !important; }
.search-intro__icon { background: var(--offwhite); color: var(--waterloo); border-radius: 999px; }
.search-intro__title { color: var(--navy); }
.search-intro__desc { color: var(--gray); }

/* ===================================================================
   CART
   =================================================================== */
.cart-page { padding-bottom: 88px; }
.cart-body { margin-top: 48px; }
@media (min-width: 992px) {
  .cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
}
.cart-products { border: 0; padding: 0; background: transparent; box-shadow: none; }
.cart-products__top, .cart-products__head { display: none !important; }
.cart-list { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.cx-cart-item { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: none; }
.cx-cart-item__media { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 16px; overflow: hidden; background: var(--graytint); }
.cx-cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cx-cart-item__title { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--navy); }
.cx-cart-item__variant, .cx-cart-item__size, .cx-cart-item__meta { font-size: 14px; color: var(--waterloo); }
.cx-cart-item__col--price { font-size: 14px; color: var(--gray); }
.cx-cart-item__col--subtotal { font-size: 14px; font-weight: 600; color: var(--navy); }
.cx-cart-qty-select { display: inline-flex; align-items: center; gap: 4px; background: var(--offwhite); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.cx-cart-qty-btn { width: 32px; height: 32px; border: 0; border-radius: 999px; background: #fff; color: var(--navy); cursor: pointer; font-size: 16px; }
.cx-cart-qty-value { min-width: 28px; text-align: center; font-size: 14px; font-weight: 500; color: var(--navy); }
.cx-cart-item__remove { width: 32px; height: 32px; border-radius: 999px; background: var(--offwhite); color: var(--navy); border: 0; }

.cart-summary-col { display: flex; flex-direction: column; gap: 16px; background: var(--offwhite); border-radius: 28px; padding: 32px; }
.cart-summary { background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.cart-summary__title { margin: 0 0 20px; font-size: 24px; line-height: 32px; font-weight: 600; color: var(--navy); }
.cart-summary__row { display: flex; justify-content: space-between; font-size: 14px; color: var(--waterloo); padding: 6px 0; }
.cart-summary__row--total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 20px; align-items: baseline; font-size: 16px; font-weight: 600; color: var(--navy); }
.cart-summary__row--total span:last-child { font-size: 28px; line-height: 36px; font-weight: 700; }
.cart-summary__branch { font-size: 14px; color: var(--waterloo); margin: 8px 0 0; }
.cart-summary__checkout { display: flex; align-items: center; justify-content: center; gap: 8px; height: auto; padding: 16px 28px; background: var(--navy); color: #fff; border-radius: 999px; border: 0; text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; }
.cart-summary__continue { font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.cart-empty__btn, .wishlist-empty__btn { display: inline-flex; background: var(--navy); color: #fff; border-radius: 999px; padding: 16px 32px; font-weight: 600; text-decoration: none; }
.cart-empty__title, .wishlist-empty__title { color: var(--navy); font-weight: 700; text-transform: none; }
.rw-trust { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.rw-trust span { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--waterloo); }
.rw-trust svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--navy); }

/* ===================================================================
   WISHLIST
   =================================================================== */
.wishlist-page { padding-bottom: 88px; }
.wishlist-body { margin-top: 40px; }
.wishlist-count { display: none; }
.wishlist-grid { gap: 40px 24px; }

/* ===================================================================
   CONTACT
   =================================================================== */
.ctc { color: var(--navy); padding-bottom: 0; }
.ctc-hero:not([style*="background"]) { text-align: start; margin-bottom: 0; }
.ctc-hero__title { text-transform: none; letter-spacing: -0.01em; }
.ctc-hero__desc { margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--gray); }
.ctc-hero .container { display: flex; flex-direction: column; }
.ctc-hero .cx-path { order: -1; }
.ctc-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-block: 48px 0; }
.ctc-method { background: var(--offwhite); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ctc-method--dark { background: var(--navy); color: #fff; }
.ctc-method__ico { width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ctc-method__ico img { width: 22px; height: 22px; }
.ctc-method h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: inherit; }
.ctc-method__value { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: inherit; text-decoration: none; }
.ctc-method--dark .ctc-method__value { color: var(--yellow); }
.ctc-method p { margin: 0 0 8px; font-size: 14px; line-height: 22px; color: var(--gray); }
.ctc-method--dark p { color: var(--navytint); }
.ctc-method .rw-btn { padding: 12px 22px; margin-top: auto; }
.ctc-method .rw-btn img { width: 16px; height: 16px; }
.ctc-grid { max-width: none; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; margin-top: 72px; margin-bottom: 72px; }
.ctc-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: none; }
.ctc-card__head { border: 0; padding: 32px 32px 0; }
.ctc-card__label { font-size: 20px; line-height: 28px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--navy); }
.ctc-card__body { padding: 8px 32px 32px; }
.ctc-intro { color: var(--gray); font-size: 14px; }
.ctc-field > span { font-size: 14px; font-weight: 500; color: var(--navy); }
.ctc-field input, .ctc-field textarea, .ctc-field select { border: 1px solid var(--line); border-radius: 12px; background: var(--offwhite); padding: 12px 14px; font: 400 14px/22px var(--font-body); color: var(--navy); width: 100%; }
.ctc-field input:focus, .ctc-field textarea:focus, .ctc-field select:focus { outline: 0; border-color: var(--navy); background: #fff; }
.ctc-submit { border-radius: 999px; background: var(--navy); height: auto; padding: 16px 28px; font-size: 14px; text-transform: none; letter-spacing: 0.02em; }
.ctc-aside { display: flex; flex-direction: column; gap: 16px; }
.ctc-hours { background: var(--navy); color: #fff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ctc-hours h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; font-weight: 600; color: #fff; }
.ctc-hours h3 img { width: 18px; height: 18px; }
.ctc-hours div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 22px; }
.ctc-hours strong { font-weight: 400; color: var(--navytint); }
.ctc-hours span { font-weight: 600; font-size: 14px; }
.ctc-map { display: block; border-radius: 24px; overflow: hidden; height: 140px; background: var(--graytint); }
.ctc-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctc-addr { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy); }
.ctc-addr img { width: 16px; height: 16px; }
.ctc-bulk-sec { background: var(--offwhite); padding: 72px var(--rw-pad-x); }
.ctc-bulk { background: var(--yellow); border-radius: 28px; padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: var(--navy); }
.ctc-bulk__tx { max-width: 560px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ctc-bulk__tx h2 { margin: 0; font-size: 32px; line-height: 40px; font-weight: 700; }
.ctc-bulk__tx p { margin: 0; font-size: 14px; line-height: 22px; }
.ctc-bulk__tx .rw-eyebrow { color: var(--navy); }
.ctc-bulk__side { display: flex; align-items: center; gap: 32px; }
.ctc-bulk__ico { width: 130px; height: 130px; border-radius: 24px; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ctc-bulk__ico img { width: 52px; height: 52px; }
.ctc-faq-sec { background: #fff; padding: 72px var(--rw-pad-x); }
.ctc-faq-sec h2 { margin: 0 0 24px; font-size: 32px; line-height: 40px; font-weight: 700; color: var(--navy); }
@media (max-width: 999px) {
  .ctc-methods { grid-template-columns: 1fr; }
  .ctc-grid { grid-template-columns: 1fr; margin-block: 48px; }
  .ctc-bulk { flex-direction: column; align-items: flex-start; padding: 28px; }
  .ctc-bulk__ico { display: none; }
}

/* ===================================================================
   PRODUCT PAGE
   =================================================================== */
.pdp-title { font-size: 32px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.pdp-price { font-size: 28px; line-height: 36px; font-weight: 700; color: var(--navy); letter-spacing: 0; }
.pdp-save-pill { background: var(--yellowtint); color: var(--navy); border-radius: 999px; font-weight: 500; }
.pdp-add { background: var(--navy); color: #fff; border-radius: 999px; font-weight: 600; letter-spacing: 0.02em; }
.pdp-add:hover { background: #2d2e5c; }
.pdp-stepper { border: 1px solid var(--line); border-radius: 999px; background: var(--offwhite); }
.pdp-stepper__btn { border-radius: 999px; background: #fff; color: var(--navy); }
.pdp-swatch__chip, .pdp-select { border-radius: 999px; border-color: var(--line); color: var(--navy); }
.pdp-swatch__input:checked + .pdp-swatch__chip, .pdp-swatch__input:checked ~ .pdp-swatch__chip { border-color: var(--navy); border-width: 1.5px; }
.pdp-thumbs img, .pdp-thumb { border-radius: 16px; }
.pdp-hero:not([style*="background"]) { background: #fff; padding-block: 24px 8px; }
.pdp-stars { color: var(--yellow); }
.pdp-wishlist-form button { border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); }

/* Search: filter sidebar + results (same layout as the shop) */
.search-layout { display: grid; grid-template-columns: 1fr; gap: 0; align-items: start; }
.search-layout .pf-root { grid-column: 1; }
.search-layout:not(:has(.pf-panel)) { grid-template-columns: 1fr; }
@media (min-width: 992px) {
  .search-layout { grid-template-columns: 216px minmax(0, 1fr); column-gap: 32px; }
  .search-layout:not(:has(.pf-panel)) { grid-template-columns: 1fr; }
}
.search-layout .search-main { min-width: 0; }
.search-layout .sortby { margin-bottom: 20px; }

/* Category rail: one scrolling row like the Figma */
.rw-rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.rw-rail::-webkit-scrollbar { display: none; }
.rw-rail .rw-pill { flex: 0 0 auto; }

/* Category page: same body layout as the shop */
.category-page { padding-bottom: 88px; }
.cat-layout { margin-top: 40px; }
@media (min-width: 992px) { .cat-layout { grid-template-columns: 216px minmax(0, 1fr); column-gap: 32px; } .cat-layout:not(:has(.pf-panel)) { grid-template-columns: 1fr; } }
.cat-grid { gap: 32px 24px; }
.cat-hero__desc { margin: 10px 0 0; max-width: 60ch; font-size: 14px; line-height: 22px; color: var(--gray); }
.cat-empty__title { color: var(--navy); font-weight: 700; text-transform: none; }
.category-page .pagination { margin-top: 40px; gap: 8px; }

/* Cart: the offer card spans the full width of the item cards (no side margin) with a gap below it */
.cart-products { padding: 0 !important; }
.cart-products .ox-offer-card, .cart-products .ox-offer-progress, .cart-products .ox-offer-card.ox-offer-progress {
  margin: 0 0 16px !important; width: auto; max-width: none; box-sizing: border-box;
}
.cart-products > :not(.cart-list) { margin-inline: 0; }

.search-products-heading, .search-query-line { display: none; }

/* ===== Cart quantity stepper: outlined pill, soft round − / + buttons, plain number ===== */
.cx-cart-qty-select {
  display: inline-flex !important; align-items: center !important; justify-content: center; gap: 6px;
  padding: 5px !important; margin: 0 !important;
  background: #fff !important; border: 1.5px solid var(--line) !important; border-radius: 999px !important; overflow: visible !important;
}
.cx-cart-qty-btn {
  width: 38px !important; height: 38px !important; min-width: 38px; padding: 0 !important; margin: 0 !important;
  border: 0 !important; border-radius: 999px !important; background: var(--offwhite) !important; color: var(--navy) !important;
  display: flex !important; align-items: center; justify-content: center; font-size: 22px !important; line-height: 1; font-weight: 700 !important; cursor: pointer;
  transition: background-color 0.15s ease;
}
.cx-cart-qty-btn:hover { background: var(--navytint) !important; }
.cx-cart-qty-value {
  min-width: 34px !important; width: auto !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: transparent !important;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 18px !important; line-height: 1 !important; font-weight: 500 !important; color: var(--navy) !important;
}

/* card padding capped at 14px on the other pages' cards too */
.ctc-method, .ctc-hours, .ctc-card__body { padding: 14px; }
.ctc-card__head { padding: 14px 14px 0; }
.ctc-bulk { padding: 14px 18px; }
.rw-wa-banner, .rw-wa-banner--grid, .rw-wa-banner--page { padding: 14px; }

.ctc-method, .ctc-hours, .ctc-card__body { padding: 16px; }
.ctc-card__head { padding: 16px 16px 0; }
.ctc-bulk { padding: 16px 20px; }
.rw-wa-banner, .rw-wa-banner--grid, .rw-wa-banner--page { padding: 16px; }

/* Contact: all branches (tabs), taller map */
.ctc-map { height: 320px; position: relative; }
.ctc-map iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.ctc-branch { display: flex; flex-direction: column; gap: 16px; }
.ctc-branch[hidden] { display: none; }
.ctc-branch-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ctc-branch-tabs::-webkit-scrollbar { display: none; }
.ctc-branch-tab { flex: 0 0 auto; white-space: nowrap; cursor: pointer; font: 500 13px/18px var(--font-body); padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--navy); border: 1px solid var(--line); }
.ctc-branch-tab.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.ctc-addr { align-items: flex-start; text-decoration: none; }
.ctc-addr img { margin-top: 3px; flex-shrink: 0; }
@media (max-width: 767px) { .ctc-map { height: 240px; } }

/* Mobile: contact method cards — icon at the start, no description paragraph */
@media (max-width: 767px) {
  .ctc-method { display: grid !important; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; padding: 16px !important; }
  .ctc-method > p:not(.ctc-method__value) { display: none !important; }
  .ctc-method__ico { grid-column: 1; grid-row: 1 / span 2; margin: 0 !important; }
  .ctc-method > h3 { grid-column: 2; grid-row: 1; margin: 0 !important; align-self: end; }
  .ctc-method > .ctc-method__value { grid-column: 2; grid-row: 2; margin: 0 !important; align-self: start; }
  .ctc-method > .rw-btn { grid-column: 1 / -1; grid-row: 3; margin-top: 14px; justify-self: start; }
}
.ctc-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 767px) { .ctc-methods { grid-template-columns: 1fr; } }

/* Desktop: all branch tabs visible (wrap instead of clipping) */
@media (min-width: 768px) { .ctc-branch-tabs { flex-wrap: wrap; overflow: visible; } }

/* Contact form: white inputs */
.ctc-field input, .ctc-field textarea, .ctc-field select { background: #fff !important; }
.ctc-field:has(select) { grid-column: 1 / -1; }
.ctc-field select { width: 100%; box-sizing: border-box; }

/* Contact form order: name + phone first, then email (full width), then the rest */
.ctc-form > .ctc-field--full:has(input[type="email"]) { order: 1; }
.ctc-form > .ctc-field:has(select), .ctc-form > .ctc-field:has(textarea), .ctc-form > .ctc-submit { order: 2; }
.ctc-form > .ctc-field:has(input[type="text"]), .ctc-form > .ctc-field:has(input[type="tel"]) { order: 0; }

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

/* Mobile: hide the bulk-quote description */
@media (max-width: 767px) { .ctc-bulk__tx > p:not(.rw-eyebrow) { display: none !important; } }

/* Mobile contact: keep everything inside the screen width */
@media (max-width: 767px) {
  .ctc-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .ctc-grid > *, .ctc-aside, .ctc-branches, .ctc-branch { min-width: 0; max-width: 100%; }
  .ctc-aside { gap: 12px; }
  .ctc-form { grid-template-columns: minmax(0, 1fr); }
  .ctc-form .ctc-field, .ctc-form .ctc-field input, .ctc-form .ctc-field select, .ctc-form .ctc-field textarea { max-width: 100%; box-sizing: border-box; }
  .ctc-map { border-radius: 20px; height: 220px; }
  .ctc-addr { padding: 10px 12px; background: var(--offwhite); border-radius: 12px; }
}
