/*
Theme Name: JupiterX Child
Template: jupiterx
Version: 1.0
Description: Child theme for custom shop/category templates
*/

/* ========================================
   HP Section 2 - Outer Background
   ======================================== */
.hp-section-2-outer,
.hp-section-2-outer.elementor-section-stretched,
.hp-section-2-outer.elementor-section-stretched > .elementor-container {
    background: #eae5d6 !important;
}

/* ========================================
   HP Section 2 - Machines (Mino + Nano)
   ======================================== */

/* Card container */
.hp-machines-section .jupiterx-product-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    background: #1B1B10;
}

/* Product image */
.hp-machines-section .jupiterx-wc-loop-product-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f0;
}

.hp-machines-section .jupiterx-wc-loop-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Dark info area */
.hp-machines-section .raven-product-data {
    background: #1B1B10;
    padding: 20px 20px 8px;
    text-align: center;
    flex: 1;
}

/* Hide category + swatches */
.hp-machines-section span.posted_in,
.hp-machines-section .inwp-archive-variations-wrapper {
    display: none !important;
}

/* Title */
.hp-machines-section .woocommerce-loop-product__title {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Rating - orange */
.hp-machines-section .star-rating {
    margin: 0 auto 10px !important;
    display: block !important;
}

.hp-machines-section .star-rating::before {
    color: rgba(246,131,34,0.3) !important;
}

.hp-machines-section .star-rating span,
.hp-machines-section .star-rating span strong,
.hp-machines-section .star-rating span::before {
    color: #F68322 !important;
}

/* Price */
.hp-machines-section .price {
    color: #ffffff !important;
    display: block !important;
    margin-bottom: 4px !important;
    font-size: 17px !important;
    font-weight: 500 !important;
}

.hp-machines-section .price del,
.hp-machines-section .price del .woocommerce-Price-amount {
    color: rgba(255,255,255,0.4) !important;
    font-size: 14px !important;
}

.hp-machines-section .price ins {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* Sale badge */
.hp-machines-section .jupiterx-sale-badge {
    background: #1B1B10 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
}

/* ATC Button */
.hp-machines-section li.product > a.button,
.hp-machines-section .jupiterx-product-container > a.button {
    background: #ffffff !important;
    color: #1B1B10 !important;
    border: none !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 0 0 16px 16px !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 16px 20px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.hp-machines-section li.product > a.button:hover,
.hp-machines-section .jupiterx-product-container > a.button:hover {
    background: #f0efe8 !important;
    color: #1B1B10 !important;
}

/* ========================================
   HP Section 2 - Accessories (Fino, Claro, Stand, EVA)
   ======================================== */

/* Card container - high specificity for JupiterX override */
.hp-accessories-section .jupiterx-product-container,
.hp-accessories-section .elementor-widget-raven-wc-products .jupiterx-product-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    background: #1B1B10;
    height: 100% !important;
    flex: 1 !important;
}

/* Product image */
.hp-accessories-section .jupiterx-wc-loop-product-image {
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    background: #f5f5f0 !important;
}

.hp-accessories-section .jupiterx-wc-loop-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Dark info area */
.hp-accessories-section .raven-product-data,
.hp-accessories-section .elementor-widget-raven-wc-products .raven-product-data {
    background: #1B1B10 !important;
    padding: 16px 16px 8px !important;
    text-align: center !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

/* Hide category + swatches */
.hp-accessories-section span.posted_in,
.hp-accessories-section .elementor-widget-raven-wc-products .jupiterx-product-container span.posted_in,
.hp-accessories-section .inwp-archive-variations-wrapper {
    display: none !important;
}

/* Title */
.hp-accessories-section .woocommerce-loop-product__title,
.hp-accessories-section .elementor-widget-raven-wc-products .jupiterx-product-container .woocommerce-loop-product__title {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    min-height: 3em !important;
    max-height: 3em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-align: center !important;
    width: 100% !important;
}

/* Rating - orange */
.hp-accessories-section .star-rating {
    margin: 4px auto 8px !important;
}

.hp-accessories-section .star-rating::before {
    color: rgba(246,131,34,0.3) !important;
}

.hp-accessories-section .star-rating span,
.hp-accessories-section .star-rating span strong {
    color: #F68322 !important;
}

/* Price */
.hp-accessories-section .price,
.hp-accessories-section .elementor-widget-raven-wc-products .jupiterx-product-container .price {
    color: #ffffff !important;
    display: block !important;
    font-size: 15px !important;
    text-align: center !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

.hp-accessories-section .price del,
.hp-accessories-section .elementor-widget-raven-wc-products .jupiterx-product-container .price del {
    color: rgba(255,255,255,0.4) !important;
}

.hp-accessories-section .price ins,
.hp-accessories-section .elementor-widget-raven-wc-products .jupiterx-product-container .price ins {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* Sale badge */
.hp-accessories-section .jupiterx-sale-badge {
    background: #1B1B10 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    padding: 4px 10px !important;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 10 !important;
}

/* ATC Button */
.hp-accessories-section li.product > a.button,
.hp-accessories-section .jupiterx-product-container > a.button,
.hp-accessories-section .elementor-widget-raven-wc-products .jupiterx-product-container > a.button {
    background: #ffffff !important;
    color: #1B1B10 !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 14px 20px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.hp-accessories-section li.product > a.button:hover,
.hp-accessories-section .jupiterx-product-container > a.button:hover {
    background: #f0efe8 !important;
    color: #1B1B10 !important;
}

/* Equal height - desktop flex chain */
.hp-accessories-section.elementor-inner-section > .elementor-container {
    display: flex !important;
    align-items: stretch !important;
}

.hp-accessories-section.elementor-inner-section .elementor-column {
    display: flex !important;
    flex-direction: column !important;
}

.hp-accessories-section.elementor-inner-section .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    height: 100% !important;
}

.hp-accessories-section.elementor-inner-section .elementor-widget-raven-wc-products {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.hp-accessories-section.elementor-inner-section .elementor-widget-raven-wc-products .elementor-widget-container {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ========================================
   HP Section 2 - Mobile Responsive
   ======================================== */
@media (max-width: 767px) {
    /* Accessories grid */
    .hp-accessories-section.elementor-inner-section > .elementor-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .hp-accessories-section .elementor-column {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
    }

    .hp-accessories-section .elementor-column > .elementor-widget-wrap {
        width: 100% !important;
    }

    /* Full chain stretch */
    .hp-accessories-section .elementor-column > .elementor-widget-wrap,
    .hp-accessories-section .elementor-widget-wrap > .elementor-widget,
    .hp-accessories-section .elementor-widget > .elementor-widget-container,
    .hp-accessories-section .elementor-widget-container > .woocommerce,
    .hp-accessories-section .woocommerce > ul.products,
    .hp-accessories-section ul.products > li.product,
    .hp-accessories-section li.product > .jupiterx-product-container {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .hp-accessories-section .jupiterx-product-container > a.woocommerce-LoopProduct-link {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .hp-accessories-section .raven-product-data {
        flex: 1 !important;
    }

    /* Title - 3 lines fixed height */
    .hp-accessories-section .woocommerce-loop-product__title {
        font-size: 13px !important;
        min-height: 4.2em !important;
        max-height: 4.2em !important;
        -webkit-line-clamp: 3 !important;
    }

    .hp-accessories-section .price {
        font-size: 13px !important;
    }

    .hp-accessories-section .raven-product-data {
        padding: 12px 10px 6px !important;
    }

    .hp-accessories-section .jupiterx-product-container > a.button {
        font-size: 11px !important;
        padding: 10px 8px !important;
    }

    .hp-accessories-section .star-rating {
        font-size: 11px !important;
    }
}

/* ========================================

/* ========================================
   HP - Coffee Carousel
   ======================================== */

/* Card wrapper */
.hp-coffee-section .jupiterx-products-wrapper,
.hp-coffee-section .jupiterx-product-container {
    border-radius: 16px !important;
    overflow: hidden !important;
    background: #1B1B10 !important;
}

/* Image area */
.hp-coffee-section .jupiterx-wc-loop-product-image-wrapper {
    background: #f5f5f0 !important;
}

.hp-coffee-section .jupiterx-wc-loop-product-image {
    background: #f5f5f0 !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
}

.hp-coffee-section .jupiterx-wc-loop-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Hide overlay */
.hp-coffee-section .raven-product-image-overlay {
    display: none !important;
}

/* Dark info area */
.hp-coffee-section .raven-product-data {
    background: #1B1B10 !important;
    padding: 16px 12px 8px !important;
    text-align: center !important;
}

/* Hide category */
.hp-coffee-section span.posted_in {
    display: none !important;
}

/* Title */
.hp-coffee-section .woocommerce-loop-product__title {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
    min-height: 2.7em !important;
    max-height: 2.7em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Rating */
.hp-coffee-section .star-rating {
    margin: 4px auto 8px !important;
}

.hp-coffee-section .star-rating::before {
    color: rgba(246,131,34,0.3) !important;
}

.hp-coffee-section .star-rating span,
.hp-coffee-section .star-rating span strong {
    color: #F68322 !important;
}

/* Price */
.hp-coffee-section .price {
    color: #ffffff !important;
    display: block !important;
    font-size: 14px !important;
    text-align: center !important;
    margin-bottom: 4px !important;
}

.hp-coffee-section .price del {
    color: rgba(255,255,255,0.4) !important;
}

.hp-coffee-section .price ins {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

/* ATC Button */
.hp-coffee-section .jupiterx-product-container > a.button {
    background: #ffffff !important;
    color: #1B1B10 !important;
    border: none !important;
    border-radius: 0 0 16px 16px !important;
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    padding: 12px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.hp-coffee-section .jupiterx-product-container > a.button:hover {
    background: #f0efe8 !important;
    color: #1B1B10 !important;
}

/* Hide swatches */
.hp-coffee-section .inwp-archive-variations-wrapper {
    display: none !important;
}

/* Carousel arrows */
.hp-coffee-section .raven-swiper-button {
    color: #1B1B10 !important;
}


/* HP Coffee - hide empty link + fix card top */
.hp-coffee-section .jupiterx-product-container > a.woocommerce-LoopProduct-link:first-child {
    display: none !important;
}

.hp-coffee-section .jupiterx-wc-loop-product-image-wrapper {
    border-radius: 16px 16px 0 0 !important;
    overflow: hidden !important;
}


/* HP Coffee - title + price visibility fix */
.hp-coffee-section .jupiterx-products-wrapper .raven-product-data .woocommerce-loop-product__title {
    color: #ffffff !important;
}

.hp-coffee-section .jupiterx-products-wrapper .raven-product-data .price {
    color: #ffffff !important;
}

.hp-coffee-section .jupiterx-products-wrapper .raven-product-data .price del {
    color: rgba(255,255,255,0.4) !important;
}


/* HP Coffee - force white text */
.hp-coffee-section .elementor-widget-container .jupiterx-products-wrapper .raven-product-data h2.woocommerce-loop-product__title.raven-product-item-content {
    color: #ffffff !important;
}

.hp-coffee-section .elementor-widget-container .jupiterx-products-wrapper .raven-product-data span.price.raven-product-item-content {
    color: #ffffff !important;
}


/* HP Coffee - card border + white bg + arrow spacing */
.hp-coffee-section .jupiterx-products-wrapper {
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
}

.hp-coffee-section .jupiterx-wc-loop-product-image-wrapper {
    background: #ffffff !important;
}

.hp-coffee-section .raven-swiper-button-prev {
    left: -40px !important;
}

.hp-coffee-section .raven-swiper-button-next {
    right: -40px !important;
}


/* HP Coffee - correct selectors */
.hp-coffee-section .jupiterx-products-wrapper {
    border: 1px solid rgba(0,0,0,0.08) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.hp-coffee-section .swiper-button-prev {
    left: -40px !important;
}

.hp-coffee-section .swiper-button-next {
    right: -40px !important;
}


/* HP Coffee - white image background */
.elementor-element-4708db5 .jupiterx-wc-loop-product-image-wrapper,
.elementor-element-4708db5 .jupiterx-wc-loop-product-image,
.elementor-element-4708db5 .raven-image-fit {
    background: #ffffff !important;
    background-color: #ffffff !important;
}


/* HP Coffee - outer background */
.hp-coffee-outer,
.hp-coffee-outer.elementor-section-stretched,
.hp-coffee-outer.elementor-section-stretched > .elementor-container {
    background: #eae5d6 !important;
}


/* HP Coffee - section background */
.hp-coffee-section,
.hp-coffee-section.elementor-section-stretched,
.hp-coffee-section.elementor-section-stretched > .elementor-container {
    background: #eae5d6 !important;
    background-color: #eae5d6 !important;
}


/* ========================================
   HP - Awards & Media Logo Bar
   ======================================== */
.hp-logo-bar {
    padding: 40px 0;
    text-align: center;
    overflow: hidden;
}

.hp-logo-bar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 20px;
}

.hp-logo-scroll {
    overflow: hidden;
    margin-bottom: 32px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.hp-logo-track {
    display: flex;
    align-items: center;
    gap: 48px;
    animation: hp-scroll-left 25s linear infinite;
    width: max-content;
}

.hp-logo-track-reverse {
    animation: hp-scroll-right 30s linear infinite;
}

.hp-logo-track img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.hp-logo-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes hp-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes hp-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media (max-width: 767px) {
    .hp-logo-track img {
        height: 35px;
    }
    .hp-logo-track {
        gap: 32px;
    }
}

