/* Main Content */
.cart-container {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.cart-main {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    font-size: 2.5rem;
    color: #3498db;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    font-size: 5rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.empty-cart-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-cart-text {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(0, 204, 255, 0.4), rgba(0, 255, 179, 0.4));
}

.cart-item {
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    padding: 1.5rem;
    background: #fafbfc;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cart-item:hover {
    border-color: #70f1fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.item-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}


.item-info {
    width: calc(100% - 124px);
}

.item-image {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #f0f8ff, #e6f3ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #3498db;
}

.item-details,
.montage-details,
.service-details {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.item-series {
    color: #666;
    font-size: 1.2rem;
    font-weight: 600;
}

.assembly-info {
    background: #f0fff4;
    border: 1px solid #d4edda;
    border-radius: 6px;
    padding: 10px;
    flex: 1;
    margin-right: 10px;
}

.assembly-title {
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.assembly-details {
    color: #666;
    font-size: 0.85rem;
}

.item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.unit-price {
    font-size: 1.1rem;
    color: #666;
}

.item-left {
    display: flex;
    justify-content: space-between;
    flex: 1;
    align-items: center;
    margin-right: 20px;
}

.assembly-left {
    display: flex;
    justify-content: space-between;
    flex: 1;
    align-items: center;
}

.item-left p {
    color: #666;
    font-size: 14px;
}

.assembly-left p {
    color: #27ae60;
    font-size: 14px;
}

.assembly-right,
.item-right {
    display: flex;
    align-items: center;
}

.add-assembly {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #9bffd0;
    border: 1px solid #d4edda;
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    border-radius: 6px;
    padding: 10px;
    flex: 1;
    margin-right: 10px;
    transition: all 0.3s;
    cursor: pointer;
    vertical-align: center;
}

.add-assembly:hover {
    color: #119247;
    background: #63ffb6;
    border: 1px solid #36dd8f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.assembly-price {
    font-size: 0.9rem;
    color: #27ae60;
}

.unit-price,
.assembly-price {
    width: 180px;
    text-align: center;
}

.total-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    float: right;
    width: 180px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.25rem;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: #3498db;
    color: white;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: bold;
    color: #2c3e50;
}

.remove-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.remove-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.summary-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.summary-row.subtotal {
    border-top: 1px solid #eee;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.summary-row.total {
    border-top: 2px solid #ddd;
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
}

.summary-label {
    color: #666;
}

.summary-value {
    font-weight: bold;
    color: #2c3e50;
}

.summary-value.highlight {
    color: #27ae60;
}

/* Discount Code */
.discount-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.discount-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 1rem;
}

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

.discount-field {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.9rem;
}

.discount-field:focus {
    outline: none;
    border-color: #3498db;
}

.discount-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.discount-btn:hover {
    background: #2980b9;
}

.discount-applied {
    background: #d4edda;
    color: #155724;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Shipping Info */
.shipping-info {
    background: #e8f4f8;
    border: 1px solid #b8dce8;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
    text-align: center;
}

.shipping-icon {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.shipping-text {
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.shipping-subtext {
    color: #666;
    font-size: 0.9rem;
}

/* Action Buttons */
.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #27ae60;
    color: white;
}

.btn-primary:hover {
    background: #229954;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-outline {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* Recommendations */
.recommendations {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.recommendations-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.recommendation-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommendation-card:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.rec-image {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.rec-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.rec-price {
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Success/Error Messages */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1001;
    font-weight: bold;
}

.message.show {
    transform: translateX(0);
}

.message.success {
    background: #27ae60;
    color: white;
}

.message.error {
    background: #e74c3c;
    color: white;
}

/* Responsive */
@media (max-width: 1300px) {
    .cart-container {
        flex-direction: column;
    }

    .btn-outline {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .cart-main,
    .cart-item {
        padding: 1rem;
    }

    .header-content {
        flex-direction: column;
    }

    .assembly-info {
        width: 140px;
    }

    .item-series {
        font-size: 1rem;
        max-width: 300px;
    }

    .item-left,
    .assembly-left {
        flex-direction: column;
        align-items: start;
        margin: 0;
    }

    .item-info {
        width: 100%;
    }

    .item-details,
    .montage-details,
    .service-details {
        flex-direction: column;
        gap: 16px;
        align-items: start;
        width: 100%;
    }

    .montage-details button,
    .service-details button {
        width: 100%;
    } 

    .item-content {
        justify-content: space-between;
        gap: min(calc(30vw - 150px), 30px);
    }

    .item-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #eee;
    }

    .cart-steps {
        display: none;
    }

    .discount-input {
        flex-direction: column;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .item-series {
        font-size: 0.9rem;
        max-width: 200px;
    }

    .item-content {
        gap: calc(20vw - 60px);
    }

    .item-right,
    .assembly-right{
        flex-direction: column;
        align-items: start;
    }

    .unit-price, .assembly-price {
        text-align: start;
    }
}

@media (max-width: 420px) {
    .item-content {
        flex-direction: column;
        align-items: start;
    }
}