:root {
    --primary: #2f7dc5;
    --primary-dark: #1e5fa3;
    --primary-light: #e9f2fb;

    --secondary: #1fa463;
    --secondary-dark: #158a52;

    --dark: #1f2a44;
    --text: #425466;
    --muted: #6b7a90;

    --bg: #f4f8fc;
    --white: #ffffff;
    --border: #e3eaf3;

    --shadow: 0 12px 30px rgba(16, 58, 108, 0.08);

    --radius: 18px;
    --radius-sm: 12px;

    --container: 1280px;
    --header-height: 122px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    min-height: 60vh;
    padding-top: calc(var(--header-height) + 24px);
}

/* HEADER */
.header {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-top {
    display: grid;
    grid-template-columns: 220px 1fr 260px;
    align-items: center;
    gap: 24px;
    padding: 18px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.logo-img-header {
    height: 62px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.logo-area {
    display: flex;
    align-items: center;
    min-width: 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

@media (max-width: 576px) {
    .logo-img-header {
        height: 44px;
    }
}

.search-form {
    display: flex;
    align-items: center;
    background: #f3f6fb;
    border: 1px solid #dde5f0;
    border-radius: 999px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 16px 18px;
    font-size: 15px;
    outline: none;
}

.search-button {
    border: 0;
    background: var(--primary);
    color: var(--white);
    padding: 16px 22px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.search-button:hover {
    background: var(--primary-dark);
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}

.header-link {
    font-weight: 700;
    color: var(--dark);
    transition: 0.2s;
}

.header-link:hover {
    color: var(--primary);
}

.header-cart {
    background: var(--primary);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.header-cart:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.header-nav {
    border-top: 1px solid var(--border);
    background: var(--white);
}

.nav-wrapper {
    display: flex;
    gap: 28px;
    align-items: center;
    padding: 14px 20px;
}

.nav-link {
    color: var(--muted);
    font-weight: 700;
    transition: 0.2s;
    position: relative;
    padding-bottom: 6px;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 999px;
}

/* HERO */
.hero {
    padding: 22px 0 18px;
}

.hero-banner {
    background: linear-gradient(135deg, #2f7dc5 0%, #2aa7d6 60%, #1fa463 100%);
    border-radius: 28px;
    padding: 48px;
    color: var(--white);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.hero-title {
    font-size: 44px;
    line-height: 1.1;
    margin: 0 0 16px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 24px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.2s;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #edf4ff;
    color: var(--primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-green {
    background: var(--secondary);
    color: var(--white);
}

.btn-danger {
    background: #dc2626;
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* SECTION */
.section {
    padding: 28px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-title {
    margin: 0;
    font-size: 34px;
    color: var(--dark);
}

.section-text {
    color: var(--muted);
    margin: 8px 0 0;
}

/* TITLES */
.page-title {
    margin: 0 0 10px;
    font-size: 36px;
    color: var(--dark);
}

.page-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

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

.category-card {
    background: var(--white);
    border-radius: 24px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-thumb {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 18px;
    margin-bottom: 14px;
    background: #eef2f7;
    padding: 12px;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

/* PRODUCTS */
.products-grid {
    display: grid;
    gap: 22px;
}

.products-grid-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.products-grid-compact {
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    justify-content: start;
}

@media (max-width: 1200px) {
    .products-grid-home {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .products-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .products-grid-home,
    .products-grid-compact {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image-wrap {
    width: 100%;
    height: 260px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-bottom: 1px solid #edf1f5;
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: #eef2f7;
}

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

.product-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
    align-self: flex-start;
}

.product-title {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--dark);
    min-height: 56px;
    line-height: 1.3;
}

.product-text {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
    min-height: 48px;
}

.product-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

/* CONTENT CARD */
.content-card {
    background: var(--white);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.table-responsive {
    overflow-x: auto;
}

/* ALERTS */
.alert {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 600;
}

.alert-success {
    background: #eafaf1;
    color: #146c43;
    border: 1px solid #b7e4c7;
}

.alert-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

/* FORMS */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(47, 109, 224, 0.08);
}

/* CART */
.cart-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: start;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th,
.cart-table td {
    padding: 16px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.cart-table th {
    background: #f8fafc;
    color: var(--dark);
    font-size: 14px;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 14px;
    background: #eef2f7;
    flex-shrink: 0;
    padding: 8px;
}

.cart-product-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.cart-product-meta {
    font-size: 14px;
    color: var(--muted);
}

.cart-total-box {
    background: linear-gradient(135deg, #2f7dc5 0%, #2aa7d6 100%);
    color: var(--white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    margin-top: 18px;
}

.cart-total-label {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.cart-total-value {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 10px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty h2 {
    margin: 0 0 12px;
    color: var(--dark);
}

.qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
}

.small-muted {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* FOOTER */
.footer {
    margin-top: 50px;
    background: #0f172a;
    color: #d6dbe5;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
    padding: 48px 20px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 14px;
}

.footer-title {
    margin: 0 0 14px;
    color: var(--white);
}

.footer-text {
    color: #c1c8d6;
    line-height: 1.6;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: #d6dbe5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    color: #a7b0c0;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    :root {
        --header-height: 170px;
    }

    .header-top {
        grid-template-columns: 1fr;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .hero-banner {
        grid-template-columns: 1fr;
        padding: 34px 26px;
    }

    .hero-title {
        font-size: 34px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .cart-table {
        min-width: 760px;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 178px;
    }

    .container {
        padding: 0 14px;
    }

    .nav-wrapper {
        gap: 16px;
        overflow-x: auto;
    }

    .section-title,
    .page-title {
        font-size: 28px;
    }

    .product-image-wrap {
        height: 220px;
    }

    .hero-banner {
        border-radius: 22px;
    }

    .logo-name {
        font-size: 24px;
    }
}

.product-card.is-added {
    border: 2px solid #16a34a;
}

.btn-added {
    background: #dcfce7;
    color: #166534;
    cursor: default;
}

.btn-added:hover {
    transform: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
    padding: 28px;
    text-align: center;
}

.modal-title {
    margin: 0 0 10px;
    font-size: 28px;
    color: var(--dark);
}

.modal-text {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    background: var(--primary-light);
    color: var(--primary);
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    margin-left: 8px;
    line-height: 1;
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-control form {
    margin: 0;
}

.qty-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: #eef2f7;
    color: #374151;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.qty-btn:hover {
    transform: translateY(-2px);
}

.qty-plus {
    background: #16a34a;
    color: #fff;
}

.qty-number {
    min-width: 32px;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    color: var(--primary);
}

.footer-logo-img {
    height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.detalhe-image-wrap {
    width: 100%;
    min-height: 460px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.detalhe-image {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.detalhe-info p {
    margin: 0 0 10px;
    color: var(--text);
}

.detalhe-descricao {
    margin-top: 24px;
}

.detalhe-descricao h3 {
    margin: 0 0 10px;
    color: var(--dark);
}

.detalhe-descricao p {
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
}

@media (max-width: 992px) {
    .detalhe-grid {
        grid-template-columns: 1fr;
    }

    .detalhe-image-wrap {
        min-height: 320px;
    }
}

.detalhe-card {
    padding: 32px;
}

.detalhe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.detalhe-col-image,
.detalhe-col-info {
    min-width: 0;
}

.detalhe-image-wrap {
    width: 100%;
    min-height: 520px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px;
}

.detalhe-image {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
}

.detalhe-title {
    margin: 12px 0 10px;
    font-size: 42px;
    line-height: 1.15;
    color: var(--dark);
}

.detalhe-subtitle {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.detalhe-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 26px;
}

.detalhe-meta-item {
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 16px;
    padding: 14px 16px;
}

.detalhe-meta-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.detalhe-meta-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.detalhe-descricao-box {
    margin-top: 10px;
    padding-top: 8px;
}

.detalhe-section-title {
    margin: 0 0 12px;
    font-size: 24px;
    color: var(--dark);
}

.detalhe-description {
    margin: 0;
    line-height: 1.8;
    color: var(--text);
    font-size: 16px;
}

.detalhe-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

@media (max-width: 992px) {
    .detalhe-grid {
        grid-template-columns: 1fr;
    }

    .detalhe-image-wrap {
        min-height: 360px;
    }

    .detalhe-image {
        max-height: 320px;
    }

    .detalhe-title {
        font-size: 34px;
    }
}

@media (max-width: 576px) {
    .detalhe-card {
        padding: 22px;
    }

    .detalhe-title {
        font-size: 30px;
    }

    .detalhe-subtitle {
        font-size: 16px;
    }

    .detalhe-image-wrap {
        min-height: 300px;
        padding: 18px;
    }
}

.admin-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--admin-border);
    background: #fff;
}

.admin-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--admin-muted);
    text-align: center;
    padding: 6px;
}

.admin-badge-info {
    background: #d7e9fb;
    color: var(--primary-dark);
}

.admin-image-preview {
    margin-top: 14px;
}

.admin-image-preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--admin-border);
    background: #fff;
}

.admin-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 14px;
}

.admin-detail-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--admin-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.admin-detail-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--admin-text);
}

.product-brand {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 12px;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: 0.2s;
}

.whatsapp-float img {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===== AJUSTES MOBILE HEADER / HOME ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 205px;
    }

    .site-main {
        padding-top: calc(var(--header-height) + 18px);
    }

    .header-top {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px 14px 10px;
    }

    .logo-area {
        justify-content: flex-start;
    }

    .logo-img-header {
        height: 48px;
    }

    .search-form {
        width: 100%;
    }

    .search-input {
        min-width: 0;
        padding: 14px 16px;
        font-size: 16px;
    }

    .search-button {
        padding: 14px 18px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .header-link {
        font-size: 17px;
        line-height: 1.2;
        white-space: nowrap;
        flex: 0 1 auto;
    }

    .header-cart {
        padding: 10px 14px;
        min-height: 44px;
        font-size: 16px;
        gap: 6px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .cart-count {
        min-width: 24px;
        height: 24px;
        padding: 0 6px;
        font-size: 12px;
        margin-left: 4px;
    }

    .header-nav {
        overflow-x: auto;
    }

    .nav-wrapper {
        gap: 18px;
        padding: 10px 14px 12px;
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        font-size: 15px;
        padding-bottom: 4px;
        flex: 0 0 auto;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 198px;
    }

    .container {
        padding: 0 14px;
    }

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

    .logo-img-header {
        height: 42px;
    }

    .search-input {
        padding: 13px 14px;
        font-size: 15px;
    }

    .search-button {
        padding: 13px 16px;
        font-size: 15px;
    }

    .header-actions {
        margin-top: 2px;
    }

    .header-link {
        font-size: 16px;
    }

    .header-cart {
        padding: 9px 12px;
        font-size: 15px;
        min-height: 42px;
    }

    .cart-count {
        min-width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .nav-wrapper {
        gap: 16px;
        padding-top: 8px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 12px 0 8px;
    }

    .hero-banner {
        padding: 22px 18px;
        border-radius: 18px;
        gap: 18px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ===== CARRINHO ===== */

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead th {
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #1f2a44;
    padding: 0 0 14px;
    border-bottom: 1px solid #e6ebf2;
}

.cart-table tbody td {
    padding: 18px 0;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-product-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #f7f9fc;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 8px;
    flex-shrink: 0;
}

.cart-product-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #162033;
    margin-bottom: 4px;
}

.cart-product-meta {
    font-size: 13px;
    color: #6c7890;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f6f8fc;
    border: 1px solid #e5ebf3;
    border-radius: 999px;
    padding: 6px;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #1f2a44;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.qty-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.qty-plus {
    background: #2563eb;
    color: #fff;
}

.qty-number {
    min-width: 26px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1f2a44;
}

.btn-remove-cart {
    min-height: 42px;
    padding: 10px 16px;
    white-space: nowrap;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.small-muted {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.page-title {
    margin-bottom: 10px;
}

.page-subtitle {
    max-width: 760px;
    margin-bottom: 22px;
}

.cart-empty {
    text-align: center;
    padding: 36px 24px;
}

.cart-empty h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Ajuste dos cards laterais do carrinho */
.cart-layout .content-card + .content-card {
    margin-top: 20px;
}

/* ===== FORMULÁRIO CARRINHO ===== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2a44;
}

.form-control {
    width: 100%;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    padding: 13px 15px;
    font-size: 15px;
    outline: none;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ===== MOBILE ===== */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table th,
    .cart-table td,
    .cart-table tr {
        display: block;
        width: 100%;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .cart-table tbody tr {
        background: #fff;
        border: 1px solid #e7edf5;
        border-radius: 18px;
        padding: 16px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    }

    .cart-table tbody td {
        border: none;
        padding: 0;
        margin-bottom: 14px;
    }

    .cart-table tbody td:last-child {
        margin-bottom: 0;
    }

    .cart-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #6c7890;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .cart-product {
        align-items: flex-start;
    }

    .cart-product-image {
        width: 64px;
        height: 64px;
        border-radius: 12px;
    }

    .cart-product-name {
        font-size: 16px;
    }

    .qty-control {
        justify-content: center;
        width: fit-content;
    }

    .btn-remove-cart {
        width: 100%;
        justify-content: center;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .content-card {
        padding: 18px;
        border-radius: 18px;
    }

    .page-title {
        font-size: 32px;
        line-height: 1.15;
    }

    .page-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .section {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .page-title {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .page-subtitle {
        margin-bottom: 18px;
    }

    .cart-table tbody tr {
        padding: 14px;
        border-radius: 16px;
    }

    .cart-product {
        gap: 12px;
    }

    .cart-product-image {
        width: 58px;
        height: 58px;
        padding: 6px;
    }

    .cart-product-name {
        font-size: 15px;
    }

    .cart-product-meta {
        font-size: 12px;
    }

    .qty-control {
        gap: 8px;
        padding: 5px;
    }

    .qty-btn {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .qty-number {
        font-size: 14px;
    }

    .form-control {
        padding: 12px 14px;
        font-size: 15px;
    }

    textarea.form-control {
        min-height: 110px;
    }
}

.card-title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    color: #1f2a44;
}

@media (max-width: 576px) {
    .card-title {
        font-size: 18px;
    }
}

/* ===== CORREÇÃO FINAL MOBILE CARRINHO ===== */
@media (max-width: 768px) {
    .cart-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .content-card {
        padding: 16px;
        border-radius: 16px;
        overflow: hidden;
    }

    .table-responsive {
        overflow: visible;
    }

    .cart-table {
        width: 100%;
        min-width: 0 !important;
        border-collapse: separate;
        border-spacing: 0;
    }

    .cart-table,
    .cart-table thead,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td,
    .cart-table th {
        display: block;
        width: 100%;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cart-table tbody tr {
        background: #ffffff;
        border: 1px solid #e5ebf3;
        border-radius: 16px;
        padding: 14px;
        box-shadow: none;
    }

    .cart-table tbody td {
        padding: 0;
        margin: 0 0 14px;
        border: 0;
    }

    .cart-table tbody td:last-child {
        margin-bottom: 0;
    }

    .cart-table tbody td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 800;
        color: #7a8599;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 8px;
    }

    .cart-product {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .cart-product-image {
        width: 54px;
        height: 54px;
        padding: 6px;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .cart-product-name {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .cart-product-meta {
        font-size: 12px;
        line-height: 1.4;
    }

    .qty-control {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 4px 6px;
        border-radius: 999px;
        width: auto;
        max-width: 100%;
    }

    .qty-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
        flex-shrink: 0;
    }

    .qty-number {
        min-width: 20px;
        font-size: 14px;
    }

    .btn,
    .btn-full,
    .btn-remove-cart {
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        line-height: 1.35;
        padding: 12px 14px;
        font-size: 14px;
        min-height: 44px;
    }

    .btn-remove-cart {
        border-radius: 14px;
    }

    .card-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .small-muted {
        font-size: 13px;
        line-height: 1.5;
    }

    .page-title {
        font-size: 26px;
        line-height: 1.15;
        margin-bottom: 8px;
    }

    .page-subtitle {
        font-size: 14px;
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .form-control {
        padding: 12px 13px;
        font-size: 14px;
        border-radius: 12px;
    }

    textarea.form-control {
        min-height: 96px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .section {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .content-card {
        padding: 14px;
        border-radius: 14px;
    }

    .cart-table tbody tr {
        padding: 12px;
        border-radius: 14px;
    }

    .cart-product-image {
        width: 50px;
        height: 50px;
    }

    .cart-product-name {
        font-size: 14px;
    }

    .cart-product-meta {
        font-size: 11px;
    }

    .btn,
    .btn-full,
    .btn-remove-cart {
        font-size: 13px;
        padding: 11px 12px;
    }

    .card-title {
        font-size: 18px;
    }

    .page-title {
        font-size: 24px;
    }
}

/* ===== MELHORIAS VISUAIS NIVEL 2 ===== */
.header {
    box-shadow: 0 8px 28px rgba(16, 58, 108, 0.08);
    backdrop-filter: saturate(180%) blur(8px);
}

.search-form {
    background: #f7fbff;
    border: 1px solid #dbe7f3;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.search-button,
.header-cart,
.btn,
.product-card,
.category-card,
.content-card,
.servico-item,
.nav-link,
.qty-btn,
.whatsapp-float {
    transition: all 0.25s ease;
}

.search-button {
    box-shadow: 0 8px 18px rgba(47, 125, 197, 0.18);
}

.header-cart {
    box-shadow: 0 8px 18px rgba(47, 125, 197, 0.18);
}

.header-cart:hover,
.search-button:hover {
    transform: translateY(-1px);
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary);
}

.hero-banner {
    box-shadow: 0 24px 54px rgba(16, 58, 108, 0.18);
}

.btn-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-primary:hover {
    background: #d7e9fb;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.22);
}

.btn-green {
    background: var(--secondary);
    color: var(--white);
}

.btn-green:hover {
    background: var(--secondary-dark);
}

.product-card,
.category-card,
.content-card {
    border: 1px solid rgba(227, 234, 243, 0.9);
}

.product-card:hover,
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(16, 58, 108, 0.14);
}

.content-card:hover {
    box-shadow: 0 18px 36px rgba(16, 58, 108, 0.12);
}

.product-image-wrap,
.detalhe-image-wrap {
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
}

.product-title,
.page-title,
.section-title,
.card-title,
.detalhe-title {
    color: var(--dark);
}

.product-text,
.page-subtitle,
.section-text,
.small-muted,
.detalhe-subtitle {
    color: var(--muted);
}

.product-category,
.product-brand {
    background: var(--primary-light);
    color: var(--primary);
}

.product-price {
    color: var(--primary-dark);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(47, 125, 197, 0.10);
}

.cart-total-box {
    box-shadow: 0 20px 44px rgba(16, 58, 108, 0.16);
}

.qty-plus {
    background: var(--primary);
}

.qty-plus:hover {
    background: var(--primary-dark);
}

.whatsapp-float:hover {
    transform: scale(1.08) translateY(-2px);
}

.footer {
    background: linear-gradient(180deg, #102033 0%, #0f172a 100%);
}

@media (max-width: 576px) {
    .hero-banner {
        box-shadow: 0 16px 30px rgba(16, 58, 108, 0.16);
    }

    .product-card:hover,
    .category-card:hover,
    .content-card:hover {
        transform: none;
    }
}
/* ===== PAGINA INSTITUCIONAL ===== */

.institucional-page {
    background: linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
    padding: 40px 0 70px;
}

.institucional-hero {
    background: linear-gradient(135deg, #2f7dc5 0%, #2aa7d6 60%, #1fa463 100%);
    color: #fff;
    border-radius: 28px;
    padding: 56px 48px;
    margin-bottom: 32px;
    box-shadow: 0 18px 45px rgba(16, 58, 108, 0.18);
}

.institucional-hero-content {
    max-width: 760px;
}

.institucional-badge,
.section-kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 8px 14px;
}

.institucional-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    margin-bottom: 18px;
}

.section-kicker {
    background: #e8f1fb;
    color: #1e5fa3;
    margin-bottom: 14px;
}

.institucional-hero h1 {
    font-size: 2.7rem;
    line-height: 1.15;
    margin: 0 0 18px;
    font-weight: 800;
    color: #fff;
}

.institucional-hero p {
    font-size: 1.08rem;
    line-height: 1.8;
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
}

.institucional-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn-primary-site,
.btn-secondary-site {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.25s ease;
}

.btn-primary-site {
    background: #ffffff;
    color: #1e5fa3;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn-primary-site:hover {
    transform: translateY(-2px);
    opacity: 0.96;
}

.btn-secondary-site {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary-site:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.institucional-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.institucional-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.institucional-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 30px rgba(16, 58, 108, 0.08);
    border: 1px solid #edf2f7;
}

.institucional-card h2,
.institucional-card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #143a63;
}

.institucional-card p,
.institucional-section p {
    color: #425466;
    line-height: 1.8;
    margin-bottom: 14px;
}

.destaque-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.check-list,
.simple-list {
    margin: 0;
    padding-left: 18px;
}

.check-list li,
.simple-list li {
    margin-bottom: 10px;
    color: #425466;
}

.institucional-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px;
    margin-bottom: 32px;
    box-shadow: 0 12px 30px rgba(16, 58, 108, 0.08);
    border: 1px solid #edf2f7;
}

.institucional-page .section-header {
    display: block;
    margin-bottom: 26px;
}

.institucional-page .section-header h2 {
    margin: 0 0 14px;
    font-size: 2rem;
    color: #143a63;
}

.institucional-page .section-header p {
    margin: 0;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.servico-item {
    background: #f8fbff;
    border: 1px solid #e8f0f8;
    border-radius: 18px;
    padding: 24px;
    transition: all 0.25s ease;
}

.servico-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(16, 58, 108, 0.08);
}

.servico-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.servico-item h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    color: #143a63;
}

.servico-item p {
    margin: 0;
    font-size: 0.96rem;
}

.publico-alvo {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.publico-alvo span {
    background: #eef5fc;
    color: #143a63;
    border: 1px solid #d9e8f7;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
}

.cta-final {
    background: linear-gradient(135deg, #1e5fa3 0%, #2f7dc5 60%, #1fa463 100%);
    color: #fff;
    border-radius: 24px;
    padding: 38px 34px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    box-shadow: 0 18px 45px rgba(16, 58, 108, 0.18);
}

.cta-final h2 {
    margin: 0 0 12px;
    font-size: 2rem;
    color: #fff;
}

.cta-final p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    line-height: 1.8;
}

.cta-final .section-kicker {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.cta-final-actions {
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .institucional-grid,
    .institucional-grid-3,
    .servicos-grid {
        grid-template-columns: 1fr;
    }

    .cta-final {
        flex-direction: column;
        align-items: flex-start;
    }

    .institucional-hero {
        padding: 40px 28px;
    }

    .institucional-hero h1 {
        font-size: 2rem;
    }

    .institucional-page .section-header h2,
    .cta-final h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .institucional-page {
        padding: 24px 0 50px;
    }

    .institucional-card,
    .institucional-section,
    .cta-final {
        padding: 22px;
    }

    .institucional-hero {
        border-radius: 18px;
    }

    .institucional-hero h1 {
        font-size: 1.7rem;
    }

    .institucional-hero-actions {
        flex-direction: column;
    }

    .btn-primary-site,
    .btn-secondary-site {
        width: 100%;
    }
}
/* ===== BUSCA HEADER ===== */

.search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #d9e6f5;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(16, 58, 108, 0.05);
}

.search-input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 16px 18px;
    font-size: 16px;
    color: #1f2a44;
    outline: none;
}

/* Placeholder visível */
.search-input::placeholder {
    color: #6b7a90;
    opacity: 1;
}

/* Foco */
.search-input:focus {
    background: #f8fbff;
}

.search-button {
    border: 0;
    background: linear-gradient(135deg, #2f7dc5 0%, #2aa7d6 100%);
    color: #ffffff;
    padding: 16px 26px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.search-button:hover {
    opacity: 0.95;
}

/* ===== FOOTER MOBILE ===== */
@media (max-width: 768px) {
    .footer {
        margin-top: 32px;
        padding-bottom: 78px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 16px;
    }

    .footer-logo,
    .footer-logo-img {
        max-width: 150px;
        height: auto;
        margin-bottom: 12px;
    }

    .footer-title {
        font-size: 20px;
        margin: 0 0 12px;
    }

    .footer-text {
        font-size: 15px;
        line-height: 1.7;
        margin: 0;
    }

    .footer-list li {
        margin-bottom: 8px;
    }

    .footer-list a,
    .footer-list span,
    .footer-list li {
        font-size: 15px;
        line-height: 1.6;
    }

    .footer-grid > div {
        padding-bottom: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-grid > div:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .footer-bottom {
        padding: 14px 16px 18px;
        font-size: 13px;
        line-height: 1.5;
        text-align: center;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 20px;
        padding: 24px 14px; 
    }

    .footer-logo,
    .footer-logo-img {
        max-width: 140px;
    }

    .footer-title {
        font-size: 18px;
    }

    .footer-text,
    .footer-list a,
    .footer-list span,
    .footer-list li {
        font-size: 14px;
    }

    .footer-bottom {
        font-size: 12px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
    }

    .whatsapp-float img {
        width: 26px;
        height: 26px;
    }
}

/* ===== HEADER / MENU MOBILE MELHORADO ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 150px;
    }

    .header {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    }

    .header-top {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "logo actions"
            "search search";
        gap: 10px 12px;
        padding: 10px 14px 8px;
        align-items: center;
    }

    .logo-area {
        grid-area: logo;
        min-width: 0;
    }

    .logo-link {
        max-width: 150px;
    }

    .logo-img-header {
        height: 42px;
        width: auto;
    }

    .search-form {
        grid-area: search;
        width: 100%;
        min-width: 0;
    }

    .search-input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .search-button {
        padding: 12px 16px;
        font-size: 15px;
        min-width: 96px;
    }

    .header-actions {
        grid-area: actions;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
        width: auto;
        flex-wrap: nowrap;
    }

    .header-link {
        display: none;
    }

    .header-cart {
        padding: 8px 12px;
        min-height: 40px;
        font-size: 15px;
        gap: 6px;
        border-radius: 999px;
        box-shadow: 0 6px 18px rgba(47, 125, 197, 0.18);
    }

    .cart-count {
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        font-size: 11px;
        margin-left: 2px;
    }

    .header-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-top: 1px solid #e8eef5;
    }

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

    .nav-wrapper {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 10px 14px 12px;
        flex-wrap: nowrap;
        white-space: nowrap;
        min-width: max-content;
    }

    .nav-link {
        font-size: 14px;
        font-weight: 700;
        color: #5f6f86;
        padding: 0 0 6px;
        flex: 0 0 auto;
    }

    .nav-link.active,
    .nav-link:hover {
        color: var(--primary);
    }

    .nav-link.active::after {
        height: 2px;
        bottom: 0;
    }

    .site-main {
        padding-top: calc(var(--header-height) + 18px);
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 142px;
    }

    .header-top {
        padding: 8px 12px 8px;
        gap: 8px 10px;
    }

    .logo-link {
        max-width: 135px;
    }

    .logo-img-header {
        height: 38px;
    }

    .search-input {
        padding: 11px 13px;
        font-size: 14px;
    }

    .search-input::placeholder {
        font-size: 14px;
    }

    .search-button {
        padding: 11px 14px;
        min-width: 86px;
        font-size: 14px;
    }

    .header-cart {
        padding: 8px 10px;
        min-height: 38px;
        font-size: 14px;
    }

    .cart-count {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .nav-wrapper {
        gap: 16px;
        padding: 8px 12px 10px;
    }

    .nav-link {
        font-size: 13px;
    }
}

/* ===== AJUSTE CARD HOME - APROXIMAR BOTOES ===== */

.products-grid-home .product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-grid-home .product-body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.products-grid-home .product-category {
    margin-bottom: 2px;
}

.products-grid-home .product-title {
    margin: 0;
    min-height: auto;
    font-size: 22px;
    line-height: 1.25;
}

.products-grid-home .product-brand {
    margin: 0;
}

.products-grid-home .product-text {
    margin: 0 0 6px;
    min-height: auto;
    line-height: 1.45;
    color: var(--muted);
}

.products-grid-home .product-price {
    margin-bottom: 8px;
}

.products-grid-home .product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px; /* antes provavelmente auto */
}

.products-grid-home .product-actions .btn {
    width: 100%;
    min-height: 46px;
}

/* imagem um pouco mais equilibrada com o conteúdo */
.products-grid-home .product-image-wrap {
    height: 250px;
    padding: 16px;
}

.products-grid-home .product-image {
    height: 100%;
    object-fit: contain;
}

/* ========================================
   HOME - CARD DE PRODUTO REFINADO
   ======================================== */

.products-grid-home {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.products-grid-home .product-card {
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 58, 108, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.products-grid-home .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(16, 58, 108, 0.14);
    border-color: #d5e4f5;
}

.products-grid-home .product-image-wrap {
    width: 100%;
    height: 250px;
    background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-bottom: 1px solid #edf2f7;
}

.products-grid-home .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
}

.products-grid-home .product-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.products-grid-home .product-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf2fc;
    color: #2f7dc5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.products-grid-home .product-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: #edf3fb;
    color: #2f7dc5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.products-grid-home .product-title {
    margin: 2px 0 0;
    font-size: 23px;
    line-height: 1.22;
    font-weight: 800;
    color: #22304d;
    min-height: auto;
}

.products-grid-home .product-text {
    margin: 0;
    color: #687892;
    line-height: 1.5;
    min-height: auto;
    font-size: 15px;
}

.products-grid-home .product-price {
    margin: 2px 0 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    color: #1e5fa3;
}

.products-grid-home .product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.products-grid-home .product-actions .btn {
    width: 100%;
    min-height: 50px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 800;
    justify-content: center;
    transition: all 0.22s ease;
}

.products-grid-home .product-actions .btn-primary {
    background: #eaf2fc;
    color: #2f7dc5;
    border: 1px solid #dce9f8;
}

.products-grid-home .product-actions .btn-primary:hover {
    background: #dfeafb;
    transform: translateY(-2px);
}

.products-grid-home .product-actions .btn-green {
    background: linear-gradient(135deg, #1fa463 0%, #22b06a 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 12px 22px rgba(31, 164, 99, 0.18);
}

.products-grid-home .product-actions .btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(31, 164, 99, 0.24);
}

/* variação quando já foi adicionado */
.products-grid-home .product-actions .btn-added {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    box-shadow: none;
}

.products-grid-home .product-actions .btn-added:hover {
    transform: none;
}

/* home em 3 colunas em telas médias */
@media (max-width: 1200px) {
    .products-grid-home {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .products-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .products-grid-home .product-image-wrap {
        height: 230px;
    }

    .products-grid-home .product-title {
        font-size: 21px;
    }
}

@media (max-width: 576px) {
    .products-grid-home {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .products-grid-home .product-card {
        border-radius: 22px;
    }

    .products-grid-home .product-image-wrap {
        height: 220px;
        padding: 16px;
    }

    .products-grid-home .product-body {
        padding: 16px 16px 18px;
    }

    .products-grid-home .product-title {
        font-size: 20px;
    }

    .products-grid-home .product-text {
        font-size: 14px;
    }

    .products-grid-home .product-actions .btn {
        min-height: 46px;
        font-size: 15px;
    }
}
/* ===== HEADER CARRINHO RESPONSIVO ===== */

.header-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.header-cart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-cart-icon svg {
    display: block;
}

.header-cart-text {
    display: inline-block;
}

/* badge */
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

/* MOBILE */
@media (max-width: 768px) {
    .header-cart {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 12px;
        background: linear-gradient(135deg, #2f7dc5 0%, #2aa7d6 100%);
        color: #ffffff !important;
        justify-content: center;
        box-shadow: 0 8px 18px rgba(47, 125, 197, 0.22);
        border: none;
    }

    .header-cart:hover {
        background: linear-gradient(135deg, #1e5fa3 0%, #2f7dc5 100%);
        color: #ffffff !important;
    }

    .header-cart-icon,
    .header-cart-icon svg {
        color: #ffffff;
        stroke: currentColor;
    }

    .header-cart-text {
        display: none;
    }

    .header-cart .cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        background: #ffffff;
        color: var(--primary);
        border: 1px solid rgba(47, 125, 197, 0.18);
        box-shadow: 0 6px 14px rgba(47, 125, 197, 0.18);
    }
}

/* ===== BOTAO REMOVER CARRINHO RESPONSIVO ===== */

.btn-remove-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-remove-icon {
    display: none;
    align-items: center;
    justify-content: center;
}

.btn-remove-icon svg {
    display: block;
}

/* MOBILE */
@media (max-width: 768px) {
    .btn-remove-cart {
        width: 44px;
        height: 44px;
        padding: 0 !important;
        border-radius: 12px;
        background: #fee2e2;
        color: #dc2626;
        border: 1px solid #fecaca;
        box-shadow: none;
    }

    .btn-remove-cart .btn-remove-text {
        display: none;
    }

    .btn-remove-cart .btn-remove-icon {
        display: inline-flex;
    }
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Fundo branco suave atrás do logo */
.hero-image::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 320px;
    background: radial-gradient(
        ellipse at center,
        rgba(255,255,255,0.95) 0%,
        rgba(255,255,255,0.85) 40%,
        rgba(255,255,255,0.5) 65%,
        rgba(255,255,255,0.0) 100%
    );
    border-radius: 50%;
    filter: blur(8px);
    z-index: 0;
}

.hero-image img {
    position: relative;
    z-index: 1;
    max-width: 580px;
}

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

    .hero-banner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 20px;
        text-align: center;
        border-radius: 24px;
    }

    .hero-banner > div:first-child {
        max-width: 100%;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 22px;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }

    .hero-image {
        order: -1;
    }

    .hero-image::before {
        width: 280px;
        height: 150px;
        filter: blur(10px);
    }

    .hero-image img {
        max-width: 250px;
        margin: 0 auto;
    }
}

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

    .hero-banner {
        padding: 22px 16px;
        gap: 20px;
        border-radius: 20px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.12;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.45;
    }

    .hero-image::before {
        width: 320px;
        height: 220px;
        filter: blur(8px);
    }

    .hero-image img {
        max-width: 350px;
    }

    .hero-actions .btn {
        max-width: 100%;
        padding: 14px 18px;
    }
}




