:root {
  --cream: #fbf6ed;
  --ink: #293126;
  --green: #44694d;
  --green-dark: #2e4b36;
  --gold: #c99a45;
  --line: rgba(46, 75, 54, 0.18);
}

.product-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #fffdf8 0%, var(--cream) 100%);
  color: var(--ink);
}

.product-back-row {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 10px;
}

.product-back-link {
  color: var(--green-dark);
  font: 700 0.82rem/1.2 Inter, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.product-back-link:hover { text-decoration: underline; }

.product-loading,
.product-error {
  width: min(760px, calc(100% - 40px));
  margin: 80px auto;
  padding: 54px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(35, 49, 39, 0.08);
}

.product-error h1 { margin-top: 0; font-family: Georgia, serif; }

.product-detail {
  width: min(1180px, calc(100% - 40px));
  margin: 20px auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.product-gallery { display: grid; gap: 18px; }

.product-main-image-wrap,
.product-exact-image-wrap {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(35, 49, 39, 0.1);
}

.product-main-image-wrap { aspect-ratio: 1 / 1; }

.product-main-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-exact-image-wrap {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  box-shadow: none;
}

.product-exact-image-wrap[hidden] { display: none; }

.product-exact-image-wrap img {
  width: 118px;
  height: 96px;
  object-fit: contain;
  background: #f8f6f0;
  border-radius: 12px;
}

.product-exact-image-wrap p { margin: 0; font: 600 0.88rem/1.45 Inter, Arial, sans-serif; }
.product-exact-image-wrap span { display: block; margin-top: 3px; color: #6b726b; font-weight: 400; }

.product-copy-panel {
  position: sticky;
  top: 28px;
  padding: clamp(26px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(35, 49, 39, 0.09);
}

.product-eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font: 800 0.76rem/1.2 Inter, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-copy-panel h1 {
  margin: 0;
  color: var(--green-dark);
  font: 500 clamp(2rem, 4vw, 3.35rem)/1.03 Georgia, serif;
}

.product-price {
  margin: 18px 0 22px;
  color: var(--green-dark);
  font: 800 1.25rem/1.2 Inter, Arial, sans-serif;
}

.product-description {
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
  color: #50594f;
  font: 400 0.98rem/1.65 Inter, Arial, sans-serif;
}

.product-options { display: grid; gap: 17px; margin-top: 22px; }

.product-option { display: grid; gap: 8px; }

.product-option span,
.product-quantity label {
  color: var(--green-dark);
  font: 800 0.78rem/1.2 Inter, Arial, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.product-option select,
.product-quantity input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(46, 75, 54, 0.28);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 600 0.96rem/1 Inter, Arial, sans-serif;
}

.product-quantity { display: grid; grid-template-columns: 1fr 92px; gap: 16px; align-items: end; margin-top: 18px; }
.product-quantity input { text-align: center; }

.product-buy-button {
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  cursor: pointer;
  font: 800 0.94rem/1.2 Inter, Arial, sans-serif;
  letter-spacing: 0.025em;
  transition: transform 160ms ease, background 160ms ease;
}

.product-buy-button:hover { background: var(--green); transform: translateY(-1px); }
.product-buy-button:disabled { cursor: wait; opacity: 0.68; transform: none; }

.product-message { min-height: 22px; margin: 11px 0 0; color: #9d342d; font: 700 0.86rem/1.4 Inter, Arial, sans-serif; }
.product-checkout-note { margin: 9px 0 0; color: #70766f; text-align: center; font: 500 0.78rem/1.4 Inter, Arial, sans-serif; }

@media (max-width: 820px) {
  .product-back-row { padding-top: 24px; }
  .product-detail { grid-template-columns: 1fr; gap: 26px; margin-top: 10px; }
  .product-copy-panel { position: static; padding: 28px 22px; }
  .product-main-image-wrap { border-radius: 20px; }
}

@media (max-width: 520px) {
  .product-back-row,
  .product-detail { width: min(100% - 24px, 1180px); }
  .product-exact-image-wrap { grid-template-columns: 88px 1fr; gap: 12px; }
  .product-exact-image-wrap img { width: 88px; height: 78px; }
}
