/*
 * Fans — assets/css/pages.css
 * Styles for page-templates (shop, auctions, pickup-points, vendor-register)
 * Loaded only on pages using custom page-templates, deferred via performance.php
 * Version: 1.0.0
 */

/* ── Shop intro hero ── */
.shop-hero {
  background: linear-gradient(135deg, #1A0E08 0%, #6B7F5E 100%);
  color: white;
  padding: 48px 20px;
  text-align: center;
  margin-bottom: 48px;
}

.shop-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 16px;
  line-height: 1.2;
}

.shop-hero em {
  font-style: normal;
  color: #F0D5C4;
}

.shop-hero p {
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.8;
  opacity: 0.95;
}

.shop-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Product grid (2-column mobile, 3-column desktop) ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Auction card ── */
.auction-card {
  background: white;
  border: 1px solid #E8DDD0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(26, 14, 8, 0.15);
}

.auction-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background-color: #FAF6F0;
}

.auction-card__content {
  padding: 16px;
}

.auction-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1A0E08;
}

.auction-card__countdown {
  font-size: 13px;
  color: #C4521A;
  font-weight: 700;
  margin-bottom: 12px;
}

.auction-card__price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: #C4521A;
  margin-bottom: 12px;
}

.auction-card__bid-btn {
  width: 100%;
  padding: 10px;
  background-color: #C4521A;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auction-card__bid-btn:hover {
  background-color: #A3420E;
}

/* ── Pickup points map + list ── */
.pickup-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}

@media (min-width: 768px) {
  .pickup-container {
    grid-template-columns: 2fr 1fr;
  }
}

.pickup-map {
  background-color: #FAF6F0;
  border-radius: 8px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A6055;
  font-size: 14px;
}

.pickup-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pickup-point {
  background: white;
  border: 1px solid #E8DDD0;
  border-radius: 6px;
  padding: 16px;
}

.pickup-point__name {
  font-weight: 700;
  color: #1A0E08;
  margin-bottom: 4px;
}

.pickup-point__town {
  font-size: 13px;
  color: #C8955A;
  margin-bottom: 8px;
}

.pickup-point__hours {
  font-size: 13px;
  color: #7A6055;
  line-height: 1.6;
}

/* ── Vendor register form ── */
.vendor-form {
  background: white;
  border-radius: 8px;
  padding: 32px 20px;
  max-width: 600px;
  margin: 32px auto;
  border: 1px solid #E8DDD0;
}

.vendor-form h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: #1A0E08;
}

.vendor-form p {
  margin-bottom: 24px;
  color: #7A6055;
  font-size: 15px;
}

.form-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #E8DDD0;
}

.form-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.form-section h3 {
  font-size: 16px;
  color: #1A0E08;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

/* ── Checklist ── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.checklist li {
  padding-left: 28px;
  margin-bottom: 12px;
  position: relative;
  color: #1A0E08;
  font-size: 15px;
}

.checklist li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #6B7F5E;
  font-weight: 700;
  font-size: 18px;
}

/* ── Info boxes ── */
.info-box {
  background-color: #FAF6F0;
  border-left: 4px solid #C4521A;
  padding: 16px;
  border-radius: 4px;
  margin: 20px 0;
}

.info-box p {
  margin: 0;
  color: #1A0E08;
}

/* ── Responsive typography ── */
@media (max-width: 767px) {
  .shop-hero h1,
  .page-header h1 {
    font-size: 28px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pickup-container {
    grid-template-columns: 1fr;
  }
}
