/* Orders List Page Styles - Flipkart Style */

.orders-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.breadcrumbs {
    margin-bottom: 16px;
}

.breadcrumb-icon {
    font-size: 10px;
    color: #878787;
    margin: 0 8px;
}

/* Orders Content Layout */
.orders-content-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    align-items: start;
}

/* Left: Filters Sidebar */
.orders-filters-sidebar {
    position: sticky;
    top: 112px;
    align-self: start;
}

.filters-card {
    background: white;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filters-title {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-title {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 12px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    font-size: 14px;
    color: #212121;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
}

.filter-option-label:hover {
    background: #f5f5f5;
}

.filter-option-label:hover .filter-option-text {
    color: var(--mobitez-purple);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--mobitez-purple);
    flex-shrink: 0;
}

.filter-checkbox:checked + .filter-option-text {
    color: var(--mobitez-purple);
    font-weight: 500;
}

.filter-option-text {
    flex: 1;
    transition: color 0.2s;
}

/* Right: Orders List Section */
.orders-list-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Search Orders */
.search-orders-section {
    background: white;
    border-radius: 4px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-orders-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-orders-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    font-size: 14px;
    color: #212121;
    transition: border-color 0.2s;
}

.search-orders-input:focus {
    outline: none;
    border-color: var(--mobitez-purple);
}

.btn-search-orders {
    background: var(--mobitez-purple);
    color: white;
    border: none;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-search-orders:hover {
    background: var(--mobitez-purple-dark);
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.order-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    transition: all 0.2s;
}

.order-card-link:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.order-card-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.order-product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: white;
    padding: 8px;
    flex-shrink: 0;
}

.order-product-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-product-name {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.order-product-price {
    font-size: 18px;
    font-weight: 500;
    color: #212121;
    white-space: nowrap;
}

.order-delivery-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    align-items: flex-end;
    text-align: right;
    min-width: 200px;
    flex-shrink: 0;
}

.order-delivery-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #212121;
    font-weight: 500;
}

.order-delivery-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #388e3c;
    flex-shrink: 0;
}

.order-status-message {
    color: #878787;
    font-size: 13px;
    margin-top: 2px;
}

/* Empty State */
.empty-orders {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.empty-orders-icon {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.empty-orders h2 {
    font-size: 20px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 8px;
}

.empty-orders p {
    font-size: 14px;
    color: #878787;
    margin-bottom: 24px;
}

/* No More Results */
.no-more-results {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #878787;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 968px) {
    .orders-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .orders-filters-sidebar {
        position: relative;
        top: 0;
    }
    
    .filters-card {
        margin-bottom: 16px;
    }
    
    .filter-options {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .search-orders-box {
        flex-direction: column;
    }
    
    .search-orders-input {
        width: 100%;
    }
    
    .btn-search-orders {
        width: 100%;
        justify-content: center;
    }
    
    .order-card-content {
        flex-wrap: wrap;
    }
    
    .order-product-image {
        width: 60px;
        height: 60px;
    }
    
    .order-product-details {
        flex: 1;
        min-width: 150px;
    }
    
    .order-delivery-info {
        width: 100%;
        align-items: flex-start;
        text-align: left;
        margin-top: 8px;
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .orders-container {
        padding: 16px 10px;
    }

    .orders-content-wrapper {
        gap: 16px;
    }

    .filters-card {
        padding: 16px;
    }

    .filters-title {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .filter-section {
        margin-bottom: 16px;
    }

    .filter-section-title {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .filter-option-label {
        padding: 6px 10px;
        font-size: 13px;
    }

    .filter-checkbox {
        width: 16px;
        height: 16px;
    }

    .search-orders-section {
        padding: 12px 16px;
    }

    .search-orders-input {
        font-size: 14px;
        padding: 8px 10px;
    }

    .btn-search-orders {
        padding: 8px 16px;
        font-size: 13px;
    }

    .order-card-link {
        padding: 16px;
        margin-bottom: 10px;
    }

    .order-card-content {
        gap: 12px;
    }

    .order-product-image {
        width: 70px;
        height: 70px;
    }

    .order-product-name {
        font-size: 14px;
    }

    .order-product-price {
        font-size: 16px;
    }

    .order-delivery-info {
        font-size: 12px;
        gap: 3px;
    }

    .order-delivery-date {
        font-size: 13px;
    }

    .order-status-message {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .orders-container {
        padding: 12px 8px;
    }

    .filters-card {
        padding: 12px;
    }

    .filter-options {
        flex-direction: column;
        gap: 6px;
    }

    .filter-option-label {
        padding: 8px 10px;
    }

    .order-card-link {
        padding: 12px;
    }

    .order-card-content {
        gap: 10px;
    }

    .order-product-image {
        width: 60px;
        height: 60px;
    }

    .order-product-name {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }

    .order-product-price {
        font-size: 15px;
    }

    .order-delivery-info {
        font-size: 11px;
    }
}
