:root {
    --brand-primary: #c25a3d;
    --brand-primary-dark: #963f29;
    --brand-accent: #dd7152;
    --brand-soft: #fff6f4;
    --brand-soft-strong: #f8e8e3;
    --ink: #2e2e2e;
    --ink-soft: #65615f;
    --surface: #ffffff;
    --line: #eaded9;
    --shadow-sm: 0 8px 24px rgba(77, 42, 32, .08);
    --shadow-lg: 0 24px 60px rgba(77, 42, 32, .14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

html { scroll-behavior: smooth; }

body.site-body {
    min-height: 100vh;
    background: var(--brand-soft);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.site-main { min-height: 65vh; }
.site-main > h1 { display: grid; min-height: 55vh; margin: 0; place-items: center; color: var(--brand-primary); font-size: clamp(2.5rem, 7vw, 5rem); }

h1, h2, h3, h4, h5, .navbar-brand, .footer-brand {
    font-family: 'Syne', sans-serif;
    letter-spacing: -.025em;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: 84px;
    padding: .75rem 0;
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid rgba(194, 90, 61, .1);
    box-shadow: 0 8px 30px rgba(46, 46, 46, .06) !important;
    backdrop-filter: blur(16px);
}

.navbar .container { max-width: 1240px; }
.navbar-brand img { width: 122px; height: 58px; object-fit: contain; }

.navbar-nav { gap: .4rem; }
.navbar .nav-link {
    position: relative;
    padding: .65rem .9rem !important;
    color: var(--ink-soft) !important;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    border-radius: 999px;
    transition: color .2s ease, background-color .2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active-menu {
    color: var(--brand-primary-dark) !important;
    background: var(--brand-soft);
}

.navbar .nav-link::after { display: none !important; }

.search-container {
    width: min(290px, 28vw);
    background: #f7f4f3 !important;
    border: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-container:focus-within {
    border-color: rgba(194, 90, 61, .45);
    box-shadow: 0 0 0 4px rgba(194, 90, 61, .1);
}

.search-box { font-family: 'Inter', sans-serif; }

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--brand-primary-dark) !important;
    font-size: .78rem;
    font-weight: 700;
}

.cart-icon-wrapper {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: var(--brand-soft);
    border-radius: 50%;
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: calc(100vh - 84px);
    align-items: center;
    overflow: hidden;
    padding: clamp(4rem, 9vw, 8rem) 0 !important;
    text-align: left !important;
    background-position: center 30% !important;
    background-size: cover !important;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(29, 20, 17, .78) 0%, rgba(48, 29, 24, .52) 48%, rgba(48, 29, 24, .08) 78%);
}

.hero-content {
    max-width: 700px !important;
    padding: 2.2rem 2.4rem !important;
    color: #fff;
    background: rgba(30, 22, 20, .24);
    border: 1px solid rgba(255, 255, 255, .16);
    border-left: 5px solid var(--brand-accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    max-width: 650px;
    margin-bottom: 1.25rem;
    color: #fff !important;
    font-size: clamp(2.25rem, 4.5vw, 4.4rem) !important;
    line-height: 1.02 !important;
}

.hero-content p {
    max-width: 580px;
    margin-bottom: 1.8rem;
    color: rgba(255,255,255,.9) !important;
    font-size: clamp(1rem, 1.4vw, 1.15rem) !important;
}

.hero-cta,
.buy-button,
.add-to-cart,
.checkout-cart-btn,
.checkout-whatsapp-btn {
    display: inline-flex !important;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: .8rem 1.4rem !important;
    color: #fff !important;
    background: var(--brand-primary) !important;
    border: 1px solid var(--brand-primary) !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif;
    font-weight: 700 !important;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(194, 90, 61, .24);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.hero-cta { background: var(--brand-accent) !important; border-color: var(--brand-accent) !important; }
.hero-cta:hover, .buy-button:hover, .add-to-cart:hover, .checkout-cart-btn:hover, .checkout-whatsapp-btn:hover {
    color: #fff !important;
    background: var(--brand-primary-dark) !important;
    border-color: var(--brand-primary-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(194, 90, 61, .3);
}

.sobre-nos, .servicos { padding: clamp(4rem, 8vw, 7.5rem) 0 !important; }
.sobre-nos { background: var(--brand-soft) !important; }
.sobre-nos h2, .servicos h2 {
    margin-bottom: 2.5rem !important;
    color: var(--brand-primary) !important;
    font-size: clamp(2rem, 4vw, 3.6rem) !important;
}

.sobre-nos h2::after, .product-title h1::after {
    content: '';
    display: block;
    width: 72px;
    height: 4px;
    margin-top: .8rem;
    background: var(--brand-accent);
    border-radius: 999px;
    margin-inline: auto;
}

.sobre-content { gap: clamp(2.5rem, 6vw, 6rem) !important; align-items: center !important; }
.sobre-text > p { color: var(--ink-soft); font-size: 1.04rem; }

.sobre-image img {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
}

.beneficios { gap: 1rem !important; }
.beneficio {
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(194,90,61,.12);
    border-radius: var(--radius-sm);
}
.beneficio img { width: 46px !important; height: 46px !important; }
.beneficio h4 { margin: 0; color: var(--ink) !important; font-family: 'Inter', sans-serif; font-size: .94rem !important; line-height: 1.5; }

.product-container, .product-container-details {
    width: min(1240px, calc(100% - 2rem)) !important;
    margin: 0 auto !important;
    padding: clamp(3rem, 7vw, 6rem) 0 !important;
}

.product-title { margin-bottom: 2.5rem !important; }
.product-title h2 { margin: 0; color: var(--ink-soft) !important; font-size: .95rem !important; letter-spacing: .2em; }
.product-title h1 { margin: .2rem 0 0; color: var(--brand-primary) !important; font-size: clamp(2.3rem, 5vw, 4.2rem) !important; }

.product-grid { gap: 1.5rem !important; padding: 1.5rem 0 !important; }
.product-card {
    padding: 1rem 1rem 1.35rem !important;
    overflow: hidden;
    background: var(--surface) !important;
    border: 1px solid rgba(194,90,61,.1) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
}

.product-card:hover { transform: translateY(-7px) !important; box-shadow: var(--shadow-lg) !important; }
.product-image-wrapper { overflow: hidden; border-radius: 14px !important; background: var(--brand-soft); }
.product-card .imageProduct { transition: transform .45s ease; }
.product-card:hover .imageProduct { transform: scale(1.035); }
.product-card h5 { margin-top: 1.1rem !important; color: var(--ink) !important; font-size: 1.12rem !important; }
.product-card .price { color: var(--brand-primary) !important; font-size: 1.28rem !important; font-weight: 700; }
.product-card > p:not(.price) { color: var(--ink-soft); font-size: .82rem; }
.product-card .buy-button { width: 100%; margin-top: .6rem; }

.product-content {
    gap: clamp(2rem, 6vw, 5rem) !important;
    padding: clamp(1rem, 3vw, 2.5rem) !important;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.product-image-gallery { min-width: 0; }
.gallery-main { flex: 1; min-width: 0; }
.gallery-main .main-image { width: 100% !important; max-width: 600px; height: auto !important; aspect-ratio: 1; object-fit: cover; }
.product-details { max-width: 520px !important; }
.gallery-main { overflow: hidden; background: var(--brand-soft) !important; border-radius: var(--radius-md) !important; }
.gallery-main .main-image { border-radius: var(--radius-md) !important; transition: opacity .18s ease, transform .18s ease; }
.gallery-main .main-image.is-changing { opacity: .3; transform: scale(.99); }
.thumbnail { border: 2px solid var(--line) !important; border-radius: 10px !important; cursor: pointer; opacity: .72; transition: border-color .18s ease, opacity .18s ease, transform .18s ease; }
.thumbnail:hover, .thumbnail.active { border-color: var(--brand-primary) !important; opacity: 1; transform: translateY(-1px); }
.product-details h1 { font-size: clamp(2rem, 4vw, 3.2rem) !important; }
.product-price .price-value { color: var(--brand-primary) !important; }
.product-description { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.quantity-controls { border-radius: 999px !important; background: var(--brand-soft) !important; }

.cart-wrapper { gap: 2rem !important; }
.cart-items, .cart-summary {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}
.cart-summary { padding: 1.7rem !important; }
.cart-summary h3 { color: var(--ink) !important; font-size: 1.1rem !important; }
.cart-item { border-color: var(--line) !important; }
.coupon-input, .modal .form-control {
    min-height: 48px;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
}
.coupon-input:focus, .modal .form-control:focus { border-color: var(--brand-primary) !important; box-shadow: 0 0 0 4px rgba(194,90,61,.1) !important; }

#coupon-form { margin-top: 1rem; }
.coupon-entry-row { display: flex; align-items: stretch; gap: .6rem; width: 100%; }
.coupon-entry-row .input-icon-wrapper { flex: 1 1 auto; min-width: 0; height: 46px; padding-right: .75rem; background: #faf8f7; border: 1px solid var(--line); }
.coupon-entry-row .coupon-input { width: 100%; min-width: 0; min-height: 44px; padding: 0; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.coupon-entry-row .coupon-input:focus-visible { outline: none !important; }
.coupon-entry-row .input-icon-wrapper:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(194,90,61,.1); }
.coupon-entry-row .btn { flex: 0 0 auto; min-height: 46px; padding-inline: 1rem; border-radius: 12px !important; }

.cart-sidebar {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg) !important;
    box-shadow: -20px 0 60px rgba(46,46,46,.16) !important;
}
.cart-header { margin: -30px -30px 25px !important; padding: 1.25rem 1.5rem; color: #fff !important; background: var(--brand-primary) !important; }
.close-cart { color: #fff !important; }

.modal-content { overflow: hidden; border: 0 !important; border-radius: var(--radius-md) !important; box-shadow: var(--shadow-lg); }
.modal-header { background: var(--brand-soft); border-bottom-color: var(--line) !important; }
.payment-label { margin: 1.25rem 0 .65rem; color: var(--ink); font-weight: 700; }
.payment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.payment-option { display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .9rem; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.payment-option:hover { border-color: var(--brand-primary); box-shadow: 0 8px 20px rgba(194,90,61,.12); transform: translateY(-1px); }
.payment-option i { flex: 0 0 auto; color: var(--brand-primary); font-size: 1.35rem; }
.payment-option span { display: flex; min-width: 0; flex-direction: column; }
.payment-option small { margin-top: .15rem; color: var(--muted); line-height: 1.35; }
.pix-payment-panel { margin-top: 1rem; padding: 1rem; background: var(--brand-soft); border: 1px solid rgba(194,90,61,.2); border-radius: var(--radius-sm); }
.pix-payment-eyebrow { display: block; margin-bottom: .3rem; color: var(--brand-primary-dark); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pix-charge-content { display: flex; align-items: center; gap: 1rem; margin: .9rem 0 1rem; }
.pix-qr-code { flex: 0 0 auto; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.pix-qr-code img, .pix-qr-code canvas { display: block; width: 150px !important; height: 150px !important; }
.pix-charge-details { display: flex; min-width: 0; flex-direction: column; }
.pix-charge-details span { margin-top: .8rem; color: var(--muted); font-size: .85rem; }
.pix-charge-details strong { color: var(--brand-primary-dark); font-size: 1.5rem; }
.pix-payload { resize: none; font-family: monospace; font-size: .75rem !important; line-height: 1.35; }
.pix-copy-button { width: 100%; margin: .55rem 0 .8rem; padding: .65rem; color: var(--brand-primary-dark); background: #fff; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; }
.pix-copy-button:hover { border-color: var(--brand-primary); }
.pix-payment-panel p { margin-bottom: .9rem; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.footer {
    padding: 2.4rem 0 !important;
    color: rgba(255,255,255,.72) !important;
    background: #292524 !important;
}
.footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-brand { color: #fff; font-size: 1.15rem; font-weight: 700; }
.footer p { margin: 0 !important; font-size: .85rem; }

:focus-visible { outline: 3px solid rgba(194,90,61,.4) !important; outline-offset: 3px; }

@media (max-width: 991.98px) {
    .navbar { min-height: 72px; }
    .navbar-brand img { width: 105px; height: 48px; }
    .navbar-collapse { margin-top: .8rem; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
    .search-container { order: 3; width: 100%; margin-top: .7rem; }
    .hero { min-height: 72vh; }
    .hero-content { max-width: 620px !important; }
    .product-content { flex-direction: column !important; }
    .product-image-gallery, .product-details { width: 100%; max-width: none !important; }
    .cart-wrapper { flex-direction: column !important; }
}

@media (max-width: 767.98px) {
    .hero-content { margin: 1rem; padding: 1.6rem !important; }
    .sobre-content { flex-direction: column !important; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .footer .container { flex-direction: column; text-align: center; }
}

@media (max-width: 520px) {
    .product-grid { grid-template-columns: 1fr !important; }
    .hero-content h1 { font-size: 2rem !important; }
    .coupon-entry-row { flex-direction: column; }
    .coupon-entry-row .btn { width: 100%; }
    .payment-options { grid-template-columns: 1fr; }
    .pix-charge-content { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
