﻿/* Promotion Section Grid */
.secAllPromotion {
    padding: 40px 0 60px 0;
    background-color: #f5f5f5;
}

.promotion-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.promotion-wrapper {
    width: 100%;
}
.promotion-item {
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

    .promotion-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

.promotion-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

    .promotion-link:hover {
        text-decoration: none;
        color: inherit;
    }

.promotion-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #fff;
    overflow: hidden;
}

.promotion-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-discount-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(255, 212, 36, 0.9);
    color: #ee4d2d;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 0 0 2px;
}

.promotion-hover-overlay {
    display: none; /* optional */
}

.promotion-detail-btn {
    padding: 6px 12px;
    font-size: 12px;
    background-color: #ee4d2d;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.promotion-info {
    padding: 10px;
}

.promotion-name {
    font-size: 13px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.87);
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
}

.promotion-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promotion-price {
    color: #ee4d2d;
    font-size: 16px;
    font-weight: 500;
}

.promotion-original-price {
    color: #929292;
    font-size: 12px;
    text-decoration: line-through;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .promotion-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .promotion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .promotion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .promotion-name {
        font-size: 12px;
        min-height: 32px;
    }

    .promotion-price {
        font-size: 14px;
    }

    .promotion-original-price {
        font-size: 11px;
    }
}


/* No Promotion Container */
.no-promotion-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.no-promotion-content {
    text-align: center;
    max-width: 500px;
    animation: fadeInUp 0.6s ease-out;
}

.no-promotion-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
}

    .no-promotion-icon svg {
        width: 60px;
        height: 60px;
        color: #a0aec0;
    }

.no-promotion-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.no-promotion-text {
    font-size: 16px;
    color: #718096;
    margin-bottom: 30px;
    line-height: 1.6;
}

.no-promotion-btn {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

    .no-promotion-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        text-decoration: none;
        color: white;
    }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .no-promotion-container {
        min-height: 350px;
        padding: 40px 20px;
    }

    .no-promotion-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }

        .no-promotion-icon svg {
            width: 50px;
            height: 50px;
        }

    .no-promotion-title {
        font-size: 24px;
    }

    .no-promotion-text {
        font-size: 14px;
    }

    .no-promotion-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}
