.cart-layout {
    display: flex;
    gap: 3vw;
    margin-top: 3vw;
    margin-bottom: 4vw;
    min-height: 60vh;
}

.cart-items-section {
    flex: 3;
    background-color: var(--white);
    border-radius: 1vw;
    padding: 2.5vw;
    box-shadow: 0 0.5vw 1.5vw rgba(0, 0, 0, 0.05);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2vw;
    padding-bottom: 1vw;
    border-bottom: 2px solid var(--gray);
}

.cart-header h2 {
    color: var(--header-bg);
    font-size: 2vw;
    font-weight: 700;
}

.btn-danger-outline {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    background-color: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 0.6vw 1.2vw;
    border-radius: 0.5vw;
    font-size: 0.9vw;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger-outline:hover {
    background-color: #ef4444;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 0.3vw 0.8vw rgba(239, 68, 68, 0.3);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 2vw;
    padding: 1.5vw;
    margin-bottom: 1vw;
    border-radius: 0.8vw;
    background: #fafafa;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.cart-item:has(.cart-item-select:not(:checked)) {
    opacity: 0.6;
    background: #f1f1f1;
}

.cart-item-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-select {
    appearance: none;
    width: 1.5vw;
    height: 1.5vw;
    border: 2px solid var(--primary-color);
    border-radius: 0.3vw;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.cart-item-select:checked {
    background-color: var(--primary-color);
}

.cart-item-select:checked::after {
    content: 'check';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 1vw;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5vw 1vw rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.cart-item-link-img {
    display: block;
    border-radius: 0.5vw;
    overflow: hidden;
}

.cart-item-img {
    width: 7vw;
    height: 9vw;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.cart-item-details {
    flex: 1;
}

.cart-item-link-title {
    text-decoration: none;
    color: var(--header-bg);
}

.cart-item-link-title:hover .cart-item-title {
    color: var(--primary-color);
}

.cart-item-title {
    font-size: 1.4vw;
    font-weight: 700;
    margin-bottom: 0.5vw;
    transition: color 0.3s ease;
}

.cart-item-price {
    font-size: 1.2vw;
    font-weight: 500;
    color: #666;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 1vw;
    background: var(--white);
    padding: 0.5vw;
    border-radius: 0.5vw;
    border: 1px solid var(--gray);
}

.cart-item-quantity input {
    width: 3.5vw;
    padding: 0.4vw;
    text-align: center;
    border: none;
    font-size: 1.1vw;
    font-weight: 600;
    outline: none;
}

.btn-icon {
    background: #ffeeee;
    color: #ef4444;
    border: none;
    border-radius: 0.4vw;
    padding: 0.6vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background-color: #ef4444;
    color: var(--white);
    transform: scale(1.1);
}

.cart-item-subtotal strong {
    font-size: 1.3vw;
    color: var(--primary-color);
}

.cart-summary {
    flex: 1;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 1vw;
    padding: 2.5vw;
    box-shadow: 0 0.5vw 1.5vw rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    height: fit-content;
    position: sticky;
    top: 2vw;
}

.cart-summary h3 {
    margin-bottom: 2vw;
    color: var(--header-bg);
    font-size: 1.6vw;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.2vw;
    font-size: 1.1vw;
    color: #555;
}

.cart-summary hr {
    border: none;
    border-top: 2px dashed var(--gray);
    margin: 1.5vw 0;
}

.total-row {
    font-weight: 800;
    font-size: 1.5vw;
    color: var(--header-bg);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 1vw;
    border-radius: 0.6vw;
    font-size: 1.1vw;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5vw;
    box-shadow: 0 0.4vw 1vw rgba(138, 79, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.6vw 1.5vw rgba(138, 79, 255, 0.4);
}

.empty-cart-message {
    text-align: center;
    padding: 4vw 0;
}

.empty-cart-icon {
    font-size: 5vw;
    color: var(--gray);
    margin-bottom: 1vw;
}

.empty-cart-message h3 {
    font-size: 1.8vw;
    color: var(--header-bg);
    margin-bottom: 0.5vw;
}

.empty-cart-message p {
    color: #666;
    font-size: 1.1vw;
    margin-bottom: 2vw;
}

.cart-shipping-notice {
    display: flex;
    gap: 0.8vw;
    margin-top: 1.5vw;
    background-color: #f8f9fa;
    padding: 1vw;
    border-radius: 0.5vw;
    border: 1px solid #e2e8f0;
}

.cart-shipping-notice span {
    color: var(--primary-color);
    font-size: 1.5vw;
}

.cart-shipping-notice p {
    font-size: 0.9vw;
    color: #64748b;
    line-height: 1.4;
    margin: 0;
}

.btn-catalog-empty {
    display: inline-block;
    width: auto;
    margin-top: 1vw;
}