:root {
  --bg: #07111f;
  --bg-soft: #0d1a2c;
  --card: rgba(10, 23, 40, 0.92);
  --card-2: rgba(14, 31, 53, 0.96);
  --text: #f5f7fb;
  --muted: #a9b7cb;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #ff2ca8;
  --primary-2: #7a5cff;
  --accent: #22d3ee;
  --success: #31d0aa;
  --warning: #ffd84d;
  --danger: #ff6b81;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --transition: all 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 44, 168, 0.25), transparent 24%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 22%),
    linear-gradient(180deg, #050b16 0%, #091322 100%);
  min-height: 100vh;
}

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 38px;
  background:
    linear-gradient(135deg, rgba(255, 44, 168, 0.22), rgba(122, 92, 255, 0.12) 50%, rgba(34, 211, 238, 0.18)),
    url("LOGO PLATAFORMAS/PANDA-LOGO.jpeg") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.58);
  backdrop-filter: blur(3px);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  padding: 6px;
  box-shadow: var(--shadow);
}

.brand-box h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}

.brand-box p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-text h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.hero-text p {
  margin: 0;
  max-width: 780px;
  color: #d9e3ef;
  line-height: 1.65;
}

.hero-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-rules span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 999px;
  color: #eef5ff;
  font-size: 0.93rem;
}

.layout {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 26px;
  padding: 28px 0 42px;
}

.catalog-section,
.cart-section {
  min-width: 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.7rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.filter-box {
  width: min(320px, 100%);
}

.filter-box input {
  width: 100%;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: var(--transition);
}

.filter-box input:focus {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

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

.product-card {
  background: linear-gradient(180deg, rgba(12, 26, 46, 0.95), rgba(8, 18, 31, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 44, 168, 0.26);
}

.product-logo {
  height: 150px;
  padding: 20px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at center, rgba(122, 92, 255, 0.18), transparent 55%);
  border-bottom: 1px solid var(--line);
}

.product-logo img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

.product-body {
  padding: 18px 18px 16px;
}

.product-name {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.product-desc {
  margin: 0 0 16px;
  min-height: 42px;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.45;
}

.option-group {
  margin-bottom: 12px;
}

.option-group label {
  display: block;
  font-size: 0.87rem;
  color: #dce6f2;
  margin-bottom: 7px;
}

.option-group select,
.option-group input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #061120;
  color: var(--text);
  outline: none;
}

.option-group select:focus,
.option-group input:focus {
  border-color: rgba(255, 44, 168, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 44, 168, 0.1);
}

.price-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 13px 14px;
  margin: 14px 0;
}

.price-preview small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.price-preview strong {
  font-size: 1.25rem;
  color: var(--warning);
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.8rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.14);
  color: #dffbff;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  width: 100%;
  box-shadow: 0 10px 20px rgba(122, 92, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cart-card {
  background: linear-gradient(180deg, rgba(10, 24, 43, 0.98), rgba(7, 16, 29, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sticky {
  position: sticky;
  top: 18px;
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.badge {
  min-width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--primary-2));
  color: #08121e;
  font-weight: 800;
  border-radius: 999px;
}

.cart-info {
  padding: 14px 14px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 18px;
}

.cart-info p {
  margin: 0 0 10px;
}

.cart-info ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 2px;
}

.empty-cart {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px dashed var(--line);
}

.cart-item {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.cart-item h4 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.cart-item-price {
  font-weight: 800;
  color: var(--warning);
  white-space: nowrap;
}

.remove-btn {
  margin-top: 10px;
  background: rgba(255, 107, 129, 0.12);
  border: 1px solid rgba(255, 107, 129, 0.25);
  color: #ffd3da;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
}

.remove-btn:hover {
  background: rgba(255, 107, 129, 0.18);
}

.summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 8px 0 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: #e9f1fb;
}

.summary-row.discount strong {
  color: var(--success);
}

.summary-row.total {
  margin-top: 5px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 1.08rem;
}

.cart-message {
  min-height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  padding: 0;
  font-size: 0.93rem;
}

.cart-message.show {
  padding: 12px 14px;
  border: 1px solid transparent;
}

.cart-message.error.show {
  color: #ffd9df;
  background: rgba(255, 107, 129, 0.11);
  border-color: rgba(255, 107, 129, 0.2);
}

.cart-message.success.show {
  color: #dffbf4;
  background: rgba(49, 208, 170, 0.11);
  border-color: rgba(49, 208, 170, 0.2);
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 20px, 1200px);
  }

  .hero {
    padding: 34px 0 24px;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .brand-box {
    align-items: flex-start;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}