@font-face {
    font-family: "IRANSans";
    src: url("<?php echo BASE_URL; ?>assets/fonts/iransans.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "IRANSans", Arial, sans-serif;
    background-color: #F5F7FA;
    color: #1A2A44;
    direction: rtl;
}

main {
    max-width: 1200px;
    margin: 100px auto 20px;
    padding: 0 15px;
}

h2 {
    font-size: 1.8rem;
    color: #1A2A44;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.order-step h3 {
    font-size: 1.5rem;
    color: #1A2A44;
    margin-bottom: 1rem;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cart-item {
    display: flex;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-details h3 {
    font-size: 1.2rem;
    color: #1A2A44;
    margin: 0;
}

.cart-item-details p {
    font-size: 0.9rem;
    color: #2E7D32;
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls .cart-decrement,
.cart-item-controls .cart-increment {
    width: 40px;
    height: 40px;
    border: 1px solid #9CCC65;
    background: #FFFFFF;
    color: #2E7D32;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cart-item-controls .cart-decrement:hover,
.cart-item-controls .cart-increment:hover {
    background: #E8F5E9;
    transform: scale(1.1);
}

.cart-item-controls .cart-quantity {
    min-width: 30px;
    text-align: center;
    font-size: 1rem;
    color: #1A2A44;
}

.cart-item-controls .cart-spinner i {
    animation: spin 1s linear infinite;
}

.cart-total {
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2E7D32;
    margin-top: 1.5rem;
}

.step-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
}

.kandoo-cta-button {
    background: #2E7D32;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    color: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.kandoo-cta-button:hover {
    background: #1B5E20;
    transform: translateY(-2px);
}

.btn-danger {
    font-size: 0.9rem;
    padding: 5px 10px;
}

.kandoo-placeholder {
    text-align: center;
    font-size: 1.2rem;
    color: #EF4444;
    margin-top: 2rem;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes quantity-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 767px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-details h3 {
        font-size: 1rem;
    }

    .cart-item-details p {
        font-size: 0.85rem;
    }

    .step-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 479px) {
    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-details h3 {
        font-size: 0.9rem;
    }

    .cart-item-controls .cart-decrement,
    .cart-item-controls .cart-increment {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}