/* ============================================
   MRE BOX AUCTIONS — MAIN STYLESHEET
   Dark luxury · Gold accents · Refined serif
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --black:      #0a0a0a;
  --dark:       #111111;
  --card:       #1a1a1a;
  --border:     #2a2a2a;
  --border-mid: #333333;
  --gold:       #f0c040;
  --gold-dark:  #b8860b;
  --gold-dim:   #8a6400;
  --text:       #e0e0e0;
  --text-muted: #888888;
  --text-dim:   #555555;
  --white:      #ffffff;
  --radius:     8px;
  --radius-lg:  12px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--black);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.3rem; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
}

/* ── Gold bar ── */
.gold-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
}

/* ── Layout ── */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main    { flex: 1; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-logo span { color: var(--gold); }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav .current-menu-item a { color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: var(--transition);
}

/* ── Hero ── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240,192,64,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero .label { margin-bottom: 20px; display: block; }

.hero__title {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero__title strong {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero__divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,192,64,0.2);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__image img { transform: scale(1.05); }

.card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #000;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
}

.card__body { padding: 24px; }

.card__label { margin-bottom: 8px; }

.card__title {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--white);
}

.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.card__price-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 60px 0;
}

/* ── Section ── */
.section {
  padding: 80px 0;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__header .label {
  display: block;
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 16px;
}

.section__subtitle {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ── Bid display ── */
.mre-highest-bid {
  display: inline-block;
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--gold) !important;
  border-radius: var(--radius) !important;
  padding: 16px 28px !important;
  font-family: 'Jost', sans-serif !important;
}

.mre-bid-label {
  font-size: 0.65rem !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold) !important;
  margin-bottom: 6px !important;
}

.mre-bid-sentence {
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: var(--white) !important;
}

.mre-bid-listing {
  font-size: 0.78rem !important;
  color: var(--text-dim) !important;
  margin-top: 6px !important;
}

/* ── Divider ── */
.gold-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  border: none;
  margin: 0;
}

/* ── Single Post / Page ── */
.entry {
  padding: 80px 0;
}

.entry__header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.entry__meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.entry__meta a { color: var(--text-dim); }
.entry__meta a:hover { color: var(--gold); }

.entry__content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.entry__content h2,
.entry__content h3,
.entry__content h4 { margin: 2em 0 0.6em; }

.entry__content p  { margin-bottom: 1.4em; }

.entry__content a  { color: var(--gold); border-bottom: 1px solid rgba(240,192,64,0.3); }
.entry__content a:hover { color: var(--white); border-color: var(--white); }

.entry__content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
}

.entry__content ul,
.entry__content ol {
  padding-left: 24px;
  margin-bottom: 1.4em;
}

.entry__content li { margin-bottom: 0.5em; }

.entry__content img {
  border-radius: var(--radius);
  margin: 32px 0;
  border: 1px solid var(--border);
}

/* ── WooCommerce overrides ── */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
  background: var(--card);
  border-top-color: var(--gold);
  color: var(--text);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold)) !important;
  color: #000 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  border-radius: var(--radius) !important;
  padding: 12px 28px !important;
  border: none !important;
  transition: all var(--transition) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover { opacity: 0.88 !important; }

.woocommerce span.price,
.woocommerce ins .amount {
  color: var(--gold) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
}

.woocommerce .products ul li.product,
.woocommerce ul.products li.product {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 0 20px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.woocommerce .products ul li.product:hover,
.woocommerce ul.products li.product:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--white) !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.3rem !important;
  padding: 0 20px !important;
}

.woocommerce div.product .product_title {
  font-family: 'Cormorant Garamond', serif !important;
  color: var(--white) !important;
}

.woocommerce-tabs .tabs li.active a { color: var(--gold) !important; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand .site-logo { font-size: 1.4rem; margin-bottom: 16px; display: block; }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--gold); }

.site-footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.site-footer__bottom a { color: var(--text-dim); }
.site-footer__bottom a:hover { color: var(--gold); }

/* ── Sidebar ── */
.has-sidebar .content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
}

/* ── 404 ── */
.error-404 {
  text-align: center;
  padding: 120px 0;
}

.error-404 .error-code {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
  opacity: 0.15;
  display: block;
}

.error-404 h1 { margin-top: -40px; position: relative; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.6s ease both;
}

.animate-in--delay-1 { animation-delay: 0.1s; }
.animate-in--delay-2 { animation-delay: 0.2s; }
.animate-in--delay-3 { animation-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand { grid-column: 1 / -1; }

  .has-sidebar .content-area {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-nav { display: none; }
  .site-nav.is-open { display: block; }
  .nav-toggle { display: flex; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    background: var(--dark);
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
  }

  .site-nav ul li { width: 100%; }

  .site-nav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }

  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .site-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
