/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --shire-green:   #4a6741;
  --shire-light:   #7a9e6e;
  --earth-brown:   #6b4c2a;
  --parchment:     #f5f0e8;
  --parchment-mid: #ede5d0;
  --ink:           #2c2416;
  --muted:         #7a6e5a;
  --sold-red:      #a33b2a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--parchment);
  color: var(--ink);
  line-height: 1.6;
}

h1, h2, h3, .tagline-top, footer p {
  font-family: 'IM Fell English', serif;
}

/* === Header === */
header {
  background-color: var(--shire-green);
  background-image:
    radial-gradient(ellipse at 20% 80%, rgba(74, 103, 65, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(107, 76, 42, 0.4) 0%, transparent 60%);
  color: var(--parchment);
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  border-bottom: 4px solid var(--earth-brown);
}

.header-inner { max-width: 700px; margin: 0 auto; }

.tagline-top {
  font-style: italic;
  font-size: 0.95rem;
  color: #c8ddb8;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

header h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #f0ead8;
  text-shadow: 1px 2px 6px rgba(0,0,0,0.35);
}

.subtitle {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #b8ceaa;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === Pickup Info === */
.pickup-info {
  background-color: var(--parchment-mid);
  border-bottom: 2px solid #d4c8a8;
  padding: 2rem 1.5rem;
}

.info-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 3rem;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.info-block h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--earth-brown);
  margin-bottom: 0.4rem;
}

.info-block p {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 600;
}

.note {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* === Items Section === */
.items {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.items h2 {
  font-size: 1.9rem;
  color: var(--shire-green);
  text-align: center;
  margin-bottom: 0.4rem;
}

.items-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  letter-spacing: 0.04em;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

.item-card {
  background: #fff;
  border: 1px solid #ddd5bc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.item-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--parchment-mid);
}

.item-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.item-card:hover .item-img-wrap img {
  transform: scale(1.03);
}

.item-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.item-info h3 {
  font-family: 'IM Fell English', serif;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
}

.item-desc {
  font-size: 0.83rem;
  color: var(--muted);
}

.item-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--shire-green);
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Sold badge — add class "sold" to .item-card to activate */
.item-card.sold::after {
  content: "SOLD";
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--sold-red);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 4px;
}

.item-card.sold .item-img-wrap img {
  filter: grayscale(60%) opacity(0.7);
}

.item-card.sold .item-price {
  color: var(--muted);
  text-decoration: line-through;
}

/* === Lightbox === */
@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes img-pop {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

#lightbox.open {
  display: flex;
  animation: lightbox-in 0.18s ease;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  animation: img-pop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

#lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}

#lightbox-close:hover { opacity: 1; }

/* === Contact === */
.contact {
  background-color: var(--shire-green);
  color: var(--parchment);
  text-align: center;
  padding: 3rem 1.5rem 4rem;
}

.contact h2 {
  font-size: 1.9rem;
  color: #f0ead8;
  margin-bottom: 0.5rem;
}

.contact-sub {
  color: #b8ceaa;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 1rem 1.6rem;
  color: var(--parchment);
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  min-width: 160px;
  cursor: pointer;
  position: relative;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.contact-btn:hover {
  background: rgba(255,255,255,0.2);
}

.contact-btn.copied {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
}

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--parchment);
}

.contact-value {
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #e8f5e0;
}

.copy-confirm {
  position: absolute;
  bottom: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #c8ddb8;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
  text-transform: none;
}

.contact-btn.copied .copy-confirm { opacity: 1; }

/* === Footer === */
footer {
  background-color: var(--earth-brown);
  color: #d4c0a0;
  text-align: center;
  padding: 1.2rem 1.5rem;
  font-size: 0.88rem;
  font-style: italic;
}

/* === Responsive === */
@media (max-width: 480px) {
  .items-grid { grid-template-columns: 1fr 1fr; }
  .contact-btn { min-width: 140px; }
}

@media (max-width: 340px) {
  .items-grid { grid-template-columns: 1fr; }
}
