/* ========================================
   Pagina de Datas Comemorativas - Estilos
   ======================================== */

/* Banner Section */
.banner-datas {
    width: 100%;
}

.banner-datas .banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-datas .banner-placeholder {
    width: 100%;
}

/* ========================================
   Date Filter Section
   ======================================== */
.date-filter-section {
    padding: 30px 0 0;
    background-color: #fff;
}

.date-filter-wrapper {
    margin-bottom: 30px;
}

.date-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.date-tab {
    display: inline-block;
    padding: 14px 24px;
    border: 2px solid #282828;
    border-radius: 24px;
    background-color: transparent;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #282828;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.date-tab:hover {
    background-color: #282828;
    color: #fff;
}

.date-tab.active {
    background-color: #282828;
    color: #fff;
}

/* Description */
.date-description {
    max-width: 1216px;
}

.date-description p {
    font-family: 'Open Sans', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #282828;
    line-height: 28.8px;
    margin: 0 0 16px 0;
}

.date-description p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Products Section
   ======================================== */
.datas-products-section {
    padding: 40px 0 60px;
    background-color: #fff;
}

.datas-products-section .section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #282828;
    line-height: 28.32px;
    margin-bottom: 40px;
}

/* Products Grid */
.datas-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
    margin-bottom: 50px;
}

/* Product Card */
.datas-products-section .product-card {
    background: white;
    border-radius: 16px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    box-shadow: 0 0 5px rgba(0,0,0,0.12);
    text-decoration: none;
}

.datas-products-section .product-card:hover {
    border: 2px solid #282828;
}

.datas-products-section .product-image {
    width: 100%;
    height: 260px;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 16px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.datas-products-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
}

.datas-products-section .product-title {
    text-align: center;
    color: #282828;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 60px;
}

.datas-products-section .product-code {
    text-align: center;
    color: #5C5C5C;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    margin: auto 0 0 0;
}

/* Add Product Button - Usa estilos do global.css (.produto-add-btn) */

/* Loading Spinner */
.products-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 20px;
}

.products-loading p {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #5C5C5C;
    margin: 0;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #282828;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Products Container Transition */
#products-container {
    transition: opacity 0.3s ease;
}

/* Load More Button */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-load-more {
    border-radius: 24px;
    border: 2px solid #282828;
    background: transparent;
    color: #282828;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 18.88px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background-color: #282828;
    color: white;
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   Confira Tambem Section
   ======================================== */
.confira-tambem-section {
    padding: 40px 0 60px;
    background-color: #fff;
}

.confira-tambem-section .section-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #282828;
    line-height: 28.32px;
    margin-bottom: 40px;
}

.confira-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.nav-arrow:hover {
    opacity: 0.7;
}

.nav-arrow img {
    width: 12px;
    height: auto;
}

.confira-filter-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    flex: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.confira-filter-tabs::-webkit-scrollbar {
    display: none;
}

.confira-tab {
    display: inline-block;
    padding: 14px 24px;
    border: 2px solid #282828;
    border-radius: 24px;
    background-color: transparent;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #282828;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}

.confira-tab:hover {
    background-color: #282828;
    color: #fff;
}

.confira-tab.active {
    background-color: #282828;
    color: #fff;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1200px) {
    .datas-products-section .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 25px;
    }
}

@media (max-width: 992px) {
    .datas-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .date-filter-tabs,
    .confira-filter-tabs {
        gap: 12px;
    }

    .date-tab,
    .confira-tab {
        padding: 12px 20px;
        font-size: 14px;
    }

    .date-description p {
        font-size: 18px;
        line-height: 26px;
    }
}

@media (max-width: 768px) {
    .date-filter-section {
        padding: 20px 0 0;
    }

    .date-filter-tabs,
    .confira-filter-tabs {
        gap: 10px;
    }

    .date-tab,
    .confira-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .date-description p {
        font-size: 16px;
        line-height: 24px;
    }

    .datas-products-section {
        padding: 30px 0 40px;
    }

    .datas-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
    }

    .datas-products-section .product-card {
        width: 100%;
    }

    .datas-products-section .section-title,
    .confira-tambem-section .section-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .confira-tambem-section {
        padding: 30px 0 40px;
    }

    .confira-filter-wrapper {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .nav-arrow {
        width: 32px;
        height: 32px;
    }

    .nav-arrow img {
        width: 10px;
    }
}

@media (max-width: 576px) {
    .date-tab,
    .confira-tab {
        padding: 8px 14px;
        font-size: 12px;
    }

    .btn-load-more {
        width: 100%;
    }
}
