/* ────────── THE CAROUSEL WRAPPER ────────── */
.rokstep-woo-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    font-family: 'Figtree', inherit;
}

.rokstep-woo-carousel-wrapper .woocommerce {
    margin: 0 !important;
}

/* The horizontal scrolling track ALWAYS FLEX */
.rokstep-woo-carousel-wrapper ul.products,
.rokstep-woo-carousel-wrapper .woocommerce > .products {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    margin: 0 !important;
    padding: 20px 10px 40px 10px !important;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.rokstep-woo-carousel-wrapper ul.products::-webkit-scrollbar,
.rokstep-woo-carousel-wrapper .woocommerce > .products::-webkit-scrollbar {
    display: none !important;
}

.rokstep-woo-carousel-wrapper ul.products::before,
.rokstep-woo-carousel-wrapper ul.products::after {
    display: none !important;
}

/* ────────── INDIVIDUAL PRODUCT CARDS (LUXURY OVERRIDE) ────────── */
.rokstep-woo-carousel-wrapper ul.products li.product,
.rokstep-woo-carousel-wrapper .products .product {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 280px !important;
    background: #ffffff !important;
    border: 1px solid rgba(26, 26, 26, 0.08) !important;
    border-radius: 12px !important;
    padding: 24px 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(26, 26, 26, 0.04) !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease !important;
    margin: 0 !important;
    clear: none !important;
    scroll-snap-align: start;
    position: relative;
}

.rokstep-woo-carousel-wrapper ul.products li.product:hover {
    box-shadow: 0 16px 40px rgba(212, 0, 0, 0.12) !important;
    border-color: rgba(212, 0, 0, 0.4) !important;
    z-index: 2 !important;
    transform: translateY(-4px) !important;
}

/* Link Wrapper structure */
.rokstep-woo-carousel-wrapper ul.products li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex-grow: 1;
    width: 100%;
}

/* Product Image */
.rokstep-woo-carousel-wrapper ul.products li.product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    margin-top: 10px !important;
    margin-bottom: 24px !important;
    background: transparent !important;
    transition: transform 0.5s ease !important;
}

.rokstep-woo-carousel-wrapper ul.products li.product:hover img {
    transform: scale(1.05) !important;
}

/* Sale Badge Override */
.rokstep-woo-carousel-wrapper ul.products li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: #d40000 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    z-index: 5 !important;
}

/* Favorite/Compare icons (if any) */
.rokstep-woo-carousel-wrapper ul.products li.product .tinvwl_add_to_wishlist_button,
.rokstep-woo-carousel-wrapper ul.products li.product .compare-button {
    position: absolute !important;
    z-index: 5 !important;
}

/* ────────── TYPOGRAPHY ────────── */
.rokstep-woo-carousel-wrapper ul.products li.product .woocommerce-loop-category__title,
.rokstep-woo-carousel-wrapper ul.products li.product .rs-injected-cat {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #d40000 !important; 
    font-weight: 800 !important;
    margin-bottom: 10px !important;
    display: block !important;
}

.rokstep-woo-carousel-wrapper ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    color: #1A1A1A !important;
    margin-bottom: 24px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;

    /* Elegant Title Termination */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 42px !important;
    white-space: normal !important;
}

/* ────────── ACTION BAR (Price + Cart Button) ────────── */
.rokstep-action-bar {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: auto !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(26, 26, 26, 0.08) !important;
}

/* Pricing block */
.rokstep-action-bar .price {
    flex: 1 1 50% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    font-size: 16px !important;
    color: #1A1A1A !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.rokstep-action-bar .price del,
.rokstep-action-bar .price del .amount {
    color: rgba(26, 26, 26, 0.4) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-decoration: line-through !important;
}

.rokstep-action-bar .price ins {
    text-decoration: none !important;
    color: #d40000 !important;
    padding-top: 2px !important;
}

/* Add To Cart Text Link */
.rokstep-action-bar .button,
.rokstep-action-bar .add_to_cart_button {
    flex: 1 1 50% !important;
    background: transparent !important;
    border: none !important;
    border-left: 1px solid rgba(26, 26, 26, 0.1) !important;
    border-radius: 0 !important;
    padding: 6px 10px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #1A1A1A !important;
    text-transform: none !important;
    transition: all 0.25s ease !important;
    text-align: center !important;
    margin: 0 !important;
    display: block !important;
    box-shadow: none !important;
}

.rokstep-action-bar .button:hover {
    color: #d40000 !important;
    background: transparent !important;
}

/* Hide original button/price if they duplicate outside action bar */
.rokstep-woo-carousel-wrapper ul.products li.product > .price,
.rokstep-woo-carousel-wrapper ul.products li.product > .button,
.rokstep-woo-carousel-wrapper ul.products li.product > .add_to_cart_button {
    display: none !important;
}

/* ────────── CAROUSEL NAV ARROWS ────────── */
.rokstep-woo-carousel-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(26, 26, 26, 0.15);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.rokstep-woo-carousel-nav:hover {
    background: #d40000;
    border-color: #d40000;
    box-shadow: 0 10px 30px rgba(212, 0, 0, 0.3);
}

.rokstep-woo-carousel-nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #1A1A1A;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.rokstep-woo-carousel-nav:hover svg {
    stroke: #ffffff;
}

.rokstep-woo-prev { left: -22px; }
.rokstep-woo-next { right: -22px; }

@media (max-width: 768px) {
    .rokstep-woo-prev, .rokstep-woo-next { display: none !important; }
    .rokstep-woo-carousel-wrapper ul.products li.product {
        flex: 0 0 240px !important;
        width: 240px !important;
        max-width: 240px !important;
    }
}
