/* Product Carousel Styles */

.project-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
}

.product-carousel {
    display: flex;
    gap: 20px;
    scroll-behavior: smooth;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}

.project-one .project-one__single
{
   margin: 0 10px !important;
}

/* Hide scrollbar while keeping functionality */
.product-carousel::-webkit-scrollbar {
    height: 0;
}

.product-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.product-carousel-item {
    flex: 0 0 calc(25% - 14px);
    min-width: 280px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #9dc33b;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background: #8cb330;
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-nav i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Card Styles */
.carousel-item-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carousel-item-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-one__single .project-one__content
{
  position: relative;
}
.project-one__single .project-one__content .thm-btn
{
     position: absolute;
    bottom: 10px;
    padding: 3px 20px;
    border-radius: 7px;
        font-size: 12px;
}

.project-one__single {
    border: 1px solid #ffffff30;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.project-one__single:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.project-one__img-box {
    flex-shrink: 0;
}

.project-one__img {
    height: 220px;
    overflow: hidden;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    position: relative;
}

.project-one__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.project-one__arrow {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(157, 195, 59, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    color: white;
    font-size: 16px;
}

.project-one__single:hover .project-one__arrow {
    opacity: 1;
    transform: scale(1.1);
}

.project-one__single:hover .project-one__arrow::before {
    content: '→';
}

.project-one__content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-one__sub-title {
    font-size: 12px;
    color: #9dc33b;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.project-one__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
}

.product-price {
    color: #9dc33b;
    font-weight: 700;
    font-size: 16px;
    margin-top: 8px;
}

.product-price-original {
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
    font-size: 13px;
}

.thm-btn {
    background: #9dc33b;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.thm-btn:hover {
    background: #8cb330;
    transform: translateY(-2px);
}

/* Loading Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #9dc33b;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 1400px) {
    .product-carousel-item {
        flex: 0 0 calc(33.3333% - 10px);
        min-width: 250px;
    }
}
@media (max-width: 1200px) {
    .product-carousel-item {
       flex: 0 0 calc(33.3333% - 10px);
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .product-carousel-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 220px;
    }

    .project-carousel-wrapper {
        gap: 15px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .project-one__img {
        height: 180px;
    }

    .project-one__content {
        padding: 12px;
    }

    .project-one__title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
     .product-carousel-item {
        flex: 0 0 calc(100% - 10px);
        min-width: 220px;
    }
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .product-carousel {
        gap: 15px;
    }

    .project-one__img {
        height: 150px;
    }

    .project-carousel-wrapper {
        gap: 10px;
    }
}
