:root {
    --back-modal: #801313;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
        background-color: whitesmoke !important;

}

/* Tipografia: Poppins para texto, Alfa Slab One para títulos/elementos de destaque */
body,
p,
a,
li,
span,
label {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
button,
.flip-card-front p {
  font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.6px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes rotateYAnimation {
  from {
    transform: rotateY(0deg);
  }

  to {
    transform: rotateY(360deg);
  }
}

nav {
  background-color: #801313;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  transition: all 0.3s ease;
  transition: transform 0.2s;
}

nav a:hover {
  transform: scale(1.02);
  color: rgba(255, 255, 255, 0.549);
}

nav ul {
  list-style: none;
  background-color: #801313;
  display: flex;
  margin: 0;
  padding: 0;
}

nav li{
  transition: transform 0.3s ease;
}

nav li:hover {
  transform: scale(1.1);
}

nav img {
  height: 60px;
  background-color: #801313;
}

.contact-header {
  background-color: #D1A775;
  border-radius: 50px;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  gap: 10px;

}

.contact-header li a {
  text-align: center;
  padding: 10px;
  color: #801313;

  font-family: 'Poppins', sans-serif;
}

.input-header {
  width: 209.5529022216797px;
  max-width: 220px;
  height: 34.515464782714844px;
  padding: 2px;
  border-radius: 12px;
  border: transparent;
  outline: none;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 0px 0px 20px -18px;
  background-color: #D1A775;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

header{
  filter: drop-shadow(1px 2px 50px rgba(0, 0, 0, 0.5));
    position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: 10;
}

.input-header::placeholder {
  color: #801313;
  padding-left: 5px;
}

.input-header:hover {

  box-shadow: 0px 0px 20px -17px;
}

.input-header:active {
  transform: scale(0.95);
}

.input-header:focus {
  border: 2px solid #550e0e;
}

.catalogo-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(244px, 320px));
  gap: 90px;
  padding: 20px;
  margin: 0 auto !important;
  max-width: 1200px;
  justify-content: center;
  justify-items: center;
}

.catalogo-title {
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  margin-top: 20px;
  color: #801313;
}

.sub h1 {
  display: flex;
  justify-content: center;
  margin-top: 120px;
}

.catalogo-subtitle {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
  color: #801313;
}




/* From Uiverse.io by joe-watson-sbf */ 
.flip-card {
  background-color: transparent;
  width: 284px;
  height: 372px;
  perspective: 1000px;
  font-family: sans-serif;
}


.flip-card-front img {
  border-radius: 1rem 1rem 0 0;
  width: 110px;
  height: 290px;
  object-fit: cover;
  display: flex;
    margin: 0 auto;

}

.flip-card-inner {
  position: relative;
  width: 244px !important;
  height: 372px !important;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 1rem;
}

.flip-card-front {
  background: white;
  color: #7C1012;
}

.flip-card-front p{
  font-size: 18px;
  color: #000000dc;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #F9C97A;
  height: 30%;
  padding: 20px;
}

.flip-card-back {
  background: #FFFFFF;
  color: white;
  transform: rotateY(180deg);
}

.flip-card .flip-card-back {
  justify-content: flex-start !important;

}


.flip-card-back {
  width: 284px;
  height: 372px;
  background: white;
  border-radius: 25px;
  overflow-y: auto; /* permitir rolagem se o conteúdo ultrapassar */
  -webkit-overflow-scrolling: touch;
  font-family: sans-serif;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
  padding-bottom: 8px;
}

.card-header {
  background: #f6c15c;
  padding: 18px 10px;
  text-align: center;
}

.card-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #000000dc;
  line-height: 1.2;
}

.card-body {
  padding: 1px 18px;
}

.card-body h3 {
  margin: 14px 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #000000dc;
}

.card-body hr {
  border: none;
  height: 2px;
  background: #e8e8e8;
  margin-bottom: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin: 8px 0;
  color: #222;
}

.info-row span:last-child {
  font-weight: 500;
}

.colors {
  display: flex;
  gap: 10px;
  margin: 10px 0 6px;
}

.color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.red {
  background: #b30000;
}

.beige {
  background: #cbbd91;
}

.brown {
  background: #7a3e00;
}

.yellow {
  background: #f5d040;
}

.colors-text {
  font-size: 13px;
  color: #555;
  margin: 0;
}

/* Botão menu mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: #D1A775;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background: #801313;
  border-radius: 2px;
  transition: 0.3s;
}
.nav-toggle-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle-open span:nth-child(2) { opacity: 0; }
.nav-toggle-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== RESPONSIVO CATÁLOGO ========== */
@media (max-width: 992px) {
  .catalogo-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .flip-card { width: 100%; max-width: 320px; margin: 0 auto; }
  .flip-card-inner { width: 100% !important; max-width: 320px; margin: 0 auto; }
  .flip-card-back { width: 100%; max-width: 320px; }
}

@media (max-width: 768px) {
  nav { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
  .nav-toggle { display: flex; }
  .input-header { display: none; }
  .nav-menu {
    display: none;
    width: 100%;
    order: 10;
    flex-direction: column;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .nav-menu-open { display: flex !important; }
  nav ul { flex-direction: column; align-items: stretch; }
  nav ul li { margin: 0; text-align: center; }
  nav a { display: block; padding: 12px; margin: 0; }
  .contact-header { border-radius: 12px; margin-top: 8px; }
  nav img { height: 48px; }
  .catalogo-title { font-size: 32px; margin-top: 16px; }
  .catalogo-subtitle { font-size: 18px; margin-top: 12px; }
  .catalogo-container {
    grid-template-columns: 1fr;
    padding: 16px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .flip-card { width: 100%; max-width: 284px; margin: 0 auto; }
  .flip-card-inner { width: 244px !important; margin: 0 auto; }
  .flip-card-back { width: 284px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .catalogo-title { font-size: 26px; }
  .catalogo-subtitle { font-size: 16px; }
  .flip-card-front p { font-size: 18px; }
  .card-header h2 { font-size: 18px; }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 0 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 30px;
  }

  .footer-logo img {
    width: 200px;
  }

  .footer-frase img {
    width: 200px;
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-logo img {
    width: 160px;
  }
}

.footer {
  margin-top: 100px;
  background: #fff;
  padding: 40px 0 20px;
  filter: drop-shadow(1px -1px 19px rgba(0, 0, 0, 0.2));
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* LOGO */
.footer-logo {
  padding: 40px;
  display: flex;
  align-items: center;
}

.footer-logo img {
  width: 280px;
}

/* LINKS */
.footer-links {
  display: flex;
  gap: 80px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  text-decoration: none;
  color: #8b3a2b;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* FRASE */
.footer-frase img {
  width: 280px;
}

/* SOCIAL */
.footer-social {
  max-width: 1300px;
  margin: 20px auto 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.footer-social img {
  width: 32px;
  height: 32px;
}

.modal-dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}