/* Appily Twelve — Lot Atlas shop */
.page-lot-atlas {
  --la-ink: #17140f;
  --la-forest: #12382c;
  --la-leaf: #2f6b4f;
  --la-clay: #b85a32;
  --la-ochre: #d9a441;
  --la-paper: #f4efe4;
  --la-cream: #fbf7ef;
  --la-display: 'Syne', Georgia, sans-serif;
  --la-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --la-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --la-line: rgba(23, 20, 15, 0.12);
}

.page-lot-atlas .page-main {
  background:
    radial-gradient(900px 340px at 100% 0%, rgba(184, 90, 50, 0.09), transparent 55%),
    radial-gradient(700px 280px at 0% 45%, rgba(47, 107, 79, 0.1), transparent 50%),
    linear-gradient(180deg, var(--la-cream), var(--la-paper) 40%, #efe7d8 100%);
  font-family: var(--la-body);
  color: var(--la-ink);
  overflow-x: clip;
}

.page-lot-atlas .la-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--la-ochre);
}

.page-lot-atlas .la-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 3px;
  background: var(--la-forest);
  color: #fbf7ef;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  border: 0;
  transition: transform 0.3s var(--la-ease), background 0.2s ease;
}

.page-lot-atlas .la-btn:hover {
  transform: translateY(-2px);
  background: var(--la-leaf);
}

/* Hero */
.page-lot-atlas .la-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(1.75rem, 4vw, 2.4rem);
  color: #fbf7ef;
  overflow: hidden;
}

.page-lot-atlas .la-hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(130deg, #12382c 0%, #1a4a39 46%, #2a2218 100%),
    repeating-linear-gradient(
      -14deg,
      transparent 0 40px,
      rgba(217, 164, 65, 0.05) 40px 41px
    );
}

.page-lot-atlas .la-hero-wash::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(217, 164, 65, 0.5), transparent);
}

.page-lot-atlas .la-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr auto;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: end;
  animation: laRise 0.75s var(--la-ease) both;
}

.page-lot-atlas .la-hero-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--la-display);
  font-size: clamp(1.9rem, 4.6vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: #fff;
  max-width: 14ch;
}

.page-lot-atlas .la-lede {
  margin: 0;
  max-width: 46ch;
  color: rgba(251, 247, 239, 0.78);
  font-size: 0.96rem;
  line-height: 1.55;
}

.page-lot-atlas .la-hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 120px;
  padding: 1.1rem 1.25rem;
  background: rgba(251, 247, 239, 0.08);
  border: 1px solid rgba(251, 247, 239, 0.16);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  animation: laRise 0.75s var(--la-ease) 0.1s both;
}

.page-lot-atlas .la-hero-stat strong {
  font-family: var(--la-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--la-ochre);
  line-height: 1;
}

.page-lot-atlas .la-hero-stat span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 247, 239, 0.55);
}

/* Desk split */
.page-lot-atlas .la-desk {
  padding: clamp(1.35rem, 3.5vw, 2.25rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.page-lot-atlas .la-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.45fr);
  gap: clamp(1.15rem, 3vw, 1.85rem);
  align-items: start;
}

/* Spine */
.page-lot-atlas .la-spine {
  position: sticky;
  top: 1rem;
  padding: 1.1rem 1rem 1.2rem;
  background: linear-gradient(165deg, #1a4a39 0%, var(--la-forest) 55%, #0e2a20 100%);
  color: #fbf7ef;
  border-radius: 6px;
  box-shadow: 0 18px 40px -24px rgba(18, 56, 44, 0.7);
  animation: laRise 0.7s var(--la-ease) 0.06s both;
}

.page-lot-atlas .la-search {
  display: flex;
  margin-bottom: 1.1rem;
  background: rgba(251, 247, 239, 0.08);
  border: 1px solid rgba(251, 247, 239, 0.18);
  border-radius: 3px;
  overflow: hidden;
}

.page-lot-atlas .la-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0.7rem 0.8rem;
  color: #fbf7ef;
  font: inherit;
  font-size: 0.9rem;
}

.page-lot-atlas .la-search input::placeholder {
  color: rgba(251, 247, 239, 0.45);
}

.page-lot-atlas .la-search button {
  border: 0;
  background: var(--la-ochre);
  color: #1a140c;
  padding: 0 0.95rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.page-lot-atlas .la-spine-title {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--la-ochre);
}

.page-lot-atlas .la-collections {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: min(62vh, 520px);
  overflow-y: auto;
}

.page-lot-atlas .la-col {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem;
  border-radius: 4px;
  text-decoration: none;
  color: #fbf7ef;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.3s var(--la-ease);
  animation: laSlide 0.5s var(--la-ease) both;
  animation-delay: calc(0.03s * var(--la-i, 0));
}

.page-lot-atlas .la-col:hover {
  background: rgba(251, 247, 239, 0.08);
  transform: translateX(3px);
}

.page-lot-atlas .la-col.is-active {
  background: rgba(217, 164, 65, 0.16);
  border-color: rgba(217, 164, 65, 0.4);
}

.page-lot-atlas .la-col-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 247, 239, 0.25);
  font-family: var(--la-display);
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(251, 247, 239, 0.65);
}

.page-lot-atlas .la-col.is-active .la-col-num {
  background: var(--la-ochre);
  border-color: var(--la-ochre);
  color: #1a140c;
}

.page-lot-atlas .la-col-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.page-lot-atlas .la-col-copy strong {
  font-family: var(--la-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-lot-atlas .la-col-copy small {
  font-size: 0.72rem;
  color: rgba(251, 247, 239, 0.5);
}

/* Board */
.page-lot-atlas .la-board {
  min-width: 0;
  animation: laRise 0.75s var(--la-ease) 0.1s both;
}

.page-lot-atlas .la-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid var(--la-line);
}

.page-lot-atlas .la-board-status {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(23, 20, 15, 0.62);
}

.page-lot-atlas .la-board-status strong {
  color: var(--la-forest);
}

.page-lot-atlas .la-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-lot-atlas .la-clear {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--la-clay);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(184, 90, 50, 0.3);
}

.page-lot-atlas .la-clear:hover {
  border-color: var(--la-clay);
}

/* Lot tickets */
.page-lot-atlas .la-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.page-lot-atlas .la-lot {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  background: var(--la-cream);
  border: 1.5px solid var(--la-line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.35s var(--la-ease), border-color 0.25s ease, box-shadow 0.35s ease;
  animation: laRise 0.6s var(--la-ease) both;
  animation-delay: calc(0.04s * var(--la-i, 0));
}

.page-lot-atlas .la-lot:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 56, 44, 0.28);
  box-shadow: 0 16px 36px -24px rgba(18, 56, 44, 0.5);
}

.page-lot-atlas .la-lot-index {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--la-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(23, 20, 15, 0.35);
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 6px,
      rgba(23, 20, 15, 0.06) 6px 7px
    );
  border-right: 1.5px dashed rgba(23, 20, 15, 0.14);
}

.page-lot-atlas .la-lot > :not(.la-lot-index) {
  grid-column: 2;
}

.page-lot-atlas .la-lot-media {
  display: block;
  position: relative;
  aspect-ratio: 1.15 / 1;
  background: #e8e0d2;
  overflow: hidden;
}

.page-lot-atlas .la-lot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--la-ease);
}

.page-lot-atlas .la-lot:hover .la-lot-media img {
  transform: scale(1.05);
}

.page-lot-atlas .la-lot-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.25rem 0.5rem;
  background: var(--la-ochre);
  color: #1a140c;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
}

.page-lot-atlas .la-lot-body {
  padding: 0.85rem 0.9rem 1rem;
}

.page-lot-atlas .la-lot-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.page-lot-atlas .la-lot-cat {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--la-clay);
}

.page-lot-atlas .la-lot-sku {
  font-size: 0.68rem;
  font-weight: 650;
  color: rgba(23, 20, 15, 0.4);
}

.page-lot-atlas .la-lot-title {
  margin: 0 0 0.3rem;
  font-family: var(--la-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-lot-atlas .la-lot-title a {
  color: inherit;
  text-decoration: none;
}

.page-lot-atlas .la-lot-title a:hover {
  color: var(--la-clay);
}

.page-lot-atlas .la-lot-variant {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: rgba(23, 20, 15, 0.55);
}

.page-lot-atlas .la-lot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.page-lot-atlas .la-lot-price {
  font-family: var(--la-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--la-forest);
}

.page-lot-atlas .la-lot-link {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--la-clay);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(184, 90, 50, 0.3);
}

.page-lot-atlas .la-lot-link:hover {
  border-color: var(--la-clay);
}

/* Empty / pager */
.page-lot-atlas .la-empty {
  text-align: center;
  padding: 2.5rem 1rem;
}

.page-lot-atlas .la-empty-stamp {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.85rem;
  border: 2px solid var(--la-clay);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--la-clay);
  transform: rotate(-8deg);
}

.page-lot-atlas .la-empty h2 {
  margin: 0 0 0.4rem;
  font-family: var(--la-display);
  font-size: 1.45rem;
  font-weight: 800;
}

.page-lot-atlas .la-empty p {
  margin: 0 0 1.15rem;
  color: rgba(23, 20, 15, 0.6);
}

.page-lot-atlas .la-pager {
  margin-top: 1.5rem;
}

.page-lot-atlas .la-pager .pagination,
.page-lot-atlas .la-pager nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}

.page-lot-atlas .la-pager a,
.page-lot-atlas .la-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.65rem;
  border: 1.5px solid var(--la-line);
  border-radius: 3px;
  text-decoration: none;
  color: var(--la-forest);
  font-weight: 700;
  background: var(--la-cream);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-lot-atlas .la-pager a:hover {
  border-color: var(--la-forest);
}

.page-lot-atlas .la-pager .is-active,
.page-lot-atlas .la-pager [aria-current="page"],
.page-lot-atlas .la-pager .current {
  background: var(--la-forest);
  border-color: var(--la-forest);
  color: #fbf7ef;
}

/* Motion */
@keyframes laRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes laSlide {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .page-lot-atlas .la-layout {
    grid-template-columns: 1fr;
  }

  .page-lot-atlas .la-spine {
    position: static;
  }

  .page-lot-atlas .la-collections {
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page-lot-atlas .la-hero-inner {
    grid-template-columns: 1fr;
  }

  .page-lot-atlas .la-grid {
    grid-template-columns: 1fr;
  }

  .page-lot-atlas .la-collections {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .page-lot-atlas .la-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-lot-atlas .la-hero-inner,
  .page-lot-atlas .la-hero-stat,
  .page-lot-atlas .la-spine,
  .page-lot-atlas .la-board,
  .page-lot-atlas .la-col,
  .page-lot-atlas .la-lot {
    animation: none !important;
  }

  .page-lot-atlas .la-btn:hover,
  .page-lot-atlas .la-col:hover,
  .page-lot-atlas .la-lot:hover,
  .page-lot-atlas .la-lot:hover .la-lot-media img {
    transform: none;
  }
}
