:root {
  --bg: #ffffff;
  --white: #f6f1ea;
  --icons: #786b63;
  --gold: #b68b2d;
  --text: #3d3232;
  --danger: #b44;
  --border: rgba(182, 139, 45, 0.18);
  --shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  --header-height: 100px;
}

/* =========================================================
   RESET E BASE
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

body.menu-open {
  height: 100vh;
  overflow: hidden;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

main,
section,
header,
footer,
aside,
div,
form {
  min-width: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   HEADER
========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(50px, 1fr) auto minmax(50px, 1fr);
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-bottom: 1px solid rgba(182, 139, 45, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.menu-btn {
  justify-self: start;
}

.logo {
  justify-self: center;
  width: auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: auto;
  height: 138px;
  max-width: 210px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.logo img:hover {
  transform: scale(1.03);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}

.menu-btn,
.cart-btn,
.close-menu,
.close-cart,
.mobile-search-btn {
  position: relative;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--icons);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.cart-btn span {
  position: absolute;
  top: -10px;
  right: -12px;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 12px;
}

.mobile-search-btn {
  display: none;
}

/* =========================================================
   PESQUISA DA HEADER
========================================================= */

.header-search {
  position: relative;
  width: min(300px, 28vw);
  height: 46px;
  display: flex;
  align-items: center;
  min-width: 0;
  background: #ffffff;
  border: 1px solid rgba(182, 139, 45, 0.25);
  border-radius: 30px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.header-search:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(182, 139, 45, 0.1);
}

.header-search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 8px 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
}

.header-search input::placeholder {
  color: #998d86;
}

.header-search input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-submit {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 0 30px 30px 0;
  background: transparent;
  color: var(--gold);
  font-size: 17px;
  cursor: pointer;
}

.search-submit:hover {
  background: rgba(182, 139, 45, 0.08);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(390px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: 440px;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(182, 139, 45, 0.2);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  z-index: 3000;
}

.search-suggestions.active {
  display: block;
}

.search-suggestion-item {
  width: 100%;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #eeeeee;
  transition: background 0.2s ease;
}

.search-suggestion-item:hover {
  background: #faf7f3;
}

.search-suggestion-item img {
  width: 62px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  background: #f7f3ef;
}

.search-suggestion-item div {
  min-width: 0;
}

.search-suggestion-item span {
  display: block;
  margin-bottom: 3px;
  overflow: hidden;
  color: var(--icons);
  font-size: 9px;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.search-suggestion-item strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 19px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-suggestion-item small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-all-results {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

.search-all-results:hover {
  background: #faf7f3;
}

.search-suggestion-empty,
.search-suggestion-loading {
  width: 100%;
  padding: 22px 16px;
  text-align: center;
  color: var(--icons);
  font-size: 13px;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
  position: fixed;
  top: 0;
  left: -330px;
  z-index: 2000;
  width: 320px;
  max-width: 85vw;
  height: 100dvh;
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: left 0.35s ease;
  -webkit-overflow-scrolling: touch;
}

.sidebar.active {
  left: 0;
}

.sidebar h3 {
  margin: 35px 0 20px;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 40px;
}

.sidebar nav a {
  overflow-wrap: anywhere;
  color: var(--icons);
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sidebar-title {
  margin-top: 18px;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(182, 139, 45, 0.25);
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.sidebar-title:first-of-type {
  margin-top: 8px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  background: rgba(0, 0, 0, 0.35);
}

.overlay.active {
  display: block;
}

/* =========================================================
   HERO E BANNERS
========================================================= */

.hero {
  width: 100%;
  padding: 25px 5%;
  background: var(--bg);
}

.hero-content {
  width: 100%;
  max-width: 760px;
  padding: 55px 45px;
  background: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-slider {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  background: #f7f3ef;
  box-shadow: var(--shadow);
}

.hero-track {
  width: 100%;
  display: flex;
  transition: transform 0.45s ease;
}

.hero-slide {
  width: 100%;
  min-width: 100%;
  flex: 0 0 100%;
}

.hero-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* =========================================================
   BOTÕES
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 14px 28px;
  border: 0;
  border-radius: 30px;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.btn.full {
  width: 100%;
}

/* =========================================================
   SEÇÕES E TÍTULOS
========================================================= */

.section {
  width: 100%;
  padding: 75px 6%;
}

.category-section {
  display: none;
}

.category-section.active {
  display: block;
}

.section-title {
  margin-bottom: 42px;
  text-align: center;
}

.section-title span {
  display: block;
  margin-bottom: 6px;
  color: var(--icons);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 46px;
}

.page-header,
.search-page-header {
  width: 100%;
  padding: 55px 18px 10px;
  text-align: center;
}

.page-header span,
.search-page-header span {
  color: var(--icons);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.page-header h1,
.search-page-header h1 {
  margin: 8px 0;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
}

.search-page-header p {
  color: var(--icons);
  font-size: 14px;
}

.empty-message {
  grid-column: 1 / -1;
  width: 100%;
  color: var(--icons);
  font-size: 15px;
  text-align: center;
}

/* =========================================================
   GRADE E CARDS DE PRODUTOS
========================================================= */

.products-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 300px));
  justify-content: center;
  align-items: stretch;
  gap: 28px;
}

.product-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;

  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image {
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #f7f3ef;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  min-width: 0;
  padding: 22px;
  text-align: center;

  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info .btn {
  margin-top: auto;
}

.product-info h3 {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 27px;
}

.price {
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
}

.installment {
  margin: 6px 0 14px;
  color: var(--icons);
  font-size: 13px;
}

.options {
  margin-bottom: 15px;
  overflow-wrap: anywhere;
  color: var(--icons);
  font-size: 13px;
  line-height: 1.6;
}

.free-shipping-note {
  display: block;
  margin-top: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================================
   CARRINHO
========================================================= */

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  justify-content: flex-end;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.45);
}

.cart-modal.active {
  display: flex;
}

.cart-content {
  position: relative;
  width: min(420px, 100%);
  max-width: 100%;
  height: 100dvh;
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
}

.cart-content h2 {
  margin: 0 45px 25px 0;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
}

.close-cart {
  position: absolute;
  top: 24px;
  right: 24px;
}

.cart-item {
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid #eeeeee;
}

.cart-item h4 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  color: var(--text);
}

.cart-item p {
  overflow-wrap: anywhere;
  color: var(--icons);
  font-size: 14px;
}

.remove-item {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
}

.cart-item-with-img {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: flex-start;
  gap: 14px;
}

.cart-item-with-img img {
  width: 80px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  background: #f7f3ef;
}

.cart-total-box {
  width: 100%;
  margin: 22px 0;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-radius: 16px;
  background: #f7f3ef;
  color: var(--text);
  font-size: 18px;
}

.cart-total-box span {
  color: var(--gold);
  font-weight: 700;
}

/* =========================================================
   CHECKOUT
========================================================= */

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 3500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.45);
}

.checkout-modal.active {
  display: flex;
}

.checkout-content {
  position: relative;
  width: min(420px, 100%);
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  padding: 28px;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.checkout-content h2 {
  margin: 0 45px 22px 0;
  overflow-wrap: anywhere;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
}

#checkoutForm {
  width: 100%;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#checkoutForm input,
#checkoutForm textarea,
#checkoutForm select {
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border: 1px solid #dddddd;
  border-radius: 14px;
  outline: 0;
  background: #ffffff;
  font-family: inherit;
}

#checkoutForm textarea {
  min-height: 90px;
  resize: vertical;
}

/* =========================================================
   FRETE
========================================================= */

.frete-box {
  width: 100%;
  margin: 18px 0;
}

.frete-box label {
  display: block;
  margin-bottom: 7px;
  color: var(--icons);
  font-size: 14px;
  font-weight: 600;
}

.frete-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.frete-box input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dddddd;
  border-radius: 14px;
  outline: 0;
  font-family: inherit;
}

.frete-row .btn {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  white-space: nowrap;
}

.frete-box small {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--icons);
  font-size: 13px;
  line-height: 1.4;
}

/* =========================================================
   TOAST
========================================================= */

.site-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 9999;
  width: min(390px, calc(100% - 32px));
  max-width: calc(100% - 32px);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(120px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.site-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-toast-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff3df;
  color: var(--gold);
}

.site-toast strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
}

.site-toast p {
  overflow-wrap: anywhere;
  color: var(--icons);
  font-size: 14px;
  line-height: 1.4;
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  width: 100%;
  padding: 30px 6%;
  background: var(--white);
  color: var(--icons);
  text-align: center;
}

.footer p {
  overflow-wrap: anywhere;
}

.footer div {
  margin-top: 14px;
}

.footer a {
  margin: 0 8px;
  color: var(--icons);
  font-size: 23px;
}

/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 900px) {
  .header {
    gap: 12px;
    padding: 0 20px;
  }

  .header-search {
    width: min(230px, 25vw);
  }

  .section {
    padding-right: 4%;
    padding-left: 4%;
  }
}

/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 768px) {
  :root {
    --header-height: 90px;
  }

  .header {
    height: var(--header-height);
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    gap: 0;
  }

  .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 145px;
    height: var(--header-height);
    transform: translate(-50%, -50%);
  }

  .logo img {
    width: auto;
    height: 116px;
    max-width: 145px;
    object-fit: contain;
  }

  .menu-btn,
  .header-actions {
    position: static;
    z-index: 2;
  }

  .header-actions {
    margin-left: auto;
    gap: 13px;
  }

  .mobile-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-btn,
  .mobile-search-btn,
  .cart-btn {
    font-size: 21px;
  }

  .header-search {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    width: auto;
    max-width: none;
    height: 52px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.16);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .header-search.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-search input {
    padding-left: 18px;
    font-size: 14px;
  }

  .search-submit {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .search-suggestions {
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    max-height: min(430px, calc(100dvh - 180px));
    border-radius: 16px;
  }

  .hero {
    padding: 15px;
  }

  .hero-content {
    padding: 38px 22px;
  }

  .hero-slide img {
    height: 260px;
  }

  .section {
    padding: 55px 18px;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 38px;
  }

  .page-header,
  .search-page-header {
    padding-top: 42px;
  }

  .page-header h1,
  .search-page-header h1 {
    font-size: 38px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .product-card {
    border-radius: 18px;
  }

  .product-image {
    height: 250px;
  }

  .product-info {
    padding: 14px 10px;
  }

  .product-info h3 {
    font-size: 20px;
    line-height: 1.1;
  }

  .price {
    font-size: 16px;
  }

  .installment {
    margin: 4px 0 10px;
    font-size: 11px;
  }

  .options {
    display: none;
  }

  .product-info .btn {
    width: 100%;
    padding: 10px 12px;
    font-size: 12px;
  }

  .cart-content {
    width: min(420px, 100%);
  }
}

/* =========================================================
   CELULARES PEQUENOS
========================================================= */

@media (max-width: 480px) {
  .header {
    padding: 0 13px;
  }

  .logo {
    width: 128px;
  }

  .logo img {
    height: 108px;
    max-width: 128px;
  }

  .header-actions {
    gap: 10px;
  }

  .menu-btn,
  .mobile-search-btn,
  .cart-btn {
    font-size: 20px;
  }

  .cart-btn span {
    top: -9px;
    right: -10px;
    width: 19px;
    height: 19px;
    font-size: 10px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-slide img {
    height: 230px;
  }

  .section {
    padding: 45px 12px;
  }

  .products-grid {
    gap: 10px;
  }

  .product-image {
    height: 240px;
  }

  .product-info {
    padding: 12px 8px;
  }

  .product-info h3 {
    font-size: 18px;
  }

  .price {
    font-size: 15px;
  }

  .search-suggestion-item {
    grid-template-columns: 55px minmax(0, 1fr);
    gap: 10px;
  }

  .search-suggestion-item img {
    width: 55px;
    height: 70px;
  }

  .search-suggestion-item strong {
    font-size: 17px;
  }

  .cart-content,
  .checkout-content {
    width: 100%;
    padding: 22px 18px;
  }

  .cart-item-with-img {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 11px;
  }

  .cart-item-with-img img {
    width: 70px;
    height: 90px;
  }

  .frete-row {
    grid-template-columns: 1fr;
  }

  .frete-row .btn {
    width: 100%;
  }

  .site-toast {
    bottom: 16px;
  }
}

/* =========================================================
   TELAS MUITO PEQUENAS
========================================================= */

@media (max-width: 360px) {
  .header {
    padding: 0 10px;
  }

  .logo {
    width: 112px;
  }

  .logo img {
    height: 98px;
    max-width: 112px;
  }

  .header-actions {
    gap: 8px;
  }

  .menu-btn,
  .mobile-search-btn,
  .cart-btn {
    font-size: 18px;
  }

  .section {
    padding-right: 9px;
    padding-left: 9px;
  }

  .products-grid {
    gap: 8px;
  }

  .product-image {
    height: 210px;
  }

  .product-info h3 {
    font-size: 17px;
  }

  .price {
    font-size: 14px;
  }
}