:root {
  --ink: #0d0906;
  --charcoal: #17120e;
  --espresso: #241b14;
  --coffee: #5e4f40;
  --mocha: #826f5b;
  --taupe: #9a836a;
  --peach: #ffc982;
  --peach-soft: #ffddb0;
  --cream: #fff4df;
  --coral: #f06a4d;
  --teal: #21a6a1;
  --mint: #8bdc72;
  --line: rgba(255, 201, 130, 0.22);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  
  /* Optimization variables */
  --bg: #110d0a;
  --panel: #1a1613;
  --panel-light: #241f1c;
  --accent: #ffc982;
  --accent-rgb: 255, 201, 130;
  --text: #f5f0eb;
  --text-muted: #a09890;
  --header-height: 72px;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.infinite-scroll-sentinel {
  width: 100%;
  height: 40px;
  margin-top: 20px;
  background: transparent;
  pointer-events: none;
}

.load-more-container {
  display: flex;
  justify-content: center;
  min-height: 52px;
}

.load-more-container[hidden] {
  display: none;
}

.load-more-fallback {
  display: none;
  min-height: 42px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 201, 130, 0.34);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.04);
}

.load-more-container.show-fallback .load-more-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes skeleton-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

.is-boot-loading .topbar,
.is-boot-loading main {
  opacity: 1;
}

.skeleton-chip,
.skeleton-line,
.skeleton-media,
.skeleton-banner-line,
.skeleton-promo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 201, 130, 0.1);
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 244, 223, 0.1) 42%, rgba(255, 201, 130, 0.18) 50%, rgba(255, 244, 223, 0.1) 58%, transparent 100%),
    rgba(255, 244, 223, 0.055);
  background-size: 220% 100%, 100% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-chip {
  display: inline-flex;
  width: 74px;
  height: 34px;
  border-radius: 8px;
}

.skeleton-chip.wide {
  width: 118px;
}

.hero-banners.is-skeleton {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: clamp(190px, 23vw, 340px);
  padding: clamp(18px, 4vw, 42px) clamp(18px, 5vw, 54px);
}

.skeleton-banner-line {
  display: block;
  width: min(560px, 78%);
  height: 22px;
  border-radius: 8px;
}

.skeleton-banner-line.short {
  width: min(340px, 56%);
  height: 36px;
}

.skeleton-banner-line.tiny {
  width: 154px;
  height: 42px;
}

.skeleton-promo {
  min-height: 112px;
  border-color: rgba(255, 201, 130, 0.14);
}

.product-grid-skeleton {
  grid-auto-rows: auto;
}

.skeleton-product-card {
  gap: 12px;
  padding: 0 14px 16px;
  pointer-events: none;
}

.skeleton-product-card:hover {
  transform: none;
}

.skeleton-media {
  display: block;
  width: calc(100% + 28px);
  aspect-ratio: 1;
  margin: 0 -14px 4px;
  border: 0;
  border-radius: 0;
}

.skeleton-line {
  display: block;
  width: 100%;
  height: 14px;
  border-radius: 8px;
}

.skeleton-line.short {
  width: 42%;
}

.skeleton-line.tiny {
  width: 68%;
}

.skeleton-line.price {
  width: 52%;
  height: 24px;
  margin-top: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 201, 130, 0.62) rgba(13, 9, 6, 0.32);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(13, 9, 6, 0.34);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(13, 9, 6, 0.34);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 201, 130, 0.92), rgba(201, 141, 74, 0.78));
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--peach);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--cream);
  background: var(--charcoal);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

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

button {
  cursor: pointer;
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes drawer-slide {
  from {
    transform: translateX(28px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes cart-bump {
  0% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes add-pulse {
  0% {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
  }
  45% {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 22px 52px rgba(255, 201, 130, 0.3);
  }
  100% {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
  }
}

@keyframes add-button-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(0.88);
  }
  100% {
    transform: scale(1);
  }
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: var(--header-height);
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 9, 6, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.brand img,
.footer img {
  border: 1px solid rgba(255, 201, 130, 0.34);
  border-radius: 50%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand small {
  display: block;
  color: var(--peach);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.04);
}

.nav a,
.nav-link {
  color: rgba(255, 244, 223, 0.82);
  padding: 8px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-decoration: none;
}

.nav a:hover,
.nav-link:hover,
.catalog-menu:focus-within .nav-link {
  color: var(--ink);
  background: var(--peach);
}

.catalog-menu {
  position: relative;
}

.catalog-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 80;
  display: grid;
  width: min(280px, 80vw);
  max-height: min(520px, calc(100vh - 110px));
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 18, 14, 0.98);
  box-shadow: var(--shadow);
}

.catalog-menu-panel[hidden] {
  display: none;
}

.catalog-menu-panel button {
  min-height: 42px;
  padding: 10px 12px;
  color: var(--cream);
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.catalog-menu-panel button:hover,
.catalog-menu-panel button.active {
  color: var(--ink);
  background: var(--peach);
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  background: var(--peach);
  font-weight: 800;
}

.orders-toggle,
.track-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.04);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.orders-toggle span,
.track-toggle span {
  white-space: nowrap;
}

.orders-toggle:hover,
.track-toggle:hover {
  color: var(--ink);
  border-color: transparent;
  background: var(--peach);
}

.orders-toggle b {
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  border-radius: 999px;
  background: rgba(13, 9, 6, 0.5);
  font-size: 0.78rem;
  line-height: 1;
}

.orders-toggle:hover b {
  color: var(--ink);
  background: rgba(13, 9, 6, 0.18);
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.04);
  font-weight: 900;
}

.account-toggle:hover {
  color: var(--ink);
  border-color: transparent;
  background: var(--peach);
}

.account-mini-avatar,
.account-avatar-large,
.avatar-swatch {
  display: inline-grid;
  place-items: center;
  color: var(--cream);
  border: 1px solid rgba(255, 244, 223, 0.28);
  border-radius: 50%;
  overflow: hidden;
  background: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.account-mini-avatar img,
.account-avatar-large img,
.avatar-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-mini-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.68rem;
}

.cart-toggle svg,
.orders-toggle svg,
.track-toggle svg,
.icon-button svg,
.search-box svg,
.qty-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-toggle b {
  min-width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  border-radius: 999px;
  background: var(--ink);
  font-size: 0.78rem;
  line-height: 1;
}

.cart-toggle.cart-bump {
  animation: cart-bump 420ms ease;
}

main {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
}

.shop-head {
  display: flex;
  justify-content: center;
  padding: 64px 0 32px;
}

.shop-title {
  width: 100%;
  max-width: 880px;
  text-align: center;
}

.shop-title h1 {
  margin: 0 auto;
  max-width: 100%;
  font-size: clamp(2rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shop-title p:last-child {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 244, 223, 0.78);
  font-size: clamp(1rem, 2vw, 1.18rem);
  overflow-wrap: break-word;
}

.account-greeting {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--peach);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 900;
  line-height: 1.4;
}

.hero-banners {
  position: relative;
  min-height: clamp(190px, 23vw, 340px);
  margin: 0 auto 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--espresso);
  box-shadow: var(--shadow);
}

@keyframes banner-enter {
  from {
    opacity: 0;
    transform: translateX(30px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes banner-leave {
  from {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
    filter: blur(4px);
  }
}

.hero-banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--cream);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  will-change: opacity, transform;
}

.hero-banner-slide.active {
  opacity: 1;
  pointer-events: auto;
  animation: banner-enter 900ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-banner-slide.leaving {
  opacity: 0;
  pointer-events: none;
  animation: banner-leave 900ms cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 9, 6, 0.76), rgba(13, 9, 6, 0.26) 58%, rgba(13, 9, 6, 0.12));
}

.banner-copy {
  position: absolute;
  inset: auto auto clamp(18px, 4vw, 42px) clamp(18px, 5vw, 54px);
  width: min(620px, calc(100% - 36px));
}

.banner-copy h2 {
  margin: 0 0 8px;
  color: var(--cream);
  font-size: clamp(1.35rem, 4vw, 3rem);
  line-height: 1.02;
}

.banner-copy p {
  margin: 0;
  color: rgba(255, 244, 223, 0.86);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  overflow-wrap: anywhere;
}

.banner-copy b {
  display: inline-flex;
  margin-top: 16px;
  min-height: 42px;
  align-items: center;
  padding: 10px 14px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--peach);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--peach);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.catalog-shell {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 44px;
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}

.promo-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 92px;
  padding: 16px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.34);
  border-radius: 8px;
  background: var(--coffee);
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.promo-card > * {
  min-width: 0;
}

.promo-card:hover {
  transform: translateY(-2px);
  border-color: var(--peach);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.promo-card.active {
  border-color: var(--peach);
  background: linear-gradient(135deg, var(--coffee), rgba(255, 201, 130, 0.18));
  box-shadow: 0 0 0 2px rgba(255, 201, 130, 0.4) inset;
}

.promo-card b {
  display: grid;
  min-width: 64px;
  min-height: 48px;
  place-items: center;
  color: var(--ink);
  border-radius: 8px;
  background: var(--peach);
  font-weight: 900;
}

.promo-card h2,
.promo-card p,
.promo-card .promo-hint {
  margin: 0;
}

.promo-card h2 {
  font-size: 1.05rem;
}

.promo-card p {
  color: rgba(255, 244, 223, 0.74);
}

.promo-card .promo-hint {
  display: block;
  margin-top: 6px;
  color: rgba(255, 201, 130, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  white-space: normal;
}

.promo-card.active .promo-hint {
  color: var(--peach);
}

.active-promo-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.36);
  border-radius: 8px;
  background: rgba(255, 201, 130, 0.08);
  flex-wrap: wrap;
}

.active-promo-chip span {
  color: rgba(255, 244, 223, 0.78);
  font-size: 0.86rem;
}

.active-promo-chip b {
  color: var(--peach);
  font-weight: 900;
}

.active-promo-chip button {
  display: grid;
  width: 26px;
  height: 26px;
  margin-left: auto;
  place-items: center;
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  background: var(--peach);
  cursor: pointer;
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
}

.active-promo-chip button:hover {
  background: var(--peach-soft);
}

.filters {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(36, 27, 20, 0.92);
  box-shadow: var(--shadow);
}

.category-filter-block {
  display: none;
}

.filter-toggle,
.filter-drawer-head,
.apply-filters {
  display: none;
}

.filter-block + .filter-block,
.filter-row {
  margin-top: 20px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 244, 223, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 201, 130, 0.34);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.64);
}

.search-box input {
  width: 100%;
  color: var(--cream);
  border: 0;
  outline: 0;
  background: transparent;
}

.search-box input::placeholder {
  color: rgba(255, 244, 223, 0.42);
}

.category-list,
.anime-list,
.price-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.26);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.05);
  font-weight: 800;
}

.chip:hover,
.chip.active {
  color: var(--ink);
  border-color: transparent;
  background: var(--peach);
}

select {
  width: 100%;
  min-height: 44px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.34);
  border-radius: 8px;
  background: var(--ink);
  padding: 0 12px;
}

.catalog-area {
  min-width: 0;
}

.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.catalog-meta p {
  margin: 0;
  color: rgba(255, 244, 223, 0.72);
}

.catalog-meta b {
  color: var(--peach);
}

.text-button {
  color: var(--peach);
  border: 0;
  background: transparent;
  font-weight: 900;
}

.reset-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 201, 130, 0.34);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.04);
}

.reset-filters:hover {
  color: var(--ink);
  border-color: transparent;
  background: var(--peach);
}

.catalog-sort {
  display: grid;
  min-width: 230px;
}

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

.product-card {
  content-visibility: auto;
  contain-intrinsic-size: 300px 400px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 201, 130, 0.35);
  border-radius: 8px;
  background: var(--espresso);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 201, 130, 0.58);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.product-card.item-added {
  animation: none;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  color: inherit;
  background: var(--mocha);
  text-decoration: none;
}

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

.badge {
  display: inline-flex;
  width: max-content;
  margin: 0 0 2px;
  padding: 6px 9px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--peach);
  font-size: 0.76rem;
  font-weight: 900;
}

.badge-soon {
  color: #3a2800;
  background: #f0a830;
}

.badge-out {
  color: #fff4df;
  background: #6b3a3a;
}

.product-rating {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-top: -2px;
  padding: 4px 8px;
  color: var(--peach);
  border: 1px solid rgba(255, 201, 130, 0.24);
  border-radius: 999px;
  background: rgba(255, 201, 130, 0.08);
  font-size: 0.76rem;
  font-weight: 900;
}

.ordered-count {
  display: inline-flex;
  width: max-content;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.promo-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
}

.promo-badge::after {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.24);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.92);
  box-shadow: var(--shadow);
  content: attr(data-promo-text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.promo-badge:hover::after {
  opacity: 1;
  transform: translateY(0);
}

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

.product-copy {
  display: grid;
  gap: 8px;
  color: inherit;
  border-radius: 8px;
  text-decoration: none;
}

.product-link:focus-visible,
.product-copy:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}

.product-type,
.product-anime {
  margin: 0;
  color: rgba(255, 244, 223, 0.62);
  font-size: 0.88rem;
}

.product-card h3 {
  min-height: 2.4em;
  margin: 0;
  color: var(--cream);
  font-size: 1.12rem;
  line-height: 1.2;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.price {
  color: var(--peach);
  font-size: 1.08rem;
  white-space: nowrap;
}

.price s,
.modal-copy strong s {
  display: block;
  color: rgba(255, 244, 223, 0.48);
  font-size: 0.82rem;
  font-weight: 700;
}

.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  padding: 0 16px;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  background: var(--peach);
  font-size: 0.9rem;
  font-weight: 900;
}

.inline-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
}

.review-file-upload {
  margin-top: 12px;
  margin-bottom: 16px;
}

.file-upload-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--mocha);
  color: var(--peach);
  border: 1px solid rgba(255, 201, 130, 0.3);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.file-upload-label:hover {
  background: rgba(255, 201, 130, 0.1);
  border-color: var(--peach);
}

.file-upload-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.order-review-form input.file-upload-input[type="file"] {
  width: 0.1px;
  min-height: 0;
}

.review-form-actions {
  gap: 16px !important;
  margin-top: 20px !important;
}

.inline-qty b {
  min-width: 22px;
  color: var(--cream);
  text-align: center;
}

.inline-qty .qty-button {
  width: 30px;
  height: 34px;
}

.inline-qty .qty-button {
  color: var(--cream);
  background: rgba(255, 244, 223, 0.04);
}

.inline-qty .qty-button:hover {
  color: var(--ink);
  border-color: transparent;
  background: var(--peach);
}

.add-button:hover,
.primary-button:hover,
.cart-toggle:hover {
  background: var(--peach-soft);
}

.add-button.added,
.primary-button.added {
  animation: add-button-pop 360ms ease;
}

.empty-state {
  padding: 42px;
  border: 1px dashed rgba(255, 201, 130, 0.4);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.05);
  text-align: center;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.empty-state p {
  margin-top: 8px;
  color: rgba(255, 244, 223, 0.7);
}

.service-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 40px 0 66px;
}

.service-band article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--coffee);
}

.service-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--ink);
  border-radius: 8px;
  background: var(--peach);
  font-weight: 900;
}

.service-band h2 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: 1.2rem;
}

.service-band p {
  margin: 0;
  color: rgba(255, 244, 223, 0.76);
}

.seo-copy {
  width: min(1120px, calc(100% - 32px));
  margin: 42px auto 0;
  padding: clamp(22px, 4vw, 40px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.seo-copy h2 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.seo-copy p {
  margin: 0;
  color: rgba(255, 244, 223, 0.78);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.8;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 36px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-brand p {
  margin: 0;
  color: var(--peach);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 244, 223, 0.56);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.footer-center {
  text-align: center;
  width: min(520px, 100%);
  justify-self: center;
}

.footer-center h3 {
  margin: 0 0 8px;
  color: var(--cream);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-center p {
  margin: 0;
  color: rgba(255, 244, 223, 0.7);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-copy {
  margin-top: 12px !important;
  color: rgba(255, 244, 223, 0.42) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.04em;
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-self: end;
}

.social-link {
  display: inline-grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: 10px 14px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.18);
  border-radius: 12px;
  background: rgba(255, 244, 223, 0.04);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.social-link svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 201, 130, 0.12);
  color: var(--peach);
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: background 180ms ease, color 180ms ease;
}

.social-link.instagram svg {
  fill: none;
  stroke-width: 1.8;
}

.social-link span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.social-link b {
  color: var(--cream);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.social-link small {
  color: rgba(255, 244, 223, 0.58);
  font-size: 0.76rem;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 201, 130, 0.5);
  background: rgba(255, 201, 130, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}

.social-link:hover svg {
  background: var(--peach);
  color: var(--ink);
}

.social-link:hover b {
  color: var(--peach);
}

.drawer-backdrop,
.modal-backdrop,
.account-backdrop,
.track-backdrop,
.order-success-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(13, 9, 6, 0.68);
  backdrop-filter: blur(10px);
}

.drawer-backdrop:not([hidden]),
.modal-backdrop:not([hidden]),
.account-backdrop:not([hidden]),
.track-backdrop:not([hidden]),
.order-success-backdrop:not([hidden]) {
  animation: fade-in 180ms ease;
}

.cart-backdrop {
  display: grid;
  place-items: center;
  padding: 18px;
}

.cart-drawer {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  width: min(1240px, calc(100% - 24px));
  max-height: min(860px, calc(100vh - 36px));
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--espresso);
  box-shadow: var(--shadow);
  animation: modal-rise 220ms ease;
}

.account-backdrop,
.track-backdrop,
.order-success-backdrop {
  display: grid;
  place-items: center;
  padding: 18px;
}

.account-panel,
.track-panel,
.order-success-panel {
  display: grid;
  gap: 16px;
  width: min(940px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--espresso);
  box-shadow: var(--shadow);
  animation: modal-rise 220ms ease;
}

.track-panel,
.order-success-panel {
  width: min(560px, 100%);
}

.track-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.track-form label {
  display: grid;
  gap: 6px;
}

.track-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.34);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.58);
}

.track-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.34);
}

.track-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.track-card span {
  color: rgba(255, 244, 223, 0.66);
}

.track-card .copyable-id {
  color: var(--peach);
  border: 0;
  background: transparent;
  font-weight: 900;
}

.track-card ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.order-success-note {
  margin: 0;
  color: rgba(255, 244, 223, 0.78);
}

.senpai-id-prompt {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(520px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid rgba(255, 201, 130, 0.24);
  border-radius: 8px;
  background: rgba(36, 27, 20, 0.96);
  box-shadow: var(--shadow);
  animation: modal-rise 220ms ease;
}

.senpai-id-prompt b {
  color: var(--cream);
}

.senpai-id-prompt p {
  margin: 4px 0 0;
  color: rgba(255, 244, 223, 0.66);
  font-size: 0.9rem;
  line-height: 1.45;
}

.senpai-id-prompt-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.senpai-id-prompt-actions .primary-button {
  min-height: 42px;
  padding: 8px 12px;
  white-space: nowrap;
}

.senpai-id-prompt-actions .icon-button {
  min-width: 42px;
  min-height: 42px;
  background: rgba(255, 244, 223, 0.04);
}

.auth-guest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-user {
  display: grid;
  gap: 16px;
}

.auth-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 201, 130, 0.18);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.04);
}

.auth-card h3,
.account-orders h3,
.account-profile h3 {
  margin: 0;
}

.auth-card label {
  display: grid;
  gap: 6px;
}

.auth-card label span {
  color: rgba(255, 244, 223, 0.64);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.auth-card input {
  width: 100%;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.28);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.58);
  outline: 0;
  padding: 10px 11px;
}

.field-hint {
  display: block;
  color: var(--peach);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.auth-card .primary-button {
  width: 100%;
}

[data-login-form] {
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
}

.anime-quotes {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: stretch;
  gap: 10px;
  min-height: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 201, 130, 0.18);
}

.anime-quotes h4 {
  margin: 0;
  color: var(--peach);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.anime-quote-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  border: 1px solid rgba(255, 201, 130, 0.18);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.34);
  padding: 12px;
}

.anime-quote {
  display: grid;
  gap: 8px;
}

.anime-quote p {
  margin: 0;
  color: rgba(255, 244, 223, 0.86);
  font-size: 0.9rem;
  line-height: 1.45;
}

.anime-quote cite {
  color: rgba(255, 201, 130, 0.82);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.anime-quote-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.anime-quote-actions .ghost-button {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

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

.avatar-choice {
  cursor: pointer;
}

.avatar-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.avatar-swatch {
  width: 42px;
  height: 42px;
  font-size: 0.78rem;
}

.avatar-choice input:checked + .avatar-swatch {
  outline: 3px solid var(--peach);
  outline-offset: 2px;
}

.account-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.senpai-id-badge {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  cursor: pointer;
  user-select: none;
}

.senpai-id-badge span {
  color: rgba(255, 244, 223, 0.42);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.senpai-id-badge strong {
  display: inline-block;
  padding: 6px 10px;
  color: var(--peach);
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: rgba(255, 201, 130, 0.06);
  font-size: 0.82rem;
  font-family: monospace;
  transition: all 180ms ease;
}

.senpai-id-badge:hover strong {
  color: var(--ink);
  border-color: transparent;
  background: var(--peach);
}

.senpai-id-badge:active strong {
  transform: scale(0.96);
}

.account-avatar-large {
  width: 74px;
  height: 74px;
  font-size: 1.1rem;
}

.account-profile p {
  margin: 4px 0 0;
  color: rgba(255, 244, 223, 0.62);
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.account-actions .primary-button {
  min-width: 160px;
}

.account-orders {
  display: grid;
  gap: 10px;
}

.account-order-list {
  display: grid;
  gap: 8px;
}

.account-order {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 201, 130, 0.18);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.38);
}

.account-order-summary {
  display: grid;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.account-order:hover,
.account-order:focus-within {
  z-index: 4;
}

.account-order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.account-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.account-order.is-new,
.user-order-card.is-new {
  border-color: rgba(255, 201, 130, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 201, 130, 0.18) inset;
}

.account-order-title,
.user-order-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.85; }
  100% { transform: scale(2.4); opacity: 0; }
}

.new-dot {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 0 6px rgba(255, 201, 130, 0.7);
}

.new-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--peach);
  animation: pulse-ring 1.6s ease-out infinite;
  pointer-events: none;
}

.account-order .cancel-order {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.84rem;
  color: var(--coral);
  border-color: rgba(240, 106, 77, 0.4);
  background: rgba(240, 106, 77, 0.08);
}

.account-order .cancel-order:hover {
  color: var(--cream);
  border-color: var(--coral);
  background: var(--coral);
}

.review-toggle {
  justify-self: start;
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.86rem;
}

.order-review,
.order-review-form {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 201, 130, 0.12);
}

.order-review p {
  margin: 4px 0 0;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-stars label {
  cursor: pointer;
}

.review-stars input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-stars span {
  color: var(--peach);
  font-size: 1.45rem;
  line-height: 1;
}

.order-review-form textarea {
  width: 100%;
  min-height: 94px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.28);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.58);
  outline: 0;
  padding: 10px 11px;
  resize: vertical;
}

.order-review-form textarea:focus {
  border-color: var(--peach);
}

.order-review-form input[type="file"] {
  width: 100%;
  min-height: 44px;
  color: rgba(255, 244, 223, 0.72);
}

.order-review-form input.file-upload-input[type="file"] {
  width: 0.1px;
  min-height: 0;
}

.review-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-photo-row img,
.review-photo-item {
  width: 68px;
  height: 68px;
  border-radius: 8px;
}

.review-photo-row img {
  object-fit: cover;
}

.review-photo-item {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 201, 130, 0.24);
}

.review-photo-item button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  color: var(--cream);
  border: 1px solid rgba(255, 244, 223, 0.24);
  border-radius: 999px;
  background: rgba(13, 9, 6, 0.78);
}

.status-pill {
  position: relative;
  cursor: help;
}

.status-pill.status-new {
  background: var(--peach);
  color: var(--ink);
}

.status-pill.status-awaiting_payment {
  background: #f7a13d;
  color: var(--ink);
}

.status-pill.status-confirmed {
  background: var(--teal);
  color: var(--cream);
}

.status-pill.status-shipping {
  background: #3a8ee0;
  color: var(--cream);
}

.status-pill.status-delivered {
  background: var(--mint);
  color: var(--ink);
}

.status-pill.status-cancelled {
  background: var(--coral);
  color: var(--cream);
}

.status-pill[data-desc]:not([data-desc=""])::after {
  content: attr(data-desc);
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: max-content;
  max-width: 260px;
  padding: 9px 12px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.24);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.96);
  box-shadow: var(--shadow);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
}

.status-pill[data-desc]:not([data-desc=""])::before {
  content: "";
  position: absolute;
  right: 12px;
  top: calc(100% + 4px);
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(255, 201, 130, 0.24);
  border-top: 1px solid rgba(255, 201, 130, 0.24);
  background: rgba(13, 9, 6, 0.96);
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 61;
}

.status-pill[data-desc]:not([data-desc=""]):hover::after,
.status-pill[data-desc]:not([data-desc=""]):focus::after {
  opacity: 1;
  transform: translateY(0);
}

.status-pill[data-desc]:not([data-desc=""]):hover::before,
.status-pill[data-desc]:not([data-desc=""]):focus::before {
  opacity: 1;
}

.account-order small,
.account-order p {
  margin: 0;
  color: rgba(255, 244, 223, 0.68);
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  color: var(--ink);
  border-radius: 999px;
  background: var(--peach);
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 900;
}

.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2,
.modal-copy h2 {
  margin: 0;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.34);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.04);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
  min-height: 0;
}

.cart-summary,
.order-form {
  min-height: 0;
  border: 1px solid rgba(255, 201, 130, 0.18);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.04);
}

.cart-summary {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.cart-list {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 201, 130, 0.14);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.32);
}

.cart-item-remove {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  align-self: flex-start;
  color: var(--muted);
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 120ms, background 120ms;
}

.cart-item-remove:hover {
  color: var(--coral);
  background: rgba(240, 106, 77, 0.12);
}

.cart-item.highlight {
  animation: fade-in 220ms ease, add-button-pop 360ms ease;
}

.cart-item img {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.cart-item h3 {
  font-size: 0.98rem;
  line-height: 1.25;
}

.cart-item p {
  color: var(--peach);
  font-weight: 800;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}

.qty-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.34);
  border-radius: 8px;
  background: transparent;
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: rgba(255, 244, 223, 0.62);
  padding: 18px;
  text-align: center;
}

.cart-empty a {
  color: var(--peach);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-footer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.order-form {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 14px;
}

.order-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 10px;
}

.order-form label {
  display: grid;
  gap: 5px;
}

.order-form span {
  color: rgba(255, 244, 223, 0.64);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-form input,
.order-form textarea {
  width: 100%;
  min-height: 48px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.28);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.58);
  outline: 0;
  padding: 10px 11px;
}

.order-form textarea {
  height: 48px;
  resize: vertical;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--peach);
}

.delivery-picker {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding-top: 4px;
}

.delivery-picker-head,
.delivery-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.search-delivery-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.delivery-picker-head {
  justify-content: space-between;
}

.delivery-picker-head .ghost-button,
.delivery-search .ghost-button,
.delivery-actions .ghost-button {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.delivery-search input {
  min-width: 0;
}

.delivery-map {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  place-items: center;
  color: rgba(255, 244, 223, 0.7);
  border: 1px solid rgba(255, 201, 130, 0.22);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.44);
}

.delivery-map p {
  max-width: 260px;
  margin: 0;
  padding: 14px;
  text-align: center;
  font-size: 0.84rem;
}

.delivery-actions {
  flex-wrap: wrap;
}

.delivery-link {
  color: var(--peach);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.delivery-link:hover {
  color: var(--peach-soft);
}

.delivery-status {
  margin: 0;
  color: rgba(255, 244, 223, 0.68);
  font-size: 0.8rem;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--cream);
  font-size: 1rem;
}

.cart-total strong {
  color: var(--peach);
  font-size: 1.15rem;
}

.cart-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.mobile-order-button,
.mobile-cart-back {
  display: none;
}

.primary-button,
.ghost-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.mobile-order-button,
.mobile-cart-back {
  display: none;
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: wait;
  opacity: 0.76;
}

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

.primary-button[data-loading="true"]::before,
.ghost-button[data-loading="true"]::before,
.cancel-order[data-loading="true"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 720ms linear infinite;
}

.primary-button {
  color: var(--ink);
  border: 0;
  background: var(--peach);
}

.ghost-button {
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.34);
  background: rgba(255, 244, 223, 0.04);
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 18px;
}

.product-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 560px) minmax(260px, 360px);
  width: min(960px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--espresso);
  box-shadow: var(--shadow);
  animation: modal-rise 220ms ease;
}

.modal-media {
  --zoom: 1;
  --zoom-x: 50%;
  --zoom-y: 50%;
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: var(--mocha);
  cursor: zoom-in;
}

.modal-media img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: cover;
  transform: scale(var(--zoom));
  transform-origin: var(--zoom-x) var(--zoom-y);
  transition: transform 180ms ease, transform-origin 120ms ease;
}

.modal-media.is-zoomed {
  cursor: zoom-out;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(13, 9, 6, 0.76);
}

.modal-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
}

.modal-copy p {
  margin: 0;
  color: rgba(255, 244, 223, 0.72);
}

.modal-meta {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 201, 130, 0.18);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.04);
}

.modal-meta span {
  color: rgba(255, 244, 223, 0.54);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-meta b {
  color: var(--peach);
}

.modal-description {
  color: rgba(255, 244, 223, 0.82) !important;
}

.modal-actions {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.modal-actions .primary-button {
  width: 100%;
}

.modal-actions .inline-qty {
  grid-template-columns: 42px minmax(34px, auto) 42px;
  min-height: 48px;
}

.modal-actions .inline-qty .qty-button {
  width: 42px;
  height: 42px;
}

.modal-actions .inline-qty b {
  color: var(--peach);
  font-size: 1.08rem;
}

.modal-copy strong {
  color: var(--peach);
  font-size: 1.8rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(340px, calc(100% - 36px));
  padding: 14px 16px;
  color: var(--ink);
  border-radius: 8px;
  background: var(--peach);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.error-page-body {
  min-height: 100vh;
  padding-top: var(--header-height);
  background: var(--charcoal);
}

.error-topbar a {
  text-decoration: none;
}

.error-topbar {
  grid-template-columns: 1fr auto 1fr;
}

.error-topbar .nav-link {
  display: inline-flex;
  align-items: center;
}

.manga-error-page {
  display: grid;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  place-items: center;
  padding: 0;
}

.manga-error-panel {
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--espresso);
  box-shadow: none;
}

.manga-error-scene {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  padding: clamp(28px, 5vw, 72px);
  color: var(--cream);
  background:
    repeating-conic-gradient(from 0deg at 80% 50%, transparent 0deg 4deg, rgba(255, 244, 223, 0.045) 4deg 5deg),
    var(--espresso);
}

.manga-error-scene::before,
.manga-error-scene::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.manga-error-scene::before {
  inset: auto -12% -18% 44%;
  height: 42%;
  border: 2px solid rgba(13, 9, 6, 0.9);
  background: rgba(255, 201, 130, 0.12);
  transform: skewX(-16deg);
}

.manga-error-scene::after {
  inset: 0;
  background: radial-gradient(circle at 80% 50%, transparent 0 18%, rgba(13, 9, 6, 0.22) 64%);
}

.manga-error-code-wrap {
  position: absolute;
  top: clamp(76px, 12vh, 170px);
  left: clamp(58px, 9vw, 170px);
  z-index: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 28px);
}

.manga-error-code {
  color: var(--cream);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(8.5rem, 22vw, 20rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.85;
  text-shadow: 8px 8px 0 var(--peach), 16px 16px 0 var(--ink);
}

.manga-error-jp {
  margin-top: 28px;
  color: #c98d4a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-orientation: mixed;
  writing-mode: vertical-rl;
}

.manga-error-bubble {
  position: absolute;
  top: clamp(112px, 15vh, 220px);
  right: clamp(96px, 16vw, 300px);
  z-index: 2;
  width: min(360px, calc(100% - 96px));
  margin: 0;
  padding: 20px 26px;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.25;
}

.manga-error-bubble::before,
.manga-error-bubble::after {
  content: "";
  position: absolute;
  left: 36px;
  width: 0;
  height: 0;
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
}

.manga-error-bubble::before {
  bottom: -22px;
  border-top: 22px solid var(--ink);
}

.manga-error-bubble::after {
  bottom: -17px;
  left: 39px;
  border-right-width: 11px;
  border-left-width: 11px;
  border-top: 18px solid var(--cream);
}

.manga-error-sfx {
  position: absolute;
  top: clamp(330px, 41vh, 560px);
  right: clamp(180px, 23vw, 460px);
  z-index: 1;
  margin: 0;
  color: #c98d4a;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4.6rem, 10vw, 7.5rem);
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-8deg);
}

.manga-error-copy {
  position: absolute;
  right: clamp(420px, 34vw, 680px);
  bottom: clamp(24px, 5vh, 84px);
  left: clamp(70px, 9vw, 170px);
  z-index: 2;
}

.manga-error-kicker {
  margin: 0 0 7px;
  color: #c98d4a;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.manga-error-copy h1 {
  max-width: 720px;
  margin: 0;
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4.6vw, 3.75rem);
  font-weight: 900;
  line-height: 1.05;
}

.manga-error-copy p:last-child {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 244, 223, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.55;
}

.manga-error-actions {
  position: absolute;
  right: clamp(70px, 9vw, 170px);
  bottom: clamp(34px, 5vh, 94px);
  z-index: 2;
  display: grid;
  gap: 12px;
  width: min(340px, calc(100% - 72px));
}

.manga-error-actions a {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.manga-error-primary {
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--peach);
  box-shadow: 4px 4px 0 var(--ink);
}

.manga-error-ghost {
  color: var(--cream);
  border: 2px solid rgba(255, 244, 223, 0.4);
  background: transparent;
}

@media (max-width: 820px) {
  .manga-error-page {
    padding: 0;
  }

  .manga-error-panel {
    min-height: calc(100vh - var(--header-height));
    box-shadow: none;
  }

  .manga-error-scene {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 20px;
    min-height: calc(100vh - var(--header-height));
    padding: 22px;
  }

  .manga-error-code-wrap,
  .manga-error-bubble,
  .manga-error-sfx,
  .manga-error-copy,
  .manga-error-actions {
    position: relative;
    inset: auto;
  }

  .manga-error-code-wrap {
    gap: 12px;
  }

  .manga-error-code {
    font-size: clamp(6.2rem, 32vw, 10rem);
    text-shadow: 4px 4px 0 var(--peach), 8px 8px 0 var(--ink);
  }

  .manga-error-jp {
    margin-top: 12px;
    font-size: 1.25rem;
  }

  .manga-error-bubble {
    top: auto;
    right: auto;
    width: min(340px, 100%);
  }

  .manga-error-sfx {
    justify-self: end;
    margin: -8px 8px -10px 0;
    font-size: clamp(3.2rem, 16vw, 4.6rem);
  }

  .manga-error-copy {
    align-self: end;
  }

  .manga-error-copy h1 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .manga-error-actions {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .manga-error-scene {
    padding: 18px;
  }

  .manga-error-code-wrap {
    gap: 8px;
  }

  .manga-error-code {
    font-size: clamp(5.2rem, 31vw, 7.5rem);
  }

  .manga-error-jp {
    font-size: 1rem;
    letter-spacing: 0.12em;
  }

  .manga-error-bubble {
    padding: 15px 18px;
  }

  .manga-error-actions {
    gap: 8px;
  }
}

.account-avatar-edit {
  position: relative;
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.account-avatar-edit .account-avatar-large {
  display: inline-grid;
  transition: filter 200ms ease;
}

.account-avatar-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(13, 9, 6, 0.6);
  color: var(--peach);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.account-avatar-overlay svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-avatar-edit:hover .account-avatar-large,
.account-avatar-edit:focus-visible .account-avatar-large {
  filter: blur(2.5px);
}

.account-avatar-edit:hover .account-avatar-overlay,
.account-avatar-edit:focus-visible .account-avatar-overlay {
  opacity: 1;
}

.account-avatar-edit:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}

.orders-backdrop,
.reviews-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 9, 6, 0.68);
  backdrop-filter: blur(10px);
}

.orders-backdrop:not([hidden]),
.reviews-backdrop:not([hidden]) {
  animation: fade-in 180ms ease;
}

.orders-panel,
.reviews-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 16px;
  width: min(720px, calc(100% - 32px));
  max-height: min(820px, calc(100vh - 36px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--espresso);
  box-shadow: var(--shadow);
  animation: modal-rise 220ms ease;
}

.reviews-panel {
  width: min(860px, calc(100% - 32px));
}

.reviews-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.reviews-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reviews-controls select {
  width: 100%;
}

.review-photo-filter {
  min-height: 46px;
  align-content: center;
  justify-content: start;
  grid-template-columns: auto 1fr;
  text-transform: none;
}

.reviews-list {
  display: grid;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}

.public-review-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.28);
}

.public-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-review-head b {
  color: var(--peach);
  letter-spacing: 0.04em;
}

.public-review-card strong {
  color: var(--cream);
}

.public-review-card small,
.public-review-head span {
  color: rgba(255, 244, 223, 0.42);
}

.review-products,
.public-review-card p {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.review-products .text-button {
  padding: 0;
  font-weight: 800;
  color: var(--peach);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 180ms ease;
}

.review-products .text-button:hover {
  color: var(--cream);
}

.public-review-card p {
  margin: 0;
  line-height: 1.6;
}

.public-review-photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.public-review-photos img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.orders-tabs .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  min-height: 40px;
}

.orders-tabs .chip b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(13, 9, 6, 0.5);
  color: inherit;
  font-size: 0.74rem;
  font-weight: 900;
}

.orders-tabs .chip.active b {
  background: rgba(13, 9, 6, 0.18);
}

.orders-popup-list {
  display: grid;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  padding-bottom: 4px;
}

.orders-empty {
  margin: 0;
  padding: 28px 18px;
  text-align: center;
  color: rgba(255, 244, 223, 0.62);
  border: 1px dashed rgba(255, 201, 130, 0.24);
  border-radius: 8px;
  background: rgba(255, 244, 223, 0.03);
}

.order-skeleton {
  gap: 14px;
  pointer-events: none;
}

.order-skeleton-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.order-skeleton-title > div {
  display: grid;
  gap: 7px;
  min-width: 148px;
}

.skeleton-dot,
.skeleton-pill,
.skeleton-action {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 201, 130, 0.1);
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 244, 223, 0.1) 42%, rgba(255, 201, 130, 0.18) 50%, rgba(255, 244, 223, 0.1) 58%, transparent 100%),
    rgba(255, 244, 223, 0.055);
  background-size: 220% 100%, 100% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.skeleton-pill {
  width: 112px;
  height: 30px;
  border-radius: 999px;
}

.skeleton-action {
  width: 132px;
  height: 36px;
  border-radius: 8px;
}

.order-skeleton .skeleton-line {
  max-width: 100%;
}

.skeleton-line.order-id {
  width: 132px;
  height: 16px;
}

.skeleton-line.order-date {
  width: 104px;
  height: 12px;
}

.skeleton-line.order-items {
  width: 82%;
  height: 16px;
}

.skeleton-line.order-items.short {
  width: 64%;
}

.skeleton-line.order-price {
  width: 116px;
  height: 24px;
}

.account-order[data-order-detail-id] {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.account-order[data-order-detail-id]:hover {
  border-color: rgba(255, 201, 130, 0.48);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.order-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 9, 6, 0.72);
  backdrop-filter: blur(10px);
}

.order-detail-backdrop:not([hidden]) {
  animation: fade-in 180ms ease;
}

.order-detail-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  width: min(620px, calc(100% - 24px));
  max-height: min(700px, calc(100vh - 36px));
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--espresso);
  box-shadow: var(--shadow);
  animation: modal-rise 220ms ease;
}

.order-detail-body {
  overflow: auto;
  display: grid;
  gap: 14px;
  padding-right: 4px;
}

.order-detail-info {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 201, 130, 0.18);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.38);
}

.order-detail-info .info-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.order-detail-info .info-row span {
  color: rgba(255, 244, 223, 0.62);
  font-size: 0.88rem;
}

.order-detail-info .info-row b {
  color: var(--cream);
  font-size: 0.92rem;
  text-align: right;
}

.order-detail-items-title {
  margin: 4px 0 0;
  color: rgba(255, 244, 223, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.order-detail-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 201, 130, 0.12);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.28);
}

.order-detail-item img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--mocha);
}

.order-detail-item .item-info h4 {
  margin: 0;
  color: var(--cream);
  font-size: 0.92rem;
}

.order-detail-item .item-info p {
  margin: 2px 0 0;
  color: rgba(255, 244, 223, 0.58);
  font-size: 0.82rem;
}

.order-detail-item .item-price {
  color: var(--peach);
  font-weight: 900;
  font-size: 0.92rem;
  white-space: nowrap;
  text-align: right;
}

.order-detail-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 201, 130, 0.2);
  margin-top: 4px;
}

.order-detail-total span {
  color: rgba(255, 244, 223, 0.72);
  font-size: 0.92rem;
}

.order-detail-total b {
  color: var(--peach);
  font-size: 1.1rem;
  font-weight: 900;
}

.contacts-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 9, 6, 0.68);
  backdrop-filter: blur(10px);
}

.contacts-backdrop:not([hidden]) {
  animation: fade-in 180ms ease;
}

.contacts-panel {
  display: grid;
  gap: 0;
  width: min(960px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  padding: 28px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--espresso);
  box-shadow: var(--shadow);
  animation: modal-rise 220ms ease;
}

.contacts-panel .drawer-head {
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.contacts-intro {
  max-width: 820px;
  margin: 0 0 22px;
  color: rgba(255, 244, 223, 0.78);
  font-size: 0.96rem;
  line-height: 1.5;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  display: grid;
  grid-template-rows: 56px auto auto 1fr;
  min-height: 220px;
  align-content: start;
  justify-items: center;
  gap: 0;
  padding: 30px 18px 22px;
  color: var(--cream);
  border: 1px solid rgba(255, 201, 130, 0.18);
  border-radius: 12px;
  background: rgba(255, 244, 223, 0.04);
  text-decoration: none;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 201, 130, 0.5);
  background: rgba(255, 201, 130, 0.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

.contact-icon {
  display: inline-grid;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 201, 130, 0.12);
  color: var(--peach);
  transition: background 180ms ease, color 180ms ease;
}

.contact-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card:hover .contact-icon {
  background: var(--peach);
  color: var(--ink);
}

.contact-card b {
  display: block;
  margin: 14px 0 6px;
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.contact-card small {
  display: block;
  margin: 0 0 10px;
  color: var(--peach);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.contact-card > span:not(.contact-icon) {
  display: block;
  margin: 0;
  color: rgba(255, 244, 223, 0.6);
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-card:hover b {
  color: var(--peach);
}

[hidden] {
  display: none !important;
}

.copyable-id {
  display: inline-block;
  cursor: copy;
  border-radius: 4px;
  padding: 1px 4px;
  margin: -1px -4px;
  border-bottom: 1px dashed rgba(255, 201, 130, 0.42);
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.copyable-id:hover {
  color: var(--peach);
  background: rgba(255, 201, 130, 0.1);
  border-bottom-color: var(--peach);
}

.copyable-id:active {
  background: rgba(255, 201, 130, 0.2);
}

@media (min-width: 701px) {
  .reset-filters,
  .apply-filters {
    display: none !important;
  }
}

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

  .nav {
    display: none;
  }

  .catalog-shell {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .service-band {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-center {
    grid-column: 1 / -1;
    order: 3;
  }

  .footer-links {
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 12px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand span,
  .cart-toggle span,
  .orders-toggle span,
  .track-toggle span,
  .account-toggle span[data-account-label] {
    display: none;
  }

  .header-actions {
    gap: 6px;
    max-width: 100%;
    justify-content: flex-end;
    overflow: hidden;
  }
  
  .account-toggle,
  .orders-toggle,
  .track-toggle,
  .cart-toggle {
    flex: 0 0 auto;
    position: relative;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    padding: 8px 10px;
    gap: 6px;
  }

  .cart-toggle {
    width: 44px;
    min-width: 44px;
    padding: 8px;
  }

  .cart-toggle b {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.64rem;
    box-shadow: 0 0 0 2px rgba(13, 9, 6, 0.92);
  }

  .account-mini-avatar {
    flex: 0 0 auto;
  }
  main {
    width: min(100% - 20px, 1460px);
  }

  .shop-head {
    padding-top: 30px;
  }

  .shop-title h1 {
    font-size: clamp(2.2rem, 15vw, 4rem);
  }

  .hero-banners {
    min-height: 220px;
  }

  .banner-copy {
    inset: auto 16px 18px;
    width: auto;
    max-width: calc(100% - 32px);
  }

  .banner-copy h2,
  .banner-copy p,
  .banner-copy b {
    max-width: 100%;
  }

  .banner-copy b {
    white-space: normal;
    text-align: center;
  }

  .catalog-meta {
    align-items: start;
    flex-direction: column;
  }

  .filters {
    display: grid;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .filter-search-block {
    margin: 0;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    color: var(--ink);
    border: 0;
    border-radius: 8px;
    background: var(--peach);
    font-weight: 900;
  }

  .filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 92;
    display: none;
    align-content: start;
    gap: 18px;
    overflow: auto;
    padding: 18px 18px 88px;
    border: 0;
    background: rgba(36, 27, 20, 0.98);
  }

  .filter-drawer.is-open {
    display: grid;
  }

  .filter-drawer-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
  }

  .filter-drawer-head h2 {
    margin: 0;
  }

  .filter-drawer .filter-block {
    margin-top: 0;
  }

  .filter-drawer .category-filter-block {
    display: block;
  }

  .filter-drawer .category-list,
  .filter-drawer .anime-list,
  .filter-drawer .price-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-drawer .chip {
    width: 100%;
  }

  .track-form {
    grid-template-columns: 1fr;
  }

  .apply-filters {
    display: inline-flex;
    width: 100%;
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    width: auto;
    box-shadow: var(--shadow);
  }

  .catalog-sort {
    width: 100%;
    min-width: 0;
  }

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

  .product-content {
    padding: 11px;
  }

  .product-card h3 {
    min-height: 3.7em;
    font-size: 0.96rem;
  }

  .product-type,
  .product-anime {
    font-size: 0.78rem;
  }

  .price {
    font-size: 0.9rem;
  }

  .add-button {
    width: auto;
    height: 34px;
    padding: 0 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .inline-qty {
    grid-template-columns: 28px minmax(20px, auto) 28px;
    gap: 5px;
  }

  .inline-qty .qty-button {
    width: 28px;
    height: 32px;
  }

  .cart-backdrop {
    padding: 10px;
  }

  .cart-drawer {
    width: 100%;
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 14px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-drawer:not(.is-order-step) .order-form {
    display: none;
  }

  .cart-drawer.is-order-step .cart-summary,
  .cart-drawer.is-order-step .mobile-order-button {
    display: none;
  }

  .cart-drawer.is-order-step .order-form {
    display: grid;
  }

  .cart-drawer.is-order-step .mobile-cart-back,
  .cart-drawer:not(.is-order-step) .mobile-order-button {
    display: inline-flex;
    width: 100%;
  }

  .cart-summary {
    min-height: 320px;
  }

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

  .delivery-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-search {
    grid-template-columns: 1fr 1fr;
  }

  .delivery-search input {
    grid-column: 1 / -1;
  }

  .delivery-search .ghost-button,
  .delivery-actions .ghost-button,
  .delivery-link {
    width: 100%;
    text-align: center;
  }

  .delivery-map {
    min-height: 220px;
  }

  .cart-actions {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-item img {
    width: 72px;
    height: 72px;
  }

  .service-band article {
    min-height: auto;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 22px;
    padding: 28px 18px;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-self: stretch;
    width: 100%;
  }

  .social-link {
    min-width: 0;
    width: 100%;
  }

  .auth-guest,
  .account-actions {
    grid-template-columns: 1fr;
  }

  .account-backdrop,
  .modal-backdrop,
  .orders-backdrop,
  .reviews-backdrop,
  .contacts-backdrop {
    padding: 10px;
  }

  .account-panel,
  .orders-panel,
  .reviews-panel,
  .contacts-panel {
    width: 100%;
    max-height: calc(100vh - 20px);
    padding: 14px;
  }

  .contacts-panel {
    padding: 20px 18px 22px;
  }

  .contacts-panel .drawer-head {
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .contacts-intro {
    margin-bottom: 18px;
  }

  .reviews-controls {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 12px;
  }

  .account-profile {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .avatar-picker {
    max-height: 154px;
    overflow: auto;
    padding: 2px;
  }

  [data-login-form] {
    grid-template-rows: auto;
  }

  .product-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 20px);
  }

  .modal-media {
    min-height: auto;
    aspect-ratio: 1;
  }

  .modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 110;
    background: rgba(13, 9, 6, 0.86);
    box-shadow: var(--shadow);
  }

  .modal-copy {
    padding: 22px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* UI polish pass: consistent controls, badges, counters and dense surfaces. */
.cart-toggle,
.orders-toggle,
.track-toggle,
.account-toggle,
.primary-button,
.ghost-button,
.add-button,
.chip {
  line-height: 1;
}

.cart-toggle b,
.orders-toggle b,
.orders-tabs .chip b {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cart-toggle b,
.orders-toggle b {
  min-width: 24px;
  height: 24px;
}

.cart-toggle {
  min-height: 44px;
}

.orders-tabs {
  gap: 10px;
}

.orders-tabs .chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 14px;
}

.inline-qty,
.cart-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.inline-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.inline-qty b,
.cart-controls b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 34px;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.qty-button,
.inline-qty .qty-button,
.modal-actions .inline-qty .qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  line-height: 1;
  font-size: 1rem;
  font-weight: 900;
}

.product-card {
  height: 100%;
}

.product-content {
  gap: 10px;
}

.product-copy {
  flex: 1;
  align-content: start;
}

.product-type,
.product-anime {
  min-height: 1.15em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.badge,
.product-rating,
.ordered-count {
  align-items: center;
  min-height: 28px;
  line-height: 1;
}

.product-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.add-button,
.product-bottom .add-button {
  min-width: 112px;
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.modal-actions {
  align-items: center;
  min-height: 48px;
}

.modal-actions .primary-button {
  min-width: 190px;
}

.cart-controls {
  margin-top: 10px;
  width: max-content;
}

.cart-item {
  align-items: center;
}

.cart-item-remove {
  width: 34px;
  height: 34px;
  min-width: 34px;
  align-self: center;
  font-size: 1.1rem;
}

.cart-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.cart-actions .primary-button,
.cart-actions .ghost-button,
.delivery-search .ghost-button,
.delivery-actions .ghost-button {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
}

.delivery-search .ghost-button {
  min-width: 104px;
  color: var(--cream);
  border-color: rgba(255, 201, 130, 0.42);
  background: rgba(255, 244, 223, 0.06);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.delivery-search {
  align-items: stretch;
}

.delivery-search input,
.track-form input,
.auth-card input,
.order-form input,
.order-form textarea,
.reviews-controls select {
  min-height: 46px;
}

.track-form {
  align-items: stretch;
  gap: 10px;
}

.track-form label {
  align-self: stretch;
}

.track-form .primary-button {
  min-width: 148px;
  min-height: 46px;
  align-self: end;
  padding: 0 18px;
}

.auth-guest {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 16px;
}

.auth-card {
  gap: 14px;
  padding: 16px;
}

.auth-card label {
  gap: 7px;
}

.anime-quote-actions .ghost-button,
.account-actions .ghost-button,
.account-actions .primary-button {
  min-height: 46px;
}

.account-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(138px, 0.8fr));
  align-items: stretch;
  gap: 10px;
}

.avatar-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 44px));
  gap: 10px;
  justify-content: start;
  align-items: center;
}

.avatar-swatch {
  width: 44px;
  height: 44px;
}

.search-box input {
  min-height: 46px;
  padding-inline: 8px 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 40px;
  padding: 9px 13px;
  text-align: center;
  line-height: 1.1;
}

.category-list,
.anime-list,
.price-list {
  gap: 8px;
}

.reviews-controls {
  align-items: stretch;
  gap: 12px;
}

.reviews-controls label:not(.review-photo-filter) {
  min-height: 68px;
}

.review-photo-filter {
  min-height: 46px;
}

.reviews-controls select,
.review-photo-filter {
  align-self: end;
}

.review-photo-filter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 201, 130, 0.24);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.34);
}

.public-review-card {
  gap: 10px;
  padding: 16px;
}

.contacts-grid {
  align-items: stretch;
}

.contact-card {
  align-content: start;
  justify-items: center;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 760px) {
  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .contact-card {
    aspect-ratio: auto;
    min-height: 184px;
    padding: 20px 16px 18px;
  }
}

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

  .contact-card {
    min-height: 168px;
  }
}

@media (max-width: 700px) {
  .senpai-id-prompt {
    grid-template-columns: 1fr;
  }

  .senpai-id-prompt-actions {
    justify-content: space-between;
  }

  .cart-toggle b,
  .orders-toggle b {
    min-width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }

  .product-bottom {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }

  .product-bottom .add-button,
  .product-bottom .inline-qty {
    width: 100%;
  }

  .inline-qty,
  .cart-controls {
    gap: 7px;
  }

  .qty-button,
  .inline-qty .qty-button,
  .modal-actions .inline-qty .qty-button {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .inline-qty b,
  .cart-controls b {
    min-width: 26px;
    height: 32px;
  }

  .delivery-search,
  .track-form,
  .auth-guest,
  .account-actions,
  .cart-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .track-form .primary-button,
  .track-form label,
  .delivery-search input {
    width: 100%;
  }

  .avatar-picker {
    grid-template-columns: repeat(auto-fill, minmax(42px, 42px));
    gap: 9px;
  }

  .avatar-swatch {
    width: 42px;
    height: 42px;
  }

  .chip {
    min-width: 0;
  }

  .reviews-controls label,
  .review-photo-filter {
    min-height: auto;
  }
}

/* Product card and quick-view refresh */
.product-card {
  position: relative;
  gap: 14px;
  min-height: 536px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 201, 130, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 244, 223, 0.045), rgba(13, 9, 6, 0.14)),
    var(--espresso);
}

.product-card.item-added {
  animation: none;
}

@keyframes card-added-glow {
  0% {
    border-color: rgba(255, 201, 130, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  }
  45% {
    border-color: rgba(255, 201, 130, 0.78);
    box-shadow: 0 0 0 2px rgba(255, 201, 130, 0.22) inset, 0 18px 42px rgba(0, 0, 0, 0.32);
  }
  100% {
    border-color: rgba(255, 201, 130, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  }
}

.product-media {
  margin-top: 34px;
  flex: 0 0 auto;
  width: 100%;
  border-radius: 7px;
  background: transparent;
}

.product-media-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-position: center;
  background-size: cover;
  filter: blur(16px) saturate(1.06);
  opacity: 0.46;
  transform: scale(1.08);
  pointer-events: none;
}

.product-card .product-media img {
  position: relative;
  z-index: 1;
  opacity: 1;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 3%, #000 9%, #000 91%, rgba(0, 0, 0, 0.4) 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 3%, #000 9%, #000 91%, rgba(0, 0, 0, 0.4) 97%, transparent 100%);
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.4) 3%, #000 9%, #000 91%, rgba(0, 0, 0, 0.4) 97%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 3%, #000 9%, #000 91%, rgba(0, 0, 0, 0.4) 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  transition: transform 220ms ease, opacity 220ms ease;
}

.product-card:hover .product-media img {
  opacity: 0.98;
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  min-height: 30px;
  margin: 0;
  color: var(--ink);
  border: 1px solid rgba(255, 201, 130, 0.34);
  background: linear-gradient(180deg, rgba(255, 221, 176, 0.88), rgba(255, 201, 130, 0.76));
  box-shadow: 0 7px 16px rgba(0, 0, 0, 0.16);
}

.product-content {
  padding: 0;
}

.product-copy {
  gap: 5px;
  min-height: 84px;
}

.product-card h3 {
  min-height: 2.45em;
}

.product-rating {
  width: max-content;
  margin: 0;
  padding: 0;
  color: var(--peach);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.86rem;
  line-height: 1.25;
}

.product-bottom {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  flex: 0 0 84px;
  height: 84px;
  min-height: 84px;
  padding-top: 2px;
}

.product-card.product-card-no-actions,
.product-card:has(.product-bottom):not(:has(.product-bottom .add-button)):not(:has(.product-bottom .inline-qty)) {
  align-self: start;
  height: auto;
  min-height: 0;
}

.product-card.product-card-no-actions .product-content,
.product-card:has(.product-bottom):not(:has(.product-bottom .add-button)):not(:has(.product-bottom .inline-qty)) .product-content {
  flex: 0 0 auto;
}

.product-card.product-card-no-actions .product-bottom,
.product-card:has(.product-bottom):not(:has(.product-bottom .add-button)):not(:has(.product-bottom .inline-qty)) .product-bottom {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
  margin-top: 0;
  padding-top: 0;
  gap: 0;
}

.price {
  color: var(--cream);
  font-size: 1.12rem;
  line-height: 1.2;
}

.product-price-only {
  display: block;
}

.price s,
.modal-copy strong s {
  display: inline-block;
  margin-left: 8px;
  color: rgba(255, 244, 223, 0.44);
}

.product-bottom .add-button,
.product-bottom .inline-qty {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  height: 42px;
}

.product-bottom .inline-qty {
  display: grid;
  grid-template-columns: minmax(58px, 1fr) minmax(32px, auto) minmax(58px, 1fr);
  gap: 0;
  justify-content: stretch;
  padding: 0;
  color: var(--ink);
  border-radius: 8px;
  background: var(--peach);
  font-weight: 900;
  overflow: hidden;
}

.product-bottom .inline-qty b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.98rem;
}

.product-bottom .inline-qty .qty-button {
  flex: initial;
  width: 100%;
  height: 42px;
  min-width: 58px;
  min-height: 42px;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 1.1rem;
}

.product-bottom .inline-qty .qty-button:hover {
  color: var(--ink);
  background: rgba(13, 9, 6, 0.12);
}

.product-modal {
  grid-template-columns: minmax(320px, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(24px, 3vw, 44px);
  width: min(1320px, calc(100vw - 36px));
  max-height: min(860px, calc(100vh - 36px));
  padding: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 201, 130, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 244, 223, 0.045), rgba(13, 9, 6, 0.12)),
    var(--espresso);
}

.modal-media {
  min-height: clamp(420px, 62vh, 700px);
  border-radius: 8px;
  background: rgba(13, 9, 6, 0.42);
}

.modal-media img {
  max-height: none;
}

.modal-close {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
}

.modal-copy {
  align-content: start;
  gap: 18px;
  padding: 24px 6px 10px 0;
}

.modal-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding-right: 62px;
}

.modal-heading .eyebrow {
  margin-bottom: 8px;
}

.modal-heading h2 {
  color: var(--cream);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.08;
}

.modal-status {
  min-height: 34px;
  margin: 4px 0 0;
  padding: 8px 13px;
  white-space: nowrap;
}

.modal-rating-line {
  color: var(--peach) !important;
  font-size: 1.05rem;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(255, 201, 130, 0.16);
}

.modal-description {
  max-width: 640px;
  color: rgba(255, 244, 223, 0.82) !important;
  font-size: 1.05rem;
  line-height: 1.7;
}

.modal-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}

.modal-meta {
  min-height: 74px;
  align-content: center;
}

.modal-copy strong {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.modal-actions {
  display: grid;
  align-items: stretch;
  min-height: 58px;
}

.modal-actions .primary-button {
  min-height: 58px;
  font-size: 1.02rem;
}

.modal-actions .inline-qty {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(40px, auto) minmax(76px, 1fr);
  width: 100%;
  min-height: 58px;
  gap: 0;
  padding: 0;
  border-radius: 8px;
  background: var(--peach);
  overflow: hidden;
}

.modal-actions .inline-qty .qty-button {
  width: 100%;
  height: 48px;
  min-width: 76px;
  min-height: 48px;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.modal-actions .inline-qty .qty-button:hover {
  background: rgba(13, 9, 6, 0.12);
}

.modal-actions .inline-qty b {
  width: 100%;
  color: var(--ink);
  font-size: 1.12rem;
}

@media (max-width: 900px) {
  .product-modal {
    grid-template-columns: 1fr;
    width: min(100% - 20px, 760px);
    max-height: calc(100vh - 20px);
    gap: 18px;
    padding: 12px;
  }

  .modal-media {
    min-height: auto;
    aspect-ratio: 1;
  }

  .modal-copy {
    padding: 10px;
  }
}

@media (max-width: 520px) {
  .product-card {
    min-height: 496px;
    padding: 10px;
  }

  .product-badge {
    top: 10px;
    left: 10px;
  }

  .product-media {
    margin-top: 32px;
  }

  .product-content {
    gap: 8px;
  }

  .product-rating {
    font-size: 0.78rem;
  }

  .product-bottom {
    flex-basis: 78px;
    height: 78px;
    min-height: 78px;
  }

  .product-card.product-card-no-actions,
  .product-card:has(.product-bottom):not(:has(.product-bottom .add-button)):not(:has(.product-bottom .inline-qty)) {
    height: auto;
    min-height: 0;
  }

  .product-card.product-card-no-actions .product-bottom,
  .product-card:has(.product-bottom):not(:has(.product-bottom .add-button)):not(:has(.product-bottom .inline-qty)) .product-bottom {
    flex-basis: auto;
    height: auto;
    min-height: 0;
  }

  .modal-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-right: 0;
  }

  .modal-status {
    width: max-content;
    margin-top: 0;
  }

  .modal-specs {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar .cart-toggle {
    position: relative;
    width: 44px;
    min-width: 44px;
    padding: 8px;
  }

  .topbar .cart-toggle b {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.64rem;
    box-shadow: 0 0 0 2px rgba(13, 9, 6, 0.92);
  }
}
