/* Font display override — evita que ícones fiquem invisíveis durante o carregamento da fonte */
@font-face {
    font-family: "bootstrap-icons";
    src: url("/static/vendor/bootstrap-icons/fonts/bootstrap-icons.woff2") format("woff2"),
         url("/static/vendor/bootstrap-icons/fonts/bootstrap-icons.woff") format("woff");
    font-display: swap;
}


/* ================ Basic ================ */
main {
	min-height: 60vh;
	flex: 1;
}

/* ================ Navbar ================ */
.navbar-nav .custom-dropdown {
	position: absolute;
}

.custom-navbar {
    background-color: White;
    border-bottom: 1px solid #ddd;
}

.dropdown-toggle::after {
    display: none;
}

/* ================ Footer ================ */
.custom-footer {
    background-color: black;
}

/* ================ Product Detail ================ */
.img-zoom-container {
    position: relative;
    overflow: hidden;
}

.img-zoom-result {
    border: 1px solid #000;
    width: 200px;
    height: 200px;
    position: absolute;
    top: 0;
    left: 0;
    background-repeat: no-repeat;
    display: none;
    z-index: 999;
}

.zoom-image {
    width: 100%;
    max-width: 100%;
    display: block;
    cursor: crosshair;
}

/* ================ Login | Registration ================ */
.tab-container {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
}

.tab-container button {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 10px 0;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    color: #555;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom 0.2s;
}

.tab-container button.active {
    color: #000;
    border-bottom: 2px solid black;
}

.tab {
    display: none;
}

.tab.active {
    display: block;
}

form {
    max-width: 400px;
    margin: 0 auto;
}


/* ================ Home Page ================ */ 
.image-carrousel {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

@media (max-width: 767.98px) {
    .image-carrousel {
        aspect-ratio: 4 / 3;
    }
}

.banner-container-1,
.banner-container-2 {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}
.banner-container-1 img,
.banner-container-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-container-2 {
    aspect-ratio: 16 / 9;
}

/* Make text scale to fit the card body */
.featured-products .card-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5rem;
}

.featured-products .card-title-product {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.image-container {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 1rem;
    width: 100%;
}
.carousel-overlay-content h2 {
    font-size: clamp(1.4rem, 4.5vw, 2.8rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.carousel-overlay-content p {
    font-size: clamp(0.85rem, 2vw, 1.15rem);
    margin-bottom: 1.2rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.carousel-item {
    position: relative;
}


.banner-overlay-wrapper {
    position: relative;
}
.banner-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 1rem;
    width: 100%;
}
.banner-overlay-content h2 {
    font-size: clamp(1.3rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.banner-overlay-content .btn {
    padding: 0.6rem 2rem;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.banner-1-overlay-content h2 {
    color: #FFFBF3;
    -webkit-text-stroke: 0.5px #000;
    text-shadow:
        -0.5px -0.5px 0 #000,
        0.5px -0.5px 0 #000,
        -0.5px 0.5px 0 #000,
        0.5px 0.5px 0 #000;
}

.banner-1-overlay-content .btn {
    color: #000;
    background-color: #FFFBF3;
    border: 1px solid #000;
}
.banner-1-overlay-content .btn:hover {
    background-color: #000;
    color: #fff;
}