/* ============================================================
   PAMPA ALFAJORES — style.css
   Premium gourmet brand stylesheet
   ============================================================ */

/* ── Design tokens ── */
:root {
    --gold:        #C8A96E;
    --gold-light:  #DFC08A;
    --gold-dark:   #A8864A;
    --cream:       #FAF6EF;
    --cream-dark:  #F0E8D8;
    --espresso:    #1C1410;
    --bark:        #3D2B1F;
    --moka:        #6B4A35;
    --sand:        #C4A882;
    --text:        #2A1F17;
    --text-muted:  #8A7468;
    --white:       #FFFFFF;
    --error:       #C0392B;

    --shadow-soft:   0 4px 24px rgba(28,20,16,0.07);
    --shadow-card:   0 8px 40px rgba(28,20,16,0.10);
    --shadow-hover:  0 20px 60px rgba(28,20,16,0.16);
    --shadow-gold:   0 8px 30px rgba(200,169,110,0.35);

    --radius-sm:  10px;
    --radius-md:  18px;
    --radius-lg:  28px;
    --radius-xl:  40px;

    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --header-h: 104px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Jost', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }

/* ── Typography ── */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.15;
    font-weight: 500;
}

/* ── Layout Utilities ── */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
}
.section { padding: 100px 0; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--espresso); }

/* ── Reveal Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 900;
    transition: var(--transition);
}
header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(250,246,239,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200,169,110,0.15);
    transition: var(--transition);
}
header.scrolled::before {
    background: rgba(250,246,239,0.97);
    box-shadow: 0 4px 30px rgba(28,20,16,0.08);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
    height: var(--header-h);
    transition: var(--transition);
}
header.scrolled .header-inner { height: 68px; }

.logo-img {
    height: 96px;   /* era 72px — aumentado para presença premium */
    width: auto;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
header.scrolled .logo-img { height: 70px; } /* era 52px */

/* Desktop Nav */
nav#main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    position: relative;
    z-index: 1;
}
nav#main-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bark);
    transition: var(--transition);
    position: relative;
    padding-bottom: 3px;
}
nav#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}
nav#main-nav a:hover { color: var(--gold-dark); }
nav#main-nav a:hover::after { width: 100%; }

/* Cart Button */
.cart-trigger {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--espresso);
    color: var(--cream);
    transition: var(--transition);
}
.cart-trigger:hover {
    background: var(--gold-dark);
    transform: scale(1.05);
}
.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gold);
    color: var(--espresso);
    font-size: 0.6rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cream);
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 32px;
    position: relative;
    z-index: 1;
}
.menu-toggle span {
    display: block;
    height: 1.5px;
    background: var(--espresso);
    border-radius: 2px;
    transition: var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28,20,16,0.5);
    z-index: 800;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-overlay.active { opacity: 1; }
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--cream);
    z-index: 850;
    padding: 100px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 8px 0 40px rgba(28,20,16,0.15);
}
.mobile-nav.open { left: 0; }
.mobile-nav a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--bark);
    transition: var(--transition);
    border-bottom: 1px solid rgba(200,169,110,0.2);
    padding-bottom: 16px;
}
.mobile-nav a:hover { color: var(--gold-dark); }
.mobile-nav-close {
    position: absolute;
    top: 28px;
    right: 24px;
    font-size: 2rem;
    color: var(--bark);
    background: none;
    border: none;
    line-height: 1;
    transition: var(--transition);
}
.mobile-nav-close:hover { color: var(--gold-dark); transform: rotate(90deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Posicionamento cinematográfico: foco no centro-superior para revelar o alfajor */
    object-position: center 35%;
    transform: scale(1.05);
    animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(28,20,16,0.75) 0%,
        rgba(61,43,31,0.55) 50%,
        rgba(28,20,16,0.40) 100%
    );
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    padding-top: var(--header-h);
}
.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s ease forwards;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--white);
    font-weight: 300;
    line-height: 1.08;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.9s 0.5s ease forwards;
}
.hero-title em {
    font-style: italic;
    color: var(--gold-light);
}
.hero-sub {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,0.75);
    max-width: 520px;
    line-height: 1.75;
    margin-bottom: 44px;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 0.9s 0.7s ease forwards;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s 0.9s ease forwards;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s 1.4s ease forwards;
}
.hero-scroll-indicator span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 0 auto;
    animation: scrollLine 2s 1.5s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeIn { to { opacity: 1; } }

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--espresso);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 36px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(200,169,110,0.5);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 15px 36px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: var(--transition);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* ============================================================
   TAGLINE STRIP
   ============================================================ */
.tagline-strip {
    background: var(--espresso);
    padding: 14px 0;
    text-align: center;
    overflow: hidden;
}
.tagline-strip p {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    font-weight: 500;
}
.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    color: var(--espresso);
    margin-bottom: 14px;
}
.section-header p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}
.produto-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: var(--transition-slow);
    border: 1px solid rgba(200,169,110,0.1);
    opacity: 0;
    transform: translateY(28px);
}
.produto-card.visible {
    opacity: 1;
    transform: none;
}
.produto-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-hover);
    border-color: rgba(200,169,110,0.3);
}
.card-media {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--cream-dark);
}
.card-media img, .card-media-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.card-media-bg {
    background-size: cover;
    background-position: center;
}
.produto-card:hover .card-media img,
.produto-card:hover .card-media-bg { transform: scale(1.07); }
.card-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,20,16,0.4), transparent 50%);
    opacity: 0;
    transition: var(--transition);
}
.produto-card:hover .card-media-overlay { opacity: 1; }

.card-body {
    padding: 28px 28px 32px;
}
.card-body h3 {
    font-size: 1.35rem;
    color: var(--espresso);
    margin-bottom: 8px;
}
.card-body p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 300;
}
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.preco-tag {
    font-size: 1.25rem;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold-dark);
    font-weight: 600;
}
.card-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--espresso);
    border: 1px solid var(--espresso);
    padding: 8px 18px;
    border-radius: 50px;
    transition: var(--transition);
}
.card-add-btn:hover {
    background: var(--espresso);
    color: var(--cream);
}

/* ============================================================
   COMBOS
   ============================================================ */
.grid-combos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.combo-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: var(--transition-slow);
    border: 1px solid rgba(200,169,110,0.12);
    overflow: hidden;
}
.combo-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.combo-card-destaque {
    border-color: var(--gold);
    border-width: 2px;
}
.combo-highlight-label {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--gold);
    color: var(--espresso);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 0 var(--radius-lg) 0 var(--radius-sm);
}
.combo-card-inner { padding: 36px 32px; }
.combo-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: rgba(200,169,110,0.12);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.combo-card h3 {
    font-size: 1.6rem;
    color: var(--espresso);
    margin-bottom: 10px;
}
.combo-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 28px;
}
.combo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.combo-preco {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--gold-dark);
}
.combo-cta {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--espresso);
    transition: var(--transition);
}
.combo-card:hover .combo-cta { color: var(--gold-dark); letter-spacing: 0.12em; }

/* ============================================================
   GALERIA
   ============================================================ */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 260px 260px;
    gap: 16px;
}
.galeria-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bark);
}
.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
    opacity: 0.85;
}
.galeria-item:hover img { transform: scale(1.07); opacity: 1; }
.galeria-tall { grid-row: span 2; }
.galeria-wide { grid-column: span 2; }

/* Slot extra da galeria — oculto no desktop, visível apenas no mobile via @media */
.galeria-mobile-extra { display: none; }

.galeria-placeholder-mobile {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(200,169,110,0.25);
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.3);
    text-align: center;
    padding: 16px;
}
.galeria-placeholder-mobile span {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(200,169,110,0.4);
}
.galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28,20,16,0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
}
.galeria-item:hover .galeria-overlay { opacity: 1; }
.galeria-overlay span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
}

/* ============================================================
   SOBRE
   ============================================================ */
.sobre-section { background: var(--cream); }
.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.sobre-img {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 560px;
    box-shadow: var(--shadow-hover);
}
.sobre-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.sobre-img-deco {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 180px;
    height: 180px;
    border: 2px solid var(--gold);
    border-radius: var(--radius-xl);
    z-index: -1;
}
.sobre-content .section-label { margin-bottom: 12px; }
.sobre-content h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--espresso);
    margin-bottom: 24px;
}
.sobre-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 20px;
}
.sobre-valores {
    display: flex;
    gap: 24px;
    margin: 36px 0 40px;
    border-top: 1px solid rgba(200,169,110,0.25);
    border-bottom: 1px solid rgba(200,169,110,0.25);
    padding: 24px 0;
}
.valor-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.valor-item strong {
    font-size: 0.9rem;
    color: var(--espresso);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.valor-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--espresso);
    padding: 64px 0 0;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 48px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5% 48px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { margin-bottom: 16px; filter: brightness(0) invert(1) opacity(0.8); }
/* Classe específica para o logo no footer — sem filtro, exibe com cor original */
.footer-logo { filter: none !important; opacity: 1; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.4); line-height: 1.7; font-weight: 300; }
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
}
.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.04em;
    transition: var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}
.footer-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}
.footer-wa:hover { color: var(--gold-light); }
.footer-bottom {
    text-align: center;
    padding: 20px 5%;
}
.footer-bottom p { font-size: 0.72rem; color: rgba(255,255,255,0.25); letter-spacing: 0.04em; }

/* ============================================================
   MODAL
   ============================================================ */
#modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28,20,16,0.75);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(6px);
}
.modal-content {
    background: var(--white);
    max-width: 680px;
    width: 100%;
    border-radius: var(--radius-xl);
    position: relative;
    max-height: 90vh;
    overflow: hidden;
    animation: modalIn 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: none; }
}
.modal-info {
    overflow-y: auto;
    padding: 48px 40px;
    flex: 1;
}
.fechar-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    color: var(--text-muted);
    line-height: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    background: none;
    border: none;
}
.fechar-modal:hover { background: var(--cream-dark); color: var(--espresso); }

/* Modal — single product */
.modal-product-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--cream-dark);
}
.modal-product-img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--cream-dark);
}
.modal-product-header h2 {
    font-size: 1.8rem;
    color: var(--espresso);
    margin-bottom: 4px;
}
.modal-product-header p { font-size: 0.9rem; color: var(--text-muted); font-weight: 300; }

/* Cobertura options */
.coberturas-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.cobertura-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}
.cobertura-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--cream-dark);
    cursor: pointer;
    transition: var(--transition);
}
.cobertura-option:hover { border-color: var(--gold); background: rgba(200,169,110,0.04); }
.cobertura-option input[type="radio"] { accent-color: var(--gold-dark); width: 16px; height: 16px; }
.cobertura-option span { font-size: 0.9rem; color: var(--bark); font-weight: 400; }

/* Qty + add row */
.modal-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* Qty Controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--cream-dark);
    border-radius: 50px;
    padding: 6px 16px;
}
.btn-qty {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(200,169,110,0.3);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--bark);
    transition: var(--transition);
    line-height: 1;
}
.btn-qty:hover:not(:disabled) { background: var(--espresso); color: var(--white); border-color: var(--espresso); }
.btn-qty:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-num { font-size: 1.05rem; font-weight: 600; min-width: 24px; text-align: center; color: var(--espresso); }

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--espresso);
    color: var(--cream);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}
.btn-add-cart:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

/* ── Combo Builder ── */
.combo-header-modal {
    position: sticky;
    top: -48px;
    background: var(--white);
    z-index: 5;
    padding: 48px 0 24px;
    margin-top: -48px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--cream-dark);
}
.combo-header-modal h2 {
    font-size: 1.8rem;
    color: var(--espresso);
    margin-bottom: 4px;
}
.combo-header-modal p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; font-weight: 300; }

.progress-bar {
    height: 4px;
    background: var(--cream-dark);
    border-radius: 99px;
    overflow: hidden;
    margin: 12px 0 10px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--gold), var(--gold-dark));
    transition: width 0.4s ease;
    border-radius: 99px;
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.progress-meta strong { color: var(--espresso); }

.sabor-group {
    background: var(--cream);
    border: 1px solid rgba(200,169,110,0.15);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-bottom: 14px;
    transition: var(--transition);
}
.sabor-group:hover { border-color: rgba(200,169,110,0.4); }
.sabor-group-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(200,169,110,0.15);
}
.sabor-mini-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--cream-dark);
}
.sabor-group-top strong {
    font-size: 0.95rem;
    color: var(--espresso);
    display: block;
    margin-bottom: 2px;
}
.sabor-group-top small { font-size: 0.78rem; color: var(--gold-dark); font-weight: 400; }

.cobertura-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(200,169,110,0.1);
}
.cobertura-linha:last-child { border-bottom: none; padding-bottom: 0; }
.cobertura-linha-nome { font-size: 0.85rem; color: var(--text-muted); }

.qty-mini {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-qty-mini {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(200,169,110,0.3);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 400;
    color: var(--bark);
    transition: var(--transition);
    line-height: 1;
}
.btn-qty-mini:hover:not(:disabled) { background: var(--espresso); color: var(--white); border-color: var(--espresso); }
.btn-qty-mini:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-mini-num { font-size: 0.9rem; font-weight: 600; min-width: 16px; text-align: center; color: var(--espresso); }

.combo-footer-modal {
    position: sticky;
    bottom: -48px;
    background: var(--white);
    padding: 20px 0 48px;
    margin-bottom: -48px;
    border-top: 1px solid var(--cream-dark);
    z-index: 5;
}

/* ============================================================
   CARRINHO LATERAL
   ============================================================ */
#carrinho-lateral {
    position: fixed;
    right: -460px;
    top: 0;
    width: 420px;
    height: 100%;
    background: var(--white);
    z-index: 3000;
    transition: right 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(28,20,16,0.12);
}
#carrinho-lateral.active { right: 0; }

.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(28,20,16,0.4);
    z-index: 2900;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
}
.cart-overlay.active { opacity: 1; }

.carrinho-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 28px 20px;
    border-bottom: 1px solid var(--cream-dark);
}
.carrinho-header h2 {
    font-size: 1.4rem;
    color: var(--espresso);
}
.carrinho-close {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.carrinho-close:hover { color: var(--espresso); transform: rotate(90deg); }

.itens-carrinho {
    flex: 1;
    overflow-y: auto;
    padding: 16px 28px;
}
.itens-carrinho::-webkit-scrollbar { width: 4px; }
.itens-carrinho::-webkit-scrollbar-thumb { background: var(--cream-dark); border-radius: 4px; }

.cart-vazio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 300;
}
.cart-vazio-icon { font-size: 2.5rem; opacity: 0.3; }

.cart-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--cream-dark);
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}
.cart-item-nome {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--espresso);
    flex: 1;
    margin-right: 12px;
}
.cart-item-preco {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-dark);
    white-space: nowrap;
}
.cart-item-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-weight: 300;
    margin-bottom: 8px;
}
.cart-item-remover {
    font-size: 0.72rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.cart-item-remover:hover { color: var(--error); }

/* Error message */
.error-msg {
    display: none;
    background: #fef5f5;
    border: 1px solid #f5c6c6;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 0 28px 12px;
    font-size: 0.8rem;
    color: var(--error);
    line-height: 1.5;
    animation: fadeIn 0.3s ease;
}

/* Método de entrega */
#entrega-container { padding: 0 28px 12px; }
.method-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.method-card {
    flex: 1;
    padding: 12px;
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
}
.method-card.active {
    border-color: var(--gold);
    background: rgba(200,169,110,0.06);
}
.method-card span { font-size: 1.3rem; display: block; margin-bottom: 4px; }
.method-card strong {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    color: var(--bark);
}
.checkout-box {
    background: var(--cream);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 0.82rem;
}
.form-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.address-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(200,169,110,0.25);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    background: var(--white);
    color: var(--espresso);
    transition: var(--transition);
    margin-bottom: 10px;
}
.address-input:focus {
    outline: none;
    border-color: var(--gold);
}

/* Frete grátis badge no carrinho */
.frete-gratis-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #98d4a3;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a5c2a;
    letter-spacing: 0.04em;
    animation: fadeInBadge 0.4s ease;
}
@keyframes fadeInBadge {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
.frete-gratis-badge .badge-icon { font-size: 1rem; }

/* Cart Footer */
.cart-footer {
    padding: 16px 28px 28px;
    border-top: 1px solid var(--cream-dark);
    background: var(--white);
}
.cart-totals { margin-bottom: 16px; }
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.cart-total-final {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--espresso);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--cream-dark);
}
.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25D366;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); }
.btn-whatsapp:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.btn-voltar {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.btn-voltar:hover { color: var(--espresso); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    nav#main-nav { display: none; }
    .menu-toggle { display: flex; }
    .nav-overlay { display: block; }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .sobre-img { height: 360px; }
    .sobre-img-deco { display: none; }

    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .galeria-tall { grid-row: span 1; }
    .galeria-wide { grid-column: span 2; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    #carrinho-lateral { width: 100%; right: -100%; }
}

@media (max-width: 600px) {
    :root { --header-h: 84px; }
    .logo-img { height: 68px; }            /* era 54px */
    header.scrolled .logo-img { height: 52px; } /* era 44px */

    .section { padding: 72px 0; }
    .section-header { margin-bottom: 44px; }

    .hero-title { font-size: clamp(2.6rem, 11vw, 4rem); }

    .grid-produtos { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

    .galeria-grid {
        grid-template-columns: 1fr 1fr;
        /* 3 linhas de 180px: 4 itens normais + 1 slot extra mobile = 6 células */
        grid-template-rows: 180px 180px 180px;
    }
    /* No mobile: wide ocupa 1 coluna (não span 2) para caber no grid 2×3 */
    .galeria-wide { grid-column: span 1; }
    /* Slot extra aparece só no mobile */
    .galeria-mobile-extra { display: flex; }

    .sobre-valores { flex-direction: column; gap: 16px; }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .modal-info { padding: 36px 24px; }
    .combo-header-modal { top: -36px; padding-top: 36px; margin-top: -36px; }
    .combo-footer-modal { bottom: -36px; padding-bottom: 36px; margin-bottom: -36px; }

    .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .hero-bg-img { animation: none; }
}

/* ============================================================
   FRETE GRÁTIS BAR
   ============================================================ */
.frete-bar {
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
    background-size: 200% 100%;
    animation: shineBar 4s ease-in-out infinite alternate;
    padding: 10px 5%;
    text-align: center;
    /* Fixa no topo, acima do header */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Transição suave ao sumir com o scroll */
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity  0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Classe aplicada via JS: barra sobe para fora da tela */
.frete-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
@keyframes shineBar {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}
.frete-bar p {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--espresso);
}
/* Header começa abaixo da barra, sobe quando ela some */
header {
    top: 36px;
    transition: top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s ease;
}
header.scrolled {
    top: 0;
}
/* Ajusta scroll-padding para compensar header+barra */
html { scroll-padding-top: 150px; }

/* ============================================================
   CARD PLACEHOLDER (produtos sem foto)
   ============================================================ */
.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #EDE3D5, #E0D5C5);
    color: var(--text-muted);
    padding: 20px;
    text-align: center;
}
.card-placeholder span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--moka);
}
.card-placeholder small {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0.8;
}

/* ============================================================
   SOBRE — PLACEHOLDER DE IMAGEM
   ============================================================ */
.sobre-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(135deg, #EDE3D5 0%, #D8C8B0 100%);
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
    border-radius: inherit;
}
.sobre-img-placeholder span {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bark);
    line-height: 1.6;
}
.sobre-img-placeholder small {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ============================================================
   PARA EMPRESAS
   ============================================================ */
.empresas-section {
    background: var(--espresso);
    position: relative;
    overflow: hidden;
}

/* Detalhe decorativo dourado no fundo */
.empresas-bg-deco {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,169,110,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Header */
.empresas-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 72px;
}
.empresas-titulo {
    font-size: clamp(2.4rem, 5vw, 4rem);
    color: var(--white);
    font-weight: 300;
    line-height: 1.1;
    margin: 12px 0 24px;
}
.empresas-titulo em {
    font-style: italic;
    color: var(--gold-light);
}
.empresas-subtexto {
    font-size: 1rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto;
}

/* Grid de cards */
.empresas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 72px;
}

.empresa-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(200,169,110,0.14);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}
/* Linha dourada fina no topo do card no hover */
.empresa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}
.empresa-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(200,169,110,0.3);
    transform: translateY(-4px);
}
.empresa-card:hover::before {
    transform: scaleX(1);
}

.empresa-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--gold);
}
.empresa-card-icon svg {
    width: 100%;
    height: 100%;
}

.empresa-card h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 12px;
    font-weight: 500;
}
.empresa-card p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
    font-weight: 300;
}

/* CTA final */
.empresas-cta {
    border-top: 1px solid rgba(200,169,110,0.15);
    padding-top: 64px;
}
.empresas-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.empresas-cta-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    font-weight: 500;
}
.empresas-cta-text h3 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--white);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 12px;
}
.empresas-cta-text > p {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.45);
    font-weight: 300;
    line-height: 1.7;
    max-width: 420px;
}

.btn-empresa-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gold);
    color: var(--espresso);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 20px 40px;
    border-radius: 50px;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(200,169,110,0.3);
    flex-shrink: 0;
}
.btn-empresa-cta:hover {
    background: var(--gold-light);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(200,169,110,0.45);
}

/* Responsive */
@media (max-width: 900px) {
    .empresas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .empresas-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .btn-empresa-cta { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
    .empresas-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .empresa-card { padding: 28px 22px; }
    .empresas-header { margin-bottom: 48px; }
}

/* ============================================================
   SOBREMESAS / ESPECIAIS DA PAMPA
   ============================================================ */

/* Fundo diferenciado — creme mais quente, diferencia da seção anterior */
.sobremesas-section {
    background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
    position: relative;
    overflow: hidden;
}

/* Detalhe decorativo sutil no fundo */
.sobremesas-section::before {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,169,110,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* Grid centralizado para poucos produtos */
.grid-sobremesas {
    max-width: 480px; /* centraliza se houver apenas 1 card */
    margin: 0 auto;
    /* herda grid-produtos — ficará centralizado com 1 item */
}

/* Tag de sobremesa no card (posição absoluta sobre a imagem) */
.card-tag-sobremesa {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--espresso);
    color: var(--gold);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    z-index: 2;
    pointer-events: none;
}

/* Placeholder personalizado para a Chocotorta */
.card-placeholder span {
    /* garante que textos longos como "Adicionar foto da Chocotorta" caibam bem */
    max-width: 140px;
    display: block;
    line-height: 1.4;
}