:root {
  --espresso: #2a1810;

  --brown: #5b3421;

  --cognac: #8a5738;

  --sand: #efe5d8;

  --cream: #f8f3ed;

  --paper: #fffdf9;

  --ink: #241711;

  --muted: #79685e;

  --line: #dfd2c6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;

  color: var(--ink);

  background: var(--paper);

  margin: 0;
}

a {
  color: inherit;

  text-decoration: none;
}

.topline {
  background: var(--espresso);

  color: #eadfd5;

  text-align: center;

  padding: 0.55rem 1rem;

  font-size: 0.73rem;

  letter-spacing: 0.09em;

  text-transform: uppercase;
}

.navbar {
  padding: 1.25rem 0;

  border-bottom: 1px solid var(--line);

  background: rgba(255, 253, 249, 0.96);

  position: sticky;

  top: 0;

  z-index: 20;

  backdrop-filter: blur(12px);
}

.brand {
  font:
    700 1.75rem "Playfair Display",
    serif;

  letter-spacing: -0.04em;
}

.brand span {
  color: var(--cognac);
}

.nav-actions {
  display: flex;

  gap: 1.8rem;

  align-items: center;
}

.nav-linkish {
  font-size: 0.9rem;
}

.btn {
  border-radius: 0;

  padding: 0.75rem 1.2rem;

  font-weight: 600;
}

.btn-brown {
  background: var(--brown);

  border-color: var(--brown);

  color: #fff;
}

.btn-brown:hover {
  background: var(--espresso);

  border-color: var(--espresso);

  color: #fff;
}

.btn-cream {
  background: var(--cream);

  border-color: var(--cream);

  color: var(--espresso);
}

.btn-outline-brown {
  border: 1px solid var(--brown);

  color: var(--brown);
}

.hero {
  padding: 5.5rem 0 4.5rem;

  background:
    radial-gradient(circle at 85% 20%, #ead8c8 0, transparent 28%), var(--paper);
}

.eyebrow {
  display: flex;

  align-items: center;

  gap: 0.7rem;

  color: var(--cognac);

  font-size: 0.68rem;

  letter-spacing: 0.18em;

  font-weight: 700;
}

.eyebrow i {
  width: 28px;

  height: 1px;

  background: currentColor;
}

.hero h1,
.product-title,
.checkout-card h1,
.admin-head h1 {
  font:
    600 clamp(3.3rem, 6.5vw, 6.8rem)/0.91 "Playfair Display",
    serif;

  letter-spacing: -0.055em;

  margin: 1.4rem 0;
}

.hero h1 em {
  font-weight: 600;

  color: var(--cognac);
}

.kicker {
  font:
    600 1.35rem "Playfair Display",
    serif;

  margin: 2rem 0 0.4rem;
}

.lead {
  color: var(--muted);

  font-size: 1.05rem;

  line-height: 1.75;
}

.hero-copy .lead {
  max-width: 520px;
}

.hero-actions {
  display: flex;

  align-items: center;

  gap: 1.6rem;

  margin-top: 2rem;
}

.text-link {
  border-bottom: 1px solid var(--ink);

  padding-bottom: 0.25rem;

  font-weight: 600;
}

.micro-trust {
  display: flex;

  gap: 1.3rem;

  flex-wrap: wrap;

  color: #8b796d;

  font-size: 0.74rem;

  margin-top: 2.5rem;
}

.visual-card {
  display: block;

  background: #e7d8ca;

  padding: 1.15rem;

  box-shadow: 0 30px 80px rgba(67, 38, 22, 0.13);

  transform: rotate(1deg);

  transition: 0.3s;
}

.visual-card:hover {
  transform: rotate(0) translateY(-20px);
}

.visual-card > img {
  width: 100%;

  height: 520px;

  object-fit: cover;

  background: #ddd;

  border: 8px solid #8b796d;
}

.visual-label {
  font-size: 0.65rem;

  letter-spacing: 0.16em;

  margin-bottom: 0.8rem;
}

.visual-foot {
  display: flex;

  justify-content: space-between;

  gap: 1rem;

  padding: 0.9rem 0.2rem 0.15rem;

  font-family: "Playfair Display", serif;
}

.proof-strip {
  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);

  padding: 1.3rem 0;
}

.proof-strip .container {
  display: flex;

  justify-content: space-between;

  gap: 1rem;
}

.proof-strip span {
  font-size: 0.65rem;

  letter-spacing: 0.16em;

  color: var(--muted);
}

.proof-strip strong {
  font-family: "Playfair Display", serif;
}

.story-section {
  padding: 7rem 0;

  position: relative;
}

.section-number {
  font:
    600 8rem "Playfair Display",
    serif;

  color: #eee3d9;

  position: absolute;

  right: 2%;

  top: 1rem;

  z-index: -1;
}

.story-section h2,
.cta-band h2,
.section-head h2 {
  font:
    600 clamp(2.5rem, 4vw, 4.2rem)/1 "Playfair Display",
    serif;

  letter-spacing: -0.04em;
}

.story-lead {
  font:
    500 1.4rem/1.55 "Playfair Display",
    serif;

  max-width: 650px;
}

.benefit {
  border-top: 1px solid var(--brown);

  padding-top: 1rem;
}

.benefit span {
  font-size: 0.68rem;

  color: var(--cognac);
}

.benefit h3 {
  font:
    600 1.1rem/1.4 "Playfair Display",
    serif;

  margin-top: 1.2rem;
}

.cta-band {
  background: var(--brown);

  color: #fff;

  padding: 4rem 0;
}

.cta-band .container {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 2rem;
}

.eyebrow.light {
  color: #d7c3b5;
}

.product-page {
  padding: 4.5rem 0;
}

.gallery-main {
  background: var(--sand);

  padding: 2rem;
}

.gallery-main > img {
  width: 100%;

  height: 620px;

  object-fit: cover;

  border: 8px solid #8b796d;
}

.thumbs {
  display: flex;

  gap: 0.7rem;

  margin-top: 0.8rem;
}

.thumb {
  border: 1px solid var(--line);

  background: #fff;

  padding: 0.25rem;

  width: 80px;

  height: 80px;
}

.thumb.active {
  border-color: var(--brown);
}

.thumb img {
  width: 100%;

  height: 100%;

  object-fit: cover;
}

.sticky-detail {
  position: sticky;

  top: 120px;
}

.product-title {
  font-size: clamp(2.6rem, 4vw, 4.5rem);

  margin: 1rem 0;
}

.price {
  display: flex;

  align-items: baseline;

  gap: 0.9rem;

  margin: 1.5rem 0;
}

.price span {
  font:
    600 2rem "Playfair Display",
    serif;
}

.price del {
  color: #a49489;
}

.divider {
  height: 1px;

  background: var(--line);

  margin: 1.5rem 0;
}

.description {
  color: var(--muted);

  line-height: 1.75;
}

.clean-list {
  list-style: none;

  padding: 0;

  margin: 1.7rem 0;
}

.clean-list li {
  display: flex;

  gap: 0.8rem;

  padding: 0.8rem 0;

  border-bottom: 1px solid #eee5dc;
}

.clean-list b {
  color: var(--cognac);
}

.checkout-notes {
  display: flex;

  justify-content: space-between;

  gap: 1rem;

  font-size: 0.7rem;

  color: var(--muted);

  margin-top: 1rem;
}

.checkout-page {
  min-height: 70vh;

  padding: 5rem 0;

  background: linear-gradient(135deg, var(--cream), #fff 55%);
}

.narrow {
  max-width: 760px;
}

.checkout-card,
.panel,
.candidate,
.orders {
  border: 1px solid var(--line);

  padding: 2.4rem;

  background: #fff;

  box-shadow: 0 22px 60px rgba(61, 34, 19, 0.07);
}

.checkout-card h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.order-row {
  display: grid;

  grid-template-columns: 90px 1fr auto;

  gap: 1.2rem;

  align-items: center;

  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);

  padding: 1.4rem 0;

  margin: 2rem 0;
}

.order-row img {
  width: 90px;

  height: 90px;

  object-fit: cover;
}

.order-row p {
  font-size: 0.8rem;

  color: var(--muted);

  margin: 0.25rem 0;
}

.total-row {
  display: flex;

  justify-content: space-between;

  align-items: baseline;

  margin: 1.5rem 0;
}

.total-row b {
  font:
    600 1.8rem "Playfair Display",
    serif;
}

.total-row small {
  font:
    500 0.65rem "DM Sans",
    sans-serif;
}

.secure-note {
  text-align: center;

  color: var(--muted);

  font-size: 0.72rem;

  margin-top: 1.2rem;
}

.success-mark {
  width: 72px;

  height: 72px;

  border: 1px solid var(--brown);

  border-radius: 50%;

  display: grid;

  place-items: center;

  margin: 0 auto 1.5rem;

  font-size: 2rem;
}

.admin-page {
  padding: 4rem 0 7rem;
}

.admin-head {
  display: flex;

  justify-content: space-between;

  gap: 2rem;

  align-items: start;
}

.admin-head h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.admin-login {
  max-width: 540px;
}

.admin-grid {
  display: grid;

  grid-template-columns: 1fr 1fr 1.2fr;

  gap: 1rem;
}

.panel {
  box-shadow: none;
}

.panel-dark {
  background: var(--espresso);

  color: #fff;

  border-color: var(--espresso);
}

.panel h3,
.candidate h3 {
  font:
    600 1.65rem/1.2 "Playfair Display",
    serif;

  margin: 1rem 0;
}

.panel p,
.candidate p {
  color: var(--muted);

  font-size: 0.87rem;
}

.panel-dark p {
  color: #cdbeb4;
}

.panel-label {
  font-size: 0.62rem;

  letter-spacing: 0.16em;

  color: var(--cognac);
}

.status-dot {
  font-size: 0.76rem;

  margin: 1rem 0;
}

.status-dot i {
  display: inline-block;

  width: 7px;

  height: 7px;

  background: #5d9b68;

  border-radius: 50%;

  margin-right: 0.4rem;
}

.section-head {
  display: flex;

  justify-content: space-between;

  align-items: end;

  margin: 5rem 0 1.5rem;

  border-bottom: 1px solid var(--line);

  padding-bottom: 1rem;
}

.section-head > div {
  display: flex;

  align-items: end;

  gap: 1rem;
}

.section-head span {
  color: var(--cognac);
}

.section-head h2 {
  font-size: 2.2rem;

  margin: 0;
}

.section-head p {
  color: var(--muted);

  margin: 0;
}

.candidate-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1rem;
}

.candidate {
  box-shadow: none;
}

.candidate-top {
  display: flex;

  justify-content: space-between;

  align-items: center;
}

.score {
  width: 48px;

  height: 48px;

  border-radius: 50%;

  display: grid;

  place-items: center;

  background: var(--cream);

  font-weight: 700;
}

.candidate-top small,
.query {
  font-size: 0.62rem;

  letter-spacing: 0.12em;

  color: var(--muted);
}

.query {
  display: block;

  margin: 1.5rem 0;
}

.empty-state {
  border: 1px dashed var(--line);

  padding: 2rem;

  color: var(--muted);
}

.orders {
  box-shadow: none;

  padding: 0;
}

.order-line {
  display: grid;

  grid-template-columns: 1fr 2fr 1fr;

  gap: 1rem;

  padding: 1rem 1.4rem;

  border-bottom: 1px solid var(--line);

  font-size: 0.82rem;
}

.badge-status {
  text-transform: capitalize;
}

.submitted {
  color: #477d52;
}

.needs_attention {
  color: #a34d3d;
}

.pending {
  color: #8a6d3b;
}

.soft-alert {
  border-radius: 0;

  background: #f2e8dd;

  border-color: #d8c2af;

  color: var(--espresso);
}

footer {
  background: var(--espresso);

  color: #fff;

  padding: 4rem 0;
}

.brand-light {
  color: #fff;
}

.footer-grid {
  display: flex;

  justify-content: space-between;

  gap: 2rem;
}

.footer-grid p,
.footer-note {
  color: #bdaea5;

  font-size: 0.78rem;

  line-height: 1.8;
}

.footer-note {
  text-align: right;
}

@media (max-width: 991px) {
  .hero {
    padding-top: 3.5rem;
  }

  .visual-card > img,
  .gallery-main > img {
    height: 440px;

    border: 2px solid #8b796d;
  }

  .sticky-detail {
    position: static;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .candidate-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .topline {
    font-size: 0.6rem;
  }

  .nav-linkish {
    display: none;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-actions {
    align-items: flex-start;

    flex-direction: column;
  }

  .visual-card > img {
    height: 360px;

    border: 2px solid #8b796d;
  }

  .proof-strip .container {
    display: grid;

    grid-template-columns: 1fr 1fr;
  }

  .proof-strip span {
    grid-column: 1/-1;
  }

  .story-section {
    padding: 4rem 0;
  }

  .cta-band .container,
  .footer-grid {
    align-items: flex-start;

    flex-direction: column;
  }

  .gallery-main {
    padding: 1rem;
  }

  .gallery-main > img {
    height: 400px;
  }

  .checkout-card {
    padding: 1.4rem;
  }

  .order-row {
    grid-template-columns: 70px 1fr;
  }

  .order-row img {
    width: 70px;

    height: 70px;
  }

  .order-row strong {
    grid-column: 2;
  }

  .checkout-notes {
    flex-direction: column;
  }

  .admin-head {
    flex-direction: column;
  }

  .section-head {
    align-items: flex-start;

    flex-direction: column;
  }

  .order-line {
    grid-template-columns: 1fr;
  }

  .footer-note {
    text-align: left;
  }
}

/* Quantity selector — follows the existing buyanything visual system */

.quantity-row {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 1rem 0;

  border-top: 1px solid var(--line);

  font-size: 0.82rem;

  font-weight: 600;
}

.quantity-control {
  display: inline-flex;

  align-items: center;

  border: 1px solid var(--line);

  background: #fff;
}

.quantity-control input {
  width: 52px;

  height: 42px;

  border: 0;

  border-left: 1px solid var(--line);

  border-right: 1px solid var(--line);

  text-align: center;

  font:
    600 0.9rem "DM Sans",
    sans-serif;

  color: var(--espresso);

  outline: 0;

  -moz-appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;

  margin: 0;
}

.qty-btn {
  width: 42px;

  height: 42px;

  border: 0;

  background: transparent;

  color: var(--espresso);

  font-size: 1.15rem;

  line-height: 1;

  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: var(--cream);
}
/* Product reviews */
.product-reviews {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.2;
}

.review-stars {
  color: #d89b24;
  letter-spacing: 1px;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.half-star {
  display: inline-block;
  width: 0.5em;
  overflow: hidden;
  vertical-align: bottom;
}

.review-count {
  color: #6f6259;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Product page review placement */
.price {
  flex-wrap: wrap;
}

.price .product-reviews {
  width: 100%;
  margin-top: -2px;
  margin-bottom: 0;
}

/* Keep review text from inheriting the large .price span font */
.price .review-stars,
.price .half-star {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
}

.price .review-count {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

/* Home page review placement */
.hero-copy .product-reviews {
  margin-top: 12px;
  margin-bottom: 0;
}

/* Review responsiveness */
@media (max-width: 991px) {
  .review-stars,
  .price .review-stars,
  .price .half-star {
    font-size: 16px;
  }

  .review-count,
  .price .review-count {
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  .product-reviews {
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
    margin-bottom: 8px;
  }

  .hero-copy .product-reviews {
    margin-top: 10px;
  }

  .price .product-reviews {
    margin-top: -4px;
  }

  .review-stars,
  .price .review-stars,
  .price .half-star {
    font-size: 15px;
  }

  .review-count,
  .price .review-count {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .review-stars,
  .price .review-stars,
  .price .half-star {
    font-size: 14px;
  }

  .review-count,
  .price .review-count {
    font-size: 11.5px;
  }
}
