/********** Template CSS **********/
/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

img.animated.pulse {
    animation-duration: 5s;
}

/*** Product Detail Styles ***/
.bg-gradient-primary {
    background: linear-gradient(135deg, #494fa1 0%, #00989f 50%, #31b886 100%);
}

.product-gallery .main-image-container {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.product-gallery .main-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.product-gallery .main-image-container:hover img {
    transform: scale(1.02);
}

.highlight-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.rating-section {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.rating-section:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stars i {
    transition: all 0.3s ease;
}

.stars:hover i {
    transform: scale(1.2);
}

.price-section {
    transition: all 0.3s ease;
}

.price-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.description-section .card,
.benefits-section .card,
.features-section .card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.description-section .card:hover,
.benefits-section .card:hover,
.features-section .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.benefit-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefit-item:hover {
    transform: translateX(5px);
    background: rgba(40, 167, 69, 0.15) !important;
    border-left: 3px solid #28a745 !important;
}

.feature-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.cta-section .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-section .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-section .btn:hover::before {
    left: 100%;
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-gallery .main-image-container {
        padding: 2rem !important;
    }
    
    .highlight-card {
        padding: 1.5rem !important;
    }
    
    .price-section {
        padding: 2rem !important;
    }
    
    .benefit-item,
    .feature-item {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .product-gallery .main-image-container {
        padding: 1rem !important;
    }
    
    .highlight-card {
        padding: 1rem !important;
    }
    
    .price-section {
        padding: 1.5rem !important;
    }
    
    .cta-section .btn {
        padding: 0.75rem 1rem !important;
    }
}

/*** Contact Info Cards ***/
.contact-info-item {
    position: relative;
    overflow: hidden;
}

.contact-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contact-info-item:hover::before {
    left: 100%;
}

.contact-info-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.contact-info-item .icon-wrapper {
    transition: all 0.3s ease;
}

.contact-info-item:hover .icon-wrapper {
    transform: scale(1.1);
    background: rgba(255,255,255,0.3) !important;
}

.contact-info-item:hover .icon-wrapper i {
    transform: scale(1.1);
}

.contact-info-item .icon-wrapper i {
    transition: transform 0.3s ease;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary {
    color: var(--bs-white);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Navbar ***/
.sticky-top {
    top: -150px;
    transition: .5s;
}

.navbar {
    padding: 11px 0 !important;
    height: 85px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 45px;
    padding: 0;
    color: var(--bs-dark);
    font-weight: 500;
    transition: .5s;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        padding: 0 15px;
        background: var(--bs-white);
    }

    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Hero Header ***/
.hero-header {
    position: relative;
    margin-top: -150px;
    padding-top: 12rem;
    padding-bottom: 6rem;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

@media (max-width: 575.98px) {
    .hero-header {
      /* padding: 30px 0; */
    }
    
    .hero-header h1 {
      font-size: 2rem !important;
    }
    
    .hero-header img {
      /* max-height: 40vh; */
    }
    
    .hero-header .btn {
      width: 100%;
      margin: 0.5rem 0;
    }
  }

.hero-header::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.hero-header .container {
    position: relative;
    z-index: 1;
}

.hero-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-light);
}


/*** Feature ***/
.feature-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.feature-item .border {
    position: relative;
    border-color: rgba(255, 255, 255, .2) !important;
    z-index: 1;
}


/*** Deal ***/
.deal {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.deal::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.deal .bg-white {
    position: relative;
    z-index: 1;
}

.deal .cdt span {
    display: block;
    font-size: 16px;
    font-style: italic;
    font-weight: 200;
    text-transform: capitalize;
}


/*** How To Use ***/
.how-to-use {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.how-to-use::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.how-to-use .container {
    position: relative;
    z-index: 1;
}

.how-to-use .border {
    border-color: rgba(255, 255, 255, .2) !important;
}


/*** Product ***/
.product-item {
    transition: .1s;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.product-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(144, 188, 121, .25);
    transform: translateY(-5px);
}

.product-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}

/* Product Image Container */
.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 15px 0 0;
    transition: all 0.3s ease;
    padding: 20px;
}

.product-image-container:hover {
    background: #e9ecef;
}

/* Product Image */
.product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.product-image-container a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

@keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-20px);
    }
    100% {
      transform: translateY(0px);
    }
  }


  .img-responsive {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .product-image {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .hero-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  }

  .feature-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
  }

  @media (max-width: 768px) {
    .product-image {
      height: 250px;
    }
    
    .hero-image {
      max-height: 60vh;
    }
    
    .feature-image {
      max-height: 300px;
    }
  }

  @media (max-width: 576px) {
    .product-image {
      height: 200px;
    }
    
    .hero-image {
      max-height: 50vh;
    }
    
    .feature-image {
      max-height: 250px;
    }
  }

  /* Product Card Styles */
  .product-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
  }

  .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  }

  .product-item .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .product-item:hover .product-overlay {
    opacity: 1;
  }

  .product-item:hover img {
    transform: scale(1.1);
  }

  .product-item .btn-square {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .product-item .btn-square:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }

  .product-item .btn-primary {
    transition: all 0.3s ease;
  }

  .product-item .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .product-image-container {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: #f8f9fa;
  }

  .product-image-container img {
    transition: transform 0.5s ease;
    max-height: 350px;
    object-fit: contain;
  }

  .product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(90deg, #494fa1, #00989f);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
  }

  .product-rating {
    color: #ffc107;
    /* margin-bottom: 0.5rem; */
  }

  .product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
  }

  .product-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00989f;
  }

  .product-price-original {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 1rem;
  }
.product-image-container a:hover {
    text-decoration: none;
    color: inherit;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

/* Product Card Content */
.product-item .text-center {
    padding: 20px 15px;
    background: white;
    border-radius: 0 0 15px 15px;
}

/* Product Title */
.product-item .h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.product-item:hover .h5 {
    color: var(--bs-primary);
}

/* Product Description */
.product-item .text-muted {
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Price Section */
.product-item .d-flex.justify-content-center {
    margin-bottom: 20px;
}

.product-item .text-primary {
    font-weight: 700;
    font-size: 1.2rem;
}

.product-item .text-decoration-line-through {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Rating Stars */
.product-item .fa-star {
    color: #ffc107;
    font-size: 0.9rem;
}

.product-item small.ms-2 {
    color: #6c757d;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-image-container {
        height: 220px;
        padding: 15px;
    }
    
    .product-image {
        max-width: 100%;
        max-height: 100%;
    }
    
    .product-item .text-center {
        padding: 15px 10px;
    }
}

@media (max-width: 576px) {
    .product-image-container {
        height: 200px;
        padding: 10px;
    }
    
    .product-image {
        max-width: 100%;
        max-height: 100%;
    }
    
    .product-item .h5 {
        font-size: 1rem;
    }
    
    .product-item .text-primary {
        font-size: 1.1rem;
    }
}


/*** Testimonial ***/
.testimonial {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.testimonial::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.testimonial .testimonial-carousel {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
    border-color: rgba(255, 255, 255, .2) !important;
    margin: 0 auto 20px auto;
    border-radius: 100px;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 3px solid rgba(255, 255, 255, .2);
    border-radius: 30px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--bs-dark);
}


/*** Blog ***/
.blog-item {
    transition: .1s;
}

.blog-item:hover {
    border-width: 0 !important;
    box-shadow: 0 0 35px rgba(144, 188, 121, .25);
}

.blog-item:hover a.btn {
    color: var(--bs-white);
    background: var(--bs-primary);
}


/*** Newsletter ***/
.newsletter {
    position: relative;
    background: url(../img/bg.png) center center no-repeat;
    background-size: cover;
}

.newsletter::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .1);
    clip-path: polygon(66% 0, 100% 0, 100% 100%, 33% 100%);
}

.newsletter .container {
    position: relative;
    z-index: 1;
}

.newsletter .form-control {
    background: rgba(255, 255, 255, .3);
}


/*** Footer ***/
.footer {
    position: relative;
    z-index: 1;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: var(--bs-body);
    font-weight: normal;
    transition: .3s;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 20px 0;
    margin-top: 25px;
    border-top: 3px solid var(--bs-light);
}

.footer .copyright a {
    color: var(--bs-body);
}

.footer .copyright a:hover {
    color: var(--bs-primary);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 3px solid var(--bs-light);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Footer Responsive Design */
@media (max-width: 991.98px) {
    .footer .py-0 {
        padding: 2rem 0 !important;
    }
    
    .footer .row.g-5 {
        --bs-gutter-y: 2rem;
    }
    
    .footer .navbar-brand img {
        height: 60px !important;
        margin-bottom: 1rem;
    }
    
    .footer h5 {
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .footer .py-0 {
        padding: 1.5rem 0 !important;
    }
    
    .footer .row.g-5 {
        --bs-gutter-y: 1.5rem;
    }
    
    .footer .navbar-brand img {
        height: 50px !important;
        margin-bottom: 0.75rem;
    }
    
    .footer h5 {
        margin-top: 1rem;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
    }
    
    .footer .btn.btn-link {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .footer p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .footer .py-0 {
        padding: 1rem 0 !important;
    }
    
    .footer .row.g-5 {
        --bs-gutter-y: 1rem;
    }
    
    .footer .navbar-brand img {
        height: 45px !important;
        margin-bottom: 0.5rem;
    }
    
    .footer h5 {
        margin-top: 0.75rem;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    .footer .btn.btn-link {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .footer p {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .footer .copyright {
        padding: 15px 0;
        margin-top: 20px;
    }
    
    .footer .copyright .text-center {
        font-size: 0.8rem;
    }
}