/* STANDARD FULL-WIDTH CAROUSEL WITH SMOOTH ANIMATIONS */

/* Reset Bootstrap carousel defaults for clean full-width display */
#productsCarousel {
    overflow: hidden !important;
    perspective: none !important;
}

#productsCarousel .carousel-inner {
    overflow: hidden !important;
    padding: 0 0 60px 0 !important; /* Add bottom padding for indicators */
    position: relative !important;
    height: 600px !important;
}

#productsCarousel .carousel-item {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform: translateX(100%) !important;
    z-index: 1 !important;
}

/* Active slide - centered and visible */
#productsCarousel .carousel-item.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    z-index: 2 !important;
    position: relative !important;
}

/* Slide transitions */
#productsCarousel .carousel-item-next {
    transform: translateX(100%) !important;
    opacity: 0 !important;
}

#productsCarousel .carousel-item-prev {
    transform: translateX(-100%) !important;
    opacity: 0 !important;
}

#productsCarousel .carousel-item-next.carousel-item-start,
#productsCarousel .carousel-item-prev.carousel-item-end {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

#productsCarousel .carousel-item.active.carousel-item-start {
    transform: translateX(-100%) !important;
    opacity: 0 !important;
}

#productsCarousel .carousel-item.active.carousel-item-end {
    transform: translateX(100%) !important;
    opacity: 0 !important;
}

/* Full-width carousel slide container */
#productsCarousel .carousel-slide {
    background: #ffffff !important;
    border-radius: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    height: 540px !important; /* Reduced to accommodate indicators */
    box-shadow: none !important;
    border: none !important;
}

/* Column proportions for full-width display */
.carousel-item .col-lg-7 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

.carousel-item .col-lg-5 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

/* Full-height image container */
.carousel-image-container {
    width: 100%;
    height: 540px !important; /* Reduced to accommodate indicators */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 2rem;
    box-sizing: border-box;
}

/* Standardized image sizing for full display */
.carousel-product-image {
    max-width: 100%;
    max-height: 500px !important;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Full-height content styling */
.carousel-content {
    width: 100%;
    height: 540px !important; /* Reduced to accommodate indicators */
    padding: 2rem !important; /* Reduced padding to give more content space */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Changed from center to start */
    background: #ffffff !important;
    color: #1f2937 !important;
    overflow-y: auto;
    box-sizing: border-box !important;
}

/* Enhanced typography for full display */
.carousel-title {
    color: #1f2937 !important;
    font-weight: 700;
    font-size: 2.2rem !important; /* Slightly smaller to fit better */
    line-height: 1.1 !important; /* Tighter line height */
    margin-bottom: 1rem !important; /* Reduced margin */
    text-shadow: none;
    margin-top: 0 !important; /* Ensure no top margin */
}

.carousel-description {
    color: #6b7280 !important;
    font-size: 1.1rem !important; /* Slightly smaller */
    line-height: 1.5 !important; /* Tighter line height */
    margin-bottom: 1.5rem !important; /* Reduced margin */
}

/* Enhanced highlights panel */
.product-highlights {
    background: #f8f9fa;
    padding: 1rem !important; /* Reduced padding */
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem !important; /* Reduced margin */
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem !important; /* Reduced margin */
    color: #1f2937;
    font-size: 0.95rem !important; /* Slightly smaller */
}

.highlight-item i {
    margin-right: 1rem !important;
    flex-shrink: 0;
    font-size: 1.2rem;
}

/* Enhanced button styling */
.carousel-actions {
    margin-bottom: 1.5rem !important; /* Reduced margin */
}

.carousel-actions .btn {
    padding: 0.75rem 1.5rem !important; /* Reduced padding */
    font-weight: 600;
    border-radius: 0.5rem;
    font-size: 0.95rem !important; /* Slightly smaller */
    margin-right: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.carousel-actions .btn-primary {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.carousel-actions .btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
}

.carousel-actions .btn-outline-primary {
    border-color: #3b82f6;
    color: #3b82f6;
}

.carousel-actions .btn-outline-primary:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* Enhanced stats styling */
.product-stats {
    margin-top: auto;
    padding-top: 1rem !important; /* Reduced padding */
    border-top: 2px solid #e5e7eb;
}

.stat-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem !important;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem !important;
}

/* Enhanced badge styling */
.badge.bg-primary {
    background-color: #3b82f6 !important;
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
}

/* Enhanced carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 80px !important;
    height: 80px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e5e7eb !important;
}

.carousel-control-prev {
    left: 2rem !important;
}

.carousel-control-next {
    right: 2rem !important;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1 !important;
    background: #ffffff !important;
    border-color: #3b82f6 !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.carousel-control-icon {
    background: none !important;
    width: auto !important;
    height: auto !important;
}

.carousel-control-icon i {
    font-size: 1.5rem !important;
    color: #3b82f6 !important;
}

/* Enhanced carousel indicators */
.carousel-indicators {
    bottom: 1rem !important;
    margin-bottom: 0 !important;
    z-index: 15 !important;
    position: absolute !important;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    margin: 0 8px !important;
    transition: all 0.3s ease !important;
}

.carousel-indicators button.active {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    transform: scale(1.3) !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    #productsCarousel .carousel-inner {
        height: 550px !important;
        padding: 0 0 50px 0 !important;
    }
    
    #productsCarousel .carousel-slide,
    .carousel-image-container,
    .carousel-content {
        height: 500px !important;
    }
    
    .carousel-title {
        font-size: 2.2rem !important;
    }
    
    .carousel-content {
        padding: 2rem !important; /* Consistent reduced padding */
    }
}

@media (max-width: 992px) {
    .carousel-item .col-lg-7,
    .carousel-item .col-lg-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    #productsCarousel .carousel-inner {
        height: 700px !important;
        padding: 0 0 50px 0 !important;
    }
    
    #productsCarousel .carousel-slide {
        height: 650px !important;
    }
    
    .carousel-image-container {
        height: 325px !important;
    }
    
    .carousel-content {
        height: 325px !important;
        padding: 1.5rem !important; /* Reduced padding for tablet */
    }
    
    .carousel-title {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .carousel-description {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    #productsCarousel .carousel-inner {
        height: 600px !important;
        padding: 0 0 40px 0 !important;
    }
    
    #productsCarousel .carousel-slide {
        height: 560px !important;
    }
    
    .carousel-image-container {
        height: 280px !important;
        padding: 1rem;
    }
    
    .carousel-content {
        height: 280px !important;
        padding: 1.25rem !important; /* Reduced padding for mobile */
    }
    
    .carousel-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .carousel-description {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .product-highlights {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .carousel-actions .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 60px !important;
        height: 60px !important;
    }
    
    .carousel-control-prev {
        left: 1rem !important;
    }
    
    .carousel-control-next {
        right: 1rem !important;
    }
    
    .carousel-control-icon i {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 576px) {
    #productsCarousel .carousel-inner {
        height: 500px !important;
        padding: 0 0 40px 0 !important;
    }
    
    #productsCarousel .carousel-slide {
        height: 460px !important;
    }
    
    .carousel-image-container {
        height: 230px !important;
    }
    
    .carousel-content {
        height: 230px !important;
        padding: 1rem !important; /* Minimal padding for small mobile */
    }
    
    .carousel-title {
        font-size: 1.5rem !important;
    }
    
    .carousel-description {
        font-size: 0.95rem !important;
    }
    
    .carousel-actions .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Animation keyframes for smooth entrance effects */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Smooth focus states for accessibility */
.carousel-control-prev:focus,
.carousel-control-next:focus,
.carousel-indicators button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Performance optimizations */
#productsCarousel * {
    will-change: transform, opacity;
}

#productsCarousel .carousel-item {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
