/* CARRINHO.CSS - Estilos da Página de Carrinho QUEISE */

/* Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, rgba(176, 196, 222, 0.05) 0%, rgba(95, 158, 160, 0.03) 100%);
    padding: 2rem 5% 1.5rem;
    margin-top: 80px;
    border-bottom: 1px solid rgba(70, 130, 180, 0.08);
}

.breadcrumb-content {
    max-width: 1400px;
    margin: 0 auto;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.breadcrumb-path a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-path a:hover {
    color: var(--secondary);
}

.breadcrumb-separator {
    color: var(--text-light);
    font-weight: 300;
}

.breadcrumb-current {
    color: var(--text-dark);
    font-weight: 500;
}

/* Cart Section */
.cart-section {
    padding: 4rem 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 60vh;
}

.cart-content {
    width: 100%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(70, 130, 180, 0.1);
}

.cart-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.cart-count {
    background: var(--gradient-soft);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(70, 130, 180, 0.15);
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(70, 130, 180, 0.08);
}

.empty-cart-content {
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart-icon {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.empty-cart h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-cart p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Cart Items */
.cart-items {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(70, 130, 180, 0.08);
    overflow: hidden;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2.5rem 1.5rem;
    border-bottom: 1px solid rgba(70, 130, 180, 0.08);
    background: var(--gradient-soft);
}

.cart-items-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.clear-cart-btn {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-cart-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.cart-items-list {
    padding: 0;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto auto;
    gap: 2rem;
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(70, 130, 180, 0.08);
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background: rgba(176, 196, 222, 0.03);
}

.cart-item:last-child {
    border-bottom: none;
}

/* Item Image */
.item-image {
    position: relative;
    width: 120px;
    height: 120px;
    background: var(--gradient-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(70, 130, 180, 0.1);
}

.item-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cart-item:hover .item-image img {
    transform: scale(1.05);
}

.item-customization-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
}

/* Item Details */
.item-details {
    flex: 1;
}

.item-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-variant {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.item-customization {
    background: rgba(176, 196, 222, 0.1);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(70, 130, 180, 0.15);
}

.customization-preview strong {
    color: var(--primary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.customization-details {
    font-size: 0.8rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.item-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.edit-item-btn,
.remove-item-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.edit-item-btn:hover {
    background: rgba(70, 130, 180, 0.1);
    color: var(--secondary);
}

.remove-item-btn:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Item Quantity */
.item-quantity {
    text-align: center;
}

.item-quantity label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid rgba(70, 130, 180, 0.15);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(70, 130, 180, 0.08);
}

.quantity-btn {
    background: var(--gradient-soft);
    border: none;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.quantity-btn:hover {
    background: var(--gradient-primary);
    color: white;
}

.quantity-input {
    border: none;
    width: 50px;
    height: 35px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    background: white;
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
}

/* Item Price */
.item-price {
    text-align: right;
    min-width: 120px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.price-breakdown {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

.base-price,
.customization-price {
    margin-bottom: 0.2rem;
}

.customization-price {
    color: var(--secondary);
    font-weight: 500;
}

/* Continue Shopping */
.continue-shopping {
    padding: 2rem 2.5rem;
    background: var(--gradient-soft);
    border-top: 1px solid rgba(70, 130, 180, 0.08);
}

/* Cart Summary */
.cart-summary {
    position: sticky;
    top: 120px;
}

.summary-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(70, 130, 180, 0.08);
}

.summary-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.summary-line:last-of-type {
    margin-bottom: 0;
}

.summary-divider {
    height: 1px;
    background: rgba(70, 130, 180, 0.15);
    margin: 1.5rem 0;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    padding: 1rem 0;
    border-top: 2px solid var(--gradient-primary);
    margin-top: 1rem;
}

/* Shipping Calculator */
.shipping-calculator {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(176, 196, 222, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(70, 130, 180, 0.1);
}

.shipping-calculator label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.zip-input-group {
    display: flex;
    gap: 0.5rem;
}

.zip-input-group input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(70, 130, 180, 0.15);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.zip-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.btn-calculate {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.shipping-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(70, 130, 180, 0.15);
}

.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(70, 130, 180, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.shipping-option:hover {
    background: var(--gradient-soft);
    border-color: var(--primary);
}

.shipping-option.selected {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.shipping-info {
    flex: 1;
}

.shipping-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.shipping-time {
    font-size: 0.8rem;
    opacity: 0.8;
}

.shipping-price {
    font-weight: 700;
    font-size: 1rem;
}

/* Coupon Section */
.coupon-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(176, 196, 222, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(70, 130, 180, 0.1);
}

.coupon-section label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.coupon-input-group input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid rgba(70, 130, 180, 0.15);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.coupon-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(70, 130, 180, 0.1);
}

.coupon-message {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

.coupon-message.success {
    color: #28a745;
}

.coupon-message.error {
    color: #dc3545;
}

/* Checkout Button */
.checkout-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-soft);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.checkout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.checkout-btn:hover::before {
    left: 100%;
}

.checkout-btn:disabled {
    background: rgba(70, 130, 180, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Security Badges */
.security-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(70, 130, 180, 0.15);
}

.security-item {
    text-align: center;
    padding: 1rem 0.5rem;
    background: rgba(176, 196, 222, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(70, 130, 180, 0.08);
    transition: all 0.3s ease;
}

.security-item:hover {
    background: rgba(176, 196, 222, 0.1);
    transform: translateY(-2px);
}

.security-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.security-item span:last-child {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Recommended Products */
.recommended-products {
    background: linear-gradient(135deg, rgba(176, 196, 222, 0.03) 0%, rgba(95, 158, 160, 0.02) 100%);
    padding: 6rem 5%;
    margin-top: 4rem;
}

.recommended-content {
    max-width: 1400px;
    margin: 0 auto;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.recommended-product {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(70, 130, 180, 0.08);
}

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

.recommended-image {
    height: 200px;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.recommended-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.recommended-product:hover .recommended-image img {
    transform: scale(1.1);
}

.recommended-info {
    padding: 1.5rem;
    text-align: center;
}

.recommended-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.recommended-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.btn-small {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* 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;
    z-index: 10;
    border-radius: inherit;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(70, 130, 180, 0.2);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.cart-item {
    animation: slideInUp 0.5s ease;
}

.recommended-product {
    animation: fadeIn 0.6s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .cart-summary {
        position: static;
        order: -1;
    }
    
    .cart-item {
        grid-template-columns: 100px 1fr auto;
        gap: 1.5rem;
    }
    
    .item-quantity {
        grid-column: 2 / 4;
        margin-top: 1rem;
        text-align: left;
    }
    
    .item-price {
        grid-column: 2 / 4;
        text-align: left;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 2rem 4%;
    }
    
    .cart-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cart-header h1 {
        font-size: 2rem;
    }
    
    .cart-items-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .item-details {
        grid-column: 1 / 3;
        order: 1;
    }
    
    .item-quantity,
    .item-price {
        grid-column: 1 / 3;
        margin-top: 1rem;
        text-align: left;
    }
    
    .item-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .summary-card {
        padding: 2rem;
    }
    
    .security-badges {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .zip-input-group,
    .coupon-input-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cart-section {
        padding: 1.5rem 4%;
    }
    
    .cart-header h1 {
        font-size: 1.8rem;
    }
    
    .cart-items,
    .summary-card {
        border-radius: 16px;
    }
    
    .cart-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .item-image {
        width: 70px;
        height: 70px;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .quantity-controls {
        width: fit-content;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
    
    .checkout-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .recommended-products,
    .item-actions,
    .continue-shopping {
        display: none !important;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }
    
    .cart-section {
        padding: 1rem;
    }
    
    .summary-card {
        box-shadow: none;
        border: 2px solid var(--primary);
    }
}