@import url("https://fonts.googleapis.com/css2?family=Jolly+Lodger&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "Xilosa";
  src: url("../fontes/xilosa_.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* =========================================================
   PRODUTO — CERRADENSE
   ========================================================= */


/* =========================================================
   PÁGINA DO PRODUTO
   ========================================================= */

.product-page {
  min-height: calc(100vh - 74px);

  padding: 70px 6% 90px;

  background: var(--creme);
}


.product-container {
  max-width: 1250px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: 1.05fr .95fr;

  gap: 70px;

  align-items: start;
}


/* =========================================================
   GALERIA
   ========================================================= */

.product-gallery {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 14px;
}


.product-photo {
  width: 100%;

  aspect-ratio: .78;

  object-fit: cover;

  display: block;

  background: #e9dfce;
}


/* =========================================================
   INFORMAÇÕES DO PRODUTO
   ========================================================= */

.product-info {
  padding-top: 15px;
}


.product-label {
  font-family: "Jolly Lodger", cursive;
  font-size: 20px;
  letter-spacing: .08em;
  font-weight: 400;
  margin-bottom: 18px;
  color: #BE8220;
  text-transform: uppercase;
}


.product-title {
  font-family: "Xilosa", sans-serif;
  font-synthesis: none;
  font-size: clamp(42px, 5vw, 64px);
  line-height: .95;
  font-weight: 400;
  color: #510F02;
  margin-bottom: 18px;
  text-transform: uppercase;
}


.product-description {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  line-height: 1.35;
  max-width: 480px;
  margin-bottom: 25px;
  color: #510F02;
  font-weight: 400;
}


/* =========================================================
   PREÇO
   ========================================================= */

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  font-family: "Space Grotesk", sans-serif;
}

.product-price-original {
  font-size: 17px;
  font-weight: 400;
  color: rgba(81, 15, 2, .58);
  text-decoration: line-through;
}

.product-price-current {
  font-size: 24px;
  font-weight: 600;
  color: #510F02;
}


/* =========================================================
   OPÇÕES
   ========================================================= */

.option {
  margin-bottom: 28px;
}


.option-title {
  font-family: "Jolly Lodger", cursive;
  font-size: 17px;

  font-weight: 400;

  letter-spacing: .08em;

  margin-bottom: 12px;

  text-transform: uppercase;

  color: #510F02;
}


/* =========================================================
   CORES
   ========================================================= */

.color-options {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}


.color-button {
  font-family: "Space Grotesk", sans-serif;
  border: 1px solid #510F02;

  background: transparent;

  color: #510F02;

  padding: 11px 18px;

  cursor: pointer;

  font-size: 12px;

  letter-spacing: .05em;

  transition: .2s ease;
}


.color-button:hover {
  border-color: #510F02;
}


.color-button.active {
  background: #510F02;

  color: #F2E4C9;

  border-color: #510F02;
}


/* =========================================================
   TAMANHOS
   ========================================================= */

.size-options {
  display: flex;

  flex-wrap: wrap;

  gap: 9px;
}


.size-button {
  font-family: "Space Grotesk", sans-serif;
  width: 48px;

  height: 42px;

  border: 1px solid #510F02;

  background: transparent;

  color: #510F02;

  cursor: pointer;

  font-size: 12px;

  transition: .2s ease;
}


.size-button:hover {
  border-color: #510F02;
}


.size-button.active {
  background: #510F02;

  color: #F2E4C9;

  border-color: #510F02;
}


/* =========================================================
   QUANTIDADE
   ========================================================= */

.quantity-wrapper {
  display: flex;

  align-items: center;

  width: fit-content;

  border: 1px solid #510F02;
}


.quantity-button {
  font-family: "Space Grotesk", sans-serif;
  width: 42px;

  height: 42px;

  border: none;

  background: transparent;

  color: #510F02;

  cursor: pointer;

  font-size: 18px;
}


.quantity-button:hover {
  background: rgba(81, 15, 2, .07);
}


.quantity-value {
  font-family: "Space Grotesk", sans-serif;
  width: 42px;

  text-align: center;

  font-size: 14px;

  font-weight: 600;

  color: #510F02;
}


/* =========================================================
   GUIA DE TAMANHO — BOTÃO
   ========================================================= */

.size-guide-button {
  font-family: "Jolly Lodger", cursive;
  margin-top: 13px;

  border: none;

  background: transparent;

  padding: 0;

  color: #510F02;

  text-decoration: underline;

  cursor: pointer;

  font-size: 15px;
}


/* =========================================================
   BOTÃO ADICIONAR À SACOLA
   ========================================================= */

.add-to-cart {
  font-family: "Jolly Lodger", cursive;
  width: 100%;

  padding: 17px 20px;

  margin-top: 8px;

  border: none;

  background: #510F02;

  color: #F2E4C9;

  cursor: pointer;

  font-size: 18px;

  font-weight: 400;

  letter-spacing: .08em;

  transition: .2s ease;
}


.add-to-cart:hover {
  background: #510F02;
}


/* =========================================================
   MENSAGEM DE CONFIRMAÇÃO
   ========================================================= */

.cart-feedback {
  min-height: 20px;

  margin-top: 12px;

  font-size: 12px;

  line-height: 1.5;

  color: var(--marrom);

  opacity: 0;

  transition: opacity .2s ease;
}


.cart-feedback.show {
  opacity: 1;
}


/* =========================================================
   DETALHES DO PRODUTO
   ========================================================= */

.product-details {
  margin-top: 35px;

  border-top: 1px solid rgba(83, 28, 19, .2);

  padding-top: 25px;
}


.product-details h3 {
  font-family: "Jolly Lodger", cursive;
  color: #510F02;
  font-size: 17px;

  letter-spacing: .08em;

  text-transform: uppercase;

  margin-bottom: 17px;
}


.details-list {
  font-family: "Space Grotesk", sans-serif;
  color: #510F02;
  list-style: none;

  display: grid;

  gap: 10px;

  font-size: 13px;

  line-height: 1.5;
}


.details-list strong {
  font-weight: 700;
  color: #510F02;
}


/* =========================================================
   MODAL — GUIA DE TAMANHO
   ========================================================= */

.modal {
  position: fixed;

  inset: 0;

  background: rgba(20, 10, 6, .55);

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;

  z-index: 100;
}


.modal.active {
  display: flex;
}


.modal-content {
  width: min(650px, 100%);

  max-height: 90vh;

  overflow-y: auto;

  background: var(--creme-claro);

  padding: 35px;

  position: relative;
}


.modal-title {
  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: 30px;

  color: var(--marrom);

  margin-bottom: 25px;
}


.modal-close {
  position: absolute;

  top: 15px;

  right: 18px;

  border: none;

  background: transparent;

  color: var(--marrom);

  font-size: 24px;

  cursor: pointer;
}


.size-table {
  width: 100%;

  border-collapse: collapse;

  font-size: 13px;
}


.size-table th,
.size-table td {
  padding: 12px 10px;

  border-bottom: 1px solid rgba(83, 28, 19, .18);

  text-align: left;
}


.size-table th {
  font-weight: 700;
}


/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {

  .product-page {
    padding: 40px 5% 60px;
  }


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

    gap: 40px;
  }


  .product-info {
    padding-top: 0;
  }

}


@media (max-width: 600px) {

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

    gap: 8px;
  }


  .product-title {
    font-size: 42px;
  }


  .product-description {
    font-size: 16px;
  }


  .modal-content {
    padding: 25px 18px;
  }

}

/* MENU HAMBÚRGUER */
.menu-toggle { display:none; width:34px; height:34px; padding:6px; border:0; background:transparent; color:var(--marrom); cursor:pointer; flex-direction:column; justify-content:center; gap:5px; z-index:210; }
.menu-toggle span { display:block; width:21px; height:1.5px; background:currentColor; transition:transform .2s ease, opacity .2s ease; }
.mobile-menu { display:none; }

@media (max-width:700px) {
  .menu-toggle { display:flex; margin-left:0; margin-right:0; }
  .header .nav { display:none; }
  .mobile-menu { position:absolute; top:100%; left:0; right:0; display:flex; flex-direction:column; gap:0; padding:8px 22px 16px; background:var(--creme-claro); border-top:1px solid rgba(83,28,19,.12); box-shadow:0 12px 22px rgba(45,20,10,.08); opacity:0; visibility:hidden; transform:translateY(-8px); pointer-events:none; transition:opacity .2s ease,transform .2s ease,visibility .2s ease; z-index:200; }
  .mobile-menu.open { opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; }
  .mobile-menu a { padding:14px 0; color:var(--marrom); text-decoration:none; font-size:13px; border-bottom:1px solid rgba(83,28,19,.12); }
  .mobile-menu a:last-child { border-bottom:0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-6.5px) rotate(-45deg); }
}

/* Ajuste mobile: sacola antes do hambúrguer */
@media (max-width: 700px) {
  .header-bag {
    order: 2;
    margin-left: auto;
  }

  .menu-toggle {
    order: 3;
    margin-left: 0;
  }
}

/* =========================================================
   AVISO DE PRÉ-VENDA
   ========================================================= */

.presale-notice {
  margin: 0 0 30px;
  padding: 18px 20px;
  border-left: 3px solid #BE8220;
  background: rgba(81, 15, 2, .055);
  color: #510F02;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 400;
}


.presale-notice-title {
  font-family: "Space Grotesk", sans-serif;
  color: #510F02;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.presale-notice p {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
  color: #510F02;
  font-weight: 400;
}

.presale-notice p:last-child {
  margin-bottom: 0;
}

.presale-notice strong {
  font-family: "Space Grotesk", sans-serif;
  color: #510F02;
  font-weight: 700;
}

@media (max-width: 600px) {
  .presale-notice {
    padding: 16px;
    font-size: 12px;
  }
}


/* =========================================================
   HEADER — MESMA IDENTIDADE VISUAL DA HOME
   Apenas o menu do header foi alinhado à versão atual.
========================================================= */

.nav a {
  font-family: "Jolly Lodger", cursive;
  color: #510F02;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: .01em;
}

.nav a:hover {
  color: #510F02;
  opacity: .72;
}

.mobile-menu a {
  font-family: "Jolly Lodger", cursive;
  color: #510F02;
  font-size: 20px;
  font-weight: 400;
}


/* FOOTER — CERRADENSE / HOME */
/* =========================
   FOOTER — PAGAMENTO E BENEFÍCIOS
========================= */
.footer {
  padding: 52px var(--margem-site) 28px;
}

.footer-trust {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 52px;
  align-items: center;
  padding-bottom: 38px;
}

.footer-payment {
  min-width: 0;
}

.footer-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.footer-lock-icon {
  width: 24px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-section-label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
}

.footer-payment-text {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 25px 36px;
}

.payment-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: 36px;
}

.payment-logo {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(83, 28, 19, .18);
  background: rgba(255,255,255,.32);
  color: var(--marrom);
  border-radius: 4px;
  font-weight: 700;
  line-height: .9;
}

.payment-logo-mercado { font-size: 10px; text-align: left; }
.mercado-mark { font-size: 25px; line-height: 1; }
.payment-logo-pix { font-size: 22px; text-transform: lowercase; }
.pix-mark { font-size: 23px; transform: rotate(45deg); }
.payment-logo-visa { font-size: 23px; font-style: italic; letter-spacing: -.08em; }
.payment-logo-master { font-size: 9px; text-transform: lowercase; flex-direction: column; gap: 3px; }
.master-mark { display: flex; align-items: center; justify-content: center; }
.master-mark i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #c94c35; }
.master-mark i + i { margin-left: -7px; background: #d49a31; mix-blend-mode: multiply; }

.footer-benefits {
  border-left: 1px solid rgba(83, 28, 19, .25);
  padding-left: 42px;
  display: grid;
  gap: 22px;
}

.footer-benefit {
  display: flex;
  align-items: center;
  gap: 17px;
}

.footer-benefit svg {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-benefit strong,
.footer-benefit span { display: block; }
.footer-benefit strong { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.footer-benefit span { font-family: "Playfair Display", Georgia, serif; font-size: 15px; line-height: 1.25; }

.footer-bottom {
  margin-top: 0;
  padding-top: 24px;
  align-items: center;
}

.footer-bottom > span { font-size: 11px; }
.footer-bottom .footer-brand { display: flex; align-items: center; gap: 25px; }
.footer-bottom .footer-instagram { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-bottom .footer-logo { width: 105px; height: 65px; object-fit: contain; }

@media (max-width: 900px) {
  .footer { padding: 42px 24px 24px; }
  .footer-trust { grid-template-columns: 1fr; gap: 34px; }
  .footer-benefits { border-left: 0; border-top: 1px solid rgba(83, 28, 19, .25); padding: 28px 0 0; }
}

@media (max-width: 600px) {
  .footer { padding: 38px 20px 22px; }
  .footer-payment-text, .payment-logos { margin-left: 0; }
  .footer-payment-text { font-size: 16px; }
  .payment-logos { gap: 8px; }
  .payment-logo { padding: 6px 9px; min-height: 40px; }
  .footer-benefits { gap: 20px; }
  .footer-benefit { align-items: flex-start; }
  .footer-benefit strong { font-size: 15px; }
  .footer-benefit span { font-size: 14px; }
  .footer-bottom { flex-direction: column; gap: 18px; text-align: center; }
  .footer-bottom .footer-brand { justify-content: center; }
}


/* =========================
   AJUSTE FINAL — LOGOS E ALINHAMENTO DO PAGAMENTO
========================= */
.footer-payment {
  padding-left: 30px;
}

.footer-payment .footer-section-heading,
.footer-payment .footer-payment-text,
.footer-payment .payment-logos {
  margin-left: 0;
}

.footer-payment .footer-section-heading {
  align-items: center;
}

.footer-payment-text {
  margin-top: 0;
}

.payment-logos {
  align-items: stretch;
}

.payment-logo {
  min-width: 78px;
  min-height: 43px;
  box-sizing: border-box;
}

.payment-logo-mercado {
  min-width: 86px;
  width: 86px;
  padding: 6px 8px;
  flex-direction: column;
  gap: 1px;
}

.mercado-logo-svg {
  display: block;
  width: 68px;
  height: 68px;
  overflow: visible;
}

.payment-logo-pix {
  min-width: 78px;
  flex-direction: row;
  gap: 5px;
}

.pix-logo-svg {
  display: block;
  width: 24px;
  height: 24px;
}

.pix-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.04em;
}

@media (max-width: 900px) {
  .footer-payment {
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .footer-payment {
    padding-left: 0;
  }

  .payment-logo-mercado {
    min-width: 124px;
  }

  .mercado-logo-svg {
    width: 104px;
  }
}



/* Ajuste final — Instagram mais próximo da logo */
.footer-bottom .footer-instagram {
  position: relative;
  left: 28px;
}


/* =========================================================
   FOOTER — IDENTIDADE CERRADENSE (IGUAL À HOME)
   Vinho-terra: #510F02
   Preto-asfalto: #1E1B18
========================================================= */
.footer {
  color: #510F02;
}

.footer .footer-section-label,
.footer .footer-benefit strong {
  font-family: "Xilosa", sans-serif !important;
  color: #510F02 !important;
  font-weight: 400 !important;
}

.footer .footer-payment-text,
.footer .footer-benefit span {
  font-family: "Space Grotesk", sans-serif !important;
  color: #1E1B18 !important;
}

.footer .footer-lock-icon,
.footer .footer-benefit svg {
  color: #510F02 !important;
  stroke: #510F02 !important;
}

.footer .payment-logo {
  color: #510F02 !important;
  border-color: rgba(81, 15, 2, .18) !important;
}

.footer .footer-benefits {
  border-left-color: rgba(81, 15, 2, .25) !important;
}

.footer .footer-bottom {
  border-top-color: rgba(81, 15, 2, .25) !important;
}

.footer .footer-bottom > span,
.footer .footer-bottom a {
  color: #510F02 !important;
}

/* =========================================================
   CORREÇÃO FINAL — FOOTER MOBILE IGUAL À HOME
   ========================================================= */
@media (max-width: 600px) {
  .footer {
    padding: 30px 20px 22px !important;
  }

  .footer-bottom {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 17px !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(90, 24, 15, 0.25) !important;
    text-align: left !important;
  }

  .footer-bottom > span {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 10px !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .footer-bottom .footer-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex: 0 0 auto !important;
  }

  .footer-bottom .footer-instagram {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 10px !important;
    white-space: nowrap !important;
    position: relative !important;
    left: 0 !important;
  }

  .footer-bottom .footer-logo {
    display: block !important;
    width: 58px !important;
    height: 48px !important;
    object-fit: contain !important;
  }
}


/* =========================================================
   BOTÃO X INTERNO — MENU MOBILE
   ========================================================= */
@media (max-width: 700px) {
  .mobile-menu {
    padding-top: 58px !important;
  }

  .mobile-menu-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 20px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #510F02;
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
  }

  .mobile-menu-close-button:hover {
    opacity: .65;
  }
}
