/*
 Theme Name:     Astra Child
 Theme URI:      https://betashop.cottoncandystation.in 
 Description:    Child theme for Astra
 Author:         Sri Prasanth
 Author URI:     https://sriprasanth@timeplusq.com
 Template:       astra
 Version:        1.0.1
 License:        GNU General Public License v2 or later
 License URI:    http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:    astra-child
*/

/* Parent wrapper */
.horizontal-products-wrapper {
    position: relative;
    width: 100%;
}

/* Scrollable container */
.horizontal-products {
    overflow-x: auto;
    width: 100%;
    -ms-overflow-style: none; /* Hide scrollbar in IE/Edge */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
}

/* Hide scrollbar in Chrome/Safari */
.horizontal-products::-webkit-scrollbar {
    display: none;
}

/* Style WooCommerce product list for horizontal layout */
.horizontal-products .woocommerce ul.products {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    grid-template-columns: none !important; /* Override any grid layout */
}

/* Individual product styling */
.horizontal-products .woocommerce ul.products li.product {
    flex: 0 0 auto;
    width: 250px;
    margin-right: 10px;
    margin-bottom: 0;
}

/* Arrow button styles */
.scroll-left, .scroll-right {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #000;
    font-size: 24px; /* Increased size for larger arrows */
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease;
    padding: 10px; /* Increased padding for better click area */
    z-index: 10; /* Ensures buttons stay above content */
}

/* Hover effect for arrows */
.scroll-left:hover, .scroll-right:hover {
    opacity: 1;
}

/* Positioning arrows */
.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .horizontal-products .woocommerce ul.products li.product {
        width: 200px;
    }
}

@media (max-width: 767px) {
    .horizontal-products .woocommerce ul.products li.product {
        width: 50vw; /* Consistent product width on mobile */
    }
    .scroll-left, .scroll-right {
        display: none !important; /* Hide arrows on mobile */
    }
}
