/* ═══════════════════════════════════════════════════════
   LUMIWALL NOWOŚCI CAROUSEL — Premium Dark Theme v1.0
   Design: Luxury gallery aesthetic, dark cinematic
   Palette: #0A1219 → #111D2A → #4ECDC4 → #2C7BE5
   Fonts: Sora (UI), DM Sans (body)
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Variables ─── */
:root {
    --lw-bg-deep:    #0A1219;
    --lw-bg-card:    #111D2A;
    --lw-bg-card-hover: #142536;
    --lw-teal:       #4ECDC4;
    --lw-blue:       #2C7BE5;
    --lw-white:      #FFFFFF;
    --lw-muted:      #8A9BB0;
    --lw-muted-dim:  #5A6A7A;
    --lw-border:     rgba(78, 205, 196, 0.07);
    --lw-border-hover: rgba(78, 205, 196, 0.22);
    --lw-glow:       rgba(78, 205, 196, 0.08);
    --lw-glow-strong: rgba(78, 205, 196, 0.15);
    --lw-gradient:   linear-gradient(135deg, #4ECDC4, #2C7BE5);
    --lw-radius:     16px;
    --lw-radius-sm:  10px;
    --lw-font-ui:    'Sora', sans-serif;
    --lw-font-body:  'DM Sans', sans-serif;
    --lw-ease:       cubic-bezier(0.23, 1, 0.32, 1);
    --lw-card-width: 380px;
}


/* ─── Carousel Container ─── */
.lw-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.lw-carousel__swiper {
    overflow: visible !important;
    padding-bottom: 20px;
}

.lw-carousel__swiper .swiper-wrapper {
    align-items: stretch;
}


/* ─── Slide ─── */
.lw-carousel .swiper-slide {
    width: var(--lw-card-width) !important;
    height: auto !important;
    /* Stagger fade-in on load */
    opacity: 0;
    transform: translateY(24px);
    animation: lwCardReveal 0.6s var(--lw-ease) forwards;
}
.lw-carousel .swiper-slide:nth-child(1) { animation-delay: 0.05s; }
.lw-carousel .swiper-slide:nth-child(2) { animation-delay: 0.12s; }
.lw-carousel .swiper-slide:nth-child(3) { animation-delay: 0.19s; }
.lw-carousel .swiper-slide:nth-child(4) { animation-delay: 0.26s; }
.lw-carousel .swiper-slide:nth-child(5) { animation-delay: 0.33s; }

@keyframes lwCardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ═══════════════════════════════════════
   CARD
   ═══════════════════════════════════════ */
.lw-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--lw-bg-card);
    border: 1px solid var(--lw-border);
    border-radius: var(--lw-radius);
    overflow: hidden;
    transition:
        border-color 0.5s var(--lw-ease),
        box-shadow 0.5s var(--lw-ease),
        transform 0.5s var(--lw-ease);
    position: relative;
}

.lw-card:hover {
    border-color: var(--lw-border-hover);
    box-shadow:
        0 0 50px var(--lw-glow),
        0 28px 70px rgba(0, 0, 0, 0.45);
    transform: translateY(-8px);
}


/* ─── Image Area ─── */
.lw-card__image {
    display: block;
    position: relative;
    overflow: hidden;
    background: #060C12;
    aspect-ratio: 3 / 4;
    text-decoration: none;
}

.lw-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--lw-ease);
    will-change: transform;
}

.lw-card:hover .lw-card__image img {
    transform: scale(1.08);
}

/* Bottom gradient overlay — merges image into card body */
.lw-card__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, var(--lw-bg-card) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s var(--lw-ease);
}

.lw-card:hover .lw-card__image::after {
    opacity: 0.7;
}


/* ─── Badges ─── */
.lw-card__badge {
    position: absolute;
    top: 14px;
    z-index: 3;
    font-family: var(--lw-font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
    padding: 7px 14px;
    border-radius: 100px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: none;
}

.lw-card__badge--new {
    left: 14px;
    background: rgba(78, 205, 196, 0.12);
    color: var(--lw-teal);
    border: 1px solid rgba(78, 205, 196, 0.28);
}

.lw-card__badge--sale {
    right: 14px;
    background: rgba(44, 123, 229, 0.12);
    color: var(--lw-blue);
    border: 1px solid rgba(44, 123, 229, 0.28);
}


/* ─── Card Info ─── */
.lw-card__info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 20px 22px 22px;
    gap: 0;
}


/* ─── Title ─── */
.lw-card__title {
    margin: 0 0 auto 0;
    padding: 0;
    font-family: var(--lw-font-body);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.lw-card__title a {
    color: var(--lw-white);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.lw-card:hover .lw-card__title a {
    color: var(--lw-teal);
}


/* ─── Footer: Price + Button ─── */
.lw-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
}


/* ─── Price ─── */
.lw-card__price {
    font-family: var(--lw-font-ui);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* Current price — gradient */
.lw-card__price .woocommerce-Price-amount,
.lw-card__price bdi,
.lw-card__price ins .woocommerce-Price-amount,
.lw-card__price ins bdi {
    background: var(--lw-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Old price */
.lw-card__price del {
    opacity: 0.4;
    font-size: 13px;
    margin-right: 6px;
}
.lw-card__price del .woocommerce-Price-amount,
.lw-card__price del bdi {
    background: none;
    -webkit-text-fill-color: var(--lw-muted-dim);
    color: var(--lw-muted-dim);
    font-weight: 500;
    font-size: 13px;
}

/* Sale "ins" tag — remove underline */
.lw-card__price ins {
    text-decoration: none;
}

/* Currency symbol */
.lw-card__price .woocommerce-Price-currencySymbol {
    font-weight: 600;
}


/* ─── Add to Cart Button ─── */
.lw-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    background: var(--lw-gradient);
    color: var(--lw-bg-deep);
    font-family: var(--lw-font-ui);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: var(--lw-radius-sm);
    padding: 12px 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
        box-shadow 0.4s var(--lw-ease),
        transform 0.4s var(--lw-ease);
    white-space: nowrap;
    line-height: 1;
}

.lw-card__btn svg {
    flex-shrink: 0;
}

.lw-card__btn:hover {
    box-shadow: 0 0 32px rgba(78, 205, 196, 0.4);
    transform: translateY(-2px);
    color: var(--lw-bg-deep);
    text-decoration: none;
}

/* Shimmer effect */
.lw-card__btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.lw-card__btn:hover::before {
    left: 100%;
}

/* "Added to cart" feedback */
.lw-card__btn.added {
    background: rgba(78, 205, 196, 0.15);
    color: var(--lw-teal);
}
.lw-card__btn.added svg {
    stroke: var(--lw-teal);
}


/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */
.lw-carousel__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.lw-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(78, 205, 196, 0.15);
    background: rgba(78, 205, 196, 0.06);
    color: var(--lw-teal);
    cursor: pointer;
    transition:
        background 0.3s var(--lw-ease),
        border-color 0.3s var(--lw-ease),
        box-shadow 0.3s var(--lw-ease),
        transform 0.3s var(--lw-ease);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    outline: none;
}

.lw-carousel__arrow:hover {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.35);
    box-shadow: 0 0 24px var(--lw-glow-strong);
    transform: scale(1.08);
}

.lw-carousel__arrow svg {
    stroke: var(--lw-teal);
}

/* Disabled state */
.lw-carousel__arrow.swiper-button-disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}


/* ─── Pagination Dots ─── */
.lw-carousel__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lw-carousel__dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(78, 205, 196, 0.18);
    opacity: 1;
    border: none;
    transition: all 0.35s var(--lw-ease);
    cursor: pointer;
}

.lw-carousel__dots .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background: var(--lw-gradient);
}


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

/* Tablet */
@media (max-width: 1024px) {
    :root {
        --lw-card-width: 320px;
    }

    .lw-card__info {
        padding: 16px 18px 18px;
    }

    .lw-card__title {
        font-size: 14px;
    }

    .lw-card__price {
        font-size: 17px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --lw-card-width: 280px;
    }

    .lw-card__image {
        aspect-ratio: 3 / 4;
    }

    .lw-card__info {
        padding: 14px 16px 16px;
    }

    .lw-card__title {
        font-size: 13px;
    }

    .lw-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 12px;
    }

    .lw-card__price {
        font-size: 18px;
    }

    .lw-card__btn {
        justify-content: center;
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 9px;
    }

    .lw-carousel__nav {
        margin-top: 24px;
        gap: 12px;
    }

    .lw-carousel__arrow {
        width: 40px;
        height: 40px;
    }

    .lw-card__badge {
        top: 10px;
        font-size: 8px;
        padding: 5px 12px;
    }
    .lw-card__badge--new { left: 10px; }
    .lw-card__badge--sale { right: 10px; }
}

/* Small mobile */
@media (max-width: 380px) {
    :root {
        --lw-card-width: 260px;
    }
}
