/* HP Product Card Styles */

.hp-card-product-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden; /* Contain slides */
}

/* Fix for Swiper container height */
.hp-card-product-wrapper.swiper {
    height: auto;
}

.hp-card-product-wrapper .hp-background-wrapper {
    background-color: #7e8387;
    aspect-ratio: 5 / 6;
    transition: 0.2s linear;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none !important;
}

.hp-card-product-wrapper .hp-background-wrapper:hover {
    padding: 10px;
}

.hp-card-product-wrapper .hp-background-image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
    background-origin: content-box;
    width: 100%;
    height: 100%;
    transition: 0.2s linear;
}

.hp-card-product-wrapper .hp-info-wrapper {
    position: absolute;
    bottom: 0px;
    left: 0px;
    padding: 30px 20px 20px;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
}

.hp-card-product-wrapper .hp-label {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hp-card-product-wrapper .hp-title-container {
    display: inline-block;
}

.hp-card-product-wrapper .hp-title {
    padding: 8px 15px;
    background-color: #fff;
    color: #000;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}

/* Swiper specific controls */
.hp-card-product-wrapper.hp-is-slider .swiper-button-next,
.hp-card-product-wrapper.hp-is-slider .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 20;
    opacity: 0; /* Hide by default */
    pointer-events: none;
}

.hp-card-product-wrapper.hp-is-slider .swiper-button-next:after,
.hp-card-product-wrapper.hp-is-slider .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.hp-card-product-wrapper.hp-is-slider:hover .swiper-button-next,
.hp-card-product-wrapper.hp-is-slider:hover .swiper-button-prev {
    opacity: 1; /* Show on hover */
    pointer-events: auto;
}

.hp-card-product-wrapper.hp-is-slider .swiper-button-next:hover,
.hp-card-product-wrapper.hp-is-slider .swiper-button-prev:hover {
    background: #66CC00;
    transform: scale(1.1);
}

/* Category Card Specifics */
.hp-card-category .hp-background-wrapper {
    background-color: #7e8387;
    aspect-ratio: 9 / 5;
    transition: 0.2s linear;
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none !important;
}

.hp-card-category .hp-background-wrapper:hover {
    padding: 10px;
}

.hp-card-category .hp-background-image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
    background-origin: content-box;
    width: 100%;
    height: 100%;
    transition: 0.2s linear;
}

.hp-card-category .hp-info-wrapper-right {
    position: absolute;
    bottom: 0px;
    right: 0px;
    padding: 10px;
    box-sizing: border-box;
}

.hp-card-category .hp-title-container {
    display: inline-block;
}

.hp-card-category .hp-title {
    padding: 8px 15px;
    background-color: #7e8387;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    display: inline-block;
}
