/* ============================================
   public/css/sale.css
   Sale Landing Page Styles
   ============================================ */

:root {
    --sale-hero-bg: #111113;
    --sale-accent: #000;
}

/* ══ HERO BANNER ═══════════════════════════ */
.sale-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/sale-hero.png');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 4rem;
}

.sale-hero-content {
    max-width: 800px;
    padding: 2rem;
}

.sale-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.sale-hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.sale-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* ══ COUNTDOWN TIMER ═══════════════════════ */
.sale-countdown {
    margin-top: 1rem;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timer-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.timer-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
}

/* ══ COUPON SECTION ════════════════════════ */
.coupon-section {
    margin-top: -6rem;
    position: relative;
    z-index: 10;
    margin-bottom: 5rem;
}

.coupon-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #f2f2f2;
    transition: transform 0.2s;
}

.coupon-card:hover {
    transform: translateY(-5px);
}

.coupon-info {
    flex-grow: 1;
}

.coupon-code {
    font-size: 1.2rem;
    font-weight: 800;
    color: #000;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
}

.coupon-desc {
    font-size: 0.8rem;
    color: #86868b;
    margin: 0;
}

.copy-btn {
    background: transparent;
    border: 1.5px solid #000;
    color: #000;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #000;
    color: #fff;
}

.copy-btn.copied {
    background: #34c759;
    border-color: #34c759;
    color: #fff;
}

/* ══ PRODUCT GRID ══════════════════════════ */
.sale-grid-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-align: center;
}

.sale-product-card {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sale-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.sale-img-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.sale-img-wrap img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sale-product-card:hover .sale-img-wrap img {
    transform: scale(1.05);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 50px;
    z-index: 2;
}

.sale-product-info {
    padding: 0 8px 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sale-cat {
    font-size: 0.7rem;
    color: #86868b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sale-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 8px;
    text-decoration: none;
}

.sale-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.price-new {
    font-size: 1.25rem;
    font-weight: 800;
    color: #000;
}

.price-old {
    font-size: 0.9rem;
    color: #86868b;
    text-decoration: line-through;
}

.add-to-cart-sale {
    margin-top: auto;
    width: 100%;
    padding: 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ══ FEATURES SECTION ══════════════════════ */
.sale-features {
    background: #fbfbfd;
    padding: 5rem 0;
    margin-top: 6rem;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.85rem;
    color: #86868b;
    margin: 0;
}

/* ══ MOBILE ════════════════════════════════ */
@media (max-width: 768px) {
    .sale-hero-title {
        font-size: 2.5rem;
    }

    .sale-hero {
        min-height: 400px;
        border-radius: 0 0 30px 30px;
    }

    .coupon-section {
        margin-top: -3rem;
    }

    .coupon-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .copy-btn {
        width: 100%;
    }

    .sale-img-wrap img {
        height: 280px;
    }
}
