/* Home page groups and the group page: title bar, item rows, prices */

/* White and blue page; only these two pages load this file */
body {
    background-color: #EEF4FB;
}

/* Main container for the list inside left-item */
.left-item {
    min-width: 0;
    padding: 2px 20px;
    color: #10243E;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Styling for the heading */
.left-item h4 {
    background-color: #0B4F9C;
    font-size: 1.2rem;
    color: #FFFFFF;
    margin: 15px;
    padding: 5px 15px 5px 25px;   
    border-radius: 16px 5px 5px 5px;
    font-weight: 600;
}

/* Removes default list styling (bullets, padding) */
.product-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Styling for each link item */
.product-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 5px;
    text-decoration: none;
    color: #10243E;
    background-color: #FFFFFF;
    border-bottom: 1px solid #D5E3F3;
    transition: background-color 0.2s ease;
}

/* Alternating row color */
.product-list li:nth-child(even) a {
    background-color: #EAF2FC;
}

/* Hover */
.product-list li a:hover {
    background-color: #CBE0F7;
}

/* Styling for the product name */
/* Two lines of the description, then "..." */
.product-name {
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-right: 10px;
    font-weight: 600;
}

/* Styling for the price */
.product-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #FFFFFF;
    background-color: #0B4F9C;
    padding: 3px 6px;
    border-radius: 4px;
    white-space: nowrap; /* Prevents the text from wrapping */
}

/* The price; a discounted item also shows the discount and the old price */
.product-prices {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* A discount is the main accent: red stripe, red badge, red price */
.product-list li.discount a {
    border-left: 4px solid #D62828;
}

.product-list li.discount .product-price {
    background-color: #D62828;
}

.product-discount {
    font-size: 0.9rem;
    font-weight: bold;
    color: #D62828;
    background-color: #FFFFFF;
    border: 2px solid #D62828;
    padding: 1px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

.product-old-price {
    font-size: 0.9rem;
    font-weight: bold;
    color: #10243E;
    text-decoration: line-through;
    text-decoration-color: #D62828;
    text-decoration-thickness: 2px;
    white-space: nowrap;
}

/* Styling for the "no products" message */
.no-products {
    font-size: 0.9rem;
    color: #4A6383;
    padding: 15px 5px;
}

/* A group title that opens the whole group */
.left-item h4 a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.left-item h4 a::after {
    content: " \203A";
}

.left-item h4 a:hover {
    color: #D4AF37;
}
