﻿/* ── Promotion Section Wrapper ─────────────────────────────────────────── */
.secAllPromotion {
    padding: 40px 0 60px 0;
    background-color: #f5f5f5;
}

.promotion-wrapper {
    width: 100%;
}

/* ── Individual Promotion Block ────────────────────────────────────────── */
.promo-block {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 28px;
    padding: 0 0 16px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

/* Header row */
.promo-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #fff;
}

.promo-block-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.54);
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.promo-block-count {
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 3px 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* ── Static Grid (≤ 4 items) ───────────────────────────────────────────── */
.promotion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px 16px 0 16px;
}

/* ── Slick Slider wrapper (> 4 items) ──────────────────────────────────── */
.promo-slider-wrapper {
    position: relative;
    padding: 16px 50px 0 50px; /* room for arrows on sides */
    overflow: hidden;
}

.promo-slider {
    overflow: hidden;
}

    .promo-slider .slick-list {
        overflow: hidden !important;
        padding-right: 1px;
    }

    .promo-slider .promotion-item {
        margin: 0px;
        
    }



    
/* Slick arrow buttons */
.promo-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

    .promo-arrow:hover {
        background: rgba(0, 0, 0, 0.7);
    }

.promo-arrow-prev {
    left: 8px;
}

.promo-arrow-next {
    right: 8px;
}

/* ── Product Card ──────────────────────────────────────────────────────── */
.promotion-item {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 0 0 1px #f0f0f0;
}

    .promotion-item:hover {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }

.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: #fafafa;
    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.92);
    color: #ee4d2d;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 0 0 0 4px;
}

.promotion-hover-overlay {
    display: none;
}

.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: 6px;
    flex-wrap: wrap;
}

.promotion-price {
    color: #066BC8;
    font-size: 15px;
    font-weight: 600;
}

.promotion-original-price {
    color: #aaa;
    font-size: 12px;
    text-decoration: line-through;
}

/* ── Banner Arrows (top slider) ────────────────────────────────────────── */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .banner-arrow:hover {
        background: rgba(0, 0, 0, 0.7);
    }

.banner-arrow-prev {
    left: 15px;
}

.banner-arrow-next {
    right: 15px;
}

/* ── No Promotion ──────────────────────────────────────────────────────── */
.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 ────────────────────────────────────────────────────────── */
@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) {
    .promo-arrow {
        display: none !important;
    }

    .promo-slider-wrapper {
        padding: 12px 0 0 0;
    }

    .promotion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px 12px 0 12px;
    }

    .promo-slider-wrapper {
        padding: 12px 40px 0 40px;
    }

    .promo-block-title {
        font-size: 14px;
    }

    .promotion-name {
        font-size: 12px;
        min-height: 32px;
    }

    .promotion-price {
        font-size: 13px;
    }

    .promotion-original-price {
        font-size: 11px;
    }

    .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;
    }
}

/* ── Promo Banner (top of each promo block) ────────────────────────────── */
.promo-banner-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.promo-banner-slider .slick-slide {
    line-height: 0;
}

.promo-banner-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .promo-banner-img {
        max-height: 260px;
    }
}

/* ── Promotion Hero Banner ─────────────────────────────────────────────── */
.promo-hero {
    position: relative;
    background: #1a1a2e;
    padding: 60px 10px 60px;
    overflow: hidden;
    border-radius: 8px;
}

.promo-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.promo-hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    background: radial-gradient(circle, #f7b731, transparent 70%);
}

.promo-hero-shape-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    background: radial-gradient(circle, #f7b731, transparent 65%);
    opacity: 0.12;
}

.promo-hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: 5%;
    background: radial-gradient(circle, #ee4d2d, transparent 65%);
    opacity: 0.1;
}

.promo-hero-shape-3 {
    width: 200px;
    height: 200px;
    top: 20px;
    left: 30%;
    background: radial-gradient(circle, #fff, transparent 65%);
    opacity: 0.04;
}

.promo-hero-inner {
    position: relative;
    z-index: 1;
}

.promo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247, 183, 49, 0.15);
    border: 1px solid rgba(247, 183, 49, 0.4);
    color: #f7b731;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.promo-hero-badge-dot {
    width: 7px;
    height: 7px;
    background: #f7b731;
    border-radius: 50%;
    animation: heroPulse 1.6s ease-in-out infinite;
}

.promo-hero-title {
    font-size: 52px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin: 0 0 16px;
    letter-spacing: -1px;
}

.promo-hero-title-highlight {
    color: #f7b731;
    position: relative;
}

.promo-hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 32px;
    max-width: 480px;
    line-height: 1.6;
}

.promo-hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.promo-hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}

    .promo-hero-stat strong {
        color: #fff;
        font-weight: 700;
    }

.promo-hero-stat-icon {
    font-size: 18px;
}

.promo-hero-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
}

@keyframes heroPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

@media (max-width: 768px) {
    .promo-hero {
        padding: 40px 0 50px;
    }

    .promo-hero-title {
        font-size: 36px;
    }

    .promo-hero-subtitle {
        font-size: 14px;
    }

    .promo-hero-stats {
        gap: 14px;
    }

    .promo-hero-stat {
        font-size: 13px;
    }

    .promo-hero-divider {
        height: 22px;
    }
}
