:root {
  --ink: #171310;
  --muted: #6f625a;
  --paper: #fffaf4;
  --panel: #ffffff;
  --line: #eadfd3;
  --accent: #a43f2f;
  --accent-dark: #722b22;
  --gold: #c79a42;
  --green: #315f52;
  --shadow: 0 18px 45px rgba(31, 21, 14, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover,
.text-link {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-video-panel {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 72px;
  z-index: 2;
  width: min(320px, 32vw);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.hero-video-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.story-hero {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.story-hero img,
.story-hero iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.story-hero iframe {
  transform: scale(1.18);
}

.story-hero img {
  object-fit: cover;
}

.story-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(18, 13, 9, 0.82), rgba(18, 13, 9, 0.34), rgba(18, 13, 9, 0.14));
}

.story-hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 90px) 58px;
  color: #fff;
}

.story-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.95;
}

.story-hero p:not(.eyebrow) {
  max-width: 560px;
  font-size: 1.12rem;
  line-height: 1.65;
}

.custom-order-hero img {
  object-position: center;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(18, 13, 9, 0.78), rgba(18, 13, 9, 0.34), rgba(18, 13, 9, 0.12));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 90px) 72px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-title h1,
.product-info h1,
.empty-state h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  font-size: 1.2rem;
  line-height: 1.65;
}

.hero-actions,
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
button {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
button {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.button.secondary-dark {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--panel);
}

.trust-strip div {
  padding: 22px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.trust-strip strong,
.trust-strip span,
.site-footer strong,
.site-footer span {
  display: block;
}

.trust-strip span,
.copy-block,
.product-card p,
.cart-line span,
.summary span,
.site-footer span {
  color: var(--muted);
}

.video-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 21, 14, 0.06);
}

.video-promo p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

.section,
.page-title,
.shop-layout,
.product-detail,
.cart-layout,
.checkout-layout,
.empty-state {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.section,
.page-title,
.empty-state {
  padding: 72px 0;
}

.section-heading,
.split,
.cart-layout,
.checkout-layout,
.product-detail {
  display: grid;
  gap: 28px;
}

.section-heading {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 26px;
}

h2,
h3,
p {
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 21, 14, 0.06);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-image-link {
  position: relative;
  display: block;
}

.stock-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  color: #fff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(31, 21, 14, 0.16);
}

.stock-badge.inline {
  position: static;
  box-shadow: none;
}

.stock-badge.in-stock {
  background: var(--green);
}

.stock-badge.made-to-order {
  color: var(--ink);
  background: var(--gold);
}

.stock-badge.out-of-stock {
  background: var(--accent-dark);
}

.product-card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-card-body span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3,
.cart-line h2 {
  margin: 0;
  font-size: 1.05rem;
}

.product-card p {
  margin: 0;
  line-height: 1.55;
}

.product-card-footer,
.price-row,
.summary-line,
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.price-stack {
  display: grid;
  gap: 3px;
}

.price-stack.detail strong {
  font-size: 1.6rem;
}

.old-price {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: line-through;
}

.sale-label {
  display: inline-flex;
  width: max-content;
  padding: 5px 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.split,
.product-detail,
.checkout-layout,
.cart-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
}

.shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding-bottom: 72px;
}

.filters {
  display: grid;
  align-content: start;
  gap: 10px;
}

.filters h2 {
  font-size: 1.2rem;
}

.filters a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.filters a.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.product-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-info {
  align-self: center;
  display: grid;
  gap: 18px;
}

.lead {
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.buy-row input,
.cart-line input {
  width: 84px;
}

.cart-lines,
.checkout-form,
.summary {
  display: grid;
  gap: 14px;
}

.cart-line,
.summary,
.checkout-form,
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 21, 14, 0.06);
}

.cart-line {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.cart-line img {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.checkout-form,
.summary,
.empty-state {
  padding: 24px;
}

.summary {
  align-self: start;
}

.spec-list {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px 16px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.spec-list dt {
  color: var(--green);
  font-weight: 800;
}

.spec-list dd {
  margin: 0;
  color: var(--muted);
}

.product-notes {
  color: var(--muted);
  line-height: 1.65;
}

.summary hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.field-validation-error,
.validation-summary {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-footer {
  margin-top: 56px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  font-weight: 800;
  color: var(--green);
}

.footer-links > a:not(.social-link) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

.social-link {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(31, 21, 14, 0.16);
}

.social-link.whatsapp {
  background: #25d366;
}

.social-link.instagram {
  background: radial-gradient(circle at 30% 110%, #fdf497 0 18%, #fd5949 42%, #d6249f 65%, #285aeb 100%);
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.youtube {
  background: #ff0033;
}

.social-link.threads {
  background: #111111;
}

.admin-auth,
.admin-shell {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: 56px 0;
}

.admin-card,
.admin-form,
.admin-table,
.admin-metrics a,
.order-detail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 21, 14, 0.06);
}

.admin-card {
  max-width: 420px;
  margin-inline: auto;
  padding: 28px;
  display: grid;
  gap: 14px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.admin-metrics,
.admin-actions,
.form-grid {
  display: grid;
  gap: 16px;
}

.admin-metrics {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
}

.admin-metrics a {
  padding: 22px;
}

.admin-metrics span,
.admin-table span,
.current-image span {
  color: var(--muted);
}

.admin-metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.admin-actions {
  grid-template-columns: repeat(3, max-content);
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.admin-fieldset {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-fieldset p {
  margin: 0;
  color: var(--muted);
}

.admin-form.wide {
  max-width: none;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-row input {
  width: auto;
}

.form-actions,
.table-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.admin-table th {
  color: var(--green);
  background: #f8efe5;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.product-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

.product-cell img,
.current-image img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
}

.current-image {
  display: grid;
  gap: 8px;
}

.order-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 22px;
  margin-bottom: 22px;
}

.admin-message {
  padding: 12px 14px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .site-header,
  .site-nav,
  .product-card-footer,
  .price-row,
  .site-footer,
  .footer-links,
  .video-promo {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .trust-strip,
  .product-grid,
  .split,
  .product-detail,
  .checkout-layout,
  .cart-layout,
  .shop-layout,
  .admin-metrics,
  .admin-actions,
  .form-grid,
  .order-detail {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-line {
    grid-template-columns: 84px 1fr;
  }

  .cart-line form,
  .cart-line strong {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 560px;
  }

  .hero-content {
    margin-bottom: 42px;
  }

  .hero-video-panel {
    display: none;
  }

  .site-nav {
    width: 100%;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
  }
}
