.carousel {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    position: relative;
    height: 500px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    opacity: 0.8;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.carousel-indicators button.active {
    background-color: #fff;
}

.slider-section {
    width: 100%;
    margin: 0 auto 2rem;
    background: #f8f9fa;
    padding: 3rem;
    border-radius: 0.5rem;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.image-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.slider-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0 1rem;
}

.slider-image {
    width: 100%;
    height: 800px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.slider-image:hover {
    transform: scale(1.02);
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.slider-button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 2rem;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.slider-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.carousel-image {
    cursor: pointer;
    transition: opacity 0.3s;
}

.carousel-image:hover {
    opacity: 0.9;
}

.image-zoom-container {
    overflow: hidden;
    max-width: 100%;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
    max-height: 100vh;
    object-fit: contain;
    transform-origin: center;
    transition: transform 0.3s ease-out;
    cursor: zoom-in;
}

@media (max-width: 992px) {
    .image-slider {
        grid-auto-columns: 100%;
    }
    
    .slider-container {
        width: 100%;
        margin-right: 0;
    }
}

@media (min-width: 992px) {
    .slider-container {
        max-width: 1000px;
    }
    
    .slider-image {
        height: 600px;
    }
}

@media (min-width: 1200px) {
    .slider-container {
        max-width: 1400px;
    }
    
    .slider-image {
        height: 800px;
    }
}

@media (min-width: 1400px) {
    .slider-container {
        max-width: 1600px;
    }
    
    .slider-image {
        height: 900px;
    }

    .slider-section {
        padding: 4rem;
    }
}

/* Order Form Styles */
.form-control-lg, .form-select-lg {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.card-header {
    border-bottom: 0;
}

.card-header .card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.order-item {
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.order-item:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
}

.total-price {
    font-size: 1.25rem;
    text-align: right;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Form validation styles */
.has-error .form-control,
.has-error .form-select {
    border-color: var(--bs-danger);
}

.help-block {
    color: var(--bs-danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .card-header .card-title {
        font-size: 1.25rem;
    }
    
    .form-control-lg, .form-select-lg {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}
