/* Shared desktop topnav + page shell — single source of truth */
:root {
  --site-max-width: 1200px;
  --site-pad-x: 16px;
  --top-nav-height: 64px;
  --top-nav-search-width: 18rem; /* 288px, matches former lg:w-72 */
  --top-nav-gap: 16px;
}

/* Always reserve vertical scrollbar so centered shells never shift */
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* Full-bleed bar; inner content shares the same axis as main */
.site-topnav,
header.site-topnav,
header[data-site-topnav] {
  display: block;
  width: 100%;
  height: var(--top-nav-height);
  left: 0;
  right: 0;
  box-sizing: border-box;
  background-color: #f9f9f9;
}

.top-nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: var(--top-nav-gap);
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-max-width);
  height: var(--top-nav-height);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--site-pad-x);
  padding-right: var(--site-pad-x);
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: var(--top-nav-gap);
  min-width: 0;
}

.top-nav-brand {
  font-family: Inter, "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  color: #ee4d2d !important;
  text-decoration: none;
}

.top-nav-search-wrap {
  display: none;
  position: relative;
  width: var(--top-nav-search-width);
  flex-shrink: 0;
}

.top-nav-search {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 0 2.5rem 0 1rem;
  border-radius: 9999px;
  border: 1px solid #e3beb6;
  background: #f3f3f3;
  font-family: "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  color: #1a1c1c;
  outline: none;
}

.top-nav-search:focus {
  border-color: #ee4d2d;
  box-shadow: 0 0 0 1px #ee4d2d;
}

.top-nav-search-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  color: #5b403b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-nav-search-btn:hover {
  color: #ee4d2d;
}

.top-nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.top-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.top-nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: #5b403b;
  text-decoration: none;
  cursor: pointer;
}

.top-nav-icon-btn:hover {
  color: #ee4d2d;
}

.top-nav-cart-badge {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: #ee4d2d;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1rem;
  text-align: center;
}

.top-nav-link {
  font-family: Inter, "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  padding-bottom: 4px;
  color: #5b403b;
  text-decoration: none;
}

.top-nav-link:hover {
  color: #ee4d2d;
}

.top-nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ee4d2d;
  transition: width 0.25s ease;
}

.top-nav-link:hover::after {
  width: 100%;
}

.top-nav-link.is-active {
  font-weight: 600;
  color: #ee4d2d !important;
}

.top-nav-link.is-active::after {
  width: 100%;
}

@media (min-width: 768px) {
  .top-nav-search-wrap,
  .top-nav-links {
    display: flex;
  }
}

.site-footer {
  width: 100%;
  margin-top: 24px;
  border-top: 1px solid #e3beb6;
  background-color: #f3f3f3;
  color: #1a1c1c;
  box-sizing: border-box;
}

.site-footer-inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 48px var(--site-pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .site-footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 16px;
  }
}

.site-footer-logo {
  display: inline-block;
  margin-bottom: 16px;
  font-family: Inter, "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #ee4d2d !important;
  text-decoration: none;
}

.site-footer-desc {
  margin: 0 0 16px;
  max-width: 20rem;
  font-family: "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 11px;
  line-height: 14px;
  color: #5b403b;
}

.site-footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #5b403b;
}

.site-footer-social .material-symbols-outlined {
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.site-footer-social .material-symbols-outlined:hover {
  color: #ee4d2d;
}

.site-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer-heading {
  margin: 0 0 8px;
  font-family: Inter, "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #1a1c1c;
}

.site-footer-col > a {
  font-family: "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #5b403b;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.site-footer-col > a:hover {
  color: #ee4d2d;
}

.site-footer-apps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer-app-btn {
  width: 6rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  background: #e8e8e8;
  font-family: "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 11px;
  line-height: 14px;
  color: #1a1c1c;
  cursor: pointer;
}

.site-footer-copy {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 16px var(--site-pad-x);
  border-top: 1px solid rgba(227, 190, 182, 0.5);
  text-align: center;
  font-family: "Be Vietnam Pro", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 11px;
  line-height: 14px;
  color: #5b403b;
}

.site-whatsapp-fab {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.site-whatsapp-fab:hover {
  transform: scale(1.08);
  color: #fff;
}

.site-whatsapp-fab .material-symbols-outlined {
  font-size: 24px;
}

/* Keep page mains + footer shells on the exact same horizontal axis as topnav */
.site-shell,
main.max-w-\[1200px\] {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: var(--site-pad-x) !important;
  padding-right: var(--site-pad-x) !important;
}

/* Crop fake chrome baked into Stitch hero art */
.hero-banner-frame {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e8e8e8;
}
.hero-banner-frame .hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 135%;
  top: -18%;
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
  transition: transform 2s ease-out;
}
.hero-banner-frame:hover .hero-banner-img {
  transform: scale(1.05);
}
