/**
 * Suggested Promotion Styles
 * Mobile-first CSS for SuggestedPromotion component
 * Includes styles for volume discounts table and related promotion products
 * Integrates with ProductCardCarousel component
 */

/* ============================================
   Promotion Container
   ============================================ */
.product-promotion__container {
    /* Inherits from card-base */
}

.product-promotion__row {
    margin: 0;
}

/* ============================================
   Products Section
   ============================================ */
.product-promotion__products-section {
    margin-bottom: 1rem;
}

.product-promotion__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.product-promotion__icon {
    color: var(--brand-color);
    font-size: 1.125rem;
}

.product-promotion__title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.product-promotion__item {
    padding: 0;
    height: 100%;
}

.product-promotion__item .product-card-carousel {
    height: 100%;
    cursor: default;
}

/* ============================================
   Volume Discount Table Section
   ============================================ */
.product-promotion__table-section {
    margin-top: 1rem;
}

.product-promotion__table {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.product-promotion__table thead th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #333;
    border-color: #dee2e6;
    padding: 0.75rem;
    text-align: center;
}

.product-promotion__table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-color: #dee2e6;
}

.product-promotion__discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e8f5e9;
    color: var(--brand-color);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
}

.product-promotion__discount p {
    margin: 0;
}

.product-promotion__discount-price {
    font-weight: 600;
    color: #666;
    font-size: 0.9375rem;
}

.product-promotion__final-price {
    font-weight: 700;
    color: var(--brand-color);
    font-size: 1rem;
}

/* ============================================
   Responsive - Mobile (< 768px)
   ============================================ */
@media (max-width: 767px) {
    .product-promotion__table-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-promotion__table {
        font-size: 0.8125rem;
        min-width: 500px;
    }

    .product-promotion__table thead th,
    .product-promotion__table tbody td {
        padding: 0.5rem;
    }
}

/* ============================================
   Responsive - Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
    .product-promotion__products-section {
        margin-bottom: 0;
    }

    .product-promotion__title {
        font-size: 1.0625rem;
    }

    .product-promotion__table {
        font-size: 0.9375rem;
    }

    .product-promotion__discount-price {
        font-size: 1rem;
    }

    .product-promotion__final-price {
        font-size: 1.0625rem;
    }
}

/* ============================================
   Responsive - Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .product-promotion__title {
        font-size: 1.125rem;
    }

    .product-promotion__table {
        font-size: 1rem;
    }

    .product-promotion__final-price {
        font-size: 1.125rem;
    }
}
