/* ==================== CART PAGE ==================== */

/* Breadcrumb */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 13px;
    color: #888;
}
.breadcrumb-nav a {
    color: #555;
    transition: color .2s;
}
.breadcrumb-nav a:hover {
    color: #7c3aed;
}
.breadcrumb-nav strong {
    color: #333;
}

/* Cart Empty */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.cart-empty i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}
.cart-empty h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 8px;
}
.cart-empty p {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
}
.btn-back-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #7c3aed;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}
.btn-back-shop:hover {
    background: #6d28d9;
}

/* Cart Header Row */
.cart-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.cart-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}
.cart-clear-link {
    font-size: 13px;
    color: #7c3aed;
    font-weight: 500;
    transition: color .2s;
}
.cart-clear-link:hover {
    color: #e74c3c;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: flex-start;
}

/* ==================== CART ITEM ==================== */
.cart-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #f0f0f0;
}

/* Top actions (Duplicar / Remover) */
.ci-top-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-bottom: 12px;
}
.ci-action {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
}
.ci-action:hover {
    color: #333;
}
.ci-remove:hover {
    color: #e74c3c;
}

/* Item Body */
.ci-body {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Product Image */
.ci-image {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ci-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ci-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 40px;
    color: #ccc;
}

/* Product Info */
.ci-info {
    flex: 1;
    min-width: 0;
}
.ci-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}
.ci-specs {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ci-spec {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}
.ci-spec.highlight {
    color: #7c3aed;
    font-weight: 600;
}
.ci-spec strong {
    font-weight: 600;
    color: #333;
}
.ci-spec.extra-item {
    color: #e67e22;
    font-style: italic;
}

/* Pricing + Qty Column */
.ci-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 160px;
}
.ci-unit-price {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}
.ci-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}
.ci-qty-control button {
    width: 34px;
    height: 34px;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.ci-qty-control button:hover {
    background: #eee;
}
.ci-qty-control input {
    width: 40px;
    height: 34px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}
.ci-qty-control input::-webkit-outer-spin-button,
.ci-qty-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ci-total-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* ==================== SERVICES ==================== */
.ci-services {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.ci-service-card {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    background: #fafafa;
}
.ci-service-card:hover {
    border-color: #bbb;
}
.ci-service-card.active {
    border-color: #7c3aed;
    background: #faf5ff;
}
.ci-service-card input[type="checkbox"] {
    margin-top: 4px;
    accent-color: #7c3aed;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.svc-content {
    flex: 1;
    position: relative;
}
.svc-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.svc-content strong {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}
.svc-content p {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 6px;
}
.svc-price {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}
.svc-price i {
    color: #7c3aed;
    font-size: 12px;
    margin-left: 4px;
}

/* ==================== SUMMARY BOX ==================== */
.summary-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 80px;
}
.summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #666;
}
.summary-total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    padding: 10px 0;
}
.summary-divider {
    height: 1px;
    background: #eee;
    margin: 6px 0;
}

/* Summary Buttons */
.summary-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.btn-voltar {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all .2s;
}
.btn-voltar:hover {
    border-color: #999;
    background: #f8f8f8;
}
.btn-avancar {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    background: #7c3aed;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s;
}
.btn-avancar:hover {
    background: #6d28d9;
}

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

@media (max-width: 768px) {
    .ci-body {
        flex-direction: column;
    }
    .ci-image {
        width: 100%;
        height: 180px;
    }
    .ci-pricing {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        padding-top: 12px;
        border-top: 1px solid #f0f0f0;
    }
    .ci-services {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cart-item {
        padding: 14px;
    }
    .ci-pricing {
        flex-wrap: wrap;
        gap: 8px;
    }
}
