/* AzConfort: estilos compartilhados da loja */
/* ===== Identidade AzConfort ===== */
:root {
    --petrol-900: #0E2F3D;
    --petrol-800: #123B4C;
    --petrol-700: #17506A;
    --petrol-100: #E3EEF1;
    --coral-500: #F08A5D;
    --coral-600: #E57A4B;
    --coral-700: #A3461F;
    --coral-100: #FDE8DE;
    --sand-50: #FBF7F2;
    --sand-100: #F5EEE4;
    --sand-200: #EADFCF;
    --ink: #1C2B33;
    --muted: #5F6F78;
    --success: #2F855A;
    --white: #FFFFFF;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(14, 47, 61, 0.06), 0 2px 8px rgba(14, 47, 61, 0.06);
    --shadow: 0 10px 28px rgba(14, 47, 61, 0.12);

    --font-display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--sand-50);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--coral-500);
    outline-offset: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    background: var(--petrol-900);
    color: var(--white);
    padding: 14px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.logo {
    --logo-text: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo svg {
    display: block;
    height: 30px;
    width: auto;
}

.search-container {
    flex: 1;
    max-width: 560px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 13px 56px 13px 20px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

.search-box:focus {
    border-color: var(--coral-500);
}

.search-box::placeholder {
    color: var(--muted);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--coral-500);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--petrol-900);
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--coral-600);
}

.ico {
    width: 22px;
    height: 22px;
    fill: currentColor;
    flex-shrink: 0;
}

.user-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.user-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
    position: relative;
}

.user-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-badge {
    background: var(--coral-500);
    color: var(--petrol-900);
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
}

.cart-badge.bump {
    animation: bump 0.4s ease;
}

@keyframes bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* ===== Navegação ===== */
.nav {
    background: var(--petrol-800);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    white-space: nowrap;
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-link.active {
    background: var(--coral-500);
    color: var(--petrol-900);
}

/* ===== Hero ===== */
.hero {
    background:
        radial-gradient(600px 300px at 85% 20%, var(--coral-100), transparent 70%),
        radial-gradient(500px 300px at 10% 90%, var(--petrol-100), transparent 70%),
        var(--sand-100);
    padding: 64px 0;
    margin-bottom: 56px;
    overflow: hidden;
}

.hero-inner {
    text-align: center;
    max-width: 820px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--petrol-900);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 30px;
}

.cta-button {
    font-family: var(--font-display);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.cta-button {
    background: var(--coral-500);
    color: var(--petrol-900);
}

.cta-button:hover {
    background: var(--coral-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 138, 93, 0.35);
}


/* ===== Conteúdo ===== */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--petrol-900);
    margin-bottom: 28px;
    text-align: center;
}

section[id] {
    scroll-margin-top: 16px;
}

/* Categorias */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    margin-bottom: 64px;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: inherit;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--coral-500);
}

.category-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--sand-100);
    display: grid;
    place-items: center;
    color: var(--petrol-900);
    transition: background 0.25s;
}

.category-icon .ico {
    width: 34px;
    height: 34px;
}

.category-card:hover .category-icon {
    background: var(--coral-100);
}

.category-name {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--petrol-900);
    margin-bottom: 4px;
}

.category-count {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
}

/* Produtos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 200px;
    background: linear-gradient(145deg, var(--sand-100), var(--sand-200));
    display: grid;
    place-items: center;
    color: var(--petrol-900);
    position: relative;
}

.product-image .ico {
    width: 84px;
    height: 84px;
    transition: transform 0.3s;
}

.product-card:hover .product-image .ico {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--coral-500);
    color: var(--petrol-900);
    padding: 4px 12px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.product-info {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--petrol-900);
    margin-bottom: 8px;
    line-height: 1.35;
}

.product-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 6px;
    margin-bottom: 12px;
}

.stars {
    color: #E8A33D;
    font-size: 0.9rem;
}

.rating-text {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.product-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 16px;
    margin-top: auto;
}

.price-now {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--petrol-900);
}

.product-old-price {
    font-size: 0.95rem;
    color: var(--muted);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
    background: var(--petrol-900);
    color: var(--white);
    border: none;
    padding: 13px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.add-to-cart:hover {
    background: var(--petrol-700);
}

.add-to-cart:active {
    transform: scale(0.98);
}

.add-to-cart.added {
    background: var(--success);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
    background: var(--white);
    border-radius: var(--radius);
}

.empty-state h3 {
    color: var(--petrol-900);
    margin-bottom: 6px;
}

/* ===== Footer ===== */
.footer {
    background: var(--petrol-900);
    color: rgba(255, 255, 255, 0.85);
    padding: 56px 0 24px;
    margin-top: 64px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 36px;
}

.footer-brand p {
    margin-top: 14px;
    max-width: 260px;
}

.footer-domain {
    color: var(--coral-500);
    font-weight: 700;
}

.footer-section h3 {
    font-family: var(--font-display);
    color: var(--coral-500);
    margin-bottom: 16px;
    font-size: 1.05rem;
    font-weight: 800;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 9px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: var(--coral-500);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== Responsivo ===== */
@media (max-width: 960px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .hero {
        padding: 48px 0;
    }
}

@media (max-width: 720px) {
    .search-container {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .header-top {
        gap: 14px 8px;
    }

    .user-actions {
        gap: 0;
    }

    .user-link span:not(.cart-badge) {
        display: none;
    }

    .user-link {
        padding: 8px;
        gap: 4px;
    }

    .logo svg {
        height: 25px;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 400px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

/* Carregando */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1s infinite;
}

/* ===== Utilidades ===== */
[hidden] { display: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.muted { color: var(--muted); }

body.no-scroll { overflow: hidden; }

button.user-link {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}

/* ===== Botões e campos ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn-block { width: 100%; }

.btn-primary { background: var(--coral-500); color: var(--petrol-900); }
.btn-primary:hover:not([disabled]) { background: var(--coral-600); }

.btn-dark { background: var(--petrol-900); color: var(--white); }
.btn-dark:hover:not([disabled]) { background: var(--petrol-700); }

.btn-secondary { background: var(--white); color: var(--petrol-900); border-color: var(--petrol-900); }
.btn-secondary:hover:not([disabled]) { background: var(--petrol-900); color: var(--white); }

.btn-link { background: none; color: var(--petrol-700); padding: 10px; }
.btn-link:hover { text-decoration: underline; }

.icon-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: none; border-radius: 50%;
    background: transparent; color: var(--petrol-900);
    cursor: pointer;
}
.icon-btn:hover { background: var(--sand-100); }

.input, .select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--sand-200);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: inherit;
    font-size: 16px; /* evita zoom automático no iPhone */
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus, .select:focus { outline: none; border-color: var(--petrol-700); box-shadow: 0 0 0 3px var(--petrol-100); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: #C2410C; }
.input[readonly] { background: var(--sand-50); }

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--coral-100);
    color: var(--coral-700);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.tag-alt { background: var(--petrol-100); color: var(--petrol-700); }

.link-pequeno { font-size: 0.85rem; color: var(--petrol-700); }

/* ===== Aviso (toast) ===== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 140%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(520px, calc(100vw - 32px));
    padding: 12px 14px 12px 16px;
    border-radius: var(--radius);
    background: var(--petrol-900);
    color: var(--white);
    box-shadow: var(--shadow);
    font-size: 0.92rem;
    transition: transform 0.3s ease, visibility 0.3s;
    visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }
.toast .ico { width: 22px; height: 22px; color: var(--coral-500); --ic-accent-op: 0; }
.toast-acao {
    margin-left: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background: var(--coral-500);
    color: var(--petrol-900);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
}

/* ===== Carrinho lateral ===== */
.drawer-overlay {
    position: fixed; inset: 0; z-index: 40;
    background: rgba(14, 47, 61, 0.45);
    opacity: 0; transition: opacity 0.25s;
}
.drawer-overlay.show { opacity: 1; }

.drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
    width: min(440px, 100vw);
    display: flex; flex-direction: column;
    background: var(--sand-50);
    box-shadow: -10px 0 40px rgba(14, 47, 61, 0.18);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    visibility: hidden;
}
.drawer.open { transform: translateX(0); visibility: visible; }
.drawer:focus { outline: none; }

.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 16px 22px;
    background: var(--white);
    border-bottom: 1px solid var(--sand-200);
}
.drawer-header h2 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--petrol-900); }
.drawer-count { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; color: var(--muted); }

.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; }
.drawer-footer { padding: 16px 18px 18px; background: var(--white); border-top: 1px solid var(--sand-200); }

.cart-empty { text-align: center; padding: 48px 12px; }
.cart-empty-icon {
    width: 88px; height: 88px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--sand-100);
    display: grid; place-items: center; color: var(--petrol-900);
}
.cart-empty-icon .ico { width: 44px; height: 44px; }
.cart-empty h3 { font-family: var(--font-display); color: var(--petrol-900); margin-bottom: 6px; }
.cart-empty p { color: var(--muted); margin-bottom: 20px; }

.cart-list { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.cart-item-thumb {
    width: 64px; height: 64px;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--sand-100), var(--sand-200));
    display: grid; place-items: center; color: var(--petrol-900);
}
.cart-item-thumb .ico { width: 34px; height: 34px; }
.cart-item-title { font-weight: 600; color: var(--petrol-900); font-size: 0.93rem; line-height: 1.3; }
.cart-item-unit { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.cart-item-total { font-family: var(--font-display); font-weight: 800; color: var(--petrol-900); font-size: 0.95rem; white-space: nowrap; }

.qty {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--sand-200);
    border-radius: 999px;
    background: var(--white);
}
.qty-btn {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border: none; background: none; border-radius: 50%;
    color: var(--petrol-900); cursor: pointer;
}
.qty-btn .ico { width: 14px; height: 14px; }
.qty-btn:hover:not([disabled]) { background: var(--sand-100); }
.qty-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.qty-valor { min-width: 24px; text-align: center; font-weight: 700; font-size: 0.92rem; }

.link-remover {
    display: inline-flex; align-items: center; gap: 4px;
    border: none; background: none; padding: 4px 0;
    color: var(--muted); font-family: inherit; font-size: 0.82rem; cursor: pointer;
}
.link-remover .ico { width: 15px; height: 15px; }
.link-remover:hover { color: #B42318; }

.frete-box { padding: 16px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.frete-box h3 {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; color: var(--petrol-900);
    margin-bottom: 12px;
}
.frete-box h3 .ico { width: 22px; height: 22px; }
.frete-form { display: flex; gap: 8px; margin-bottom: 6px; }
.frete-form .input { flex: 1; }
.frete-info { margin-top: 12px; font-size: 0.88rem; color: var(--muted); }
.frete-erro { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 0.88rem; color: #B42318; }
.frete-erro .ico { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.frete-destino { display: flex; align-items: center; gap: 6px; margin: 12px 0 8px; font-size: 0.85rem; color: var(--muted); }
.frete-destino .ico { width: 16px; height: 16px; }

.frete-opcoes { display: grid; gap: 8px; }
.frete-opcao {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1.5px solid var(--sand-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.frete-opcao:hover { border-color: var(--petrol-700); }
.frete-opcao:has(input:checked) { border-color: var(--petrol-900); background: var(--petrol-100); }
.frete-opcao input { accent-color: var(--petrol-900); width: 18px; height: 18px; }
.frete-opcao-texto { display: grid; line-height: 1.3; }
.frete-opcao-texto strong { font-size: 0.92rem; color: var(--petrol-900); }
.frete-opcao-texto small { font-size: 0.8rem; color: var(--muted); }
.frete-opcao-preco { font-family: var(--font-display); font-weight: 800; color: var(--petrol-900); white-space: nowrap; }
.frete-opcao .tag { position: absolute; top: -9px; right: 10px; }

.cart-totais { display: grid; gap: 6px; margin-bottom: 14px; }
.cart-totais div { display: flex; justify-content: space-between; font-size: 0.93rem; }
.cart-totais dt { color: var(--muted); }
.cart-totais dd { font-weight: 600; }
.cart-total { padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--sand-200); }
.cart-total dt, .cart-total dd { font-family: var(--font-display); font-size: 1.12rem; font-weight: 800; color: var(--petrol-900); }

@media (max-width: 480px) {
    .toast { bottom: 16px; }
    .cart-item { grid-template-columns: 56px 1fr; }
    .cart-item-thumb { width: 56px; height: 56px; }
    .cart-item-total { grid-column: 2; }
}

/* ===== Rodapé: pagamento e bloco legal ===== */
.footer-pagamento {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-pagamento-titulo { font-family: var(--font-display); font-weight: 700; color: var(--coral-500); font-size: 0.92rem; }
.footer-pagamento-lista { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-pagamento-lista li {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.85rem; font-weight: 600;
}
.footer-pagamento-lista .ico { width: 18px; height: 18px; --ic-accent-op: .8; }
.footer-pagamento + .footer-bottom { margin-top: 22px; }
.footer-legal { font-size: 0.82rem; line-height: 1.7; margin-bottom: 8px; color: rgba(255, 255, 255, 0.75); }

.footer-simples { padding: 8px 0 24px; margin-top: 48px; }
.footer-simples .footer-bottom { border-top: none; margin-top: 0; }
.footer-links-simples { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 14px; }
.footer-links-simples a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-weight: 600; }
.footer-links-simples a:hover { color: var(--coral-500); }

/* Dado da empresa que ainda precisa ser preenchido (visível de propósito). */
.preencher {
    display: inline;
    padding: 1px 6px;
    border-radius: 6px;
    border: 1px dashed currentColor;
    background: rgba(240, 138, 93, 0.16);
    font-weight: 600;
    white-space: normal;
}

/* ===== Páginas de conteúdo (institucionais e de ajuda) ===== */
.pagina-topo {
    background:
        radial-gradient(600px 260px at 90% 0%, var(--coral-100), transparent 70%),
        var(--sand-100);
    padding: 36px 0 40px;
    margin-bottom: 40px;
}
.trilha { margin-bottom: 14px; font-size: 0.88rem; color: var(--muted); }
.trilha ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.trilha li { display: inline-flex; align-items: center; gap: 4px; }
.trilha li + li::before { content: "/"; color: var(--sand-200); margin-right: 4px; }
.trilha a { color: var(--petrol-700); text-decoration: none; font-weight: 600; }
.trilha a:hover { text-decoration: underline; }
.pagina-topo h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--petrol-900);
    margin-bottom: 10px;
}
.pagina-topo .pagina-resumo { max-width: 680px; font-size: 1.08rem; color: var(--muted); }
.pagina-topo .pagina-atualizacao { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

.pagina-corpo {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.pagina-corpo.sem-indice { grid-template-columns: minmax(0, 820px); justify-content: center; }

.indice {
    position: sticky;
    top: 20px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.indice h2 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 800; color: var(--petrol-900); margin-bottom: 10px; }
.indice ol { list-style: none; display: grid; gap: 2px; counter-reset: indice; }
.indice a {
    display: block; padding: 6px 10px; border-radius: 8px;
    color: var(--ink); text-decoration: none; font-size: 0.9rem; line-height: 1.35;
}
.indice a:hover { background: var(--sand-100); color: var(--petrol-900); }

.texto {
    padding: 32px clamp(20px, 4vw, 44px);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.texto > * + * { margin-top: 14px; }
.texto h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--petrol-900);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin-top: 36px;
    scroll-margin-top: 20px;
}
.texto h2:first-child { margin-top: 0; }
.texto h3 { font-size: 1.05rem; font-weight: 700; color: var(--petrol-900); margin-top: 24px; }
.texto p, .texto li { color: var(--ink); }
.texto ul, .texto ol { padding-left: 22px; display: grid; gap: 6px; }
.texto a { color: var(--petrol-700); font-weight: 600; }
.texto strong { color: var(--petrol-900); }
.texto .destaque {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px 18px; border-radius: var(--radius-sm);
    background: var(--petrol-100); color: var(--petrol-900);
}
.texto .destaque .ico { width: 24px; height: 24px; margin-top: 1px; }
.texto .destaque p { color: var(--petrol-900); }
.texto table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.texto th, .texto td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--sand-200); vertical-align: top; }
.texto th { font-family: var(--font-display); font-weight: 700; color: var(--petrol-900); background: var(--sand-50); }
.tabela-rolagem { overflow-x: auto; }

.passos { list-style: none; padding: 0 !important; counter-reset: passo; gap: 12px !important; }
.passos li {
    counter-increment: passo;
    position: relative;
    padding: 14px 16px 14px 60px;
    border-radius: var(--radius-sm);
    background: var(--sand-50);
}
.passos li::before {
    content: counter(passo);
    position: absolute; left: 14px; top: 13px;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--coral-500); color: var(--petrol-900);
    font-family: var(--font-display); font-weight: 800;
}
.passos strong { display: block; }

/* Perguntas frequentes */
.faq { display: grid; gap: 10px; }
.faq details { border: 1.5px solid var(--sand-200); border-radius: var(--radius-sm); background: var(--white); }
.faq details[open] { border-color: var(--petrol-700); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px; cursor: pointer; list-style: none;
    font-weight: 700; color: var(--petrol-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 18px; height: 18px; transition: transform 0.2s; --ic-accent-op: 0; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq .faq-resposta { padding: 0 16px 16px; }
.faq .faq-resposta > * + * { margin-top: 10px; }

/* Atalhos da central de ajuda */
.atalhos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.atalho {
    display: flex; align-items: center; gap: 12px;
    padding: 16px; border-radius: var(--radius);
    background: var(--white); box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    text-decoration: none; color: var(--petrol-900); font-weight: 700;
    transition: border-color 0.2s, transform 0.2s;
}
.atalho:hover { border-color: var(--coral-500); transform: translateY(-2px); }
.atalho-icone {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; background: var(--sand-100);
}
.atalho-icone .ico { width: 24px; height: 24px; }
.atalho small { display: block; font-weight: 500; color: var(--muted); font-size: 0.82rem; }

.contatos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 0 !important; list-style: none; }
.contatos li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--sand-50); }
.contatos .ico { width: 24px; height: 24px; color: var(--petrol-900); margin-top: 2px; }
.contatos strong { display: block; }

@media (max-width: 860px) {
    .pagina-corpo { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .indice { position: static; }
    .indice ol { display: flex; flex-wrap: wrap; gap: 6px; }
    .indice a { background: var(--sand-50); border-radius: 999px; padding: 6px 12px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .pagina-topo { padding: 26px 0 30px; margin-bottom: 24px; }
    .texto { padding: 24px 18px; }
    .container.pagina-corpo { padding: 0 12px; }
}

/* ===== Cards: link para a página do produto e favoritos ===== */
.product-card { position: relative; }
a.product-image { text-decoration: none; color: var(--petrol-900); }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { text-decoration: underline; }

.fav-btn {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    border: none; background: var(--white); color: var(--petrol-900);
    box-shadow: var(--shadow-sm); cursor: pointer;
    transition: transform 0.15s, color 0.2s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn .ico { width: 20px; height: 20px; grid-area: 1 / 1; }
.fav-btn .ico-cheio { display: none; color: var(--coral-600); }
.fav-btn.ativo .ico-cheio { display: block; }
.fav-btn.ativo .ico:not(.ico-cheio) { display: none; }

.user-link { position: relative; }
.fav-badge { margin-left: 2px; }

/* ===== Página de produto ===== */
.produto { padding-top: 18px; padding-bottom: 32px; }
.produto-trilha { margin-bottom: 18px; }
.produto-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 56px; }
.produto-imagem {
    position: relative; aspect-ratio: 1;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--sand-100), var(--sand-200));
    display: grid; place-items: center; color: var(--petrol-900);
    box-shadow: var(--shadow-sm);
}
.produto-imagem .ico { width: 42%; height: 42%; }
.produto-imagem .product-badge { top: 18px; left: 18px; font-size: 12px; padding: 5px 14px; }
.produto-meta { font-size: 0.88rem; color: var(--muted); margin-bottom: 6px; }
.produto-meta a { color: var(--petrol-700); font-weight: 600; text-decoration: none; }
.produto-titulo {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em;
    color: var(--petrol-900); margin-bottom: 10px;
}
.produto-preco { margin: 20px 0 22px; padding: 18px 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.produto-preco-antigo { color: var(--muted); text-decoration: line-through; }
.produto-desconto { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--coral-100); color: var(--coral-700); font-weight: 800; font-size: 0.82rem; }
.produto-preco-atual { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -0.02em; color: var(--petrol-900); line-height: 1.1; margin: 4px 0; }
.produto-parcelas { color: var(--petrol-700); font-weight: 600; }
.produto-compra { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.produto-compra [data-adicionar-produto] { grid-column: 1 / -1; }
.btn-grande { padding: 15px 22px; font-size: 1rem; }
.qty-grande .qty-btn { width: 42px; height: 46px; }
.qty-grande .qty-valor { min-width: 32px; font-size: 1.05rem; }
.fav-btn-grande { position: static; width: 50px; height: 50px; border: 1.5px solid var(--sand-200); box-shadow: none; }
.fav-btn-grande .ico { width: 24px; height: 24px; }
.produto .frete-box h2 {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 0.98rem; font-weight: 800; color: var(--petrol-900); margin-bottom: 12px;
}
.produto .frete-box h2 .ico { width: 22px; height: 22px; }
.frete-lista { list-style: none; display: grid; gap: 8px; margin-top: 4px; }
.frete-lista li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--sand-50); }
.frete-lista li > span:first-child { display: grid; line-height: 1.3; }
.frete-lista small { color: var(--muted); font-size: 0.8rem; }
.produto-garantias { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.produto-garantias li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.produto-garantias strong { color: var(--petrol-900); }
.produto-garantias .ico { width: 26px; height: 26px; flex-shrink: 0; color: var(--petrol-900); }
.relacionados .products-grid { margin-bottom: 0; }

@media (max-width: 860px) {
    .produto-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
    .produto-imagem { aspect-ratio: 4 / 3; }
}

/* ===== Favoritos ===== */
.favoritos-vazio { text-align: center; padding: 40px 16px 56px; }
.favoritos-vazio h2 { font-family: var(--font-display); font-weight: 800; color: var(--petrol-900); margin-bottom: 6px; }
.favoritos-vazio p { color: var(--muted); margin-bottom: 20px; }

/* ===== Situação do pedido ===== */
.status-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.status-ok { background: #E7F5EC; color: #1F6B45; }
.status-alerta { background: #FEF6E4; color: #8A5300; }
.status-erro { background: #FEF3F2; color: #B42318; }
.status-info { background: var(--petrol-100); color: var(--petrol-700); }
.status-neutro { background: var(--sand-100); color: var(--muted); }

/* ===== Acompanhar pedido ===== */
.acompanhar { max-width: 760px; }
.acompanhar-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; padding: 20px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.acompanhar-form .campo label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--petrol-900); margin-bottom: 6px; }
.acompanhar-form .campo-erro { margin-top: 6px; font-size: 0.82rem; color: #B42318; }
.acompanhar-form .campo-erro:empty { display: none; }
.acompanhar-resultado { padding: 22px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.acompanhar-cabecalho { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.acompanhar-cabecalho h2 { font-family: var(--font-display); font-weight: 800; color: var(--petrol-900); font-size: 1.4rem; }
.linha-tempo { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 18px; counter-reset: etapa; }
.linha-tempo li { display: grid; justify-items: center; text-align: center; gap: 6px; font-size: 0.78rem; color: var(--muted); position: relative; }
.linha-tempo li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--sand-200); z-index: 0; }
.linha-tempo li:first-child::before { display: none; }
.linha-tempo li.feito::before, .linha-tempo li.atual::before { background: var(--success); }
.linha-tempo-ponto { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--sand-200); display: grid; place-items: center; color: var(--white); }
.linha-tempo-ponto .ico { width: 18px; height: 18px; --ic-accent-op: 0; }
.linha-tempo li.feito .linha-tempo-ponto, .linha-tempo li.atual .linha-tempo-ponto { background: var(--success); }
.linha-tempo li.atual { color: var(--petrol-900); font-weight: 700; }
.acompanhar-bloco { display: flex; gap: 10px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--sand-200); font-size: 0.93rem; flex-wrap: wrap; }
.acompanhar-bloco > .ico { width: 24px; height: 24px; flex-shrink: 0; color: var(--petrol-900); }
.acompanhar-bloco h3 { display: flex; align-items: center; gap: 8px; width: 100%; font-family: var(--font-display); font-weight: 800; color: var(--petrol-900); font-size: 1rem; }
.acompanhar-bloco h3 .ico { width: 22px; height: 22px; }
.acompanhar-bloco .codigo { width: 100%; display: flex; gap: 10px; }
.acompanhar-bloco code { flex: 1; min-width: 0; padding: 10px; border-radius: var(--radius-sm); background: var(--sand-50); border: 1.5px dashed var(--sand-200); font-size: 0.8rem; word-break: break-all; }
.acompanhar-itens { list-style: none; display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid var(--sand-200); font-size: 0.92rem; }
.acompanhar-itens li { display: flex; justify-content: space-between; gap: 12px; }
.acompanhar-historico { margin-top: 12px; font-size: 0.88rem; }
.acompanhar-historico summary { cursor: pointer; color: var(--petrol-700); font-weight: 600; }
.acompanhar-historico ul { list-style: none; display: grid; gap: 6px; margin-top: 8px; }
.acompanhar-historico li { display: flex; justify-content: space-between; gap: 12px; }
.acompanhar-ajuda { color: var(--muted); font-size: 0.9rem; }
.form-erro { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius-sm); background: #FEF3F2; color: #B42318; font-size: 0.9rem; font-weight: 500; }
.form-erro .ico { width: 20px; height: 20px; flex-shrink: 0; --ic-accent-op: 0; }

@media (max-width: 640px) {
    .acompanhar-form { grid-template-columns: 1fr; }
    .linha-tempo { grid-template-columns: 1fr; justify-items: start; }
    .linha-tempo li { grid-template-columns: 28px 1fr; justify-items: start; text-align: left; align-items: center; }
    .linha-tempo li::before { display: none; }
    .acompanhar-bloco .codigo { flex-direction: column; }
}
.produto-compra .qty { grid-column: 1; grid-row: 1; }
.produto-compra [data-comprar-agora] { grid-column: 2; grid-row: 1; }
.produto-compra .fav-btn-grande { grid-column: 3; grid-row: 1; }
.produto-compra [data-adicionar-produto] { grid-column: 1 / -1; grid-row: 2; }
.acompanhar { width: 100%; }
