:root {
  --bg: #0f1c18;
  --bg-soft: #173028;
  --panel: rgba(236, 243, 238, 0.94);
  --ink: #12201b;
  --muted: #4d6359;
  --line: rgba(18, 32, 27, 0.12);
  --accent: #2f8f6b;
  --accent-deep: #1f6b4f;
  --sand: #e7efe8;
  --gold: #c9a45c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% -10%, #2a5a48 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 10%, #3d4a2f 0%, transparent 50%),
    linear-gradient(160deg, #0d1714 0%, #15241e 45%, #1a2e26 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  color: var(--sand);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
  opacity: 0.92;
}

.cart-link span {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-left: 0.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
}

.product-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: calc(100vh - 5.5rem);
  align-items: stretch;
}

.visual {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.cap-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(15, 28, 24, 0.15), rgba(15, 28, 24, 0.55)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Cpath d='M0 80h160M80 0v160'/%3E%3C/g%3E%3C/svg%3E");
}

.cap-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 92, 0.28), transparent 65%);
  filter: blur(8px);
  animation: drift 8s ease-in-out infinite alternate;
}

.cap {
  position: relative;
  width: min(420px, 70vw);
  aspect-ratio: 1.2 / 1;
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.cap-crown {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 18%;
  height: 48%;
  border-radius: 50% 50% 42% 42% / 70% 70% 30% 30%;
  background: linear-gradient(180deg, #3f7a61 0%, #2a5a48 55%, #204537 100%);
  box-shadow:
    inset 0 12px 24px rgba(255, 255, 255, 0.12),
    inset 0 -18px 28px rgba(0, 0, 0, 0.25),
    0 28px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

.cap-mark {
  font-family: var(--font-display);
  color: rgba(231, 239, 232, 0.92);
  letter-spacing: 0.08em;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}

.cap-bill {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 18%;
  height: 28%;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, #1d3b30, #10231d);
  transform: perspective(400px) rotateX(28deg);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

.buy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, rgba(231, 239, 232, 0.96), rgba(220, 231, 223, 0.92));
  color: var(--ink);
  animation: slide-in 700ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.buy h1,
.page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
}

.price {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.price span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.35rem;
}

.lead,
.page-lead,
.pay-copy,
.pay-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 36rem;
}

.specs {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.specs li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--ink);
  color: var(--sand);
  box-shadow: 0 10px 24px rgba(18, 32, 27, 0.22);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(18, 32, 27, 0.2);
}

.btn.paypal {
  width: 100%;
  margin-top: 1rem;
  background: #ffc439;
  color: #003087;
  border-radius: 12px;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(0, 48, 135, 0.16);
}

.btn.paypal:hover {
  background: #f2b72e;
}

.page {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto 3rem;
  padding: 1rem 0 2rem;
  color: var(--sand);
}

.page h1 {
  color: var(--sand);
}

.page-lead {
  color: rgba(231, 239, 232, 0.78);
  margin: 0.75rem 0 1.5rem;
}

.panel {
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.cart-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-row.compact {
  padding-bottom: 0.85rem;
}

.cart-row h2,
.cart-row h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
}

.cart-row p {
  margin: 0;
  color: var(--muted);
}

.thumb {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 40%, #3f7a61, #204537 70%),
    linear-gradient(#173028, #0f1c18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.row-price {
  font-weight: 700;
  margin: 0;
}

.totals {
  display: grid;
  gap: 0.7rem;
  padding: 1rem 0;
}

.totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.totals .grand {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.05rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pay-panel h2,
.panel h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
}

.method {
  display: block;
  border: 1.5px solid rgba(18, 32, 27, 0.14);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  cursor: pointer;
  background: white;
}

.method.selected {
  border-color: #003087;
  box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.08);
}

.method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-body {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.paypal-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  height: 2rem;
  border-radius: 6px;
  background: #003087;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.pay-note {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  color: rgba(231, 239, 232, 0.78);
  border-top: 1px solid rgba(231, 239, 232, 0.12);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal {
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  line-height: 1.7;
}

.legal h2 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
}

.success-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes drift {
  from {
    transform: translate(-12px, -8px);
  }
  to {
    transform: translate(14px, 10px);
  }
}

@media (max-width: 860px) {
  .product-hero,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

  .visual {
    min-height: 360px;
  }

  .buy {
    min-height: auto;
  }
}
