/* ==========================================================================
   ATELIER HORLOGER — Design system
   An independent watch boutique in Geneva.
   Typography, base, header, footer, shared components, bag drawer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typeface
   -------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap");

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* palette */
  --paper: #faf8f4;
  --paper-2: #f3efe7;
  --paper-3: #ece7db;
  --white: #ffffff;
  --ink: #17140f;
  --ink-2: #55504a;
  --ink-3: #7c766c;
  --line: #e2dbcc;
  --line-2: #cfc6b2;
  --gold: #8a6c38;
  --gold-deep: #6b5127;
  --gold-soft: #b99b5e;
  --danger: #8c3a24;
  --ok: #3f5a3f;

  /* type */
  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* rhythm */
  --container: 1340px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --section-y: clamp(72px, 11vw, 148px);

  /* components */
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.45s;

  /* header */
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

body.no-scroll {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   4. Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 880px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* eyebrow — small all-caps label */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.eyebrow--muted {
  color: var(--ink-3);
  font-weight: 500;
}

.eyebrow--light {
  color: rgba(250, 248, 244, 0.82);
}

/* serif display */
.display {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.display--xl {
  font-size: clamp(2.7rem, 6.2vw, 4.9rem);
}

.display--l {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

.display--m {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.display--s {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: var(--ink-2);
}

.section {
  padding-block: var(--section-y);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 56px);
}

.section-head__text {
  max-width: 640px;
}

.section-head .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.section-head p.lede {
  margin-top: 14px;
}

/* text link with animated rule */
.t-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 6px;
  position: relative;
}

.t-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.4s var(--ease);
}

.t-link:hover::after,
.t-link:focus-visible::after {
  right: 0;
}

.t-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.t-link:hover svg {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 34px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover,
.btn--dark:focus-visible {
  background: var(--gold-deep);
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--ink);
}

.btn--ghost-light {
  border-color: rgba(250, 248, 244, 0.45);
  color: var(--paper);
}

.btn--ghost-light:hover,
.btn--ghost-light:focus-visible {
  border-color: rgba(250, 248, 244, 0.9);
  background: rgba(250, 248, 244, 0.08);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover,
.btn--light:focus-visible {
  background: var(--gold-soft);
  color: var(--ink);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   6. Badges — condition & status
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.badge--new::before {
  background: var(--ok);
}

.badge--unworn::before {
  background: var(--gold-soft);
}

.badge--excellent::before,
.badge--very-good::before {
  background: var(--ink-3);
}

.badge--reserved {
  border-color: var(--gold);
  color: var(--gold-deep);
}

.badge--sold {
  border-color: var(--line-2);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   7. Header
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
}

.header__nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s var(--ease);
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.35s var(--ease);
}

.header__nav a:hover,
.header__nav a:focus-visible,
.header__nav a[aria-current="page"] {
  color: var(--ink);
}

.header__nav a:hover::after,
.header__nav a[aria-current="page"]::after {
  right: 0;
}

.header__brand {
  font-family: var(--font-serif);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
  padding-left: 0.3em; /* optical balance for letter-spacing */
}

.header__brand small {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--ink-3);
  margin-top: 2px;
  padding-left: 0.42em;
}

.header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  min-width: 42px;
  padding: 0 10px;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  color: var(--ink);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn__count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* mobile menu button */
.header__burger {
  display: none;
}

@media (max-width: 920px) {
  .header__nav {
    display: none;
  }
  .header__burger {
    display: inline-flex;
  }
}

@media (max-width: 480px) {
  .header__brand {
    font-size: 14px;
    letter-spacing: 0.22em;
  }
  .header__brand small {
    font-size: 8px;
    letter-spacing: 0.32em;
  }
}

/* --------------------------------------------------------------------------
   8. Mobile navigation drawer
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  overflow-y: auto;
  visibility: hidden;
}

.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-nav__close {
  position: absolute;
  top: 14px;
  right: var(--gutter);
  height: 44px;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav nav a {
  font-family: var(--font-serif);
  font-size: 2rem;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.mobile-nav__meta {
  margin-top: 40px;
  color: var(--ink-2);
  font-size: 13px;
  display: grid;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   9. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--paper-2);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(96px, 14vh, 160px);
}

/* The hero photograph is dark, so the hero text runs light. A soft scrim
   keeps it legible whatever the photograph does. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(23, 20, 15, 0.38) 0%, rgba(23, 20, 15, 0.1) 48%, rgba(23, 20, 15, 0.5) 100%);
}

.hero__text {
  max-width: 560px;
}

.hero__text .display {
  color: var(--paper);
}

.hero__text .eyebrow {
  display: block;
  margin-bottom: 22px;
}

.hero__text .display {
  margin-bottom: 22px;
}

.hero__text .lede {
  max-width: 460px;
  margin-bottom: 38px;
  color: rgba(250, 248, 244, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 720px) {
  .hero__media img {
    object-position: 68% center;
  }
  .hero__text {
    max-width: 100%;
  }
  .hero {
    min-height: 92vh;
  }
}

/* --------------------------------------------------------------------------
   10. Editorial statement
   -------------------------------------------------------------------------- */
.statement {
  padding-block: var(--section-y);
  text-align: center;
}

.statement__inner {
  max-width: 760px;
  margin-inline: auto;
}

.statement .display {
  margin-bottom: 28px;
}

.statement .lede {
  max-width: 560px;
  margin-inline: auto;
}

.statement__sign {
  margin-top: 34px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   11. Product cards & grids
   -------------------------------------------------------------------------- */
.grid-watches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 56px) clamp(16px, 2.6vw, 40px);
}

.grid-watches--two {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 1024px) {
  .grid-watches {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-watches,
  .grid-watches--two {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.watch-card {
  display: block;
  position: relative;
}

.watch-card__media {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
}

.watch-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.watch-card:hover .watch-card__media img,
.watch-card:focus-visible .watch-card__media img {
  transform: scale(1.035);
}

.watch-card__badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.watch-card__badges .badge {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(6px);
}

.watch-card__body {
  display: grid;
  gap: 6px;
  padding-top: 20px;
}

.watch-card__brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.watch-card__model {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.watch-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
}

.watch-card__ref {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.watch-card__price {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.watch-card__condition {
  font-size: 12px;
  color: var(--ink-2);
}

.watch-card--sold .watch-card__media img {
  opacity: 0.55;
}

/* --------------------------------------------------------------------------
   12. Split editorial (atelier teaser etc.)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.split--reverse .split__media {
  order: 2;
}

.split__media {
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__text {
  max-width: 520px;
}

.split__text .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.split__text .display {
  margin-bottom: 20px;
}

.split__text .lede {
  margin-bottom: 32px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__media {
    order: 0;
  }
}

/* --------------------------------------------------------------------------
   13. Full-bleed banner
   -------------------------------------------------------------------------- */
.banner {
  position: relative;
  overflow: hidden;
  background: #2c2114;
  color: var(--paper);
}

.banner__media {
  position: absolute;
  inset: 0;
}

.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(24, 17, 8, 0.74) 0%,
    rgba(24, 17, 8, 0.48) 44%,
    rgba(24, 17, 8, 0.1) 100%
  );
}

.banner__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(88px, 15vw, 180px);
  max-width: 620px;
}

.banner .display {
  color: var(--paper);
  margin-bottom: 20px;
}

.banner .lede {
  color: rgba(250, 248, 244, 0.85);
  margin-bottom: 34px;
}

/* --------------------------------------------------------------------------
   14. Services trio
   -------------------------------------------------------------------------- */
.services {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 64px);
}

.service {
  max-width: 360px;
}

.service svg {
  width: 30px;
  height: 30px;
  color: var(--gold-deep);
  margin-bottom: 22px;
}

.service h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.service p {
  font-size: 14px;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .services__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --------------------------------------------------------------------------
   15. Newsletter
   -------------------------------------------------------------------------- */
.newsletter {
  padding-block: var(--section-y);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.newsletter__inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.newsletter .display {
  margin-bottom: 14px;
}

.newsletter .lede {
  margin-bottom: 36px;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.newsletter__form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 14px;
}

.newsletter__form input[type="email"]::placeholder {
  color: var(--ink-3);
}

.newsletter__note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-3);
}

.newsletter__success {
  font-size: 14px;
  color: var(--ok);
  margin-top: 16px;
}

@media (max-width: 560px) {
  .newsletter__form {
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: rgba(250, 248, 244, 0.78);
  padding-top: clamp(56px, 8vw, 96px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 18px;
}

.footer__blurb {
  font-size: 13.5px;
  max-width: 320px;
  color: rgba(250, 248, 244, 0.65);
}

.footer h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.55);
  margin-bottom: 18px;
}

.footer ul {
  display: grid;
  gap: 10px;
}

.footer ul a {
  font-size: 13.5px;
  color: rgba(250, 248, 244, 0.82);
  transition: color 0.3s var(--ease);
}

.footer ul a:hover,
.footer ul a:focus-visible {
  color: var(--gold-soft);
}

.footer__contact p {
  font-size: 13.5px;
  margin-bottom: 8px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 26px;
  border-top: 1px solid rgba(250, 248, 244, 0.14);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(250, 248, 244, 0.5);
}

.footer__legal-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer__legal a:hover {
  color: var(--gold-soft);
}

@media (max-width: 960px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   17. Bag drawer
   -------------------------------------------------------------------------- */
.bag {
  position: fixed;
  inset: 0;
  z-index: 140;
  pointer-events: none;
}

.bag__scrim {
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 15, 0.42);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.bag__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  box-shadow: -24px 0 60px rgba(23, 20, 15, 0.12);
}

.bag.is-open {
  pointer-events: auto;
}

.bag.is-open .bag__scrim {
  opacity: 1;
}

.bag.is-open .bag__panel {
  transform: translateX(0);
}

.bag__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.bag__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.bag__close {
  height: 40px;
  width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bag__body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 26px;
}

.bag__empty {
  padding: 64px 0;
  text-align: center;
  color: var(--ink-2);
}

.bag__empty .display {
  margin-bottom: 12px;
}

.bag__empty p {
  font-size: 14px;
  margin-bottom: 28px;
}

.bag-item {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.bag-item__media {
  background: var(--paper-2);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.bag-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bag-item__brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 4px;
}

.bag-item__model {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.bag-item__ref {
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.bag-item__price {
  font-size: 13px;
  font-weight: 500;
}

.bag-item__remove {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  align-self: start;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.bag-item__remove:hover {
  color: var(--danger);
}

.bag__foot {
  border-top: 1px solid var(--line);
  padding: 22px 26px 28px;
  display: grid;
  gap: 16px;
}

.bag__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.bag__total-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.bag__total-value {
  font-size: 1.15rem;
  font-weight: 500;
}

.bag__note {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}

.bag__toast {
  display: none;
  font-size: 13px;
  color: var(--gold-deep);
  border: 1px solid var(--line-2);
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--white);
}

.bag__toast.is-visible {
  display: block;
}

/* --------------------------------------------------------------------------
   18. Forms — shared
   -------------------------------------------------------------------------- */
.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.field input,
.field textarea,
.field select {
  padding: 15px 16px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 14px;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

/* --------------------------------------------------------------------------
   19. Motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
