/* ===== CARRINHO.CSS - ESTILOS MODERNOS E PROFISSIONAIS ===== */

/* ===== VARIÁVEIS CSS GLOBAIS ===== */
:root {
    /* Cores Primárias */
    --primary-red: #ff4d4d;
    --primary-red-dark: #e63946;
    --primary-red-light: #ff6b6b;
    --primary-red-hover: #ff3333;
    
    /* Cores Secundárias */
    --secondary-dark: #2c3e50;
    --secondary-light: #34495e;
    --secondary-hover: #3a526b;
    
    /* Cores de Fundo - Tons Claros e Modernos */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-section: #f1f5f9;
    --bg-hover: #e2e8f0;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    /* Cores de Texto - Melhor Contraste */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Cores de Status */
    --success: #22c55e;
    --success-dark: #16a34a;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Cores Especiais */
    --whatsapp: #25d366;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    
    /* Sombras Suaves */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 4px 14px rgba(255, 77, 77, 0.12);
    --shadow-focus: 0 0 0 3px rgba(255, 77, 77, 0.12);
    
    /* Gradientes Modernos */
    --gradient-primary: linear-gradient(135deg, #ff4d4d 0%, #ff6b6b 100%);
    --gradient-secondary: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    
    /* Espacamentos */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
    
    /* Raios de Borda Modernos */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transições */
    --transition-fast: 0.15s ease-out;
    --transition-medium: 0.25s ease-out;
    --transition-slow: 0.4s ease-out;
    
    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
}


/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== CONTAINER PRINCIPAL ===== */
.cart-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-main);
}

/* ===== HEADER DO CARRINHO ===== */
.cart-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
    padding: var(--space-xl) 0;
}

.cart-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.cart-title i {
    color: var(--primary-red);
}

.cart-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.cart-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: var(--space-lg);
    font-weight: var(--font-weight-medium);
}

.cart-counter {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    margin-left: var(--space-sm);
    box-shadow: var(--shadow-sm);
}

/* ===== LAYOUT PRINCIPAL ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== SEÇÃO DE ITENS ===== */
.cart-items-section {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xxl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    position: relative;
}

.cart-items-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xxl);
    padding-bottom: var(--space-lg);
    border-bottom: 2px solid var(--border);
}

.cart-items-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-items-title i {
    color: var(--primary-red);
}

.items-count-badge {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-sm);
}

/* ===== ITEM DO CARRINHO ===== */
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-medium);
    background: white;
    position: relative;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red-light);
}

.cart-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.cart-item:hover::before {
    opacity: 1;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    transition: transform var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.cart-item:hover .cart-item-image {
    transform: scale(1.05);
}

.cart-item-details {
    min-width: 0;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.cart-item-variants {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.variant-badge {
    background: var(--bg-section);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: var(--font-weight-medium);
}

.variant-badge i {
    color: var(--primary-red);
    font-size: 0.7rem;
}

.cart-item-pricing {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.item-price {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

.item-price small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-normal);
}

.item-price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.item-subtotal {
    font-size: 1.15rem;
    font-weight: var(--font-weight-bold);
    color: var(--success);
}

/* ===== CONTROLES DE ITEM ===== */
.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    min-width: 160px;
}

.quantity-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    width: 100%;
}

.quantity-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
}

.quantity-btn:hover:not(:disabled) {
    background: var(--primary-red-dark);
    transform: scale(1.05);
}

.quantity-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.quantity-input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: none;
    background: white;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
    background: var(--bg-section);
}

.update-btn {
    background: var(--info);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
    justify-content: center;
}

.update-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.remove-btn {
    background: var(--error);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    width: 100%;
    justify-content: center;
    text-decoration: none;
}

.remove-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* ===== AÇÕES DO CARRINHO ===== */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 2px solid var(--border);
    gap: var(--space-md);
}

/* ===== RESUMO DO PEDIDO ===== */
.cart-summary {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: var(--space-lg);
    border: 1px solid var(--border);
    height: fit-content;
}

.cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.summary-title {
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.summary-title i {
    color: var(--primary-red);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

.summary-line:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
}

.summary-label i {
    color: var(--primary-red);
    font-size: 0.8rem;
}

.summary-value {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.summary-highlight {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin: var(--space-lg) 0;
    box-shadow: var(--shadow-primary);
}

.summary-highlight .summary-label {
    color: rgba(255, 255, 255, 0.9);
}

.summary-highlight .summary-value {
    color: white;
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
}
/* ===== CARRINHO VAZIO ===== */
.empty-cart {
    text-align: center;
    padding: var(--space-xxl) var(--space-xl);
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--space-xxl) auto;
    border: 1px solid var(--border);
    max-width: 600px;
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    opacity: 0.7;
}

.empty-cart h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-semibold);
    font-size: 1.4rem;
}

.empty-cart p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
    font-size: 1rem;
    line-height: 1.6;
}

.btn-continue-shopping {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-medium);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-section {
    background: white;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
    color: var(--primary-red-dark);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ===== SEÇÕES UTILITÁRIAS ===== */
.utility-section {
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border: 1px solid var(--border);
}

.utility-title {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.utility-title i {
    color: var(--primary-red);
    font-size: 0.8rem;
}

.utility-input-group {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.utility-input {
    flex: 1;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: border-color var(--transition-fast);
    background: white;
}

.utility-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-focus);
}

.utility-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.utility-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.utility-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.utility-note a {
    color: var(--primary-red);
    text-decoration: none;
}

.utility-note a:hover {
    text-decoration: underline;
}

.utility-result {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* ===== PROGRESSO PARA FRETE GRÁTIS ===== */
.shipping-progress {
    margin: var(--space-md) 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin: var(--space-sm) 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    font-weight: var(--font-weight-medium);
}

.progress-success {
    color: var(--success);
    font-weight: var(--font-weight-semibold);
}

/* ===== BADGES DE SEGURANÇA ===== */
.security-badges {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
    flex: 1;
}

.security-badge i {
    font-size: 1.3rem;
    color: var(--success);
    margin-bottom: var(--space-xs);
}

.security-badge span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== BOTÕES DE AÇÃO ===== */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-red);
    color: var(--text-primary);
}

/* ===== PRODUTO RECOMENDADO ===== */
.recommended-section {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-xl);
    border: 1px solid var(--border);
    position: relative;
}

.recommended-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.recommended-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.recommended-title {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.recommended-title i {
    color: var(--primary-red);
}

.recommended-badges {
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}

.recommended-badge {
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.recommended-badge.discount {
    background: var(--gradient-primary);
    color: white;
}

.recommended-badge.stock {
    border: 1px solid var(--border);
    font-weight: var(--font-weight-medium);
    text-transform: none;
    letter-spacing: normal;
}

.recommended-badge.stock i.fa-check-circle {
    color: var(--success);
}

.recommended-badge.stock i.fa-exclamation-circle {
    color: var(--warning);
}

.recommended-badge.stock i.fa-times-circle {
    color: var(--error);
}

.recommended-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.recommended-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.recommended-details {
    min-width: 0;
}

.recommended-name {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.recommended-pricing {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-red);
}

.discount-badge {
    background: var(--success);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
}

.recommended-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.btn-add-to-cart {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    box-shadow: var(--shadow-sm);
}

.btn-add-to-cart:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-view-details {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-view-details:hover {
    background: var(--bg-hover);
    border-color: var(--primary-red);
    color: var(--text-primary);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: white;
    border-left: 4px solid var(--primary-red);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border: 1px solid var(--border);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

.toast i {
    font-size: 1rem;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--error); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

/* ===== LOADING STATES ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    z-index: 1000;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.cart-item.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SHIPPING RESULTS ===== */
.shipping-results h6 {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.shipping-option:hover {
    border-color: var(--primary-red-light);
    transform: translateY(-1px);
}

.shipping-option.free {
    background: linear-gradient(135deg, var(--success), var(--success-dark));
    color: white;
    border-color: var(--success);
}

.shipping-option strong {
    color: var(--text-primary);
    font-size: 0.85rem;
}

.shipping-option.free strong {
    color: white;
}

.shipping-option span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.shipping-option.free span {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== CUPOM RESULTS ===== */
.coupon-success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--success);
    font-weight: var(--font-weight-medium);
    font-size: 0.85rem;
}

.coupon-error {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--error);
    font-weight: var(--font-weight-medium);
    font-size: 0.85rem;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        max-width: 800px;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .cart-page {
        padding: var(--space-md);
    }
    
    .cart-title {
        font-size: 2rem;
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
        padding: var(--space-lg);
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
        justify-self: center;
    }
    
    .cart-item-controls {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
        gap: var(--space-sm);
    }
    
    .quantity-section {
        flex-direction: column;
        align-items: center;
    }
    
    .recommended-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }
    
    .recommended-image {
        justify-self: center;
    }
    
    .recommended-actions {
        justify-content: center;
    }
    
    .security-badges {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .utility-input-group {
        flex-direction: column;
    }
    
    .cart-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cart-title {
        font-size: 1.75rem;
    }
    
    .cart-items-section,
    .cart-summary {
        padding: var(--space-lg);
    }
    
    .cart-item {
        padding: var(--space-md);
    }
    
    .cart-item-name {
        font-size: 1rem;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
    }
    
    .quantity-input {
        width: 50px;
        font-size: 0.9rem;
    }
    
    .recommended-image {
        width: 80px;
        height: 80px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}

/* ===== ESTADOS DE FOCO E ACESSIBILIDADE ===== */
.quantity-btn:focus,
.remove-btn:focus,
.update-btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.utility-btn:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

/* ===== CLASSES UTILITÁRIAS ===== */
.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.fade-in { animation: fadeIn 0.3s ease-out; }
.slide-in { animation: slideIn 0.3s ease-out; }

/* ===== MELHORIAS ESPECÍFICAS PARA ALINHAMENTO ===== */

/* Container principal com melhor estrutura */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Melhor alinhamento dos cards */
.cart-item-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all var(--transition-medium);
}

.cart-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red-light);
}

/* Grid melhorado para produtos */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* Melhor estrutura para itens do carrinho */
.cart-items {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* Alinhamento perfeito dos controles */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cart-item-actions form {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.cart-item-actions .form-control {
    width: 60px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    font-size: 0.9rem;
}

.cart-item-actions .btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    font-weight: var(--font-weight-medium);
}

.cart-item-actions .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.cart-item-actions .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.cart-item-actions .btn-danger {
    background: var(--error);
    border: none;
    color: white;
}

.cart-item-actions .btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Melhor estrutura do resumo */
.cart-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    height: fit-content;
    position: sticky;
    top: var(--space-lg);
}

.cart-summary h4 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: var(--space-md);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
}

.summary-item span:first-child {
    color: var(--text-secondary);
}

.summary-item span:last-child {
    color: var(--text-primary);
    font-weight: var(--font-weight-semibold);
}

/* Seções de utilidades melhoradas */
.frete-section,
.coupon-section {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.frete-section label,
.coupon-section label {
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: block;
}

.frete-section .d-flex,
.coupon-section .d-flex {
    gap: var(--space-sm);
}

.frete-section .form-control,
.coupon-section .form-control {
    flex: 1;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.frete-section .btn-outline-secondary,
.coupon-section .btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

/* Melhor estrutura para botões */
.d-flex.flex-column {
    gap: var(--space-md);
}

.d-flex.flex-column .btn {
    width: 100%;
    padding: var(--space-md);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-sm);
    transition: all var(--transition-medium);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: var(--border);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-red);
    color: var(--text-primary);
}

.btn-success {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

/* Produto recomendado melhorado */
.recomendado-container {
    margin-top: var(--space-xl);
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.recomendado-container h4 {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.recomendado-container .d-flex {
    align-items: center;
    gap: var(--space-lg);
}

.recomendado-container img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.recomendado-container .ms-3 {
    flex: 1;
}

.recomendado-container h5 {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.recomendado-container p {
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.recomendado-container del {
    color: var(--text-muted);
}

.recomendado-container .text-success {
    color: var(--primary-red) !important;
    font-weight: var(--font-weight-bold);
}

.recomendado-container .btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-medium);
}

.recomendado-container .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

/* ===== RESPONSIVIDADE APRIMORADA ===== */
@media (max-width: 1024px) {
    .cart-container,
    .cart-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
}

@media (max-width: 768px) {
    .cart-item-card {
        padding: var(--space-md);
    }
    
    .cart-item-card .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: var(--space-md);
    }
    
    .cart-item-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        width: 100%;
    }
    
    .cart-item-actions form {
        justify-content: center;
    }
    
    .recomendado-container .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .frete-section .d-flex,
    .coupon-section .d-flex {
        flex-direction: column;
    }
}

/* ===== CORREÇÕES FINAIS DE ESTILO ===== */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: var(--space-xl);
}

.alert {
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: var(--space-lg);
}

.alert-warning {
    background: #fef3cd;
    border-color: #faebcc;
    color: #856404;
}

.gap-3 {
    gap: var(--space-md);
}

.flex-grow-1 {
    flex: 1;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.rounded {
    border-radius: var(--radius-sm);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

.me-2 {
    margin-right: var(--space-sm);
}

.ms-3 {
    margin-left: var(--space-md);
}

.mt-3 {
    margin-top: var(--space-md);
}

.mt-4 {
    margin-top: var(--space-lg);
} var(--text-primary);
}

.summary-highlight {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin: var(--space-md) 0;
}

.summary-highlight .summary-label {
    color: rgba(255, 255, 255, 0.9);
}

.summary-highlight .summary-value {
    color: white;
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
}

/* ===== SEÇÕES UTILITÁRIAS ===== */
.utility-section {
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    margin: var(--space-lg) 0;
    border: 1px solid var(--border);
}

.utility-title {
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.utility-title i {
    color: var(--primary-red);
}

.utility-input-group {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.utility-input {
    flex: 1;
    padding: var(--space-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    transition: border-color var(--transition-fast);
}

.utility-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-focus);
}

.utility-btn {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.utility-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.utility-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.utility-note a {
    color: var(--primary-red);
    text-decoration: none;
}

.utility-note a:hover {
    text-decoration: underline;
}

/* ===== PROGRESSO PARA FRETE GRÁTIS ===== */
.shipping-progress {
    margin: var(--space-lg) 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: var(--space-sm) 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    font-weight: var(--font-weight-medium);
}

.progress-success {
    color: var(--success);
    font-weight: var(--font-weight-semibold);
}

/* ===== BADGES DE SEGURANÇA ===== */
.security-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
    padding: var(--space-md);
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.security-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
    flex: 1;
}

.security-badge i {
    font-size: 1.75rem;
    color: var(--success);
    margin-bottom: var(--space-xs);
}

.security-badge span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== BOTÕES DE AÇÃO ===== */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-semibold);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary-red);
    color: var(--text-primary);
}

/* ===== PRODUTO RECOMENDADO ===== */
.recommended-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-xl);
    border: 1px solid var(--border);
    position: relative;
}

.recommended-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.recommended-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.recommended-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.recommended-title i {
    color: var(--primary-red);
}

.recommended-badge {
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommended-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.recommended-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.recommended-details {
    flex: 1;
}

.recommended-name {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.recommended-pricing {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.price-original {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 1.375rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-red);
}

.discount-badge {
    background: var(--success);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
}

.recommended-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-add-to-cart {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-add-to-cart:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

.btn-view-details {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-view-details:hover {
    background: var(--bg-hover);
    border-color: var(--primary-red);
    color: var(--text-primary);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    background: var(--bg-card);
    border-left: 4px solid var(--primary-red);
    color: var(--text-primary);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-width: 350px;
    animation: slideInRight 0.3s ease-out;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.info {
    border-left-color: var(--info);
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i { color: var(--success); }
.toast.error i { color: var(--error); }
.toast.warning i { color: var(--warning); }
.toast.info i { color: var(--info); }

/* ===== LOADING STATES ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.cart-item.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

/* ===== MODAL PERSONALIZADO ===== */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform var(--transition-medium);
}

.cart-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -10px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* ===== SKELETON LOADING ===== */
.cart-item-skeleton {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    background: var(--bg-section);
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.skeleton-image {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 20px;
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.skeleton-text.title {
    width: 70%;
    height: 24px;
}

.skeleton-text.subtitle {
    width: 50%;
    height: 16px;
}

.skeleton-text.price {
    width: 30%;
    height: 20px;
}

@keyframes loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .cart-layout {
        grid-template-columns: 1fr 380px;
        gap: var(--space-lg);
    }
}

@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .cart-page {
        padding: var(--space-md);
    }
}

@media (max-width: 768px) {
    .cart-title {
        font-size: 2.25rem;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .cart-item-image {
        width: 100px;
        height: 100px;
    }
    
    .cart-item-controls {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        min-width: auto;
    }
    
    .quantity-section {
        flex-direction: row;
        align-items: center;
    }
    
    .recommended-content {
        flex-direction: column;
        text-align: center;
    }
    
    .recommended-actions {
        justify-content: center;
        width: 100%;
    }
    
    .recommended-actions .btn-add-to-cart,
    .recommended-actions .btn-view-details {
        flex: 1;
        justify-content: center;
    }
    
    .security-badges {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .utility-input-group {
        flex-direction: column;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .toast {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cart-title {
        font-size: 1.875rem;
    }
    
    .cart-items-section,
    .cart-summary {
        padding: var(--space-md);
    }
    
    .cart-item {
        padding: var(--space-md);
    }
    
    .cart-item-name {
        font-size: 1.125rem;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .quantity-btn {
        width: 32px;
        height: 32px;
    }
    
    .quantity-input {
        width: 60px;
        font-size: 1rem;
    }
    
    .recommended-image {
        width: 100px;
        height: 100px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: var(--space-sm) var(--space-md);
        font-size: 1rem;
    }
}

/* ===== ESTADOS DE FOCO E ACESSIBILIDADE ===== */
.quantity-btn:focus,
.remove-btn:focus,
.update-btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.utility-btn:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

.utility-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: var(--shadow-focus);
}

/* ===== CLASSES UTILITÁRIAS ===== */
.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.fade-in { animation: fadeIn 0.3s ease-out; }
.slide-in { animation: slideIn 0.3s ease-out; }

