:root {
  --ap-blue: #0047a0;
  --ap-navy: #01326d;
  --ap-ink: #0f172a;
  --ap-muted: #526277;
  --ap-line: #dce3ec;
  --ap-ground: #f8fafb;
  --ap-wash: #eef3fa;
  --ap-white: #fff;
  color-scheme: light;
  accent-color: var(--ap-blue);
  scrollbar-color: #a5b3c5 var(--ap-ground);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--ap-ground); color: var(--ap-ink); font: 400 15px/1.6 Manrope, sans-serif; }
::selection { background: #cfe0f4; color: var(--ap-navy); }
a { color: var(--ap-blue); text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
input { caret-color: var(--ap-blue); }
:focus-visible { outline: 3px solid var(--ap-blue); outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.ap-wrap { max-width: 1240px; margin: auto; padding: 0 32px; }
.skip-link { position: absolute; top: -90px; left: 20px; z-index: 30; padding: 12px; background: var(--ap-white); }
.skip-link:focus { top: 10px; }
.ap-header { background: var(--ap-white); border-bottom: 1px solid var(--ap-line); }
.ap-nav { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 24px; }
.ap-brand { display: flex; align-items: center; gap: 12px; color: var(--ap-navy); text-decoration: none; flex-shrink: 0; }
.ap-brand img { width: 54px; height: 54px; }
.ap-brand span { font-size: 20px; font-weight: 800; line-height: 1.35; }
.ap-brand small { display: block; font-size: 12px; color: var(--ap-muted); font-weight: 500; }
.ap-nav nav { display: flex; align-items: center; gap: 28px; }
.ap-site-link { font-size: 13px; color: var(--ap-muted); text-decoration: none; }
.ap-btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 20px; background: var(--ap-blue); color: var(--ap-white); border: 1px solid var(--ap-blue); border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .18s ease-out; }
.ap-btn:hover { background: var(--ap-navy); border-color: var(--ap-navy); }
.ap-btn-secondary { background: var(--ap-white); color: var(--ap-blue); border-color: var(--ap-line); }
.ap-btn-secondary:hover { background: var(--ap-wash); color: var(--ap-navy); border-color: #b2c8e2; }
.ap-intro { display: flex; justify-content: space-between; gap: 48px; padding: 56px 0 34px; align-items: flex-end; }
.ap-intro h1 { font-size: clamp(34px, 4vw, 50px); font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.ap-lead { max-width: 570px; color: var(--ap-muted); font-size: 16px; margin-top: 18px; line-height: 1.7; }
.ap-seller-link { font-size: 13px; line-height: 1.9; color: var(--ap-muted); text-decoration: none; padding-bottom: 4px; flex-shrink: 0; }
.ap-seller-link strong { color: var(--ap-blue); font-size: 14px; }
.ap-filters { display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(160px, 1fr) minmax(170px, 1fr) auto; gap: 16px; align-items: end; background: var(--ap-white); border: 1px solid var(--ap-line); padding: 22px; border-radius: 12px; }
.ap-filters label { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ap-filters label > span { font-weight: 600; font-size: 12px; color: var(--ap-muted); }
.ap-filters input, .ap-filters select { width: 100%; border: 1px solid #b9c6d6; border-radius: 7px; padding: 10px 12px; min-height: 46px; background: var(--ap-white); color: var(--ap-ink); font-size: 13px; }
.ap-filters input::placeholder { color: #65758b; }
.ap-filters select { padding-right: 26px; text-overflow: ellipsis; }
.ap-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 36px 0 20px; }
.ap-results-head h2 { font-size: 21px; letter-spacing: -.025em; }
.ap-results-head h2 span { color: var(--ap-muted); font-weight: 500; margin-left: 8px; font-variant-numeric: tabular-nums; }
.ap-results-head > div { font-size: 12px; color: var(--ap-muted); }
.ap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.ap-lot { background: var(--ap-white); border: 1px solid var(--ap-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ap-image { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #e8edf2; }
.ap-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease-out; }
.ap-image:hover img { transform: scale(1.025); }
.ap-no-photo { display: grid; place-items: center; height: 100%; color: var(--ap-muted); }
.ap-format { position: absolute; top: 14px; left: 14px; background: var(--ap-white); color: var(--ap-navy); padding: 5px 10px; font-size: 11px; font-weight: 700; border-radius: 5px; }
.ap-format-torg { background: var(--ap-navy); color: var(--ap-white); }
.ap-lot-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.ap-location { overflow-wrap: anywhere; color: var(--ap-muted); font-size: 12px; margin-top: 7px; margin-bottom: 0; }
.ap-lot h3 { overflow-wrap: anywhere; font-size: 17px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; }
.ap-lot h3 a { text-decoration: none; color: var(--ap-ink); }
.ap-lot h3 a:hover { color: var(--ap-blue); text-decoration: underline; }
.ap-spec { color: var(--ap-muted); font-size: 13px; margin-top: 7px; overflow-wrap: anywhere; }
.ap-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin-top: 20px; font-variant-numeric: tabular-nums; }
.ap-card-price strong { font-size: 25px; font-weight: 800; letter-spacing: -.025em; }
.ap-card-price > span { font-size: 12px; color: var(--ap-muted); }
.ap-discount { color: var(--ap-blue) !important; font-size: 12px; font-weight: 700; margin-left: auto; }
.ap-quantity { font-size: 12px; margin: 3px 0 18px; color: var(--ap-muted); }
.ap-lot-bottom { border-top: 1px solid var(--ap-line); padding-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; font-size: 11px; color: var(--ap-muted); }
.ap-lot-bottom a { font-size: 12px; font-weight: 700; text-decoration: none; }
.ap-empty { padding: 60px 24px; border: 1px dashed #acbad0; text-align: center; background: var(--ap-white); border-radius: 12px; }
.ap-empty h2 { font-size: 24px; }
.ap-empty p { max-width: 540px; margin: 12px auto 24px; color: var(--ap-muted); }
.ap-how { margin: 72px 0; padding-top: 32px; border-top: 1px solid var(--ap-line); }
.ap-how h2 { font-size: 25px; letter-spacing: -.025em; }
.ap-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 0; margin: 28px 0 0; }
.ap-how h3 { font-size: 16px; font-weight: 800; }
.ap-how p { color: var(--ap-muted); font-size: 13px; margin-top: 10px; line-height: 1.8; }
.ap-footer { border-top: 1px solid var(--ap-line); background: var(--ap-white); padding: 28px 0; }
.ap-footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; }
.ap-footer-row div { display: flex; flex-wrap: wrap; gap: 24px; }
.ap-footer a { color: var(--ap-muted); text-decoration: none; }
.ap-footer a:hover { color: var(--ap-blue); text-decoration: underline; }
.ap-footer-brand { font-weight: 700; }
.ap-back { display: inline-block; margin: 30px 0 24px; font-size: 13px; text-decoration: none; }
.ap-detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); align-items: start; gap: 48px; margin-bottom: 64px; }
.ap-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-gallery a { border: 1px solid var(--ap-line); border-radius: 10px; overflow: hidden; background: var(--ap-white); aspect-ratio: 1; }
.ap-gallery a:first-child { grid-column: 1 / -1; }
.ap-gallery img { width: 100%; height: 100%; object-fit: contain; }
.ap-detail-side { position: sticky; top: 28px; }
.ap-buy-panel { background: var(--ap-white); border: 1px solid var(--ap-line); border-radius: 12px; padding: 30px; }
.ap-buy-panel h1 { font-size: clamp(26px, 2.7vw, 34px); line-height: 1.2; letter-spacing: -.035em; font-weight: 800; overflow-wrap: anywhere; }
.ap-latin { font-size: 12px; font-style: italic; color: var(--ap-muted); margin-top: 12px; }
.ap-detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 28px; font-variant-numeric: tabular-nums; }
.ap-detail-price strong { font-size: 36px; letter-spacing: -.03em; font-weight: 800; }
.ap-detail-price > span { color: var(--ap-muted); font-size: 13px; }
.ap-total { font-size: 13px; color: var(--ap-muted); margin-top: 4px; }
.ap-schedule { margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line); font-size: 13px; }
.ap-schedule strong { color: var(--ap-navy); font-weight: 700; }
.ap-schedule p { color: var(--ap-muted); font-size: 12px; margin-top: 5px; }
.ap-buy { width: 100%; }
.ap-login-note { color: var(--ap-muted); font-size: 12px; line-height: 1.75; margin-top: 16px; }
.ap-register { display: inline-block; margin-top: 12px; font-size: 12px; }
.ap-description { margin-top: 36px; }
.ap-description h2 { font-size: 25px; margin-bottom: 18px; }
.ap-description h3 { font-size: 18px; margin: 32px 0 12px; }
.ap-dl { display: grid; grid-template-columns: minmax(120px, .9fr) minmax(0, 1.4fr); gap: 12px 24px; margin: 0; font-size: 13px; }
.ap-dl dt { color: var(--ap-muted); }
.ap-dl dd { margin: 0; overflow-wrap: anywhere; }
.ap-preserve { white-space: pre-line; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; }
.ap-ended { color: var(--ap-muted); padding: 24px 0; }
@media (max-width: 1000px) {
  .ap-filters { grid-template-columns: 1fr 1fr; }
  .ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-detail { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); }
  .ap-buy-panel { padding: 22px; }
}
@media (max-width: 680px) {
  .ap-wrap { padding: 0 18px; }
  .ap-nav { min-height: 76px; gap: 12px; }
  .ap-brand { gap: 8px; }
  .ap-brand img { width: 42px; height: 42px; }
  .ap-brand span { font-size: 16px; }
  .ap-brand small { font-size: 11px; }
  .ap-site-link { display: none; }
  .ap-nav .ap-btn { min-height: 42px; padding: 9px 12px; font-size: 11px; gap: 6px; }
  .ap-intro { padding: 34px 0 26px; flex-direction: column; align-items: start; gap: 18px; }
  .ap-intro h1 { font-size: 30px; }
  .ap-lead { font-size: 14px; margin-top: 15px; }
  .ap-seller-link br { display: none; }
  .ap-seller-link strong { margin-left: 6px; font-size: 12px; }
  .ap-filters { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 14px; }
  .ap-filters .ap-search, .ap-filters .ap-btn { grid-column: 1 / -1; }
  .ap-filters label > span { font-size: 11px; }
  .ap-filters input, .ap-filters select { font-size: 16px; padding-left: 9px; }
  .ap-results-head { margin-top: 28px; align-items: start; }
  .ap-results-head h2 { font-size: 18px; }
  .ap-results-head > div { max-width: 130px; text-align: right; font-size: 11px; }
  .ap-grid { grid-template-columns: 1fr; gap: 24px; }
  .ap-lot-body { padding: 20px; }
  .ap-image { aspect-ratio: 4/3; }
  .ap-how { margin: 48px 0; }
  .ap-how ol { grid-template-columns: 1fr; gap: 24px; }
  .ap-how p { margin-top: 7px; }
  .ap-detail { display: flex; flex-direction: column; gap: 24px; margin-bottom: 44px; }
  .ap-detail-main { display: contents; }
  .ap-gallery { order: 0; width: 100%; gap: 8px; }
  .ap-detail-side { order: 1; position: static; width: 100%; }
  .ap-description { order: 2; margin-top: 0; width: 100%; }
  .ap-buy-panel h1 { font-size: 28px; }
  .ap-dl { grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); gap: 12px; }
  .ap-back { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.ap-freshness { color: var(--ap-muted); font-size: 12px; margin-top: 16px; }
.ap-freshness:empty { display: none; }
@media (max-width: 380px) {
  .ap-login-extra { display: none; }
  .ap-intro h1 { font-size: 26px; }
}

.ap-unavailable .ap-card-price, .ap-unavailable .ap-quantity { visibility: hidden; }

.ap-arrow { display: inline-block; flex: 0 0 16px; vertical-align: -3px; }
.ap-arrow-left { transform: rotate(180deg); }
.ap-arrow-up { transform: rotate(-45deg); }
