.folded-ribbon {
    position: relative;
    display: inline-block;
    background: #e60000;
    color: #fff;
    font-weight: bold;
    font-size: 22px;
    /* increased text size */
    padding: 16px 45px;
    /* bigger padding for larger ribbon */
    text-transform: uppercase;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

/* Right folded tail */
.folded-ribbon:after {
    content: "";
    position: absolute;
    top: 0;
    right: -30px;
    /* bigger offset */
    border-top: 30px solid #e60000;
    /* taller triangle */
    border-right: 30px solid transparent;
}

/* Left folded tail */
.folded-ribbon:before {
    content: "";
    position: absolute;
    bottom: 0;
    right: -30px;
    /* bigger offset */
    border-left: 30px solid #e60000;
    /* wider base */
    border-top: 30px solid transparent;
    /* taller */
}

.ribbon-container {
    position: relative;
    overflow: hidden;
    /* ensures ribbon doesn’t overflow out of td */
}

.corner-ribbon {
    width: 80px;
    background: #e60000;
    color: #fff;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    line-height: 30px;
    position: absolute;
    top: 34px;
    right: 0;
    transform: rotate(45deg) translate(20%, -50%);
    transform-origin: top right;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-radius: 2px;
    overflow: hidden;
    /* important for clipping shine */
}

/* Automatic shining animation */
.corner-ribbon::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0.6) 50%,
            transparent 100%);
    animation: ribbonShine 3s ease-in-out infinite;
}

/* Keyframes to sweep shine across the ribbon */
@keyframes ribbonShine {
    0% {
        left: -100%;
    }

    40% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.best-seller-badge {
    position: absolute;
    top: -10px;
    right: -15px;
    width: 35%;
    /* scales based on td width */
    max-width: 120px;
    /* don’t let it get too large */
    height: auto;
    z-index: 10;
}

.custom-modal {
    position: fixed;
    bottom: 20px;
    /* distance from bottom */
    right: 20px;
    /* distance from right */
    margin: 0;
    max-width: 400px;
    /* adjust modal width */
    width: auto;
    pointer-events: auto;
}

.custom-modal .modal-content {
    border-radius: 8px;
    overflow: hidden;
}

/* Remove Bootstrap modal fade translate effect */
.modal.fade .modal-dialog {
    transition: none;
}

.reveal-link {
  overflow: hidden;
  position: relative;
  width: 40px; /* show only icon initially */
  transition: width 1s cubic-bezier(0.42, -0.5, 1, 1);
}

.reveal-link:hover {
  width: 170px; /* expand smoothly to show text */
}

.reveal-text {
  opacity: 0;
  transform: translateX(-20px);
  white-space: nowrap;
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
    transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.reveal-link:hover .reveal-text {
  opacity: 1;
  transform: translateX(0);
}

.reveal-link i {
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.35s;
}

.reveal-link:hover i {
  transform: rotate(20deg);
}

@media (max-width: 576px) {
  #kt_header img {
    width: 150px !important;
  }
  #kt_header .fs-6 {
    font-size: 0.85rem !important;
  }
  #kt_header .btn {
    padding: 0.4rem 0.5rem !important;
  }
  #kt_header .d-flex.align-items-center.flex-wrap {
    justify-content: start !important;
    gap: 8px !important;
  }
  #kt_header .container-fluid {
    padding: 0 12px !important;
  }
  .banner-img{
     max-width: 100%;
  height: auto;
  }
}