:root {
  --bg: #f6f2ea;
  --bg-soft: #fbf8f2;
  --ink: #1b1b1b;
  --muted: #6b6b6b;
  --accent: #e07a5f;
  --accent-dark: #c65f45;
  --card: #ffffff;
  --line: #e4ded4;
  --shadow: 0 18px 60px rgba(19, 16, 11, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffffff 0%, var(--bg) 45%, #efe7dc 100%);
}

h1, h2, h3, h4 {
  font-family: "DM Serif Display", "Space Grotesk", serif;
  margin: 0;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

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

.primary {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(224, 122, 95, 0.25);
}

.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(224, 122, 95, 0.35);
}

.primary.small {
  padding: 10px 14px;
  font-size: 14px;
}

.ghost {
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
}

.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 28px 40px 60px;
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--bg-soft);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
  display: grid;
  gap: 10px;
}

.filter {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
}

.filter.active,
.filter:hover {
  border-color: var(--line);
  background: #fff;
}

.promo {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent);
}

.hero-text h2 {
  font-size: 42px;
  margin: 12px 0 16px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 16px;
}

.image-placeholder {
  height: 280px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff;
}

.accent-card {
  padding: 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 18px;
}

.catalogo .section-title h3,
.personalizado .section-title h3,
.sobre .section-title h3 {
  font-size: 28px;
}

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

.card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  background: repeating-linear-gradient(45deg, #f4efe6, #f4efe6 10px, #f0e9dd 10px, #f0e9dd 20px);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 500;
  overflow: hidden;
  width: min(100%, 512px);
  aspect-ratio: 1 / 1;
  justify-self: center;
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.thumbs {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
}

.thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  padding: 0;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
}

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

.thumb.active {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.color-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: -4px;
}

.whats-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-body {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 600;
}

.colors {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: grid;
  place-items: center;
  background: var(--swatch);
}

.swatch input {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.swatch input:checked {
  background: rgba(255, 255, 255, 0.9);
}

.card-actions {
  display: grid;
  gap: 8px;
}

.personalizado,
.sobre {
  margin-top: 50px;
}

.custom-form {
  background: #fff;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

input, textarea {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-family: inherit;
}

label.full {
  grid-column: 1 / -1;
}

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

.info-card {
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.cart {
  position: sticky;
  top: 100px;
  align-self: start;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  gap: 16px;
  max-height: 80vh;
  overflow: hidden;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.cart-item .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.qty button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}

.cart-summary {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 10px;
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-summary .total strong {
  font-size: 18px;
}

.footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .cart {
    position: fixed;
    right: 24px;
    bottom: 24px;
    top: auto;
    width: min(360px, 92vw);
    transform: translateY(120%);
    transition: transform 0.3s ease;
  }

  .cart.open {
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-links a {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
  }

  .actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .actions .primary,
  .actions .ghost {
    flex: 1 1 180px;
    text-align: center;
  }

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

  .sidebar {
    position: relative;
    top: 0;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    text-align: center;
  }

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

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

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

@media (max-width: 720px) {
  .layout {
    gap: 18px;
  }

  .sidebar {
    padding: 18px;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter {
    width: auto;
  }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .card-actions .ghost {
    text-align: center;
  }

  .thumbs {
    gap: 6px;
    padding: 6px 8px;
  }

  .thumb {
    width: 28px;
    height: 28px;
  }

  .cart {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-height: 70vh;
  }
}
@media (max-width: 600px) {
  .topbar {
    padding: 16px;
  }

  .layout {
    padding: 16px;
    padding-bottom: 120px;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .image-placeholder {
    height: 220px;
  }

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

  .thumbs {
    left: 50%;
    transform: translateX(-50%);
  }

  .cart {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 75vh;
    border-radius: 18px 18px 0 0;
  }
}


