/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Variáveis de cor para facilitar edição */
:root {
    --chocolate: #3d1f0f; /* Cor principal escura */
    --cream: #fdf6ee; /* Fundo claro */
    --old-rose: #c9636a; /* Destaque rosa */
    --caramel: #c07840; /* Cor secundária */
    --text-dark: #2c1810; /* Texto escuro */
    --text-light: #f8f4f0; /* Texto claro */
    --shadow: rgba(61, 31, 15, 0.1); /* Sombra sutil */
}

/* Corpo da página */
body {
    font-family: 'DM Sans', sans-serif; /* Fonte para corpo */
    background-color: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 90px;
    min-height: 100vh;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* Header fixo */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--chocolate);
    color: var(--cream);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header .logo {
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
}

.logo h1 {
    font-family: 'Playfair Display', serif; /* Fonte para títulos */
    font-size: 1.8rem;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--cream);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--old-rose);
}

.cart-button {
    background-color: var(--caramel);
    color: var(--cream);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.cart-button:hover {
    background-color: var(--old-rose);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--chocolate) 0%, var(--caramel) 100%); /* Gradiente escuro */
    color: var(--cream);
    padding: 7rem 2rem 4rem;
    text-align: center;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .hero-content {
    max-width: 520px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title em {
    color: var(--old-rose); /* Destaque no itálico */
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--old-rose);
    color: var(--cream);
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--caramel);
}

/* Layout principal */
.main-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 3rem;
    gap: 2rem;
}

/* Sidebar fixa */
.sidebar {
    width: 250px;
    position: sticky;
    top: 100px; /* Abaixo do header */
    height: auto;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-bottom: 1rem;
}

.filter-box {
    background-color: var(--cream);
    border: 1px solid var(--caramel);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px var(--shadow);
}

.filter-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--chocolate);
}

.filter-box ul {
    list-style: none;
}

.filter-box li {
    margin-bottom: 0.5rem;
}

.filter-box a, .filter-box label {
    color: var(--text-dark);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.filter-box a:hover, .filter-box label:hover {
    color: var(--old-rose);
}

.price-filter, .rating-filter {
    margin-right: 0.5rem;
}

/* Alinhamento das ações de filtro (Filtrar / Limpar) */
.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.filter-actions .cta-button,
.filter-actions a.cta-button {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Área de produtos */
.products-area {
    flex: 1;
}

.product-section {
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--chocolate);
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--caramel);
    padding-bottom: 0.5rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

/* Cards de produto */
.product-card {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    min-height: 420px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.product-image {
    height: 180px;
    background: linear-gradient(135deg, var(--caramel) 0%, var(--old-rose) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin: 1rem 1rem 0.5rem;
    color: var(--chocolate);
}

.product-card p {
    margin: 0 1rem 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.price {
    margin: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--chocolate);
}

.add-to-cart {
    width: calc(100% - 2rem);
    margin: 1rem;
    margin-top: auto;
    padding: 0.8rem;
    background-color: var(--caramel);
    color: var(--cream);
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: var(--old-rose);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    margin-top: 4rem;
}

.detail-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--chocolate);
    margin: 0;
}

.button.secondary {
    background-color: var(--chocolate);
}

.button.secondary:hover {
    background-color: #2a1209;
}

.product-detail-card {
    display: flex;
    gap: 2rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 16px 35px rgba(61, 31, 15, 0.08);
    overflow: hidden;
    max-width: 700px;
    margin: 0 auto;
}

.product-detail-image {
    flex: 0 0 45%;
    min-width: 260px;
    background: linear-gradient(135deg, var(--caramel) 0%, var(--old-rose) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
    /*tamanho maximo*/
    max-width: 100%;
    max-height: 400px;
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    justify-content: space-between;
}

.product-detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--chocolate);
}

.product-detail-info p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
}

.product-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.product-detail-footer .price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--chocolate);
    margin: 0;
}

.product-detail-footer .button.add-to-cart {
    padding: 0.95rem 1.4rem;
    border-radius: 25px;
    margin: 0;
}

.product-detail-footer .button.add-to-cart:hover {
    background-color: var(--old-rose);
}

@media (max-width: 860px) {
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        max-width: 100%;
        margin: 0 0 2rem;
    }

    .product-detail-card {
        flex-direction: column;
        max-width: 100%;
        margin: 0;
    }

    .product-detail-image {
        min-width: 100%;
        max-height: 300px;
    }

    .product-detail-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Carrinho lateral */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -360px; /* Escondido inicialmente */
    width: 360px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 10px var(--shadow);
    transition: right 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background-color: var(--chocolate);
    color: var(--cream);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

#cart-close {
    background: none;
    border: none;
    color: var(--cream);
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    color: var(--chocolate);
    font-weight: 700;
}

.quantity-controls {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.quantity-controls button {
    background-color: var(--caramel);
    color: var(--cream);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.quantity-controls span {
    margin: 0 1rem;
    font-weight: 500;
}

.remove-item {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.cart-footer {
    border-top: 1px solid #eee;
    padding: 1rem;
    background-color: var(--cream);
}

.subtotal {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--chocolate);
}

.cart-footer p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

#checkout {
    width: 100%;
    padding: 1rem;
    background-color: var(--old-rose);
    color: var(--cream);
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

#checkout:hover:not(:disabled) {
    background-color: var(--caramel);
}

#checkout:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Overlay do carrinho */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Notificação toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--chocolate);
    color: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    box-shadow: 0 2px 10px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1002;
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

/* Estilo para a pagina de contato */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-content: center;
    margin: 3rem auto;
    padding: 0 1rem;
    width: min(1200px, 100%);
}

.contact-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    margin-bottom: 2rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow);
    background-color: #fff7f0;
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--chocolate);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

@media (max-width: 900px) {
    .contact-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin: 2rem auto;
    }

    .contact-card {
        padding: 1.75rem 1.25rem;
        min-height: auto;
    }
}

@media (max-width: 500px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-card {
        padding: 1.25rem 1rem;
        margin-bottom: 1.5rem;
    }

    .contact-card h3 {
        font-size: 1.35rem;
    }

    .contact-card p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* Estilo para a pagina de sobre */
.sobre-card {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    padding: 3rem 5rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sobre-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--chocolate);
    margin-bottom: 1rem;
}

.sobre-card p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.7;
}

/* Regras responsivas para telas pequenas (sobre.php e geral) */
@media (max-width: 768px) {
    body {
        padding-top: 170px;
    }

    html {
        scroll-padding-top: 170px;
    }

    .header {
        padding: 0.7rem 0;
    }

    .header .container {
        padding: 0 1rem;
        gap: 0.4rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
        justify-content: flex-start;
        margin-top: 0.4rem;
    }

    .nav a {
        display: inline-block;
        padding: 0.25rem 0;
        font-size: 0.95rem;
    }

    .cart-button {
        padding: 0.4rem 0.6rem;
        font-size: 0.95rem;
    }

    .hero {
        padding: 4rem 1rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .main-content {
        padding: 1rem;
        display: block;
    }

    .sobre-card {
        padding: 1.5rem;
        margin: 1rem;
        max-width: 100%;
        text-align: center;
    }

    .sobre-card h2 {
        font-size: 1.6rem;
    }

    .sobre-card p {
        font-size: 0.98rem;
        line-height: 1.6;
    }

    .sobre-card img {
        max-width: 160px;
        height: auto;
        margin-top: 1rem;
    }
}

@media (max-width: 420px) {
    body {
        padding-top: 190px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .nav {
        gap: 0.35rem;
    }

    .nav a {
        font-size: 0.9rem;
    }

    .sobre-card {
        padding: 1rem;
    }
}

/* Footer */
.footer {
    background-color: var(--chocolate);
    color: var(--cream);
    padding: 3rem 0;
    text-align: center;
    margin-top: 6.1rem;
}

.footer .highlight {
    color: var(--old-rose);
    font-weight: 700;
}

main {
    flex: 1;
}

.admin-panel {
    max-width: 1000px;
    margin: calc(90px + 2rem) auto 4rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(61, 31, 15, 0.08);
}

.admin-panel h1 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--chocolate);
}

.admin-panel p {
    margin-bottom: 1.5rem;
    color: #5d473d;
    font-size: 1rem;
    line-height: 1.7;
}

.admin-actions {
    margin-top: 1.5rem;
}

.admin-form,
.admin-table {
    width: 100%;
}

.admin-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.95rem;
}

.checkbox-field {
    margin-bottom: 1.5rem;
}

.checkbox-field label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-field input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.image-preview {
    margin-bottom: 1rem;
}

.image-preview img {
    display: block;
    width: 180px;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.button {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    margin-right: 0.4rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--cream);
    background-color: var(--caramel);
    font-size: 0.9rem;
}

.button.small {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
}

.button.danger {
    background-color: #c9636a;
}

.setup-alert {
    background-color: #fff4e6;
    border: 1px solid #f0c6a8;
    color: #6b341e;
    padding: 1.4rem 1.6rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.setup-alert a {
    color: #9c3f2b;
    font-weight: 700;
    text-decoration: underline;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 280px));
    gap: 5rem;
    justify-content: center;
    margin: 3rem auto;
}

.dashboard-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px var(--shadow);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.dashboard-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--chocolate);
    margin-bottom: 1rem;
    font-weight: 700;
}

.dashboard-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-button {
    display: inline-block;
    background-color: var(--caramel);
    color: var(--cream);
    padding: 0.9rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

.card-button:hover {
    background-color: var(--old-rose);
}
/* Tabelas */
.tabelas {
    width: 100%;
    border-collapse: collapse;
}

/* Mensagens de erro e sucesso */
.message.error {
    background-color: #f8d7da;
    color: #842029;
}

.message.success {
    background-color: #d1e7dd;
    color: #0f5132;
}

/* ── Secção de entrega e frete ── */
.entrega-box {
    background: #fff;
    border: 1px solid #e8ddd4;
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}
.entrega-titulo {
    font-family: 'Playfair Display', serif;
    color: var(--chocolate);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.entrega-titulo i { margin-right: 8px; color: var(--caramel); }

.entrega-tipo-btns {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
}
.entrega-tipo-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 2px solid #e8ddd4;
    border-radius: 10px;
    background: #fafafa;
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.entrega-tipo-btn i { margin-right: 5px; }
.entrega-tipo-btn:hover { border-color: var(--caramel); background: #fdf6ee; }
.entrega-tipo-btn.active {
    border-color: var(--caramel);
    background: #fdf6ee;
    color: var(--chocolate);
    font-weight: 700;
}

.sugestoes-lista {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e8ddd4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(61,31,15,0.1);
    display: none;
    position: absolute;
    width: 100%;
    z-index: 999;
    max-height: 220px;
    overflow-y: auto;
}
.sugestoes-lista li {
    padding: 10px 14px;
    font-size: 0.875rem;
    color: var(--text-dark);
    cursor: pointer;
    border-bottom: 1px solid #f5f0eb;
    transition: background .15s;
}
.sugestoes-lista li:last-child { border-bottom: none; }
.sugestoes-lista li:hover { background: #fdf6ee; color: var(--chocolate); }

#painel-entrega { position: relative; }

.entrega-field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.frete-resultado {
    margin-top: 10px;
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
}
.frete-ok      { color: #2a7a4b; }
.frete-erro    { color: var(--old-rose); }
.frete-combinar { color: var(--caramel); }
.frete-loading { color: #888; }
.frete-ok i, .frete-erro i, .frete-combinar i, .frete-loading i { margin-right: 6px; }

.levantamento-info {
    background: #fdf6ee;
    border: 1px solid #e8ddd4;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
    color: var(--text-dark);
    line-height: 1.5;
}
.levantamento-info i { color: var(--caramel); margin-right: 6px; }

.resumo-final {
    background: #fff;
    border: 1px solid #e8ddd4;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}
.resumo-linha-final {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--text-dark);
    padding: 3px 0;
}
.resumo-linha-final.total-final {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--chocolate);
    border-top: 1px solid #e8ddd4;
    margin-top: 6px;
    padding-top: 8px;
}

.aviso-frete {
    font-size: 0.82rem;
    color: #999;
    margin-top: 6px;
    margin-bottom: 0;
}

/* ── Seletor de método de pagamento ── */
.metodos-pagamento {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.metodo-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 0.5rem;
    border: 2px solid #e8ddd4;
    border-radius: 10px;
    background: #fff;
    color: var(--text-dark);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.metodo-btn i { font-size: 1.2rem; color: var(--caramel); }
.metodo-btn:hover {
    border-color: var(--caramel);
    background: #fdf6ee;
}
.metodo-btn.active {
    border-color: var(--caramel);
    background: #fdf6ee;
    color: var(--chocolate);
    font-weight: 700;
}
.metodo-btn.active i { color: var(--chocolate); }

.painel-metodo { margin-bottom: 0.5rem; }

.campo-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: #fff;
    transition: border-color .2s;
    outline: none;
}
.campo-input:focus { border-color: var(--caramel); }

.campo-info {
    font-size: 0.78rem;
    color: #888;
    margin-top: 6px;
    margin-bottom: 0;
}

.multibanco-info {
    background: #fdf6ee;
    border: 1px solid #e8ddd4;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    line-height: 1.5;
}
.multibanco-info i {
    color: var(--caramel);
    margin-right: 6px;
}

/* ── Modal de Pagamento Stripe ── */
#stripe-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 31, 15, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    align-items: center;
    justify-content: center;
}
#stripe-modal-overlay.active { display: flex; }

#stripe-modal {
    background: var(--cream);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 60px rgba(61, 31, 15, 0.2);
    font-family: 'DM Sans', sans-serif;
    position: relative;
    animation: modalIn .25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
#stripe-modal h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--chocolate);
}
#stripe-modal .modal-subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}
#stripe-modal .btn-close-modal {
    position: absolute;
    top: 1rem; right: 1rem;
    background: none; border: none;
    font-size: 1.2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    transition: background .15s;
}
#stripe-modal .btn-close-modal:hover { background: #ede8e2; color: var(--chocolate); }

.modal-resumo {
    background: #fff;
    border: 1px solid #e8ddd4;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    color: var(--text-dark);
}
.modal-resumo .resumo-linha {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
}
.modal-resumo .resumo-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--chocolate);
    border-top: 1px solid #e8ddd4;
    margin-top: 6px;
    padding-top: 6px;
}
.stripe-field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
#card-element {
    border: 1.5px solid #ddd;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
    transition: border-color .2s;
}
#card-element.StripeElement--focus { border-color: var(--caramel); }
#card-error {
    color: var(--old-rose);
    font-size: 0.82rem;
    margin-top: 6px;
    min-height: 18px;
}
#btn-pagar {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.75rem;
    border: none;
    border-radius: 25px;
    background: var(--caramel);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#btn-pagar:hover:not(:disabled) { background: var(--old-rose); }
#btn-pagar:active:not(:disabled) { transform: scale(.98); }
#btn-pagar:disabled { opacity: .6; cursor: not-allowed; }
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-seguranca {
    text-align: center;
    margin-top: 0.9rem;
    font-size: 0.75rem;
    color: #aaa;
}
.modal-seguranca i { margin-right: 4px; }

/* Responsividade */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Página de sucesso ── */
.sucesso-card {
    max-width: 480px;
    margin: 3rem auto;
    background: #fff;
    border: 1px solid #e8ddd4;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(61,31,15,0.08);
}

.sucesso-icone {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.8rem;
}
.sucesso-verde  { background: #e8f5ee; color: #2a7a4b; }
.sucesso-amarelo { background: #fef9e7; color: #d4a017; }
.sucesso-vermelho { background: #fdecea; color: #c0392b; }

.sucesso-titulo {
    font-family: 'Playfair Display', serif;
    color: var(--chocolate);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}

.sucesso-texto {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.sucesso-detalhe {
    background: #fdf6ee;
    border: 1px solid #e8ddd4;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
}
.sucesso-detalhe i { color: var(--caramel); margin-right: 6px; }

.btn-voltar-loja {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    background: var(--caramel);
    color: var(--cream);
    border-radius: 25px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background .2s;
}
.btn-voltar-loja:hover { background: var(--old-rose); color: var(--cream); }
.btn-voltar-loja i { margin-right: 6px; }