/* ==========================================================================
   YJUK Daily Deals Styles
   Luxury minimalist design matching YJUK brand: Bellefair headings, Roboto body
   All selectors namespaced with .yjuk-daily-deals
   ========================================================================== */

/* Fonts: Bellefair + Roboto loaded by Shoptimizer theme — no @import needed */

/* -------------------------------------------------------------------------
   Container
   ------------------------------------------------------------------------- */
.yjuk-daily-deals {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 60px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #fff;
    position: relative;
    border: none !important;
    box-shadow: none !important;
}

.yjuk-daily-deals::before,
.yjuk-daily-deals::after,
.yjuk-daily-deals-header::before,
.yjuk-daily-deals-header::after,
.yjuk-daily-deals-grid::before,
.yjuk-daily-deals-grid::after,
.yjuk-daily-deals-empty::before,
.yjuk-daily-deals-empty::after {
    display: none !important;
    content: none !important;
}

/* -------------------------------------------------------------------------
   Header
   ------------------------------------------------------------------------- */
.yjuk-daily-deals-header {
    text-align: center;
    margin-bottom: 48px;
}

.yjuk-daily-deals-title {
    font-family: 'Bellefair', serif;
    font-size: 46px;
    font-weight: 400;
    margin: 0 0 10px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.yjuk-daily-deals-subtitle {
    font-size: 17px;
    color: #888;
    margin: 0 0 28px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.3px;
}

/* -------------------------------------------------------------------------
   Countdown Timer
   ------------------------------------------------------------------------- */
.yjuk-daily-deals-countdown {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    color: #fff;
    padding: 12px 28px;
    letter-spacing: 1px;
}

.yjuk-daily-deals-countdown-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.yjuk-daily-deals-countdown-timer {
    font-family: 'Bellefair', serif;
    font-size: 24px;
    font-weight: 400;
    min-width: 90px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   Product Grid — override Shoptimizer/WooCommerce column widths
   ------------------------------------------------------------------------- */
.yjuk-daily-deals-grid {
    margin-bottom: 40px;
}

.yjuk-daily-deals-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

/* Force product cards to fill grid cells — override Shoptimizer theme widths */
.yjuk-daily-deals-grid ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

/* Product image — rounded top, no shrink on hover */
.yjuk-daily-deals-grid li.product img {
    border-radius: 8px 8px 0 0;
    transition: none !important;
    transform: none !important;
}

.yjuk-daily-deals-grid li.product:hover img {
    transform: none !important;
}

/* Prevent Shoptimizer hover effects from hiding content */
.yjuk-daily-deals-grid li.product .yjuk-daily-deals-pitch {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
}

.yjuk-daily-deals-grid li.product:hover .yjuk-daily-deals-pitch {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Sales Pitch */
.yjuk-daily-deals-pitch {
    font-family: 'Bellefair', serif;
    font-size: 16px;
    color: #555;
    font-weight: 400;
    font-style: italic;
    margin: 0;
    padding: 14px 16px 20px;
    line-height: 1.6;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

/* Price styling */
.yjuk-daily-deals-grid .price {
    font-family: 'Bellefair', serif !important;
    font-weight: 400 !important;
    font-size: 20px !important;
}

.yjuk-daily-deals-grid .price del {
    opacity: 0.4;
    font-size: 16px !important;
}

.yjuk-daily-deals-grid .price ins {
    color: #1a1a1a;
    font-weight: 400 !important;
    text-decoration: none;
}

/* Product title styling within our grid */
.yjuk-daily-deals-grid li.product .woocommerce-loop-product__title,
.yjuk-daily-deals-grid li.product h2 {
    font-size: 18px !important;
    line-height: 1.4 !important;
}

/* -------------------------------------------------------------------------
   Variation Prompt — shown when user clicks Add to Cart without selecting
   ------------------------------------------------------------------------- */
.yjuk-variation-prompt {
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 6px;
    padding: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

.yjuk-variation-prompt.yjuk-prompt-show {
    opacity: 1;
    max-height: 30px;
}

/* Swatch highlight animation */
.yjuk-daily-deals-grid .yjuk-swatch-highlight {
    animation: yjukSwatchPulse 0.6s ease-in-out 3 !important;
}

@keyframes yjukSwatchPulse {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: 0 0 0 2px #1a1a1a;
    }
}

/* -------------------------------------------------------------------------
   Empty State
   ------------------------------------------------------------------------- */
.yjuk-daily-deals-empty {
    text-align: center;
    padding: 60px 20px;
}

/* -------------------------------------------------------------------------
   Staggered Reveal Animation
   ------------------------------------------------------------------------- */
.yjuk-daily-deals-grid li.product {
    opacity: 0;
    transform: translateY(16px);
    animation: yjukDealReveal 0.5s ease-out forwards;
}

.yjuk-daily-deals-grid li.product:nth-child(1) {
    animation-delay: 0s;
}

.yjuk-daily-deals-grid li.product:nth-child(2) {
    animation-delay: 0.15s;
}

.yjuk-daily-deals-grid li.product:nth-child(3) {
    animation-delay: 0.3s;
}

.yjuk-daily-deals-grid li.product:nth-child(4) {
    animation-delay: 0.45s;
}

.yjuk-daily-deals-grid li.product:nth-child(5) {
    animation-delay: 0.6s;
}

.yjuk-daily-deals-grid li.product:nth-child(6) {
    animation-delay: 0.75s;
}

@keyframes yjukDealReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .yjuk-daily-deals {
        padding: 24px 16px 40px;
    }

    .yjuk-daily-deals-title {
        font-size: 33px;
    }

    .yjuk-daily-deals-grid ul.products {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .yjuk-daily-deals-countdown {
        padding: 10px 20px;
    }

    .yjuk-daily-deals-countdown-timer {
        font-size: 20px;
    }

    .yjuk-daily-deals-pitch {
        font-size: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .yjuk-daily-deals-grid ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
