/* ========================================
   CONFORTOCARE - CARRINHO.CSS
   Estilos da Página do Carrinho
   VERSÃO CORRIGIDA - SEM CORES AZUIS
======================================== */

/* ========================================
   VARIÁVEIS EXTRAS PARA O CARRINHO
======================================== */
:root {
    --cart-success: #10B981;
    --cart-warning: #f59e0b;
    --cart-danger: #ef4444;
}

/* ========================================
   BREADCRUMBS
======================================== */
.breadcrumbs {
    background: var(--bg-elevated);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.breadcrumbs ul {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumbs ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumbs ul li a {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.breadcrumbs ul li a:hover {
    color: var(--primary-orange);
}

.breadcrumbs ul li:last-child {
    color: var(--primary-orange);
    font-weight: 600;
}

.breadcrumbs ul li i.fa-chevron-right {
    font-size: 10px;
    color: var(--text-muted);
}

/* ========================================
   SEÇÃO DO CARRINHO
======================================== */
.cart-section {
    padding: 60px 0;
    min-height: 600px;
}

.cart-header-title {
    text-align: center;
    margin-bottom: 50px;
}

.cart-header-title h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cart-header-title h1 i {
    color: var(--primary-orange);
    font-size: 32px;
}

.cart-header-title p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ========================================
   GRID DO CARRINHO
======================================== */
.cart-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 30px;
    align-items: start;
}

/* ========================================
   CARRINHO VAZIO
======================================== */
.cart-empty {
    background: white;
    border-radius: 20px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.cart-empty .empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 140, 66, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-empty .empty-icon i {
    font-size: 50px;
    color: var(--primary-orange);
}

.cart-empty h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cart-empty p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-continue-shopping:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   LISTA DE PRODUTOS NO CARRINHO
======================================== */
.cart-products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-product-item {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.cart-product-item:hover {
    box-shadow: var(--shadow-lg);
}

/* Imagem do Produto */
.cart-product-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-elevated);
    flex-shrink: 0;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cart-product-item:hover .cart-product-image img {
    transform: scale(1.05);
}

/* Info do Produto */
.cart-product-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-product-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
}

.cart-product-name a {
    color: var(--text-primary);
    transition: var(--transition);
}

.cart-product-name a:hover {
    color: var(--primary-orange);
}

.cart-product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-orange);
}

.cart-product-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

.cart-product-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Controles do Produto */
.cart-product-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: 5px;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}

.cart-qty-btn:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
}

.cart-qty-input {
    width: 50px;
    height: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-product-subtotal {
    font-size: 16px;
    color: var(--text-secondary);
}

.cart-product-subtotal strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    margin-top: 5px;
}

.btn-remove-item {
    padding: 8px 16px;
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-remove-item:hover {
    background: #ef4444;
    color: white;
}

/* ========================================
   AÇÕES DO CARRINHO
======================================== */
.cart-actions-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.btn-back-shopping {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-back-shopping:hover {
    background: var(--primary-orange);
    color: white;
}

.btn-clear-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    color: #ef4444;
    border: 2px solid #ef4444;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.btn-clear-cart:hover {
    background: #ef4444;
    color: white;
}

/* ========================================
   CALCULADORA DE FRETE
======================================== */
.shipping-calculator {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
}

.shipping-calculator h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-calculator h3 i {
    color: var(--primary-orange);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary-orange);
    font-size: 14px;
}

.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-elevated);
    transition: var(--transition);
    font-family: inherit;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    background: white;
}

.btn-calculate-shipping {
    width: 100%;
    padding: 14px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    margin-top: 10px;
}

.btn-calculate-shipping:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Resultado do Frete */
.shipping-result {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
}

.shipping-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.shipping-value .label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.shipping-value .value {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-green);
}

.shipping-deadline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.shipping-deadline i {
    color: var(--accent-green);
}

.shipping-notes {
    margin-top: 12px;
    padding: 12px;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   RESUMO DO PEDIDO
======================================== */
.order-summary {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
}

.order-summary h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-summary h3 i {
    color: var(--primary-orange);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.summary-line.shipping {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-line.shipping i {
    color: var(--accent-green);
    margin-right: 5px;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 15px 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.summary-total span:last-child {
    font-size: 28px;
    color: var(--primary-orange);
}

.summary-installments {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.summary-installments i {
    color: var(--primary-orange);
}

.summary-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.summary-discount i {
    color: var(--accent-green);
}

.btn-checkout {
    width: 100%;
    padding: 16px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    margin-bottom: 20px;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.security-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

.badge-item i {
    font-size: 16px;
    color: var(--accent-green);
}

/* ========================================
   RESPONSIVE - TABLET
======================================== */
@media (max-width: 1024px) {
    .cart-grid {
        grid-template-columns: 1fr 380px;
        gap: 25px;
    }
    
    .cart-product-item {
        grid-template-columns: 100px 1fr auto;
        gap: 15px;
        padding: 20px;
    }
    
    .cart-product-image {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE
======================================== */
@media (max-width: 768px) {
    .cart-section {
        padding: 40px 0;
    }
    
    .cart-header-title h1 {
        font-size: 28px;
    }
    
    .cart-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-product-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .cart-product-image {
        width: 100%;
        height: 200px;
    }
    
    .cart-product-info {
        text-align: center;
    }
    
    .cart-product-meta {
        justify-content: center;
    }
    
    .cart-product-controls {
        align-items: center;
        width: 100%;
    }
    
    .cart-quantity-controls {
        width: 100%;
        justify-content: center;
    }
    
    .cart-actions-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-back-shopping,
    .btn-clear-cart {
        width: 100%;
        justify-content: center;
    }
    
    .order-summary {
        position: static;
    }
    
    .security-badges {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cart-header-title h1 {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .cart-product-name {
        font-size: 16px;
    }
    
    .cart-product-price {
        font-size: 18px;
    }
    
    .shipping-calculator,
    .order-summary {
        padding: 20px;
    }
}

/* ========================================
   ANIMAÇÕES
======================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-product-item {
    animation: slideIn 0.4s ease;
}

.cart-product-item:nth-child(2) {
    animation-delay: 0.1s;
}

.cart-product-item:nth-child(3) {
    animation-delay: 0.2s;
}

.cart-product-item:nth-child(4) {
    animation-delay: 0.3s;
}