/* VELORA — soft pastel brown luxury fashion boutique */
:root {
  --primary: #B89B7A;
  --primary-dark: #9a7f60;
  --beige: #E8DCCB;
  --cream: #F8F5EF;
  --white: #FFFFFF;
  --text: #3D3028;
  --taupe: #A98F78;
  --muted: #7a6a5c;
  --border: rgba(61, 48, 40, 0.12);
  --shadow: 0 12px 40px rgba(61, 48, 40, 0.1);
  --radius: 2px;
  --header-h: 72px;
  --announcement-h: 36px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open,
body.nav-open,
body.search-open,
body.modal-open {
  overflow: hidden;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.container {
  width: min(1280px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Announcement */
.announcement {
  background: var(--text);
  color: var(--cream);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  min-height: var(--announcement-h);
}

.announcement a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-right {
  justify-content: flex-end;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  justify-content: center;
}

.nav-desktop a {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 0.35rem 0;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--text);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-desktop a:hover::after,
.nav-desktop a.is-active::after {
  transform: scaleX(1);
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  border-radius: 50%;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--beige);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.badge-count {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.badge-count.is-empty,
.badge-count[hidden] {
  display: none;
}

.menu-toggle {
  display: inline-flex;
}

@media (min-width: 960px) {
  .menu-toggle {
    display: none;
  }
  .nav-desktop {
    display: flex;
  }
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .header-left {
    order: 0;
  }
  .logo {
    order: -1;
    margin-right: 2rem;
  }
}

/* Nav drawer */
.nav-drawer,
.cart-drawer {
  position: fixed;
  top: 0;
  height: 100%;
  background: var(--white);
  z-index: 220;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.nav-drawer {
  left: 0;
  width: min(340px, 88vw);
  transform: translateX(-105%);
  padding: 1.25rem;
}

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

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 2rem;
}

.nav-drawer__links a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 48, 40, 0.35);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(248, 245, 239, 0.97);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay__bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  max-width: 720px;
  width: 100%;
  margin: 10vh auto 0;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.75rem;
}

.search-overlay__bar input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  outline: none;
}

.search-results {
  max-width: 720px;
  width: 100%;
  margin: 1.5rem auto 0;
  display: grid;
  gap: 0.75rem;
}

.search-result {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem;
  transition: background 0.2s;
}

.search-result:hover {
  background: var(--beige);
}

.search-result img {
  width: 64px;
  height: 80px;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  background: var(--beige);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroFade 1.2s var(--ease) both;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(61, 48, 40, 0.08) 0%, rgba(61, 48, 40, 0.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 5rem);
  color: var(--cream);
  max-width: 640px;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  letter-spacing: 0.22em;
  margin-bottom: 0.35rem;
  animation: riseIn 0.9s var(--ease) 0.15s both;
}

.hero__title {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  animation: riseIn 0.9s var(--ease) 0.3s both;
}

.hero__text {
  margin: 0 0 1.5rem;
  max-width: 28ch;
  opacity: 0.9;
  animation: riseIn 0.9s var(--ease) 0.45s both;
}

.hero__cta {
  animation: riseIn 0.9s var(--ease) 0.6s both;
}

.hero__cta .btn--primary {
  background: var(--cream);
  color: var(--text);
}

.hero__cta .btn--primary:hover {
  background: var(--white);
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section--beige {
  background: var(--beige);
}

.section--white {
  background: var(--white);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin: 0;
}

.section-link {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 2px;
}

/* Product grid & cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 0.85rem;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.25rem;
  }
}

@media (min-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  position: relative;
}

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--beige);
  margin-bottom: 0.85rem;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease);
}

.product-card__media img.secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.product-card:hover .product-card__media img.primary {
  opacity: 0;
  transform: scale(1.03);
}

.product-card:hover .product-card__media img.secondary {
  opacity: 1;
  transform: scale(1.03);
}

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--cream);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
}

.product-card__wish {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(248, 245, 239, 0.9);
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
}

.product-card__wish.is-active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

.product-card__wish svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.product-card__actions {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card__actions .btn {
  flex: 1;
  min-height: 40px;
  padding: 0.55rem;
  font-size: 10px;
  background: var(--cream);
  color: var(--text);
  border: 0;
}

.product-card__actions .btn:hover {
  background: var(--white);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.product-card__price {
  font-size: 12px;
  letter-spacing: 0.04em;
}

.product-card__price s {
  color: var(--taupe);
  margin-right: 0.4rem;
}

.product-card__rating {
  font-size: 11px;
  color: var(--taupe);
  margin-top: 0.2rem;
}

/* Shop layout */
.shop-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .shop-layout {
    grid-template-columns: 220px 1fr;
  }
}

.filters {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-group h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.filter-options label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}

.filter-options input {
  accent-color: var(--primary);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.shop-toolbar select {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0.55rem 0.85rem;
  min-width: 160px;
}

/* Product detail */
.pdp {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .pdp {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.pdp-gallery {
  display: grid;
  gap: 0.75rem;
}

.pdp-gallery__main {
  aspect-ratio: 3 / 4;
  background: var(--beige);
  overflow: hidden;
}

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

.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.pdp-thumbs button {
  border: 1px solid transparent;
  padding: 0;
  background: var(--beige);
  cursor: pointer;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.pdp-thumbs button.is-active {
  border-color: var(--primary);
}

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

.pdp-info .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
  font-size: 1.05rem;
}

.pdp-info .price-row s {
  color: var(--taupe);
  font-size: 0.95rem;
}

.option-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 1.25rem 0 0.65rem;
}

.swatches,
.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-pills button,
.swatches button {
  min-width: 44px;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.size-pills button.is-active,
.swatches button.is-active {
  border-color: var(--text);
  background: var(--beige);
}

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

.qty-control button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
}

.qty-control span,
.qty-control input {
  width: 40px;
  text-align: center;
  border: 0;
  background: transparent;
}

.pdp-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.reviews {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.review {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.review__meta {
  font-size: 12px;
  color: var(--taupe);
  margin-bottom: 0.35rem;
}

/* Collections */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 700px) {
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.collection-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--beige);
  color: var(--cream);
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

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

.collection-card__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(61, 48, 40, 0.55));
}

.collection-card__label h3 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--cream);
}

/* Cart drawer */
.cart-drawer {
  right: 0;
  width: min(400px, 94vw);
  transform: translateX(105%);
}

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

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.drawer-head h2 {
  font-size: 1.5rem;
  margin: 0;
}

.drawer-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.25rem;
}

.drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.75rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-line__img img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  background: var(--beige);
}

.cart-line__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.cart-line__meta {
  font-size: 12px;
  color: var(--taupe);
  margin: 0.2rem 0 0.55rem;
}

.cart-line__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-line__remove {
  border: 0;
  background: none;
  padding: 0;
  margin-top: 0.45rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--taupe);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* Forms & checkout */
.form,
.checkout-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
  }
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-row label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--primary);
}

.checkout-summary {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-row input {
  flex: 1;
  border: 1px solid var(--border);
  padding: 0.75rem;
  background: var(--cream);
}

.auth-card,
.page-narrow {
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--border);
}

.page-wide {
  max-width: 860px;
  margin: 0 auto;
}

.page-hero {
  padding: 2.5rem 0 1rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-hero p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0.5rem auto 0;
}

/* Wishlist heart active */
[data-wishlist-toggle].is-active svg {
  fill: var(--primary);
  stroke: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: var(--beige);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.22em;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: var(--beige);
  opacity: 0.85;
}

.site-footer a:hover {
  opacity: 1;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--primary);
}

.footer-col a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 13px;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 220, 203, 0.15);
  font-size: 12px;
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 400;
  background: var(--text);
  color: var(--cream);
  padding: 0.85rem 1.35rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease);
  max-width: min(90vw, 420px);
  text-align: center;
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

/* Modal / quick view */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 48, 40, 0.4);
}

.modal__panel {
  position: relative;
  background: var(--white);
  width: min(880px, 100%);
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow);
  display: grid;
}

@media (min-width: 720px) {
  .modal__panel {
    grid-template-columns: 1fr 1fr;
  }
}

.modal__media {
  aspect-ratio: 3 / 4;
  background: var(--beige);
}

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

.modal__body {
  padding: 1.5rem;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1.25rem;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.empty-state__text {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Loading */
.loading-screen {
  display: grid;
  place-items: center;
  min-height: 40vh;
  gap: 1rem;
  color: var(--taupe);
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--beige);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

/* Orders / profile */
.order-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.order-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.stars {
  color: var(--primary);
  letter-spacing: 0.05em;
}

.breadcrumb {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.25rem;
}

.breadcrumb a:hover {
  color: var(--text);
}

.feature-strip {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 700px) {
  .feature-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-strip h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

#MainContent {
  min-height: 55vh;
}

@media (max-width: 719px) {
  .product-card__actions {
    opacity: 1;
    transform: none;
  }
  .form-row.two {
    grid-template-columns: 1fr;
  }
}
