/**
 * Main Stylesheet for MaxiPolpasTheme
 */

/* General Layout */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #333;
    margin: 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.elementor-section-wrap {
    /* This can help if Elementor adds extra unwanted space */
    padding: 0 !important;
}

/* Category Grid (for Home and Subcategory listings) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 0;
}
.category-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    height: 350px;
    transition: transform 0.3s ease;
    box-shadow: none; /* Removido */
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}
.category-card:hover .category-card-image {
    transform: scale(1.05);
}
.category-card-title-wrapper {
    position: absolute;
    bottom: 20px;
    left: 20px; /* Alinhado à esquerda */
    width: auto;
    display: inline-block;
}
.category-card-title {
    background-color: rgba(255, 255, 255, 0.95);
    color: #ea932d;
    padding: 10px 20px;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: none; /* Removido */
}

/* Category Page Header */
.category-header-banner {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    width: 100vw; /* Full viewport width */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    display: flex;
    align-items: flex-end;
}
.category-header-title-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}
.category-header-title-wrapper {
    position: relative;
    bottom: -25px; /* Half of the title height */
    text-align: left; /* Alinhado à esquerda */
    margin-bottom: 65px;
}
.category-header-title {
    background-color: white;
    color: #ea932d;
    padding: 15px 30px;
    border-radius: 18px;
    font-size: 1.4rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: none; /* Removido */
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 80px 0 60px; /* Extra padding top to account for overlapping header */
}
.product-card {
    border-radius: 24px;
    overflow: hidden;
    background-color: #f9f7f4;
    transition: transform 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    box-shadow: none; /* Removido */
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #ddd;
}
.product-card-image {
    width: 100%;
    height: 250px;
    position: relative; /* Needed for seal positioning */
    background-size: cover;
    background-position: center;
}
.product-card-content {
    padding: 20px;
    text-align: left; /* Alinhado à esquerda */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 20px;
}
.product-card-title a {
    color: #000;
    text-decoration: none;
}
.product-card-button {
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start; /* Alinha o botão à esquerda */
}
.product-card-button:hover {
    background-color: #1EAE55;
}
.product-card-button .fab {
    font-size: 1.2rem;
}


/* Product Seals */
.maxi-product-seals-list {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 5px;
}
.seal-icon {
    width: 30px;
    height: 30px;
    background-color: #f9f7f4;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #ea932d;
}
.seal-tooltip {
    position: relative;
    display: inline-block;
}
.seal-tooltip .seal-tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the tooltip above the icon */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}
.seal-tooltip:hover .seal-tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Partners Carousel */
.partners-carousel-wrapper {
    position: relative;
    padding: 40px 0;
}
.partners-carousel {
    overflow: hidden;
}
.partners-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.partner-slide {
    flex-shrink: 0;
    padding: 0 15px;
    text-align: center;
    min-width: 100%; /* Mobile default */
}
@media (min-width: 768px) {
    .partner-slide {
        min-width: 25%; /* 4 items on desktop */
    }
}
.partner-slide a {
    text-decoration: none;
    color: inherit;
}
.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.partner-logo img {
    max-height: 80px;
    width: auto;
    margin: 0 auto;
    filter: grayscale(100%);
    opacity: 0.7;
}
.partner-slide:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
}
.partner-name {
    margin-top: 15px;
    font-weight: 400;
    font-size: 15px;
    color: #666;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s;
}
.carousel-nav:hover {
    background-color: #f9f7f4;
    border-color: #ddd;
}
.carousel-nav.prev {
    left: -20px;
}
.carousel-nav.next {
    right: -20px;
}
@media (max-width: 767px) {
    .carousel-nav {
        display: none;
    }
}
