

/* carousel */

.carousel-container {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.3rem;
    background-color: #ffffff;
}

.ribbon-carousel {
    position: absolute;
    top: 13px;
    right: -3rem;
    z-index: 10;
    width: 160px;
    height: 3rem;
    background: linear-gradient(135deg, #fd657b 0%, #53265E 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px -5px #cdaa82;
    text-align: center;
}

.carousel.new-arrivals-carousel {
    position: relative;
}

.carousel-item {
    padding: .25rem 0;
}

    .carousel-item .container,
    .carousel-item .row {
        height: 100%;
    }

    .carousel-item [class*="col-"] {
        display: flex;
    }

.carousel-container .carousel-control-prev.custom-prev,
.carousel-container .carousel-control-next.custom-next {
    position: absolute;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    width: 36px !important; /* override BS 15% width */
    height: 36px !important;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #1987549e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 1; /* ensure visible */
    transition: background .2s ease;
}

.carousel-container .carousel-control-prev.custom-prev {
    left: 3px;
    right: auto;
}

.carousel-container .carousel-control-next.custom-next {
    right: 3px;
    left: auto;
}

    .carousel-container .carousel-control-prev.custom-prev:hover,
    .carousel-container .carousel-control-next.custom-next:hover {
        background: rgba(255,69,96,.9);
    }

.carousel-container .carousel-control-prev-icon,
.carousel-container .carousel-control-next-icon {
    filter: invert(1);
    width: 16px;
    height: 16px;
    background-size: 100% 100%;
}


/* Stylish heading for: <span class="carousel-title">New Arrivals</span> */
.carousel-title {
    --title-accent-1: #97744b; /* your brown */
    --title-accent-2: #478778; /* your green */
    display: inline-block;
    margin: 0 0 1rem;
    padding: .25rem .5rem .5rem;
    font-size: clamp(1.125rem, 1.2vw + .9rem, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #495057;
    border-radius: 6px;
    position: relative;
}

    /* Gradient underline bar */
    .carousel-title::after {
        content: "";
        position: absolute;
        left: .5rem;
        bottom: .2rem;
        width: 11rem;
        height: 4px;
        background: linear-gradient(90deg, var(--title-accent-1), var(--title-accent-2));
        border-radius: 2px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    }
/* Center on small screens */
@media (max-width: 576px) {
    .carousel-title {
        display: block;
        text-align: center;
        margin-bottom: .75rem;
    }

        .carousel-title::after {
            left: 50%;
            transform: translateX(-50%);
        }
}

@media (max-width:768px) {
    .carousel-container .carousel-control-prev.custom-prev,
    .carousel-container .carousel-control-next.custom-next {
        width: 32px !important;
        height: 32px !important;
    }
}

@media (max-width:480px) {
    .carousel-container .carousel-control-prev.custom-prev,
    .carousel-container .carousel-control-next.custom-next {
        width: 30px !important;
        height: 30px !important;
    }
}


/* Wrapper for Horizontal Scrolling */
.horizontal-scroll-wrapper {
    overflow-x: auto;
    padding: 10px 0;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.horizontal-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    width:100%;
}

@media (max-width: 768px) {
    .card-item {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 576px) {
    .card-item {
        width: calc(33.33% - 20px);
    }
}

    .horizontal-scroll-wrapper::-webkit-scrollbar {
        height: 8px; /* Height of the scrollbar */
    }

    .horizontal-scroll-wrapper::-webkit-scrollbar-track {
        background-color: #f1f1f1; /* Light gray background for the track */
    }

    .horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
        background-color: #d1e1dd; /* Light green for the scrollbar thumb */
        border-radius: 5px; /* Round the edges of the scrollbar */
    }

        .horizontal-scroll-wrapper::-webkit-scrollbar-thumb:hover {
            background-color: #478778; /* Darker green when hovering over the scrollbar */
        }

/* Card Item Styling */

.product-card {
    border-radius: 8px;
    overflow: hidden; /* keep corners tidy */
    transition: transform .2s ease;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-color: #dbc1a3;
}

    .product-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 32px #97744b47;
    }

.card-ribbon {
    position: absolute;
    top: 13px;
    right: -3rem;
    z-index: 10;
    width: 160px;
    height: 3rem;
    background: linear-gradient(135deg, #fd657b 0%, #53265E 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px -5px #cdaa82;
    text-align: center;
}

.image-container{
    padding:0.7rem;
}

.tile-caption {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-align: start;
    text-decoration-line: underline;
    text-decoration-color: #97744b;
    text-decoration-thickness: 1px;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2rem; 
}

.tile-img {
    width: 100%;
    height: 200px; 
    object-fit: contain;
    border-bottom: 1px solid #d3bea6;
}

.card-info {
    padding: 15px;
}

    .card-info h4 {
        font-size: 1.5rem;
        color: #478778; 
        margin: 0 0 10px;
    }

    .card-info h5 {
        font-size: 1rem;
        color: #343a4047;
        margin: 0;
        text-align: start;
    }

.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.item-health-label {
    background: #dbc1a3;
    color: #fff;
    padding: 5px 12px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    border-radius: 0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius);
}

    .item-health-label i {
        font-size: 18px;
        color: #fff;
        cursor: pointer;
    }

    .item-health-label .icon {
        font-size: 1rem;
        margin-left: 8px;
        color: #32CD32; 
    }

.add-to-basket {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #f9506b;
    color: #f1f1f1;
    font-size: 1rem;
    padding: 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,.2);
}

    .add-to-basket:hover {
        background-color: #ffffff;
        color: #dc3545;
        transform: scale(1.1);
    }

    .add-to-basket:active {
        background-color: #ffffff;
        color: #dc3545;
        transform: scale(1.1);
    }

.old-price {
    text-decoration: line-through;
    color: #6c757d73;
    font-size: 1.3rem;
    display: block;
    margin-top: 5px;
}

.label-not {
    font-size: 1rem !important;
    margin-left: 8px;
    color: #fff;
}





