:root {
  --bg: #F5F2EC;
  --bg-soft: #EFEAE1;
  --card-bg: #FFFFFF;
  --ink: #211D18;
  --muted: #5C5548;
  --header-bg: #211D18;
  --header-text: #F5F2EC;
  --line: rgba(33, 29, 24, 0.14);
  --accent: #52504B;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

a { text-decoration: none; color: inherit; }
button, select { font-family: inherit; }

.wrap { max-width: 1440px; margin: 0 auto; }

/* Header */
.site-header {
  height: 96px;
  box-sizing: border-box;
  background: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
}
.nav-link { color: var(--header-text); opacity: .85; transition: opacity .15s; font-size: 15px; }
.nav-link:hover { opacity: 1; }
.nav-link.active { opacity: 1; border-bottom: 1px solid var(--header-text); padding-bottom: 4px; }
.nav-group { display: flex; align-items: center; gap: 32px; }
.logo-ph { display: inline-flex; align-items: center; }
.logo-img { display: block; height: 32px; width: auto; filter: invert(1); }
.site-header .logo-img { height: 48px; }
.site-footer .logo-img { height: 96px; }
.cart-link { position: relative; color: var(--header-text); display: flex; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -9px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  text-align: center;
  display: none;
}
.cart-count.show { display: block; }

/* Placeholder labels on color-block images */
.art { position: relative; border-radius: 8px; overflow: hidden; }
.ph-label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Buttons */
.btn-add {
  cursor: pointer;
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .15s;
}
.btn-add:hover { background: var(--accent); }
.btn-added {
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
}
.badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}
.badge-sold { background: var(--line); color: var(--muted); }
.badge-nfs { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* Home carousel */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  padding: 0;
}
.carousel-arrow:hover { background: #fff; }
.dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 2px;
  border: none;
  background: rgba(33, 29, 24, 0.25);
  cursor: pointer;
}
.dot-active { background: var(--ink); }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  min-height: 400px;
}
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
.card { transition: transform .15s, box-shadow .15s; }

/* Artwork detail */
.back-link { color: var(--muted); font-size: 14px; transition: color .15s; }
.back-link:hover { color: var(--ink); }
.select-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.select-input option:disabled { color: var(--muted); }
.purchase-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-sizing: border-box;
}

/* Events list */
.exhibit-row { border-top: 1px solid var(--line); padding: 26px 0; }
.exhibit-group-heading {
  font-weight: 700;
  font-size: 24px;
  margin: 56px 0 4px;
}
.exhibit-group-heading:first-child { margin-top: 0; }

/* Footer */
.site-footer { background: var(--header-bg); color: var(--header-text); box-sizing: border-box; }
.footer-cols { padding: 64px 64px 40px; display: flex; }
.footer-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 12px; }
.footer-link { color: var(--header-text); opacity: .8; font-size: 14px; }
.footer-link:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(245, 242, 236, 0.14);
  padding: 24px 64px;
  text-align: center;
  font-size: 13px;
  opacity: .55;
}

@media (max-width: 900px) {
  .site-header, .footer-cols, .footer-bottom { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 32px !important; }
}
