html,
body {
    height: 100%;
}

.scrolling-text-container {
    width: 100%;
    overflow: hidden;
    padding: 5px 0;
    white-space: nowrap;
    font-size: 16px;
    text-align: center;
    line-height: 1;
}

.marquee {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.marquee span {
    display: inline-block;
    padding: 0 200px;
}

.custom-search-input {
    width: 400px;
}

@media (min-width: 576px) {
    .custom-search-input {
        width: 80%;
    }
}

@media (min-width: 768px) {
    .custom-search-input {
        width: 70%;
    }
}

@media (min-width: 992px) {
    .custom-search-input {
        width: 60%;
    }
}

html,
body {
    height: 100%;
}

.link-body-emphasis:hover {
    color: #DC3545 !important;
}

.text-justify {
    text-align: justify;
}

textarea {
    resize: none;
}


/*  Light Slider */
#lightSlider {
    width: 100%;
}

/* Ensure <li> also has height */
#lightSlider li {
    width: 100%;
    height: 100%; /* make sure it fills the slider height */
}

/* Style for the image */
#lightSlider li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive height control for li */
@media (max-width: 576px) {
    #lightSlider li {
        height: 400px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    #lightSlider li {
        height: 400px;
    }
}

@media (min-width: 769px) {
    #lightSlider li {
        height: 600px;
    }
}

#wishList .card-body img,
#cart .card-body img {
    max-width: 250px;
    width: 100%;
    height: auto;
}

@media (max-width: 576px) {

    #wishList .card-body img,
    #cart .card-body img {
        max-width: 300px;
    }
}

.input-group.cart-input-group {
    width: 120px;
    height: 30px;
}

.input-group.cart-input-group .form-control {
    width: 60px;
    height: 30px;
}

.input-group.cart-input-group button {
    width: 30px;
    height: 30px;
}


#orderList .card-order,
#site .card-site,
#shop .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#orderList .card-order:hover,
#site .card-site:hover,
#shop .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#site .card-site .card-title,
#shop .card .card-title {
    transition: color 0.3s ease;
}

#orderList .card-order .card-body,
#site .card-site .card-body,
#shop .card .card-body {
    transition: background-color 0.3s ease;
}

#site .card-site .user-star-rating,
#shop .card .user-star-rating {
    transition: color 0.3s ease;
}


#site .card-site .card-text #shop .card .card-text {
    transition: color 0.3s ease;
}


#colRating {
    display: flex;
    justify-content: center;
    align-items: center;
}

#tableStarRating {
    width: auto;
    table-layout: fixed;
}

.stardata,
.ratedata {
    text-align: center;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
}

.loader-message {
    color: #fff;
    font-size: 18px;
    margin-top: 15px;
    font-weight: bold;
}

/* Cart styles */
.cart {
    width: 4em;
    height: 4em;
    margin: 0 auto 1.5em auto;
}

.cart__lines,
.cart__top,
.cart__wheel1,
.cart__wheel2,
.cart__wheel-stroke {
    animation: cartLines 2s ease-in-out infinite;
}

.cart__top {
    animation-name: cartTop;
}

.cart__wheel1 {
    animation-name: cartWheel1;
    transform: rotate(-0.25turn);
    transform-origin: 43px 111px;
}

.cart__wheel2 {
    animation-name: cartWheel2;
    transform: rotate(0.25turn);
    transform-origin: 102px 111px;
}

.cart__wheel-stroke {
    animation-name: cartWheelStroke;
}

.cart__track {
    stroke: #fff;
}

/* Keyframes */
@keyframes cartLines {
    from, to {
        opacity: 0;
    }
    8%, 92% {
        opacity: 1;
    }
}

@keyframes cartTop {
    from {
        stroke-dashoffset: -338;
    }
    50% {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 338;
    }
}

@keyframes cartWheel1 {
    from {
        transform: rotate(-0.25turn);
    }
    to {
        transform: rotate(2.75turn);
    }
}

@keyframes cartWheel2 {
    from {
        transform: rotate(0.25turn);
    }
    to {
        transform: rotate(3.25turn);
    }
}

@keyframes cartWheelStroke {
    from, to {
        stroke-dashoffset: 81.68;
    }
    50% {
        stroke-dashoffset: 40.84;
    }
}

#badgeLightSlider {
    margin-right: 12px;
}

#orderDetail .status-circle {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#orderDetail .icon-size {
    font-size: 1.2rem;
}

#orderDetail .small-text {
    font-size: 0.875rem;
}


@media (max-width: 576px) {
    #orderDetail .icon-size {
        font-size: 0.5rem;
    }

    #orderDetail .small-text {
        font-size: 0.5rem;
    }

    #orderDetail .status-circle {
        width: 20px;
        height: 20px;
    }
}

.underline-heading {
    display: inline-block;
    margin-bottom: 5px;
    position: relative;
}

.underline-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: white;
}


/* Toggle Switch Style */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 100px;
    height: 40px;
}

/* Hide default checkbox */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider Style */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

/* Icon Style */
.icon-on,
.icon-off {
    font-size: 16px;
    color: white;
    transition: 0.4s;
    font-weight: bold;
}

/* Circle inside the switch */
.slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    border-radius: 0px;
    left: 5px;
    bottom: 5px;
    background-color: white;
    transition: 0.4s;
}

/* When the switch is turned on */
input:checked+.slider {
    background-color: #212529;
}

input:checked+.slider:before {
    transform: translateX(60px);
}

input:checked+.slider .icon-on {
    opacity: 1;
}

input:checked+.slider .icon-off {
    opacity: 0;
}

/* Responsive styling */
@media (max-width: 600px) {
    .toggle-switch {
        width: 80px;
        height: 35px;
    }

    .slider:before {
        height: 25px;
        width: 25px;
    }

    .icon-on,
    .icon-off {
        font-size: 14px;
    }

    input:checked+.slider:before {
        transform: translateX(40px);
    }
}

.fixed-height-address-card {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fixed-height-address-card .card-body {
    flex-grow: 1; /* Ensures body fills available space */
}

/* Bottom menu styling */
.bottom-menu {
    display: none; /* Hidden by default */
    position: fixed; /* Fix it at the bottom */
    bottom: 0; /* Ensure it's at the bottom */
    left: 0;
    right: 0;
    z-index: 999; /* Make sure it's on top */
    background-color: #343a40;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
}

/* Show the bottom menu only on small devices */
@media (max-width: 991px) {
    footer {
        padding-bottom: 60px;
    }
    
    .bottom-menu {
        display: block;
    }

    .bottom-menu .row {
        margin: 0;
    }

    .bottom-menu .col-3 {
        padding: 0;
    }

    .bottom-menu .col-3 a {
        color: white;
        display: block;
        padding: 10px;
        text-align: center;
    }

    .bottom-menu .col-3 a:hover {
        background-color: #495057;
    }

    .bottom-menu i {
        font-size: 20px;
    }

    .bottom-menu div {
        font-size: 12px;
    }
}

.custom-offcanvas {
    width: 50% !important;
    max-width: 350px;
}

.custom-offcanvas .offcanvas-body {
    padding-left: 0 !important;
}

.custom-offcanvas .list-group {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.custom-offcanvas .list-group-item {
    background: transparent !important;
    border: none !important;
}

.custom-offcanvas .list-group-item a {
    display: block;
    text-align: left;
}

#loadMoreBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#productLoader {
    margin-left: 10px;
}

#loadMoreReviewsBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#reviewLoader {
    margin-left: 10px;
}

.justify-text {
    text-align: justify !important;
}

.horizontal-scroll-wrapper {
    overflow-x: auto;
    -ms-overflow-style: none;  /* Hide scrollbar for IE */
    scrollbar-width: none;     /* Hide scrollbar for Firefox */
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none;  /* Hide scrollbar for Webkit browsers */
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 0.85rem;     /* Smaller heading */
    }

    .carousel-caption p {
        font-size: 0.75rem;     /* Smaller paragraph */
        margin-bottom: 0.5rem;
    }

    .carousel-caption .small-btn {
        padding: 0.3rem 0.6rem; /* Smaller button padding */
        font-size: 0.7rem;      /* Smaller button text */
    }
}

@media (max-width: 400px) {
    .carousel-caption h5 {
        font-size: 0.75rem;
    }

    .carousel-caption p {
        font-size: 0.65rem;
    }

    .carousel-caption .small-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
}


/* Option buttons with rounded-0 */
.variant-option {
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
  border-width: 1.5px;
}
.variant-option:hover:not(:disabled) {
  background-color: #343a40;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.variant-option:disabled {
  opacity: 0.5;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Active option style */
.variant-option.active {
  background-color: #212529;
  color: #fff;
  border-color: #212529;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

/* Quantity buttons hover */
#decreaseQty:hover, #increaseQty:hover {
  background-color: #495057;
  transition: background-color 0.25s ease;
}

.qty-popover-sm.bs-popover-top .popover-body {
    font-size: 0.75rem;  /* Smaller text */
}

.order-tracker {
    position: relative;
    counter-reset: step;
}

.order-tracker::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #dee2e6;
    z-index: 1;
}

.order-tracker .step {
    position: relative;
    z-index: 2;
}

.order-tracker .circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    font-size: 20px;
    color: white;
    box-shadow: 0 0 0 4px white;
    transition: background-color 0.3s ease;
}

.order-tracker .text {
    margin-top: 10px;
}

.order-tracker .small {
    font-size: 0.75rem;
}

@media (max-width: 576px) {
    .order-tracker::before {
        top: 18px;
        /* Aligns line with smaller circles */
        height: 2px;
        /* Slightly thinner line */
    }

    .order-tracker .circle {
        width: 35px;
        height: 35px;
        font-size: 16px;
        box-shadow: 0 0 0 2px white;
    }

    .order-tracker .text {
        font-size: 0.7rem;
        margin-top: 6px;
    }

    .order-tracker .small {
        font-size: 0.50rem;
    }
}

.carousel-shop-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
}

@media (max-width: 768px) {

    /* tablets and below */
    .carousel-shop-btn {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

@media (max-width: 576px) {

    /* mobile */
    .carousel-shop-btn {
        font-size: 0.65rem;
        padding: 3px 6px;
    }
}