:root {
  --bg: #0f0b08;
  --bg-soft: #1a1410;
  --gold: #c89b3c;
  --gold-soft: #e3c17a;
  --text: #f4ede5;
  --muted: #b8a792;
  --line: rgba(227, 193, 122, 0.16);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --radius-xl: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top, rgba(200, 155, 60, 0.14), transparent 28%),
    linear-gradient(180deg, #120d09 0%, #0f0b08 100%);
  color: var(--text);
  min-height: 100vh;
}

.page-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 14px 100px;
}

.catalog-header {
  background:
    linear-gradient(135deg, rgba(200, 155, 60, 0.14), rgba(200, 155, 60, 0.03)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px 18px;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 26px;
}

.brand-logo {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

.header-badge {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--gold-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.brand-title,
.section-title,
.cart-title {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.4px;
}

.brand-title {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.08;
  margin: 0 0 10px;
}

.header-copy p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 auto;
  max-width: 560px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}

.btn-medieval,
.btn-outline-medieval,
.qty-btn,
.final-btn {
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.22s ease;
}

.btn-medieval {
  background: linear-gradient(180deg, #d7ae57, #b8882d);
  color: #1a1209;
  padding: 12px 18px;
  box-shadow: 0 8px 20px rgba(200, 155, 60, 0.22);
}

.btn-outline-medieval {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 12px 18px;
}

.section-title {
  font-size: 24px;
  margin: 30px 0 8px;
}

.section-subtitle,
.footer-note,
.small-note {
  color: var(--muted);
}

.section-subtitle {
  margin-bottom: 18px;
  font-size: 14px;
}

.filters {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  margin-bottom: 16px;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.active {
  background: rgba(200, 155, 60, 0.16);
  color: var(--gold-soft);
  border-color: rgba(200, 155, 60, 0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #211812;
}

.product-body {
  padding: 16px;
}

.product-name {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
}

.product-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-soft);
  background: rgba(200, 155, 60, 0.12);
  border: 1px solid rgba(200, 155, 60, 0.18);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 10px;
}

.product-description {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price-label {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.price-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-soft);
  line-height: 1.3;
}

.add-btn {
  min-width: 132px;
}

.floating-cart {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 22px);
  max-width: 720px;
  background: rgba(23, 17, 13, 0.94);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.floating-cart.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cart-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cart-count {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #d7ae57, #b8882d);
  color: #1a1209;
  font-weight: 800;
}

.cart-mini-text strong {
  display: block;
  font-size: 14px;
}

.cart-mini-text span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.cart-panel .modal-content {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--text);
  overflow: hidden;
}

.cart-panel .modal-header,
.cart-panel .modal-footer {
  border-color: var(--line);
  padding: 18px;
}

.cart-panel .modal-body {
  padding: 18px;
}

.cart-empty {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
}

.cart-item+.cart-item {
  margin-top: 12px;
}

.cart-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  background: #241b15;
}

.cart-item-name {
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-item-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 6px;
}

.cart-item-price,
.cart-promo {
  font-size: 13px;
  color: var(--gold-soft);
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-promo.muted {
  color: var(--muted);
  font-weight: 600;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--line);
}

.qty-value {
  width: 28px;
  text-align: center;
  font-weight: 700;
}

.remove-btn {
  background: transparent;
  border: 0;
  color: #d88d84;
  font-weight: 700;
  font-size: 13px;
  padding: 0;
  margin-top: 8px;
}

.summary-box,
.obs-box,
.delivery-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 8px;
}

.summary-row.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-soft);
}

.form-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
}

.form-select option {
  background: #1a1410;
  color: var(--text);
}

.form-select:focus,
.form-control:focus {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(200, 155, 60, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(200, 155, 60, 0.12);
}

.final-actions {
  display: grid;
  gap: 10px;
}

.final-btn {
  padding: 14px 16px;
  width: 100%;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.final-btn.whatsapp {
  background: #25D366;
  color: #0d2713;
}

.final-btn.instagram {
  background: linear-gradient(90deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: white;
}

.final-btn.copy {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line);
}

.footer-note {
  font-size: 12px;
  text-align: center;
  margin-top: 28px;
}

.small-note {
  font-size: 12px;
  line-height: 1.5;
  margin-top: 10px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .add-btn {
    width: 100%;
  }
}