/* Overlay "Ver mais" */
.overlay-more {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay-more:hover {
    background: rgba(0, 0, 0, 0.75);
}

@media (min-width: 769px) {
    .gallery-grid {
        height: 430px;
    }
    .gallery-grid .main-img {
        height: 100%;
        object-fit: cover;
    }
    .gallery-grid .small-img {
        height: calc(430px / 3 - 6px);
    }
    .gallery-grid img {
        object-fit: cover;
    }
    .overlay-more {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
        font-weight: bold;
        font-size: 1.2rem;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s;
    }
    .overlay-more:hover {
        background: rgba(0, 0, 0, 0.75);
    }
}
/* 📱 Mobile */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* stack tudo em 1 coluna */
        max-height: none; /* remove limite */
    }

    .gallery-grid .main-img {
        grid-row: auto;
        height: 250px; /* altura controlada */
    }

    .gallery-grid .small-img {
        height: 120px; /* menor para mobile */
    }
    .price-box-bar .cart-and-bay-btn{
        width: 100%;
    }
     .price-box-bar .cart-and-bay-btn a{
        width:100%;
        margin:2px 0px;
     }
}

/* 📱 Muito pequeno (até 480px) */
@media (max-width: 480px) {
    .gallery-grid .main-img {
        height: 200px;
    }
    .gallery-grid .small-img {
        height: 100px;
    }
    .overlay-more {
        font-size: 1rem;
    }
}

.agenda-container {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.agenda-container::-webkit-scrollbar {
  height: 6px;
}
.agenda-container::-webkit-scrollbar-thumb {
  background: #bbb;
  border-radius: 3px;
}
.agenda-container::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.agenda-header {
  display: flex;
  border-bottom: 2px solid #ddd;
  padding: 10px 0;
  background: #fafafa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.agenda-header div {
  flex: 1;
  min-width: 150px;
  text-align: center;
  font-weight: bold;
  font-size: 0.95rem;
}

.agenda-body {
  display: flex;
  flex-wrap: nowrap;
}

.agenda-day {
  flex: 1;
  min-width: 150px;
  border-right: 1px solid #eee;
  padding: 10px;
  background: #fff;
  transition: background 0.3s;
}
.agenda-day:hover {
  background: #f9f9f9;
}

.evento {
  background: #cfb47b;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.evento:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* 🔹 Responsividade */
@media (max-width: 992px) { /* Tablets */
  .agenda-header div, 
  .agenda-day {
    min-width: 120px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) { /* Celulares médios */
  .agenda-header div, 
  .agenda-day {
    min-width: 100px;
  }
  .evento {
    font-size: 0.8rem;
    padding: 6px;
  }
}

@media (max-width: 576px) { /* Celulares pequenos */
  .agenda-container {
    display: block;
    overflow-x: auto;
  }

  .agenda-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(80px, 1fr));
    font-size: 0.75rem;
  }

  .agenda-body {
    display: grid;
    grid-template-columns: repeat(7, minmax(80px, 1fr));
  }

  .agenda-day {
    min-width: auto;
    padding: 6px;
  }

  .evento {
    font-size: 0.7rem;
    padding: 4px;
    margin-bottom: 6px;
  }
}

    .small-img {
    width: 100%;
    height: 120px; /* mobile */
    overflow: hidden;
    border-radius: 10px;
}

.small-img-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CRUCIAL */
    object-position: center;
}

/* Tablet */
@media (min-width: 768px) {
    .small-img {
        height: 180px;
    }
}

/* Desktop */
@media (min-width: 1200px) {
    .small-img {
        height: 200px;
    }
}