/* Cart Items */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: rgba(33, 37, 41, 0.05);
}

.divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 1.5rem;
}

/* Color Options */
.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
    cursor: pointer;
    border: 1px solid #dee2e6;
    position: relative;
}

.color-option.selected::after {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
}

/* Buttons */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-dark:hover {
    opacity: 0.9;
}

.btn-dark:hover {
    background-color: var(--secondary-color);
    color: white;
}

.heroBtn {
    width: fit-content;
}

/* Inputs */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(33, 37, 41, 0.25);
}

/* Badges */
.badge {
    font-size: 0.6rem;
}

/* Modal styles to match index.html */
.bgmodal {
    background-color: #fff;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

/* Carousel Mobile View */
@media (max-width: 768px) {
    #recommendedCarousel .carousel-item .row {
        display:449px flex;
        flex-wrap: nowrap;
        justify-content: center;
        overflow: hidden;
        margin: 0;
        padding: 0;
    }

    #recommendedCarousel .carousel-item .col {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        display: none;
        padding: 0;
    }

    #recommendedCarousel .carousel-item.active .col:first-child {
        display: block;
    }

    #recommendedCarousel .carousel-item .card {
        width: 100%;
        max-width: 300px; /* Matches typical card width in desktop view */
        margin: 0 auto;
        padding: 0;
    }

    #recommendedCarousel .carousel-item .card img {
        height: 300px; /* Maintains original image height */
        object-fit: cover;
    }

    /* Override Bootstrap's mx-5 margin in mobile view */
    #recommendedCarousel .carousel-item .card.mx-5 {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .cart-item {
        flex-direction: column;
    }
    
    .cart-item img {
        margin-bottom: 1rem;
        width: 100% !important;
    }
    
    .cart-item .text-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .cart-item .col-md-6 {
        padding-left: 0 !important;
    }

    /* Additional responsive styling from index.html */
    .w-40 {
        width: 100% !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .sticky-top {
        position: static !important;
    }
}

/* Additional styles to match index.html */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.rounded-3 {
    border-radius: 0.5rem !important;
}

.shadow-sm {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-muted {
    color: #6c757d !important;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* Match specific styling from index.html */
.w-40 {
    width: 40%;
}

/* Section button styling from index.html */
.sectionbtn {
    padding: 8px 16px;
    font-size: 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.cart-item:hover{
    cursor: pointer;
}