/* Lilletoften Havesalg — all rules stay inside the plugin's own wrapper. */
.lth {
  --lth-forest: #254c3a;
  --lth-forest-dark: #17382a;
  --lth-text: #25342b;
  --lth-muted: #637069;
  --lth-paper: #fff;
  --lth-cream: #f6f7f1;
  --lth-line: #dce3d9;
  --lth-auction: #79551e;
  --lth-auction-bg: #fff1d4;
  box-sizing: border-box;
  width: 100%;
  max-width: min(1200px, 100%);
  container: lth / inline-size;
  margin: 0 auto;
  color: var(--lth-text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}
/* Block-theme layouts may reset direct-child margins after this stylesheet.
   Keep the breathing room inside our own wrapper, independent of block gaps. */
.lth.lth-listings, .lth.lth-detail {
  margin-block: 0;
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.lth.lth-detail { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.lth *, .lth *::before, .lth *::after { box-sizing: inherit; }
.lth [hidden] { display: none !important; }
.lth a { color: var(--lth-forest); }
.lth a:focus-visible, .lth button:focus-visible, .lth select:focus-visible {
  outline: 3px solid var(--lth-forest);
  outline-offset: 5px;
}
/* The site's global header rule belongs to its masthead, not these headings. */
.lth .lth-header, .lth .lth-detail-header {
  position: static;
  inset: auto;
  z-index: auto;
  box-shadow: none;
}
.lth .lth-header { max-width: 740px; margin-bottom: 2rem; }
.lth .lth-eyebrow, .lth .lth-kicker {
  color: var(--lth-forest);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}
.lth .lth-eyebrow { margin: 0 0 .7rem; }
.lth .lth-header h2 {
  margin: 0 0 .8rem;
  color: var(--lth-forest-dark);
  font-family: inherit;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.16;
}
.lth .lth-header p:last-child { margin: 0; color: var(--lth-muted); }
.lth .lth-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--lth-line);
  border-bottom: 1px solid var(--lth-line);
}
.lth .lth-filter-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.lth a.lth-filter {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .5rem 1.05rem;
  border: 1px solid var(--lth-line);
  border-radius: 5px;
  background: var(--lth-paper);
  color: var(--lth-text);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.lth a.lth-filter:hover { background: var(--lth-cream); border-color: var(--lth-forest); }
.lth a.lth-filter.is-active { color: #fff; background: var(--lth-forest); border-color: var(--lth-forest); }
.lth .lth-filters label { color: var(--lth-muted); font-size: .875rem; }
.lth .lth-filters select {
  max-width: 100%;
  min-height: 44px;
  padding: .5rem 2rem .5rem .7rem;
  border: 1px solid var(--lth-line);
  border-radius: 5px;
  background-color: var(--lth-paper);
  color: var(--lth-text);
  font: inherit;
  font-size: .9rem;
}
.lth .lth-count { margin: 0 0 1rem; color: var(--lth-muted); font-size: .875rem; }
.lth .lth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.lth .lth-card {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--lth-line);
  border-radius: 9px;
  background: var(--lth-paper);
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.lth .lth-card:hover { transform: translateY(-3px); border-color: #b5c6b8; box-shadow: 0 8px 24px rgb(37 76 58 / 9%); }
.lth a.lth-card-link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.lth a.lth-card-link:focus-visible { outline-offset: -5px; }
.lth .lth-card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #e9eee2; }
.lth .lth-card-media > img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; object-fit: cover; }
.lth .lth-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .65rem;
  padding: 1.5rem;
  background: linear-gradient(140deg, #e7eddf 0%, #f2f4ed 100%);
  color: var(--lth-forest);
  font-size: .875rem;
}
.lth .lth-placeholder svg { width: 44px; height: 44px; opacity: .6; }
.lth .lth-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .35rem .75rem;
  border-radius: 4px;
  background: #edf3e9;
  color: var(--lth-forest);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
}
.lth .lth-card-media .lth-badge { position: absolute; top: 1rem; left: 1rem; box-shadow: 0 1px 6px rgb(0 0 0 / 5%); }
.lth .lth-badge.is-auction { background: var(--lth-auction-bg); color: var(--lth-auction); }
.lth .lth-badge.is-closed { background: #eceeeb; color: #525e57; }
.lth .lth-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.lth .lth-kicker { margin: 0 0 .3rem; }
.lth .lth-card h3 { margin: 0 0 .7rem; color: var(--lth-forest-dark); font-size: 1.35rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.lth .lth-card-description { margin: 0 0 1.2rem; color: var(--lth-muted); font-size: .925rem; line-height: 1.6; overflow-wrap: anywhere; }
.lth .lth-card-facts { margin: auto 0 0; }
.lth .lth-card-facts dl { margin: 0; }
.lth .lth-card-facts > div, .lth .lth-card-facts dl > div { padding-top: .7rem; }
.lth .lth-card-facts dt { margin: 0 0 .15rem; color: var(--lth-muted); font-size: .75rem; font-weight: 400; }
.lth .lth-card-facts dd { margin: 0; color: var(--lth-text); font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
.lth .lth-card-facts time { font-size: .875rem; font-weight: 500; }
.lth .lth-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1rem; margin-top: 1.1rem; border-top: 1px solid var(--lth-line); color: var(--lth-forest); font-size: .875rem; font-weight: 650; }
.lth .lth-arrow { font-size: 1.3rem; font-weight: 400; line-height: 1; }
.lth .lth-empty { padding: 2.5rem 1.5rem; border: 1px dashed #bdcbbd; border-radius: 9px; background: var(--lth-cream); text-align: center; }
.lth .lth-empty h3 { margin: 0 0 .5rem; color: var(--lth-forest); font-size: 1.3rem; }
.lth .lth-empty p { margin: 0; color: var(--lth-muted); }
.lth .lth-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.lth .lth-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0; margin: 0; border: 0; background: transparent; list-style: none; }
.lth .lth-pagination ul.page-numbers li { padding: 0; margin: 0; list-style: none; }
.lth .lth-pagination a.page-numbers, .lth .lth-pagination span.page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: .35rem .7rem; border: 1px solid var(--lth-line); border-radius: 4px; text-decoration: none; }
.lth .lth-pagination .current { border-color: var(--lth-forest); background: var(--lth-forest); color: #fff; }
.lth-page-shell { margin-block: 0; }
.lth-page-shell:not(.has-global-padding) { padding-inline: clamp(1rem, 4vw, 3rem); }
.lth .lth-breadcrumb { margin: 0 0 1.25rem; }
.lth a.lth-back { display: inline-flex; align-items: center; gap: .65rem; min-height: 36px; color: var(--lth-muted); font-size: .825rem; text-decoration: none; }
.lth a.lth-back:hover { color: var(--lth-forest); text-decoration: underline; }
.lth .lth-detail-header { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: 2rem; align-items: center; margin: 0 0 1.5rem; }
.lth .lth-detail-heading { min-width: 0; }
.lth .lth-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.15rem; }
.lth .lth-detail-header h1 { margin: 0; color: var(--lth-forest-dark); font-family: inherit; font-size: clamp(2rem, 4vw, 3rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; }
.lth .lth-detail-header .lth-eyebrow { margin: 0 0 .65rem; }
.lth .lth-detail-header .lth-badge { flex-shrink: 0; border-radius: 100px; padding: .4rem .85rem; }
.lth .lth-price-summary { padding: .15rem 0 .15rem 1.6rem; border-left: 1px solid var(--lth-line); }
.lth .lth-price-label { margin: 0 0 .35rem; color: var(--lth-muted); font-size: .825rem; }
.lth .lth-price-amount { margin: 0; color: var(--lth-forest-dark); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lth .lth-detail-layout { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); grid-template-areas: "media summary" "description summary"; align-items: start; gap: 1.75rem 2rem; }
.lth .lth-media { grid-area: media; min-width: 0; }
.lth .lth-detail-sidebar { grid-area: summary; min-width: 0; position: sticky; top: 2rem; align-self: start; }
.lth .lth-hero { overflow: hidden; margin: 0; padding: 0; border: 1px solid var(--lth-line); border-radius: 14px; background: #eff2ec; }
.lth a.lth-hero-link { display: flex; width: 100%; aspect-ratio: 3 / 2; align-items: center; justify-content: center; cursor: zoom-in; }
.lth .lth-hero img { display: block; width: 100%; height: 100%; max-height: 620px; margin: 0; padding: 0; border: 0; object-fit: contain; }
.lth .lth-hero .lth-placeholder { min-height: 290px; aspect-ratio: 3 / 2; }
.lth .lth-gallery-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .85rem .15rem 0; color: var(--lth-muted); font-size: .8rem; }
.lth .lth-gallery-toolbar p { margin: 0; }
.lth .lth-gallery-toolbar a { display: inline-flex; align-items: center; gap: .5rem; min-height: 32px; font-size: .8rem; font-weight: 600; text-underline-offset: .2em; }
.lth .lth-gallery-toolbar a span { font-size: 1.3rem; line-height: 1; }
.lth .lth-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .65rem; margin: .9rem 0 0; }
.lth a.lth-thumbnail { display: block; overflow: hidden; padding: 3px; border: 2px solid transparent; border-radius: 8px; background: var(--lth-paper); }
.lth a.lth-thumbnail[aria-current="true"] { border-color: var(--lth-forest); }
.lth .lth-thumbnail img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; margin: 0; border-radius: 4px; object-fit: cover; }
.lth .lth-description { grid-area: description; margin: 0; padding: 1.6rem 1.75rem; border: 1px solid var(--lth-line); border-radius: 14px; background: var(--lth-paper); overflow-wrap: anywhere; }
.lth .lth-description > :first-child { margin-top: 0; }
.lth .lth-description h2, .lth .lth-description h3 { margin: 0 0 .9rem; color: var(--lth-forest-dark); font-family: inherit; font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
.lth .lth-description-content { max-width: 72ch; }
.lth .lth-description-content > :first-child { margin-top: 0; }
.lth .lth-description-content > :last-child { margin-bottom: 0; }
.lth .lth-description img { max-width: 100%; height: auto; }
.lth .lth-panel { padding: 1.5rem; border: 1px solid var(--lth-line); border-radius: 14px; background: var(--lth-paper); box-shadow: 0 5px 20px rgb(37 76 58 / 3%); }
.lth .lth-panel + .lth-panel { margin-top: 1rem; }
.lth .lth-panel h2, .lth .lth-panel h3 { margin: 0 0 1rem; color: var(--lth-forest-dark); font-family: inherit; font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
.lth .lth-facts, .lth .lth-facts dl { margin: 0; }
.lth .lth-facts > div, .lth .lth-facts dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--lth-line); }
.lth .lth-facts > div:first-child, .lth .lth-facts dl > div:first-child { padding-top: 0; }
.lth .lth-facts > div:last-child, .lth .lth-facts dl > div:last-child { border-bottom: 0; }
.lth .lth-facts dt { margin: 0; color: var(--lth-muted); font-size: .825rem; font-weight: 400; }
.lth .lth-facts dd { margin: 0; color: var(--lth-text); font-size: .95rem; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.lth .lth-facts dd a { text-underline-offset: .18em; }
.lth .lth-contact { padding-top: 1.35rem; margin-top: 1.1rem; border-top: 1px solid var(--lth-line); overflow-wrap: anywhere; }
.lth .lth-contact p { margin: 0 0 .65rem; color: var(--lth-muted); font-size: .875rem; }
.lth .lth-contact p.lth-contact-name { color: var(--lth-text); font-size: 1rem; font-weight: 600; }
.lth .lth-email { text-underline-offset: .2em; }
.lth .lth-contact p.lth-contact-note { margin: 1rem 0 1.2rem; font-size: .8rem; line-height: 1.6; }
.lth a.lth-button, .lth button.lth-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.2rem;
  border: 1px solid var(--lth-forest);
  border-radius: 5px;
  background: var(--lth-forest);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.lth .lth-contact .lth-button { width: 100%; }
.lth a.lth-button:hover, .lth button.lth-button:hover { background: var(--lth-forest-dark); border-color: var(--lth-forest-dark); color: #fff; }
.lth a.lth-button.is-secondary { background: transparent; color: var(--lth-forest); }
.lth a.lth-button.is-secondary:hover { background: #e6eddf; }
.lth .lth-notice { padding: 1rem 1.15rem; margin: 1.2rem 0 0; border-left: 3px solid #bc963f; border-radius: 0 4px 4px 0; background: #fff7e6; color: #614b25; font-size: .875rem; }
.lth .lth-notice > :first-child { margin-top: 0; }
.lth .lth-notice > :last-child { margin-bottom: 0; }
.lth.lth-detail > .lth-notice { margin: 0 0 1.5rem; }
.lth .lth-facts .lth-deadline { display: block; padding: .9rem 1rem; margin-top: .75rem; border-radius: 8px; background: var(--lth-auction-bg); font-size: .925rem; }
.lth .lth-deadline dd { margin-top: .35rem; text-align: left; }
.lth .lth-deadline time { display: block; margin-top: .25rem; font-weight: 600; }
.lth .lth-deadline small { display: block; margin-top: .25rem; color: var(--lth-muted); font-size: .8rem; }
.lth .lth-lightbox { display: none; position: fixed; inset: 0; width: min(1200px, calc(100vw - 2rem)); height: min(900px, calc(100vh - 2rem)); height: min(900px, calc(100dvh - 2rem)); max-width: none; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid #476250; border-radius: 14px; background: #14281e; color: #fff; }
.lth .lth-lightbox[open] { display: flex; flex-direction: column; }
.lth .lth-lightbox::backdrop { background: rgb(7 19 12 / 87%); }
.lth .lth-lightbox-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 1rem; }
.lth .lth-lightbox-header p { margin: 0; font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.lth .lth-lightbox button { display: inline-flex; justify-content: center; align-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid #56725e; border-radius: 8px; background: #253e2d; color: #fff; font: inherit; font-size: 1.4rem; cursor: pointer; }
.lth .lth-lightbox button:hover { background: #3c5844; }
.lth .lth-lightbox button:focus-visible { outline-color: #d4e6ca; outline-offset: 3px; }
.lth .lth-lightbox .lth-lightbox-close { font-size: 1.8rem; }
.lth .lth-lightbox-stage { display: flex; flex: 1; min-height: 0; align-items: center; justify-content: center; padding: .5rem 1rem; background: #0d1d14; }
.lth .lth-lightbox-stage img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; object-fit: contain; }
.lth .lth-lightbox-controls { display: flex; justify-content: center; align-items: center; gap: 1.25rem; min-height: 64px; padding: .5rem 1rem; }
.lth .lth-lightbox-controls p { min-width: 6rem; margin: 0; text-align: center; font-size: .85rem; }
@media (max-width: 1000px) {
  .lth .lth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lth .lth-panel { padding: 1.25rem; }
}
@media (max-width: 680px) {
  .lth .lth-header { margin-bottom: 1.5rem; }
  .lth .lth-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .lth .lth-card-media { aspect-ratio: 16 / 10; }
  .lth .lth-card-body { padding: 1.2rem; }
  .lth .lth-detail-header { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .lth .lth-price-summary { padding: 0; border: 0; }
  .lth .lth-detail-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "summary" "description"; gap: 1.5rem; }
  .lth .lth-detail-sidebar { position: static; }
  .lth .lth-description { padding: 1.25rem; }
  .lth .lth-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lth .lth-gallery { gap: .5rem; }
  .lth .lth-filter-links { width: 100%; }
  .lth a.lth-filter { flex: 1; padding-right: .65rem; padding-left: .65rem; }
}
/* Respond to the available theme content width, including narrow desktop columns. */
@container lth (max-width: 850px) {
  .lth .lth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container lth (max-width: 780px) {
  .lth .lth-detail-header { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .lth .lth-price-summary { padding: 0; border: 0; }
  .lth .lth-detail-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "summary" "description"; gap: 1.5rem; }
  .lth .lth-detail-sidebar { position: static; }
}
@container lth (max-width: 580px) {
  .lth .lth-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .lth .lth-card-media { aspect-ratio: 16 / 10; }
  .lth .lth-card-body { padding: 1.2rem; }
  .lth .lth-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
  .lth .lth-filter-links { width: 100%; }
  .lth a.lth-filter { flex: 1; padding-right: .65rem; padding-left: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lth .lth-card { transition: none; }
  .lth .lth-card:hover { transform: none; }
}
@media print {
  .lth .lth-filters, .lth .lth-pagination, .lth .lth-back, .lth .lth-contact .lth-button, .lth .lth-lightbox { display: none; }
  .lth .lth-detail-layout { display: block; }
  .lth .lth-detail-sidebar { position: static; margin: 1.5rem 0; }
  .lth .lth-card, .lth .lth-panel { break-inside: avoid; box-shadow: none; }
}
