:root {
    --primary-color: #2563eb;
    --secondary-color: #f3f4f6;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

.cart-container {
    padding: 2rem 0;
    /*background-color: #f8f9fa;*/
}

.cart-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
    text-align: center;
    position: relative;
}

.cart-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #0d6efd;
    margin: 0.5rem auto 2rem;
    border-radius: 2px;
}

.cart-items {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.cart-item {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

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

.cart-item:hover {
    background-color: #f8f9fa;
}

.item-image {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 0.5rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

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

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

.item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.item-name a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.item-name a:hover {
    color: #0d6efd;
}

.selected-attributes {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.attribute-tag {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid #e9ecef;
}

.attribute-label {
    font-weight: 600;
    margin-right: 0.25rem;
    color: #6c757d;
}

.attribute-value {
    color: #212529;
}

.price-adjustment {
    margin-left: 0.25rem;
    color: #dc3545;
    font-weight: 500;
}

.item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    overflow: hidden;
}

.quantity-controls button {
    border: none;
    background-color: #f8f9fa;
    color: #212529;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-controls button:hover {
    background-color: #e9ecef;
}

.quantity-input {
    width: 3rem;
    text-align: center;
    border: none;
    border-left: 1px solid #ced4da;
    border-right: 1px solid #ced4da;
    height: 2.5rem;
    font-weight: 600;
}

.item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0d6efd;
    min-width: 120px;
    text-align: right;
    margin: 0 1.5rem;
}

.remove-item {
    background-color: #f8f9fa;
    border: 1px solid #dc3545;
    color: #dc3545;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background-color: #dc3545;
    color: #fff;
}

.order-summary {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-summary > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-right: 1px solid #e9ecef;
}

.order-summary > div:last-child {
    border-right: none;
}

.order-summary span:first-child {
    font-weight: 600;
    color: #6c757d;
}

.order-summary span:last-child {
    font-weight: 700;
    font-size: 1.25rem;
}

.total span:last-child {
    color: #0d6efd;
    font-size: 1.5rem;
}

.empty-cart {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 3rem;
}

.empty-cart i {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-cart p {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.shipping-form {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

.shipping-form h3 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.75rem;
}

.shipping-form h3:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #0d6efd;
    position: absolute;
    bottom: 0;
    left: 0;
    border-radius: 2px;
}

.form-label {
    font-weight: 500;
    color: #212529;
}

.form-control, .form-select {
    padding: 0.75rem;
    border-radius: 0.375rem;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.15);
}
