@font-face { 
  font-family: "IM Fell English";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IMFellEnglish.woff2") format("woff2");
}

:root {
  --bg: #1a120c;
  --panel: #23170f;
  --panel-hover: #2d1f14;
  --text: #f4ecd8;
  --muted: #c9ba9a;
  --accent: #d4af37;
  --accent-dark: #b79226;
  --border: #4c3723;
  /* Home fixed header: hero only; tagline bar lives in main and scrolls with content */
  --home-hero-min-h: clamp(320px, 55vh, 520px);
  --home-below-bar-gap: 2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #1a120c 0%, #120c08 100%);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  padding: 1rem 0 2rem;
}

.breadcrumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0;
  font-size: 0.95rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs li:not(:first-child)::before {
  content: "/";
  color: var(--muted);
  margin: 0 0.5rem;
  font-weight: 400;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--muted);
  font-weight: 600;
}

.site-header--home {
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 0;
  width: 100%;
}

.hero-banner {
  position: relative;
  min-height: var(--home-hero-min-h);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background-color: #120c08;
}

.site-header--home .hero-banner {
  border-top: none;
  border-radius: 0;
}

.hero-banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  inset: 0;
}

.top-bar {
  background: #3d3225;
  padding: 0.85rem 0;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0;
}

/* Tagline bar in main: full width, sits under fixed hero, scrolls with page */
.main-scrolls-over-header > .top-bar--in-main {
  margin-bottom: var(--home-below-bar-gap);
}

.top-bar-text {
  margin: 0;
  color: #e8e0d0;
  text-align: center;
  font-family: "IM Fell English", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar--nav {
  padding: 0.65rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar--nav-compact {
  padding: 0.45rem 0;
}

.top-bar--nav-compact .top-nav-brand {
  padding: 0.1rem 0.2rem;
}

.top-bar--nav-compact .top-nav-link {
  font-size: 0.9rem;
  padding: 0.25rem 0.35rem;
}

.top-bar--nav-compact .top-nav-button {
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
}

.top-nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(244, 236, 216, 0.28);
  background: rgba(18, 12, 8, 0.12);
  border-radius: 12px;
  width: 44px;
  height: 40px;
  padding: 0;
  cursor: pointer;
}

.top-nav-toggle:hover,
.top-nav-toggle:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  outline: none;
}

.top-nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: #f4ecd8;
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}

.top-nav-toggle-bars::before,
.top-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #f4ecd8;
  border-radius: 2px;
}

.top-nav-toggle-bars::before {
  top: -6px;
}

.top-nav-toggle-bars::after {
  top: 6px;
}

.top-bar--nav-open .top-nav-toggle-bars {
  background: transparent;
}

.top-bar--nav-open .top-nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.top-bar--nav-open .top-nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.top-nav-spacer {
  flex: 1 1 auto;
}

.top-nav-drawer {
  margin-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.top-nav-drawer-links {
  display: grid;
  gap: 0.25rem;
  padding: 0.25rem 0;
}

.top-nav-drawer-links .top-nav-link {
  display: block;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(18, 12, 8, 0.08);
  border: 1px solid rgba(244, 236, 216, 0.12);
}

.top-nav-drawer-links .top-nav-link:hover,
.top-nav-drawer-links .top-nav-link:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(18, 12, 8, 0.18);
}

.top-nav-brand {
  display: inline-flex;
  align-items: center;
  color: #f4ecd8;
  text-decoration: none;
  padding: 0.2rem 0.3rem;
  border-radius: 10px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.top-nav-brand-img {
  display: block;
  /* Match .top-nav-account-summary outer height: icon (32px) + vertical padding + borders */
  height: calc(32px + 0.9rem + 2px);
  width: auto;
  max-width: min(280px, 52vw);
  object-fit: contain;
}

.top-nav-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.top-nav-left {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.top-nav-link {
  color: #e8e0d0;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.top-nav-link:hover,
.top-nav-link:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(18, 12, 8, 0.18);
  outline: none;
}

.top-nav-link--active,
.top-nav-account-item.top-nav-link--active,
.top-nav-button.top-nav-link--active {
  color: var(--accent);
}

.top-nav-button.top-nav-button--ghost.top-nav-link--active {
  border-color: rgba(212, 175, 55, 0.75);
}

.top-nav-button.top-nav-link--active:not(.top-nav-button--ghost) {
  color: #1c130c;
  box-shadow: 0 0 0 2px rgba(244, 236, 216, 0.45);
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.top-nav-greeting {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.top-nav-account {
  position: relative;
}

.top-nav-account summary {
  list-style: none;
}

.top-nav-account summary::-webkit-details-marker {
  display: none;
}

.top-nav-account-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 1px solid rgba(244, 236, 216, 0.22);
  background: rgba(18, 12, 8, 0.1);
  border-radius: 999px;
  padding: 0.45rem 0.6rem;
  color: var(--text);
}

.top-nav-account-summary:hover,
.top-nav-account-summary:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  outline: none;
}

.top-nav-account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(244, 236, 216, 0.95);
}

.top-nav-account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 190px;
  background: rgba(35, 23, 15, 0.98);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.35rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  z-index: 50;
}

.top-nav-account[open] .top-nav-account-menu {
  animation: etFadeIn 120ms ease-out;
}

.top-nav-account-item {
  display: block;
  padding: 0.6rem 0.65rem;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}

.top-nav-account-item:hover,
.top-nav-account-item:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(18, 12, 8, 0.2);
  outline: none;
}

@keyframes etFadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}

.top-nav-button {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #1c130c;
}

.top-nav-button:hover,
.top-nav-button:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.top-nav-button--ghost {
  background: transparent;
  border-color: rgba(244, 236, 216, 0.32);
  color: var(--text);
}

.top-nav-button--ghost:hover,
.top-nav-button--ghost:focus-visible {
  background: rgba(18, 12, 8, 0.25);
  border-color: var(--accent);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro-slideshow-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.25rem;
  margin: 2rem 0 2rem;
}

.home-feature-block {
  margin: 2rem 0 2rem;
}

.home-images-row {
  margin: 0 0 1.25rem;
}

.intro-slideshow-row.home-images-row {
  grid-template-columns: 49% 49%;
  gap: 2%;
  align-items: stretch;
}

.home-images-row .slideshow-box {
  width: 100%;
  min-width: 0;
}

.home-images-row .slideshow {
  width: 100%;
  height: auto;
}

.home-intro-box {
  width: 100%;
  margin: 0;
}

.intro-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.intro-box p {
  margin: 0 0 1rem 0;
  color: var(--muted);
  line-height: 1.6;
}

.intro-box .intro-paragraph {
  margin: 0 0 1rem 0;
  color: var(--muted);
  line-height: 1.6;
}

.intro-box p:last-child,
.intro-box .intro-paragraph:last-child {
  margin-bottom: 0;
}

.intro-box h2 {
  margin: 1.75rem 0 0.75rem;
  font-size: 1.15rem;
}

.intro-box h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
}

.intro-box ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.intro-box li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.intro-box hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.intro-box a {
  color: var(--accent);
}

.slideshow-box {
  min-width: 0;
}

.slideshow--static .slide {
  opacity: 1;
  z-index: 1;
}

.slideshow {
  position: relative;
  background: #120c08;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.slideshow-track {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  /* Let taps reach .slideshow-edge siblings; slides were winning hit-testing in some browsers */
  pointer-events: none;
}

.slideshow .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slideshow .slide.active {
  opacity: 1;
  z-index: 1;
}

.slideshow .slide:not(.slide--product) img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.slideshow-news-slide-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-decoration: none;
  color: inherit;
  pointer-events: none;
  cursor: pointer;
}

.slide--news.active .slideshow-news-slide-link {
  pointer-events: auto;
}

.slide--product.active .slideshow-news-slide-link {
  pointer-events: auto;
}

.slide--product .slideshow-product-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.slide--product .slideshow-product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(18, 12, 8, 0.5);
  pointer-events: none;
}

.slideshow .slide.slide--product .slideshow-product-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  object-position: center;
  filter: blur(calc(0.1 * clamp(12px, 4vmin, 36px)));
  transform: scale(1.08);
  pointer-events: none;
}

.slideshow .slide.slide--product .slideshow-product-fg {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: auto;
  height: 100%;
  max-width: none;
  max-height: 100%;
  object-fit: unset;
  object-position: center;
  display: block;
  pointer-events: none;
}

.slideshow-product-label-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: rgba(18, 12, 8, 0.72);
  pointer-events: none;
  box-sizing: border-box;
}

.slideshow-product-label {
  margin: 0;
  max-width: none;
  padding: 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  color: #f4ecd8;
}

.slideshow-news-title-wrap {
  position: absolute;
  right: 0;
  top: clamp(0.5rem, 2.5%, 0.85rem);
  z-index: 2;
  width: 80%;
  height: 38%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  pointer-events: none;
  box-sizing: border-box;
  padding-right: clamp(0.5rem, 2.5%, 0.85rem);
}

.slideshow-news-title {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: right;
  color: #f4ecd8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  box-sizing: border-box;
}

.slideshow-news-title-link {
  color: inherit;
  text-decoration: none;
}

.slideshow-news-title-link:hover,
.slideshow-news-title-link:focus-visible {
  text-decoration: underline;
}

.slideshow-edge {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 2.25rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(35, 23, 15, 0.88);
  color: #f4ecd8;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.slideshow-edge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.slideshow-edge--prev {
  left: 0.5rem;
}

.slideshow-edge--prev::before {
  transform: rotate(-135deg);
  margin-left: 0.15rem;
}

.slideshow-edge--next {
  right: 0.5rem;
}

.slideshow-edge--next::before {
  transform: rotate(45deg);
  margin-right: 0.15rem;
}

.slideshow-edge:hover,
.slideshow-edge:focus-visible {
  background: var(--panel-hover);
  border-color: var(--accent);
}

.slideshow-edge:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.slideshow-dots {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 6;
  pointer-events: auto;
}

.slideshow-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease;
}

.slideshow-dots button:hover,
.slideshow-dots button:focus-visible {
  background: rgba(255, 255, 255, 0.7);
}

.slideshow-dots button.active {
  background: var(--accent);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.intro {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 auto;
}

.intro--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.intro--wide {
  max-width: none;
  width: 100%;
}

.section-title {
  margin: 2rem 0 1rem;
}

.catalog-section > .section-title {
  margin-top: 0;
}

.catalog-section > .line-filters {
  margin-bottom: 1.25rem;
}

.home-products {
  margin-top: 0.5rem;
}

.home-products-section + .home-products-section {
  margin-top: 2.5rem;
}

.home-products-section-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.02em;
}

.home-products-section .products-grid {
  margin-bottom: 0;
}

.home-products-section:last-child .products-grid {
  margin-bottom: 3rem;
}

.products-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.1rem;
}

.products-title-row > .section-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.products-title-row > .products-sort-row {
  margin: 0;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.products-sort-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.25rem;
}

.products-control {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.products-sort-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.products-sort-select {
  width: auto;
  min-width: 10.5rem;
  max-width: 100%;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
  border-radius: 9px;
}

.products-tag-filter-select {
  min-width: 9.5rem;
}

.products-main .products-sort-row {
  margin-bottom: 1.25rem;
}

@media (max-width: 720px) {
  .products-line-picker {
    grid-template-columns: 1fr;
  }

  .products-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .products-title-row > .products-sort-row {
    justify-content: flex-start;
  }

  .products-sort-select {
    width: 100%;
    min-width: 0;
  }
}

/* Home: full-width scroll layer so background covers the full-bleed banner (not just .container width) */
main.main-scrolls-over-header {
  position: relative;
  z-index: 1;
  display: flow-root;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: var(--home-hero-min-h);
  padding-top: 0;
  background-color: #1a120c;
  background-image: linear-gradient(180deg, #1a120c 0%, #120c08 100%);
  isolation: isolate;
}

main.main-scrolls-over-header ~ .site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: #1a120c;
  background-image: linear-gradient(180deg, #1a120c 0%, #120c08 100%);
  isolation: isolate;
}

/* Keep intro row’s side margins; only zero the top margin (padding-top on main restores bar gap) */
main.main-scrolls-over-header > .container > .home-feature-block:first-child,
main.main-scrolls-over-header > .container > .intro-slideshow-row:first-child {
  margin-top: 0;
}

@media (max-width: 900px) {
  :root {
    --home-hero-min-h: clamp(240px, 41.25vh, 390px);
  }
}

.section-title p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.section-title .line-intro {
  max-width: 70ch;
  line-height: 1.55;
}

.section-title .line-intro p {
  margin: 0 0 0.85rem;
}

.section-title .line-intro p:last-child {
  margin-bottom: 0;
}

.product-series-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-series-panel p + p {
  margin-top: 0.85rem;
}

.line-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.line-filters--sidebar {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0.55rem;
  margin-bottom: 0;
}

.line-filters--sidebar .line-filter {
  text-align: left;
  width: 100%;
}

.line-filter {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: 0.2s ease;
}

.line-filter:hover,
.line-filter:focus-visible {
  border-color: var(--accent);
}

.line-filter.active {
  background: var(--accent);
  color: #1c130c;
  border-color: var(--accent);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.product-card {
  position: relative;
  container-type: inline-size;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.product-card-inner {
  padding: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex-grow: 1;
}

.product-card-inner .product-title,
.product-card-inner .product-desc,
.product-card-inner .card-actions {
  padding-left: 1rem;
  padding-right: 1rem;
}

.product-card-inner .product-title {
  line-height: 1.25;
  max-width: 100%;
  font-size: 0.82rem;
  font-size: clamp(0.78rem, 5.6cqi, 0.95rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphenate-character: "-";
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
}

.product-card-thumb-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card-thumb-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-card-thumb-link:hover .product-card-thumb {
  opacity: 0.94;
}

.product-card-inner .product-title,
.product-card-inner .product-desc,
.product-card-inner .card-actions {
  padding-left: 1rem;
  padding-right: 1rem;
}

.product-card-inner .product-title {
  line-height: 1.25;
}

.product-card-thumb-link {
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.product-card-thumb-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-card-thumb-link:hover .product-card-thumb {
  opacity: 0.94;
}

.product-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s ease;
}

.product-card:hover {
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.product-line {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.product-title {
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.product-desc {
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.product-card .card-actions .details-link,
.product-card .card-actions .buy-link {
  font-size: 0.74rem;
  padding: 0.26rem 0.48rem;
  line-height: 1.2;
}

.product-actions .buy-link {
  font-size: 0.84rem;
  padding: 0.36rem 0.66rem;
  line-height: 1.2;
}

.buy-link {
  display: inline-block;
  background: var(--accent);
  color: #1c130c;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.28rem 0.5rem;
  font-size: 0.78rem;
}

.buy-link:hover,
.buy-link:focus-visible {
  background: var(--accent-dark);
}

.purchase-download-form {
  display: inline;
}

.purchase-download-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.purchase-download-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.details-link {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.28rem 0.5rem;
  font-size: 0.78rem;
}

.details-link:hover,
.details-link:focus-visible {
  border-color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.site-footer--admin-minimal {
  padding: 0;
  min-height: 7rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: start;
  padding-bottom: 1.5rem;
}

.footer-signup-col,
.footer-contact-col {
  min-width: 0;
}

.footer-main .section-title {
  margin-top: 0;
}

.footer-signup-col .auth-form {
  max-width: 60em;
}

.footer-signup-col .auth-input {
  max-width: 60em;
}

.footer-main--contact-only {
  grid-template-columns: 1fr;
}

.updates-page-body {
  padding: 1.75rem 0 3rem;
}

.updates-page-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.updates-page-content-text {
  color: var(--muted);
  line-height: 1.75;
}

.updates-page-content-text p {
  margin: 0 0 1rem;
}

.updates-page-content-text p:last-child {
  margin-bottom: 0;
}

.updates-page-signup {
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.updates-page-signup .signup-block {
  width: 100%;
}

.updates-page-signup .signup-block--minimal .auth-form {
  margin-top: 0;
}

.updates-page-signup .auth-field {
  text-align: left;
}

.updates-page-signup .auth-label {
  text-align: left;
}

.updates-page-signup .auth-alert {
  text-align: left;
}

.updates-page-signup .auth-form {
  max-width: none;
}

.updates-page-signup .auth-input {
  max-width: none;
}

.footer-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  min-height: 100%;
}

.footer-contact-col {
  display: grid;
  gap: 1.75rem;
}

.footer-contact-block .section-title {
  margin-bottom: 0.65rem;
}

.footer-contact-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.footer-contact-line a {
  color: var(--accent);
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social-link {
  --social-icon-size: calc(3.25rem * 0.7);
  --social-grid: 4;
  position: relative;
  display: inline-block;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  border-radius: 12px;
  background: none;
  transition: transform 0.15s ease;
}

.footer-social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: rgba(212, 175, 55, 0.35);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 2;
}

.footer-social-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url('/images/socials.png');
  background-repeat: no-repeat;
  background-size: calc(var(--social-grid) * var(--social-icon-size))
    calc(var(--social-grid) * var(--social-icon-size));
  z-index: 1;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.footer-social-link:hover::before,
.footer-social-link:focus-visible::before {
  opacity: 1;
}

/* socials.png: 4x4 grid, 424px per cell — row 1, column 3 */
.footer-social-link--instagram::after {
  background-position: calc(-2 * var(--social-icon-size)) 0;
}

/* socials.png: 4x4 grid, 424px per cell — row 4, column 2 */
.footer-social-link--pinterest::after {
  background-position: calc(-1 * var(--social-icon-size)) calc(-3 * var(--social-icon-size));
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.footer-inner a {
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 860px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    align-self: auto;
  }
}

.empty-state {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--muted);
}

.news-post-list {
  --news-post-gap: 1.25rem;
  display: grid;
  gap: var(--news-post-gap);
  padding: var(--news-post-gap) 0;
}

.news-post-item {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  background: rgba(35, 23, 15, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.news-post-thumb-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.news-post-thumb-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 12px;
}

.news-post-thumb-link:hover .news-post-thumb {
  opacity: 0.94;
}

.news-post-thumb {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: opacity 0.2s ease;
}

.news-post-thumb--empty {
  background: rgba(18, 12, 8, 0.45);
  box-sizing: border-box;
}

.news-post-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.news-post-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.news-post-title-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.news-post-title-link:hover,
.news-post-title-link:focus-visible {
  text-decoration: underline;
}

.news-post-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.catalog-section:has(> .news-post-header) {
  display: flow-root;
}

.catalog-section > .news-post-header {
  margin: 1.25rem 0;
}

.news-post-header .section-title {
  margin-top: 0;
}

.news-post-header h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.2;
}

.news-post-header .auth-meta {
  text-align: left;
}

.news-post-edit-wrap {
  margin: 1.75rem 0 0;
  text-align: center;
}

.news-post-edit-link {
  display: inline-block;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(212, 175, 55, 0.78);
  text-decoration: none;
  white-space: nowrap;
}

.news-post-edit-link:hover,
.news-post-edit-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.news-post-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 0;
  margin: 0;
}

.news-post-footer .news-post-back {
  margin: 0;
  padding: 0;
  text-align: center;
}

.news-post-body figure {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 1.25rem auto;
  text-align: center;
}

.news-post-body figure:has(figcaption:not(:empty)) {
  padding: 0.75rem;
  background: #3d3225;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.news-post-body figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.news-post-body figcaption {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}


@media (max-width: 860px) {
  .news-post-item {
    grid-template-columns: 1fr;
  }

  .news-post-thumb,
  .news-post-thumb-link {
    width: 100%;
    max-width: 200px;
  }

  .news-post-thumb {
    width: 100%;
    max-width: 200px;
    height: 200px;
  }
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.product-page {
  margin-bottom: 3rem;
}

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.product-media-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-main-panel {
  grid-column: 2;
  grid-row: 1;
}

.product-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gallery-main-view {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #120c08;
}

.gallery-main-view.is-zoomable {
  cursor: zoom-in;
}

.gallery-main-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 3, 0.92);
  cursor: pointer;
}

.gallery-lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-height: 100%;
  pointer-events: none;
}

.gallery-lightbox-inner > * {
  pointer-events: auto;
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: var(--panel-hover);
  border-color: var(--accent);
}

.gallery-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(96vw, 96vh);
  height: min(96vw, 96vh);
  max-width: 96vw;
  max-height: 96vh;
}

.gallery-lightbox-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: min(4rem, 18vh);
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(35, 23, 15, 0.85);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
  background: var(--panel-hover);
  border-color: var(--accent);
}

/* JS toggles this class when the mouse is near the image edges. */
.gallery-lightbox-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Keep them usable via keyboard focus even if there's no hover. */
.gallery-lightbox-nav:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-prev {
  left: 0.25rem;
}

.gallery-lightbox-next {
  right: 0.25rem;
}

.gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 900px) {
  .gallery-lightbox-nav:not(:disabled) {
    opacity: 0;
    pointer-events: auto;
  }

  .gallery-lightbox-nav.is-visible,
  .gallery-lightbox-nav:focus-visible,
  .gallery-lightbox-nav:hover {
    opacity: 0;
  }
}

.gallery-lightbox-counter {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-admin-edit {
  margin: 0;
  font-size: 0.9rem;
}

.product-admin-edit a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-admin-edit a:hover,
.product-admin-edit a:focus-visible {
  color: var(--text);
}

.gallery-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #120c08;
  transition: border-color 0.2s ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: var(--muted);
}

.gallery-thumb.active {
  border-color: var(--accent);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-detail-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.4rem 1.5rem;
}

.product-detail-panel .product-line {
  margin: 0 0 0.65rem;
}

.product-detail-panel .product-line a {
  color: inherit;
  text-decoration: none;
}

.product-detail-panel .product-line a:hover {
  text-decoration: underline;
}

.product-detail-panel h1 {
  margin: 0 0 0.5rem;
  line-height: 1.28;
}

.product-series-panel h2 {
  margin: 0 0 0.65rem;
  line-height: 1.25;
  font-size: 1.35rem;
}

.product-series-line-image-wrap {
  margin: 0 0 1rem;
}

.product-series-line-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.product-series-line-image-link {
  display: block;
  border-radius: 10px;
}

.product-series-line-image-link:hover .product-series-line-image,
.product-series-line-image-link:focus-visible .product-series-line-image {
  border-color: var(--accent);
}

.product-series-line-image-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

.product-series-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-series-description p {
  margin: 0 0 0.85rem;
}

.product-series-description p:last-child {
  margin-bottom: 0;
}

.product-series-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-subtitle {
  margin: 0.35rem 0 0;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}

.product-price-line {
  margin: 0.25rem 0 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.45;
}

.product-long-description {
  color: var(--muted);
  margin: 0 0 1.75rem;
  white-space: pre-line;
  line-height: 1.75;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .site-header:not(.site-header--home) {
    padding-top: 0.75rem;
  }

  .site-header:not(.site-header--home) .hero-banner {
    border-radius: 12px 12px 0 0;
  }

  .eyebrow {
    margin-bottom: 0.4rem;
  }
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-media-column {
    display: contents;
  }

  .product-gallery-wrapper {
    order: 1;
  }

  .product-main-panel {
    grid-column: auto;
    grid-row: auto;
    order: 2;
  }

  .product-series-panel {
    order: 3;
  }

  .product-admin-edit {
    order: 4;
  }
}

@media (max-width: 768px) {
  .intro-slideshow-row {
    grid-template-columns: 1fr;
  }

  .intro-slideshow-row.home-images-row {
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .top-nav {
    align-items: center;
    flex-direction: row;
  }

  .top-nav-right {
    justify-content: flex-end;
  }
}

@media (max-width: 860px) {
  .top-nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .top-nav-left {
    display: none;
  }

  .top-nav-spacer {
    display: none;
  }
}

/* Products page */
.products-page {
  width: 100%;
}

.products-hero {
  position: relative;
  height: clamp(180px, 28vh, 260px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: #120c08;
}

.products-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(1.02);
}

.products-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 12, 8, 0.65) 0%, rgba(18, 12, 8, 0.35) 55%, rgba(18, 12, 8, 0.55) 100%),
    linear-gradient(180deg, rgba(18, 12, 8, 0.3) 0%, rgba(18, 12, 8, 0.5) 100%);
}

.products-hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.25rem 0;
}

.products-hero-title {
  margin: 0;
  font-size: clamp(1.55rem, 2.9vw, 2.35rem);
  line-height: 1.12;
}

.products-hero-subtitle {
  margin: 0;
  max-width: 85ch;
  color: var(--muted);
  line-height: 1.55;
}

.products-hero-subtitle p {
  margin: 0 0 0.75rem;
}

.products-hero-subtitle p:last-child {
  margin-bottom: 0;
}

.products-hero--auto-height {
  height: auto;
  min-height: clamp(180px, 28vh, 260px);
  overflow: hidden;
  background-color: #120c08;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.products-hero--auto-height .products-hero-inner {
  height: auto;
  justify-content: flex-start;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.products-category-bar,
.products-category-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.35rem;
}

.products-category-tab {
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  padding: 0.85rem 1.15rem;
  font-weight: 900;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.products-category-tab:hover:not(:disabled),
.products-category-tab:focus-visible:not(:disabled) {
  color: var(--text);
}

.products-category-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
  box-shadow: none;
}

.products-category-tab:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.products-coming-soon {
  font-weight: 800;
  color: rgba(244, 236, 216, 0.78);
}

.products-catalog {
  padding: 1rem 0 3rem;
}

.products-line-picker {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
  margin: 0 0 1.35rem;
}

.products-line-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.line-filter--sidebar {
  display: block;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
}

.line-filter--sidebar .line-filter__thumb {
  aspect-ratio: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: rgba(35, 23, 15, 0.85);
}

.line-filter--sidebar .line-filter__thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.line-filter--sidebar .line-filter__thumb--fallback {
  padding: 18%;
}

.line-filter--sidebar .line-filter__thumb--fallback img {
  width: auto;
  max-width: 100%;
  max-height: 8rem;
  margin: 0 auto;
}

.line-filter--sidebar.active {
  background: transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.line-filter--sidebar.active .line-filter__thumb {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.products-line-detail {
  min-width: 0;
}

.products-line-detail .products-line-description {
  margin: 0;
}

.line-filter--thumb {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  border-radius: 12px;
  padding: 0.55rem;
  text-align: center;
  width: 100%;
}

.line-filter__thumb {
  aspect-ratio: 1;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(35, 23, 15, 0.85);
  border: 1px solid var(--border);
  display: block;
}

.line-filter__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.line-filter__thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18%;
  background:
    linear-gradient(145deg, rgba(48, 31, 20, 0.95), rgba(24, 16, 11, 0.92));
}

.line-filter__thumb--fallback img {
  object-fit: contain;
}

.line-filter__label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.line-filter--thumb:hover,
.line-filter--thumb:focus-visible {
  border-color: rgba(212, 175, 55, 0.55);
}

.line-filter--thumb.active {
  background: rgba(212, 175, 55, 0.08);
  color: var(--text);
  border-color: var(--accent);
  font-weight: 600;
}

.line-filter--thumb.active .line-filter__thumb {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.12);
}

.line-filter--thumb.active .line-filter__label {
  color: rgba(212, 175, 55, 0.95);
}

.products-catalog-stack {
  display: flex;
  flex-direction: column;
  margin-top: 0.25rem;
}

.products-line-description {
  max-width: none;
  line-height: 1.55;
  color: var(--muted);
}

.products-line-description p {
  margin: 0 0 0.85rem;
}

.products-line-description p:last-child {
  margin-bottom: 0;
}

.products-catalog-stack .products-sort-row {
  margin: 0 0 1.25rem;
}

.products-catalog-stack .products-grid {
  margin-bottom: 0;
}

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  padding: 0.75rem 0 3rem;
}

.products-sidebar {
  background: rgba(35, 23, 15, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  height: fit-content;
}

.products-sidebar-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.95);
}

.products-main .section-title {
  margin-top: 0;
}

@media (max-width: 900px) {
  .products-layout {
    grid-template-columns: 1fr;
  }
}

/* Auth */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3.5rem 0;
}

.auth-card {
  width: min(460px, 92%);
  background: rgba(35, 23, 15, 0.88);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(212, 175, 55, 0.08) inset;
  backdrop-filter: blur(8px);
}

.container > .auth-card--wide,
.products-layout .auth-card--wide {
  width: 100%;
  max-width: none;
}

.my-purchases-grid .product-card {
  background: var(--bg);
}

.my-purchases-grid .product-card:hover {
  background: var(--bg);
  transform: translateY(-2px);
}

.auth-eyebrow {
  margin: 0 0 0.35rem;
  color: rgba(212, 175, 55, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.75rem;
}

.auth-title {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
}

.auth-subtitle {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.auth-alert {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  background: rgba(26, 18, 12, 0.65);
  color: #f6ead0;
}

.auth-form {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-label {
  font-weight: 700;
  color: #eadfca;
}

.auth-field-hint {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.1;
  text-align: left;
}

.auth-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(18, 12, 8, 0.85);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.auth-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.auth-input textarea,
textarea.auth-input {
  font-family: inherit;
}

/* Compact "Sort by" select even though it uses .auth-input */
.auth-input.products-sort-select {
  width: auto;
  min-width: 10.25rem;
  max-width: 100%;
  padding: 0.4rem 0.55rem;
  font-size: 0.88rem;
  border-radius: 9px;
}

.auth-button {
  display: inline-block;
  margin-top: 0.2rem;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(180deg, var(--accent) 0%, #c99f2c 100%);
  color: #1c130c;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.auth-button:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
}

.auth-button:active {
  transform: translateY(0);
}

.auth-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.auth-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: linear-gradient(180deg, #7a7570 0%, #5c5854 100%);
  color: #d4d0cb;
  transform: none;
  filter: none;
}

.auth-button:disabled:hover,
.auth-button:disabled:active {
  filter: none;
  transform: none;
}

.auth-coming-soon {
  margin-top: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.auth-meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  text-align: center;
}

.auth-meta.download-expiration-note {
  margin-top: 0.5rem;
  line-height: 1.45;
}

.download-expiration-hint {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.1;
}

.download-expiration-line {
  display: block;
  margin-top: 1.35rem;
}

.admin-back {
  margin: 0 0 1rem;
}

/* Admin tiles */
.admin-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.admin-tile {
  display: block;
  text-decoration: none;
  background: rgba(35, 23, 15, 0.78);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.15rem;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.admin-tile:hover,
.admin-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.65);
  background: rgba(45, 31, 20, 0.82);
  outline: none;
}

.admin-tile-title {
  display: block;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--text);
}

.admin-tile-subtitle {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.admin-orders-layout {
  grid-template-columns: minmax(380px, 420px) 1fr;
}

.admin-mailing-list-layout {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
}

@media (min-width: 901px) {
  .admin-mailing-list-layout .products-sidebar,
  .admin-orders-layout .products-sidebar,
  .admin-products-layout .products-sidebar {
    align-self: start;
  }

  .admin-orders-layout #admin-order-detail,
  .admin-products-layout #admin-product-detail {
    align-self: start;
    min-width: 0;
  }
}

.admin-orders-controls {
  gap: 0.75rem;
}

.admin-orders-toolbar {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  background: rgba(35, 23, 15, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.admin-orders-toolbar.auth-form {
  margin-top: 1rem;
}

.admin-orders-filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  width: 100%;
}

.admin-orders-filters-grid .admin-orders-date-range {
  grid-column: 1 / -1;
}

.admin-orders-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.6rem;
}

.admin-orders-toolbar-actions .auth-button {
  margin-top: 0;
  width: auto;
}

.admin-orders-toolbar-actions .admin-orders-clear {
  margin-top: 0;
  width: auto;
}

@media (max-width: 640px) {
  .admin-orders-filters-grid {
    grid-template-columns: 1fr;
  }

  .admin-orders-filters-grid .admin-orders-date-range {
    grid-template-columns: 1fr;
  }
}

.admin-orders-date-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-orders-total {
  margin: 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-orders-total strong {
  color: var(--text);
  font-weight: 700;
}

.admin-orders-clear {
  background: transparent;
  border: 1px solid rgba(244, 236, 216, 0.28);
  color: var(--text);
}

.admin-orders-clear:hover {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(18, 12, 8, 0.18);
  filter: none;
  transform: none;
}

.admin-orders-clear:active {
  transform: none;
}

.admin-order-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-composer-header {
  margin-bottom: 1.25rem;
}

.admin-order-list-item {
  display: block;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  background: transparent;
  font: inherit;
  color: inherit;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.admin-order-list-item--active {
  border-color: var(--accent);
}

.admin-order-list-item--unmatched {
  border: 2px solid rgba(232, 120, 120, 0.85);
}

.admin-order-list-item--unmatched.admin-order-list-item--active {
  border-color: rgba(232, 120, 120, 0.95);
  box-shadow: 0 0 0 1px rgba(232, 120, 120, 0.35);
}

.admin-orders-unmatched-alert {
  margin: 1rem 0 0;
  text-align: left;
}

.admin-orders-unmatched-alert p {
  margin: 0 0 0.65rem;
}

.admin-orders-unmatched-list {
  margin: 0;
  padding-left: 1.25rem;
}

.admin-orders-unmatched-list li {
  margin: 0.25rem 0;
}

.admin-orders-unmatched-groups {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-orders-unmatched-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(232, 120, 120, 0.45);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

.admin-orders-unmatched-group-main {
  width: 100%;
  min-width: 0;
}

.admin-orders-unmatched-group-title {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-orders-unmatched-group-meta {
  margin: 0.35rem 0 0;
}

.admin-orders-match-btn {
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.admin-order-rematch-status--error {
  color: #ffb4b4;
}

.admin-order-item--unmatched {
  border-color: rgba(232, 120, 120, 0.75);
}

.admin-order-item-unmatched-label {
  color: #ffb4b4;
  font-weight: 600;
}

.admin-order-list-item-body {
  display: grid;
  gap: 0.3rem;
  width: 100%;
}

.admin-order-list-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-order-list-number {
  font-weight: 900;
  line-height: 1.25;
}

.admin-order-list-meta {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
}

.admin-order-list-meta-row {
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
}

.admin-order-list-meta-label {
  color: var(--text);
  font-weight: 700;
}

.admin-order-list-meta-value {
  min-width: 0;
}

.admin-order-list-meta strong {
  color: var(--text);
  font-weight: 700;
}

.admin-order-list-product {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-order-list-product .admin-order-list-meta-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-order-list-email {
  word-break: break-word;
}

.admin-order-list-email .admin-order-list-meta-value {
  word-break: break-word;
}

.admin-order-status-badge {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 900;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 216, 0.22);
  color: var(--muted);
  white-space: nowrap;
}

.admin-order-status-badge--registered {
  border-color: rgba(212, 175, 55, 0.55);
  color: rgba(212, 175, 55, 0.95);
}

.admin-order-status-badge--claimed {
  border-color: rgba(120, 180, 120, 0.45);
  color: #9fd49f;
}

.admin-order-status-badge--unclaimed {
  border-color: rgba(244, 236, 216, 0.22);
  color: var(--muted);
}

#admin-order-detail .admin-order-detail-header {
  margin-bottom: 1.25rem;
}

#admin-order-detail .admin-order-detail-header .auth-title {
  margin: 0;
}

.admin-order-details {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.admin-order-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.75rem;
  align-items: baseline;
}

.admin-order-detail-row dt {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.admin-order-detail-row dd {
  margin: 0;
}

.admin-order-items-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.admin-order-items {
  display: grid;
  gap: 0.75rem;
}

.admin-order-item {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(18, 12, 8, 0.22);
}

.admin-order-item-heading {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  line-height: 1.35;
}

.admin-order-item-title-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.admin-order-item-title-link:hover,
.admin-order-item-title-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.admin-order-item-details {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.admin-order-item-details .admin-order-detail-row {
  grid-template-columns: 120px 1fr;
  gap: 0.5rem 0.75rem;
}

.admin-order-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 0.85rem;
}

.admin-order-item-b2-status {
  flex: 1 1 12rem;
  min-width: 0;
}

.admin-order-item p {
  margin: 0 0 0.35rem;
}

.admin-order-item p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-detail-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .admin-order-item-details .admin-order-detail-row {
    grid-template-columns: 1fr;
  }

  .admin-order-list-meta-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.admin-products-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  align-items: center;
}

.admin-products-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.admin-products-layout .products-sidebar-title {
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

#admin-product-detail .admin-product-detail-header {
  margin-bottom: 1.25rem;
}

#admin-product-detail .admin-product-detail-header .auth-title {
  margin: 0;
}

.admin-products-layout #admin-product-detail .admin-order-detail-row dd {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-products-layout #admin-product-detail code {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.admin-products-layout #admin-product-detail .admin-product-long-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  white-space: normal;
}

@media (min-width: 901px) {
  .admin-products-layout .products-sidebar {
    min-width: 0;
  }

  .admin-products-layout #admin-product-detail .admin-order-details {
    min-width: 0;
  }

  .admin-products-layout #admin-product-detail .admin-order-detail-row {
    grid-template-columns: 118px minmax(0, 1fr);
  }
}

.admin-products-layout .admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.admin-product-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.25rem;
  gap: 0.35rem;
  align-items: center;
}

.admin-product-line-row--heading {
  align-items: end;
  margin-top: 1rem;
}

.admin-product-line-row--heading:first-child {
  margin-top: 0;
}

.admin-product-line-heading {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-product-list-favorite-heading {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.admin-product-favorite-cell {
  display: flex;
  justify-content: center;
  align-items: center;
}

.admin-product-favorite {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.admin-product-list-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  min-width: 0;
  overflow: hidden;
}

.admin-product-list-item--active {
  border-color: var(--accent);
}

.admin-product-list-item--warn {
  border-color: rgba(245, 168, 168, 0.45);
}

.admin-product-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.admin-product-thumb--empty {
  display: block;
  border: 1px dashed rgba(255, 255, 255, 0.18);
}

.admin-product-list-title {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.92rem;
  line-height: 1.3;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 0.5rem;
}

.admin-order-detail-row--images dd {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 100%;
}

.admin-product-gallery-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-product-b2-missing {
  color: #f5a8a8;
}

.admin-product-b2-status {
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-product-b2-status--ok {
  color: #9fd49f;
}

.admin-product-b2-status--fail {
  color: #f5a8a8;
}

.admin-product-b2-status--pending {
  color: var(--muted);
}

.admin-b2-results-wrap {
  overflow-x: auto;
}

.admin-b2-results {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-b2-results th,
.admin-b2-results td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-b2-results th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-b2-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 236, 216, 0.22);
  color: var(--muted);
  white-space: nowrap;
}

.admin-b2-badge--ok {
  border-color: rgba(120, 180, 120, 0.45);
  color: #9fd49f;
}

.admin-b2-badge--fail {
  border-color: rgba(245, 168, 168, 0.45);
  color: #f5a8a8;
}

.admin-b2-badge--pending {
  border-color: rgba(244, 236, 216, 0.18);
  color: var(--muted);
}

.admin-flash-toast {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 300;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  background: rgba(26, 18, 12, 0.92);
  box-shadow: 0 0.6rem 1.8rem rgba(0, 0, 0, 0.35);
  color: #f6ead0;
  font-size: 0.9rem;
  line-height: 1.2;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.admin-flash-toast--error {
  border-color: rgba(245, 168, 168, 0.55);
  color: #ffd8d8;
}

.admin-flash-toast--hide {
  opacity: 0;
  transform: translateY(-0.35rem);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.admin-modal__panel {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.admin-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-modal__title {
  margin: 0;
  font-size: 1.2rem;
}

.admin-modal__close {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
}

.admin-modal__close:hover {
  background: var(--panel-hover);
}

.admin-modal__body {
  padding: 1rem;
  overflow: auto;
}

.admin-product-pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-product-pick-item + .admin-product-pick-item {
  border-top: 1px solid rgba(76, 55, 35, 0.5);
}

.admin-product-pick-link {
  display: block;
  width: 100%;
  padding: 0.65rem 0.25rem;
  border: none;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border-radius: 8px;
}

.admin-product-pick-link:hover,
.admin-product-pick-link:focus-visible {
  background: var(--panel-hover);
  outline: none;
}

.product-editor .pe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: start;
}

.product-editor .pe-fields > * {
  margin-bottom: 0.85rem;
}

.product-editor .pe-fields > *:last-child {
  margin-bottom: 0;
}

.pe-tags-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.25rem 0 0.65rem;
  min-height: 2rem;
  align-items: center;
}

.pe-tag-badge {
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(18, 12, 8, 0.55);
  color: rgba(244, 236, 216, 0.95);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.pe-tag-badge:hover,
.pe-tag-badge:focus-visible {
  outline: none;
  border-color: rgba(212, 175, 55, 0.75);
  background: rgba(35, 23, 15, 0.75);
}

.pe-tags-input {
  margin-bottom: 0.65rem;
}

.pe-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(76, 55, 35, 0.55);
  background: rgba(0, 0, 0, 0.15);
}

.pe-tag-cloud-item {
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(18, 12, 8, 0.35);
  padding: 0.22rem 0.5rem;
  color: rgba(244, 236, 216, 0.85);
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
}

.pe-tag-cloud-item:hover,
.pe-tag-cloud-item:focus-visible {
  outline: none;
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(35, 23, 15, 0.7);
  color: rgba(244, 236, 216, 0.98);
}

.pe-tag-cloud-item.is-selected,
.pe-tag-cloud-item:disabled {
  opacity: 0.45;
  border-color: rgba(160, 160, 160, 0.35);
  background: rgba(18, 12, 8, 0.25);
  color: rgba(244, 236, 216, 0.7);
  cursor: default;
}

.pe-tag-cloud-item.is-selected:hover,
.pe-tag-cloud-item.is-selected:focus-visible,
.pe-tag-cloud-item:disabled:hover,
.pe-tag-cloud-item:disabled:focus-visible {
  border-color: rgba(160, 160, 160, 0.35);
  background: rgba(18, 12, 8, 0.25);
  color: rgba(244, 236, 216, 0.7);
}

@media (max-width: 900px) {
  .product-editor .pe-layout {
    grid-template-columns: 1fr;
  }
}

.pe-images-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.pe-note {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.pe-note--warn {
  color: #e8c96b;
}

.pe-gallery-wrap {
  border: 1px dashed rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
}

.pe-delete-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.9rem;
}

.product-editor .pe-delete-product--small {
  width: auto;
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  border-radius: 10px;
  margin-left: 0;
}

.pe-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.pe-img-item {
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(35, 23, 15, 0.6);
  min-height: auto;
  overflow: hidden;
}

.pe-img-item.is-reorder-active {
  opacity: 0.88;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.45);
}

.pe-img-item.is-drop-target {
  box-shadow: 0 0 0 2px var(--accent);
}

.pe-slot {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(35, 23, 15, 0.6);
  min-height: 120px;
}

.pe-drag-handle {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.4rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.08em;
  color: var(--text);
  cursor: grab;
  user-select: none;
  touch-action: none;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.pe-drag-handle:active {
  cursor: grabbing;
}

.pe-mark {
  position: absolute;
  left: 0.35rem;
  bottom: 0.35rem;
  z-index: 2;
  padding: 0.12rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  border-radius: 4px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #f0e6c8;
}

.pe-mark--thumb {
  color: #fff8e8;
  border-color: rgba(212, 175, 55, 0.75);
}

.pe-mark--main {
  color: #fff8e8;
  border-color: rgba(212, 175, 55, 0.75);
}

.pe-slot--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  min-height: 140px;
}

.pe-slot--empty.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.pe-slot-inner {
  padding: 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.pe-img-frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.pe-img-frame img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.pe-img-delete {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 5;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(80, 20, 20, 0.85);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pe-img-delete:hover {
  background: rgba(120, 30, 30, 0.95);
}

.pe-actions {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-editor .pe-delete-product {
  margin-left: auto;
  background: transparent;
  border: 1px solid rgba(200, 100, 100, 0.55);
  color: #e8a8a8;
}

.product-editor .pe-delete-product.pe-delete-product--small {
  margin-left: 0;
  margin-right: 0;
}

.product-editor .pe-delete-product:hover {
  border-color: rgba(230, 140, 140, 0.85);
  color: #ffd0d0;
}

.pe-status {
  font-size: 0.95rem;
}

.pe-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.65);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.pe-modal-overlay[hidden] {
  display: none;
}

.pe-modal {
  width: min(560px, 100%);
  background: rgba(35, 23, 15, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.pe-modal-title {
  margin: 0 0 0.5rem;
}

.pe-modal-desc {
  margin: 0 0 1rem;
  color: rgba(244, 236, 216, 0.9);
  line-height: 1.5;
}

.pe-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

/* Mail queue (admin) */
.admin-mail-queue-badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
}

.admin-mail-queue-badge--pending,
.admin-mail-queue-badge--queued {
  background: rgba(255, 196, 96, 0.18);
  color: #ffd68a;
}

.admin-mail-queue-badge--pending_overdue {
  background: rgba(232, 120, 120, 0.18);
  color: #ffb4b4;
}

.admin-mail-queue-badge--sending {
  background: rgba(96, 168, 255, 0.18);
  color: #9ec8ff;
}

.admin-mail-queue-badge--complete {
  background: rgba(96, 196, 128, 0.18);
  color: #9ee0b0;
}

.admin-mail-queue-badge--partial,
.admin-mail-queue-badge--paused {
  background: rgba(255, 196, 96, 0.18);
  color: #ffd68a;
}

.admin-mail-queue-badge--failed,
.admin-mail-queue-badge--not_sent,
.admin-mail-queue-badge--stalled,
.admin-mail-queue-badge--unknown {
  background: rgba(232, 120, 120, 0.18);
  color: #ffb4b4;
}

.admin-mail-queue-detail-status {
  margin: 0.5rem 0 0;
}

.admin-mail-queue-log-title {
  margin: 1.25rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
}

.admin-mail-queue-log {
  margin: 0;
  padding: 0.85rem 1rem;
  max-height: 16rem;
  overflow: auto;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
.activity-outcome {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.activity-outcome--success {
  background: rgba(46, 125, 50, 0.14);
  color: #2e7d32;
}

.activity-outcome--denied {
  background: rgba(183, 28, 28, 0.12);
  color: #b71c1c;
}

.activity-outcome--error {
  background: rgba(230, 81, 0, 0.14);
  color: #e65100;
}

.admin-guest-attempts-card {
  padding: 1rem 1.15rem 1.25rem;
}

.admin-guest-attempts-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-guest-attempts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-guest-attempts-table th,
.admin-guest-attempts-table td {
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.admin-guest-attempts-table th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.admin-guest-attempts-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-guest-attempts-result-text {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 860px) {
  .admin-guest-attempts-table thead {
    display: none;
  }

  .admin-guest-attempts-table,
  .admin-guest-attempts-table tbody,
  .admin-guest-attempts-table tr,
  .admin-guest-attempts-table td {
    display: block;
    width: 100%;
  }

  .admin-guest-attempts-table tr {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .admin-guest-attempts-table tbody tr:last-child {
    border-bottom: none;
  }

  .admin-guest-attempts-table td {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: none;
  }

  .admin-guest-attempts-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

.admin-activity-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 0.35rem;
}

.listing-tool-page .listing-tool-panel {
  margin-top: 1.25rem;
}

.listing-tool-layout-controls {
  margin-bottom: 1rem;
}

.listing-tool-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  align-items: end;
}

.listing-tool-layout-action .listing-tool-clear-btn {
  display: inline-block;
  padding-top: 0.55rem;
}

.listing-tool-section-title {
  margin: 1.25rem 0 0.35rem;
  font-size: 1rem;
}

.listing-tool-staging-hint {
  margin: 0 0 0.65rem;
  text-align: left;
}

.listing-tool-placement-grid {
  display: grid;
  gap: 0.65rem;
}

.listing-tool-slot {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
  border: 2px dashed var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.listing-tool-slot--filled {
  border-style: solid;
  background: rgba(255, 255, 255, 0.85);
}

.listing-tool-slot-hint {
  color: var(--muted);
  font-size: 0.82rem;
  pointer-events: none;
}

.listing-tool-slot-clear {
  position: absolute;
  top: 0.25rem;
  right: 0.35rem;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  width: 1.5rem;
  height: 1.5rem;
}

.listing-tool-drop-target--active,
.listing-tool-slot.listing-tool-drop-target--active {
  border-color: var(--accent, #8b5a2b);
  background: rgba(139, 90, 43, 0.08);
}

.listing-tool-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  cursor: grab;
}

.listing-tool-thumb--dragging {
  opacity: 0.55;
}

.listing-tool-thumb img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  pointer-events: none;
}

.listing-tool-thumb-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--muted);
}

.listing-tool-staging {
  min-height: 110px;
  padding: 0.85rem;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.listing-tool-staging-empty {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.listing-tool-staging-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}

.listing-tool-staging-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.listing-tool-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.listing-tool-dropzone:hover,
.listing-tool-dropzone:focus-visible,
.listing-tool-dropzone--active {
  border-color: var(--accent, #8b5a2b);
  background: rgba(139, 90, 43, 0.06);
  outline: none;
}

.listing-tool-dropzone-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.listing-tool-dropzone-hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.listing-tool-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.listing-tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1rem;
}

.listing-tool-clear-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.listing-tool-status {
  margin-top: 0.85rem;
  text-align: left;
}

.listing-tool-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.listing-tool-preview-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
}

.listing-tool-preview-item img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.listing-tool-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.listing-tool-preview-name {
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-tool-preview-size {
  font-size: 0.75rem;
  color: var(--muted);
}

.listing-tool-preview-remove {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--accent, #8b5a2b);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}