:root {
  --bg: #090606;
  --panel: #181011;
  --panel-soft: #261715;
  --text: #fff0e3;
  --muted: #d2b8a0;
  --primary: #ff7b22;
  --primary-strong: #e83f17;
  --glow: rgba(255, 108, 41, 0.45);
  --gold: #ffca76;
  --border: #773620;
  --hero-bg-image: url("../img/hero-bg.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Rajdhani", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 148, 73, 0.24) 0%, transparent 45%),
    linear-gradient(180deg, #130a09 0%, #090606 48%, #0b0606 100%);
  background-attachment: fixed;
}

.theme-mu {
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

.theme-mu::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 4, 4, 0.4), rgba(6, 4, 4, 0.78)),
    var(--hero-bg-image) center top / cover no-repeat fixed;
  transform: scale(1.02);
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(95px);
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: #f85f22;
  left: -60px;
  top: 70px;
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-2 {
  width: 340px;
  height: 340px;
  background: #ffae4f;
  right: -90px;
  top: 300px;
  animation: floatOrb 11s ease-in-out infinite reverse;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#catalogo {
  border: 1px solid rgba(255, 162, 109, 0.32);
  border-radius: 20px;
  margin-top: -148px;
  padding: 6px 20px 0;
  background:
    linear-gradient(180deg, rgba(22, 14, 12, 0.58), rgba(13, 9, 9, 0.74));
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 212, 171, 0.14);
  backdrop-filter: blur(7px);
}

.hero {
  position: relative;
  min-height: 60vh;
  display: grid;
  place-items: start center;
  border-bottom: 0;
  margin-bottom: 0;
  padding: 24px 0 0;
  background: transparent;
  box-shadow: none;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 6px 22px 6px;
  max-width: 760px;
}

.badge {
  margin: 0 auto 14px;
  width: fit-content;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #ffcf8f;
  color: #211003;
  font-weight: 700;
  background: linear-gradient(180deg, #ffe0a1, #fba944);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(2.4rem, 7.2vw, 4.8rem);
  letter-spacing: 1.4px;
  line-height: 1.02;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.46), 0 0 24px rgba(255, 129, 56, 0.22);
}

.subtitle {
  margin: 12px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  color: #e6cbb4;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.btn {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 26px rgba(251, 95, 34, 0.4);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.section-head {
  margin-top: -12px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: 0.8px;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head::after {
  content: "";
  width: 96px;
  height: 2px;
  display: block;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 167, 98, 0.95), transparent);
}

.filters {
  margin: 2px 0 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid #7e4327;
  border-radius: 999px;
  background: rgba(35, 21, 19, 0.82);
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 9px 16px;
  cursor: pointer;
  transition: 0.25s ease;
}

.chip:hover {
  transform: translateY(-2px);
}

.chip.active {
  color: #1b0802;
  border-color: #ffca8f;
  background: linear-gradient(180deg, #ffd59f, #ff9f3f);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
  padding-bottom: 70px;
}

.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(194, 112, 74, 0.42);
  background: linear-gradient(180deg, rgba(30, 19, 16, 0.76), rgba(16, 10, 9, 0.84));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(3px);
  transform-origin: top center;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease, background 0.32s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: #ce7647;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.52);
}

.card.selected {
  z-index: 3;
  transform: translateY(-6px) scale(1.012);
  border-color: rgba(255, 202, 143, 0.72);
  background: linear-gradient(180deg, rgba(35, 21, 18, 0.95), rgba(18, 11, 10, 0.98));
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 202, 143, 0.3);
  animation: selectedPulse 0.45s ease;
}

.image-btn {
  border: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
  background: transparent;
}

.card-image-wrap {
  position: relative;
  height: 205px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.6s ease;
}

.image-btn:hover .card-image {
  transform: scale(1.07);
}

.shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 45%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.8s ease;
}

.image-btn:hover .shine {
  transform: translateX(120%);
}

.type-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 203, 141, 0.75);
  background: rgba(13, 8, 7, 0.72);
  color: #ffd8ac;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  gap: 8px;
}

.product-name {
  margin: 0 0 6px;
  font-family: "Cinzel", serif;
  font-size: 1.33rem;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  min-height: 52px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 2px;
}

.final-price {
  font-size: 1.24rem;
  font-weight: 700;
  color: #ffdea9;
}

.old-price {
  color: #c49f87;
  text-decoration: line-through;
}

.discount-pill {
  margin-left: auto;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2f0f00;
  background: #ffbf61;
}

.btn-buy {
  flex: 1;
  padding: 11px 12px;
  color: #fff;
  background: linear-gradient(180deg, #ff8d2b, #db3f17);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-buy:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.product-builder {
  display: none;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-configure {
  flex: 1;
  padding: 11px 12px;
  color: #eedbc9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 214, 173, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.btn-configure:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 173, 0.3);
  filter: brightness(1.05);
}

.card.selected .btn-configure {
  color: #2a1205;
  border-color: rgba(255, 214, 173, 0.7);
  background: linear-gradient(180deg, #ffe0b7, #f4a44c);
}

.empty {
  grid-column: 1 / -1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #1d1211;
  padding: 26px;
  text-align: center;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 5, 5, 0.84);
  backdrop-filter: blur(5px);
  z-index: 40;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lightbox-panel {
  position: relative;
  width: min(1080px, 100%);
  background: linear-gradient(180deg, rgba(24, 15, 13, 0.98), rgba(13, 9, 9, 0.98));
  border: 1px solid rgba(255, 187, 120, 0.35);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62);
  animation: lightboxIn 0.34s ease;
}

.lightbox-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-height: min(78vh, 760px);
}

.lightbox-visual {
  position: relative;
  padding: 18px;
  background:
    radial-gradient(circle at top, rgba(255, 185, 115, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    rgba(14, 10, 10, 0.76);
}

.lightbox-image-stage {
  position: relative;
}

.lightbox img {
  width: 100%;
  height: min(62vh, 620px);
  border-radius: 18px;
  object-fit: cover;
  display: block;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.lightbox-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #ffe3c1;
}

.lightbox-type {
  border: 1px solid rgba(255, 213, 162, 0.3);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: #ffd6aa;
  background: rgba(255, 255, 255, 0.03);
}

#lightboxName {
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.12;
}

.lightbox-headline {
  margin: 0;
  font-size: 1.02rem;
  color: #ffce96;
  font-weight: 700;
}

.lightbox-description {
  margin: -4px 0 0;
  color: #d2b9a3;
  line-height: 1.5;
}

.lightbox-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lightbox-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 213, 162, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.lightbox-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #b7997e;
}

.lightbox-stat-value {
  color: #fff2df;
  font-size: 1rem;
}

.lightbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lightbox-tag {
  border: 1px solid rgba(255, 213, 162, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #e7caa8;
  font-size: 0.78rem;
}

.lightbox-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox-options-title {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #d8b593;
}

.lightbox-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lightbox-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 213, 162, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: #ecd6c2;
  line-height: 1.35;
  animation: revealOption 0.35s ease both;
}

.lightbox-option-mark {
  color: #ffbc71;
  font-size: 0.8rem;
  line-height: 1.4;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 8px;
}

.lightbox-price {
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffdfa9;
}

.lightbox-buy {
  min-width: 180px;
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid rgba(255, 213, 162, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(12, 8, 8, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 191, 120, 0.5) rgba(255, 255, 255, 0.04);
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 8px;
}

.lightbox-thumbs::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.lightbox-thumbs::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(255, 188, 113, 0.7), rgba(219, 63, 23, 0.75));
  border-radius: 999px;
}

.lightbox-thumb {
  flex: 0 0 88px;
  padding: 4px;
  border: 1px solid rgba(255, 213, 162, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.78;
  transition: transform 0.22s ease, opacity 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 64px;
  border-radius: 10px;
  box-shadow: none;
}

.lightbox-thumb:hover {
  transform: translateY(-2px);
  opacity: 0.96;
  border-color: rgba(255, 213, 162, 0.3);
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: rgba(255, 213, 162, 0.64);
  box-shadow: 0 0 0 1px rgba(255, 213, 162, 0.18), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 213, 162, 0.22);
  border-radius: 999px;
  background: rgba(15, 9, 9, 0.82);
  color: #ffe1c0;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 213, 162, 0.26);
  border-radius: 999px;
  background: rgba(15, 9, 9, 0.72);
  color: #ffe0bc;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transform: translateY(-50%);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lightbox-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.04);
  border-color: rgba(255, 213, 162, 0.48);
  background: rgba(20, 12, 10, 0.88);
}

.lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes selectedPulse {
  0% {
    transform: translateY(-4px) scale(0.985);
  }
  60% {
    transform: translateY(-9px) scale(1.018);
  }
  100% {
    transform: translateY(-6px) scale(1.012);
  }
}

@keyframes revealOption {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-22px) translateX(12px);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 48vh;
    padding: 14px 0 0;
  }
  #catalogo {
    margin-top: -104px;
    padding: 6px 12px 0;
  }
  .hero-content {
    padding: 4px 14px 6px;
  }
  .card-image-wrap {
    height: 190px;
  }
  .lightbox-body {
    grid-template-columns: 1fr;
  }
  .lightbox-info {
    padding: 18px 16px 16px;
  }
  .lightbox img {
    height: 42vh;
  }
  .lightbox-stats,
  .lightbox-options {
    grid-template-columns: 1fr;
  }
  .lightbox-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .lightbox-buy {
    width: 100%;
  }
  .lightbox-nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .lightbox-prev {
    left: 16px;
  }
  .lightbox-next {
    right: 16px;
  }
  .card-actions {
    flex-direction: column;
  }
}
