:root {
  color-scheme: light;
  --ink: #141414;
  --sand: #f9f3e8;
  --sun: #f5b22d;
  --sea: #1ea896;
  --brick: #e85d3a;
  --sky: #cfe7f4;
  --cocoa: #5a4332;
  --white: #ffffff;
  --shadow: rgba(20, 20, 20, 0.12);
  --glow: rgba(245, 178, 45, 0.45);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff4d6 0%, transparent 55%),
    radial-gradient(circle at 85% 10%, #cfe7f4 0%, transparent 45%),
    linear-gradient(160deg, #f9f3e8 0%, #f5f0e5 45%, #f0ebe2 100%);
  min-height: 100vh;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}

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

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

.side-ribbon {
  position: fixed;
  bottom: 48px;
  right: -115px;
  background: #ff6f61;
  color: var(--white);
  padding: 16px 32px;
  width: 420px;
  text-align: center;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 14px;
  transform: rotate(-35deg);
  box-shadow: 0 18px 30px rgba(232, 93, 58, 0.35);
  z-index: 10;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 60px var(--shadow);
  backdrop-filter: blur(18px);
  animation: rise 0.7s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 96px;
  height: 96px;
  border-radius: 0;
  background: transparent;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

.brand-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--sun);
  position: absolute;
}

.brand-ball {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 0 6px rgba(30, 168, 150, 0.2);
}

.brand-text h1 {
  font-family: inherit;
  font-size: 34px;
  margin: 0;
  letter-spacing: 1px;
}

.brand-eyebrow {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.6);
}

.main-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sky);
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(30, 168, 150, 0.2);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.6);
}

.search input {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.9);
  min-width: 220px;
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.1);
  font-size: 14px;
  color: var(--ink);
}

.tool-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(20, 20, 20, 0.1);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.tool-button.cart {
  background: var(--sun);
  box-shadow: 0 12px 24px var(--glow);
  justify-content: center;
  gap: 8px;
}

.tool-button.cart .cart-icon {
  width: 18px;
  height: 18px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 94vw);
  background: var(--white);
  box-shadow: -30px 0 60px rgba(20, 20, 20, 0.25);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 30;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 40;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(20, 20, 20, 0.2);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 13px;
  font-weight: 600;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

body.cart-open {
  overflow: hidden;
}

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

body.cart-open .cart-panel {
  transform: translateX(0);
}

.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.demo-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.demo-modal-card {
  width: min(420px, 92vw);
  background: var(--white);
  border-radius: 22px;
  padding: 28px;
  display: grid;
  gap: 12px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(20, 20, 20, 0.2);
}

.demo-modal-card h2 {
  margin: 0;
  font-family: inherit;
  font-size: 34px;
}

.demo-modal-card p {
  margin: 0;
  color: rgba(20, 20, 20, 0.7);
  font-size: 14px;
}

.demo-modal .cta {
  background: #f28b82;
  box-shadow: 0 12px 24px rgba(242, 139, 130, 0.35);
}

.demo-modal .cta:hover {
  background: #ee746b;
}

body.demo-modal-open {
  overflow: hidden;
}

body.demo-modal-open .demo-modal-overlay,
body.demo-modal-open .demo-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cart-header h2 {
  margin: 4px 0 0;
  font-family: inherit;
  font-size: 32px;
}

.cart-close {
  border: none;
  background: rgba(20, 20, 20, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
  flex: 1;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(249, 243, 232, 0.7);
}

.cart-item-media {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.cart-item-info h3 {
  margin: 0;
  font-size: 14px;
}

.cart-item-info p {
  margin: 2px 0 4px;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.6);
}

.cart-item-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-meta-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.5);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.12);
  background: rgba(255, 255, 255, 0.7);
}

.cart-qty-input {
  width: 32px;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

.cart-qty-input:focus {
  outline: none;
}

.cart-qty-button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.16);
  background: rgba(20, 20, 20, 0.04);
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.cart-qty-button:hover {
  border-color: rgba(20, 20, 20, 0.32);
}
}

.cart-item-price {
  font-weight: 700;
  color: var(--brick);
  font-size: 14px;
}

.cart-item-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.cart-item-remove {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(232, 93, 58, 0.22);
  background: #fde8ea;
  color: #c5626a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, box-shadow 0.2s ease;
}

.cart-item-remove svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cart-item-remove:hover {
  background: #fbdde1;
  color: #b84d56;
  border-color: rgba(232, 93, 58, 0.35);
  box-shadow: 0 8px 18px rgba(232, 93, 58, 0.15);
}

.cart-summary {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}

.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.cart-summary-row.total {
  font-size: 16px;
  font-weight: 700;
}

.cart-summary .cta,
.cart-summary .ghost {
  width: 100%;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 24px var(--glow);
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
}

.ghost.small {
  padding: 8px 14px;
  font-size: 12px;
}

.storefront {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 32px;
  margin: 40px 0 56px;
}

.page-section {
  display: grid;
  gap: 24px;
  margin: 40px 0 56px;
}

.filters {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 50px var(--shadow);
  animation: rise 0.8s ease 0.1s both;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.filters-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.filters h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}

.filters-toggle {
  display: none;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.link-button {
  border: none;
  background: transparent;
  color: rgba(20, 20, 20, 0.6);
  font-weight: 600;
  cursor: pointer;
}

.filter-block {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  padding-top: 16px;
  margin-top: 16px;
}

.filter-block h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(20, 20, 20, 0.6);
}

.check {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
}

.check input {
  accent-color: var(--sea);
  width: 16px;
  height: 16px;
}

.count {
  font-size: 12px;
  color: rgba(20, 20, 20, 0.5);
}

.range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

.range input {
  flex: 1;
}

.range-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.6);
}

.pill {
  background: rgba(30, 168, 150, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--sea);
  font-weight: 600;
}

.perk-card {
  background: var(--sand);
  border-radius: 18px;
  padding: 16px;
}

.perk-card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.shop-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: rise 0.8s ease 0.2s both;
}

.shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.shop-head h2 {
  font-family: inherit;
  font-size: 40px;
  margin: 4px 0;
}

.shop-head .filters h2 {
  font-size: 12px;
  font-weight: 400;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.6);
  margin: 0;
}

.subtle {
  margin: 0;
  color: rgba(20, 20, 20, 0.6);
}

.shop-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.6);
}

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-search {
  display: flex;
  justify-content: flex-start;
}

.shop-search .search {
  width: 100%;
}

.shop-search input {
  width: 100%;
  max-width: 360px;
}

.chip {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  cursor: pointer;
}

.chip.active {
  background: var(--ink);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: rise 0.6s ease both;
}

.product-card:nth-child(2) {
  animation-delay: 0.05s;
}

.product-card:nth-child(3) {
  animation-delay: 0.1s;
}

.product-card:nth-child(4) {
  animation-delay: 0.15s;
}

.product-card:nth-child(5) {
  animation-delay: 0.2s;
}

.product-card:nth-child(6) {
  animation-delay: 0.25s;
}

.product-card:nth-child(7) {
  animation-delay: 0.3s;
}

.product-card:nth-child(8) {
  animation-delay: 0.35s;
}

.product-media {
  position: relative;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 12px;
  color: var(--white);
}

.product-media.has-photo,
.product-detail-media.has-photo,
.product-thumb.has-photo,
.media-preview.has-photo,
.cart-item-media.has-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-media.has-photo::after,
.product-detail-media.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.55));
  border-radius: inherit;
}

.product-media.has-photo > *,
.product-detail-media.has-photo > * {
  position: relative;
  z-index: 1;
}

.product-sku {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-left: auto;
}

.badge {
  background: rgba(20, 20, 20, 0.65);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gradient-one {
  background: linear-gradient(135deg, #171717, #3a3a3a);
}

.gradient-two {
  background: linear-gradient(135deg, #1ea896, #88d8c4);
}

.gradient-three {
  background: linear-gradient(135deg, #e85d3a, #f29f63);
}

.gradient-four {
  background: linear-gradient(135deg, #36454f, #7489a6);
}

.gradient-five {
  background: linear-gradient(135deg, #f5b22d, #ffe29d);
  color: var(--ink);
}

.gradient-six {
  background: linear-gradient(135deg, #1f2a44, #52607a);
}

.gradient-seven {
  background: linear-gradient(135deg, #5a4332, #a07f66);
}

.gradient-eight {
  background: linear-gradient(135deg, #a23e4c, #f08c9f);
}

.product-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-info .product-meta {
  margin-top: auto;
}

.product-info .ghost.small {
  margin-top: 8px;
}

.product-info h3 {
  margin: 0;
  font-size: 16px;
}

.product-info p {
  margin: 0;
  color: rgba(20, 20, 20, 0.6);
  font-size: 13px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}

.price {
  color: var(--brick);
}

.storefront .product-card {
  cursor: pointer;
}

.product-grid .product-card {
  cursor: pointer;
}

.product-link {
  color: inherit;
  text-decoration: none;
}

.product-link:hover,
.product-link:focus-visible {
  text-decoration: underline;
}

.product-detail {
  gap: 32px;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 24px;
  align-items: stretch;
  background: var(--white);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 24px 48px rgba(20, 20, 20, 0.1);
}

.product-detail-gallery {
  display: grid;
  gap: 12px;
}

.product-detail-media {
  position: relative;
  border-radius: 18px;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  color: var(--white);
}

.product-detail-media .badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 1;
}

.product-detail-media .product-detail-sku {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 1;
}

.product-media-expand {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  background: rgba(20, 20, 20, 0.35);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.product-detail-media.has-photo .product-media-expand {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
}

.secondhand-detail-card .product-media-expand {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  bottom: auto;
  align-self: flex-start;
}

.product-detail-sku {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  margin-left: auto;
}

.product-detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}

.product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(20, 20, 20, 0.12);
}

.product-thumb.active {
  border-color: var(--ink);
}

.product-thumb:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 168, 150, 0.35);
}

.product-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-detail-header h3 {
  margin: 0;
  font-size: 24px;
}

.product-detail-header p {
  margin: 6px 0 0;
  color: rgba(20, 20, 20, 0.6);
  font-size: 14px;
}

.product-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.product-detail-meta .meta-item {
  background: rgba(20, 20, 20, 0.04);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-detail-meta .meta-item span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(20, 20, 20, 0.5);
}

.product-detail-meta .meta-item strong {
  font-size: 14px;
}

.product-detail-description {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.04);
}

.product-detail-description p {
  margin: 0;
  color: rgba(20, 20, 20, 0.6);
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}

.product-size {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.04);
  border: 1px solid transparent;
}

.product-size.needs-selection {
  border-color: var(--brick);
  box-shadow: 0 0 0 3px rgba(232, 93, 58, 0.2);
}

.size-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.size-hint {
  font-size: 12px;
  color: rgba(20, 20, 20, 0.55);
}

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

.event-fields {
  display: grid;
  gap: 8px;
}

.size-select {
  display: block;
}

.size-select select,
.size-select input {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.2);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--white);
  color: var(--ink);
}

.size-select select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 168, 150, 0.35);
}

.size-option {
  border: 1px solid rgba(20, 20, 20, 0.2);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.size-option.active {
  background: var(--ink);
  color: var(--white);
  border-color: transparent;
}

.size-option:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 168, 150, 0.35);
}

.product-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-detail-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-detail-amount {
  font-size: 26px;
  font-weight: 700;
  color: var(--brick);
}

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

.product-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.08);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.product-detail-header .secondhand-summary {
  margin: 0;
  color: rgba(20, 20, 20, 0.65);
  font-size: 15px;
  white-space: pre-line;
}

.secondhand-description {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.04);
}

.secondhand-description p:not(.eyebrow) {
  margin: 6px 0 0;
  color: rgba(20, 20, 20, 0.65);
  line-height: 1.6;
  white-space: pre-line;
}

.secondhand-contact {
  margin-top: 16px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px dashed rgba(20, 20, 20, 0.12);
}

.contact-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-header h4 {
  margin: 6px 0 0;
  font-size: 18px;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.secondhand-contact .contact-item strong {
  filter: blur(6px);
  opacity: 0.7;
  user-select: none;
}

.secondhand-contact.is-revealed .contact-item strong {
  filter: none;
  opacity: 1;
  user-select: text;
}

.contact-item span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(20, 20, 20, 0.6);
}

.contact-item strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.contact-item.preferred {
  grid-column: 1 / -1;
}

.contact-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.5);
}

.media-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 45;
}

.media-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 55;
}

.media-stage {
  position: relative;
  display: inline-block;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(20, 20, 20, 0.5);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(8px);
  font-size: 20px;
  line-height: 1;
}

.media-nav.prev {
  left: 12px;
}

.media-nav.next {
  right: 12px;
}

.media-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.media-preview {
  width: min(90vw, 1200px);
  height: 90vh;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(20, 20, 20, 0.2);
  background-position: center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  touch-action: none;
  cursor: zoom-in;
}

.media-preview.is-zoomed {
  cursor: grab;
}

.media-preview.is-dragging {
  cursor: grabbing;
}

.media-close {
  margin-top: 16px;
}

body.media-open {
  overflow: hidden;
}

body.media-open .media-overlay,
body.media-open .media-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-link {
  text-decoration: none;
}

.shop-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.note-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 16px 30px rgba(20, 20, 20, 0.08);
}

.note-card h3 {
  margin: 0 0 8px;
}

.form-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 22px 50px var(--shadow);
}

.sell-form {
  display: grid;
  gap: 18px;
}

.form-section {
  display: grid;
  gap: 12px;
}

.form-section + .form-section {
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  padding-top: 16px;
}

.form-section h3 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(20, 20, 20, 0.6);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(20, 20, 20, 0.6);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(20, 20, 20, 0.15);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  color: var(--ink);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(20, 20, 20, 0.6) 50%),
    linear-gradient(135deg, rgba(20, 20, 20, 0.6) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px),
    calc(100% - 12px) calc(1em + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.form-row.form-row-single {
  grid-template-columns: 1fr;
  gap: 8px;
}

.photo-upload {
  border: 2px dashed rgba(20, 20, 20, 0.18);
  border-radius: 20px;
  padding: 16px;
  background: rgba(249, 243, 232, 0.6);
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.photo-upload:hover {
  border-color: rgba(20, 20, 20, 0.35);
  background: rgba(249, 243, 232, 0.8);
}

.photo-upload input {
  display: none;
}

.photo-title {
  margin: 0;
  font-weight: 700;
}

.helper {
  margin: 0;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.6);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 10px;
}

.photo-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 20, 20, 0.1);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.check.inline {
  grid-template-columns: 16px 1fr;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
}

.form-actions .cta {
  padding: 14px 28px;
  font-size: 15px;
}

.form-actions .helper {
  text-align: center;
}

.note-card.highlight {
  background: var(--ink);
  color: var(--white);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.info-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 22px 50px rgba(20, 20, 20, 0.08);
  animation: rise 0.7s ease 0.15s both;
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.info-header h2 {
  margin: 0;
  font-size: 24px;
}

.announcement-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.announcement-item:last-of-type {
  border-bottom: none;
}

.announcement-item:hover {
  background: rgba(20, 20, 20, 0.04);
}

.announcement-item:focus-visible {
  outline: 2px solid rgba(30, 168, 150, 0.5);
  outline-offset: 2px;
}

.announcement-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.announcement-item p {
  margin: 0;
  font-size: 13px;
  color: rgba(20, 20, 20, 0.6);
}

.announcement-item span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(20, 20, 20, 0.5);
}

.announcement-detail {
  gap: 32px;
}

.announcement-detail-card {
  display: grid;
  gap: 20px;
  background: var(--white);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 32px 60px rgba(20, 20, 20, 0.12);
  width: 100%;
}

.announcement-detail-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-time {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(20, 20, 20, 0.5);
}

.announcement-detail-body h3 {
  margin: 0 0 10px;
  font-size: 32px;
  letter-spacing: -0.02em;
}

.announcement-detail-body p {
  margin: 0;
}

.announcement-subtitle {
  margin-top: 6px;
  padding: 6px 0 2px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(20, 20, 20, 0.7);
}

.announcement-description {
  margin-top: 8px;
  padding: 8px 0 4px;
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.65);
}

.announcement-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(20, 20, 20, 0.03);
}

.announcement-detail-meta span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(20, 20, 20, 0.6);
}

.announcement-detail-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.announcement-detail-highlight {
  padding: 16px;
  border-radius: 16px;
  background: rgba(30, 168, 150, 0.08);
}

.announcement-detail-highlight p {
  margin: 6px 0 0;
}

.announcement-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.secondhand-grid {
  display: grid;
  gap: 14px;
}

.secondhand-grid .product-info p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing {
  padding: 16px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(20, 20, 20, 0.06);
  box-shadow: 0 14px 26px rgba(20, 20, 20, 0.06);
}

.listing-tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.listing span {
  font-weight: 700;
  color: var(--brick);
}

.site-footer {
  margin-top: 48px;
  padding: 24px 0 8px;
  color: rgba(20, 20, 20, 0.55);
  border-top: 1px solid rgba(20, 20, 20, 0.08);
  font-size: 13px;
}

.footer-columns {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-section-title {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.45);
}

.footer-line {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

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

.footer-list li {
  overflow-wrap: anywhere;
}

.footer-legal {
  margin: 40px 0 0;
  font-size: 12px;
  color: rgba(20, 20, 20, 0.5);
  text-align: center;
}

@media (max-width: 900px) {
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    min-height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .storefront {
    display: flex;
    flex-direction: column;
  }

  .filters {
    order: 0;
  }

  .shop-content {
    order: 1;
  }

  .shop-head {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-head .filters {
    width: 100%;
  }

  .filters-header {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .filters-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .link-button {
    font-size: 12px;
  }

  .filters-toggle {
    font-size: 11px;
    padding: 4px 10px;
  }

  .filters-toggle {
    display: inline-flex;
    align-items: center;
  }

  .filters-body {
    display: none;
  }

  .filters.is-open .filters-body {
    display: block;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 24px 16px calc(96px + env(safe-area-inset-bottom));
  }

  .footer-columns {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }

  .side-ribbon {
    display: none;
  }

  .site-header {
    padding: 14px;
  }

  .secondhand-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .secondhand-actions .cta {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .secondhand-actions .sort {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .secondhand-actions .sort span {
    grid-column: 1 / -1;
  }

  .secondhand-actions .sort .chip {
    width: 100%;
    text-align: center;
  }

  .secondhand-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .secondhand-filters .chip {
    width: 100%;
    text-align: center;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .nav-link {
    background: var(--sky);
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
    border-radius: 16px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    box-shadow: 0 10px 18px rgba(20, 20, 20, 0.08);
  }

  .nav-link:hover,
  .nav-link:focus {
    transform: none;
    box-shadow: 0 10px 18px rgba(20, 20, 20, 0.08);
  }

  .header-tools {
    width: 100%;
  }

  .header-tools .tool-button.cart {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 16px;
  }

  .cart-panel {
    width: 100vw;
    max-width: 100vw;
  }

  .brand-text h1 {
    font-size: 28px;
  }

  .search input {
    min-width: 160px;
  }

  .shop-head h2 {
    font-size: 32px;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }
}
