@font-face {
    font-family: 'IranianSans';
    src: url('/main/assets/fonts/IranianSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    font-family: 'IranianSans', Arial, sans-serif;
}

.cart-table th, .cart-table td {
    vertical-align: middle;
    text-align: center;
}

.cart-img {
    width: clamp(60px, 10vw, 80px);
    height: clamp(60px, 10vw, 80px);
    object-fit: cover;
    border-radius: 8px;
}

.quantity-input {
    width: clamp(50px, 8vw, 60px);
    text-align: center;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    padding: 0.25rem;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.btn-remove:hover {
    color: #b91c1c;
}

.cart-summary {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-summary:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.empty-cart p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #4b5563;
}

.btn-danger {
    background-color: #dc2626;
    border: none;
    padding: clamp(0.3rem, 1.5vw, 0.5rem) clamp(0.5rem, 2vw, 0.75rem);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    line-height: 1.5;
    display: inline-block;
    width: auto;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
}

.btn-danger:hover {
    background-color: #b91c1c;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cart-table thead {
        display: none;
    }

    .cart-table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 1rem;
    }

    .cart-table td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
    }

    .cart-table td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-left: 0.5rem;
    }

    .cart-img {
        width: clamp(50px, 8vw, 60px);
        height: clamp(50px, 8vw, 60px);
    }

    .quantity-input {
        width: clamp(45px, 7vw, 50px);
    }

    .btn-danger {
        padding: clamp(0.25rem, 1.2vw, 0.4rem) clamp(0.4rem, 1.5vw, 0.6rem);
        font-size: clamp(0.7rem, 2vw, 0.9rem);
    }
}

@media (max-width: 576px) {
    .empty-cart {
        padding: 1.5rem;
    }

    .btn-danger {
        padding: clamp(0.2rem, 1vw, 0.3rem) clamp(0.3rem, 1.2vw, 0.5rem);
        font-size: clamp(0.6rem, 1.8vw, 0.8rem);
    }
}