/* ==========================================================================
   Desert Hamster · v2.7 fixes
   Accessibility, search, enquiry list, legal pages, 320px header
   ========================================================================== */

:root {
  --muted-2: #5f6a67;
}

html {
  scroll-padding-top: 150px;
}

[id] {
  scroll-margin-top: 150px;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  inset-block-start: 12px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink-strong);
  color: #fff;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* header ---------------------------------------------------------------- */
.nav-toggle {
  width: 44px;
  height: 44px;
}

.header-cta {
  align-self: center;
}

.icon-action--search-mobile {
  display: none;
}

@media (max-width: 960px) {
  .header-cta {
    display: none;
  }
  .icon-action--search-mobile {
    display: grid;
  }
}

@media (max-width: 360px) {
  .brand__word {
    font-size: 17px;
  }
  .brand__reg {
    display: none;
  }
  .header-top__inner {
    gap: 8px;
  }
}

/* carousel controls ----------------------------------------------------- */
.hero-dot {
  position: relative;
  width: 32px;
  height: 24px;
  border-radius: 0;
  background: transparent !important;
  transition: none;
}

.hero-dot::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  transform: translate(-50%, -50%);
  transition: width var(--t-mid) var(--ease), background var(--t-fast) var(--ease);
}

.hero-dot.is-active::before {
  width: 26px;
  border-radius: 999px;
  background: #fff;
}

.hero-pause {
  display: grid;
  place-items: center;
}

.hero-pause svg {
  width: 16px;
  height: 16px;
}

.announce__arrow {
  width: 40px;
  height: 40px;
}

.drawer__close {
  width: 44px;
  height: 44px;
}

/* offer band ------------------------------------------------------------ */
.offer-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* breadcrumb / page hero ------------------------------------------------ */
.page-hero {
  padding-block: 54px 44px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.page-hero .breadcrumb {
  margin-bottom: 18px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.page-hero .lede {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

/* search ---------------------------------------------------------------- */
.search-page__form {
  display: flex;
  gap: 10px;
  max-width: 720px;
  margin-top: 24px;
}

.search-page__form input {
  flex: 1 1 auto;
  min-height: 52px;
  padding-inline: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  font: inherit;
}

.search-page__form input:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.search-tabs {
  margin-top: 6px;
}

.search-tabs .tabs__btn {
  border: 0;
  background: none;
  cursor: pointer;
}

.search-status {
  margin-block: 18px 8px;
  color: var(--muted);
  font-size: 14px;
}

.search-empty {
  margin-top: 34px;
}

/* enquiry list ---------------------------------------------------------- */
.enquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 54px;
  align-items: start;
}

.enquiry-list {
  display: grid;
  gap: 16px;
}

.enquiry-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.enquiry-item img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: var(--r-sm);
}

.enquiry-item__name {
  font-weight: 700;
}

.enquiry-item__sku {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.enquiry-item__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.enquiry-qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
}

.enquiry-qty button {
  width: 34px;
  height: 38px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 18px;
}

.enquiry-qty input {
  width: 44px;
  height: 38px;
  border: 0;
  text-align: center;
  font: inherit;
}

.enquiry-remove {
  border: 0;
  background: none;
  color: var(--muted-2);
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
}

.enquiry-form {
  position: sticky;
  top: 160px;
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.form__title {
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}

.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
}

.form__status {
  min-height: 20px;
  margin: 0;
  font-size: 14px;
}

.form__status.is-ok {
  color: #1d6b3f;
}

.form__status.is-error {
  color: #a11d1d;
}

.field__input[aria-invalid="true"],
.field__select[aria-invalid="true"],
.field__textarea[aria-invalid="true"] {
  border-color: #a11d1d;
}

/* legal pages ----------------------------------------------------------- */
.legal-hero {
  padding-block: 54px 40px;
  background: var(--surface);
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-top: 8px;
}

.legal-lead {
  max-width: 66ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
}

.legal-updated {
  display: block;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 13px;
}

.legal-body {
  padding-block: 44px;
}

.legal-section {
  max-width: 76ch;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
}

.legal-section p {
  margin-top: 10px;
  color: var(--muted);
}

.legal-entity {
  max-width: 900px;
  margin-block: 20px 60px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.legal-entity h2 {
  margin-block: 6px 16px;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
}

.legal-entity dl {
  display: grid;
  gap: 10px;
}

.legal-entity dl > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.legal-entity dt {
  color: var(--muted-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-entity dd {
  font-weight: 600;
}

.legal-entity p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* footer ---------------------------------------------------------------- */
.footer-wa {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* toast ----------------------------------------------------------------- */
.toast {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 26px;
  z-index: 210;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.toast__inner {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink-strong);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-2);
}

/* product page tweaks --------------------------------------------------- */
.page-product .pdp__title {
  font-size: clamp(34px, 4vw, 54px);
}

.page-product .pdp__chips {
  min-height: 0;
}

/* legal/content responsive --------------------------------------------- */
@media (max-width: 960px) {
  html,
  [id] {
    scroll-padding-top: 132px;
    scroll-margin-top: 132px;
  }

  .enquiry-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .enquiry-form {
    position: static;
  }

  .legal-entity dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .search-page__form {
    flex-direction: column;
  }

  .enquiry-item {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .enquiry-item img {
    width: 74px;
    height: 74px;
  }

  .enquiry-item__tools {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .hero-dot {
    width: 28px;
  }
}

@media print {
  .site-header,
  .mobile-bar,
  .drawer,
  .announce,
  .preview-bar,
  .offer-band,
  .trust-bar {
    display: none !important;
  }

  .site-footer {
    margin: 0;
    padding: 0;
    background: none;
    color: #000;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 11px;
  }
}

[hidden],
.icon-action__badge[hidden],
.product-card[hidden],
.tabpanel[hidden],
.search-empty[hidden],
[data-enquiry-empty][hidden] {
  display: none !important;
}


@media (max-width: 960px) {
  .header-actions {
    gap: 2px;
  }
  .header-actions .icon-action {
    min-width: 44px;
    padding: 6px 4px;
  }
  .header-actions .icon-action__label {
    display: none;
  }
  .brand__word {
    font-size: 19px;
  }
}

@media (max-width: 960px) {
  .header-actions a.icon-action--search-mobile {
    display: grid;
  }
}

@media (max-width: 960px) {
  .header-actions .icon-action.icon-action--search-mobile {
    display: grid !important;
  }
}

@media (max-width: 420px) {
  .brand__word,
  .brand__reg {
    display: none;
  }
  .brand__mark {
    width: 44px;
    height: 51px;
  }
}

.footer-col h3 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

:lang(zh-CN) .footer-col h3 {
  letter-spacing: 0.06em;
}

@media (max-width: 420px) {
  .offer-band__actions .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .mobile-bar__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mobile-bar__item {
    min-width: 0;
    padding-inline: 2px;
    font-size: 11px;
  }
  .mobile-bar__item span {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .form,
  .enquiry-form {
    padding: 20px;
  }
}

@media (max-width: 600px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-grid > *,
  .form,
  .field,
  .field-row,
  .contact-card {
    min-width: 0;
  }
  .field__input,
  .field__select,
  .field__textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.search__input:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip-link:focus,
.search__input:focus {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip-link:focus {
  transform: none;
}

@media (max-width: 600px) {
  .contact-card {
    min-width: 0;
    padding: 22px;
  }
  .pdp__meta div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .pdp__meta strong {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .pdp__meta {
    min-width: 0;
    max-width: 100%;
  }
  .pdp__meta span {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 600px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .pdp__meta {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand__word,
  .brand__reg {
    display: none;
  }
}

/* WhatsApp call-to-action buttons: green only, brand palette unchanged */
:root {
  --wa-1: #25d366; /* WhatsApp green */
  --wa-2: #07c160; /* WeChat green */
  --wa-hover: #08b45a;
  --wa-ink: #063d24;
}

.btn--wa {
  background: linear-gradient(135deg, var(--wa-1), var(--wa-2));
  border-color: var(--wa-2);
  color: var(--wa-ink);
  font-weight: 800;
}

.btn--wa:hover,
.btn--wa:focus-visible {
  background: var(--wa-hover);
  border-color: var(--wa-hover);
  color: var(--wa-ink);
}

.btn--wa:focus-visible {
  outline: 3px solid var(--wa-2);
  outline-offset: 2px;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

/* Kitchen hero matches the e-bike slide: blue panel, photo-style product card */
.hero__photo--product {
  position: relative;
  display: block;
  width: min(100%, 470px);
  aspect-ratio: 4 / 3;
  background: #fff;
}

.hero__photo--product img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
  padding: 0;
}

.hero__slide--brand .hero__photo--product img {
  filter: none;
}
