@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #b38e22;
    --secondary-color: #ac9b9b;
    --background-color: #f5f5f5;
    --text-color: #333;
    --light-background: #F8F8F8;
    --card-background: #FFFFFF;
    --dark-text-contrast: #222;
    --whatsapp-green: #a57e12;
    --whatsapp-hover: #cf9f19;
    --border-light: #E0E0E0;
    --shadow-subtle: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-background);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

header {
    background-color: var(--card-background);
    box-shadow: 0 3px 8px var(--shadow-subtle);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logoPrincipal {
    width: 70px;
}

.fazendaDecor {
    font-weight: 500;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
}

.nav-links li a {
    color: var(--dark-text-contrast);
    font-weight: 500;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-links>li>a:not(.btn-whatsapp-header):hover {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.dropdown-container {
    position: relative;
}

.dropdown-arrow {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown-container.ativo .dropdown-arrow {
    transform: rotate(180deg);
}

.btn-whatsapp-header {
    background-color: var(--whatsapp-green);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-whatsapp-header:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    border-bottom: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1005;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background-color: var(--dark-text-contrast);
    margin: 4px 0;
    transition: 0.4s;
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url(assets/princi.jpg) no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 10rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.hero-content {
    max-width: 900px;
}

.hero h1 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

section {
    padding: 5rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.catalogo {
    background-color: var(--light-background);
    padding-top: 6rem;
    position: relative;
}

.category-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    color: var(--dark-text-contrast);
    margin-top: 5rem;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.category-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 1px;
}

.swipe-hint {
    font-style: italic;
    color: #888;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.filtros-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filtro-btn {
    background-color: var(--card-background);
    color: var(--text-color);
    border: 2px solid var(--border-light);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.filtro-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px var(--shadow-subtle);
}


.categoria-wrapper {
    margin: 3rem auto;
    max-width: 1300px;
    text-align: center;
    position: relative;
}

.scroller-container {
    position: relative;
    padding: 0 50px;
    margin-top: 3.5rem;
}

.scroller {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.scroller::-webkit-scrollbar {
    display: none;
}

.scroller .tapete-card {
    flex: 0 0 auto;
    width: 320px;
}

.scroller-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.scroller-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.scroller-btn.prev {
    left: 4px;
}

.scroller-btn.next {
    right: 4px;
}

.scroller-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* CARD DE PRODUTO */
.tapete-card {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--shadow-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
}

.tapete-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.tapete-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

.tapete-card:hover img {
    transform: scale(1.05);
}

.tapete-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--dark-text-contrast);
    margin: 0 0 0.8rem 0;
}

.tapete-card p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.select-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.select-label input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.select-label input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.select-label input[type="checkbox"]:checked::before {
    content: '\2713';
    display: block;
    color: var(--white);
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-whatsapp-card {
    background-color: var(--whatsapp-green);
    color: var(--white);
    padding: 0.9rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: auto;
}

.btn-whatsapp-card:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.btn-whatsapp-contato {
    background-color: var(--whatsapp-green);
    color: var(--white);
    padding: 0.9rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-whatsapp-contato:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.btn-send-quote {
    background-color: var(--whatsapp-green);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-send-quote:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.ver-todos-container {
    text-align: center;
    margin-top: 2rem;
    display: block;
}

.btn-ver-todos {
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    font-size: 1rem;
}

.btn-ver-todos:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-subtle);
}

.grid-view {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.grid-view .tapete-card {
    width: 100%;
}

.categoria-wrapper.grid-active .grid-view {
    display: grid;
}

.categoria-wrapper.grid-active .scroller-container,
.categoria-wrapper.grid-active .swipe-hint {
    display: none;
}

footer {
    background-color: #997512;
    color: #f5f5f5;
    padding: 25px 1rem;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

footer .social-links a {
    color: #ffffff;
    font-size: 1.8em;
    margin: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #e6b84c;
}

@media (max-width: 992px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .btn-whatsapp-header {
        width: 115px;
        height: 40px;
        font-size: 12px;
    }

    section {
        padding: 4rem 1.5rem;
    }

    section h2 {
        font-size: 2.8rem;
    }

    .category-heading {
        font-size: 2.2rem;
    }

    .grid-view {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--card-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 2rem;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .hamburger.toggle .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 7px);
    }

    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .bar:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -7px);
    }

    .hero {
        padding: 6rem 1rem;
        min-height: 60vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 2.2rem;
    }

    .category-heading {
        font-size: 1.8rem;
    }

    /*carrossel p mobile*/
    .scroller-container {
        padding: 0;
    }

    .scroller {
        gap: 1rem;
        padding: 0 1rem 1rem 1rem;
        scroll-snap-type: x mandatory;
    }

    .scroller .tapete-card {
        scroll-snap-align: center;
        width: 280px;
    }

    .swipe-hint {
        content: 'Arraste para o lado para ver mais';
    }

    .grid-view {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .fazendaDecor {
        display: none;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .grid-view {
        grid-template-columns: 1fr;
    }
}

.tapete-card img {
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 15px;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.mega-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 600px;
    padding: 20px;
    background-color: #fff;
    border-top: 3px solid #997512;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    gap: 20px;
}

.mega-menu-coluna {
    flex: 1;
}

.mega-menu-coluna h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.mega-menu-coluna h4 a {
    color: inherit;
    text-decoration: none;
    font-size: 16px;
}

.mega-menu-coluna ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-coluna ul li {
    margin-bottom: 8px;
}

.mega-menu-coluna ul li a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.mega-menu-coluna ul li a:hover {
    color: #997512;
    text-decoration: underline;
}

.mega-menu.ativo {
    display: flex;
}


@media (max-width: 768px) {

    .dropdown-container.ativo .mega-menu {
        display: block;
    }

    .dropdown-container .mega-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: none;
        padding: 0;

        display: flex;
        flex-direction: column;
        gap: 10px;

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease-in-out;
        margin-top: 0;
    }

    .dropdown-container.submenu-active .mega-menu {
        max-height: 90vh;
        opacity: 1;
        margin-top: 10px;
        padding-bottom: 10px;
    }

    .mega-menu-coluna {
        padding: 0 15px;
    }

    .mega-menu-coluna h4 {
        background-color: var(--light-background);
        padding: 10px;
        border-radius: 5px;
        margin-bottom: 10px;
    }

    .mega-menu-coluna ul {
        padding-left: 15px;
    }

    .dropdown-container .dropdown-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .dropdown-container.submenu-active .dropdown-arrow {
        transform: rotate(180deg);
    }


    .mega-menu {
        position: static;

        box-shadow: none;
        border-top: none;
        width: 100%;
        padding: 0;

        overflow: hidden;
        max-height: 0;
        transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
    }

    .dropdown-container.ativo .mega-menu {
        max-height: 500px;
        margin-top: 15px;
    }

    .mega-menu-coluna {
        margin-bottom: 10px;
    }

    .mega-menu-coluna h4 {
        background-color: var(--light-background);
        padding: 10px 15px;
        border-radius: 5px;
        border-bottom: none;
        margin-bottom: 10px;
    }

    .mega-menu-coluna h4 a {
        font-size: 15px;
        font-weight: 600;
    }

    .mega-menu-coluna ul {
        padding-left: 20px;
    }

    .mega-menu-coluna ul li a {
        font-size: 14px;
        padding: 8px 0;
    }
}