/* ============================================================
   style.css — Flordamar E-commerce
   Design: Premium Floral | Flordamar Pink & Gray Palette
   ============================================================ */

:root {
    /* 1. Cores da Marca (Flordamar) */
    --fm-primary: #bc6475;
    /* Rosa Principal */
    --fm-primary-light: #d19399;
    /* Rosa Claro */
    --fm-primary-dark: #a15262;

    --fm-dark: #1c1c1c;
    /* Quase preto */
    --fm-gray: #424343;
    /* Cinza médio */
    --fm-light: #efefef;
    /* Fundo / Cinza claro */
    --fm-white: #ffffff;

    /* 2. Sobrescrevendo variáveis do Bootstrap (via CSS Variables) */
    --bs-primary: #bc6475;
    --bs-secondary: #424343;
    --bs-dark: #1c1c1c;
    --bs-light: #efefef;
    --bs-body-bg: #ffffff;
    --bs-body-color: #1c1c1c;
    --bs-link-color: #bc6475;
    --bs-border-radius: 0.5rem;

    /* Neutros e Tipografia */
    --fm-font-display: 'Playfair Display', Georgia, serif;
    --fm-font-body: 'Inter', system-ui, sans-serif;

    /* Shadows e Efeitos */
    --fm-shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --fm-shadow-md: 0 10px 30px rgba(0, 0, 0, .08);
    --fm-shadow-lg: 0 20px 50px rgba(188, 100, 117, .12);
    --fm-radius-pill: 2rem;
    --fm-transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fm-font-body);
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}



/* ── Modal de Seleção de Unidade ─────────────────────────────── */
#modalSelecionarUnidade .modal-content {
    border-radius: 1.5rem;
    border: none;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

#modalSelecionarUnidade .modal-header {
    background: linear-gradient(135deg, var(--fm-dark) 0%, var(--fm-gray) 50%, var(--fm-primary-dark) 100%);
    border: none;
    padding: 2rem 2rem 1.5rem;
}

#modalSelecionarUnidade .modal-header .modal-title {
    font-family: var(--fm-font-display);
    color: var(--fm-white);
    font-size: 1.6rem;
    line-height: 1.3;
}

#modalSelecionarUnidade .modal-header .modal-subtitle {
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    margin-top: .4rem;
}

#modalSelecionarUnidade .modal-body {
    background: var(--fm-white);
    padding: 2rem;
}

.fm-city-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: 2rem 1rem;
    border-radius: 1.25rem;
    border: 2.5px solid var(--fm-light);
    background: var(--fm-light);
    cursor: pointer;
    transition: all .3s cubic-bezier(.34, 1.56, .64, 1);
    position: relative;
    overflow: hidden;
}

.fm-city-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .3s ease;
}

.fm-city-btn.ilheus::before {
    background: linear-gradient(135deg, rgba(188, 100, 117, .13), rgba(161, 82, 98, .13));
}

.fm-city-btn.itabuna::before {
    background: linear-gradient(135deg, rgba(209, 147, 153, .13), rgba(188, 100, 117, .13));
}

.fm-city-btn:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: transparent;
    box-shadow: var(--fm-shadow-md);
}

.fm-city-btn.ilheus:hover {
    border-color: rgba(161, 82, 98, .25);
}

.fm-city-btn.itabuna:hover {
    border-color: rgba(209, 147, 153, .25);
}

.fm-city-btn:hover::before {
    opacity: 1;
}

.fm-city-btn .city-icon {
    font-size: 3rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .15));
    transition: transform .3s ease;
}

.fm-city-btn:hover .city-icon {
    transform: scale(1.15) rotate(-5deg);
}

.fm-city-btn .city-name {
    font-family: var(--fm-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fm-dark);
}

.fm-city-btn .city-sub {
    font-size: .78rem;
    color: var(--fm-gray);
}

.fm-btn-sugestao-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: var(--fm-primary);
    color: var(--fm-white);
    font-size: .65rem;
    font-weight: 600;
    padding: .25rem .6rem;
    border-radius: 999px;
    letter-spacing: .03em;
}

.fm-btn-sugerido {
    border-color: var(--fm-primary) !important;
    box-shadow: 0 0 0 3px rgba(188, 100, 117, .2) !important;
}

.fm-geo-hint {
    text-align: center;
    font-size: .85rem;
    color: var(--fm-gray);
    background: rgba(188, 100, 117, .06);
    border: 1px solid rgba(188, 100, 117, .2);
    border-radius: .75rem;
    padding: .65rem 1rem;
    margin-bottom: 1rem;
}

/* ── Pill de unidade na navbar ───────────────────────────────── */
#navUnidadePill {
    display: none;
    align-items: center;
    gap: .3rem;
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .25);
    color: var(--fm-white);
    border-radius: var(--fm-radius-pill);
    padding: .35rem .85rem;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--fm-transition);
    white-space: nowrap;
}

#navUnidadePill:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .5);
}

/* ── Banner dinâmico de cidade ────────────────────────────────── */
#heroCidadeTexto {
    display: block;
    font-size: clamp(2.2rem, 5vw, 4rem);
}


/* ─── NAVBAR (Main Header Customizado) ───────────────────────── */
.fm-navbar {
    background-color: var(--fm-white);
    border-bottom: 2px solid var(--fm-primary);
    padding: 1rem 0;
    transition: var(--fm-transition);
}

.fm-navbar.scrolled {
    padding: .6rem 0;
    box-shadow: var(--fm-shadow-md);
}

.fm-brand {
    font-family: var(--fm-font-display);
    font-size: 1.6rem;
    color: var(--fm-dark) !important;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -.5px;
}

.fm-brand i {
    color: var(--fm-primary);
}

.fm-nav-link {
    color: var(--fm-gray) !important;
    font-size: .95rem;
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: var(--bs-border-radius);
    transition: var(--fm-transition);
}

.fm-nav-link:hover,
.fm-nav-link.active {
    color: var(--fm-primary) !important;
    background: rgba(188, 100, 117, .05);
}

.fm-btn-cart {
    background: var(--fm-light);
    border: 1px solid var(--fm-primary-light);
    color: var(--fm-primary);
    border-radius: var(--fm-radius-pill);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--fm-transition);
}

.fm-btn-cart:hover {
    background: var(--fm-primary);
    color: #fff;
    transform: translateY(-1px);
}

.fm-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--fm-primary);
    color: #fff;
    font-size: .65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* .fm-btn-login {
    color: var(--fm-primary);
    background: #fff !important;
    border-radius: var(--fm-radius-pill);
    padding: .5rem 1.4rem;
    font-size: .9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--fm-transition);
    border: none;
}

.fm-btn-login:hover {
    background: var(--fm-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--fm-shadow-lg);
} */

/* ─── HERO CAROUSEL ─────────────────────────────────────────── */
.fm-hero {
    min-height: 92vh;
    position: relative;
}

.fm-hero-fallback {
    min-height: 92vh;
    background: linear-gradient(135deg, var(--fm-dark) 0%, #2c2c2c 100%);
    background-image:
        radial-gradient(circle at 20% 80%, rgba(188, 100, 117, .15) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(66, 67, 67, .2) 0%, transparent 60%),
        linear-gradient(135deg, var(--fm-dark) 0%, #2c2c2c 100%);
}

.fm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 28, 28, .4) 0%, rgba(28, 28, 28, .7) 100%);
    min-height: 92vh;
}

.fm-hero-content {
    max-width: 700px;
    padding: 2rem;
}

.fm-hero-tag {
    display: inline-block;
    background: rgba(188, 100, 117, .1);
    border: 1px solid var(--fm-primary-light);
    color: var(--fm-primary-light);
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: .3rem 1rem;
    border-radius: var(--fm-radius-pill);
    margin-bottom: 1rem;
}

.fm-hero-title {
    font-family: var(--fm-font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -1px;
}

.fm-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, .75);
    font-weight: 300;
    margin-top: .75rem;
}

/* ─── BUTTONS ────────────────────────────────────────────────── */
.fm-btn-primary {
    background: linear-gradient(135deg, var(--fm-primary), var(--fm-primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--fm-radius-pill);
    padding: .75rem 2.5rem;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: var(--fm-transition);
    box-shadow: 0 8px 20px rgba(188, 100, 117, .25);
}

.fm-btn-primary:hover {
    background: linear-gradient(135deg, var(--fm-primary-dark), var(--fm-primary));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(188, 100, 117, .35);
    color: #fff;
}

.fm-btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .4);
    border-radius: var(--fm-radius-pill);
    padding: .75rem 2rem;
    font-weight: 500;
    transition: var(--fm-transition);
}

.fm-btn-outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    transform: translateY(-2px);
}

.fm-btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border: none;
    border-radius: var(--fm-radius-pill);
    padding: .75rem 2rem;
    font-weight: 600;
    transition: var(--fm-transition);
}

.fm-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .35);
    color: #fff;
}

/* ─── DIFERENCIAIS ───────────────────────────────────────────── */
.fm-diferenciais {
    background: var(--fm-dark);
    border-top: 1px solid rgba(255, 255, 255, .05);
}

.fm-diferencial-card {
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--fm-transition);
    cursor: default;
}

.fm-diferencial-card:hover {
    background: rgba(255, 255, 255, .05);
    transform: translateY(-4px);
}

.fm-diferencial-icon {
    width: 56px;
    height: 56px;
    background: rgba(188, 100, 117, .1);
    border: 1px solid rgba(188, 100, 117, .2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--fm-primary-light);
    margin: 0 auto 1rem;
    transition: var(--fm-transition);
}

.fm-diferencial-card:hover .fm-diferencial-icon {
    background: var(--fm-primary);
    color: #fff;
    transform: scale(1.1);
}

.fm-diferencial-card h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: .25rem;
}

.fm-diferencial-card small {
    color: rgba(255, 255, 255, .5);
}

/* ─── SEÇÃO PRODUTOS ─────────────────────────────────────────── */
.fm-section-tag {
    font-size: .75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fm-primary);
    font-weight: 700;
}

.fm-section-title {
    font-family: var(--fm-font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--fm-dark);
    line-height: 1.15;
    letter-spacing: -.5px;
}

.fm-section-subtitle {
    color: var(--fm-gray);
    max-width: 550px;
    margin: 0 auto;
}

/* ─── FILTROS ────────────────────────────────────────────────── */
.fm-filter-btn {
    background: transparent;
    border: 1.5px solid var(--fm-light);
    color: var(--fm-gray);
    border-radius: var(--fm-radius-pill);
    padding: .45rem 1.4rem;
    font-size: .875rem;
    font-weight: 600;
    transition: var(--fm-transition);
}

.fm-filter-btn:hover,
.fm-filter-btn.active {
    background: var(--fm-primary);
    border-color: var(--fm-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--fm-shadow-sm);
}

/* ─── CARD DE PRODUTO ────────────────────────────────────────── */
.fm-produto-card {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--fm-shadow-sm);
    transition: var(--fm-transition);
    cursor: pointer;
    position: relative;
    height: 100%;
    border: 1px solid var(--fm-light);
}

.fm-produto-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fm-shadow-md);
    border-color: var(--fm-primary-light);
}

.fm-produto-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--fm-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--fm-primary-light);
    position: relative;
    overflow: hidden;
}

.fm-produto-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-produto-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--fm-primary);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 0.25rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    z-index: 2;
}

.fm-produto-card-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, .9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-gray);
    font-size: 1rem;
    transition: var(--fm-transition);
    backdrop-filter: blur(4px);
}

.fm-produto-card-fav:hover {
    color: var(--fm-primary);
    transform: scale(1.1);
}

.fm-produto-card-sku {
    font-size: .72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--fm-primary);
    font-weight: 700;
}

.fm-produto-card-nome {
    font-family: var(--fm-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fm-dark);
    margin: .3rem 0 .5rem;
    line-height: 1.3;
}

.fm-preco-atual {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--fm-primary);
}

.fm-btn-add-cart {
    background: var(--fm-dark);
    color: #fff;
    border: none;
    border-radius: var(--fm-radius-pill);
    padding: .65rem 1rem;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
    transition: var(--fm-transition);
}

.fm-btn-add-cart:hover {
    background: var(--fm-primary);
    transform: translateY(-1px);
    box-shadow: var(--fm-shadow-sm);
    color: #fff;
}

/* ─── LOADER ─────────────────────────────────────────────────── */
.fm-loader {
    color: var(--fm-primary);
}

/* ─── SEÇÃO SOBRE ────────────────────────────────────────────── */
.fm-sobre {
    background: var(--fm-light);
}

.fm-sobre .fm-section-title {
    color: var(--fm-dark);
}

.fm-sobre-text {
    color: var(--fm-gray);
}

.fm-sobre-img-placeholder {
    background: linear-gradient(135deg, var(--fm-primary), var(--fm-primary-dark));
    color: rgba(255, 255, 255, .4);
}

.fm-stat-num {
    color: var(--fm-primary);
}

/* ─── CONTATO ────────────────────────────────────────────────── */
.fm-contact-icon {
    background: rgba(188, 100, 117, .1);
    color: var(--fm-primary);
}

.fm-input:focus {
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 3px rgba(188, 100, 117, .12);
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.fm-footer {
    background: var(--fm-dark);
    color: #fff;
}

.fm-social-link:hover {
    color: var(--fm-primary-light);
}

.fm-social-link {
    color: var(--fm-light);
}

/* ─── TOAST ──────────────────────────────────────────────────── */
.fm-toast {
    background: var(--fm-dark);
    border-left: 4px solid var(--fm-primary);
    color: var(--fm-light);
}

/* ─── PÁGINA PRODUTO ─────────────────────────────────────────── */

/* Galeria de imagens */
.fm-galeria {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.fm-galeria-main {
    flex: 1;
    min-width: 0;
}

.fm-galeria-img-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--fm-light);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-galeria-img-principal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.fm-galeria-img-wrapper:hover .fm-galeria-img-principal {
    transform: scale(1.04);
}

.fm-galeria-placeholder {
    font-size: 5rem;
    color: var(--fm-primary-light);
    opacity: .35;
}

.fm-galeria-zoom-btn {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(4px);
    color: var(--fm-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    transition: var(--fm-transition);
    z-index: 2;
}

.fm-galeria-zoom-btn:hover {
    background: var(--fm-primary);
    color: #fff;
}

/* Miniaturas */
.fm-galeria-thumbs {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 72px;
    flex-shrink: 0;
}

.fm-galeria-thumb {
    width: 72px;
    height: 72px;
    border-radius: .6rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--fm-transition);
    background: var(--fm-light);
    flex-shrink: 0;
}

.fm-galeria-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fm-galeria-thumb:hover {
    border-color: var(--fm-primary-light);
}

.fm-galeria-thumb.active {
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 2px rgba(188, 100, 117, .25);
}

/* Lightbox */
.fm-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
}

.fm-lightbox.active {
    display: flex;
}

.fm-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: .75rem;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.fm-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--fm-transition);
}

.fm-lightbox-close:hover {
    background: var(--fm-primary);
}

.fm-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--fm-transition);
}

.fm-lightbox-nav:hover {
    background: var(--fm-primary);
}

.fm-lightbox-prev {
    left: 1.5rem;
}

.fm-lightbox-next {
    right: 1.5rem;
}

.fm-produto-nome {
    color: var(--fm-dark);
}

.fm-categoria-badge {
    background: rgba(188, 100, 117, .1);
    color: var(--fm-primary);
}

.fm-preco-principal {
    color: var(--fm-primary);
}

.fm-qty-btn {
    color: var(--fm-primary);
    border: 1px solid var(--fm-primary);
    width: 28px;
    border-radius: 30px;

}

.fm-qty-btn:hover {
    color: var(--fm-primary-dark);
    border-color: var(--fm-primary-dark);
    width: 28px;
    border-radius: 30px;
}

.fm-qty-num {
    width: 40px !important;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--fm-dark);
}

.fm-detalhes {
    background: var(--fm-light);
    border-left: 3px solid var(--fm-primary);
    padding-left: 15px;
}

/* ─── RELACIONADOS ───────────────────────────────────────────── */
.fm-relacionados {
    background: var(--fm-gray-100);
}

.fm-relacionados .fm-section-title {
    font-size: 1.8rem;
}

/* ─── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .fm-hero {
        min-height: 75vh;
    }

    .fm-hero-fallback,
    .fm-hero-overlay {
        min-height: 75vh;
    }

    .fm-hero-content {
        padding: 1.5rem;
    }

    .fm-sobre-badge {
        right: 0;
    }
}

@media (max-width: 576px) {
    .fm-hero-title {
        font-size: 2.2rem;
    }

    .fm-produto-card-footer {
        flex-direction: column;
    }
}

/* --- carrinho --- */
.fm-carrinho-page {
    background: #f7f7f8;
}

.fm-carrinho-back {
    border: 1px solid var(--fm-primary-light);
    color: var(--fm-primary-dark);
    border-radius: 999px;
    padding: .4rem .8rem;
    font-weight: 600;
}

.fm-carrinho-back:hover {
    color: var(--fm-primary-dark);
    background: rgba(188, 100, 117, .06);
}

.fm-carrinho-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}

.fm-carrinho-steps span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d8dce2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #7f8793;
    background: #fff;
    font-weight: 700;
}

.fm-carrinho-steps span.active {
    border-color: var(--fm-primary);
    color: #fff;
    background: var(--fm-primary);
}

.fm-carrinho-steps .line {
    width: 120px;
    height: 2px;
    border-radius: 10px;
    background: #d8dce2;
}

.fm-carrinho-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 14px;
    padding: 1.35rem;
    box-shadow: 0 3px 12px rgba(28, 28, 28, .04);
}

.fm-carrinho-title {
    font-family: var(--fm-font-display);
    color: var(--fm-dark);
    margin-bottom: 1rem;
}

.fm-carrinho-data-hora {
    background: #e8f6ee;
    border-color: #ccead8;
}

.fm-carrinho-ok {
    color: #079a3f;
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.fm-carrinho-produto-item {
    border: 1px solid #dfe4ea;
    border-radius: 12px;
    padding: .8rem;
    margin-bottom: .65rem;
}

.fm-carrinho-produto-top {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.fm-carrinho-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    background: var(--fm-light);
    color: var(--fm-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 1.5rem;
}

.fm-carrinho-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-carrinho-produto-info {
    flex: 1;
    min-width: 0;
}

.fm-carrinho-produto-info h6 {
    margin-bottom: .35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fm-carrinho-qty {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .35rem;
}

.fm-carrinho-remover {
    border: none;
    background: transparent;
    color: #f2505f;
    font-size: .88rem;
    padding: 0;
}

.fm-carrinho-remover:hover {
    color: #da2636;
}

.fm-carrinho-vazio {
    text-align: center;
    padding: 1.4rem .8rem;
    border: 1px dashed #d8dde5;
    border-radius: 12px;
    margin-bottom: .8rem;
}

.fm-total-geral {
    color: #079a3f;
    font-size: 1.35rem;
}

.fm-carrinho-resumo {
    top: 90px;
}

.sticky-lg-top {
    z-index: 1;
    ;
}



/* ── Pedido Page ─────────────────────────────────────────── */
.fm-pedido-page {
    background: #f7f7f8;
    min-height: 100vh;
}

/* ── Card base compartilhado (resumo + comprador) ─────────── */
.fm-pedido-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e8eaf0;
    box-shadow: var(--fm-shadow-sm);
    padding: 1.5rem;
}

/* ── Título base compartilhado ────────────────────────────── */
.fm-pedido-card-title {
    font-family: var(--fm-font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--fm-dark);
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--fm-light);
    display: flex;
    align-items: center;
    gap: .5rem;
}

/* Resumo lateral */
.fm-pedido-resumo {
    position: sticky;
    top: 80px;
    z-index: 5; /* garante que fique sobre o conteúdo */

    display: flex;
    flex-direction: column;
    height: calc(100vh - 90px);
    padding-bottom: 1rem;
}

.fm-pedido-resumo .fm-pedido-actions {
    margin-top: auto;
}

/* Garantir que o botão ocupe 100% do espaço disponível */
.fm-pedido-actions .btn {
    width: 100%;
}.fm-pedido-resumo-title {
    /* herda de .fm-pedido-card-title */
}

.fm-resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
    padding: .6rem 0;
    border-bottom: 1px dashed #eee;
    font-size: .9rem;
}

.fm-resumo-item:last-child {
    border-bottom: none;
}

.fm-resumo-item-nome {
    color: var(--fm-dark);
    font-weight: 500;
    flex: 1;
    line-height: 1.35;
}

.fm-resumo-item-qtd {
    color: var(--fm-gray);
    font-size: .8rem;
    white-space: nowrap;
}

.fm-resumo-item-preco {
    color: var(--fm-primary-dark);
    font-weight: 600;
    white-space: nowrap;
}

.fm-resumo-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    padding: .35rem 0;
    color: var(--fm-gray);
}

.fm-resumo-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--fm-dark);
    padding-top: .5rem;
    margin-top: .25rem;
    border-top: 2px solid var(--fm-light);
}

.fm-resumo-info-block {
    background: #f7f7f8;
    border-radius: .6rem;
    padding: .85rem 1rem;
    margin-top: .75rem;
    font-size: .85rem;
}

.fm-resumo-info-block .label {
    color: var(--fm-gray);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
    margin-bottom: .25rem;
}

.fm-resumo-info-block .value {
    color: var(--fm-dark);
    font-weight: 500;
}

/* Seção comprador */
.fm-comprador-card {
    /* herda de .fm-pedido-card */
    margin-bottom: 1.25rem;
}

.fm-comprador-card-title {
    /* herda de .fm-pedido-card-title */
}

/* Exterior badge */
.fm-exterior-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(188, 100, 117, .08);
    border: 1px solid var(--fm-primary-light);
    color: var(--fm-primary-dark);
    border-radius: var(--fm-radius-pill);
    padding: .3rem 1rem;
    font-size: .8rem;
    font-weight: 600;
}

/* Skeleton loader para resumo */
.fm-skeleton {
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.4s infinite;
    border-radius: .4rem;
    display: inline-block;
}

@keyframes skeleton-shine {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Alerta expirado */
.fm-pedido-expirado {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1c0c8;
    box-shadow: var(--fm-shadow-sm);
    padding: 2.5rem;
    text-align: center;
}

.fm-pedido-expirado i {
    font-size: 3rem;
    color: var(--fm-primary);
    margin-bottom: 1rem;
}

/* Steps */
.fm-carrinho-steps span.done {
    border-color: var(--fm-primary);
    color: var(--fm-primary);
    background: rgba(188, 100, 117, .1);
}

/* Gateway info */
.fm-gateway-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: var(--fm-radius-pill);
    padding: .45rem 1.2rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .3px;
}

.fm-gateway-paypal {
    background: #fef4e5;
    border: 1px solid #f0c060;
    color: #7a5c00;
}

.fm-gateway-pagarme {
    background: #e8f8f0;
    border: 1px solid #6fcf97;
    color: #1a6640;
}

.fm-country-switch-wrap {
    background: #f7f7f8;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e8eaf0;
}

@media (max-width: 991.98px) {
    .fm-carrinho-resumo {
        position: static !important;
    }
}

@media (max-width: 576px) {
    .fm-carrinho-card {
        padding: 1rem;
    }

    .fm-carrinho-steps .line {
        width: 64px;
    }

    .fm-carrinho-produto-top {
        flex-wrap: wrap;
    }
}