/*
Theme Name: Catalogo Santana
Theme URI: https://catalogo.santanaenxovais.com.br
Author: Santana Enxovais
Author URI: https://santanaenxovais.com.br
Description: Catalogo de produtos Santana Enxovais - Otimizado para SEO
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: catalogo-santana
*/

/* Reset e Base */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --color-primary: #1e3a5f;
    --color-primary-light: #2c5282;
    --color-secondary: #c9a962;
    --color-background: #f8f9fa;
    --color-card: #ffffff;
    --color-text: #1a202c;
    --color-text-muted: #718096;
    --color-border: #e2e8f0;
    --color-success: #48bb78;
    --color-warning: #ed8936;
    --shadow-soft: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

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

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.site-header {
    background: var(--color-card);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    gap: 2rem;
}

.site-logo img,
.site-logo .custom-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.custom-logo-link {
    display: flex;
    align-items: center;
}

.site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.header-search {
    flex: 1;
    max-width: 500px;
}

.search-form {
    display: flex;
    background: var(--color-background);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
}

.search-form button {
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--color-primary-light);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.header-contact a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Categories Bar */
.categories-bar {
    background: var(--color-card);
    border-top: 1px solid var(--color-border);
    padding: 0.75rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.categories-list {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0 0.25rem;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    width: 80px;
    height: 80px;
    background: var(--color-background);
    border-radius: var(--radius);
    transition: all 0.2s;
    text-align: center;
    padding: 0.4rem;
}

.category-item:hover {
    background: var(--color-primary);
    color: white;
}

.category-item:hover svg {
    color: white !important;
}

.category-item svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.category-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.1;
}

.category-item:hover span {
    color: white;
}

/* Cores dos ícones por categoria */
.category-item[data-categoria="banho"] svg { color: #3182ce; }
.category-item[data-categoria="cama"] svg { color: #805ad5; }
.category-item[data-categoria="casal"] svg { color: #d53f8c; }
.category-item[data-categoria="solteiro"] svg { color: #38a169; }
.category-item[data-categoria="queen"] svg { color: #dd6b20; }
.category-item[data-categoria="king"] svg { color: #c9a962; }
.category-item[data-categoria="cortina"] svg { color: #e53e3e; }
.category-item[data-categoria="cozinha"] svg { color: #319795; }
.category-item[data-categoria="sala"] svg { color: #975a16; }
.category-item[data-categoria="tapete"] svg { color: #2b6cb0; }
.category-item[data-categoria="bebe"] svg { color: #ed64a6; }
.category-item[data-categoria="infantil"] svg { color: #48bb78; }
.category-item[data-categoria="travesseiro"] svg { color: #667eea; }

/* Main Content */
main {
    min-height: 60vh;
    padding: 2rem 0;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card */
.product-card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s;
}

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

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-background);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background: var(--color-primary);
    color: white;
}

.badge-promo {
    background: var(--color-warning);
    color: white;
}

.badge-bestseller {
    background: var(--color-secondary);
    color: var(--color-text);
}

.product-card-content {
    padding: 1rem;
}

.product-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-card-prices {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-card-price-prazo,
.product-card-price-vista {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card-price-prazo .price-label,
.product-card-price-vista .price-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.product-card-price-prazo .price-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-card-price-vista .price-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-success);
}

.product-card-price-old {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-card-stock.out {
    color: var(--color-warning);
}

/* Single Product - New Layout */
.product-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

@media (min-width: 768px) {
    .product-top {
        grid-template-columns: 1fr 380px;
        align-items: start;
    }
}

.product-gallery {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    align-self: start;
}

/* Product Sidebar */
.product-sidebar {
    background: var(--color-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    align-self: start;
}

.product-brand {
    margin-bottom: 0.5rem;
}

.brand-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.brand-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

.product-sidebar .product-title {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
}

.product-category-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-background);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.product-prices {
    background: var(--color-background);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.price-row + .price-row {
    border-top: 1px solid var(--color-border);
}

.price-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.price-vista .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-success);
}

.price-prazo .price-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.price-value.consulte {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.product-sidebar .product-variations {
    margin-bottom: 1rem;
}

.product-sidebar .product-variations h4 {
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
    color: var(--color-text-muted);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-add-cart-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-add-cart-large:hover {
    background: var(--color-primary-light);
}

/* Product Details Section */
.product-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .product-details {
        grid-template-columns: repeat(3, 1fr);
    }
}

.detail-section {
    background: var(--color-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.detail-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.detail-content {
    font-size: 0.9rem;
    color: var(--color-text);
    line-height: 1.7;
}

.detail-content p {
    margin: 0 0 1rem;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

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

.benefits-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: bold;
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--color-border);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th,
.specs-table td {
    padding: 0.75rem 0.5rem;
    text-align: left;
    font-size: 0.875rem;
}

.specs-table th {
    font-weight: 500;
    color: var(--color-text-muted);
    width: 40%;
}

.specs-table td {
    font-weight: 500;
    color: var(--color-text);
}

/* Legacy single-product support */
.single-product {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .single-product {
        grid-template-columns: 1fr 1fr;
    }
}

.product-main-image {
    aspect-ratio: 1;
    background: var(--color-background);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.product-thumbnail.active,
.product-thumbnail:hover {
    border-color: var(--color-primary);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-category {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.product-price-box {
    background: var(--color-background);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.product-price-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
    margin-bottom: 0.25rem;
}

.product-prices-table {
    margin-top: 1rem;
    font-size: 0.875rem;
}

.product-prices-table dt {
    color: var(--color-text-muted);
}

.product-prices-table dd {
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #c6f6d5;
    color: #276749;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.product-stock.out {
    background: #fed7d7;
    color: #c53030;
}

.product-description {
    margin-bottom: 1.5rem;
}

.product-description h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.product-description p {
    color: var(--color-text-muted);
    margin: 0;
}

.product-variations {
    margin-bottom: 1.5rem;
}

.product-variations h3 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
}

.variations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variation-item {
    padding: 0.5rem 1rem;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.variation-item:hover,
.variation-item.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.whatsapp-btn:hover {
    background: #128c7e;
}

.whatsapp-btn svg {
    width: 24px;
    height: 24px;
}

/* Related Products */
.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--color-primary);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--color-text-muted);
}

/* Footer */
.site-footer {
    background: var(--color-primary);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

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

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--color-card);
    border-radius: var(--radius);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.pagination a:hover {
    background: var(--color-primary);
    color: white;
}

.pagination .current {
    background: var(--color-primary);
    color: white;
}

/* Category Sidebar */
.category-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .category-page {
        grid-template-columns: 250px 1fr;
    }
}

.category-sidebar {
    background: var(--color-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    height: fit-content;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

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

.subcategories-list li {
    margin-bottom: 0.5rem;
}

.subcategories-list a {
    display: block;
    padding: 0.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: color 0.2s;
}

.subcategories-list a:hover,
.subcategories-list a.active {
    color: var(--color-primary);
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--color-text-muted);
}

.no-results h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* Product Specs */
.product-specs {
    background: var(--color-background);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
}

.product-specs h3 {
    font-size: 1rem;
    margin: 0 0 1rem;
}

.product-specs dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0;
}

.product-specs dt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.product-specs dd {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0;
}

/* Stock Low */
.product-stock.low {
    background: #feebc8;
    color: #c05621;
}

/* Utilities */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Mobile adjustments */
@media (max-width: 767px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 1rem;
    }

    .header-contact {
        display: none;
    }

    .categories-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .categories-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 0.5rem;
        overflow-x: auto;
    }

    .category-item {
        min-width: 75px;
        width: 75px;
        height: 75px;
    }

    .product-specs dl {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   FILTRO POR MARCA
   ========================================== */
.filters-bar {
    background: var(--color-card);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-marca {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-marca label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

.filter-marca select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: white;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.filter-marca select:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ==========================================
   CARRINHO - BOTAO HEADER
   ========================================== */
.header-cart {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.header-cart:hover {
    background: var(--color-background);
}

.header-cart svg {
    color: var(--color-primary);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-warning);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;
}

/* ==========================================
   CARRINHO - MODAL
   ========================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--color-card);
    z-index: 999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.cart-modal.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0.25rem;
    line-height: 1;
}

.cart-close:hover {
    color: var(--color-text);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 2rem 0;
}

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

.cart-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.cart-item-name {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
    flex: 1;
}

.cart-item-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--color-border);
    background: var(--color-background);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0.25rem;
    margin-left: auto;
}

.remove-btn:hover {
    color: #e53e3e;
}

.cart-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--color-border);
    font-size: 1.125rem;
    display: flex;
    justify-content: space-between;
}

.cart-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #25d366;
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-whatsapp:hover {
    background: #128c7e;
}

.btn-limpar {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-limpar:hover {
    background: var(--color-background);
    color: var(--color-text);
}

/* ==========================================
   BOTAO ADICIONAR AO CARRINHO
   ========================================== */
.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem;
    margin-top: 0.75rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

/* Mobile cart */
@media (max-width: 480px) {
    .cart-modal {
        max-width: 100%;
    }

    .header-cart {
        order: 2;
    }
}
