/* 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: stretch; /* photo column matches the details column height */
}
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }

.photo-col {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}
.detail .photo-wrap {
  cursor: zoom-in;
  flex: 1;
  min-height: 0;
  position: relative; /* image is anchored inside, so it can't stretch the row */
}
.detail .photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;   /* exactly as tall as the details column on the right */
  object-fit: cover; /* picture fills the box; edges trim if it doesn't fit */
  border: 1px solid var(--line);
}
.detail .photo-hint {
  position: absolute; /* sits below the aligned photo box */
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}
@media (max-width: 900px) {
  .detail { align-items: start; }
  .detail .photo-wrap { flex: none; }
  .detail .photo-wrap img { height: auto; aspect-ratio: 15 / 8; }
  .detail .photo-hint { position: static; margin-top: 10px; }
}

.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;
  align-items: center;
  min-height: calc(100vh - 100px);
}
.photo-page .stage img {
  max-width: 100%;
  max-height: calc(100vh - 100px); /* fits the screen, keeps proportions */
  width: auto;
  height: auto;
  object-fit: contain;
  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;
}

/* ---------- Wishlist ---------- */
.wl-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.wl-link:hover { color: var(--accent); }
.wl-link svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.wl-link .wl-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Heart on the detail-page photo */
.detail .photo-wrap .heart-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(240, 238, 234, 0.92);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease;
}
.detail .photo-wrap .heart-btn:hover { background: #fff; }
.heart-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  transition: fill 0.15s ease, stroke 0.15s ease;
}
.heart-btn.active svg { fill: #c0392b; stroke: #c0392b; }
.heart-tip {
  position: absolute;
  right: 54px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  white-space: nowrap;
  display: none;
}
.heart-btn:hover .heart-tip { display: block; }

/* Wishlist page */
.wl-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}
.wl-page h1 {
  font-size: 30px;
  font-weight: 600;
  text-align: center;
}
.wl-page .sub {
  margin-top: 6px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}
.wl-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.wl-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 14px;
}
.wl-item .photo {
  width: 150px;
  height: 94px;
  overflow: hidden;
  background: var(--bg-soft);
}
.wl-item .photo img { width: 100%; height: 100%; object-fit: cover; }
.wl-item .name { font-size: 17px; font-weight: 600; }
.wl-item .meta { margin-top: 6px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.wl-remove {
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 9px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.wl-remove:hover { color: #c0392b; border-color: #c0392b; }
.wl-empty {
  margin-top: 48px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}
.wl-send {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}
.wl-send a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}
.wl-send a:hover { background: #000; }
.wl-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (max-width: 620px) {
  .wl-item { grid-template-columns: 110px 1fr; }
  .wl-item .photo { width: 110px; height: 70px; }
  .wl-remove { grid-column: 2; justify-self: start; }
}
