/* ========== СТРАНИЦА ЗАКАЗОВ ========== */

.orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px;
    width: 100%;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.orders-header .orders-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin: 0;
    color: #4a4a4a;
}

.orders-header .orders-count {
    font-size: 0.9rem;
    color: #6c757d;
}

.order-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    padding: 20px;
    margin-bottom: 32px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.order-header-left {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 16px;
}

.order-number {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
}

.order-status {
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(0,0,0,0.05);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.order-comment {
    font-size: 0.85rem;
    color: #6c757d;
    width: 100%;
    margin-top: 8px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: white;
    border-radius: 20px;
    padding: 16px;
    flex-wrap: wrap;
}

.order-item .product-image-wrapper {
    width: 14.125rem;
    height: 20.625rem;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.order-item .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item .item-info {
    flex: 2;
    min-width: 200px;
}

.order-item .item-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 6px;
    color: #2c3e50;
}

.order-item .item-category {
    font-size: 0.75rem;
    color: #6c757d;
    background: #f1f3f4;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.order-item .item-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 8px;
}

.order-item .item-delivery {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

.order-price {
    font-weight: 700;
    font-size: 1.4rem;
    color: #2c3e50;
    white-space: nowrap;
}

.order-count {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.order-summary {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}

.order-total {
    font-size: 1.5rem;
}

.total-summary {
    margin-top: 24px;
    background: var(--soft-pink);
    border-color: var(--soft-pink-darker);
}

.total-summary .total-label {
    color: #4a4a4a;
}

.order-divider {
    margin: 32px 0;
    border-top: 2px dashed #e9ecef;
}

.orders-pickup-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 12px 0;
    text-align: right;
}

/* ========== Адаптация для мобильных ========== */
@media (max-width: 768px) {
    .orders-container {
        padding: 16px;
    }

    .order-card {
        padding: 16px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .order-header-left {
        width: 100%;
        justify-content: space-between;
    }

    .order-number {
        font-size: 1.1rem;
    }

    .order-status {
        font-size: 0.8rem;
    }

    .order-item {
        flex-wrap: wrap;
        gap: 12px;
        padding: 1px;
    }

    .order-item .product-image-wrapper {
        width: 90px;
        height: auto;
        min-height: 90px;
        flex-shrink: 0;
        border-radius: 12px;
    }

    .order-item .product-image {
        width: 100%;
        height: auto;
        object-fit: cover;
        aspect-ratio: 2 / 3;
    }

    .order-item .item-info {
        flex: 2;
        min-width: 0;
        text-align: left;
        padding-left: 0;
    }

    .order-item .item-title {
        font-size: 1rem;
    }

    .order-item .item-category {
        font-size: 0.7rem;
    }

    .order-item .item-description {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .order-item .item-delivery {
        font-size: 0.8rem;
    }

    .order-price-block {
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
        margin-top: 0;
        width: auto;
    }

    .order-price {
        font-size: 1.2rem;
    }

    .order-count {
        font-size: 0.85rem;
    }

    @media (max-width: 480px) {
        .order-item {
            flex-wrap: wrap;
        }
        .order-price-block {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            margin-top: 8px;
        }
        .order-price {
            order: 1;
        }
        .order-count {
            order: 2;
        }
    }

    .order-summary {
        margin-top: 16px;
    }

    .order-total {
        font-size: 1.2rem;
    }

    .total-summary {
        margin-bottom: 70px; /* если есть фиксированное меню */
        padding: 16px 20px;
    }
}