:root {
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --bg: #f4f3f0;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #1a1814;
  --text-muted: #6b6560;
  --border: #e8e4dd;
  --accent: #a62b2b;
  --accent-hover: #8a2323;
  --accent-soft: #faeaea;
  --ebay-cta: #a62b2b;
  --price: #191919;
  --danger: #a62b2b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(26, 24, 20, 0.06);
  --shadow-md: 0 4px 14px rgba(26, 24, 20, 0.08);
  --shadow-hover: 0 8px 24px rgba(26, 24, 20, 0.1);
  --header-h: 5rem;
  --max-w: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

/* Header */
.store-trust-bar {
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
}

.store-trust-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.store-trust-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.store-trust-bar a:hover {
  color: #fde8e8;
}

.store-trust-bar-sep {
  opacity: 0.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  min-height: var(--header-h);
  box-sizing: border-box;
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand:hover {
  opacity: 0.9;
}

.brand-logo {
  display: block;
  height: 4rem;
  width: auto;
  max-width: min(28rem, 62vw);
  object-fit: contain;
  object-position: left center;
}

.search-form {
  flex: 1 1 16rem;
  max-width: 420px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.search-form input[type="search"] {
  flex: 1;
  min-height: 2.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.25;
  background: var(--bg);
  color: var(--text);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  box-sizing: border-box;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-form button {
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.search-form button:hover {
  background: var(--accent-hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.cart-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0 0.85rem;
  min-height: 2.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}

.cart-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.cart-anchor {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-toast {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
  z-index: 60;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cart-toast-close {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.cart-toast-close:hover {
  color: var(--text);
  background: var(--bg);
}

.cart-toast-title {
  margin: 0 1.5rem 0.25rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-toast-msg {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cart-toast-link {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.cart-toast-link:hover {
  text-decoration: underline;
}

/* Main */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  box-sizing: border-box;
}

/* Shop layout with category sidebar */
.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h, 4rem) + 1rem);
  min-width: 0;
  max-width: 100%;
}

.shop-main {
  min-width: 0;
  max-width: 100%;
}

.category-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 0;
  font-size: 0.88rem;
  max-width: 100%;
}

.category-sidebar-title {
  margin: 0 0 0.65rem;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.cat-tree,
.cat-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-children {
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
  margin-left: 1rem;
}

.cat-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  min-width: 0;
}

.cat-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.cat-item.is-active > .cat-link {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.cat-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cat-crumbs a {
  color: var(--accent);
  text-decoration: none;
}

.cat-crumbs a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .shop-sidebar {
    position: static;
  }

  .category-sidebar {
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
  }
}

h1,
h2,
h3,
.page-heading,
.section-heading,
.home-hero-title,
.card h2,
.pdp-title {
  font-family: var(--font-heading);
}

.page-heading {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-heading {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-subheading {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Banner */
.banner {
  padding: 0.85rem 1rem;
  margin-bottom: 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
}

.banner-demo {
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #713f12;
}

.banner-demo code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Grid & cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
  gap: 1.35rem;
  width: 100%;
  min-width: 0;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0 0.5rem;
}

.load-more-btn {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.2s,
    background 0.2s;
}

.load-more-btn:hover:not(:disabled) {
  box-shadow: var(--shadow-hover);
  background: #fff;
}

.load-more-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin: 2rem 0 0.5rem;
}

.catalog-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.catalog-pagination-link {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.catalog-pagination-link:hover {
  box-shadow: var(--shadow-sm);
}

.catalog-pagination-current {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.catalog-pagination-gap {
  padding: 0 0.2rem;
  color: var(--muted);
}

.section-heading-meta,
.page-heading-meta {
  font-size: 0.85em;
  font-weight: 400;
  color: var(--muted);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:hover {
  color: inherit;
}

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg);
  display: block;
}

.card-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(145deg, #ebe8e2, #e2ddd4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.card-body {
  padding: 1rem 1.1rem 1.15rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  margin: 0 0 0.35rem;
}

.price-amount {
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--price);
  letter-spacing: -0.02em;
}

.stock {
  margin: 0;
  font-size: 0.8rem;
}

.low-stock {
  color: var(--accent);
  font-weight: 600;
}

.out-of-stock {
  color: var(--text-muted);
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.empty-state-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.empty-state-body {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  line-height: 1.55;
}

.empty-state-actions {
  margin: 0;
}

/* Home hero */
.home-hero {
  margin: 0 0 2rem;
  padding: 2rem 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff 0%, #f8f0ee 55%, #f3e8e6 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.home-hero-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.home-hero-tagline {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.home-hero-tagline strong {
  color: var(--text);
  font-weight: 600;
}

/* About */
.about-page {
  max-width: 42rem;
}

.about-header {
  margin-bottom: 1.75rem;
}

.about-section {
  margin-bottom: 2rem;
}

.about-section p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--text);
}

.about-section p:last-child {
  margin-bottom: 0;
}

.about-since {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-since a {
  color: var(--accent);
}

/* New arrivals carousel */
.new-arrivals {
  margin-bottom: 2.25rem;
  min-width: 0;
  max-width: 100%;
}

.new-arrivals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.new-arrivals .section-heading {
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  background: var(--accent-soft);
  border-color: #e8c4c4;
  color: var(--accent);
}

.carousel-track-wrap {
  margin: 0;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
}

.carousel-slide {
  flex: 0 0 min(13.75rem, 72vw);
  scroll-snap-align: start;
  min-width: 0;
}

.card-compact h2 {
  font-size: 0.92rem;
}

/* Listing card skeletons */
.card-skeleton {
  pointer-events: none;
}

.card-skeleton-image,
.card-skeleton-line {
  background: linear-gradient(90deg, #ebe8e2 0%, #f5f3ef 45%, #ebe8e2 90%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.card-skeleton-image {
  aspect-ratio: 1;
}

.card-skeleton-line {
  height: 0.85rem;
  border-radius: 4px;
  margin-bottom: 0.55rem;
}

.card-skeleton-line-title {
  width: 92%;
}

.card-skeleton-line-price {
  width: 42%;
  margin-bottom: 0;
}

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

  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-skeleton-image,
  .card-skeleton-line {
    animation: none;
    background: #ebe8e2;
  }

  .carousel-track {
    scroll-behavior: auto;
  }
}

.search-meta {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.search-meta strong {
  color: var(--text);
}

/* - Product page (eBay-style layout) - */
.pdp-article {
  display: block;
}

.pdp-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pdp-breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pdp-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pdp-breadcrumb-list li:not(:last-child)::after {
  content: "›";
  color: var(--text-muted);
  font-size: 0.8rem;
}

.pdp-breadcrumb-list li[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.pdp-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.pdp-breadcrumb a:hover {
  text-decoration: underline;
}

.pdp-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.pdp-gallery-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pdp-gallery-main img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
}

.pdp-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.pdp-thumb {
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}

.pdp-thumb.is-active {
  border-color: var(--accent);
}

.pdp-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.pdp-buybox {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.pdp-title {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pdp-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
}

.pdp-facts dt {
  color: var(--text-muted);
  margin: 0;
}

.pdp-facts dd {
  margin: 0;
}

.pdp-price-block {
  margin: 0 0 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pdp-buybox-label,
.pdp-price-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1rem;
}

.pdp-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--price);
  letter-spacing: -0.02em;
}

.pdp-offer-link {
  font-size: 0.95rem;
  font-weight: 500;
}

.pdp-buy-form {
  margin: 0;
  padding: 0;
}

.pdp-buy-form label {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.pdp-buy-form .btn-buy {
  width: 100%;
  margin-top: 0;
}

.pdp-shipping-section {
  margin-top: 0.5rem;
}

.pdp-shipping-table-cost {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pdp-shipping-table-dest {
  vertical-align: top;
  font-weight: 600;
  color: var(--text-muted);
}

.pdp-form {
  margin-top: 0;
}

.header-contact-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.header-contact-link:hover {
  color: var(--accent);
}

.pdp-form label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.pdp-form select,
.pdp-form input[type="number"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

.btn-buy {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1.05rem;
}

.pdp-buybox-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

.pdp-buybox-note ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.pdp-demo-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.pdp-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pdp-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
}

.pdp-section-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.pdp-dates {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pdp-faq,
.about-faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pdp-faq-item,
.about-faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  background: var(--surface-muted);
}

.pdp-faq-item summary,
.about-faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.pdp-faq-item p,
.about-faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-definition {
  max-width: 42rem;
}

.about-byline {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.pdp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pdp-table th,
.pdp-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pdp-table th {
  background: var(--bg);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.pdp-policy-dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
  font-size: 0.92rem;
}

.pdp-policy-dl dt {
  color: var(--text-muted);
  margin: 0;
}

.pdp-policy-dl dd {
  margin: 0;
}

.pdp-payment-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  columns: 2;
  font-size: 0.92rem;
}

.pdp-section-detail {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
}

.pdp-muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pdp-ebay-footer {
  margin-top: 2rem;
  font-size: 0.85rem;
}

.pdp-ebay-link {
  color: var(--text-muted);
  text-decoration: none;
}

.pdp-ebay-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Rendered eBay HTML descriptions */
.prose {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: break-word;
}

.prose h1,
.prose h2,
.prose h3 {
  margin: 1.25em 0 0.5em;
  line-height: 1.3;
  font-weight: 600;
}

.prose h1 {
  font-size: 1.35rem;
}
.prose h2 {
  font-size: 1.15rem;
}
.prose h3 {
  font-size: 1.05rem;
}

.prose p {
  margin: 0 0 1em;
}

.prose ul,
.prose ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.prose li {
  margin: 0.25em 0;
}

.prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9em;
}

.prose table th,
.prose table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
}

.prose table th {
  background: var(--bg);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.prose a {
  color: var(--accent);
}

.prose strong,
.prose b {
  font-weight: 600;
}

.prose em,
.prose i {
  font-style: italic;
}

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

  /* SSR sends up to 50 cards; catalog.js trims to 10 before marking ready */
  #catalog-grid:not(.catalog-ready) .card:nth-child(n + 11) {
    display: none;
  }

  .pdp-policy-dl {
    grid-template-columns: 1fr;
  }

  .pdp-payment-list {
    columns: 1;
  }

  .site-header-inner {
    padding: 0.5rem 1rem;
  }

  .search-form {
    flex: 1 1 100%;
    max-width: none;
    order: 3;
  }

  .header-actions {
    margin-left: auto;
  }

  .brand-logo {
    height: 2.75rem;
    max-width: min(18rem, 70vw);
  }

  main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-hero {
    padding: 1.5rem 1.15rem;
  }

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

  .card-body {
    padding: 0.75rem 0.85rem 0.9rem;
  }

  .card h2 {
    font-size: 0.9rem;
  }
}

@media (max-width: 400px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  color: var(--accent);
  border-color: var(--accent);
}

.qty-input {
  width: 4.5rem;
}

/* Cart & checkout */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-table th,
.cart-table td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cart-table .cart-num {
  text-align: right;
  white-space: nowrap;
}

.cart-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-thumb {
  flex-shrink: 0;
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
}

.cart-item-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  min-width: 0;
}

.cart-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.cart-sku {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cart-line-total {
  font-weight: 600;
}

.cart-subtotal-row td {
  border-top: 2px solid var(--border);
  font-weight: 600;
  background: var(--bg);
}

.cart-subtotal {
  font-size: 1.05rem;
  color: var(--price);
}

.cart-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cart-table th {
  background: var(--bg);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  font-weight: 600;
}

.cart-table tr:last-child td {
  border-bottom: none;
}

.cart-table button {
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
}

.cart-table button:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.checkout-page {
  max-width: 72rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(22rem, 34%);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.checkout-main .checkout-card,
.checkout-sidebar .checkout-card {
  margin-top: 0;
}

.checkout-sidebar {
  position: sticky;
  top: 1.25rem;
}

.checkout-section-first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.checkout-summary-heading {
  margin-bottom: 1rem;
}

.checkout-summary-items {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.checkout-summary-item {
  padding: 0.65rem 0;
}

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

.checkout-summary-item + .checkout-summary-item {
  border-top: 1px solid var(--border);
}

.checkout-summary-item-title {
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text);
}

.checkout-summary-item-sku {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.checkout-summary-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.checkout-summary-item-qty {
  color: var(--text-muted);
}

.checkout-summary-item-price {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.checkout-summary-coupon {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.checkout-summary-coupon > label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.checkout-summary-card .checkout-summary {
  margin-top: 0;
}

.checkout-card {
  margin-top: 1.5rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.checkout-section + .checkout-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.checkout-section-title {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkout-field label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

.checkout-field input,
.checkout-field select,
.checkout-coupon-row input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-coupon-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.checkout-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b6560' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2rem;
}

#payment-element {
  min-height: 3.5rem;
  padding: 1.15rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.payment-placeholder {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.checkout-coupon-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.checkout-coupon-row input {
  flex: 1;
  min-width: 0;
}

.checkout-coupon-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.checkout-coupon-message {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

.checkout-coupon-message.is-success {
  color: #15803d;
}

.checkout-coupon-message.is-error {
  color: #b91c1c;
}

.checkout-summary {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.checkout-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}

.checkout-summary dt {
  margin: 0;
  color: var(--text-muted);
}

.checkout-summary dd {
  margin: 0;
  font-weight: 600;
}

.checkout-summary-total {
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 1.05rem;
}

.checkout-legal {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.checkout-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.checkout-submit {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
}

.checkout-error {
  margin: 0.85rem 0 0;
  color: #b91c1c;
  font-size: 0.9rem;
  min-height: 1.25rem;
}

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

  .checkout-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 520px) {
  .checkout-card {
    padding: 1.25rem;
  }

  .checkout-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cart-item-thumb {
    width: 3.5rem;
    height: 3.5rem;
  }

  .cart-item-row {
    gap: 0.75rem;
  }
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 0.45rem;
}

.site-footer-brand {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.site-footer-meta,
.site-footer-trust {
  margin: 0;
}

.site-footer-trust {
  font-size: 0.82rem;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-top: 0.35rem;
}

.site-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--accent);
}

.site-footer-demo {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Contact */
.contact-page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.form-error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.9rem;
}

.form-success {
  margin: 0;
  color: #166534;
  font-size: 0.9rem;
}

/* Legal pages */
.legal-page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem;
}

.legal-updated {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-section {
  margin-top: 1.75rem;
}

.legal-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.legal-section p,
.legal-section ul {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.legal-section ul {
  padding-left: 1.25rem;
}

.legal-section li + li {
  margin-top: 0.5rem;
}

.legal-related {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.pdp-offer-line {
  margin: 0.35rem 0 1rem;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--accent-hover);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 24, 20, 0.45);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.modal-subtitle {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}
