:root {
  --ink: #161b1f;
  --muted: #5c6670;
  --soft: #8a939c;
  --paper: #ffffff;
  --paper-soft: #f4f6f7;
  --line: #e4e7ea;
  --amber: #c45f1a;
  --amber-deep: #a34c12;
  --fb: #1877f2;
  --fb-dark: #0f5dc8;
  --wa: #25d366;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1000px 480px at 80% -10%, rgba(196, 95, 26, 0.1), transparent 55%),
    linear-gradient(180deg, #eef1f3 0%, #f8f9fa 35%, #ffffff 100%);
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(180deg, rgba(8, 16, 21, 0.55), transparent);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-cta {
  background: var(--wa);
  color: #062816;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 8s ease;
}

.cover-img.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 21, 0.25) 0%, rgba(8, 16, 21, 0.15) 40%, rgba(8, 16, 21, 0.78) 100%),
    linear-gradient(90deg, rgba(8, 16, 21, 0.45), transparent 60%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 0 0 4.5rem;
  color: #fff;
  animation: rise 0.9s ease both;
}

.brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.2;
}

.lede {
  margin: 0.9rem 0 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-amber {
  background: linear-gradient(135deg, #e08a3a, var(--amber-deep));
  color: #1a1008;
}

.btn-primary {
  background: var(--fb);
  color: #fff;
}

.btn-primary:hover {
  background: var(--fb-dark);
}

.btn-whatsapp {
  background: var(--wa);
  color: #062816;
}

.btn-small {
  padding: 0.55rem 0.95rem;
  font-size: 0.88rem;
  background: var(--ink);
  color: #fff;
}

.shop,
.delivery,
.payment,
.craft {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 1rem;
}

.pay-card {
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.75rem;
  max-width: 520px;
}

.pay-card p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pay-card span {
  color: var(--soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.pay-card strong {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.pay-card .pay-note {
  color: var(--muted);
  font-size: 0.92rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

.pay-box {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #eef8f0;
  border: 1px solid #b7e4c0;
  display: grid;
  gap: 0.25rem;
}

.pay-box p {
  margin: 0;
  font-size: 0.92rem;
}

.pay-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.section-head h2,
.craft-copy h2,
.sheet-head h2,
.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head h2,
.craft-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.section-head p,
.craft-copy p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(22, 27, 31, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 95, 26, 0.35);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--paper-soft);
}

.product-card img.img-full {
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  background: #f7f7f7;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem 1.2rem;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  flex: 1;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.price {
  font-weight: 700;
  color: var(--amber);
}

.rates-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.rates-grid li {
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rates-grid span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.rates-grid strong {
  color: var(--amber);
  font-size: 0.95rem;
}

.craft {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.craft-media {
  overflow: hidden;
  border-radius: 14px;
  min-height: 380px;
}

.craft-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.craft-copy ul {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.craft-copy li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
}

.craft-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--amber);
}

.footer {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--soft);
  font-size: 0.9rem;
}

.footer-brand {
  font-size: 1.15rem;
  color: var(--ink);
}

.footer a {
  color: var(--amber);
}

.sheet[hidden] {
  display: none !important;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 27, 31, 0.45);
}

.sheet-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--paper);
  border-radius: 16px 16px 0 0;
  padding: 1rem 1.1rem 1.25rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sheet-head h2 {
  font-size: 1.3rem;
}

.sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
}

#order-form {
  display: grid;
  gap: 0.75rem;
}

#order-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

#order-form input,
#order-form select,
#order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

#order-form input[readonly] {
  background: var(--paper-soft);
}

.order-totals {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.35rem;
}

.order-totals p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.order-totals strong {
  color: var(--ink);
}

.order-totals .grand {
  margin-top: 0.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}

.order-totals .grand strong {
  color: var(--amber);
  font-size: 1.05rem;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.order-actions .btn {
  flex: 1;
  min-width: 140px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 50;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .craft {
    grid-template-columns: 1fr;
  }

  .craft-media,
  .craft-media img {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .nav a {
    display: none;
  }

  .hero-copy,
  .shop,
  .delivery,
  .payment,
  .craft,
  .footer {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero-copy {
    padding-bottom: 3.2rem;
  }

  .product-grid,
  .rates-grid {
    grid-template-columns: 1fr;
  }

  .order-actions .btn {
    width: 100%;
  }
}
