:root {
  --marrom: #4a3f31;
  --bege: #fefbda;
  --madeira: #7a6248;
  --vinho: #5c3a2e;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400; /* Peso regular */
  line-height: 1.6; /* Melhora a legibilidade */
  background-color: var(--bege);
  color: var(--marrom);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Slab', serif;
    font-weight: 700; /* Peso negrito (bold) */
}

/* Barra superior */
.top-bar {
  background-color: var(--bege);
}

.topbar {
  background-color: var(--marrom);
  color: var(--bege);
  padding: 8px 0;
}

/* Navbar */
.navbar-custom {
  background-color: var(--bege);
  border-bottom: 2px solid var(--madeira);
}

.logo {
  color: var(--marrom);
  font-family: 'Georgia', serif;
}

.search-box {
  position: relative;
}

.search-box input {
  border-radius: 20px;
  border: 1px solid var(--madeira);
  padding-left: 35px;
}

.search-box .material-icons {
  position: absolute;
  left: 10px;
  top: 8px;
  color: var(--madeira);
}

.img-card-my {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
}

.cat-link {
  text-decoration: none;
  color: var(--marrom);
  font-weight: 500;
  transition: color 0.2s;
}

.cat-link:hover {
  color: var(--madeira);
}

.highlight-bar {
  background: linear-gradient(90deg, var(--madeira), var(--marrom));
  color: var(--bege);
  font-size: 0.9rem;
}

/* Divisor */
.divider {
  height: 2px;
  background: linear-gradient(90deg, var(--marrom), var(--madeira));
  opacity: 0.5;
}

/* Produtos */
.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-link:hover {
  text-decoration: none;
  color: inherit;
}

.product-card {
  background: #fff;
  background-color: #fffdf5;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card .img-container img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.product-card .img-container .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.product-card:hover .img-container .hover-img {
  opacity: 1;
}

.price {
  color: var(--madeira);
  font-weight: 700;
}

/* Footer */
.footer {
  background-color: var(--marrom);
  color: var(--bege);
  padding: 40px 0;
  margin-top: 60px;
}

.footer a {
  color: var(--bege);
  text-decoration: none;
}

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

/* Página de produtos */
.breadcrumb a {
  color: var(--madeira);
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-bar {
  background-color: #fffaf0;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
}

.breadcrumb-bar select {
  border: 1px solid var(--madeira);
  border-radius: 8px;
  padding: 4px 8px;
  background: var(--bege);
}

.breadcrumb-bar button {
  border-radius: 8px;
  border: 1px solid var(--madeira);
  background-color: transparent;
  color: var(--marrom);
  transition: all 0.3s ease;
}

.breadcrumb-bar button:hover {
  background-color: var(--madeira);
  color: var(--bege);
}

.product-item {
  text-align: center;
  transition: transform 0.2s ease-in-out;
}
.product-item:hover {
  transform: translateY(-4px);
}

.img-container {
  position: relative;
  overflow: hidden;
}
.img-container img {
  transition: opacity 0.4s ease;
}
.hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}
.img-container:hover .hover-img {
  opacity: 1;
}
.img-container:hover .main-img {
  opacity: 0;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #b22222;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
  font-weight: bold;
}

.modal-content {
  border-radius: 12px;
  background-color: #fffaf0;
  border: 1px solid var(--madeira);
  color: var(--marrom);
}

.modal-header {
  border-bottom: 1px solid var(--madeira);
}

.modal-footer button {
  background-color: var(--marrom);
  border: none;
  color: var(--bege);
  border-radius: 6px;
}

.modal-footer button:hover {
  background-color: var(--vinho);
}

.thumb-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}
.thumb-img:hover {
  border-color: var(--madeira);
}

.share-section button,
.share-section a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-section button:hover,
.share-section a:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-section i {
  font-size: 1rem;
}

.product-description img {
  max-width: 100%;
  border-radius: 8px;
}

.related-info {
  background-color: #fffdf5;
  padding: 10px 15px;
  border-left: 4px solid var(--madeira);
  border-radius: 8px;
}

/* Carrossel com fundo blur */
.carousel-item {
    position: relative;
    background-color: #000;
    /* min-height: 400px; */
    overflow: hidden;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 0;
    opacity: 0.8;
}

.carousel-item.active:nth-child(1)::before,
.carousel-item:nth-child(1)::before {
    background-image: url('/slider/1.png');
}

.carousel-item.active:nth-child(2)::before,
.carousel-item:nth-child(2)::before {
    background-image: url('/slider/2.png');
}

.carousel-item.active:nth-child(3)::before,
.carousel-item:nth-child(3)::before {
    background-image: url('/slider/3.png');
}

.carousel-item img {
    max-height: 80vh;
    width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    display: block;
}

.logo-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

/* Logo quando mobile ficar centralizado */
@media (max-width: 768px) {
  .logo {
    display: block;
    margin: 0 auto;
    padding-bottom: 15px;
  }
  .logo-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
}

/* Botão flutuante do WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
  color: #fff;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

/* Carrinho */
.cart-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  padding: 15px;
  transition: all 0.2s ease;
}

.cart-item:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.cart-item-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}

.btn-qty {
  background-color: var(--marrom);
  color: var(--bege);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-qty:hover {
  background-color: var(--vinho);
  transform: scale(1.1);
}

.btn-remove {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-remove:hover {
  color: #a02a2a;
  transform: scale(1.2);
}

.totals-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
}

.btn-finalizar {
  background: linear-gradient(135deg, var(--marrom), var(--madeira));
  color: var(--bege);
  font-weight: bold;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.3s ease;
}

.btn-finalizar:hover {
  background: linear-gradient(135deg, var(--vinho), var(--marrom));
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@media (max-width: 992px) {
  .cart-item {
    flex-direction: column;
    text-align: center;
  }

  .cart-item > div {
    width: 100%;
  }

  .cart-item .text-end {
    text-align: center !important;
    margin-top: 10px;
  }
}
