
/* Header Styles */
.block-for-title {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 30px 30px;
    text-align: center;
    /*border-radius: 12px;*/
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.text-h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.data-note {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    font-style: italic;
}

/* Main Content Area */
.content-area {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Products List Styles */
.products-box {
    padding: 0;
}


.products-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.products-box li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 10px 15px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}


.products-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 16px 15px !important;
    font-weight: 600;
    font-size: 1rem;
    color: #374151;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.products-header:hover {
    background: #f8fafc !important;
}

.product-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
}


.product-item:hover {
    background-color: #f8fafc;
}

.product-item:last-child {
    border-bottom: none;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}


.product__image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product__image .img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.products-box a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.products-box a:hover {
    color: #2563eb;
}

.td-unit-and-dv {
    background: #e0e7ff;
    color: #3730a3;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    justify-self: end;
}

.td-unit-and-dv:first-of-type {
    background: #2563eb;
    color: white;
}


.header-amount-and-av {
    padding: 6px 4px;
    border-radius: 6px;
    font-weight: 600;
    /*font-size: 1rem;*/
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    justify-self: end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-box li {
        padding: 12px 16px;
        gap: 12px;
    }

    .products-header {
        padding: 12px 16px !important;
        font-size: 1rem;
    }

    .header-amount-and-av {
        min-width: 60px;
    }

    .product-info {
        gap: 12px;
    }

    .product__image {
        width: 50px;
        height: 50px;
    }

    .td-unit-and-dv {
        font-size: 0.85rem;
        padding: 4px 8px;
        min-width: 60px;
    }

    .products-box a {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main__container {
        padding: 0 10px;
    }

    .block-for-title {
        padding: 12px;
        /*border-radius: 8px;*/
    }
    .text-h1 {
        font-size: 2.1rem;
    }

    .header-amount-and-av {
        min-width: 45px;
        padding: 6px 1px;
    }

    .products-header {
        font-size: 1rem;
    }

    .products-box a {
        font-size: 1.1rem;
    }

    .td-unit-and-dv {
        padding: 3px 6px;
        min-width: 45px;
    }
}


@media (max-width: 360px) {

    .products-box li {
        min-width: 350px;
    }

    .product__image {
        width: 48px;
        height: 48px;
    }

    .products-header {
        font-size: 0.8rem;
    }

    .products-box a {
        font-size: 1rem;
    }

    .td-unit-and-dv {
        padding: 3px 6px;
        min-width: 45px;
    }
}
