:root {
--bg-page: #CED6E38C;
--bg-card: #ffffff;
--bg-sidebar: #ffffff;

--primary: #00bfff;
--secondary: #6a4cff;

--text-main: #1f2937;
--text-muted: #6b7280;

--border-soft: #8230c3;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  background: var(--bg-page);
  color: var(--text-main);
}

/* TOPBAR */
.topbar {
  height: 72px;
  background: #fff;
  border-top: solid 1px #CED6E3;
  border-bottom: 2px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  margin: 0 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

nav a.active {
  color: var(--primary);
}

.actions {
  display: flex;
  gap: 8px;
}

.actions input {
  border: 1px solid var(--border-soft);
  padding: 8px 12px;
  border-radius: 6px;
}

.cart {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
}

/* LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 32px;
}

/* SIDEBAR */
.sidebar {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 24px;
}

.sidebar h4 {
  margin-bottom: 16px;
}

.cat {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  color: var(--text-main);
  text-decoration: none;
}

.cat.active,
.cat:hover {
  background: var(--primary);
  color: #fff;
}

.see-all {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  border: none;
  background: var(--secondary);
  color: #fff;
  border-radius: 8px;
}

/* CONTENT */
.catalog-header {
  margin-bottom: 32px;
}

.catalog-header span {
  color: var(--primary);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* PRODUCT CARD */
.product {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.product img {
  width: 100%;
  margin-bottom: 12px;
}

.product button {
  margin-top: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px;
  width: 100%;
  border-radius: 8px;
}

.badge {
  position: absolute;
  background: var(--primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.product-image img {
  width: 100%;
}

.product-info h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.desc {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.price-box strong {
  font-size: 2rem;
  color: var(--primary);
}

.features {
  margin-top: 24px;
  list-style: none;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.cart-item img {
  width: 80px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin: 32px 0;
  font-size: 1.2rem;
}
.checkout-form {
  max-width: 520px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.field label {
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.field input {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}
.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}
.product-gallery {
  max-width: 820px;
  width: 100%;
  margin-left: 20px;
  margin-top: 20px;
}

/* SLIDER PRINCIPAL */
.main-swiper {
  width: 100%;
  height: 520px;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.main-swiper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ISSO evita imagem quebrada */
}

/* ZOOM */
.zoom-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.zoom-container img {
  transition: transform 0.4s ease;
}

@media (hover: hover) {
  .zoom-container:hover img {
    transform: scale(1.5);
    cursor: zoom-in;
  }
}

/* MINIATURAS */
.thumb-swiper {
  margin-top: 12px;
  height: 150px;
}

.thumb-swiper .swiper-slide {
  width: 80px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.thumb-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-swiper .swiper-slide-thumb-active {
  border-color: #7b3fe4; /* roxo do logo */
}

/* SETAS */
.swiper-button-next,
.swiper-button-prev {
  color: #7b3fe4;
}

/* MOBILE */
@media (max-width: 768px) {
  .main-swiper {
    height: 380px;
  }
}
