/* =========================================
   RESET
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #fffaf8;
  color: #332a2b;
  transition: 0.3s;
}

body.dark {
  background: #211b1d;
  color: #f8eeee;
}

img {
  width: 100%;
  display: block;
}

button,
input {
  font-family: inherit;
}

button {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1150px, 92%);
  margin: auto;
}

.section {
  padding: 100px 0;
}

/* =========================================
   HEADER
========================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 248, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #eee0e0;
}

.dark .header {
  background: rgba(33, 27, 29, 0.95);
  border-color: #403638;
}

.navbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo span {
  font-family: "DM Serif Display", serif;
  font-size: 28px;
  letter-spacing: 2px;
}

.logo small {
  font-size: 9px;
  letter-spacing: 5px;
  text-align: center;
  margin-top: 5px;
}

.nav {
  display: flex;
  gap: 35px;
}

.nav a {
  font-size: 13px;
  font-weight: 500;
  transition: 0.3s;
}

.nav a:hover {
  color: #b77b8b;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.cart-btn,
.menu-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  width: 40px;
  height: 40px;
  position: relative;
  color: inherit;
}

.cart-btn span {
  position: absolute;
  top: 0;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #b77b8b;
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.menu-btn {
  display: none;
}

/* =========================================
   SEARCH
========================================= */

.search-box {
  display: none;
  padding: 15px 0;
  background: #fff;
  border-top: 1px solid #eee0e0;
}

.search-box.active {
  display: block;
}

.search-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.search-content input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #c9aeb5;
  padding: 12px;
  outline: none;
  background: transparent;
  color: inherit;
}

.search-content button {
  border: none;
  background: none;
  font-size: 22px;
}

/* =========================================
   HERO
========================================= */

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  background: #f4e5e1;
  overflow: hidden;
}

.dark .hero {
  background: #32282a;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-text .subtitle,
.section-title span,
.about-text > span,
.promo span {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 600;
  color: #b77b8b;
}

.hero h1 {
  font-family: "DM Serif Display", serif;
  font-size: clamp(55px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  margin: 20px 0;
}

.hero h1 span {
  display: block;
  color: #b77b8b;
}

.hero p {
  max-width: 470px;
  line-height: 1.8;
  color: #665b5d;
  margin-bottom: 30px;
}

.dark .hero p {
  color: #d5cacc;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 25px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  transition: 0.3s;
}

.btn.primary {
  background: #b77b8b;
  color: white;
}

.btn.primary:hover {
  background: #965d6e;
  transform: translateY(-2px);
}

.btn.secondary {
  border: 1px solid #b77b8b;
  color: #8e5c6a;
}

.btn.secondary:hover {
  background: #b77b8b;
  color: white;
}

.hero-image {
  position: relative;
  height: 570px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 430px;
  height: 520px;
  object-fit: cover;
  border-radius: 220px 220px 10px 10px;
  position: relative;
  z-index: 2;
}

.hero-circle {
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: #e8c7c7;
  position: absolute;
}

/* =========================================
   BENEFITS
========================================= */

.benefits {
  background: #fff;
  border-bottom: 1px solid #eee0e0;
}

.dark .benefits {
  background: #292224;
  border-color: #403638;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 0;
}

.benefit {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 15px 20px;
  border-right: 1px solid #eee0e0;
}

.dark .benefit {
  border-color: #403638;
}

.benefit:last-child {
  border: none;
}

.benefit i {
  font-size: 25px;
  color: #b77b8b;
}

.benefit h3 {
  font-size: 13px;
  margin-bottom: 4px;
}

.benefit p {
  font-size: 10px;
  color: #817477;
}

/* =========================================
   TITLES
========================================= */

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title.left {
  text-align: left;
  margin-bottom: 0;
}

.section-title h2 {
  font-family: "DM Serif Display", serif;
  font-size: 46px;
  font-weight: 400;
  margin: 10px 0;
}

.section-title p {
  color: #817477;
  font-size: 13px;
}

/* =========================================
   CATEGORIES
========================================= */

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.category-card {
  border: 1px solid #eadbdd;
  background: white;
  padding: 30px 15px;
  text-align: center;
  transition: 0.3s;
  color: inherit;
}

.dark .category-card {
  background: #292224;
  border-color: #403638;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: #b77b8b;
}

.category-icon {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #f4e5e1;
  color: #b77b8b;
  display: grid;
  place-items: center;
  margin: auto auto 15px;
  font-size: 22px;
}

.category-card h3 {
  font-size: 14px;
  margin-bottom: 7px;
}

.category-card span {
  font-size: 10px;
  color: #b77b8b;
}

/* =========================================
   PRODUCTS
========================================= */

.products {
  background: #f8efed;
}

.dark .products {
  background: #261f21;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 45px;
  gap: 30px;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter {
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-size: 11px;
  color: #77696c;
}

.filter.active {
  color: #b77b8b;
  font-weight: 600;
  border-bottom: 1px solid #b77b8b;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  background: #fff;
  transition: 0.3s;
}

.dark .product-card {
  background: #30282a;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  height: 360px;
  position: relative;
  overflow: hidden;
  background: #eee;
}

.product-image img {
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  background: #b77b8b;
  color: white;
  padding: 6px 10px;
  font-size: 9px;
  letter-spacing: 1px;
}

.badge.sale {
  background: #6e4d55;
}

.favorite {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #b77b8b;
  z-index: 2;
}

.product-info {
  padding: 22px;
}

.product-category {
  color: #b77b8b;
  font-size: 9px;
  letter-spacing: 2px;
}

.product-info h3 {
  font-family: "DM Serif Display", serif;
  font-size: 24px;
  font-weight: 400;
  margin: 6px 0;
}

.product-info p {
  color: #817477;
  font-size: 11px;
  line-height: 1.6;
}

.rating {
  color: #b77b8b;
  font-size: 12px;
  margin: 13px 0;
}

.rating small {
  color: #999;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-bottom strong {
  font-size: 17px;
}

.add-cart {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #b77b8b;
  color: white;
  transition: 0.3s;
}

.add-cart:hover {
  transform: scale(1.1);
}

/* =========================================
   PROMO
========================================= */

.promo {
  padding: 100px 0;
  background: #d8b5b8;
  color: #3a292d;
}

.promo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.promo h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 55px;
  max-width: 650px;
  margin: 15px 0;
}

.promo p {
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.promo-decoration {
  font-size: 180px;
  opacity: 0.25;
}

/* =========================================
   ABOUT
========================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  height: 520px;
  object-fit: cover;
}

.about-text h2 {
  font-family: "DM Serif Display", serif;
  font-size: 54px;
  line-height: 1;
  font-weight: 400;
  margin: 20px 0;
}

.about-text p {
  color: #817477;
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 15px;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #b77b8b;
  font-size: 12px;
  font-weight: 600;
  margin-top: 20px;
}

/* =========================================
   INSTAGRAM
========================================= */

.instagram {
  background: #f8efed;
}

.dark .instagram {
  background: #261f21;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.instagram-grid div {
  height: 280px;
  overflow: hidden;
}

.instagram-grid img {
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.instagram-grid div:hover img {
  transform: scale(1.08);
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: #302528;
  color: white;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 50px;
  padding-bottom: 60px;
}

.footer-brand p {
  color: #c8babc;
  font-size: 12px;
  line-height: 1.8;
  max-width: 300px;
  margin: 20px 0;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 38px;
  height: 38px;
  border: 1px solid #65565a;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: 0.3s;
}

.social a:hover {
  background: #b77b8b;
  border-color: #b77b8b;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h3 {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-column a,
.footer-column p {
  color: #c8babc;
  font-size: 11px;
}

.footer-column a:hover {
  color: white;
}

.footer-column p {
  display: flex;
  gap: 8px;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid #493b3e;
  text-align: center;
  padding: 20px;
  color: #9d8c90;
  font-size: 10px;
}

/* =========================================
   CARRINHO
========================================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart {
  position: fixed;
  right: -430px;
  top: 0;
  height: 100vh;
  width: min(420px, 90%);
  background: white;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: 0.4s;
}

.dark .cart {
  background: #30282a;
}

.cart.active {
  right: 0;
}

.cart-header {
  padding: 25px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee0e0;
}

.cart-header button {
  border: none;
  background: none;
  font-size: 20px;
  color: inherit;
}

.cart-items {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.empty-cart {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.empty-cart i {
  font-size: 45px;
  color: #b77b8b;
  margin-bottom: 20px;
}

.empty-cart h3 {
  font-size: 16px;
}

.empty-cart p {
  color: #888;
  font-size: 12px;
  margin-top: 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee0e0;
}

.cart-item h4 {
  font-size: 13px;
}

.cart-item p {
  font-size: 12px;
  color: #b77b8b;
  margin-top: 5px;
}

.remove-item {
  border: none;
  background: none;
  color: #999;
}

.cart-footer {
  padding: 25px;
  border-top: 1px solid #eee0e0;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.checkout-btn {
  width: 100%;
  border: none;
  padding: 15px;
  background: #25d366;
  color: white;
  font-weight: 600;
  border-radius: 4px;
}

.checkout-btn i {
  margin-left: 8px;
}

/* =========================================
   WHATSAPP
========================================= */

.whatsapp {
  position: fixed;
  right: 25px;
  bottom: 25px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

/* =========================================
   RESPONSIVIDADE
========================================= */

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 82px;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    flex-direction: column;
    padding: 25px;
    gap: 20px;
    border-bottom: 1px solid #eee0e0;
  }

  .dark .nav {
    background: #211b1d;
  }

  .nav.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .hero-content,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 70px 0;
  }

  .hero-image {
    height: 450px;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit {
    border-bottom: 1px solid #eee0e0;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .section {
    padding: 70px 0;
  }

  .logo span {
    font-size: 23px;
  }

  .header-actions {
    gap: 2px;
  }

  .hero h1 {
    font-size: 55px;
  }

  .hero-image img {
    width: 300px;
    height: 400px;
  }

  .hero-circle {
    width: 330px;
    height: 330px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .benefit {
    border-right: none;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .section-title h2 {
    font-size: 38px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 390px;
  }

  .promo h2 {
    font-size: 40px;
  }

  .promo-decoration {
    display: none;
  }

  .about-grid {
    gap: 40px;
  }

  .about-text h2 {
    font-size: 42px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-grid div {
    height: 200px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp {
    width: 52px;
    height: 52px;
    right: 18px;
    bottom: 18px;
  }
}
