/* Promotions section — extracted from promotions-section.blade.php */
.promotions-section.home-products-section {
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
}

.promotions-section .shop-section-title {
    margin-bottom: 20px;
}

.promotions-section .shop-section-title h2 {
    font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    padding-bottom: 10px !important;
    position: relative;
    text-transform: none !important;
    color: #2c2d3f;
}

.promotions-section .shop-section-title h2::before {
    position: absolute;
    content: "";
    height: 2px;
    width: 50px;
    background: #2b4392;
    left: 0;
    bottom: -1px;
}

.promotions-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 4px 0 12px;
    scrollbar-width: thin;
    scrollbar-color: #2b4392 #f1f3f5;
    -webkit-overflow-scrolling: touch;
}

.promotions-slider::-webkit-scrollbar {
    height: 6px;
}

.promotions-slider::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.promotions-slider::-webkit-scrollbar-thumb {
    background: #2b4392;
    border-radius: 4px;
}

.promotion-item {
    flex: 0 0 calc(25% - 0.75rem);
    min-width: 220px;
    max-width: 300px;
}

.promotion-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    cursor: pointer;
}

.promotion-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.promotion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.promotion-banner {
    position: relative;
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.promotion-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.default-banner {
    background: linear-gradient(135deg, #2b4392 0%, #1e2f6b 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: 16px;
}

.default-banner h3 {
    font-size: 0.875rem !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
    margin: 0;
}

.discount-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ffc107;
    color: #212529;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem !important;
    font-weight: 600;
    line-height: 1.2;
}

.promotion-content {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.promotion-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: #333;
    line-height: 1.35 !important;
    min-height: 2.4rem;
    max-height: 2.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promotion-dates {
    color: #666;
    font-size: 0.8125rem !important;
    margin: 0 !important;
    line-height: 1.3;
    flex-shrink: 0;
}

.promotion-cta {
    display: block;
    width: 100%;
    margin-top: auto;
    align-self: stretch;
    text-align: center;
    font-size: 0.8125rem !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 6px;
    background: #2b4392 !important;
    border-color: #2b4392 !important;
}

.promotion-cta:hover {
    background: #1e2f6b !important;
    border-color: #1e2f6b !important;
}

.promotions-section .btn-outline-primary {
    border: 1px solid #2b4392;
    color: #2b4392;
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

.promotions-section .btn-outline-primary:hover {
    background: #2b4392;
    color: #fff;
}

@media (max-width: 991.98px) {
    .promotion-item {
        flex: 0 0 calc(33.333% - 0.75rem);
        min-width: 200px;
    }
}

@media (max-width: 767.98px) {
    .promotions-slider {
        gap: 0.75rem;
    }

    .promotion-item {
        flex: 0 0 calc(50% - 0.5rem);
        min-width: 180px;
        max-width: 260px;
    }

    .promotion-card {
        min-height: 290px;
    }

    .promotion-banner {
        height: 160px;
        min-height: 160px;
        max-height: 160px;
    }

    .promotion-title {
        font-size: 0.8125rem !important;
        min-height: 2.2rem;
        max-height: 2.2rem;
    }
}

@media (max-width: 575.98px) {
    .promotion-item {
        flex: 0 0 70%;
        min-width: 70%;
        max-width: 280px;
    }
}
