@import url('https://fonts.googleapis.com/css2?family=Inknut+Antiqua:wght@300;400;500;600;700;800;900&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Irish+Grover&display=swap');

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

body {
    height: 100vh;
    background-color: #ffffff;
}

.header {
    background-color: #343434;
    color: #f1f1f1;
    padding: 15px;
    text-align: center;
    font-family: "Inknut Antiqua", serif;
    font-weight: 600;
    font-style: normal;
    font-size: 14px;
    line-height: 1.6;
    letter-spacing: 10px;
    cursor: default;
}

.cart {
    width: 30px;
    height: 30px;
    float: right;
    margin-top: -40px;
    margin-right: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart:hover {
    transform: scale(1.1);
}

.navigation-bar {
    background-color: #919191;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    font-family: "Instrument Sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
}

.navigation-bar a {
    color: #343434;
    text-decoration: none;
    padding: 0px 15px;
    transition: color 0.3s ease-in-out;
    letter-spacing: 5px;
}

.navigation-bar a:hover {
    color: #e4e4e4;
}

.navigation-bar a:active {
    color: #ffffff;
}

.advertisement-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
}

.advertisement-carousel h2 {
    padding: 40px;
    font-family: "Instrument Sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 20px;
    letter-spacing: 10px;
}

.advertisement-carousel h3 {
    padding: 40px;
    font-family: "Instrument Sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 16px;
    letter-spacing: 3px;
}

.carousel-container {
    width: 1596px;
    height: 510px;
    margin-left: 162px;
    margin-right: 162px;
    overflow: hidden;
    position: relative;
}

.carousel {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.carousel img {
    width: 1596px;
}

@keyframes slide {
    0% { transform: translateX(0%); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0%); }
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.dots {
    margin: 10px;
    width: 100%;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: #343434;
}

.sale-products {
    font-family: "Instrument Sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    padding-left: 0;
    margin-left: 162px;
    margin-right: 162px;
}

.sale-products h2{
    padding-top: 20px;
    font-size: 20px;
    letter-spacing: 10px;
}

.sale-products-table-container {
    display: flex;
    justify-content: space-between;
}

.sale-products-table {
    margin-top: 32px;
    margin-bottom: 50px;
    background-color: white;
    color: #343434;
    cursor: default;
}

.sale-products-table h3 {
    font-size: xx-medium;
    padding-left: 24px ;
    padding-bottom: 12px;
}

.products-images {
    width: 365px;
    height: 500px;
    cursor: pointer;
    padding-bottom: 20px
}

.image-container {
    position: relative;
    overflow: hidden;

}

.image-container img {
    display: block;
    transition: transform 0.4s ease, opacity 0.4s ease;
    width: 365px;
    height: 500px;
    cursor: pointer;
    padding-bottom: 20px
}

/* A camada que aparece no hover */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00000080; /* escurece a imagem */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-container:hover img {
    transform: scale(1.2); /* leve zoom na imagem */
}

.image-container:hover .overlay {
    opacity: 1; /* aparece o overlay */
}

/* Botões dentro do overlay */
.btn {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 16px;
    margin: 6px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #fff;
    color: #000;
}

.see-more {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 57px;
}

.line {
    flex: 1;
    height: 1px;
    background-color: #343434;
}

.text-content {
    font-family: "Instrument Sans", sans-serif;
    padding: 10px 20px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 5px;
    color: #343434;
}

.arrows {
    margin-top: 5px;
    font-size: 18px;
    line-height: 18px;
}

.subscribe-card {
    background-color: #ebebeb;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 57px;
}

.text-content h5 {
    padding: 10px;
    text-align: center;
    font-weight: 500;
    letter-spacing: normal;
    color: #666666;
}

.subscribe-card-form {
    display: flex;
    gap: 28px;
}

.subscribe-card-input {
    padding: 10px;
    border: 1px solid #4b4b4b;
    font-size: 14px;
    width: 396px;
    font-family: "Instrument Sans", sans-serif;
    outline: none;
}

.subscribe-card-button {
    font-family: "Instrument Sans", sans-serif;
    cursor: pointer;
    padding: 10px;
    background-color: #4b4b4b;
    border: none;
    color: #f1f1f1;
    font-weight: 600;
    font-size: 14px;
    width: 124px;
    transition: background-color 0.3s ease-in-out;
}

.subscribe-card-button:hover {
    background-color: #666666;
}

.success-message {
    display: none;
    margin-top: 20px;
    color: green;
    font-weight: bold;
}

.advertisement-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #1f1f1f;
  color: #f1f1f1;
  font-family: "Inknut Antiqua", serif;
  padding: 50px 0;
}

/* Texto intercalado */
.text-grid {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  gap: 20px 10px; /* linha x coluna */
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.left-column h2 {
  margin: 0;
  font-size: 28px;
  text-align: center;
  letter-spacing: 10px;
  font-weight: 600;
}

.right-column h2,
.right-column h1 {
  margin: 0;
  text-align: center;
  letter-spacing: 10px;
  font-weight: 600;
}

.right-column h2 {
  font-size: 24px;
  font-family: "Irish Grover", system-ui;
}

.right-column h1 {
  font-size: 44px;
  font-family: "Irish Grover", system-ui;
}

/* Posicionamento das palavras */
.left-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  grid-row: 1 / span 1;
}

.right-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding-top: 60px; /* para criar o efeito de intercalado */
  grid-row: 1 / span 3;
}

/* Imagens */
.image-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

.advertisement-image {
  object-fit: cover;
  display: block;
}

.advertisement-image.large {
  width: 1596px;
  height: 510px;
}

.small-images {
  display: flex;
  justify-content: center;
  gap: 102px;
}

.advertisement-image.small {
  width: 750px;
  height: 350px;
}

.site-footer {
  background-color: #222;
  color: #ccc;
  padding: 0;
  font-family: 'Instrument Sans', sans-serif;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-left: 145px;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column:first-child {
  flex: 2;
}

.brand {
  font-family: "Inknut Antiqua", serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 5px;
  color: #fff;
  margin-bottom: 12px;
  margin-top: 25px;
  line-height: 1.2;
}

.description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #aaa;
  max-width: 500px;
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.social-icons a {
  color: #ccc;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
}

.footer-column h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 25px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.footer-bottom {
  margin-top: 25px;
  margin-left: 145px;
  margin-right: 145px;
  padding-bottom: 12px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.footer-bottom hr {
  border: none;
  border-top: 1px solid #444;
  margin-bottom: 12px;
}

.image-container {
  position: relative;
  overflow: hidden;
}

/* imagem principal */
.image-container img.products-images {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.6s ease, transform 0.4s ease;
  display: block;
}

/* imagem secundária */
.image-container img.hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.4s ease;
}

/* camada escura */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2; /* garante que fica acima das imagens */
}

/* hover: troca a imagem + escurece + mostra botões */
.image-container:hover img.products-images {
  opacity: 0;
  transform: scale(1.05);
}

.image-container:hover img.hover {
  opacity: 1;
  transform: scale(1.05);
}

.image-container:hover .overlay {
  opacity: 1;
}

/* ====== OVERLAY ESCURO ====== */
.overlay1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}
.overlay1.active {
  opacity: 1;
  pointer-events: all;
}

/* ====== MENU LATERAL DO CARRINHO ====== */
.cart-menu {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100%;
  background-color: #fdfdfd;
  box-shadow: -3px 0 10px rgba(0, 0, 0, 0.25);
  transition: right 0.4s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
  font-family: "Instrument Sans", sans-serif;
}

.cart-menu.active {
  right: 0;
}

/* ====== CABEÇALHO DO CARRINHO ====== */
.cart-header {
  background-color: #111;
  color: #fff;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 1px;
}

.cart-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.cart-header .close {
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.cart-header .close:hover {
  transform: scale(1.2);
}

/* ====== CONTEÚDO DO CARRINHO ====== */
.cart-items {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

/* ITEM DO CARRINHO */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f6f6f6;
  border-radius: 14px;
  padding: 10px 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.cart-item span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.cart-item div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botões + e − */
.cart-item button {
  background-color: #eaeaea;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}
.cart-item button:hover {
  background-color: #d1d1d1;
}

/* ====== RODAPÉ DO CARRINHO ====== */
.cart-footer {
  border-top: 1px solid #ddd;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-footer p {
  font-size: 16px;
  font-weight: 600;
  text-align: right;
}

.checkout-btn {
  background-color: #111;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  background-color: #000;
  transform: scale(1.02);
}

.go-back-btn {
  background-color: #e1e1e1;
  color: #393939;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.go-back-btn:hover {
  background-color: #5a5a5a;
  color: #fff;
  transform: scale(1.02);
}

/* ====== SCROLL PERSONALIZADO ====== */
.cart-items::-webkit-scrollbar {
  width: 6px;
}
.cart-items::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}
