@import url('theme.css');

/* Content Sections Container - Light Theme */
.content-sections {
    display: flex;
    gap: 30px;
    margin: 40px auto;
    max-width: 1400px;
    padding: 0 20px;
}

.section {
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-white);
    overflow: hidden;
    flex: 2;
    box-shadow: var(--shadow-sm);
}

.latest-products {
    flex: 1;
}

.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--color-navy);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    font-weight: 600;
}

.show-all-link {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    float: right;
    margin-top: 5px;
}

.show-all-link:hover {
    text-decoration: underline;
}

.section-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Latest Buy Offers */
.latest-buy-offers .buy-offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.latest-buy-offers .buy-offer-row:hover {
    background: var(--color-primary-dim);
    border-color: var(--color-primary);
}

.buy-offer-flag {
    width: 24px;
    height: 16px;
    margin-right: 15px;
    border-radius: 2px;
}

.buy-offer-description {
    flex: 1;
    font-size: 14px;
    color: var(--color-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.buy-offer-time {
    font-size: 12px;
    color: var(--color-text-light);
    min-width: 80px;
    text-align: right;
}

/* Latest Products */
.latest-products .product-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    border: 1px solid transparent;
}

.latest-products .product-row:hover {
    background: var(--color-primary-dim);
    border-color: var(--color-primary);
}

.product-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
}

.product-details {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}

.product-title {
    font-weight: 600;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.product-title:hover {
    color: var(--color-primary);
}

.manufacturer {
    font-size: 12px;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.details-link {
    font-size: 12px;
    color: var(--color-primary);
    cursor: pointer;
}

.details-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .content-sections {
        flex-direction: column;
        gap: 20px;
    }
}
