/* --------------------------------------------------------------------------
   Shared by every page: the fonts, the colour tokens, a small reset and the
   pieces more than one page uses (brand mark, buttons, menus).

   The tokens are copied from seller_web/app/globals.css and keep its
   `H S% L%` form, so `hsl(var(--x) / 0.9)` reads the same as Tailwind's
   `bg-x/90`. The type scale follows seller_web/tailwind.config.ts, which
   raises every Tailwind step by 2px (text-sm is 1rem, text-base 1.125rem).
   -------------------------------------------------------------------------- */

/* Fonts — self-hosted from Google Fonts (SIL OFL, see assets/fonts/OFL-*.txt).
   Be Vietnam Pro is the marketing face; Geist is the app's body face, used by
   the legal pages. Each subset is fetched only if the page uses its glyphs. */

/* Be Vietnam Pro 400, vietnamese */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Be Vietnam Pro 400, latin-ext */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Be Vietnam Pro 400, latin */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Be Vietnam Pro 500, vietnamese */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Be Vietnam Pro 500, latin-ext */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Be Vietnam Pro 500, latin */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Be Vietnam Pro 600, vietnamese */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-600-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Be Vietnam Pro 600, latin-ext */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Be Vietnam Pro 600, latin */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Be Vietnam Pro 700, vietnamese */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-700-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Be Vietnam Pro 700, latin-ext */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Be Vietnam Pro 700, latin */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Be Vietnam Pro 800, vietnamese */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-800-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

/* Be Vietnam Pro 800, latin-ext */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Be Vietnam Pro 800, latin */
@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/be-vietnam-pro-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Geist 100 900, latin-ext */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-100-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Geist 100 900, latin */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/geist-100-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Colour tokens ------------------------------------------------------------ */

:root {
  color-scheme: light;
  --background: 0 0% 100%;
  --foreground: 0 0% 25.1%;
  --card: 0 0% 96.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 25.1%;
  --muted: 240 11.1% 94.7%;
  --muted-foreground: 220 5.9% 40%;
  --accent: 240 11.1% 94.7%;
  --accent-foreground: 0 0% 25.1%;
  --border: 247 100% 60.6%;
  --ring: 247 100% 60.6%;
  --radius: 0.5rem;

  /* Vocado marketing palette (the landing page). */
  --brand: 247 100% 60.6%;
  --brand-foreground: 0 0% 100%;
  --brand-soft: 247 100% 60.6%;
  --band-north: 294 78% 90%;
  --band-north-foreground: 294 75% 25.1%;
  --band-menu: 145 62% 76%;
  --band-menu-foreground: 152 65% 16%;
  --band-delivery: 186 100% 76%;
  --band-delivery-foreground: 199 78% 20%;
  --band-strip: 0 100% 73%;
  --footer: 211 62% 13%;
  --footer-foreground: 0 0% 100%;
  --footer-muted: 211 25% 72%;

  --font-display: "Be Vietnam Pro", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dark mode is written twice: once for an explicit choice (the `dark` class
   the theme menu sets) and once for "System", where no class is set and the
   OS preference decides — which is also what a visitor without JS gets. An
   explicit "Light" sets the `light` class, which opts out of the second. */
:root.dark {
  color-scheme: dark;
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;
  --card: 225 5.7% 13.7%;
  --popover: 0 0% 0%;
  --popover-foreground: 0 0% 100%;
  --muted: 0 0% 22%;
  --muted-foreground: 216 6.8% 71%;
  --accent: 0 0% 22%;
  --accent-foreground: 0 0% 100%;
  --border: 26 65.7% 46.9%;
  --ring: 26 65.7% 46.9%;

  --brand: 247 62% 34%;
  --brand-foreground: 0 0% 100%;
  --brand-soft: 247 90% 78%;
  --band-north: 294 32% 15%;
  --band-north-foreground: 294 60% 86%;
  --band-menu: 152 30% 13%;
  --band-menu-foreground: 145 45% 78%;
  --band-delivery: 193 40% 14%;
  --band-delivery-foreground: 186 60% 80%;
  --band-strip: 0 35% 20%;
  --footer: 211 45% 7%;
  --footer-foreground: 0 0% 100%;
  --footer-muted: 211 18% 65%;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    color-scheme: dark;
    --background: 0 0% 0%;
    --foreground: 0 0% 100%;
    --card: 225 5.7% 13.7%;
    --popover: 0 0% 0%;
    --popover-foreground: 0 0% 100%;
    --muted: 0 0% 22%;
    --muted-foreground: 216 6.8% 71%;
    --accent: 0 0% 22%;
    --accent-foreground: 0 0% 100%;
    --border: 26 65.7% 46.9%;
    --ring: 26 65.7% 46.9%;

    --brand: 247 62% 34%;
    --brand-foreground: 0 0% 100%;
    --brand-soft: 247 90% 78%;
    --band-north: 294 32% 15%;
    --band-north-foreground: 294 60% 86%;
    --band-menu: 152 30% 13%;
    --band-menu-foreground: 145 45% 78%;
    --band-delivery: 193 40% 14%;
    --band-delivery-foreground: 186 60% 80%;
    --band-strip: 0 35% 20%;
    --footer: 211 45% 7%;
    --footer-foreground: 0 0% 100%;
    --footer-muted: 211 18% 65%;
  }
}

/* Reset — the parts of Tailwind's preflight these pages rely on ----------- */

*,
::before,
::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-height: 1.5;
}

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.625rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure {
  margin: 0;
}

h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img, svg {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

button {
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Brand mark: the avocado plus the lowercase wordmark ---------------------- */

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
}

.brand span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.875rem;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.025em;
}

/* Buttons — seller_web/components/ui/button.tsx ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 1rem;
  line-height: 1.375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  pointer-events: none;
}

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.125rem;
}

.btn-lg {
  height: 2.5rem;
  padding: 0 2rem;
}

.btn-ghost:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-brand {
  background: hsl(var(--brand));
  color: hsl(var(--brand-foreground));
}

.btn-brand:hover {
  background: hsl(var(--brand) / 0.9);
}

/* Menus — the dropdowns behind the theme and language buttons -------------- */

.dropdown {
  position: relative;
}

.menu {
  position: absolute;
  top: calc(100% + 4px);
  z-index: 50;
  min-width: 8rem;
  padding: 0.25rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  box-shadow: var(--shadow-md);
}

.menu-start {
  left: 0;
}

.menu-end {
  right: 0;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.375rem 0.5rem 0.375rem 2rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 1rem;
  line-height: 1.375rem;
  text-align: left;
  white-space: nowrap;
  cursor: default;
}

.menu-item:hover,
.menu-item:focus {
  outline: none;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* The radio dot of the chosen option. */
.menu-item[aria-checked="true"]::before {
  content: "";
  position: absolute;
  left: 0.6875rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-radius: 50%;
  background: currentColor;
}

.icon-muted {
  color: hsl(var(--muted-foreground));
}

.menu-item svg {
  width: 18px;
  height: 18px;
}
