/* Fix for duplicate arrows in slider circle */
.slick-arrow:before {
    content: '' !important;
}

.slick-prev:before {
    content: ' ' !important; /* Left arrow icon */
}

/* Hero Section Styling */
.hero-slider {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Make text disappear during slide transition */
.slick-slide {
    transition: opacity 0.5s ease;
}

.slick-slide.slick-active .hero-content {
    opacity: 1;
    transition: opacity 0.8s ease 0.3s; /* Fade in after slide transition starts */
}

.slick-slide:not(.slick-active) .hero-content {
    opacity: 0;
    transition: opacity 0.3s ease; /* Faster fade out */
}

/* Remove blur effect from slides */
.bg-img-cover-center {
    filter: none !important;
    -webkit-filter: none !important;
}

.hero-slide {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    margin-bottom: 1.5rem !important;
}

.hero-divider {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 1.5rem auto;
    position: relative;
    overflow: hidden;
}

.hero-divider::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 50%;
    background: #fff;
    animation: slide 2s ease-in-out infinite;
}

@keyframes slide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(200%); }
    100% { transform: translateX(-100%); }
}

/* Button Styles */
.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
}

/* Slick Slider Customization */
.slick-dots {
    bottom: 30px !important;
}

.slick-dots li button:before {
    font-size: 12px;
    color: #fff;
    opacity: 0.5;
}

.slick-dots li.slick-active button:before {
    color: var(--primary);
    opacity: 1;
}

.slick-prev, .slick-next {
    width: 50px;
    height: 50px;
    z-index: 10;
    transition: all 0.3s ease;
}

.slick-prev { left: 30px; }
.slick-next { right: 30px; }

.slick-prev:before, .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 24px;
    color: #fff;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.slick-prev:before { content: '\f053'; }
.slick-next:before { content: '\f054'; }

.slick-prev:hover:before, 
.slick-next:hover:before {
    color: var(--primary);
    opacity: 1;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

/* Custom styles for full-screen hero section */
.vh-100-custom {
    height: 90vh !important;
    min-height: 600px !important;
    max-height: 100vh !important;
    overflow: hidden;
}

.max-height-100vh {
    max-height: 90vh !important;
}

/* Ensure the slider container takes full height */
.slider-home-01 {
    height: 90vh !important;
    min-height: 500px;
    max-height: 800px;
}

.slider-home-01 .slick-track,
.slider-home-01 .slick-list,
.slider-home-01 .box,
.slider-home-01 .bg-img-cover-center {
    height: 100%;
}

/* Make sure the slider items take full height */
.slider-home-01 .slick-slide > div {
    height: 100%;
}

/* Adjust the content positioning */
.slider-home-01 .my-auto {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* Ensure the background image covers the entire section */
.bg-img-cover-center {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Fix for the bottom content positioning */
.pos-fixed-bottom-right {
    bottom: 30px;
    right: 30px;
}

/* Mobile Hero Section */
.slider-home-mobile .box {
    height: 100vh;
    max-height: 700px;
    position: relative;
}

.slider-home-mobile .card {
    height: 100%;
    border: none;
    background: transparent;
}

.slider-home-mobile .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.slider-home-mobile .card-body {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
}

.slider-home-mobile .slick-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 4;
    margin: 0;
    padding: 0;
    text-align: center;
}

.slider-home-mobile .slick-dots li {
    display: inline-block;
    margin: 0 4px;
}

.slider-home-mobile .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid white;
    border-radius: 50%;
    background: transparent;
    text-indent: -9999px;
    overflow: hidden;
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 992px) {
    .canvas-toggle,
    .sidenav {
        display: none !important;
    }
}

.custom-dots-01 .slick-dots {
    color: #fff;
}

/* Disable animations on mobile devices */
@media (max-width: 767.98px) {
  /* Disable category animations */
  .slick-slider.custom-slider-01 [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  /* Disable product animations */
  .product[data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  
  /* Two products per row on mobile */
  .products-container {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
  }
  
  .products-container > [class*='col-'] {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 16px;
  }
  
  /* Ensure product cards take full width of their container */
  .products-container .card {
    height: 100%;
  }
}
