/**
 * Flash Sale Styles
 * Isolated CSS for Flash Sale functionality
 * No conflicts with existing styles
 *
 * @package Lash Insiders MLM
 */

/* ════════════════════════════════════════════════════════════ */
/* FLASH SALE BADGE - Main Category Badge */
/* ════════════════════════════════════════════════════════════ */

.flash-sale-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.45);
    animation: flashPulse 2s ease infinite;
}

.flash-sale-badge i {
    font-size: 12px;
    animation: flashFlicker 1s ease-in-out infinite;
}

@keyframes flashPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes flashFlicker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ════════════════════════════════════════════════════════════ */
/* VARIATION CARDS - Weight Selector Styles */
/* ════════════════════════════════════════════════════════════ */

.variation-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.variation-card {
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    padding: 14px 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.variation-card:hover {
    border-color: #AE691B;
    background: rgba(174, 105, 27, 0.07);
    transform: translateY(-2px);
}

.variation-card.active {
    border-color: #AE691B;
    background: rgba(174, 105, 27, 0.07);
    box-shadow: 0 0 0 3px rgba(174, 105, 27, 0.28);
}

.variation-card.has-sale {
    border-color: #DC2626;
}

.variation-card.has-sale:hover {
    border-color: #DC2626;
    background: rgba(220, 38, 38, 0.04);
}

.variation-card.best-value {
    border-color: #059669;
}

/* Badge for Best Value */
.var-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

/* Weight label */
.var-weight {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-top: 4px;
}

/* Original price (struck through) */
.var-price-was {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    font-weight: 600;
    margin-bottom: 2px;
}

/* Sale price */
.var-price {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
}

.variation-card.has-sale .var-price {
    color: #DC2626;
    font-size: 16px;
}

/* Save chip */
.var-save-chip {
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    border-radius: 6px;
    padding: 3px 8px;
    margin-top: 4px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.variation-card.has-sale .var-save-chip {
    display: inline-block;
}

/* Per gram price */
.var-pergram {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    color: #999;
    font-weight: 500;
    margin-top: 2px;
}

/* ════════════════════════════════════════════════════════════ */
/* DROPDOWN STYLES - Flavor Selector */
/* ════════════════════════════════════════════════════════════ */

.flavor-selector-wrap {
    margin-bottom: 18px;
}

.flavor-select-outer {
    position: relative;
    margin-bottom: 10px;
}

.flavor-select {
    width: 100%;
    height: 46px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0 38px 0 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #111;
    background: #fff;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flavor-select:hover {
    border-color: #AE691B;
}

.flavor-select:focus {
    outline: none;
    border-color: #AE691B;
    box-shadow: 0 0 0 3px rgba(174, 105, 27, 0.15);
}

.flavor-select-outer::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 10px;
    pointer-events: none;
}

.flavor-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.flavor-note i {
    font-size: 12px;
    color: #AE691B;
}

/* ════════════════════════════════════════════════════════════ */
/* PRICE DISPLAY - Main Product Price */
/* ════════════════════════════════════════════════════════════ */

.pd-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.pd-price-row.is-sale .pd-now {
    display: none;
}

.pd-sale {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #DC2626;
    letter-spacing: -0.7px;
}

.pd-was {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.pd-now {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.7px;
}

/* ════════════════════════════════════════════════════════════ */
/* SAVINGS CHIP - Discount Notification */
/* ════════════════════════════════════════════════════════════ */

.pd-savings-chip {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.pd-savings-chip.visible {
    display: inline-flex;
}

.pd-savings-chip i {
    font-size: 12px;
}

/* ════════════════════════════════════════════════════════════ */
/* WEIGHT BUTTON STYLES - Alternative for button style selectors */
/* ════════════════════════════════════════════════════════════ */

.weight-btn {
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    padding: 10px 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

.weight-btn:hover {
    border-color: #AE691B;
    background: rgba(174, 105, 27, 0.07);
}

.weight-btn.active {
    border-color: #AE691B;
    background: rgba(174, 105, 27, 0.07);
    box-shadow: 0 0 0 3px rgba(174, 105, 27, 0.28);
}

.weight-btn .wt-label {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    display: block;
    margin-bottom: 3px;
}

.weight-btn .wt-price {
    font-size: 12px;
    font-weight: 600;
    color: #AE691B;
    display: block;
}

.weight-btn .wt-ppg {
    font-size: 9px;
    color: #999;
    display: block;
    margin-top: 1px;
}

.weight-btn .wt-was {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    font-weight: 600;
    display: none;
    margin-bottom: 3px;
}

.weight-btn.has-sale .wt-price {
    color: #DC2626;
    font-size: 15px;
    font-weight: 800;
}

.weight-btn.has-sale .wt-was {
    display: block;
}

.wt-save-chip {
    display: none;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #DC2626, #EF4444);
    border-radius: 6px;
    padding: 3px 8px;
    margin-top: 4px;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.weight-btn.has-sale .wt-save-chip {
    display: block;
}

.weight-btn .wt-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

/* ════════════════════════════════════════════════════════════ */
/* RESPONSIVE DESIGN */
/* ════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .variation-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .variation-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .variation-card {
        padding: 12px 10px;
    }

    .var-weight {
        font-size: 13px;
    }

    .var-price {
        font-size: 14px;
    }

    .variation-card.has-sale .var-price {
        font-size: 15px;
    }

    .pd-sale,
    .pd-now {
        font-size: 28px;
    }

    .pd-was {
        font-size: 16px;
    }

    .flash-sale-badge {
        font-size: 10px;
        padding: 5px 12px;
    }
}

@media (max-width: 540px) {
    .variation-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .variation-card {
        padding: 10px 8px;
    }

    .var-weight {
        font-size: 12px;
    }

    .var-price {
        font-size: 13px;
    }

    .var-price-was {
        font-size: 10px;
    }

    .var-pergram {
        font-size: 9px;
    }

    .pd-sale,
    .pd-now {
        font-size: 24px;
    }

    .pd-was {
        font-size: 14px;
    }

    .pd-price-row {
        gap: 10px;
    }

    .flash-sale-badge {
        font-size: 9px;
        padding: 4px 10px;
    }

    .flash-sale-badge i {
        font-size: 11px;
    }

    .flavor-select {
        font-size: 12px;
        height: 42px;
    }
}

@media (max-width: 400px) {
    .variation-cards {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .variation-card {
        padding: 8px 6px;
    }

    .var-weight {
        font-size: 11px;
    }

    .var-price {
        font-size: 12px;
    }

    .var-badge {
        font-size: 7px;
        padding: 2px 6px;
    }

    .pd-sale,
    .pd-now {
        font-size: 22px;
    }

    .flash-sale-badge {
        font-size: 8px;
        padding: 4px 8px;
        gap: 4px;
    }
}