/* Admin order create form — minimalist black & white, mobile-first */

.admin-order-form {
  max-width: 720px;
}

.admin-order-form__section {
  border: 1px solid #000;
  padding: 1rem;
  margin: 0 0 1.25rem;
}

.admin-order-form__section legend {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 0.5rem;
}

.admin-order-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.admin-order-form .form-group {
  margin-bottom: 0.75rem;
}

.admin-order-form .form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  cursor: pointer;
}

.admin-order-form .form-checkbox input {
  width: 22px;
  height: 22px;
}

.admin-order-form .form-help {
  font-size: 0.85rem;
  color: #444;
  margin: 0.5rem 0 0;
}

.admin-order-form .form-control:disabled {
  background: #f4f4f4;
  color: #888;
}

/* Item picker */

.item-picker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.item-picker__search-input {
  width: 100%;
  font-size: 1rem;
  min-height: 44px;
}

.item-picker__results {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 320px;
  overflow-y: auto;
}

.item-picker__results:empty {
  display: none;
}

.item-picker__result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid #000;
  background: #fff;
  text-align: left;
  cursor: pointer;
  min-height: 64px;
  font: inherit;
}

.item-picker__result:hover:not(:disabled),
.item-picker__result:focus-visible:not(:disabled) {
  background: #000;
  color: #fff;
}

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

.item-picker__hint {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
  padding: 0.5rem;
}

.item-picker__thumb {
  width: 56px;
  height: 72px;
  object-fit: cover;
  display: block;
  background: #eee;
  flex-shrink: 0;
}

.item-picker__thumb--empty {
  background: repeating-linear-gradient(45deg, #eee, #eee 4px, #fff 4px, #fff 8px);
}

.item-picker__meta {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.item-picker__meta strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-picker__meta small {
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: #555;
}

.item-picker__selected {
  border-top: 1px solid #ccc;
  padding-top: 0.75rem;
}

.item-picker__selected-title {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.item-picker__selected-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item-picker__selected-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border: 1px solid #000;
  min-height: 64px;
}

.item-picker__selected-item .btn {
  min-height: 36px;
  flex-shrink: 0;
}

.item-picker__empty {
  font-size: 0.9rem;
  color: #555;
  margin: 0.25rem 0 0;
}

@media (max-width: 720px) {
  .admin-order-form .form-row {
    grid-template-columns: 1fr;
  }

  .admin-order-form__section {
    padding: 0.85rem;
  }

  .item-picker__results {
    max-height: 260px;
  }
}
/* ────────────────────────────────────────────────────────────────────────
   Order Timeline — editorial schematic, museum-label aesthetic.
   Layout uses a 6-column × 3-row grid (HEAD / RAIL / FOOT) so all
   markers sit on a shared baseline regardless of label or control height.
   ──────────────────────────────────────────────────────────────────────── */

.order-timeline {
  --tl-rule:        1px solid #000;
  --tl-hairline:    1px solid rgba(0, 0, 0, 0.18);
  --tl-mute:        rgba(0, 0, 0, 0.55);
  --tl-rail-h:      1.7rem;
  --tl-head-min:    4.6rem;
  --tl-foot-min:    7rem;
  --tl-marker:      0.78rem;
  --tl-pad-x:       0.65rem;

  position: relative;
  margin: 2.5rem 0;
  padding: 2rem 2.25rem 2.5rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  overflow: hidden;
}

/* ── Typography (brand fonts only) ── */
.order-timeline__eyebrow,
.stage__name,
.stage__controls,
.stage__action,
.stage__readout,
.stage__until,
.stage__error,
.stage__warning,
.order-timeline__today,
.order-timeline__modal-details,
.order-timeline__global-error,
.order-progress-inline {
  font-family: "Courier New", Courier, monospace;
}

.order-timeline__order-number,
.order-timeline__header h2,
.stage__ordinal,
.stage__stamp,
.order-progress-inline__ordinal {
  font-family: "Cinzel", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

/* ── Header ── */
.order-timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.4rem;
  border-bottom: var(--tl-rule);
}

.order-timeline__title { min-width: 0; }

.order-timeline__eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.order-timeline__order-number {
  font-style: italic;
  letter-spacing: 0.04em;
}

.order-timeline__header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.1;
}

.order-timeline__status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.order-timeline__status-action {
  padding: 0.7rem 1.05rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font: 700 0.62rem/1.2 "Courier New", Courier, monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.order-timeline__status-action:hover,
.order-timeline__status-action:focus-visible {
  background: #000;
  color: #fff;
  outline: none;
}

.order-timeline__modal-actions button {
  padding: 0.7rem 1.05rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font: 700 0.66rem/1 "Courier New", Courier, monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.order-timeline__modal-actions button:hover,
.order-timeline__modal-actions button:focus-visible {
  background: #000;
  color: #fff;
  outline: none;
}

.order-timeline__global-error {
  margin: 1rem 0 0;
  padding: 0.6rem 0.9rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Board: positioning context for the today indicator ── */
.order-timeline__board {
  position: relative;
  margin-top: 0.5rem;
  padding-top: 2.25rem;
}

/* ── Stages: shared 6×3 grid (head / rail / foot) ── */
.order-timeline__stages {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows:
    minmax(var(--tl-head-min), auto)
    var(--tl-rail-h)
    minmax(var(--tl-foot-min), auto);
  column-gap: 0;
  row-gap: 0;
}

.stage {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  position: relative;
  padding: 0 var(--tl-pad-x);
  min-width: 0;
}

/* ── HEAD: serif ordinal + spaced caps stage name ── */
/* Centered so the ordinal, label, marker, and controls share one vertical
   axis through the middle of the column. */
.stage__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding-bottom: 0.4rem;
}

.stage__ordinal {
  display: inline-flex;
  align-items: baseline;
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--tl-mute);
  font-feature-settings: "lnum";
}
.stage__ordinal-dot { margin-left: 0.04em; opacity: 0.55; }

.stage__name {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ── RAIL: shared horizontal baseline + marker ── */
.stage__rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* The rule line — drawn per stage and extended past the stage padding
   so adjacent segments meet exactly at the column boundary, forming
   one continuous spine across the timeline. */
.stage__rail::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--tl-pad-x) * -1);
  right: calc(var(--tl-pad-x) * -1);
  border-top: var(--tl-rule);
  transform: translateY(-50%);
  z-index: 0;
}

/* Trim the rail at the outer edges of the first/last stages. */
.stage:first-child .stage__rail::before { left: 50%; }
.stage:last-child  .stage__rail::before { right: 50%; }

.stage--future .stage__rail::before {
  border-top-style: dashed;
}

/* BOOKED reads as the active rental span — heavier rule on its column. */
.stage--booked .stage__rail::before {
  border-top-width: 2.5px;
}

.stage__marker {
  position: relative;
  z-index: 1;
  width: var(--tl-marker);
  height: var(--tl-marker);
  border: 1.5px solid #000;
  border-radius: 999px;
  background: #000;
  /* Halo masks the rule line behind the marker so the dot reads cleanly. */
  box-shadow: 0 0 0 4px #fff;
}

.stage--future .stage__marker { background: #fff; }

.stage--current .stage__marker {
  animation: orderTimelinePulse 2.4s ease-out infinite;
}

/* ── FOOT: controls / readouts / captions / errors ── */
.stage__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding-top: 0.95rem;
}

.stage__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.stage__control-row {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  min-height: 1.65rem;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: 1rem/1 "Courier New", Courier, monospace;
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease;
}
.step:hover { border-color: #000; }
.step:active,
.step:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
  outline: none;
}

.stage__date,
.stage__slot-shell {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0 0.4rem;
  border: 1px solid transparent;
  border-bottom: var(--tl-hairline);
  background: transparent;
  font-variant-numeric: tabular-nums;
}

.stage__date {
  cursor: ew-resize;
  user-select: none;
}
.stage__date:hover     { border-bottom-color: #000; }
.stage__date:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
  outline: none;
}
.stage__date.is-dragging {
  background: #000;
  color: #fff;
  border-color: #000;
}

.stage__slot-shell {
  position: relative;
  padding-right: 1.1rem;
  cursor: pointer;
}
.stage__slot-shell:hover { border-bottom-color: #000; }
.stage__slot-shell:focus-within {
  background: #000;
  color: #fff;
  border-color: #000;
}
.stage__slot-shell::after {
  content: "▾";
  position: absolute;
  right: 0.32rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  pointer-events: none;
}

.stage__slot-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
}

.stage__readout {
  margin: 0;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.stage__until {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--tl-mute);
}

.stage__stamp {
  font-style: italic;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.stage__error {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  align-self: stretch;
}

.stage__warning {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  align-self: stretch;
}

.stage__action {
  padding: 0.62rem 0.78rem;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.stage__action:hover,
.stage__action:focus-visible {
  background: #000;
  color: #fff;
  outline: none;
}

/* ── Today indicator: vertical hairline crossing the whole stages grid ── */
.order-timeline__today {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--today-position, 50%);
  width: 0;
  pointer-events: none;
  z-index: 2;
}

.order-timeline__today::before {
  content: "";
  position: absolute;
  top: -1.1rem;
  bottom: 0.5rem;
  left: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.32);
}

.order-timeline__today-label {
  position: absolute;
  top: -2.05rem;
  left: 0;
  transform: translateX(-50%);
  padding: 0.2rem 0.45rem;
  background: #000;
  color: #fff;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Animations ── */
.flash-change { animation: orderTimelineFlash 240ms ease-out; }

@keyframes orderTimelineFlash {
  0%   { background: #000; color: #fff; }
  100% { background: transparent; color: inherit; }
}

@keyframes orderTimelinePulse {
  0% {
    box-shadow:
      0 0 0 4px #fff,
      0 0 0 4px rgba(0, 0, 0, 0.42);
  }
  100% {
    box-shadow:
      0 0 0 4px #fff,
      0 0 0 18px rgba(0, 0, 0, 0);
  }
}

/* ── Modal ── */
.order-timeline--modal { max-width: 52rem; }
.order-timeline__modal-body { padding-top: 1.5rem; }
.order-timeline__modal-body > p { max-width: 36rem; font-size: 1rem; line-height: 1.6; }

.order-timeline__modal-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 1.8rem;
}
.order-timeline__modal-details dt {
  margin-bottom: 0.35rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.order-timeline__modal-details dd {
  margin: 0;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.order-timeline__modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Order show layout (existing classes preserved) ── */
.admin-order-show__badges,
.admin-order-show__top-actions,
.admin-order-show__workflow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  font-family: "Courier New", Courier, monospace;
}

.page-header--order {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.admin-order-show__badges { margin-top: 0.65rem; }

.admin-order-show__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-order-show__section {
  padding: 1.5rem;
  border: 1px solid #000;
  background: #fff;
}

.admin-order-show__section--wide { margin-bottom: 2rem; }

.admin-order-show__details {
  display: grid;
  gap: 0.85rem;
}

.admin-order-show__details dt {
  margin-bottom: 0.2rem;
  font-size: 0.66rem;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-order-show__details dd { margin: 0; }
.detail-group--notes dd p:last-child { margin-bottom: 0; }
.admin-order-show__workflow-actions { margin-top: 1.5rem; }

.admin-order-line {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
}

.admin-order-line__media {
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
}

.admin-order-line__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 11 / 14;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 180ms ease, opacity 220ms ease;
}

.admin-order-line__thumb--empty {
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.45);
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
}

.admin-order-line__content,
.admin-order-line__source {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.admin-order-line__content strong,
.admin-order-line__source strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.admin-order-line__meta {
  font-size: 0.7rem;
  font-family: "Courier New", Courier, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.58);
}

.table tbody tr:hover .admin-order-line__thumb {
  transform: scale(1.03);
}

/* ── Customer-facing inline progress ── */
.order-progress-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.order-progress-inline__ordinal {
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--tl-mute, rgba(0, 0, 0, 0.55));
}

.order-progress-inline__label { letter-spacing: 0.2em; font-weight: 700; }
.order-progress-inline__separator { opacity: 0.45; }

/* ────────────────────────────────────────────────────────────────────────
   Responsive — collapse the rail at narrow widths so each stage stacks.
   ──────────────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .order-timeline { padding: 1.5rem; }

  .order-timeline__board { padding-top: 1.25rem; }

  .order-timeline__stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    column-gap: 1rem;
    row-gap: 1.4rem;
  }

  .stage {
    grid-template-rows: auto auto auto;
    grid-row: auto;
    padding-bottom: 1.1rem;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.2);
  }

  .stage__rail { display: none; }
  .order-timeline__today { display: none; }
  .stage--booked .stage__rail::after { display: none; }

  /* Current stage: show the pulsing marker inline + left accent bar */
  .stage--current {
    border-left: 3px solid #000;
    border-bottom: 2px solid #000;
    padding-left: calc(var(--tl-pad-x) + 0.75rem);
  }

  .stage--current .stage__ordinal { color: #000; }

  .stage--current .stage__rail {
    display: flex;
    height: 2rem;
  }

  .stage--current .stage__rail::before { display: none; }

  .admin-order-show__grid,
  .order-timeline__modal-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-header--order,
  .order-timeline__header { flex-direction: column; }
  .order-timeline__status-actions { justify-content: flex-start; }

  .admin-order-show__top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .order-timeline__stages { grid-template-columns: 1fr; }
  .admin-order-show__section { padding: 1.15rem; }
  .admin-order-line {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.75rem;
  }
}
.availability-card {
  border: 1px solid #e0e0e0;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}

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

.availability-grid.item-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.availability-reason {
  grid-column: 1 / -1;
}

.availability-hours {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.availability-hours label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.availability-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.availability-calendar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.availability-filter-form {
  margin-bottom: 0.75rem;
  max-width: 340px;
}

.availability-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #e0e0e0;
}

.calendar-dow {
  padding: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
  font-weight: 600;
  text-align: center;
}

.calendar-cell {
  min-height: 110px;
  padding: 0.45rem;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell.is-outside {
  background: #fafafa;
  color: #888;
}

.calendar-day-num {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.calendar-badge {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.2;
  padding: 0.15rem 0.35rem;
  margin-bottom: 0.2rem;
  border-radius: 3px;
}

.badge-prueba {
  background: #fce8e6;
  color: #8f1d18;
}

.badge-item {
  background: #e6f4ea;
  color: #1f5f2a;
}

.calendar-note {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.calendar-thumbs {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.25rem;
}

.calendar-thumb {
  width: 20px;
  height: 26px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.calendar-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  color: #666;
  font-size: 0.7rem;
}

.calendar-day-details-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0057a3;
  text-decoration: underline;
  font-size: 0.72rem;
  cursor: pointer;
}

.calendar-day-popup-template {
  display: none;
}

.calendar-day-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.calendar-day-popup-overlay.is-visible {
  display: flex;
}

.calendar-day-popup-modal {
  width: min(720px, 92vw);
  max-height: 80vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  position: relative;
}

.calendar-day-popup-close {
  position: absolute;
  top: 0.3rem;
  right: 0.4rem;
  border: 0;
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
}

.calendar-day-popup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.calendar-day-popup-card {
  border: 1px solid #e0e0e0;
  padding: 0.5rem;
}

.calendar-day-popup-card img {
  width: 96px;
  height: 128px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
  .availability-grid,
  .availability-grid.item-grid {
    grid-template-columns: 1fr;
  }

  .availability-hours {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .availability-calendar-grid {
    font-size: 0.85rem;
  }

  .calendar-cell {
    min-height: 90px;
  }
}
.current-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.media-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
}

.media-tile-content,
.media-tile-content .media-loading-wrapper,
.media-tile-content .media-loading-image {
  width: 100%;
  height: 100%;
}

.media-tile-content .media-loading-wrapper {
  display: block;
}

.media-tile-content img,
.media-tile-content video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}

.media-tile-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.15s ease;
  pointer-events: none;
}

.media-tile:hover .media-tile-overlay,
.media-tile:focus-within .media-tile-overlay {
  background: rgba(0, 0, 0, 0.15);
  pointer-events: auto;
}

.media-tile-drag,
.media-tile-delete,
.media-tile-cover {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.media-tile-drag {
  width: 2rem;
  height: 2rem;
  top: 0.4rem;
  left: 0.4rem;
  cursor: grab;
}

.media-tile-drag:active {
  cursor: grabbing;
}

.media-tile-delete {
  width: 2rem;
  height: 2rem;
  top: 0.4rem;
  right: 0.4rem;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.media-tile-cover {
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.4rem;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  justify-content: flex-start;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.drag-icon {
  font-size: 1.1rem;
  letter-spacing: -0.15rem;
}

.media-tile:hover .media-tile-drag,
.media-tile:hover .media-tile-delete,
.media-tile:hover .media-tile-cover,
.media-tile:focus-within .media-tile-drag,
.media-tile:focus-within .media-tile-delete,
.media-tile:focus-within .media-tile-cover {
  opacity: 1;
}

.media-tile-drag:hover,
.media-tile-delete:hover,
.media-tile-cover:hover,
.media-tile-drag:focus-visible,
.media-tile-delete:focus-visible,
.media-tile-cover:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}

.media-tile-badge {
  position: absolute;
  bottom: 0.4rem;
  left: 0.4rem;
  background: #000;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
}

.media-tile-cover-state {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  background: rgba(255, 255, 255, 0.94);
  color: #000;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
}

.admin-layout .current-images img,
.admin-layout .media-tile-content img,
.admin-layout .item-thumbnail {
  cursor: zoom-in;
}

.uploader {
  border: 1px solid #d8d8d8;
  padding: 1rem;
  background: #fff;
}

.uploader-restore {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid #d8d8d8;
  background: #fafafa;
}

.uploader-restore-copy {
  margin: 0;
  font-size: 0.95rem;
}

.uploader-restore-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.uploader-restore-dismiss {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
}

.uploader-dropzone {
  border: 2px dashed #c8c8c8;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.uploader-dropzone:hover,
.uploader-dropzone:focus-visible {
  border-color: #7d7d7d;
}

.uploader-dropzone.is-drag-over {
  border-color: #000;
  background: #f7f7f7;
}

.uploader-dropzone-icon {
  width: 3rem;
  height: 3rem;
  border: 1px solid #000;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
}

.uploader-dropzone-label,
.uploader-dropzone-hint {
  margin: 0;
}

.uploader-dropzone-label {
  font-weight: 600;
}

.uploader-dropzone-hint {
  margin-top: 0.35rem;
  color: #4f4f4f;
  font-size: 0.95rem;
}

.uploader-queue {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.9rem;
}

.uploader-queue:empty {
  display: none;
}

.uploader-item {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid #ebebeb;
  background: transparent;
  transition: opacity 0.18s ease, transform 0.18s ease, max-height 0.18s ease, padding 0.18s ease;
  max-height: 5rem;
}

.uploader-item.is-failed {
  border-bottom-color: #000;
}

.uploader-item.is-completed {
  opacity: 0.45;
}

.uploader-item.is-completed.is-deferred {
  opacity: 1;
}

.uploader-item.is-removing {
  opacity: 0;
  transform: translateY(-0.2rem);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
  border-bottom-color: transparent;
}

.uploader-item-preview {
  width: 2.5rem;
  height: 2.5rem;
  overflow: hidden;
  background: #f3f3f3;
}

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

.uploader-item-body {
  min-width: 0;
}

.uploader-item-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.uploader-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.92rem;
}

.uploader-item-size {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}

.uploader-item-status {
  font-size: 0.76rem;
  color: #666;
}

.uploader-progress {
  height: 0.25rem;
  background: #efefef;
  overflow: hidden;
  margin-top: 0.32rem;
}

.uploader-progress-bar {
  width: 0;
  height: 100%;
  background: #000;
  transition: width 0.2s ease;
}

.uploader-item.is-failed .uploader-progress-bar {
  background: #000;
}

.uploader-item.is-completed .uploader-progress-bar {
  width: 100%;
}

.uploader-item-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.uploader-item-action {
  border: 0;
  background: transparent;
  color: #000;
  padding: 0.2rem 0.1rem;
  cursor: pointer;
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.uploader-item-action[hidden] {
  display: none;
}

.uploader-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.uploader-status {
  color: #4f4f4f;
  font-size: 0.9rem;
}

.uploader-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(0.5rem);
  background: #000;
  color: #fff;
  padding: 0.65rem 0.9rem;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 2200;
  pointer-events: none;
}

.uploader-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sortable-ghost {
  opacity: 0.4;
  background-color: #f0f0f0;
}

.sortable-chosen {
  outline: 2px dashed #000;
  outline-offset: -2px;
}

.sortable-drag {
  opacity: 0.85;
  transform: rotate(1.5deg);
}

@media (hover: none) {
  .media-tile-overlay {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.08);
  }

  .media-tile-drag,
  .media-tile-delete,
  .media-tile-cover {
    opacity: 0.82;
  }
}

@media (max-width: 900px) {
  .current-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .uploader-restore,
  .uploader-actions,
  .uploader-item {
    grid-template-columns: 1fr;
  }

  .uploader-restore,
  .uploader-actions {
    align-items: stretch;
  }

  .uploader-item {
    gap: 0.65rem;
  }

  .uploader-item-preview {
    width: 100%;
    height: 9rem;
  }

  .uploader-item-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .current-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .uploader {
    padding: 0.85rem;
  }

  .uploader-dropzone {
    padding: 2rem 1rem;
  }
}
.ai-assist {
  border: 1px solid #000;
  border-radius: var(--field-radius, 0.35rem);
  padding: 0.75rem 1rem 1rem;
  margin: 1rem 0 1.5rem;
  background: #fff;
}

.ai-assist-header {
  border-bottom: 1px solid #000;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.ai-assist-header h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ai-assist-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #333;
  line-height: 1.4;
}

.ai-assist-row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.75rem;
}

.ai-assist-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 0.25rem;
  color: #555;
}

.ai-assist-prompt-wrap,
.ai-assist-output-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.ai-assist-prompt {
  width: 100%;
  height: 6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.3;
  padding: 0.4rem;
  border: 1px solid #999;
  border-radius: var(--field-radius, 0.35rem);
  background: #fafafa;
  color: #222;
  resize: vertical;
  white-space: pre;
  overflow: auto;
}

.ai-assist-prompt:focus {
  outline: 1px solid #000;
  outline-offset: 1px;
}

.ai-assist-output {
  width: 100%;
  min-height: 6rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  padding: 0.5rem;
  border: 1px solid #000;
  border-radius: var(--field-radius, 0.35rem);
  background: #fff;
  resize: vertical;
}

.ai-assist-output-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ai-assist-status {
  font-size: 0.8rem;
  color: #333;
}

.ai-assist-status.is-error {
  color: #000;
  font-weight: 600;
  text-decoration: underline;
}

.ai-assist-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

.ai-assist-image {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 80px;
}

.ai-assist-image-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 1px solid #000;
  display: block;
  cursor: grab;
  background: #f5f5f5;
}

.ai-assist-image-thumb:active {
  cursor: grabbing;
}

.ai-assist-image-copy {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  width: 100%;
}

.ai-assist-empty {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
}

.ai-assist-drag-hint {
  flex-basis: 100%;
  font-size: 0.7rem;
  color: #666;
  margin: 0.25rem 0 0;
}

button.is-error {
  border-color: #000 !important;
  font-weight: 600;
}

@media (max-width: 640px) {
  .ai-assist-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .ai-assist-label {
    padding-top: 0;
  }
}
/* Probador */
.probador-page {
  padding: 0 1.5rem 2.5rem;
}

.probador-hero {
  margin-top: 1.25rem;
  padding: 2rem 2rem 1.5rem;
  align-items: flex-end;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 1.5rem 1.5rem 0 0;
}

.probador-kicker,
.probador-section-label,
.cart-item-label,
.probador-meta-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.56);
}

.probador-hero h1 {
  margin: 0.3rem 0 0.65rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
}

.probador-intro {
  max-width: 36rem;
  color: rgba(0, 0, 0, 0.72);
}

.probador-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.probador-meta-pill {
  min-width: 10rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
}

.probador-meta-pill strong {
  display: block;
  margin-top: 0.2rem;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
}

.probador-stage {
  padding: 0 0 1.25rem;
  background: #fff;
  border-left: 1px solid rgba(0, 0, 0, 0.12);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0 0 1.5rem 1.5rem;
}

.probador-warning {
  margin: 1.5rem 2rem 0;
}

.probador-date-section {
  margin: 0 2rem;
  padding: 1.3rem 0 1.4rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.probador-date-label {
  font-weight: 500;
  margin-top: 0.28rem;
}

.probador-date-controls {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: min(100%, 19rem);
}

.probador-date-input {
  cursor: pointer;
  border-radius: 999px;
  border-color: rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.cart-items {
  display: grid;
  gap: 1rem;
  padding: 1.4rem 2rem 0;
}

.cart-item-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: 1.25rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.25rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.04);
}

.cart-item-images {
  position: relative;
  width: 100%;
  padding-bottom: 132%;
  background: #f8f8f8;
  border-radius: 0.95rem;
  overflow: hidden;
}

.cart-item-images .image-carousel,
.cart-item-images .carousel-image {
  position: absolute;
  inset: 0;
}

.cart-item-info {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item-copy h3 {
  margin: 0.3rem 0 0.35rem;
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
}

.item-details {
  color: rgba(0, 0, 0, 0.64);
}

.cart-item-meta {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
}

.item-price {
  font-size: 1.1rem;
  font-weight: 600;
}

.item-price small {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.probador-remove-button,
.probador-clear-button {
  border-radius: 999px;
}

.cart-summary {
  margin: 1.6rem 2rem 0;
  padding: 1.3rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.cart-summary-copy h2 {
  margin-top: 0.3rem;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
}

.cart-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
}

.probador-empty-state {
  margin-top: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1.4rem;
  background: #fff;
}

.htmx-indicator {
  display: none;
  font-size: 0.875rem;
  color: #666;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline;
}

.cart-item-card.item-unavailable {
  opacity: 0.52;
}

.unavailable-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #000;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  z-index: 2;
  pointer-events: none;
  border-radius: 999px;
}

.probador-notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.probador-notice-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.probador-notice-modal {
  background: #fff;
  border: 1px solid #000;
  width: min(380px, calc(100% - 2.5rem));
  text-align: center;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.probador-notice-overlay.is-visible .probador-notice-modal {
  transform: translateY(0);
}

.probador-notice-bar {
  height: 3px;
  background: #000;
}

.probador-notice-text {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  line-height: 1.6;
  letter-spacing: 0.03em;
  padding: 1.75rem 1.5rem 1rem;
  margin: 0;
}

.probador-notice-close {
  display: block;
  width: 100%;
  padding: 0.6rem;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.probador-notice-close:hover {
  background: #fff;
  color: #000;
}

.rent-date-info {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #f5f5f5;
  border-left: 3px solid #000;
}

@media (max-width: 768px) {
  .probador-page {
    padding: 0 0.85rem 2rem;
  }

  .probador-hero {
    margin-top: 0.8rem;
    padding: 1.4rem 1rem 1.2rem;
    border-radius: 1.1rem 1.1rem 0 0;
  }

  .probador-stage {
    border-radius: 0 0 1.1rem 1.1rem;
  }

  .probador-warning,
  .probador-date-section,
  .cart-items,
  .cart-summary {
    margin-left: 1rem;
    margin-right: 1rem;
    padding-left: 0;
    padding-right: 0;
  }

  .probador-date-section,
  .cart-summary,
  .cart-item-info {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }

  .cart-item-card {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 0.85rem;
  }

  .cart-item-images {
    padding-bottom: 128%;
  }

  .cart-item-copy h3 {
    font-size: 1.15rem;
  }

  .cart-summary-copy h2 {
    font-size: 1.2rem;
  }
}
/* Checkout Page */
.checkout-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1rem 1.5rem;
}

.checkout-summary, .checkout-form {
  background-color: #fff;
  padding: 0;
}

.checkout-page h2 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.checkout-summary h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.checkout-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-items-list li {
  padding: 0.5rem 0;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
}

.checkout-item-image {
  width: 50px;
  height: 65px;
  object-fit: cover;
  flex-shrink: 0;
}

.checkout-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.checkout-item-meta {
  font-size: 0.875rem;
  color: #666;
}

.checkout-item-side-note {
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  text-align: right;
}

.checkout-item-side-note strong {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-included-accessories {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
}

.checkout-totals {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #000;
}

.checkout-form .form-group {
  margin-bottom: 1rem;
}

.checkout-form .form-help {
  padding: 1rem 0;
  color: #666;
}

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

  .checkout-summary {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #000;
  }
}
/**
 * VestAntiq Date Picker Styles
 *
 * BEM naming convention: .vq-datepicker, .vq-datepicker__element, .vq-datepicker__element--modifier
 * Matches Vestantiq design: black borders, minimal, sharp corners
 */

/* =============================================================================
   CSS Variables
   ============================================================================= */

:root {
  --vq-dp-bg: #fff;
  --vq-dp-text: #000;
  --vq-dp-text-muted: #666;
  --vq-dp-border: #000;
  --vq-dp-border-light: #ccc;
  --vq-dp-highlight: #000;
  --vq-dp-highlight-text: #fff;
  --vq-dp-disabled-bg: #f5f5f5;
  --vq-dp-disabled-text: #999;
  --vq-dp-weekend-bg: #fafafa;
  --vq-dp-return-bg: #d4edda;
  --vq-dp-return-border: #28a745;
  --vq-dp-blocked-bg: #f8d7da;
  --vq-dp-today-border: #000;
  --vq-dp-hover-bg: #f0f0f0;
  --vq-dp-cell-size: 40px;
  --vq-dp-gap: 2px;
  --vq-dp-padding: 12px;
  --vq-dp-radius: 0;
  --vq-dp-font-size: 14px;
  --vq-dp-font-size-small: 12px;
  --vq-dp-font-size-tiny: 11px;
  --vq-dp-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --vq-dp-z-index: 1000;
}

/* =============================================================================
   Container
   ============================================================================= */

.vq-datepicker {
  background: var(--vq-dp-bg);
  border: 1px solid var(--vq-dp-border);
  font-family: Verdana, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--vq-dp-font-size);
  color: var(--vq-dp-text);
  width: 320px;
  max-width: 100%;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.vq-datepicker *,
.vq-datepicker *::before,
.vq-datepicker *::after {
  box-sizing: border-box;
}

.vq-datepicker--popup {
  position: absolute;
  z-index: var(--vq-dp-z-index);
  box-shadow: var(--vq-dp-shadow);
}

.vq-datepicker--inline {
  position: relative;
  box-shadow: none;
}

/* =============================================================================
   Header (navigation)
   ============================================================================= */

.vq-datepicker__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--vq-dp-padding);
  border-bottom: 1px solid var(--vq-dp-border);
  gap: 8px;
}

.vq-datepicker__nav {
  background: var(--vq-dp-bg);
  border: 1px solid var(--vq-dp-border);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--vq-dp-text);
  border-radius: var(--vq-dp-radius);
  transition: background-color 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.vq-datepicker__nav:hover:not(:disabled) {
  background: var(--vq-dp-highlight);
  color: var(--vq-dp-highlight-text);
}

.vq-datepicker__nav:focus {
  outline: 2px solid var(--vq-dp-today-border);
  outline-offset: 2px;
}

.vq-datepicker__nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.vq-datepicker__month-year {
  font-weight: 600;
  text-transform: capitalize;
  text-align: center;
  flex: 1;
  min-width: 0;
}

/* =============================================================================
   Instructions Bar
   ============================================================================= */

.vq-datepicker__instructions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--vq-dp-padding);
  background: #f8f9fa;
  border-bottom: 1px solid var(--vq-dp-border);
  gap: 10px;
}

.vq-datepicker__instructions-text {
  font-size: var(--vq-dp-font-size-small);
  font-weight: 500;
  color: var(--vq-dp-text);
}


/* =============================================================================
   Duration Selector (legacy, kept for reference)
   ============================================================================= */

.vq-datepicker__duration {
  padding: var(--vq-dp-padding);
  border-bottom: 1px solid var(--vq-dp-border);
}

.vq-datepicker__duration-label {
  display: block;
  font-size: var(--vq-dp-font-size-small);
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--vq-dp-text-muted);
}

.vq-datepicker__duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.vq-datepicker__duration-btn {
  flex: 1 1 auto;
  min-width: 70px;
  padding: 8px 10px;
  font-size: var(--vq-dp-font-size-small);
  font-family: inherit;
  background: var(--vq-dp-bg);
  border: 1px solid var(--vq-dp-border);
  color: var(--vq-dp-text);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  border-radius: var(--vq-dp-radius);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.vq-datepicker__duration-btn:hover:not(:disabled):not(.vq-datepicker__duration-btn--active) {
  background: var(--vq-dp-hover-bg);
}

.vq-datepicker__duration-btn:focus {
  outline: 2px solid var(--vq-dp-today-border);
  outline-offset: 2px;
}

.vq-datepicker__duration-btn--active {
  background: var(--vq-dp-highlight);
  color: var(--vq-dp-highlight-text);
  border-color: var(--vq-dp-highlight);
}

.vq-datepicker__duration-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* =============================================================================
   Calendar Grid
   ============================================================================= */

.vq-datepicker__calendar {
  padding: var(--vq-dp-padding);
}

.vq-datepicker__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--vq-dp-gap);
  margin-bottom: 8px;
}

.vq-datepicker__weekday {
  text-align: center;
  font-size: var(--vq-dp-font-size-tiny);
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 0;
  color: var(--vq-dp-text-muted);
}

.vq-datepicker__weekday--weekend {
  color: var(--vq-dp-disabled-text);
}

.vq-datepicker__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--vq-dp-gap);
}

/* =============================================================================
   Day Cells
   ============================================================================= */

.vq-datepicker__day {
  aspect-ratio: 1;
  min-height: var(--vq-dp-cell-size);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--vq-dp-font-size);
  font-family: inherit;
  border: 1px solid transparent;
  background: var(--vq-dp-bg);
  color: var(--vq-dp-text);
  cursor: pointer;
  position: relative;
  padding: 0;
  border-radius: var(--vq-dp-radius);
  transition: border-color 0.1s ease, background-color 0.1s ease;
}

.vq-datepicker__day--empty {
  cursor: default;
  background: transparent;
}

/* Hover state for available days */
.vq-datepicker__day--available:hover {
  border-color: var(--vq-dp-border);
  background: var(--vq-dp-hover-bg);
}

.vq-datepicker__day:focus {
  outline: 2px solid var(--vq-dp-today-border);
  outline-offset: -2px;
  z-index: 1;
}

/* Today indicator */
.vq-datepicker__day--today {
  border-color: var(--vq-dp-today-border);
  font-weight: 700;
}

/* Weekend styling - subtle difference, not disabled-looking */
.vq-datepicker__day--weekend {
  background: var(--vq-dp-weekend-bg);
  color: #666;
}

/* Weekend days that are disabled (can't pickup/return) should still look like weekends, not fully disabled */
.vq-datepicker__day--weekend.vq-datepicker__day--disabled {
  background: var(--vq-dp-weekend-bg);
  color: #888;
  cursor: help;
}

/* Today when disabled (after 6 PM) - show help cursor for tooltip */
.vq-datepicker__day--today.vq-datepicker__day--disabled {
  cursor: help;
}

/* Weekend days in selected range should match the range color (override disabled) */
.vq-datepicker__day--weekend.vq-datepicker__day--in-range,
.vq-datepicker__day--weekend.vq-datepicker__day--disabled.vq-datepicker__day--in-range {
  background: var(--vq-dp-highlight);
  color: var(--vq-dp-highlight-text);
  cursor: default;
}

/* Friday - subtle indicator for weekend rentals */
.vq-datepicker__day--friday.vq-datepicker__day--available {
  /* Can add a subtle indicator if needed */
}

/* =============================================================================
   Range Selection Styling
   ============================================================================= */

/* In-range days (between pickup and return) */
.vq-datepicker__day--in-range {
  background: var(--vq-dp-highlight);
  color: var(--vq-dp-highlight-text);
  border-color: var(--vq-dp-highlight);
}

/* Range start - pickup date (rounded left like "(") */
.vq-datepicker__day--range-start {
  background: var(--vq-dp-highlight);
  color: var(--vq-dp-highlight-text);
  border-color: var(--vq-dp-highlight);
  font-weight: 600;
  border-radius: 50% 0 0 50%;
}

.vq-datepicker__day--range-start:hover {
  background: var(--vq-dp-highlight);
  border-color: var(--vq-dp-highlight);
}

/* Range end - return date (rounded right like ")") */
.vq-datepicker__day--range-end {
  background: var(--vq-dp-highlight);
  color: var(--vq-dp-highlight-text);
  border-color: var(--vq-dp-highlight);
  font-weight: 600;
  border-radius: 0 50% 50% 0;
}

.vq-datepicker__day--range-end:hover {
  background: var(--vq-dp-highlight);
  border-color: var(--vq-dp-highlight);
}

/* Same day selection - fully rounded "()" */
.vq-datepicker__day--range-single {
  border-radius: 50%;
}

/* Selected pickup date (legacy, for pickup-only state) */
.vq-datepicker__day--selected.vq-datepicker__day--pickup:not(.vq-datepicker__day--range-start) {
  background: var(--vq-dp-highlight);
  color: var(--vq-dp-highlight-text);
  border-color: var(--vq-dp-highlight);
  font-weight: 600;
  border-radius: 50%;
}

/* Return date styling when not in range mode */
.vq-datepicker__day--return:not(.vq-datepicker__day--range-end) {
  background: var(--vq-dp-return-bg);
  border-color: var(--vq-dp-return-border);
  color: #155724;
  font-weight: 600;
}

.vq-datepicker__day--return:not(.vq-datepicker__day--range-end):hover {
  background: var(--vq-dp-return-bg);
  border-color: var(--vq-dp-return-border);
}

/* Valid return date (selectable in return phase) */
.vq-datepicker__day--valid-return {
  background: #e8f5e9;
  border-color: var(--vq-dp-return-border);
  color: #155724;
}

.vq-datepicker__day--valid-return:hover {
  background: var(--vq-dp-return-bg);
  border-color: var(--vq-dp-return-border);
}

/* Disabled states */
.vq-datepicker__day--disabled,
.vq-datepicker__day--past {
  background: var(--vq-dp-disabled-bg);
  color: var(--vq-dp-disabled-text);
  cursor: not-allowed;
}

.vq-datepicker__day--disabled:hover,
.vq-datepicker__day--past:hover {
  border-color: transparent;
  background: var(--vq-dp-disabled-bg);
}

/* Invalid for current duration (but not completely disabled) */
.vq-datepicker__day--invalid {
  background: var(--vq-dp-disabled-bg);
  color: var(--vq-dp-disabled-text);
  cursor: not-allowed;
}

/* Blocked dates */
.vq-datepicker__day--blocked {
  background: var(--vq-dp-blocked-bg);
  color: #721c24;
  cursor: not-allowed;
  text-decoration: line-through;
}

.vq-datepicker__day--blocked:hover {
  background: var(--vq-dp-blocked-bg);
  border-color: transparent;
}

/* Disabled button state - but allow pointer events for tooltips on weekends */
.vq-datepicker__day:disabled {
  pointer-events: none;
}

.vq-datepicker__day--weekend:disabled,
.vq-datepicker__day--today:disabled {
  pointer-events: auto;
}

/* In-range days override disabled styling (for weekend days within a selected range) */
.vq-datepicker__day--in-range.vq-datepicker__day--disabled {
  background: var(--vq-dp-highlight);
  color: var(--vq-dp-highlight-text);
  border-color: var(--vq-dp-highlight);
  cursor: default;
}

/* =============================================================================
   Footer
   ============================================================================= */

.vq-datepicker__footer {
  padding: var(--vq-dp-padding);
  border-top: 1px solid var(--vq-dp-border);
  font-size: var(--vq-dp-font-size-small);
}

.vq-datepicker__legend {
  display: flex;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.vq-datepicker__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--vq-dp-text-muted);
}

.vq-datepicker__legend-dot {
  width: 14px;
  height: 14px;
  border: 1px solid var(--vq-dp-border-light);
  flex-shrink: 0;
}

.vq-datepicker__legend-dot--pickup {
  background: var(--vq-dp-highlight);
  border-color: var(--vq-dp-highlight);
}

.vq-datepicker__legend-dot--return {
  background: var(--vq-dp-return-bg);
  border-color: var(--vq-dp-return-border);
}

.vq-datepicker__summary {
  line-height: 1.5;
}

.vq-datepicker__summary p {
  margin: 4px 0;
}

.vq-datepicker__summary strong {
  color: var(--vq-dp-text);
}

.vq-datepicker__hint {
  color: var(--vq-dp-text-muted);
  font-style: italic;
}

.vq-datepicker__duration-info {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--vq-dp-border-light);
  color: var(--vq-dp-text-muted);
}

/* =============================================================================
   Trigger Button (for popup mode)
   ============================================================================= */

.vq-datepicker-trigger {
  position: relative;
  display: inline-flex;
  width: 100%;
}

.vq-datepicker-trigger input {
  padding-right: 40px;
}

.vq-datepicker-trigger__btn {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 38px;
  background: var(--vq-dp-bg);
  border: none;
  border-left: 1px solid var(--vq-dp-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vq-dp-text);
  transition: background-color 0.15s ease;
}

.vq-datepicker-trigger__btn:hover {
  background: var(--vq-dp-hover-bg);
}

.vq-datepicker-trigger__btn:focus {
  outline: 2px solid var(--vq-dp-today-border);
  outline-offset: -2px;
}

.vq-datepicker-trigger__btn svg {
  width: 18px;
  height: 18px;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 768px) {
  .vq-datepicker--popup {
    position: absolute;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    box-shadow: none;
  }
}

@media (max-width: 360px) {
  .vq-datepicker {
    width: 100%;
  }

  .vq-datepicker__duration-btn {
    font-size: var(--vq-dp-font-size-tiny);
    padding: 6px 6px;
    min-width: 60px;
  }

  .vq-datepicker__day {
    font-size: 13px;
    min-height: 36px;
  }

  .vq-datepicker__nav {
    padding: 4px 8px;
  }
}

/* For very small screens, stack duration buttons */
@media (max-width: 300px) {
  .vq-datepicker__duration-options {
    flex-direction: column;
  }

  .vq-datepicker__duration-btn {
    min-width: 100%;
  }
}

/* =============================================================================
   Print styles
   ============================================================================= */

@media print {
  .vq-datepicker--popup {
    display: none !important;
  }
}

/* =============================================================================
   Reduced motion
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  .vq-datepicker__nav,
  .vq-datepicker__duration-btn,
  .vq-datepicker__day,
  .vq-datepicker-trigger__btn {
    transition: none;
  }
}
/* Sticky Flash */
.sticky-flash {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 1px solid #000;
  padding: 0.75rem 1rem;
  z-index: 300;
  width: min(600px, calc(100% - 2rem));
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sticky-flash .flash-close {
  position: absolute;
  top: 4px;
  right: 6px;
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.sticky-flash .flash-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sticky-flash .flash-message {
  margin: 0.25rem 0;
}

.sticky-flash .date-comparison {
  display: flex;
  gap: 1rem;
  margin: 0.5rem 0;
}

.sticky-flash .date-comparison > div {
  border: 1px solid #e0e0e0;
  padding: 0.5rem;
}

/* Toast containers — handle positioning, toasts handle layout */
#probador-toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, calc(100% - 2rem));
  z-index: 300;
  container-type: inline-size;
}

#item-preview-toast {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  container-type: inline-size;
}

/* Probador Toast — layout only, no positioning */
.probador-toast {
  background: rgba(248, 248, 248, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.probador-toast .toast-message {
  flex: 1;
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.78);
}

.probador-toast .toast-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.probador-toast .toast-link {
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.72);
  text-decoration: none;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.probador-toast .toast-link:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}

.probador-toast .toast-close {
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  padding: 0.05rem 0.2rem;
  line-height: 1;
  transition: color 0.18s ease;
}

.probador-toast .toast-close:hover {
  color: rgba(0, 0, 0, 0.76);
}

/* Wide container: floating pill style */
@container (min-width: 461px) {
  .probador-toast {
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(19, 15, 10, 0.12);
    backdrop-filter: blur(10px);
    animation: toast-in-up 0.28s ease-out;
  }
}

/* Narrow container: overlay confirmation card */
@container (max-width: 460px) {
  .probador-toast {
    border-radius: 0 0 1.5rem 1.5rem;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.25rem 1.25rem;
    animation: toast-fade 0.18s ease-out;
  }

  .probador-toast .toast-message {
    font-size: 0.88rem;
    flex: 1;
  }

  /* message + close in a row */
  .probador-toast {
    display: grid;
    grid-template-rows: auto auto;
  }

  .probador-toast .toast-actions {
    display: contents;
  }

  .probador-toast .toast-message,
  .probador-toast .toast-close {
    grid-row: 1;
  }

  .probador-toast .toast-message {
    grid-column: 1;
  }

  .probador-toast .toast-close {
    grid-column: 2;
    justify-self: end;
    align-self: center;
    font-size: 1.1rem;
  }

  .probador-toast .toast-link {
    grid-row: 2;
    grid-column: 1 / -1;
    display: block;
    text-align: center;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 999px;
    background: #000;
    color: #fff;
    transition: background 0.15s ease;
  }

  .probador-toast .toast-link:hover {
    background: #1f1f1f;
  }
}

@keyframes toast-in-up {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in-inline {
  from { opacity: 0; transform: translateY(0.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Customer Navbar */
.customer-nav-shell {
  position: sticky;
  top: 0;
  z-index: 200;
}

.customer-navbar {
  --navbar-inner-h: 2.35rem;
  --navbar-gap: 0.85rem;
  --navbar-content-px: 1.5rem;
  --navbar-content-py: 0.65rem;
  --navbar-border-color: rgba(14, 12, 10, 0.14);
  --menu-paper: #ffffff;
  --menu-ink: #000000;
  position: relative;
  z-index: 210;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--navbar-border-color);
  backdrop-filter: blur(14px);
}

body.menu-open,
body.search-open {
  overflow: hidden;
}

.customer-navbar .navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--navbar-content-py) var(--navbar-content-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--navbar-gap);
  height: calc(var(--navbar-inner-h) + var(--navbar-content-py) * 2);
}

.navbar-slot {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-width: 0;
  height: var(--navbar-inner-h);
  flex: 1;
}

.slot-item {
  position: relative;
  white-space: nowrap;
  will-change: transform, opacity;
}

.slot-item.is-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.customer-navbar .navbar-brand {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
  line-height: var(--navbar-inner-h);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.customer-navbar .navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--navbar-gap);
  flex-shrink: 0;
}

.menu-toggle {
  position: relative;
  width: 3.25rem;
  height: var(--navbar-inner-h);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--menu-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.menu-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.menu-toggle-badge {
  position: absolute;
  top: -0.38rem;
  right: -0.28rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.64rem;
  line-height: 1.2rem;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.menu-toggle-lines {
  width: 1.1rem;
  height: 0.9rem;
  display: grid;
  align-items: center;
}

.menu-toggle-lines span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
}

.menu-toggle-lines span:nth-child(2) {
  width: 78%;
  justify-self: end;
}

.menu-toggle-lines span:nth-child(3) {
  width: 62%;
  justify-self: end;
}

.customer-nav-shell.is-menu-open .menu-toggle-lines span:nth-child(1) {
  transform: translateY(0.28rem) rotate(43deg);
}

.customer-nav-shell.is-menu-open .menu-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.customer-nav-shell.is-menu-open .menu-toggle-lines span:nth-child(3) {
  width: 100%;
  transform: translateY(-0.28rem) rotate(-43deg);
}

.site-menu-shell {
  position: fixed;
  inset: 0;
  z-index: 350;
}

.site-menu-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}

.site-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100%;
  background: var(--menu-paper);
  color: var(--menu-ink);
  padding: 1.25rem 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: -22px 0 48px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.26s ease;
  outline: none;
}

.customer-nav-shell.is-menu-open .site-menu-panel {
  transform: translateX(0);
}

.site-menu-header,
.site-menu-section,
.site-menu-link,
.site-menu-contact-link,
.site-menu-probador-link {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.customer-nav-shell.is-menu-open .site-menu-header,
.customer-nav-shell.is-menu-open .site-menu-section,
.customer-nav-shell.is-menu-open .site-menu-link,
.customer-nav-shell.is-menu-open .site-menu-contact-link,
.customer-nav-shell.is-menu-open .site-menu-probador-link {
  opacity: 1;
  transform: translateY(0);
}

.site-menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.site-menu-kicker,
.site-menu-label {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

.site-menu-title {
  margin-top: 0.3rem;
  font-family: 'Cinzel', serif;
  font-size: 1.55rem;
  line-height: 1;
}

.site-menu-close {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
}

.site-menu-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.95rem;
  height: 1.5px;
  background: currentColor;
}

.site-menu-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-menu-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.site-menu-body {
  display: grid;
  gap: 0.9rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.site-menu-section {
  padding: 1.1rem;
  border-radius: 1.2rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.site-menu-probador {
  background: #fff;
}

.site-menu-probador-copy > p:not(.site-menu-label) {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: rgba(0, 0, 0, 0.68);
  font-size: 0.95rem;
}

.site-menu-probador-help {
  margin-top: 0.75rem;
  color: rgba(0, 0, 0, 0.68);
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-menu-probador-link {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #000;
  font-size: 0.98rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.site-menu-arrow {
  font-size: 1.05rem;
}

.site-menu-links,
.site-menu-contact {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.site-menu-appointment-card {
  margin-top: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.site-menu-appointment-title {
  margin: 0.3rem 0 0.55rem;
}

.site-menu-appointment-help,
.site-menu-appointment-kicker {
  margin: 0;
  color: rgba(0, 0, 0, 0.7);
}

.site-menu-appointment-help {
  margin-top: 0.35rem;
  margin-bottom: 0.95rem;
}

.site-menu-appointment-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-menu-appointment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-menu-appointment-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-menu-appointment-action.is-primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.site-menu-link,
.site-menu-contact-link {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
}

.site-menu-link {
  display: block;
}

.site-menu-link span {
  display: block;
}

.site-menu-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(0, 0, 0, 0.7);
}

.site-menu-contact-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
}

.navbar-slot .catalog-controls {
  display: flex;
  align-items: center;
  gap: var(--navbar-gap);
}

.navbar-slot .catalog-tabs {
  flex-wrap: nowrap;
  height: var(--navbar-inner-h);
}

.navbar-slot .catalog-tab {
  min-height: var(--navbar-inner-h);
  padding: 0 0.7rem;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.navbar-slot .catalog-size-form {
  margin: 0;
}

.navbar-slot .filter-group label {
  display: none;
}

.navbar-slot .filter-group .form-control {
  height: var(--navbar-inner-h);
  font-size: 0.9rem;
  padding: 0 0.5rem;
  box-sizing: border-box;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--field-radius);
  background: rgba(255, 255, 255, 0.95);
}

/* --- Navbar blog teaser (desktop) --- */
.navbar-blog-teaser {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  color: #000;
  padding-left: 1.1rem;
  margin-left: 0.6rem;
  border-left: 1px solid rgba(0, 0, 0, 0.10);
  max-width: 300px;
  min-width: 0;
  height: var(--navbar-inner-h);
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.navbar-blog-teaser:hover {
  opacity: 0.6;
}

.navbar-blog-kicker {
  font-size: 0.52rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.42);
  line-height: 1;
  margin-bottom: 0.18rem;
}

.navbar-blog-title {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-blog-excerpt {
  font-size: 0.62rem;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.08rem;
  letter-spacing: 0.01em;
}

/* --- Menu blog card --- */
.site-menu-blog {
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.site-menu-blog-title {
  margin-top: 0.45rem;
  font-family: 'Cinzel', serif;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.site-menu-blog-excerpt {
  margin-top: 0.3rem;
  color: rgba(0, 0, 0, 0.62);
  font-size: 0.92rem;
  line-height: 1.5;
}

.site-menu-blog-link {
  margin-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #000;
  font-size: 0.98rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.navbar-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--navbar-inner-h);
  height: var(--navbar-inner-h);
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.navbar-search-trigger:hover,
.navbar-search-trigger:focus-visible {
  border-color: rgba(0, 0, 0, 0.32);
  outline: none;
  transform: translateY(-1px);
}

.navbar-search-trigger:active {
  background: #000;
  color: #fff;
  border-color: #000;
  transform: none;
}

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
}

.search-modal[hidden] {
  display: none;
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px) saturate(0.9);
  -webkit-backdrop-filter: blur(14px) saturate(0.9);
  animation: search-fade 0.22s ease forwards;
}

@keyframes search-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.search-modal-panel {
  position: relative;
  width: min(48rem, 100%);
  height: 100%;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: search-rise 0.26s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes search-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-modal-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid #000;
}

.search-modal-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0;
  border: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #000;
  font: 400 clamp(1.5rem, 4vw, 2.25rem)/1.1 "Cinzel", serif;
  letter-spacing: 0.04em;
}

.search-modal-form input[type="search"]::placeholder {
  color: rgba(0, 0, 0, 0.35);
  font-style: italic;
}

.search-modal-form input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search-modal-close {
  flex: 0 0 auto;
  padding: 0 0.25rem;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font: 300 1.8rem/1 "Cinzel", serif;
  transition: transform 0.16s ease;
}

.search-modal-close:hover,
.search-modal-close:focus-visible {
  transform: rotate(90deg);
  outline: none;
}

.search-modal-results {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  grid-auto-rows: max-content;
  align-content: start;
  gap: 1rem;
  padding-bottom: 2rem;
  scrollbar-width: thin;
}

.search-modal-result {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
  color: #000;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.68);
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.search-modal-result:hover,
.search-modal-result:focus-visible,
.search-modal-result.is-active {
  border-color: #000;
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  outline: none;
}

.search-modal-result img,
.search-modal-result-image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f3f3f1;
}

.search-modal-result-image-placeholder {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.03), rgba(255, 255, 255, 0.7)),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.04) 8px,
      transparent 8px,
      transparent 16px
    );
}

.search-modal-result-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0 0.15rem 0.25rem;
}

.search-modal-result-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.search-modal-result-price {
  white-space: nowrap;
  font-size: 0.78rem;
  line-height: 1;
  color: rgba(0, 0, 0, 0.68);
}

.search-modal-hint,
.search-modal-empty {
  grid-column: 1 / -1;
  padding: 2rem 0;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

@media (prefers-reduced-motion: reduce) {
  .slot-item,
  .menu-toggle,
  .navbar-search-trigger,
  .navbar-blog-teaser,
  .menu-toggle-lines span,
  .site-menu-panel,
  .site-menu-header,
  .site-menu-section,
  .site-menu-link,
  .site-menu-appointment-card,
  .site-menu-contact-link,
  .site-menu-probador-link,
  .search-modal-backdrop,
  .search-modal-panel,
  .search-modal-result,
  .search-modal-close {
    transition: none !important;
    animation: none !important;
  }
}

@media (min-width: 891px) {
  .navbar-blog-teaser {
    display: flex;
  }
}

@media (max-width: 768px) {
  .customer-navbar {
    --navbar-inner-h: 2.2rem;
    --navbar-content-px: 0.85rem;
    --navbar-content-py: 0.55rem;
    --navbar-gap: 0.5rem;
  }

  .customer-navbar .navbar-brand {
    font-size: 0.84rem;
    letter-spacing: 0.05em;
  }

  .navbar-slot .catalog-controls {
    display: block;
    width: min(12rem, 100%);
  }

  .navbar-slot .catalog-tabs {
    display: none;
  }

  .navbar-slot .catalog-size-form {
    display: none;
  }

  .navbar-slot .catalog-filter-trigger {
    display: flex;
    width: 100%;
    height: var(--navbar-inner-h);
    min-height: var(--navbar-inner-h);
    padding: 0 0.65rem;
  }

  .navbar-slot .catalog-filter-trigger-kicker {
    display: none;
  }

  .navbar-slot .catalog-filter-trigger-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .site-menu-panel {
    width: min(100vw, 420px);
    padding: 1rem 0.9rem 1.15rem;
  }

  .site-menu-section {
    padding: 1rem;
    border-radius: 1rem;
  }

  .site-menu-link {
    font-size: 1rem;
  }

  .site-menu-blog-title {
    font-size: 1rem;
  }

  .search-modal-panel {
    padding: 1rem;
    gap: 0.9rem;
  }

  .search-modal-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }
}
.media-video-shell {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f5f5f5;
}

.media-video-poster,
.media-video-element {
  width: 100%;
  height: 100%;
  display: block;
}

.media-video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.media-video-play {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  z-index: 2;
  transform: translateX(-50%);
  min-height: 2.5rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.media-video-play:hover,
.media-video-play:focus-visible {
  background: rgba(0, 0, 0, 0.82);
}

.media-video-element {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  object-fit: cover;
}

.media-video-shell.is-video-ready .media-video-element {
  opacity: 1;
}

.media-video-shell.is-video-ready .media-video-poster {
  opacity: 0;
  pointer-events: none;
}

.media-video-shell.is-autoplay-blocked .media-video-play {
  opacity: 1;
  pointer-events: auto;
}

.admin-video-poster {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-video-poster[hidden] {
  display: none;
}

.admin-video-poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.admin-video-poster-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  background: #fff;
  color: #000;
  border: 1px solid #d9d9d9;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.admin-video-poster-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 1.4rem;
  cursor: pointer;
}

.admin-video-poster-header {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.admin-video-poster-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}

.admin-video-poster-header h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  word-break: break-word;
}

.admin-video-poster-stage {
  aspect-ratio: 16 / 10;
  background: #050505;
  margin-bottom: 1rem;
}

.admin-video-poster-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.admin-video-poster-controls {
  display: grid;
  gap: 0.9rem;
}

.admin-video-poster-transport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.admin-video-poster-step {
  min-width: 7rem;
  min-height: 2.5rem;
  border: 1px solid #111;
  background: #fff;
  color: #000;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-video-poster-step:disabled {
  opacity: 0.4;
  cursor: default;
}

.admin-video-poster-timeline {
  display: grid;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-video-poster-timeline input[type="range"] {
  width: 100%;
  accent-color: #000;
}

.admin-video-poster-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 0.2rem;
  border-top: 1px solid #ececec;
}

.admin-video-poster-time-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

.admin-video-poster-time-value {
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
}

.admin-video-poster-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.admin-video-poster-status {
  min-height: 1.35rem;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: #555;
}

body.admin-video-poster-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .admin-video-poster {
    padding: 0.75rem;
  }

  .admin-video-poster-panel {
    padding: 1rem;
  }

  .admin-video-poster-transport {
    grid-template-columns: 1fr;
  }

  .admin-video-poster-step {
    min-width: 0;
    width: 100%;
  }

  .admin-video-poster-meta,
  .admin-video-poster-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --field-radius: 0.35rem;
  --action-radius: 999px;
}

body {
  font-family: Verdana, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #000;
  background-color: #fff;
  color-scheme: light only;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.customer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Flash Messages */
.flash-messages {
  margin: 1rem 0;
}

.flash {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid;
}

.flash.notice {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.flash.alert {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid #000;
  border-radius: var(--action-radius);
  background-color: #fff;
  color: #000;
  cursor: pointer;
  transition: all 0.15s;
}

.btn:hover {
  background-color: #000;
  color: #fff;
}

.btn-primary {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.btn-primary:hover {
  background-color: #fff;
  color: #000;
}

.btn-success {
  background-color: #28a745;
  color: #fff;
  border-color: #28a745;
}

.btn-success:hover {
  background-color: #218838;
}

.btn-danger {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #000;
  border-radius: var(--field-radius);
  background-color: #fff;
}

.form-control:focus {
  outline: none;
  border-color: #000;
}

.images-auto-save-hint {
  font-size: 0.85rem;
  color: #888;
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.form-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.form-actions-hint {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #444;
}

.form-checkbox {
  width: auto;
  margin-right: 0.5rem;
}

.help-text, small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #666;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background-color: #fff;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table th,
.table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.table th {
  font-weight: 600;
  background-color: #fff;
  border-bottom: 2px solid #000;
}

.table tbody tr:hover {
  background-color: #fafafa;
}

/* Customer Header */
.customer-header {
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border: 1px solid #000;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-editor {
  min-height: 420px;
  padding: 1rem;
  border: 1px solid #000;
  background: #fff;
}

.blog-admin-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 1rem;
}

.blog-admin-edit-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.blog-admin-edit-heading h1 {
  margin-bottom: 0.25rem;
}

.blog-admin-edit-heading {
  min-width: 0;
  flex: 1 1 auto;
}

.blog-admin-inline-title {
  position: relative;
  margin-bottom: 0.25rem;
}

.blog-admin-inline-title-display,
.blog-admin-inline-slug-display {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: text;
  text-align: left;
}

.blog-admin-inline-title-display span,
.blog-admin-inline-title-input {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}

.blog-admin-inline-title-display span {
  display: inline-block;
  border-bottom: 1px dashed transparent;
}

.blog-admin-inline-title-display:hover span {
  border-bottom-color: #bbb;
}

.blog-admin-inline-edit-icon {
  color: #888;
  font-size: 0.42rem;
  line-height: 1;
}

.blog-admin-inline-title-input {
  display: none;
  width: min(100%, 18ch);
  padding: 0;
  border: 0;
  border-bottom: 1px solid #000;
  background: transparent;
}

.blog-admin-inline-title[data-editing="true"] .blog-admin-inline-title-display {
  display: none;
}

.blog-admin-inline-title[data-editing="true"] .blog-admin-inline-title-input {
  display: block;
}

.blog-admin-slug-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #666;
  font-size: 0.95rem;
}

.blog-admin-inline-slug-display code,
.blog-admin-inline-slug-input {
  padding: 0.1rem 0.35rem;
  background: #f3f3f3;
  border: 1px solid #ddd;
}

.blog-admin-inline-slug-input {
  display: none;
  min-width: 260px;
  color: #444;
}

.blog-admin-edit-heading[data-editing-field="slug"] .blog-admin-inline-slug-display {
  display: none;
}

.blog-admin-edit-heading[data-editing-field="slug"] .blog-admin-inline-slug-input {
  display: inline-block;
}

.blog-admin-edit-heading[data-editing-field="title"] .blog-admin-inline-title-display {
  display: none;
}

.blog-admin-edit-heading[data-editing-field="title"] .blog-admin-inline-title-input {
  display: block;
}

.blog-admin-slug-help {
  position: relative;
}

.blog-admin-slug-help summary {
  list-style: none;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
}

.blog-admin-slug-help summary::-webkit-details-marker {
  display: none;
}

.blog-admin-slug-help.inline {
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.blog-admin-slug-popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: min(320px, 80vw);
  padding: 0.8rem 0.9rem;
  border: 1px solid #000;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  z-index: 20;
}

.blog-admin-slug-popover p {
  margin: 0;
  font-size: 0.9rem;
  color: #444;
}

.blog-admin-publish-toggle {
  margin-bottom: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #d9d9d9;
  background: #fafafa;
}

.blog-admin-publish-toggle-label,
.blog-admin-publish-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.1rem;
}

.blog-admin-publish-status {
  flex-shrink: 0;
  justify-content: flex-end;
  margin-bottom: 1rem;
  padding: 0.35rem 0;
}

.blog-admin-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #000;
}

.blog-admin-status-pill.is-published {
  background: #e9f6ea;
  border-color: #5e8a63;
  color: #234b28;
}

.blog-admin-status-pill.is-draft {
  background: #f3f3f3;
  border-color: #c8c8c8;
  color: #555;
}

@media (max-width: 720px) {
  .blog-admin-edit-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-admin-publish-status {
    justify-content: flex-start;
    margin-bottom: 0;
  }
}

.blog-admin-excerpt-panel {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px dashed #cfcfcf;
  background: #fafafa;
}

.blog-admin-excerpt-display p:first-child {
  margin-bottom: 0.35rem;
}

.blog-admin-hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.blog-admin-cover-upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.blog-admin-cover-add-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 1rem;
  border: 1px dashed #000;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
}

.blog-admin-cover-add-button span {
  font-weight: 600;
}

.blog-admin-cover-add-button small {
  color: #666;
  margin: 0;
}

.blog-admin-cover-current-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.blog-admin-cover-current-row p {
  margin: 0;
}

.blog-admin-text-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}

.blog-admin-table-subtext {
  margin-top: 0.2rem;
  color: #666;
  font-size: 0.9rem;
}

.blog-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.blog-admin-status-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-admin-cover-preview {
  margin: 1rem 0 1.5rem;
}

.blog-admin-meta {
  margin-bottom: 1.5rem;
}

.blog-admin-section {
  margin-bottom: 2rem;
  padding: 1.25rem;
  border: 1px solid #000;
  background: #fff;
}

.blog-admin-section-header {
  margin-bottom: 1rem;
}

.blog-admin-section-header h2 {
  margin-bottom: 0.35rem;
}

.blog-admin-section-header p,
.blog-admin-empty-note {
  color: #666;
}

.blog-admin-excerpt {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  background: #f7f7f7;
  border-left: 3px solid #000;
}

.blog-admin-ai-panel {
  margin-bottom: 1.25rem;
}

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

.blog-admin-ai-card {
  padding: 1rem;
  border: 1px solid #000;
  background: #fff;
}

.blog-admin-ai-textarea {
  min-height: 18rem;
  font-family: monospace;
  font-size: 0.92rem;
  line-height: 1.45;
}

.blog-admin-ai-instructions {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #ddd;
  background: #fafafa;
}

.blog-admin-ai-instructions p {
  margin-bottom: 0.5rem;
}

.blog-admin-ai-instructions ol {
  margin: 0;
  padding-left: 1.2rem;
}

.blog-admin-ai-instructions li + li {
  margin-top: 0.35rem;
}

.blog-admin-ai-status {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
}

.blog-admin-ai-status[data-state="error"] {
  color: #666;
}

.blog-admin-ai-status[data-state="success"] {
  color: #000;
}

.blog-index {
  padding: 2rem 1.5rem 4rem;
}

.blog-index-header,
.blog-post-header {
  max-width: 760px;
  margin: 0 auto 2rem;
}

.blog-post-breadcrumb {
  margin-bottom: 1rem;
}

.blog-post-breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(0, 0, 0, 0.62);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-post-breadcrumb-link:hover {
  color: #000;
}

.blog-post-breadcrumb-kicker {
  color: rgba(0, 0, 0, 0.38);
}

.blog-post-breadcrumb-separator {
  color: rgba(0, 0, 0, 0.26);
}

.blog-index-header p,
.blog-post-excerpt,
.blog-card-excerpt {
  color: #4b4b4b;
}

.blog-post-grid {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid #000;
}

.blog-card:first-child {
  padding-top: 0;
  border-top: 0;
}

.blog-card-image-link,
.blog-card-image,
.blog-card-image-link .media-loading-wrapper {
  display: block;
  width: 100%;
}

.blog-card-image-link .media-loading-wrapper {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
}

.blog-card-image,
.blog-card-image-link .media-loading-image,
.blog-card-image img,
.blog-post-cover img,
.blog-block-image img {
  width: 100%;
}

.blog-card-image,
.blog-card-image-link .media-loading-image,
.blog-card-image img {
  height: 100%;
  object-fit: cover;
}

.blog-post-cover .media-loading-wrapper {
  display: block;
  width: 100%;
  height: auto;
}

.blog-post-cover .media-loading-image,
.blog-post-cover img,
.blog-block-image img {
  height: auto;
}

.blog-card-body h2,
.blog-card-body h2 a {
  color: #000;
  text-decoration: none;
}

.blog-card-meta,
.blog-post-meta {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-post-page {
  padding: 2rem 1.5rem 4rem;
}

.blog-post-cover,
.blog-post-content {
  max-width: 760px;
  margin: 0 auto;
}

.blog-post-footer {
  max-width: 760px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid #000;
}

.blog-post-more-link {
  display: inline-block;
  color: #000;
  text-decoration: none;
  font-size: 0.95rem;
}

.blog-post-more-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.blog-post-cover {
  margin-bottom: 2rem;
}

.blog-post-content {
  font-size: 1.05rem;
}

.blog-block-heading,
.blog-block-paragraph,
.blog-block-image,
.blog-block-delimiter {
  margin-bottom: 1.5rem;
}

.blog-block-heading {
  line-height: 1.2;
}

.blog-block-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #4b4b4b;
}

.blog-block-delimiter {
  border: 0;
  border-top: 1px solid #000;
}

.blog-block-embed {
  margin: 1.5rem 0;
}

.blog-block-embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.blog-block-embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.blog-block-embed--instagram {
  display: flex;
  justify-content: center;
}

.blog-block-embed--instagram .instagram-media {
  margin: 0 auto !important;
  max-width: 540px;
  width: 100%;
}

.blog-align-left {
  text-align: left;
}

.blog-align-center {
  text-align: center;
}

.blog-align-right {
  text-align: right;
}

@media (max-width: 768px) {
  .blog-admin-ai-grid,
  .blog-index-header,
  .blog-post-header,
  .blog-post-content {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .blog-admin-ai-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-cover {
    margin-left: 0;
    margin-right: 0;
  }

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

  .blog-index,
  .blog-post-page {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .blog-editor {
    min-height: 320px;
  }
}

/* Blog item link (links to items inside blog posts) */
a.blog-item-link,
a.blog-album-link {
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  padding: 0.15em 0.6em;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

a.blog-item-link:hover,
a.blog-album-link:hover {
  border-color: rgba(0, 0, 0, 0.32);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.blog-block-heading a.blog-item-link,
.blog-block-heading a.blog-album-link {
  color: inherit;
  font-weight: inherit;
  border: 0;
  border-radius: 0;
  padding: 0;
  white-space: normal;
  background: transparent;
  box-shadow: none;
  transform: none;
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.blog-block-heading a.blog-item-link:hover,
.blog-block-heading a.blog-item-link:focus-visible,
.blog-block-heading a.blog-album-link:hover,
.blog-block-heading a.blog-album-link:focus-visible {
  color: inherit;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  text-decoration-thickness: 0.12em;
}

a.blog-item-link--in-probador::before {
  content: "•";
  margin-right: 0.35em;
  font-size: 0.75em;
  vertical-align: middle;
}

/* Item preview popup */
.item-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.item-preview-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

body.item-preview-open {
  overflow: hidden;
}

.item-preview-modal {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 1.5rem;
  width: min(420px, calc(100% - 2rem));
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
  transform: translateY(12px);
  transition: transform 0.22s ease;
}

.item-preview-overlay.is-visible .item-preview-modal {
  transform: translateY(0);
}

.item-preview-overlay--fullscreen .item-preview-modal {
  width: min(var(--item-preview-fullscreen-width, 1600px), calc(100% - 1.5rem));
  max-height: 96vh;
}

.item-preview-overlay--fullscreen .item-preview-body {
  max-height: 96vh;
}

.item-preview-overlay--fullscreen .item-preview-carousel {
  padding-bottom: 0;
  height: auto;
  background-color: transparent;
  display: grid;
}

.item-preview-overlay--fullscreen .item-preview-carousel .carousel-image {
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: auto;
}

.item-preview-overlay--fullscreen .item-preview-carousel .carousel-image:not(.active) {
  visibility: hidden;
}

.item-preview-overlay--fullscreen .item-preview-carousel .carousel-image img,
.item-preview-overlay--fullscreen .item-preview-carousel .carousel-image video,
.item-preview-overlay--fullscreen .item-preview-carousel .media-loading-image {
  position: static;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.item-preview-body {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow-y: auto;
}

.item-preview-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.item-preview-close:hover {
  border-color: rgba(0, 0, 0, 0.32);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-preview-carousel {
  width: 100%;
  border-radius: 1.5rem 1.5rem 0 0;
  overflow: hidden;
}

.item-preview-carousel .carousel-image img,
.item-preview-carousel .media-loading-image {
  width: 100%;
  height: auto;
  display: block;
}

.item-preview-info {
  padding: 1.1rem 1.25rem 0;
}

.item-preview-name {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.item-preview-meta {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.64);
  margin: 0;
}

.item-preview-description {
  margin-top: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.78);
}

.item-preview-description p {
  margin: 0 0 0.6rem;
}

.item-preview-description p:last-child {
  margin-bottom: 0;
}

.item-preview-body--minimal .item-preview-info {
  padding-bottom: 1.5rem;
}

.item-preview-trigger {
  display: inline-block;
  line-height: 0;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.item-preview-actions {
  padding: 0.85rem 1.25rem 0;
}

.item-preview-view-full {
  padding: 0.85rem 1.25rem 1.25rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 0.85rem;
}

.item-preview-view-full a {
  font-size: 0.88rem;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.item-preview-view-full a:hover {
  text-decoration: underline;
}

.item-preview-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

@media (max-width: 768px) {
  .item-preview-modal {
    width: calc(100% - 1.2rem);
    max-height: 90vh;
    border-radius: 1.1rem;
  }

  .item-preview-carousel {
    border-radius: 1.1rem 1.1rem 0 0;
  }

  .item-preview-overlay--fullscreen .item-preview-modal {
    width: calc(100% - 0.6rem);
    max-height: 98vh;
    border-radius: 0.6rem;
  }

  .item-preview-overlay--fullscreen .item-preview-body {
    max-height: 98vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .item-preview-overlay,
  .item-preview-modal {
    transition: none !important;
  }
}

.customer-header h1 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 2rem;
}

.customer-header h1 a {
  font-family: 'Cinzel', serif;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}

.customer-header .subtitle {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000;
  margin: 0;
}

/* Page Header — shared style for info/content pages */
.page-header {
  padding: 2.5rem 1.5rem 1.5rem;
}

.page-header h1 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.75rem;
  margin: 0;
}

.page-header .page-subtitle {
  font-size: 0.9rem;
  color: #888;
  margin-top: 0.25rem;
}

/* Page Body — content area for info pages */
.page-body {
  max-width: 800px;
  padding: 0 1.5rem 2rem;
}

.page-body h2 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.page-body p {
  margin-bottom: 0.5rem;
}

.page-list {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.page-list li {
  margin-bottom: 0.35rem;
}

ul.page-list {
  list-style: disc;
}

.page-footnote {
  font-size: 0.875rem;
  color: #888;
  margin-top: 1.5rem;
}

.table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}

/* Album Header */
.album-header {
  padding: 3rem 1.5rem 1.5rem;
}

.album-header h1 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 2rem;
  color: #000;
  margin: 0;
}

.admin-share-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: #f5f0eb;
  border: 1px dashed #c0b09a;
  border-radius: 4px;
  font-size: 0.85rem;
}

.admin-share-link .share-url {
  color: #555;
  font-family: monospace;
  user-select: all;
}

.copy-link-btn {
  border: 1px solid #999;
  background: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  white-space: nowrap;
}

.copy-link-btn:hover {
  background: #f0f0f0;
}

/* Catalog Header (heading + filters stacked) */
.catalog-header {
  padding: 0 1.5rem 1rem;
  margin: 1rem 0 0;
  border-bottom: 1px solid #e0e0e0;
}

.catalog-heading {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.75rem;
}

.catalog-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.catalog-tabs {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #000;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.catalog-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 1.05rem;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 0;
  background: transparent;
  color: #000;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}

.catalog-tab:first-child { border-left: 0; }

.catalog-tab:hover:not(.is-active) {
  background: rgba(0, 0, 0, 0.06);
}

.catalog-tab.is-active {
  background: #000;
  color: #fff;
}

.catalog-tab:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.catalog-size-form {
  margin: 0;
}

.catalog-controls.is-accessory .catalog-size-form {
  display: none;
}

.catalog-controls .filter-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.catalog-controls .filter-group label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #555;
}

.catalog-controls #size-filter {
  width: 80px;
  padding: 0.45rem 0.4rem;
  font-size: 0.9rem;
  height: 2.35rem;
  box-sizing: border-box;
}

.catalog-filter-trigger {
  display: none;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  text-align: left;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.catalog-filter-trigger::after {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-0.12rem);
  flex: 0 0 auto;
}

.catalog-filter-trigger-kicker,
.catalog-filter-kicker,
.catalog-filter-section-label {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.58);
}

.catalog-filter-trigger-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-filter-sheet[hidden] {
  display: none;
}

.catalog-filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 360;
  pointer-events: none;
}

.catalog-filter-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.catalog-filter-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: min(82svh, 34rem);
  overflow-y: auto;
  background: #fff;
  color: #000;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.24s ease;
  outline: none;
}

.catalog-filter-sheet.is-open {
  pointer-events: auto;
}

.catalog-filter-sheet.is-open .catalog-filter-backdrop {
  opacity: 1;
}

.catalog-filter-sheet.is-open .catalog-filter-panel {
  transform: translateY(0);
}

.catalog-filter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.catalog-filter-title {
  margin-top: 0.25rem;
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-filter-close {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #000;
  cursor: pointer;
  flex: 0 0 auto;
}

.catalog-filter-close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.95rem;
  height: 1px;
  background: currentColor;
}

.catalog-filter-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.catalog-filter-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.catalog-filter-section {
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.catalog-filter-section.is-hidden {
  display: none;
}

.catalog-filter-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.catalog-filter-size-choices {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.catalog-filter-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.45rem 0.35rem;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: var(--field-radius);
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-filter-choice.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.catalog-filter-choice:focus-visible,
.catalog-filter-trigger:focus-visible,
.catalog-filter-close:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

body.catalog-filter-open {
  overflow: hidden;
}

/* Info strip for important notices */
.info-strip {
  padding: 0.75rem 1rem;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  background: #fff;
}

.info-strip .info-link {
  color: #444;
  text-decoration: underline;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid #000;
  background: #fafaf8;
  margin-top: 3rem;
}

.site-footer .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}

.site-footer .footer-ornament {
  text-align: center;
  font-size: 1.1rem;
  color: #999;
  margin-bottom: 2rem;
  letter-spacing: 0.5em;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.site-footer .footer-col-heading {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #888;
  margin-bottom: 0.85rem;
  font-weight: normal;
}

.site-footer .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer .footer-link {
  color: #000;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.site-footer .footer-link:hover {
  color: #555;
}

.site-footer .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer .footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #000;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.site-footer .footer-contact-link:hover {
  color: #555;
}

.site-footer .footer-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.site-footer .footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e0e0dc;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.site-footer .footer-brand {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #555;
}

.site-footer .footer-copy {
  font-size: 0.7rem;
  color: #aaa;
}

@media (max-width: 480px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer .footer-nav,
  .site-footer .footer-contact {
    align-items: flex-start;
  }

  .site-footer .footer-col-heading {
    text-align: center;
    width: 100%;
  }
}

/* Filter Bar (legacy — filters now live in navbar) */

/* Inline single-row filters */
.filters-inline {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filters-inline form { margin: 0; }
.filters-inline .form-control { min-width: 150px; }
.return-inline { font-size: 0.875rem; color: #333; }

#start-date-group {
  min-width: 0;
  max-width: 149px;
}

#start-date-group label {
  font-size: 0.75rem;
}

#start-date-filter {
  min-width: 0;
  width: 149px;
  padding: 0.625rem 0.5rem;
  font-size: 0.875rem;
  color-scheme: light only;
  cursor: pointer;
  height: 2.5rem;
  box-sizing: border-box;
}

/* Firefox-specific fix for light mode date picker */
@-moz-document url-prefix() {
  #start-date-filter {
    color-scheme: light !important;
  }
}

#size-filter-group {
  min-width: 0;
  max-width: 70px;
}

#kind-filter-group {
  min-width: 0;
  max-width: 115px;
}

#kind-filter-group label {
  font-size: 0.75rem;
}

#kind-filter {
  min-width: 0;
  width: 115px;
  padding: 0.625rem 0.4rem;
  font-size: 0.9rem;
  height: 2.5rem;
  box-sizing: border-box;
}

#size-filter-group label {
  font-size: 0.75rem;
}

#size-filter {
  min-width: 0;
  width: 70px;
  padding: 0.625rem 0.25rem;
  text-align: center;
  font-size: 0.9rem;
  height: 2.5rem;
  box-sizing: border-box;
}

/* Date picker trigger in filter bar */
#date-picker-group {
  min-width: 0;
  max-width: 220px;
}

#date-picker-group label {
  font-size: 0.75rem;
}

.date-picker-trigger-wrapper {
  position: relative;
  display: flex;
}

.date-picker-input {
  min-width: 0;
  width: 220px;
  padding: 0.625rem 0.5rem;
  font-size: 0.9rem;
  height: 2.5rem;
  box-sizing: border-box;
  cursor: pointer;
}

.date-picker-trigger-btn {
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 1px;
  width: 32px;
  background: #fff;
  border: none;
  border-left: 1px solid #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
}

.date-picker-trigger-btn:hover {
  background: #f0f0f0;
}

/* Duration link under the date */
.duration-under-date { display: flex; align-items: center; }
.duration-link {
  font-size: 0.875rem;
  color: #444;
  text-decoration: underline;
  cursor: pointer;
  list-style: none;
  display: inline-block;
  margin-top: 0.25rem;
}
.duration-dropdown { display: none; }

/* Overlay native select on the link to open the OS menu */
.duration-control { position: relative; display: inline-block; }
.duration-control .duration-select-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
}

.filters-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.checkbox-group input {
  width: auto;
  margin: 0 0.5rem 0 0;
}

.checkbox-group label {
  margin-bottom: 0;
}

.return-date-info {
  margin-top: 1rem;
  padding: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  border-top: 1px solid #ddd;
}

/* Items List Loading & Refresh */
.items-list-wrapper {
  position: relative;
  min-height: 120px;
}

.items-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.items-list-wrapper.is-loading .items-loading-overlay,
.items-list-wrapper.htmx-request .items-loading-overlay {
  opacity: 1;
  pointer-events: auto;
}

.items-loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #ccc;
  border-top-color: #000;
  border-radius: 50%;
  animation: items-spin 0.6s linear infinite;
}

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

.items-load-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

.items-list-wrapper.is-loading .items-grid,
.items-list-wrapper.htmx-request .items-grid {
  opacity: 0.4;
  transition: opacity 0.15s ease;
}

.items-list-wrapper.is-refreshed .items-grid {
  animation: items-fade-in 0.4s ease;
}

@keyframes items-fade-in {
  from { opacity: 0.4; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Media Loading */
.media-loading-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.media-loading-image {
  display: block;
}

.media-loading-overlay,
.media-loading-spinner {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.media-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
}

.media-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -12px;
  margin-left: -12px;
  z-index: 1;
}

.media-loading-wrapper.is-loading .media-loading-overlay,
.media-loading-wrapper.is-loading .media-loading-spinner {
  opacity: 1;
}

/* LQIP blur-up placeholders */
.media-lqip {
  filter: blur(20px);
  transform: scale(1.1);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.media-lqip.is-loaded {
  filter: blur(0);
  transform: scale(1);
}

/* Hide white overlay when LQIP placeholder is visible */
.media-loading-wrapper:has(.media-lqip) .media-loading-overlay,
.media-loading-wrapper:has(.media-lqip) .media-loading-spinner {
  display: none;
}

/* Items Grid */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.item-card {
  background-color: #fff;
  overflow: hidden;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

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

.item-images {
  position: relative;
  width: 100%;
  padding-bottom: 133%;
  background-color: #fff;
  overflow: hidden;
}

.image-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.carousel-image.active {
  opacity: 1;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 0;
  padding: 0;
  padding-bottom: 3px;
  color: #333;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 1);
}

.carousel-arrow-left {
  left: 8px;
}

.carousel-arrow-right {
  right: 8px;
}

.image-carousel:hover .carousel-arrow {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s;
}

.dot.active {
  background-color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 769px) {
  .carousel-dots {
    gap: 8px;
  }

  .dot {
    width: 12px;
    height: 12px;
  }
}

.no-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
}

.item-info {
  padding: 1rem;
}

.item-info h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.item-name {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: #000;
  margin-bottom: 0.35rem;
}

.item-details {
  color: #666;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.item-details .size-label { font-weight: 500; }
.item-details .size-sep { margin: 0 0.25rem; color: #999; }
.item-details .sizes-help-link {
  font-size: 0.875rem;
  color: #444;
  text-decoration: underline;
}

.item-price {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.albums-section {
  padding: 0 1.5rem 0.75rem;
}

.albums-section h2 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.album-card {
  border: 1px solid #e6e6e6;
  background: #fff;
}

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

.album-link:hover .album-meta h3 {
  text-decoration: underline;
}

.album-cover {
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
}

.album-cover img,
.album-cover video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.album-meta {
  padding: 0.6rem 0.75rem;
}

.album-meta h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.album-meta p {
  font-size: 0.8rem;
  color: #666;
}

.album-item-picker {
  border: 1px solid #e0e0e0;
  max-height: 520px;
  overflow-y: auto;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.6rem;
}

.album-item-card {
  border: 1px solid #e6e6e6;
  background: #fff;
  cursor: pointer;
}

.album-item-thumb {
  position: relative;
  padding-bottom: 100%;
  background: #fafafa;
  overflow: hidden;
}

.album-item-thumb img,
.album-item-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-sampler-note {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid #000;
  background: #fff;
}

.video-sampler-note p {
  margin: 0.25rem 0;
}

.sampler-variant-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 3;
  padding: 0.35rem 0.65rem;
  border: 1px solid #000;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sampler-variant-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.album-cover .media-loading-wrapper,
.album-item-thumb .media-loading-wrapper {
  position: absolute;
  inset: 0;
}

.album-item-thumb .no-image {
  font-size: 0.75rem;
}

.album-item-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem;
  font-size: 0.8rem;
}

.album-item-meta input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Admin Layout */
.admin-layout {
  background-color: #fff;
  min-height: 100vh;
}

.admin-header {
  background-color: #000;
  color: #fff;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.admin-header h1 a {
  color: #fff;
  text-decoration: none;
}

.admin-header nav {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-header nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.admin-header nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.locale-switcher form {
  margin: 0;
  display: inline;
}

.locale-btn {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.locale-btn:first-of-type,
.locale-switcher form:first-of-type .locale-btn {
  border-radius: 3px 0 0 3px;
}

.locale-btn:last-of-type,
.locale-switcher form:last-of-type .locale-btn {
  border-radius: 0 3px 3px 0;
  border-left: none;
}

.locale-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-logout {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  letter-spacing: 0.05em;
}

.btn-logout:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.admin-header nav form {
  display: inline;
  margin: 0;
}

.admin-main {
  padding-bottom: 3rem;
}

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

/* Login Page */
.login-container {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #000;
}

/* Dashboard */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background-color: #fff;
  padding: 1.5rem;
  border: 1px solid #000;
}

.stat-number {
  font-size: 2rem;
  font-weight: 600;
  color: #000;
}

.dashboard-section {
  background-color: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #000;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 3px;
  text-transform: uppercase;
}

.badge-created {
  background-color: #ffc107;
  color: #000;
}

.badge-accepted {
  background-color: #fd7e14;
  color: #fff;
}

.badge-paid {
  background-color: #28a745;
  color: #fff;
}

.badge-picked_up {
  background-color: #17a2b8;
  color: #fff;
}

.badge-returned {
  background-color: #6c757d;
  color: #fff;
}

.badge-deposit_returned {
  background-color: #28a745;
  color: #fff;
}

.badge-cleaned {
  background-color: #000;
  color: #fff;
}

.badge-cancelled {
  background-color: #dc3545;
  color: #fff;
}

.badge-appointment {
  background-color: #8e44ad;
  color: #fff;
}

.badge-warning {
  background-color: #ff9800;
  color: #fff;
}

/* Detail Pages */
.detail-group {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.detail-group:last-child {
  border-bottom: none;
}

.item-details, .request-details {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

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

.image-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.image-item img,
.image-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.image-item video:fullscreen,
.image-item video:-webkit-full-screen {
  object-fit: contain;
}

.item-thumbnail {
  max-width: 90px;
  height: auto;
  display: block;
}

.no-image-placeholder {
  color: #999;
  font-size: 1.5rem;
}

/* Rental Request Pages */
.request-page, .success-page {
  max-width: 600px;
  margin: 0 auto;
}

.rental-summary {
  -padding: 1.5rem;
  margin-bottom: 2rem;
}

.summary-image {
  margin-bottom: 1rem;
}

.summary-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.summary-details p {
  margin-bottom: 0.5rem;
}

.summary-details .price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  margin-top: 1rem;
}

.success-page {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.success-page h1 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.75rem;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #000;
}

.success-message {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 2rem;
}

.request-summary {
  background-color: #fafaf8;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
  border: 1px solid #e0e0e0;
}

.request-summary h2 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.request-summary h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.next-steps {
  text-align: left;
  background-color: #fff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #000;
}

.next-steps ol {
  margin-left: 1.5rem;
}

.next-steps li {
  margin-bottom: 0.5rem;
}

/* Filters and Status */
.filters {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filters .btn.active {
  background-color: #000;
  color: #fff;
}

/* Stale requests */
tr.stale {
  background-color: #fff3cd;
}

/* Error Messages */
.error-messages {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.error-messages h3 {
  margin-bottom: 0.5rem;
}

.error-messages ul {
  margin-left: 1.5rem;
}

/* Order ID Display */
.order-id-box {
  background: #fafaf8;
  border: 1px solid #e0e0e0;
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: center;
}

.order-id-label {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: #666;
}

.order-id-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.order-id-code {
  font-size: 1.75rem;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  letter-spacing: 4px;
  color: #000;
  user-select: all;
}

.btn-copy {
  background: #000;
  border: 1px solid #000;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  color: #fff;
  transition: background-color 0.15s;
}

.btn-copy:hover {
  background: #fff;
  color: #000;
}

.order-id-help {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.order-id-mono {
  font-family: 'Courier New', monospace;
  color: #444;
  background: #f0f7ff;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 2px;
  font-weight: 600;
}

.admin-item-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.admin-item-approval-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid #000;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.admin-items-index-page {
  width: 100%;
}

.admin-items-name-cell {
  min-width: 15rem;
}

.admin-items-name-stack {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.admin-items-description-preview {
  margin: 0;
  max-width: 28rem;
  color: #555;
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.admin-items-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.admin-items-actions form {
  margin: 0;
}

@media (min-width: 1280px) {
  .admin-items-index-page {
    width: min(1600px, calc(100vw - 2rem));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* Item Detail Page */
.item-detail-page {
  padding: 1.5rem 1.5rem 2rem;
}

.item-detail-back {
  margin-bottom: 1rem;
}

.back-link {
  color: #444;
  text-decoration: underline;
  font-size: 0.875rem;
}

.item-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.item-detail-images {
  position: relative;
}

.detail-image-carousel {
  position: relative;
  width: 100%;
  padding-bottom: 133%;
  background-color: #f5f5f5;
  overflow: hidden;
}

.detail-image-carousel .carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.detail-image-carousel .carousel-image.active {
  opacity: 1;
}

.detail-image-carousel .carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-image-carousel .carousel-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-image-carousel .carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.detail-image-carousel .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.2s;
}

.detail-image-carousel .dot.active {
  background-color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 769px) {
  .detail-image-carousel .carousel-dots {
    gap: 10px;
  }

  .detail-image-carousel .dot {
    width: 14px;
    height: 14px;
  }
}

.no-image-detail {
  width: 100%;
  padding-bottom: 133%;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.accessories-note {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin: 0.75rem 0 0;
  padding: 0 1rem;
}

.item-detail-name {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: #000;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.item-detail-info {
  padding-top: 1rem;
}

.item-detail-type {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.item-detail-type .size-label {
  font-weight: 500;
}

.item-detail-prices {
  margin-bottom: 1.5rem;
}

.item-detail-prices h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #000;
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
}

.prices-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.prices-table .price-value {
  text-align: right;
  font-weight: 600;
  font-size: 1.125rem;
}

.item-detail-price {
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.item-detail-price .price-value {
  font-family: 'Cinzel', serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1a1a;
}

.item-detail-description {
  margin: 1.5rem 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  color: #000;
  line-height: 1.7;
}

.item-detail-description p {
  margin: 0 0 0.8rem;
}

.item-detail-description p:last-child {
  margin-bottom: 0;
}

.item-detail-actions {
  margin-top: 2rem;
}

.item-detail-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.35rem;
}

.included-accessories-panel {
  margin-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.25rem 0;
}

.included-accessories-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.included-accessories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.included-accessory-item {
  padding: 0.75rem 0;
  border-top: 1px solid #f0f0f0;
}

.included-accessory-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.included-accessory-link {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.included-accessory-link:hover .included-accessory-media,
.included-accessory-link:focus-visible .included-accessory-media {
  opacity: 0.85;
}

.included-accessory-media {
  transition: opacity 150ms ease;
}

.included-accessory-media img,
.included-accessory-media .no-image {
  border-radius: 6px;
}

.included-accessory-media img {
  display: block;
  width: 100%;
  height: auto;
}

.included-accessory-media {
  width: 72px;
}

.included-accessory-media .no-image {
  min-height: 96px;
  border: 1px solid #e5e5e5;
}

.included-accessory-copy {
  display: grid;
  gap: 0.2rem;
}

.included-accessory-copy span {
  color: #666;
}

.included-accessory-status span {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
}

.probador-action-button,
.probador-state-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.9rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--action-radius);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.probador-action-button {
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
}

.probador-action-button:hover {
  background: #1f1f1f;
  border-color: #1f1f1f;
  transform: translateY(-1px);
}

.probador-state-indicator {
  border: 1px solid #d9d9d9;
  background: #f7f7f7;
  color: #555;
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.probador-button-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.htmx-request [data-probador-button] .probador-button-spinner,
[data-probador-button].htmx-request .probador-button-spinner {
  opacity: 1;
  animation: probador-button-spin 0.7s linear infinite;
}

.htmx-request [data-probador-button] .probador-button-label,
[data-probador-button].htmx-request .probador-button-label {
  opacity: 0.72;
}

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

@media (prefers-reduced-motion: reduce) {
  .probador-action-button,
  .probador-state-indicator {
    transition: none !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .customer-container {
    padding: 0;
  }

  .customer-header {
    padding: 2rem 1rem 1rem;
    text-align: center;
    flex-direction: column;
    align-items: center;
  }

  .page-header {
    padding: 2rem 1rem 1rem;
  }

  .page-body {
    padding: 0 1rem 2rem;
  }


  .items-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .albums-section {
    padding: 0 1rem 0.75rem;
  }

  .albums-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .album-card {
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid #e0e0e0;
  }

  .album-card:last-child {
    border-bottom: none;
  }

  .album-item-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .item-card {
    border-bottom: 1px solid #e0e0e0;
  }

  .item-card:last-child {
    border-bottom: none;
  }

  .item-images {
    padding-bottom: 0;
  }

  .image-carousel {
    position: relative;
    height: auto;
  }

  .image-carousel .carousel-image {
    height: auto;
  }

  .image-carousel .carousel-image.active {
    position: relative;
  }

  .image-carousel .carousel-image img,
  .image-carousel .carousel-image video {
    height: auto;
    object-fit: contain;
  }

  .image-carousel .media-video-shell {
    height: auto;
  }

  .image-carousel .media-video-poster {
    position: static;
  }

  .item-info {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .admin-layout .item-details,
  .admin-layout .request-details {
    font-size: 1rem;
  }

  .admin-layout .detail-group {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .images-grid,
  .current-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .catalog-controls {
    display: block;
  }

  .catalog-filter-trigger {
    display: flex;
  }

  .catalog-controls > .catalog-tabs {
    display: none;
  }

  .catalog-controls > .catalog-size-form {
    display: none;
  }

  .catalog-filter-panel {
    padding: 1rem 0.85rem calc(1rem + env(safe-area-inset-bottom));
  }

  .catalog-filter-size-choices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Item Detail Mobile */
  .item-detail-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .item-detail-page {
    padding: 0 0 2rem;
  }

  .item-detail-info {
    padding: 0 1rem;
  }

  .included-accessories-header,
  .included-accessory-link {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .images-grid,
  .current-images {
    grid-template-columns: 1fr;
  }
}

/* WhatsApp CTA Button */
.whatsapp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  padding: 18px 40px;
  background-color: #25D366;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 60px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.whatsapp-cta-btn:hover {
  background-color: #1da851;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
  transform: translateY(-1px);
}

.whatsapp-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}
