/* ==========================================================================
   Home of Hai — hand-written stylesheet
   All values extracted 1:1 from the original Nuxt inline CSS.
   ========================================================================== */

/* ---- Fonts (reused from fonts/) ------------------------------------- */
@font-face {
  font-family: "Forma Nuovo";
  font-style: normal;
  font-weight: 400;
  src: url(fonts/tt-forma-nuova-neretta.woff2) format("woff2"),
       url(fonts/tt-forma-nuova-neretta.woff) format("woff");
}
@font-face {
  font-family: "Forma Nuovo Italic";
  font-style: normal;
  font-weight: 400;
  src: url(fonts/tt-forma-nuova-neretta-corsiva.woff2) format("woff2"),
       url(fonts/tt-forma-nuova-neretta-corsiva.woff) format("woff");
}
@font-face {
  font-family: "Forma Nuovo Bold";
  font-style: normal;
  font-weight: 400;
  src: url(fonts/tt-forma-nuova-nera.woff2) format("woff2"),
       url(fonts/tt-forma-nuova-nera.woff) format("woff");
}
@font-face {
  font-family: "Times Now";
  font-style: normal;
  font-weight: 400;
  src: url(fonts/TimesNow-SemiLight.woff2) format("woff2"),
       url(fonts/TimesNow-SemiLight.woff) format("woff"),
       url(fonts/TimesNow-SemiLight.ttf) format("truetype");
}
@font-face {
  font-family: "Times Now Italic";
  font-style: normal;
  font-weight: 400;
  src: url(fonts/TimesNow-SemiLightItalic.woff2) format("woff2"),
       url(fonts/TimesNow-SemiLightItalic.woff) format("woff"),
       url(fonts/TimesNow-SemiLightItalic.ttf) format("truetype");
}

/* ---- Variables --------------------------------------------------------- */
:root {
  --color-primary: #000;
  --color-secondary: #cf2442;
  --color-blue: #c2d9e7;
  --color-cream: #edead9;
}

/* ---- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  line-height: 1.15;
}

body {
  background: #fff;
  color: #000;
  font-family: "Forma Nuovo", "Times New Roman", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: -0.15em;
  line-height: 98.5%;
}

p { line-height: 1.25; letter-spacing: normal; }

ol, ul { list-style: none; }

a {
  color: #000;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

img { display: block; border-style: none; max-width: 100%; }

button {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}

::selection { background: #c2d9e7; color: #edead9; }

main { min-height: 100vh; position: relative; z-index: 1; }
footer { z-index: 1; }

/* ---- Utility / type classes (from original) --------------------------- */
.desktop-only { display: none; }
.mobile-only { display: block; }
@media screen and (min-width: 769px) {
  .desktop-only { display: block; }
  .mobile-only { display: none; }
}

.wrap { padding: 1rem; }
@media screen and (min-width: 769px) { .wrap { padding: 2rem; } }

.wrap-x--large { padding: 0 4rem; }

.desktop-wrap { padding: 0; }
@media screen and (min-width: 769px) { .desktop-wrap { padding: 2rem; } }

.ff-forma { font-family: "Forma Nuovo", "Helvetica", sans-serif; }
.ff-times,
.ff-times-tight {
  font-family: "Times Now", "Times New Roman", serif;
  font-size: 1.1em;
}
.ff-times { letter-spacing: -0.05em; }

.fs-normal { font-size: 1rem; letter-spacing: -0.05em; }
.fs-medium { font-size: 1.5rem; }
.fs-footer, .fs-header { font-size: 2rem; }
.fs-header { line-height: 1; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  align-items: center;
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 10px;
  color: #000;
  display: flex;
  justify-content: center;
  letter-spacing: -1.5px;
  padding: 0.5rem 2rem;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  font-size: 1.5rem;
  cursor: pointer;
}
.btn span:first-child { margin-right: 0.25rem; }
.btn.btn--dashed { border: 1px solid #000; border-radius: 10px; }
@media screen and (min-width: 769px) {
  .btn {
    padding: 1rem 2rem;
    transition: all 0.3s cubic-bezier(0.57, 0.06, 0.05, 0.95);
    width: 240px;
  }
  .btn:hover { background-color: #000; color: #edead9; }
}

/* ---- Animations -------------------------------------------------------- */
@keyframes appear { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes buildWidth { 0% { width: 0; } 100% { width: 100%; } }
.appear { animation: appear 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045); }
.appear-await {
  animation: appear 0.3s linear forwards;
  animation-delay: 0.4s;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  height: 4rem;
  left: 0; right: 0; top: 0;
  padding: 1rem;
  position: fixed;
  z-index: 600;
}
@media screen and (min-width: 769px) {
  header {
    align-items: center;
    display: flex;
    height: 6rem;
    justify-content: center;
  }
}

/* Currency selector */
.currency-selector {
  border: 1px solid #000;
  cursor: pointer;
  left: 2rem;
  padding: 4px 8px;
  position: absolute;
  top: 2rem;
  width: 80px;
}
.currency-selector:hover { border: 1px dotted #000; }
.currency-selector .currency-item {
  align-items: center;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0;
  line-height: 1 !important;
  width: 100%;
}
.currency-selector .selected { font-weight: 600; }
/* hide currency on mobile (desktop-only__dangerously) */
@media screen and (max-width: 769px) {
  .desktop-only__dangerously { display: none !important; }
}

/* Desktop nav */
.desktop-nav { display: none; }
@media screen and (min-width: 769px) { .desktop-nav { display: flex; } }
.desktop-nav .nav-item { margin-left: 5px; margin-right: 5px; }

.nav-item {
  color: #000;
  cursor: pointer;
  font-size: 2rem;
  position: relative;
  text-decoration: none;
}
@media screen and (min-width: 769px) {
  .nav-item:hover::after {
    animation: buildWidth 0.15s forwards;
    border-bottom: 2px solid #000;
    bottom: -4px;
    content: "";
    height: 1px;
    left: 0;
    opacity: 1;
    position: absolute;
  }
}
.with-comma { display: inline-block; }
.with-comma::after { content: ","; margin-right: 4px; }

/* Mobile nav / hamburger */
.mobile-nav { align-items: center; display: flex; }
@media screen and (min-width: 769px) { .mobile-nav { display: none; } }
.mobile-nav .hamburger {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 1.5rem;
  justify-content: space-between;
  left: -1rem;
  position: relative;
  width: 4rem;
  z-index: 1000;
}
.mobile-nav .hamburger .line {
  border-top: 2px solid #000;
  transition: all 0.35s cubic-bezier(0.57, 0.06, 0.05, 0.95);
  width: 100%;
}
.mobile-nav .hamburger.close-btn .line:nth-child(2n) { display: none; }
.mobile-nav .hamburger.close-btn .line:nth-child(1n),
.mobile-nav .hamburger.close-btn .line:nth-child(3n) {
  left: 1rem; position: absolute; top: 1rem; width: 75%;
}
.mobile-nav .hamburger.close-btn .line:nth-child(1n) { transform: rotate(45deg); }
.mobile-nav .hamburger.close-btn .line:nth-child(3n) { transform: rotate(-45deg); }

.mobile-nav .left-drawer {
  animation: moveLeft 0.3s alternate forwards;
  background: #fff;
  box-shadow: 1px 1px 36px 0 rgba(0, 0, 0, 0.5);
  left: 0; top: 0;
  min-height: 100vh;
  position: fixed;
  transform: translateX(-105%);
  width: 80vw;
  z-index: 500;
}
.mobile-nav .left-drawer.open { transform: translateX(0); }
.mobile-nav .drawer-underlay {
  background-color: rgba(0, 0, 0, 0.3);
  height: 100vh;
  left: 0; top: 0;
  position: fixed;
  width: 100vw;
  z-index: 400;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 4rem);
  margin-top: 4rem;
  overflow: auto;
  padding: 1rem;
}
.mobile-nav nav a { line-height: 1; margin-bottom: 0.5rem; }
@keyframes moveLeft { 0% { transform: translateX(-105%); } 100% { transform: translateX(0); } }

/* Search */
.search-container { position: absolute; right: 10rem; top: 2rem; }
.search-container input {
  background-color: transparent;
  border: 0;
  color: #000;
  font-size: 22px;
  outline: none;
  text-align: right;
}
.search-container input::placeholder { color: #000; }
.search-container input:focus::placeholder { opacity: 0.33; }
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button { display: none; }

/* Cart button */
.cart-btn-container {
  align-items: flex-end;
  display: flex;
  position: absolute;
  right: 1rem;
  top: 1rem;
}
.cart-btn {
  background-color: transparent;
  border: none;
  height: 24px;
  margin-right: 0.5rem;
  padding: 0;
  width: 19px;
}
.cart-btn img { display: block; height: 100%; width: 100%; }
@media screen and (min-width: 769px) {
  .cart-btn-container { right: 2rem; top: 1.15rem; }
  .cart-btn { cursor: pointer; height: 36px; width: 28px; }
}

/* ==========================================================================
   Site overlay (large rotated logo on white)
   ========================================================================== */
/* Full-screen layer holding the big rotated logo. The original intro
   centred the logo then snapped it to the top-right corner (.align-right,
   ~500ms) while the overlay dropped behind the content (.site-underlay,
   ~1000ms). To keep that motion while guaranteeing the homepage is the
   committed, always-visible end-state, the overlay sits BEHIND the content
   at all times (z-index -1, transparent) and the intro is carried by the
   logo's move below. The JS still toggles .align-right / .site-underlay for
   parity. Nothing here can ever permanently cover the page. */
.site-overlay {
  height: 100vh;
  left: 0; top: 0;
  opacity: 1;
  position: fixed;
  width: 100vw;
  z-index: -1;
  background: transparent;
  /* pointer-events:none so the layer (behind content) never blocks clicks. */
  pointer-events: none;
  transition: all 0.15s linear;
}
.site-overlay.site-underlay { z-index: -1; }
.site-overlay.site-underlay .site-logo { mix-blend-mode: normal; }
.site-logo {
  height: auto;
  left: 50%; top: 50%;
  mix-blend-mode: multiply;
  object-fit: contain;
  position: absolute;
  transform: translate(-50%, -50%) rotate(90deg);
  width: 40vw;
  /* Logo snaps from centred/rotated to the top-right corner at ~0.5s. */
  animation: siteLogoAlignRight 0.15s linear 0.5s forwards;
}
@keyframes siteLogoAlignRight {
  to {
    left: auto;
    right: 1rem;
    top: 4rem;
    transform: translate(0) rotate(0deg);
  }
}
.site-logo.align-right {
  left: auto;
  right: 1rem;
  top: 4rem;
  transform: translate(0) rotate(0deg);
}
.site-logo .general-fill,
.general-fill { fill: #000; }
@media screen and (min-width: 769px) {
  .site-logo {
    max-width: 100%;
    width: 20vw;
    /* Desktop end-state for the CSS-driven intro (matches .align-right below). */
    animation: siteLogoAlignRightDesktop 0.15s linear 0.5s forwards;
  }
  .site-logo.align-right { margin-right: -0.475%; right: 2rem; top: 6rem; }
}
@keyframes siteLogoAlignRightDesktop {
  to {
    left: auto;
    right: 2rem;
    top: 6rem;
    margin-right: -0.475%;
    transform: translate(0) rotate(0deg);
  }
}

/* ==========================================================================
   Main / featured products
   ========================================================================== */
.container {
  min-height: 100vh;
  padding-bottom: 6rem;
  position: relative;
  width: 100vw;
}
.featured-products {
  display: flex;
  flex-direction: column;
  width: 100%;
}
@media screen and (min-width: 769px) {
  .container { top: 6rem; width: 100%; }
  .featured-products {
    align-items: end;
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: 6fr 4fr;
    margin-bottom: 10rem;
    width: 100%;
  }
}

.featured-product {
  margin-bottom: 1rem;
  position: relative;
  width: 100%;
}
.featured-product .img-container img {
  display: block;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  width: 100%;
}
@media screen and (min-width: 769px) {
  .featured-product { margin-bottom: 2rem; }
  .featured-product:hover .img-container img { opacity: 0.75; }
  .featured-product.move-down .img-container { aspect-ratio: 555 / 819; }
  .featured-product.move-up .img-container { aspect-ratio: 787 / 1188; }
}

/* ---- From the blog / Hai Society --------------------------------------- */
.ftb-container { display: block; height: 100%; width: 100%; }
.ftb-header { margin-bottom: 1rem; text-align: center; }
.ftb-header-img { height: auto; position: relative; width: 100vw; }
.ftb-img-container { display: block; height: auto; padding: 1rem; width: 100%; z-index: 15; }
.ftb-img-container img { display: block; height: auto; width: 100%; }
.ftb-banner {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  padding: 0;
}
@media screen and (min-width: 769px) {
  .ftb-header-img { margin-bottom: 0.5rem; width: 100%; }
  .ftb-header-img:hover img { opacity: 0.75; }
  .ftb-img-container { padding: 0; }
  .ftb-banner .ftb-header { padding-top: 1rem; }
}

/* ---- Message banner ---------------------------------------------------- */
.message-banner {
  align-items: center;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  justify-content: center;
  left: calc(100vw - 45%);
  letter-spacing: 0.05em;
  line-height: 1;
  max-height: 15rem;
  max-width: 20rem;
  position: absolute;
  text-align: center;
  top: 0;
}
@media screen and (max-width: 769px) { .message-banner { display: none; } }
.message-banner p { letter-spacing: 0.05em; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background-color: #fff;
  height: 416px;
  line-height: 1;
  position: relative;
  width: 100vw;
}
.footer-contents {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: calc(100% - 2rem);
  position: absolute;
  top: 2rem;
  width: 100%;
}
.footer-contents p { text-align: center; }
.footer-contents .cp { bottom: 1rem; position: absolute; }

@media screen and (min-width: 769px) {
  footer { background: transparent; margin-left: -2rem; height: 416px; }
  .footer-contents { padding-top: 2rem; }
  .footer-contents .footer-blurb {
    border-bottom: 1px dashed #000;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    width: 100%;
  }
  .desktop-footer-nav { width: 100%; }
}

.footer-nav .footer-nav-items,
.footer-nav .contact-links {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}
.footer-nav .footer-nav-items .sub-nav-item,
.footer-nav .contact-links .sub-nav-item {
  font-size: 24px;
  margin-bottom: 0.5rem;
}
.footer-nav .su-btn { cursor: pointer; width: 100%; }
.store-nav {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sub-nav-item { font-size: 24px; margin-bottom: 0.5rem; }

@media screen and (min-width: 769px) {
  .footer-nav {
    align-items: start;
    display: grid;
    grid-gap: 2rem;
    grid-template-areas: "su-btn footer-nav-items contact-links cp";
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 4rem;
    width: 100%;
  }
  .footer-nav .su-btn {
    bottom: 0; left: 0;
    grid-area: su-btn;
    position: relative;
    width: 100%;
  }
  .footer-nav .footer-nav-items { grid-area: footer-nav-items; margin-top: 0; }
  .footer-nav .contact-links { grid-area: contact-links; margin-top: 0; }
  .footer-nav .cp { grid-area: cp; }
  .footer-nav .nav-item {
    transition: opacity 0.3s cubic-bezier(0.57, 0.06, 0.05, 0.95);
  }
  .footer-nav .nav-item::after { animation: none; }
  .footer-nav .nav-item:hover { opacity: 0.7; }
}

@media screen and (max-width: 769px) {
  .store-nav, .su-btn { margin-top: 2rem; }
}

/* ---- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
