.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: #171717;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cart-empty-icon {
    font-size: 64px;
    color: #aaa;
    margin-bottom: 20px;
}

.cart-empty h2 {
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.cart-empty p {
    color: #666;
    margin-bottom: 30px;
}

/* Main Cart Layout */
.cart-main {
    display: flex;
    gap: 30px;
}

.cart-items-container {
    flex: 1;
    background-color: #171717;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.cart-summary {
    width: 350px;
    background-color: #171717;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    align-self: flex-start;
    position: sticky;
    top: 120px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    background-color: #232323;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.cart-item-image {
    width: 120px;
    min-width: 120px;
    background-color: #1c1c1c;
}

.cart-item-image img {
    width: 100%;
    object-fit: contain;
    background-color: #1c1c1c;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
    padding: 15px;
    flex-grow: 1;
    justify-content: space-between;
}

.cart-item-header {
    margin-bottom: 10px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: white;
}

.cart-item-title a {
    color: white;
    text-decoration: none;
}

.cart-item-title a:hover {
    color: #dfd1bc;
}

.cart-item-category {
    font-size: 12px;
    color: #999;
}

.cart-item-status {
    font-size: 14px;
    margin-top: 5px;
    color: #ccc;
}

.unavailable {
    color: #e48484;
}

.cart-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.cart-item-option {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 4px;
    color: #ccc;
}

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

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.quantity-button .material-symbols-outlined {
    font-size: 18px;
}

.quantity-input {
    width: 40px;
    height: 32px;
    text-align: center;
    border: 1px solid #444;
    border-radius: 4px;
    margin: 0 8px;
    padding: 0;
    font-size: 14px;
    background-color: #232323;
    color: white;
}

.quantity-input:focus {
    outline: none;
    border-color: darkred;
}

/* Price Display */
.cart-item-price {
    text-align: right;
    min-width: 100px;
}

.discounted-price {
    font-weight: 600;
    color: #e48484;
    font-size: 16px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 13px;
    margin-top: 4px;
}

.regular-price {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.secondary-currency {
    color: #aaa;
    font-size: 13px;
    margin-top: 5px;
}

/* Remove button */
.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.remove-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e48484;
}

/* Order Summary Section */
.summary-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.summary-details {
    margin-bottom: 25px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #ccc;
}

.summary-row.discount {
    color: #e48484;
}

.summary-row.total {
    font-weight: 600;
    font-size: 18px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
    color: white;
}

.summary-row.secondary-currency {
    color: #999;
    font-size: 13px;
    padding-top: 5px;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.continue-shopping {
    text-align: center;
    color: #aaa;
    text-decoration: none;
    padding: 10px;
    font-size: 14px;
    transition: color 0.2s;
}

.continue-shopping:hover {
    color: #dfd1bc;
    text-decoration: none;
}

/* Related Items Section */
.related-products {
    margin-top: 40px;
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.related-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

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

    .cart-summary {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        width: 100%;
        height: 180px;
        min-width: auto;
    }
    .cart-item-image img {
        height: 100%;
    }

    .cart-item-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cart-item-price {
        width: 100%;
        text-align: left;
    }

    .quantity-controls {
        width: 100%;
        justify-content: space-between;
    }

    .quantity-input {
        flex: 1;
        max-width: 80px;
    }
}

@media (max-width: 480px) {

    .cart-empty-icon {
        font-size: 48px;
    }

    .cart-empty h2 {
        font-size: 18px;
    }

    .summary-row.total {
        font-size: 16px;
    }
}