@font-face {
  font-family: Changa; src: url('/assets/font0.ttf'); font-weight: 600; font-display: swap;
}
@font-face {
  font-family: Plex; src: url('/assets/font1.ttf'); font-weight: 400; font-display: swap;
}
@font-face {
  font-family: Plex; src: url('/assets/font2.ttf'); font-weight: 600; font-display: swap;
}

:root {
  --navy: #192944; --mint: #88bbb5; --paper: #f7f4ec; --ink: #27363b; --clay: #aa452b;
  --rule: #19294430; --muted: #505b65; --ease: cubic-bezier(.2,.7,.25,1);
  color: var(--ink); background: var(--paper); font: 16px/1.65 Plex, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 22px; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--navy); }
h1, h2 { font: 600 2rem/1.25 Changa, Plex, sans-serif; }
svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, footer :focus-visible { outline-color: var(--mint); }
::selection { background: var(--mint); color: var(--navy); }
.container { width: min(1600px, calc(100% - clamp(36px, 9vw, 160px))); margin-inline: auto; }
.skip { position: fixed; z-index: 4; inset: 12px auto auto 12px; background: var(--paper); color: var(--navy); padding: 10px 16px; translate: 0 -180%; }
.skip:focus { translate: 0; }

.site-header, .hero, footer { color: var(--paper); background: var(--navy); }
.header-inner, .footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.header-inner { min-height: 74px; }
.site-header { border-bottom: 1px solid #88bbb548; }
.wordmark { width: fit-content; display: grid; justify-items: center; gap: 4px; }
.wordmark img { height: auto; filter: brightness(0) invert(.96); }
.wordmark span { font: 600 11px/1.4 Plex, sans-serif; letter-spacing: .19em; }
.main-nav, .header-actions, .footer-links { display: flex; gap: clamp(14px, 3.3vw, 52px); align-items: center; }
.header-actions { gap: 11px; justify-self: end; }
.main-nav a, .footer-links a { text-underline-offset: 5px; transition: color .18s; }
.main-nav a:hover, .footer-links a:hover { color: var(--mint); text-decoration: underline; }
.header-actions button, .outline-button {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 5px 12px; border: 1px solid #88bbb565; background: none; border-radius: 6px;
  transition: border-color .2s, background-color .2s; font-size: .88rem;
}
.header-actions button:hover, .outline-button:hover { border-color: var(--mint); background: #88bbb521; }
.outline-button svg { width: 17px; }

.hero { position: relative; overflow: clip; padding: clamp(28px, 4vw, 58px) 0 36px; }
.hero-intro, .hero-action { text-align: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6rem); line-height: 1.16; color: var(--paper); text-wrap: balance; }
.hero p { color: #dce5e6; max-width: 55ch; margin: 10px auto 0; font-size: clamp(1rem, 1.35vw, 1.19rem); text-wrap: balance; }
.hero-intro { animation: intro .65s var(--ease) both; }
.hero-action { margin-top: 18px; animation: intro .8s .13s var(--ease) both; }
.hero-stage { min-width: 0; }
.fallback-mascot { width: min(70%, 375px); height: clamp(230px, 33vw, 425px); margin: auto; object-fit: contain; }
@keyframes intro { from { opacity: .2; transform: translateY(14px); } }
.button {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  padding: 8px 19px; border: 1px solid transparent; border-radius: 7px; font-weight: 600;
  transition: transform .23s var(--ease), background-color .2s, box-shadow .23s var(--ease);
}
.button svg { width: 20px; height: 20px; }
.button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px #11182724; }
.button:active { transform: translateY(1px); }
.button-light { background: var(--mint); color: var(--navy); }
.button-clay { background: var(--clay); color: var(--paper); }

.catalog { padding-block: clamp(58px, 7vw, 105px); }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.catalog-heading h2, .support h2 { font-size: clamp(2.1rem, 5vw, 4.5rem); text-wrap: balance; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid var(--rule); border-radius: 7px; padding: 4px 12px; width: min(100%, 330px); }
.search-box:focus-within { border-color: var(--navy); }
.search-box svg { flex: 0 0 19px; width: 19px; color: var(--navy); }
.search-box input { width: 100%; min-height: 39px; background: transparent; border: 0; padding: 5px 0; outline: none; }
.search-box input::placeholder { color: var(--muted); }
.catalog-layout { display: grid; grid-template-columns: minmax(170px, 18%) minmax(0, 1fr); gap: clamp(24px, 4vw, 62px); margin-top: 23px; }
.categories { align-self: start; }
.categories h3, .results h3 { font-size: 1.12rem; font-weight: 600; }
#filters { display: grid; gap: 3px; margin-top: 13px; }
.filter {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 44px;
  text-align: start; padding: 7px 11px; background: none; border: 1px solid transparent; border-radius: 7px;
  transition: background-color .18s, border-color .18s;
}
.filter:hover { border-color: var(--rule); }
.filter[aria-pressed="true"] { background: var(--navy); color: var(--paper); }
.filter[aria-pressed="true"] svg { color: var(--mint); }
.filter svg { flex: 0 0 16px; width: 16px; }
[dir=ltr] .rtl-arrow { scale: -1 1; }
.results { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.results span { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; row-gap: 27px; min-width: 0; }
.product-card { min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.product-art { display: block; background: none; padding: 0; border: 0; width: 100%; }
.product-picture {
  display: grid; place-items: center; width: 100%; overflow: hidden; aspect-ratio: 1.43;
  border-radius: 12px; background: var(--navy); color: var(--paper);
}
.product-picture img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.product-picture strong { padding: 10px; overflow-wrap: anywhere; }
.product-info { padding: 11px 1px 0; }
.product-category, .product-price, .detail-category { color: var(--muted); font-size: .87rem; }
.product-info h3 { font-size: clamp(1.05rem, 1.5vw, 1.5rem); overflow-wrap: anywhere; line-height: 1.4; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 10px; margin-top: 5px; }
.details-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 4px; font-weight: 600; font-size: .88rem; }
.details-button svg { width: 16px; transition: translate .2s var(--ease); }
.details-button:hover { text-decoration: underline; }
.details-button:hover svg { translate: -3px 0; }
[dir=ltr] .details-button:hover svg { translate: 3px 0; }
.catalog-state { grid-column: 1 / -1; padding: 24px 0; }

.questions { background: var(--mint); color: var(--navy); }
.questions-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(26px, 7vw, 110px); padding-block: clamp(48px, 7vw, 105px); }
.support h2 { margin-bottom: 18px; }
.faq details { padding: 13px 0; border-bottom: 1px solid #19294450; }
.faq details:first-child { border-top: 1px solid #19294450; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.06rem; }
.faq details p { margin-top: 8px; max-width: 60ch; }
.faq details[open] p { animation: intro .24s var(--ease) both; }
.footer-inner { min-height: 108px; }
.footer-inner > span { justify-self: end; color: #dce5e6; font-size: .9rem; }

dialog { width: min(520px, calc(100% - 28px)); max-height: 88dvh; overflow: auto; color: var(--ink); background: var(--paper); border: 0; border-radius: 14px; padding: 23px; }
dialog[open] { animation: intro .25s var(--ease) both; }
dialog::backdrop { background: #192944c8; }
body:has(dialog[open]) { overflow: hidden; }
.close { display: grid; place-items: center; width: 40px; height: 40px; margin-inline-start: auto; color: var(--navy); border: 1px solid var(--rule); border-radius: 7px; background: transparent; }
.close svg { width: 21px; }
.close:hover { background: #19294412; }
#detail-title { margin-bottom: 12px; overflow-wrap: anywhere; }
#detail-content p { margin-bottom: 12px; overflow-wrap: anywhere; }
.detail-photo { width: 100%; max-height: 38dvh; object-fit: contain; border-radius: 10px; background: var(--navy); margin-bottom: 15px; }
.product-description { white-space: pre-wrap; }
.detail-category { margin: 0!important; }
.payment { display: grid; grid-template-columns: 1fr 1.2fr; gap: 7px; }
.payment dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
#order-status:not(:empty) { margin-top: 10px; }

@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 730px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .categories { min-width: 0; }
  #filters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
  .filter { width: auto; min-height: 38px; border-color: var(--rule); padding: 4px 8px; font-size: .9rem; }
  .filter svg { display: none; }
  .questions-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner > span { justify-self: start; grid-column: 1 / -1; }
  .footer-inner { padding-block: 21px; }
}
@media (max-width: 510px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 12px; padding-top: 12px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 24px; margin-top: 7px; padding-bottom: 7px; font-size: .92rem; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-actions button, .outline-button { min-height: 35px; }
  .wordmark img { width: 85px; }
  .hero { padding-top: 25px; }
  .hero h1 { font-size: clamp(2.2rem, 9.8vw, 3rem); }
  .hero-action { margin-top: 12px; }
  .catalog-heading { flex-direction: column; align-items: stretch; gap: 12px; }
  .search-box { width: 100%; }
  .product-grid { column-gap: 11px; }
  .product-category, .product-price { font-size: .78rem; }
  .footer-links { gap: 11px; font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
  .button:hover, .button:active { transform: none; }
}
