/* Gramil US — shared styles */
:root {
  --ink: #1c1c1c;
  --ink-soft: #55524c;
  --line: #e5e2dc;
  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --accent: #b3924f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.brand {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand span { color: var(--accent); }
.tagline {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Inventory grid ---------- */
.page-title {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 8px;
  text-align: center;
}
.page-title h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.page-title p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 15px;
}

.grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
@media (max-width: 1050px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .grid { grid-template-columns: 1fr; } }

.card {
  border: 1px solid var(--line);
  background: var(--bg);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}
.card .photo {
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: var(--bg-soft);
}
.card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .photo img { transform: scale(1.04); }
.card .info { padding: 18px 18px 20px; }
.card .name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.card .meta {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- Detail page ---------- */
.detail {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 64px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }

.detail .photo-wrap { cursor: zoom-in; }
.detail .photo-wrap img {
  width: 100%;
  border: 1px solid var(--line);
}
.detail .photo-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.detail h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 22px;
}
.detail h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table tr:nth-child(odd) { background: var(--bg-soft); }
.spec-table td { padding: 13px 16px; }
.spec-table td:first-child { color: var(--ink-soft); width: 45%; }
.spec-table td:last-child { font-weight: 500; }

.back-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.back-link:hover { text-decoration: underline; }

/* ---------- Action buttons (lot photos / video) ---------- */
.action-btns {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 20px;
  background: #efedea;
  color: #444;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.action-btn:hover { background: #e3e0da; }
.action-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Lot inventory page ---------- */
.lots-head {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}
.lots-head .kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.lots-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 600;
}
.lots-close {
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
  padding: 4px 10px;
}
.lots-close:hover { color: var(--accent); }
.lots-count {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 0;
  font-family: Georgia, serif;
  font-size: 18px;
}
.lots-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
@media (max-width: 1050px) { .lots-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .lots-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .lots-grid { grid-template-columns: 1fr; } }
.lot-card { display: block; }
.lot-card .photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.lot-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lot-card:hover .photo { box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
.lot-card .lot-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.lot-card .lot-id {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lot-card .lot-size {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  margin-top: 3px;
}
.badge-available {
  background: #e2f0e2;
  color: #2e6b34;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

/* ---------- Video page ---------- */
.photo-page .stage video {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  background: #000;
}
.video-missing {
  color: #cfccc5;
  font-size: 15px;
  text-align: center;
  padding: 80px 24px;
  line-height: 1.8;
}

/* ---------- More materials strip ---------- */
.more {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.more h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 26px;
}

/* ---------- Full-size photo page ---------- */
body.photo-page {
  background: #141414;
  min-height: 100vh;
}
.photo-page .topbar {
  position: sticky;
  top: 0;
  padding: 14px 22px;
  background: rgba(20, 20, 20, 0.92);
  color: #e8e6e1;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
}
.photo-page .topbar a { color: #d9b96a; }
.photo-page .topbar a:hover { text-decoration: underline; }
.photo-page .stage {
  padding: 24px;
  display: flex;
  justify-content: center;
}
.photo-page .stage img {
  max-width: none; /* original size, page scrolls if larger */
  cursor: zoom-out;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
