/* =========================  RESET  ========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--creme);
    color: var(--marrom);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

body.cart-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

input {
    font-family: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
}

/* =========================  VARIÁVEIS  ========================= */

:root {
    --areia: #C9A982;
    --areia-clara: #E5D2B8;
    --areia-suave: #F3E8D8;
    --creme: #FAF6F0;
    --marrom: #4A382A;
    --branco: #FFFFFF;
    --background: #fcfaf7;
    --cream: #f5eee6;
    --beige: #e8d8c8;
    --brown: #5b4638;
    --dark: #29231f;
    --accent: #a87c62;
    --white: #ffffff;
    --border: #e5ddd5;
    --container: 1180px;
}

/* =========================  GERAL  ========================= */

.container {
    width: min(1180px, 90%);
    margin: auto;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 12px;
}

h1 {
    font-family: "Playfair Display", serif;
    font-weight: 600;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: "Playfair Display", serif;
    font-weight: 600;
    line-height: 1.1;
}

.button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Efeito de brilho suave */
.button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 70%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.22),
        transparent
    );
    transition: left 0.5s ease;
}

/* Movimento ao passar o mouse */
.button:hover {
    transform: translateY(-2px);
}

/* Brilho passando pelo botão */
.button:hover::before {
    left: 130%;
}

/* Efeito ao clicar */
.button:active {
    transform: translateY(0) scale(0.98);
}


/* =======================  BOTÃO PRINCIPAL  ========================= */

.button-primary {
    background: var(--areia);
    color: var(--branco);
    border: 1px solid var(--areia);
    box-shadow: 0 6px 18px rgba(74, 56, 42, 0.10);
}

.button-primary:hover {
    background: var(--marrom);
    border-color: var(--marrom);
    box-shadow: 0 8px 22px rgba(74, 56, 42, 0.18);
}

/* =========================  BOTÃO SECUNDÁRIO  ========================= */

.button-secondary {
    background: transparent;
    border: 1px solid var(--brown);
    color: var(--brown);
}

.button-secondary:hover {
    background: var(--cream);
    border-color: var(--areia);
    color: var(--marrom);
    box-shadow: 0 6px 18px rgba(74, 56, 42, 0.08);
}

/* =========================  BOTÃO CLARO  ========================= */

.button-light {
    background: var(--branco);
    color: var(--brown);
    box-shadow: 0 6px 18px rgba(74, 56, 42, 0.08);
}

.button-light:hover {
    background: var(--creme);
    color: var(--marrom);
    box-shadow: 0 8px 22px rgba(74, 56, 42, 0.14);
}

/* =========================  HEADER  ========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(252, 250, 247, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.header-content {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
    font-family: "Playfair Display", serif;
    font-size: 1.40rem;
    letter-spacing: 0.1em;
}

.logo span {
    font-family: "DM Sans", sans-serif;
    font-size: 0.52rem;
    letter-spacing: 0.40em;
    text-transform: uppercase;
    color: var(--accent);
}

.nav {
    display: flex;
    gap: 32px;
    font-size: 0.88rem;
}

.nav a {
    transition: 0.2s;
}

.nav a:hover {
    color: var(--accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-button {
    position: relative;
    background: transparent;
    font-size: 1.3rem;
}

.cart-button span {
    position: absolute;
    top: -9px;
    right: -10px;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brown);
    color: white;
    font-size: 0.65rem;
}

.menu-button {
    display: none;
    background: transparent;
    font-size: 1.5rem;
}


/* =========================  HERO  ========================= */

.hero {
    padding: 80px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.hero-text h1 {
    max-width: 620px;
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 0.98;
    margin-bottom: 25px;
}

.hero-text h1 span {
    color: var(--accent);
}

.hero-text p {
    max-width: 500px;
    color: #6d625b;
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image {
    height: 600px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}


/* =========================  CATEGORIAS  ========================= */

.categories {
      position: relative;
    background: var(--areia-suave);
    padding: 40px 20px 60px;
}

.section-heading {
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.category-card {
    background: var(--creme);
    color: var(--marrom);
    border: 1px solid var(--areia-clara);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    transition: 0.25s;
}

.category-card span {
    font-size: 1.5rem;
    color: var(--accent);
}

.category-card:hover,
.category-card.active {
    background: var(--areia);
    color: var(--branco);
}


/* =========================  PRODUTOS  ========================= */

.products-section {
    padding: 100px 0;
}

.products-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.products-heading p {
    max-width: 360px;
    color: #776d66;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: productAppear 0.6s ease both;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(74, 56, 42, 0.10);
}

@keyframes productAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.25s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    background: white;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    z-index: 2;
}

.product-info h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.product-category {
    color: #897e76;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-price {
    margin-top: 7px;
    font-weight: 700;
}

.add-cart {
    position: relative;
    width: 100%;
    margin-top: 12px;
    min-height: 44px;
    padding: 0 18px;
    background: var(--brown);
    color: var(--white);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    overflow: hidden;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

/* Brilho passando pelo botão */
.add-cart::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );
    transition: left 0.5s ease;
}

/* Efeito ao passar o mouse */
.add-cart:hover {
    background: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(74, 56, 42, 0.18);
}

.add-cart:hover::before {
    left: 130%;
}

/* Efeito ao clicar */
.add-cart:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 3px 8px rgba(74, 56, 42, 0.12);
}


/* =========================  BANNER  ========================= */

.banner {
    background: var(--areia);
    color: var(--branco);
    padding: 70px 0;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.banner h2 {
    max-width: 600px;
    margin-bottom: 12px;
}

.banner p {
    color: #e7dcd4;
}


/* =========================  SOBRE  ========================= */

.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    height: 560px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text h2 {
    max-width: 500px;
    margin-bottom: 25px;
}

.about-text p {
    max-width: 520px;
    color: #706760;
    margin-bottom: 15px;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--brown);
    font-weight: 700;
}


/* =========================  BENEFÍCIOS  ========================= */

.benefits {
    padding: 70px 0;
    background: var(--cream);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit {
    text-align: center;
}

.benefit span {
    font-size: 1.8rem;
}

.benefit h3 {
    margin: 10px 0 5px;
    font-size: 0.95rem;
}

.benefit p {
    color: #776d66;
    font-size: 0.82rem;
}


/* =========================  NEWSLETTER  ========================= */

.newsletter {
    padding: 100px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 700px;
}

.newsletter h2 {
    margin-bottom: 15px;
}

.newsletter p {
    color: #776d66;
    margin-bottom: 30px;
}

.newsletter form {
    display: flex;
    max-width: 550px;
    margin: auto;
}

.newsletter input {
    flex: 1;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--border);
    outline: none;
}

.newsletter button {
    padding: 0 25px;
    background: var(--brown);
    color: white;
    font-weight: 600;
}


/* =========================  FOOTER  ========================= */

.footer {
    background: #28221f;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 50px;
    padding: 70px 0;
}

.footer-brand p {
    color: #b9aea7;
    margin-top: 15px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h4 {
    margin-bottom: 8px;
}

.footer-column a {
    color: #b9aea7;
    font-size: 0.85rem;
    transition: 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #403934;
    color: #968a83;
    font-size: 0.75rem;
}


/* =========================  CARRINHO  ========================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.35);
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.cart-overlay.open {
    visibility: visible;
    opacity: 1;
}

.cart {
    position: absolute;
    right: 0;
    top: 0;
    width: min(430px, 100%);
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: 0.3s;
}

.cart-overlay.open .cart {
    transform: translateX(0);
}

.cart-header {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.cart-header button {
    background: transparent;
    font-size: 1.7rem;
}

.cart-items {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #8a817a;
    margin-top: 60px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    animation: cartItemAppear 0.45s ease both;
}

@keyframes cartItemAppear {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item h4 {
    font-family: "Playfair Display", serif;
}

.cart-item small {
    display: block;
    color: #776d66;
    font-size: 0.78rem;
}

.cart-item button {
    background: transparent;
    color: #a04d4d;
    flex-shrink: 0;
}


/* =========================  MODAL DE TAMANHO  ========================= */

.size-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(54, 43, 34, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s;
    opacity: 0.25s ease;
    visibility: 0.25s ease;
    z-index: 9999;
}

.size-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.size-modal {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #FAF6F0;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 70px rgba(54, 43, 34, 0.25);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.size-modal-overlay.open .size-modal {
    transform: translateY(0);
}

.size-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 38px;
    height: 38px;
    background: transparent;
    font-size: 30px;
    color: #4A382A;
}

.size-modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.size-modal-header h2 {
    margin: 8px 0;
    color: #4A382A;
    font-family: "Playfair Display", serif;
    font-size: 2rem;
}

.size-modal-header p {
    margin: 0;
    color: #756557;
    line-height: 1.6;
}


/* =========================  TAMANHOS  ========================= */

.size-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.size-option {
    min-height: 48px;
    border: 1px solid #D8C2A7;
    border-radius: 10px;
    background: #FFFFFF;
    color: #4A382A;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
}

.size-option:hover {
    border-color: #C9A982;
    background: #F3E8D8;
}

.size-option.active {
    background: #C9A982;
    border-color: #C9A982;
    color: #FFFFFF;
}

.size-option.size-custom {
    grid-column: 1 / -1;
}


/* =========================  MEDIDAS  ========================= */

.measurements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.measurement-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.measurement-field label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #4A382A;
}

.measurement-field input {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #D8C2A7;
    border-radius: 8px;
    background: #FFFFFF;
    color: #4A382A;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.measurement-field input:focus {
    border-color: #C9A982;
    box-shadow: 0 0 0 3px rgba(201, 169, 130, 0.15);
}

.measurement-field input:disabled {
    background: #EEE6DC;
    color: #756557;
    cursor: not-allowed;
}

.custom-size-message {
    display: none;
    margin: 10px 0 20px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F3E8D8;
    color: #5F4B3A;
    font-size: 0.85rem;
    line-height: 1.5;
}

.custom-size-message.visible {
    display: block;
}

.modal-add-button {
    width: 100%;
    margin-top: 10px;
}


/* =========================  RESPONSIVO  ========================= */

@media (max-width: 900px) {

    .nav {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .header-content {
        gap: 15px;
    }

    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        width: 100%;
        height: 600px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .nav.mobile-open {
        display: flex;
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        padding: 20px;
        background: #fcfaf7;
        flex-direction: column;
        gap: 18px;
        border-top: 1px solid #e5ddd5;
    }
}

@media (max-width: 600px) {

    .header-actions {
        gap: 12px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .button {
        width: 100%;
    }

    .hero-image {
        height: 400px;
    }

    .products-heading {
        display: block;
    }

    .products-heading p {
        margin-top: 15px;
    }

    .products-grid {
        gap: 15px;
        grid-template-columns: repeat(2, 1fr);
    }

    .product-info h3 {
        font-size: 1rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-card:last-child {
        grid-column: auto;
    }

    .banner-content {
        display: block;
    }

    .banner .button {
        margin-top: 25px;
    }

    .about-image {
        height: 400px;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter form {
        display: block;
    }

    .newsletter input,
    .newsletter button {
        width: 100%;
    }

    .newsletter button {
        min-height: 50px;
        margin-top: 8px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
    }

    .size-modal {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .size-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .size-option.size-custom {
        grid-column: 1 / -1;
    }

    .measurements {
        grid-template-columns: 1fr;
    }
}

/* =========================  VER MAIS PRODUTOS  ========================= */

.products-more {
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.products-more .button {
    min-width: 210px;
}

#loadMoreProducts {
    display: none;
}

/* ======================================================
   ANIMAÇÃO DO CARRINHO
   ====================================================== */

#openCart.cart-bounce {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {

    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.15);
    }

    65% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/*============================================  ANIMAÇÃO DA QUANTIDADE DO CARRINHO  ================================================*/

#cartCount.cart-count-pop {
    animation: cartCountPop 0.4s ease;
}

@keyframes cartCountPop {
    0% {transform: scale(1);}
    40% {transform: scale(1.3);}
    70% {transform: scale(0.9);}
    100% {transform: scale(1);}
}