/* =========================================================
   EBA Estampados — Dark Editorial Premium
   Design tokens
   ========================================================= */
:root {
  --bg: #0E0E0E;
  --fg: #F5F5F5;
  --muted: #A0A0A0;
  --line: rgba(245, 245, 245, .08);
  --grad: linear-gradient(90deg, #ff3d3d, #3d7bff, #ffd23d, #b23dff);

  --surface: #141414;
  --surface-2: #1A1A1A;
  --muted-deep: #8A8A8A;

  --max: 1400px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* =========================================================
   Reset and base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

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

svg {
  display: block;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 2px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(14, 14, 14, .74);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
  width: 100%;
  max-width: var(--max);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-block: 9px;
  justify-self: start;
  white-space: nowrap;
}

.brand__logo {
  display: block;
  width: auto;
  height: 44px;
}

.brand--footer .brand__logo {
  height: clamp(88px, 9vw, 112px);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  justify-self: center;
  min-width: 0;
}

.nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 13px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .25s ease;
}

.nav__item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav__item:hover {
  color: var(--fg);
}

.nav__item.is-active {
  color: var(--fg);
}

.nav__item.is-active::after {
  transform: scaleX(1);
}

.cart-button {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  transition: background .25s ease, border-color .25s ease;
}

.cart-button:hover {
  border-color: rgba(245, 245, 245, .4);
  background: rgba(245, 245, 245, .04);
}

.cart-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-button__badge.is-zero {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  line-height: 17px;
}

/* =========================================================
   Hero slider
   ========================================================= */
.hero {
  padding: clamp(18px, 3vw, 40px) var(--gutter) 0;
}

.hero__frame {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.72) contrast(1.02);
  transform: scale(1.01);
  transition: transform 6s linear;
}

.hero__slide.is-active img {
  transform: scale(1.055);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 245, 245, .24);
  border-radius: 50%;
  background: rgba(14, 14, 14, .45);
  color: var(--fg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: background .25s ease, border-color .25s ease;
}

.hero__arrow:hover {
  border-color: var(--fg);
  background: rgba(14, 14, 14, .76);
}

.hero__arrow--prev {
  left: clamp(10px, 2vw, 24px);
}

.hero__arrow--next {
  right: clamp(10px, 2vw, 24px);
}

.hero__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__dots {
  position: absolute;
  bottom: clamp(12px, 2vw, 22px);
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(14, 14, 14, .4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translateX(-50%);
}

/* El área táctil es de 44x44; el punto visible se dibuja en ::before. */
.hero__dot {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: transparent;
}

.hero__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(245, 245, 245, .38);
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), background .3s ease;
}

.hero__dot:hover::before {
  background: rgba(245, 245, 245, .7);
}

.hero__dot.is-active::before {
  width: 24px;
  background: var(--fg);
}

/* =========================================================
   Catalog and product grid
   ========================================================= */
.catalog {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(72px, 9vw, 120px);
  scroll-margin-top: calc(var(--header-h) + 28px);
}

/* =========================================================
   Home intro: SEO copy and service links
   ========================================================= */
.intro {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
}

.intro__inner {
  max-width: 980px;
}

.intro__title {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.intro__lead {
  max-width: 70ch;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.intro__text {
  max-width: 70ch;
  margin-top: 14px;
  color: var(--muted);
}

.intro__services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .25s ease, background .25s ease;
}

.service-card:hover {
  border-color: rgba(245, 245, 245, .24);
  background: var(--surface-2);
}

.service-card__title {
  font-size: .95rem;
  font-weight: 500;
}

.service-card__text {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
}

.intro__cta {
  margin-top: 24px;
  color: var(--muted);
  font-size: .95rem;
}

.intro__cta a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 8vw, 104px);
}

.faq__inner {
  max-width: 900px;
}

.faq__title {
  margin-bottom: 24px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 500;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq__question {
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 500;
}

.faq__answer {
  max-width: 70ch;
  color: var(--muted);
}

.faq__answer a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.process {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(64px, 8vw, 104px);
}

.process__inner {
  max-width: 900px;
}

.process__title {
  margin-bottom: 24px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 500;
}

.process__steps {
  list-style: none;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.process__steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process__num {
  flex: 0 0 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--fg);
  font-weight: 500;
}

.process__steps h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 500;
}

.process__steps p {
  max-width: 65ch;
  margin: 0;
  color: var(--muted);
}

.process__cta {
  margin-top: 24px;
}

.catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(22px, 3vw, 38px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.catalog__title {
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.catalog__count {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 92px);
}

.catalog-section {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.catalog-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.catalog-section__title {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.catalog-section__count {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.catalog-section__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}

.catalog-section__link {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s ease;
}

.catalog-section__link:hover {
  color: var(--fg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--fg);
  text-align: left;
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.card:hover .card__media img {
  transform: scale(1.05);
}

.card__media img.is-broken {
  opacity: 0;
}

.card__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

.card__media img.is-broken ~ .card__fallback {
  opacity: 1;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 2px 0;
}

.card__category {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.card__name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.card__price {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.catalog-empty {
  max-width: 46ch;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 0;
  text-align: center;
}

.catalog-empty__title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.catalog-empty__text {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* =========================================================
   Shared buttons
   ========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.button--outline {
  width: 100%;
  border-color: var(--fg);
  background: transparent;
  color: var(--fg);
}

.button--outline:hover:not(:disabled) {
  background: var(--fg);
  color: var(--bg);
}

.button--outline:disabled {
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.button--primary {
  width: 100%;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
}

.button--primary:hover {
  background: #E4E4E4;
}

.button--compact {
  width: auto;
  padding: 13px 24px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(14, 14, 14, .66);
  color: var(--fg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease;
}

.icon-button:hover {
  border-color: rgba(245, 245, 245, .45);
  background: rgba(245, 245, 245, .08);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Product modal
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 32px);
}

.modal:not(.is-open) {
  pointer-events: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .3s ease;
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  width: min(100%, 980px);
  max-height: calc(100dvh - clamp(24px, 6vw, 64px));
  overflow: auto;
  background: #121212;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: translateY(14px) scale(.99);
  transition: opacity .32s ease, transform .32s var(--ease);
}

.modal.is-open .modal__dialog {
  opacity: 1;
  transform: none;
}

.modal__dialog:focus,
.drawer__panel:focus {
  outline: none;
}

.modal__media {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--surface);
}

.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__media img.is-broken {
  opacity: 0;
}

.modal__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

.modal__media img.is-broken ~ .modal__fallback {
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.modal__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.modal__title {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.08;
  text-transform: uppercase;
}

.modal__price {
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.modal__link {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  transition: color .25s ease;
}

.modal__link:hover {
  color: var(--fg);
}

.sizes {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.sizes__label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.sizes__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.size-option:hover {
  border-color: var(--fg);
}

.size-option.is-selected {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.sizes__hint {
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.modal__note {
  color: var(--muted-deep);
  font-size: 11px;
  letter-spacing: .06em;
}

/* =========================================================
   Cart drawer
   ========================================================= */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
}

.drawer:not(.is-open) {
  pointer-events: none;
}

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .3s ease;
}

.drawer.is-open .drawer__backdrop {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100dvh;
  background: #101010;
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px rgba(0, 0, 0, .45);
  transform: translateX(100%);
  transition: transform .38s var(--ease);
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.drawer__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.drawer__body {
  flex: 1 1 auto;
  padding: 18px 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer__foot {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.drawer__total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.drawer__total {
  font-size: 18px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.drawer__feedback {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 100%;
  padding: 40px 0;
  text-align: center;
}

.cart-empty__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-empty__title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cart-empty__text {
  max-width: 28ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--surface);
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__media img.is-broken {
  opacity: 0;
}

.cart-item__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

.cart-item__media img.is-broken ~ .cart-item__fallback {
  opacity: 1;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item__name {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.cart-item__meta {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
}

.qty__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  transition: background .2s ease, color .2s ease;
}

.qty__btn:hover {
  background: var(--surface-2);
  color: var(--fg);
}

.qty__value {
  min-width: 26px;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-item__price {
  font-size: 12px;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.cart-item__remove {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .14em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  transition: color .2s ease;
}

.cart-item__remove:hover {
  color: var(--fg);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: clamp(40px, 6vw, 72px) var(--gutter) 28px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__identity {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

.footer__tagline {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
}

.footer__info a {
  color: inherit;
  transition: color .25s ease;
}

.footer__info a:hover {
  color: var(--fg);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 18px 28px;
}

.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .25s ease;
}

.footer__links a:hover {
  color: var(--fg);
}

.footer__copy {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted-deep);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .header__inner {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
  }

  .brand__logo {
    height: 40px;
  }

  .cart-button {
    grid-row: 1;
    grid-column: 2;
  }

  .nav {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: stretch;
    gap: 24px;
    padding: 4px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav__item {
    padding: 6px 0;
  }

  .hero__frame {
    aspect-ratio: 4 / 5;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog,
  .catalog-section {
    scroll-margin-top: 132px;
  }

  .modal {
    padding: 12px;
  }

  .modal__dialog {
    grid-template-columns: 1fr;
    width: min(100%, 560px);
    max-height: calc(100dvh - 24px);
  }

  .modal__media {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .modal__media img {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .catalog__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav {
    gap: 14px;
  }

  .catalog-section__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .hero {
    padding-top: 12px;
  }

  .brand__logo {
    height: 36px;
  }

  .modal {
    padding: 0;
  }

  .modal__dialog {
    width: 100%;
    max-height: 100dvh;
    min-height: 100dvh;
    border: 0;
  }

  .modal__content {
    padding: 22px 18px 30px;
  }

  .drawer__panel {
    width: 100%;
    border-left: 0;
  }

  .footer__top {
    flex-direction: column;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover .card__media img,
  .hero__slide img,
  .hero__slide.is-active img {
    transform: none;
  }

  .hero__slide {
    transition: none;
  }
}
