/* Swift Cart Styles - Layout Otimizado para Múltiplos Produtos */
#swift-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
#swift-cart-overlay.open {
    opacity: 1;
    visibility: visible;
}
#swift-cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    z-index: 9999;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#swift-cart-sidebar.open {
    right: 0;
}

/* Header do carrinho - fixo no topo */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}
.cart-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

/* Lista de produtos - ÁREA ROLÁVEL PRINCIPAL */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 150px;
}
.empty-cart {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}
.cart-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}
.item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
.item-details {
    flex: 1;
    min-width: 0;
}
.item-details h4 {
    margin: 0 0 6px 0;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    padding-right: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}
.item-controls button {
    width: 26px;
    height: 26px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-controls span {
    min-width: 20px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
}
.item-price {
    margin: 0;
    color: #f26522;
    font-weight: 600;
    font-size: 14px;
}
.remove-btn {
    position: absolute;
    top: 10px;
    right: 0;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

/* Seção de frete - COMPACTA */
.cart-shipping {
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0;
}
.shipping-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.delivery-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #f26522 !important;
    background: #fff !important;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    color: #f26522 !important;
}
.tab-btn.active {
    border-color: #f26522 !important;
    color: #fff !important;
    background: #f26522 !important;
}
.cep-input {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.cep-input input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
}
.cep-input button {
    padding: 8px 16px;
    background: #f26522;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
}
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 120px;
    overflow-y: auto;
}
.shipping-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.shipping-option:hover {
    border-color: #f26522;
    background: #fff5f0;
}
.shipping-option.selected {
    border-color: #f26522;
    background: #f26522;
}
.shipping-option.selected .option-name,
.shipping-option.selected .option-prazo,
.shipping-option.selected .option-price {
    color: #fff;
}
.shipping-option.selected input[type="radio"] {
    accent-color: #fff;
}
.shipping-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #f26522;
}
.option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.option-name {
    font-weight: 500;
    font-size: 13px;
    color: #333;
}
.option-prazo {
    font-size: 11px;
    color: #666;
}
.option-price {
    font-weight: 600;
    color: #f26522;
    font-size: 13px;
}
.hint {
    color: #999;
    font-size: 12px;
    text-align: center;
    padding: 8px;
}
.section-label {
    font-size: 12px;
    color: #666;
    margin: 8px 0 6px 0;
}
.date-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.date-btn,
.shipping-section .date-btn,
.cart-shipping .date-btn {
    padding: 6px 10px;
    border: 1px solid #ddd !important;
    background: #fff !important;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
    color: #333 !important;
}
.date-btn:hover {
    border-color: #f26522;
}
.date-btn.selected,
.shipping-section .date-btn.selected,
.cart-shipping .date-btn.selected {
    border-color: #222 !important;
    background: #222 !important;
    color: #fff !important;
    font-weight: 600;
}
#time-select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    margin-top: 6px;
}

/* Footer do carrinho - COMPACTO */
.cart-footer {
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}
.totals {
    margin-bottom: 12px;
}
.total-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
    color: #666;
}
.total-row.total {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 6px;
}
.checkout-btn {
    width: 100%;
    padding: 12px;
    background: #f26522;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 6px;
}
.checkout-btn:hover {
    background: #e05a1a;
}
.clear-btn {
    width: 100%;
    padding: 8px;
    background: transparent;
    color: #999;
    border: none;
    font-size: 12px;
    cursor: pointer;
}
.clear-btn:hover {
    color: #666;
}

/* Scrollbar personalizada */
.cart-items::-webkit-scrollbar,
.shipping-options::-webkit-scrollbar {
    width: 5px;
}
.cart-items::-webkit-scrollbar-track,
.shipping-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.cart-items::-webkit-scrollbar-thumb,
.shipping-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.cart-items::-webkit-scrollbar-thumb:hover,
.shipping-options::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Mobile */
@media (max-width: 480px) {
    #swift-cart-sidebar {
        width: 100%;
        right: -100%;
    }
}
