/* ======================= PRODUCTS SECTION ======================== */

.hero {
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    /* A MARGEM DAQUI FOI ERRADICADA */
}

.hero-content h1,
.hero-content .hero-title {
    font-family: var(--font-title);
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.hero-content h2 {
    font-family: var(--font-body);
    font-size: 2rem;
    margin: 3rem auto 0;
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.575rem;
    margin: 0 auto 3rem;
}

.categories {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-light);
    text-align: center;
}

.categories-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.categories-subtitle {
    font-size: 1.375rem;
    color: var(--color-dark-gray);
    text-align: center;
    margin-bottom: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: 1200px;
    margin: 0 auto;
}

.card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    padding: 1rem;
    color: var(--color-dark);
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
}

.category-card:hover {
    border-color: var(--color-light-gray);
}

.card-content {
    padding: 0;
    text-align: center;
}

.card-content h3 {
    font-family: var(--font-title);
    font-size: 1.25rem;
}

@media (max-width: 1369px) {
    .hero-content h1,
    .hero-content .hero-title {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.35rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 var(--space-xl) var(--space-xl) var(--space-xl);
    }
    .hero-content h1,
    .hero-content .hero-title {
        padding: 2rem 0 1rem;
        margin: 0;
        font-size: 2.8rem;
    }
    .hero-content h2 {
        margin: 1.5rem auto 0.5rem;
    }
    .hero-content p {
        margin: 0 0 1.3rem 0;
        font-size: 1.25rem;
    }
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 650px) {
    .hero-content h1,
    .hero-content .hero-title {
        font-size: 2.25rem;
    }
    .hero-content h2 {
        font-size: 1.7rem;
        margin: 1.5rem auto 0.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 550px) {
    .hero-content h1,
    .hero-content .hero-title {
        font-size: 2rem;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 490px) {
    .hero-content h1,
    .hero-content .hero-title {
        padding: 1.5rem 0 0.5rem;
        font-size: 1.8rem;
    }
    .hero-content h2 {
        font-size: 1.75rem;
        margin: 0 0 0.75rem;
    }
}

@media (max-width: 450px) {
    .hero-content h1,
    .hero-content .hero-title {
        font-size: 2rem;
        padding: 1.7rem 0 1rem;
    }
    .categories-title {
        font-size: 1.75rem;
    }
    .categories-subtitle {
        font-size: 1.2rem;
    }
    .category-card {
        padding: 0.3rem;
    }
    .card-content h3 {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-content h1,
    .hero-content .hero-title {
        font-size: 1.55rem;
        padding: 1.5rem 0 1rem;
    }
    .hero-content h2 {
        font-size: 1.4rem;
        margin: 0.75rem auto 0.75rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* ================== LIST PRODUCTS TEMPLATE =================== */

.content {
    background: var(--color-light);
}

.list-product.container {
    padding-bottom: 4rem;
}

.ordering {
    padding: 0;
    margin: 0;
}

.ordering form {
    display: flex;
    gap: 1rem;
}

.ordering form label {
    width: max-content;
}

.ordering select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.75rem;
}

.list-title h1,
.list-title h2 {
    text-align: center;
    font-size: 2.5rem;
    padding: 2rem;
    margin: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-list-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-light);
    margin-bottom: 2.5rem;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    transition: border-color 0.5s ease;
}

.product-list-card:hover {
    border-color: var(--color-light-gray);
}

.card-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--color-light);
}

.card-product-image img {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-sm);
    object-fit: contain;
    mix-blend-mode: multiply;
}

.card-product-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.card-product-content h2 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.card-product-content .short-desc {
    font-size: 0.95rem;
    color: var(--color-dark-gray);
}

.card-product-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.btn-cart {
    background-color: #e6f4ea;
    color: #185c37;
    border: 1px solid var(--color-primary);
    width: 100%;
}

.btn-cart:hover {
    background-color: #185c37;
    color: #e6f4ea;
}

.btn-details {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: var(--color-light);
}

.btn-details:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-light);
}

.btn i {
    font-size: 20px;
}

.icon-composto {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.icon-composto .fa-clipboard {
    font-size: 1.3rem;
}

.card-product-actions .btn-cart {
    background-color: #3b7b51;
    color: #ffffff;
    border: 1px solid #3b7b51;
    transition: all 0.2s ease;
}

.card-product-actions .btn-cart:hover {
    background-color: #2e613f;
    border-color: #2e613f;
    transform: translateY(-2px);
}

.card-product-actions .btn-cart .icon-composto .fa-clipboard {
    color: #ffffff;
}

.card-product-actions .btn-cart .icon-composto .fa-plus {
    position: absolute;
    bottom: 0;
    right: -0.2em;
    font-size: 0.5rem;
    width: 0.85rem;
    height: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #3b7b51;
    border: 0.15em solid #3b7b51;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.2s;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
    padding-bottom: 0.95rem;
}

.pagination a {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    color: var(--color-light-dark);
    transition: background 0.5s ease;
}

.pagination a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.pagination span {
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: var(--color-light);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    border: 2px dashed var(--color-md-gray);
    border-radius: 16px;
    background: #fafafa;
    color: #444;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.no-results:hover {
    border-color: var(--color-dark-gray);
    background: whitesmoke;
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.no-results h2 {
    font-size: 22px;
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--color-light-dark);
}

.no-results p {
    font-size: 16px;
    color: var(--color-dark-gray);
}

.no-results .btn-back {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--color-back-button);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    margin: 2rem 0 0;
}

.no-results .btn-back:hover {
    background: var(--color-hover-back-button);
}

.no-results i {
    font-size: 40px;
    color: var(--color-whatsapp);
    display: block;
    margin: 0.5rem 0 0;
}

@media (max-width: 1440px) {
    .product-grid {
        gap: 10px;
    }
    .content:has(.no-results) {
        padding: 4rem 0;
    }
    .btn {
        font-size: 14px;
    }
}

@media (max-width: 1200px) {
    .btn {
        font-size: 12.5px;
    }
    .btn i {
        font-size: 20px;
    }
    .no-results {
        padding: 20px;
    }
}

@media (max-width: 1050px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .btn {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .card-product-content h2 {
        font-size: 1.25rem;
    }
    .product-grid {
        padding: 0 5px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .product-list-card {
        margin-bottom: 2rem;
    }
    .btn {
        font-size: 14px;
    }
    .btn i {
        font-size: 22px;
    }
}

@media (max-width: 650px) {
    .ordering {
        padding: 0;
    }
    .list-title h1,
    .list-title h2 {
        padding: 1.25rem;
    }
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0;
    }
    .card-product-content {
        padding: 5px;
    }
    .card-product-actions .btn i {
        font-size: 20px;
    }
}

@media (max-width: 450px) {
    .hero {
        padding: 0 0.5rem 1.2rem;
    }
    .hero-content p {
        line-height: 1.3;
    }
    .ordering label {
        font-size: 0.9rem;
    }
    .list-title h1,
    .list-title h2 {
        font-size: 1.5rem;
    }
    .product-grid {
        padding: 0;
    }
    .card-product-content {
        padding: 0px;
    }
    .card-product-content h2 {
        font-size: 0.9rem;
    }
    .card-product-content .short-desc {
        font-size: 0.7rem;
    }
    .card-product-actions {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 5px;
        margin-top: auto;
    }
    .card-product-actions .btn {
        font-size: 0.75rem;
        padding: 0.45rem 0;
    }
    .card-product-actions .btn i {
        font-size: 20px;
    }
    .card-product-actions .btn-details {
        flex-grow: 1;
        display: flex;
        width: auto;
        font-size: 0.9rem;
        padding: 0.6rem 0.8rem;
        justify-content: space-between;
        text-align: center;
        white-space: nowrap;
    }
    .card-product-actions .btn-details i {
        display: none;
    }
    .card-product-actions .btn-details::after {
        content: "\f054";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 0.75rem;
    }
    .card-product-actions .btn-cart {
        flex-shrink: 0;
        padding: 0;
        margin: 0;
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .card-product-actions .btn-cart .btn-text {
        display: none;
    }
    .no-results h2 {
        font-size: 1.2rem;
    }
    .no-results p {
        font-size: 0.95rem;
        margin: 0;
    }
    .no-results i {
        font-size: 30px;
        color: var(--color-whatsapp);
        margin: 0 0 0 0.5rem;
    }
}

@media (max-width: 360px) {
    .card-product-actions .btn-details {
        flex-grow: 0;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
    .card-product-actions .btn-cart {
        border-radius: 50%;
    }
    .card-product-actions .btn-details .btn-text,
    .card-product-actions .btn-details::after {
        display: none;
    }
    .card-product-actions .btn-details i {
        display: flex;
        font-size: 1.1rem;
        margin: 0;
    }
}

/* =================== DETAIL_PRODUCT TEMPLATE ===================== */

.product-detail-container {
    margin: 0 auto;
    padding: 2.5rem 0;
    background: var(--color-light);
}

.product-detail-header {
    text-align: left;
    margin-bottom: 2rem;
}

.product-detail-main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: stretch;
    background: transparent;
    border-radius: 0;
}

.product-detail-image {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.product-detail-image img {
    max-width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.product-detail-info {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-detail-title {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin: 0 0 0.5rem 0;
}

.product-detail-short {
    font-size: 1.1rem;
    color: #666;
    font-weight: normal;
    margin: 0;
}

.product-detail-long {
    margin: 3rem 0 0;
}

.product-detail-long p {
    margin: 0;
}

.product-detail-buttons {
    display: flex;
    flex-direction: row;
    margin: 0;
    gap: 12px;
    justify-content: space-between;
}

.product-detail-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 10px;
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.product-detail-buttons form,
.product-detail-buttons .btn-whatsapp {
    flex: 1;
}

.product-detail-buttons .btn-cart {
    color: white;
    border: 1px solid #3b7b51;
    background-color: #3b7b51;
}

.product-detail-buttons .btn-cart:hover {
    transform: translateY(-2px);
    background-color: #2e613f;
}

.product-detail-buttons .btn-cart i {
    font-size: 1.4rem;
}

.product-detail-buttons .btn-whatsapp {
    background-color: #ffffff;
    color: #3b7b51;
    border: 1px solid #e0e0e0;
}

.product-detail-buttons .btn-whatsapp i {
    color: #25d366;
    font-size: 1.2rem;
}

.product-detail-buttons .btn-whatsapp:hover {
    border-color: #3b7b51;
    background-color: #f4fbf6;
}

.product-detail-buttons .btn-cart .icon-composto {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-detail-buttons .btn-cart .icon-composto .fa-plus {
    position: absolute;
    bottom: 0;
    right: -0.2em;
    font-size: 0.5rem;
    width: 0.85rem;
    height: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #3b7b51;
    border: 0.15em solid #3b7b51;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.2s;
}

.product-detail-buttons .btn-cart:hover .icon-composto .fa-plus {
    border-color: #2e613f;
    color: #2e613f;
}

.related-section h2 {
    margin-bottom: 20px;
    font-size: 1.75rem;
    text-align: center;
    padding-bottom: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-grid > a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.related-card {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card img {
    max-width: 100%;
    border-radius: var(--border-radius-sm);
    margin: auto auto 15px auto;
}

.related-card h3 {
    font-size: 1.1rem;
    margin: 0;
    margin-top: auto;
}

.related-card p {
    font-size: 0.9rem;
    color: var(--color-dark-gray);
    margin-bottom: 15px;
}

.related-section .no-results {
    padding: 30px 0;
}

@media (max-width: 1440px) {
    .product-detail-container {
        padding: 2.5rem 0;
    }
    .product-detail-main {
        gap: 1rem;
    }
    .product-detail-image {
        justify-content: center;
        align-items: baseline;
    }
    .product-detail-image img {
        width: 90%;
    }
    .product-detail-buttons .btn-whatsapp {
        font-size: 18px;
    }
    .product-detail-buttons .btn-cart i {
        font-size: 28px;
    }
}

@media (max-width: 1072px) {
    .product-detail-main {
        gap: 0;
    }
    .product-detail-buttons .btn-whatsapp {
        font-size: 14px;
        padding: 8px 12px;
    }
    .product-detail-buttons .btn-cart i {
        font-size: 25px;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        max-width: 100%;
        padding: 3rem 0;
    }
    .product-detail-main {
        flex-direction: column;
        margin: 0 0 3.5rem 0;
        padding: 0 15px;
        justify-content: center;
        align-items: center;
    }
    .product-detail-title {
        font-size: 2.5rem;
    }
    .product-detail-buttons {
        margin: 0;
    }
    .product-detail-buttons .btn-cart i {
        font-size: 35px;
    }
    .product-detail-buttons .btn-whatsapp {
        font-size: 17px;
        padding: 10px 14px;
    }
    .related-grid {
        gap: 10px;
    }
    .related-section {
        margin: 6rem 0 0;
    }
    .related-card {
        padding: 10px;
    }
}

@media (max-width: 650px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-detail-image img {
        width: 100%;
    }
    .product-detail-image {
        align-items: center;
        justify-content: unset;
    }
    .product-detail-buttons i {
        font-size: 43px;
    }
    .product-detail-buttons .btn-group-inline .btn {
        padding: 0;
    }
}

@media (max-width: 450px) {
    .product-detail-main {
        padding: 0;
    }
    .product-detail-image {
        width: 100%;
    }
    .product-detail-title {
        font-size: 2rem;
    }
    .product-detail-buttons {
        flex-direction: column;
        gap: 12px;
        margin: 0;
    }
    .product-detail-buttons form,
    .product-detail-buttons .btn-whatsapp {
        width: 100%;
    }
    .product-detail-buttons .btn {
        width: 100%;
        padding: 14px 10px;
        justify-content: center;
    }
    .product-detail-buttons .btn .btn-text {
        display: block;
        font-size: 1rem;
    }
    .product-detail-buttons .btn i {
        font-size: 1.4rem;
        margin-right: 8px;
    }
    .product-detail-buttons .btn-cart {
        background-color: #3b7b51;
        color: #ffffff;
        border: 1px solid #3b7b51;
    }
    .product-detail-buttons .btn-whatsapp {
        background-color: #ffffff;
        color: #3b7b51;
        border: 1px solid #d1d5db;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
