/* Cross-device fixes. Link AFTER alfa.css and pages.css on every page. */

/* stop iPhones from inflating text when the phone is turned sideways */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* 16px stops iOS Safari from zooming the whole page when the search box is tapped */
.yt-search .search {
  font-size: 16px;
}

/* finger-sized tap targets (about 44px) */
.nav-icon,
.qty-box button,
.remove-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
}

.chip {
  min-height: 44px;
}

/* 100vh is taller than the visible screen on phones (address bar); dvh is the real visible height.
   Browsers that do not know dvh keep the old vh rules. */
@supports (height: 100dvh) {
  .background-text-col,
  .page-wrap {
    min-height: 100dvh;
  }

}

/* a long word or product name can never push the page wider than the screen */
h1, h2, h3, h4, h5, h6,
.cart-name {
  overflow-wrap: anywhere;
}

body { overflow-x: hidden; background: #fff; color: #161111; font-family: "Inter", Arial, sans-serif; }
.top-info-inner { width: min(1200px, calc(100% - 32px)); gap: 12px; }
.top-info-inner a, .top-info-inner span { font-size: .72rem; }
.filter-bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 auto 22px;
  overflow-x: auto;
  padding: 2px 0 7px;
  scrollbar-width: thin;
}
.chip {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 15px;
  color: #343a36;
  background: #f4f5f5;
  border: 1px solid #e5e8e6;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.chip:hover { background: #eceeed; }
.chip.active { color: #fff; background: #0f3d2e; border-color: #0f3d2e; }
.featured-section { padding-top: 36px; }
.featured-top { align-items: flex-end; margin-bottom: 18px; }
.featured-top .section-heading { margin: 0; text-align: left; }
.featured-top .section-heading h2 { margin: 0; color: #161111; font-size: 1.55rem; }
.featured-top .section-heading > p:not(.eyebrow) { display: none; }
.featured-top .section-heading .eyebrow { color: #777d79; font-size: .68rem; }
.section-space { padding: 54px 0; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { color: #161111; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.site-button-primary, .site-button-secondary, .btn-primary { border-radius: 999px; }
.no-results { padding: 24px 0; color: #777d79; text-align: center; }
.no-results[hidden] { display: none; }
.site-footer { color: #fff; }

@media (max-width: 768px) {
  .top-info-inner { min-height: 32px; justify-content: space-between; gap: 8px; }
  .top-info-inner .top-offer { display: none; }
  .top-info-inner .top-shop-link { margin-left: auto; }
  .site-wrap { width: calc(100% - 32px); }
  .featured-section { padding-top: 24px; }
  .featured-top { align-items: center; gap: 10px; }
  .featured-top .section-heading h2 { font-size: 1.25rem; }
  .featured-top > .site-button-secondary { min-height: 40px; padding: 0 11px; font-size: .72rem; white-space: nowrap; }
  .alfa-card-home-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .card-body { padding-top: 9px; }
  .card-row .card-title { font-size: .78rem; }
  .card-price { font-size: .78rem; }
  .card-sub { font-size: .68rem; }
  .card-actions .btn { width: 100%; min-height: 44px; }
  .cart-layout { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .cart-summary-panel { position: static; }
  .orders-page { padding-top: 24px; }
  .pd-main { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .pd-details { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .pd-related-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
}
@media (max-width: 480px) {
  .top-info-inner { width: calc(100% - 24px); }
  .top-info-inner a, .top-info-inner span { font-size: .65rem; }
  .site-wrap { width: calc(100% - 24px); }
  .section-space { padding: 38px 0; }
  .filter-bar { margin-bottom: 16px; }
  .chip { min-height: 44px; padding: 0 13px; font-size: .73rem; }
  .alfa-card-home-container { gap: 18px 10px; }
  .alfa-card-home .card-img-wrap { padding: 9px; }
  .card-body { gap: 3px; padding-top: 8px; }
  .card-row { gap: 4px; }
  .card-row .card-title { font-size: .73rem; }
  .card-price-block { max-width: 42%; }
  .card-price, .card-price-ask { font-size: .72rem; }
  .card-old-price, .card-off-text { font-size: .62rem; }
  .card-sub { font-size: .65rem; }
  .card-specs { display: none; }
  .card-actions { padding-top: 7px; }
  .card-actions .btn { min-height: 44px; font-size: .74rem; }
  .cart-page-head { align-items: flex-start; flex-direction: column; }
  .cart-item { grid-template-columns: 68px minmax(0,1fr); gap: 9px 11px; }
  .cart-item img, .cart-image-placeholder { width: 68px; height: 68px; }
  .cart-info { grid-column: 2; grid-row: 1; }
  .cart-item-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; padding-left: 0; }
  .cart-line-subtotal { min-width: 0; text-align: left; }
  .cart-line-subtotal strong { display: inline; margin-left: 4px; }
  .cart-item .remove-btn { width: auto; padding: 0 8px; }
  .cart-item .qty-box button { width: 44px; min-width: 44px; height: 44px; }
  .cart-summary { padding: 17px; }
  .page-wrap-wide { padding: 14px 12px 32px; }
  .pd-photo { padding: 18px; }
  .pd-btn { min-width: 0; padding: 0 10px; font-size: .75rem; }
}

.catalog-hero,
.compact-banner {
  padding: 24px 28px;
  margin: 22px 0 20px;
  background: #fdf0e3;
  border: 1px solid #f5e5d6;
  border-radius: 10px;
}
.catalog-hero h1,
.compact-banner h1 {
  margin: 0 0 6px;
  color: #0f3d2e;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}
.catalog-hero p:last-child,
.compact-banner p:last-child { margin: 0; color: #626b66; font-size: .92rem; }
.catalog-hero .site-eyebrow,
.compact-banner .site-eyebrow { margin-bottom: 5px; }
.catalog-category-row {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  overflow-x: auto;
  padding: 1px 0 6px;
  scrollbar-width: thin;
}
.catalog-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.catalog-section-heading h2 {
  margin: 0;
  color: #161111;
  font-size: 1.45rem;
  font-weight: 800;
}
.catalog-section-heading .catalog-result-count { margin: 0; font-size: .8rem; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.catalog-filters { grid-template-columns: minmax(180px, 1.7fr) repeat(4, minmax(100px, 1fr)); }
.catalog-filters label,
.catalog-filters input,
.catalog-filters select { min-width: 0; }

.services-section { margin: 26px 0; }
.services-section-heading { margin: 0 0 16px; }
.services-section-heading h2 { margin: 0 0 4px; color: #161111; font-size: 1.4rem; }
.services-section-heading p { margin: 0; color: #777d79; font-size: .9rem; }
.services-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.services-card-grid .service-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
  border-radius: 9px;
  box-shadow: none;
}
.service-icon-tile {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #0f3d2e;
  background: #eaf3ee;
  border-radius: 7px;
}
.services-card-grid .service-icon-tile i {
  display: inline;
  width: auto;
  height: auto;
  color: inherit;
  background: transparent;
  border-radius: 0;
}
.services-card-grid .service-card h3 { margin-top: 13px; }
.service-enquire {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  margin-top: auto;
  color: #0f3d2e;
  background: #fff;
  border: 1px solid #9bb9a8;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.service-enquire:hover { color: #fff; background: #0f3d2e; text-decoration: none; }
.service-enquire i { width: auto; height: auto; color: inherit; background: transparent; }

@media (max-width: 900px) {
  .catalog-grid,
  .services-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-search-label { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .services-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .catalog-hero,
  .compact-banner { padding: 19px 16px; }
  .catalog-section-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
  .catalog-filters { grid-template-columns: 1fr; }
  .catalog-search-label { grid-column: 1; }
}