/* ===== HOME PAGE STYLES — Paleta Miolli ===== */
/* #ccc7c0 areia | #cead84 dourado | #886150 terracota | #1a1923 noite */

/* ——— HERO ——— */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

/* Fundo claro quente — não escuro! */
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #f0ebe3 0%, #e8e0d4 50%, #ddd5c8 100%);
}

/* Textura SVG do cliente como background */
.hero-texture {
    position: absolute;
    inset: 0;
    background-image: url('../textura.svg');
    background-size: 320px 320px;
    background-repeat: repeat;
    opacity: 0.06;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 80px);
    justify-content: center;
}

.hero-pre {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}
.hero-pre-line {
    width: 40px;
    height: 1px;
    background: var(--terracota);
}
.hero-pre-text {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--terracota);
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5.5rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--noite);
    margin-bottom: 32px;
    max-width: 800px;
}
.hero-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--terracota);
}

.hero-desc {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: rgba(26, 25, 35, 0.55);
    line-height: 2;
    max-width: 500px;
}

/* Logo hero decorativa */
.hero-logo-deco {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.12;
    pointer-events: none;
}
.hero-logo-deco img { height: 80px; width: auto; }

.hero-combo {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;
    white-space: nowrap;
}
.combo-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(136, 97, 80, 0.35);
    padding: 14px 28px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(247, 244, 240, 0.7);
    backdrop-filter: blur(8px);
}
.combo-badge:hover {
    border-color: var(--terracota);
    background: rgba(136, 97, 80, 0.08);
}
.combo-label {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracota);
}
.combo-detail {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--noite);
}
.brand-pill-meta {
    font-size: 0.58rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(26, 25, 35, 0.3);
}

/* ——— SEÇÃO COLEÇÕES ——— */
.colecoes-section {
    padding: 120px 0 0;
    background: var(--branco);
    /* overflow: visible para o carrossel transbordar */
    overflow: visible;
}

.section-header {
    max-width: 1140px;
    margin: 0 auto 64px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}
.eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--dourado);
}
.eyebrow-text {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--terracota);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--noite);
    white-space: nowrap;
}
.section-title em {
    font-style: italic;
    color: var(--terracota);
}

.carousel-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 8px;
}
.ctrl-btn {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(136, 97, 80, 0.25);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.ctrl-btn svg {
    width: 18px;
    height: 18px;
    stroke: var(--noite);
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s;
}
.ctrl-btn:hover {
    background: var(--terracota);
    border-color: var(--terracota);
}
.ctrl-btn:hover svg { stroke: var(--areia); }

/* ——— CARROSSEL OVERFLOW ——— */
/* O wrapper transborda a página intencionalmente */
.carousel-outer {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    padding-bottom: 0;
}

.carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    box-sizing: content-box;
    /* padding aplicado via JS */
}

.cat-card {
    /* 3 cards visíveis: (container - 2*padding - 2*gap) / 3 */
    flex: 0 0 calc((min(100vw, 1140px) - 80px - 32px) / 3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4;
    transition: box-shadow 0.4s;
}
.cat-card:hover {
    box-shadow: 0 24px 60px rgba(26, 25, 35, 0.18);
}

.cat-card-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
}
.cat-card:hover .cat-card-bg { transform: scale(1.05); }

/* Fundos com a paleta do cliente */
.cat-bg-1 { background: linear-gradient(145deg, #e8dfd4 0%, #d4c4b4 100%); }
.cat-bg-2 { background: linear-gradient(145deg, #ccc7c0 0%, #b8b0a6 100%); }
.cat-bg-3 { background: linear-gradient(145deg, #d8cfc4 0%, #c8bdb0 100%); }
.cat-bg-4 { background: linear-gradient(145deg, #c4b8ac 0%, #b0a294 100%); }
.cat-bg-5 { background: linear-gradient(145deg, #e0d8d0 0%, #ccbfb4 100%); }
.cat-bg-6 { background: linear-gradient(145deg, #d0c8bc 0%, #bcb0a4 100%); }

/* Textura do cliente dentro de cada card */
.cat-card-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../textura.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.12;
}

.cat-card-glyph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.1;
    font-family: 'Cormorant Garamond', serif;
    font-size: 8rem;
    font-weight: 300;
    color: var(--terracota);
    transition: opacity 0.4s;
}
.cat-card:hover .cat-card-glyph { opacity: 0.2; }

.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,25,35,0.75) 0%, rgba(26,25,35,0.0) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 32px;
}

.cat-number {
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--dourado);
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease 0.05s;
}
.cat-card:hover .cat-number { opacity: 1; transform: translateY(0); }

.cat-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #f7f4f0;
    margin-bottom: 6px;
}

.cat-sub {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(204, 199, 192, 0.6);
    margin-bottom: 20px;
}

.cat-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dourado);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease 0.05s;
}
.cat-cta-line {
    width: 24px;
    height: 1px;
    background: var(--dourado);
    transition: width 0.3s;
}
.cat-card:hover .cat-cta { opacity: 1; transform: translateY(0); }
.cat-card:hover .cat-cta-line { width: 36px; }

/* Dots — dentro do carousel-outer */
.carousel-dots-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 28px 0 48px;
}
.cdot {
    width: 6px;
    height: 6px;
    background: rgba(136, 97, 80, 0.22);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    flex-shrink: 0;
}
.cdot.active {
    width: 24px;
    border-radius: 3px;
    background: var(--terracota);
}

/* ——— PRODUTOS ——— */
.produtos-section {
    padding: 100px 0;
    background: var(--areia);
    /* Faixa de textura sutil no topo */
    position: relative;
}
.produtos-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--terracota), var(--dourado), var(--terracota));
}

.section-header-inner {
    max-width: 1140px;
    margin: 0 auto 64px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--terracota);
    padding: 12px 28px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--terracota);
    background: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: var(--terracota);
    color: var(--areia);
}

.produtos-grid {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

.prod-card {
    position: relative;
    cursor: pointer;
}

.prod-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--cinza-claro);
    margin-bottom: 20px;
}

.prod-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.04); }

.prod-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--terracota);
    color: #f7f4f0;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 5px 12px;
    text-transform: uppercase;
}

.prod-add {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--noite);
    color: var(--areia);
    padding: 14px;
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.prod-add svg {
    width: 14px;
    height: 14px;
    stroke: var(--dourado);
    stroke-width: 2;
    fill: none;
}
.prod-card:hover .prod-add { transform: translateY(0); }

.prod-info {
    padding: 0 4px;
}
.prod-brand {
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracota);
    margin-bottom: 6px;
}
.prod-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--noite);
    line-height: 1.35;
    margin-bottom: 12px;
}
.prod-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.price-old {
    font-size: 0.7rem;
    color: var(--cinza);
    text-decoration: line-through;
}
.price-now {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--noite);
}

/* ——— MANIFESTO ——— */
.manifesto-section {
    padding: 120px 56px;
    background: var(--noite);
    position: relative;
    overflow: hidden;
}

/* Textura do cliente no manifesto */
.manifesto-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../textura.svg');
    background-size: 300px 300px;
    background-repeat: repeat;
    opacity: 0.04;
    pointer-events: none;
}

.manifesto-section::before {
    content: 'MIOLLI';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 18rem;
    font-weight: 700;
    color: rgba(206, 173, 132, 0.04);
    letter-spacing: 16px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.manifesto-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.manifesto-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}
.ornament-line {
    width: 60px;
    height: 1px;
    background: var(--dourado);
    opacity: 0.5;
}
.ornament-diamond {
    width: 6px;
    height: 6px;
    background: var(--dourado);
    transform: rotate(45deg);
}

.manifesto-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.4rem;
    font-weight: 300;
    color: var(--areia);
    line-height: 1.25;
    margin-bottom: 32px;
}
.manifesto-title em {
    font-style: italic;
    color: var(--dourado);
}

.manifesto-text {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(204, 199, 192, 0.5);
    line-height: 2;
    max-width: 560px;
    margin: 0 auto;
    letter-spacing: 0.3px;
}

/* Logo no rodapé do manifesto */
.manifesto-logo {
    margin-top: 56px;
    display: flex;
    justify-content: center;
    opacity: 0.35;
}
.manifesto-logo img { height: 48px; width: auto; }

/* ——— ANIMATIONS ——— */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-pre { animation: fadeUp 0.7s ease both; animation-delay: 0.1s; }
.hero-title { animation: fadeUp 0.8s ease both; animation-delay: 0.25s; }
.hero-desc { animation: fadeUp 0.8s ease both; animation-delay: 0.4s; }
.hero-combo { animation: fadeUp 0.7s ease both; animation-delay: 0.6s; }

/* ——— RESPONSIVE ——— */
@media (max-width: 1024px) {
    .hero-content { padding: 0 32px; }
    .hero-title { font-size: 4rem; }
    .produtos-grid { grid-template-columns: repeat(2, 1fr); padding: 0 32px; }
    .section-header, .section-header-inner { padding: 0 32px; }
    /* cat-card: 2 visíveis em tablet */
    .cat-card { flex: 0 0 calc((min(100vw, 900px) - 64px - 16px) / 2); }
}

@media (max-width: 768px) {
    .main-header { height: 68px; }
    .hero-content { padding: 0 24px; min-height: auto; padding-top: 60px; padding-bottom: 80px; }
    .hero-title { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; white-space: normal; }
    .produtos-grid { grid-template-columns: 1fr; padding: 0 24px; }
    .section-header, .section-header-inner { padding: 0 24px; flex-direction: column; gap: 24px; align-items: flex-start; }
    /* cat-card: 1 visível em mobile */
    .cat-card { flex: 0 0 calc(100vw - 48px); }
    .manifesto-section { padding: 80px 24px; }
    .manifesto-title { font-size: 2.4rem; }
}
