:root {
    --primary: #8e095d;
    --accent: #ff9900;
    --dark: #222;
    --gray: #757575;
    --white: #fff;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Hide native scrollbars */
.slider-wrapper {
    position: relative;
    overflow-x: auto;
    padding: 1rem 1.5rem;
    scrollbar-width: none;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

/* Slider Track */
.slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.2rem;
    scroll-behavior: smooth;
    overflow-x: scroll;
    cursor: grab;
    scrollbar-width: none;
}

.slider-track:active {
    cursor: grabbing;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

/* Card */
.card {
    height: 100%;
    /* allow flex parent to control height if needed */
    min-height: 420px;
    /* or a fixed height like 420px, adjust as needed */
    flex: 0 0 auto;
    width: 100%;
    max-width: 375px;
    background-color: var(--white);
    border: none;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-top: 4px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 10px;
    right: 16px;
    background-color: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Image Container */
.card-img-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    padding: 10px;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.prd_name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

/* Card Content */
.card-content {
    flex-grow: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content p {
    margin: 4px 0;
    font-size: 12px;
    color: #444;
    line-height: 1.5;
}

.card-description {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary);
    
}

.card-detail {
    color: #666;
    font-size: 13px;
}

.card-content p,
.card-description,
.card-detail {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}


.price-amount {
    font-size: 1rem;
    font-weight: bold;
    color: var(--dark);
}

.price-original {
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--gray);
    margin-left: 8px;
}

/* Icons */
.star-icon,
.green-stars i,
.check-icon {
    color: #8e095d;
    margin-right: 4px;
}



.scroll-btn {
    display: block;
    position: absolute;
    top: 30%;
    background: none;
    color: rgb(0, 0, 0);
    border: none;
    width: 20px;
    height: 60px;
    z-index: 10;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
}


.scroll-btn-left {
    left: 5px;
}

.scroll-btn-right {
    right: 5px;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Tablet */
@media (max-width: 992px) {
    .card-img-container {
        height: 220px;
    }

    .card-content {
        padding: 14px;
    }

    .price-amount,
    .price-original {
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .card {
        max-width: 92%;
        margin: auto;
        height: 100%;
        /* allow flex parent to control height if needed */
        min-height: 420px;
        /* or a fixed height like 420px, adjust as needed */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card-img-container {
        height: 200px;
    }

    .card-content {
        padding: 12px;
    }

    .card-description,
    .card-detail,
    .price-amount,
    .price-original {
        font-size: 13px !important;
    }

    .card-badge {
        font-size: 9px;
        padding: 5px 10px;
    }

    .scroll-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}