:root {
    --primary-color: #8dc73f;
    --secondary-color: #00581d;
    --tertiary-color: #f57224;
    --quaternary-color: #00581d;
    --quinary-color: #1b1f22;
    --senary-color: #f2f2f2;
    --septenary-color: #f0f0f0;
    --octonary-color: #e0e0e0;
}
html {
    scroll-behavior: smooth;
}

.category-dropdown {
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 0;
    box-shadow: 0 0 60px 0 #0000000d;
    width: 100%;
}

.category-dropdown a {
    border-bottom: 1px solid #1b1f2233;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.5sease;
}

.swiper-wrapper {
    width: 100%;
    height: max-content !important;
    -webkit-transition-timing-function: linear !important;
    transition-timing-function: linear !important;
    position: relative;
}

.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
    background: #cbff2d !important;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes slideShadow {
    0% {
        left: 100%;
        width: 0%;
    }

    100% {
        left: 0%;
        width: 100%;
    }
}

.shadow-slide {
    position: absolute;
    top: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: slideShadow 1s ease-in-out forwards;
}

@keyframes pulse-subtle {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }
}

.hover-pulse:hover {
    animation: pulse-subtle 0.5s ease-in-out;
}

@keyframes slideShadowCard {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 0.15;
    }
}

.shadow-animate {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(59, 130, 246, 0),
        rgba(59, 130, 246, 0.2)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
    pointer-events: none;
}

.cart-item:hover .shadow-animate {
    animation: slideShadowCard 0.5s forwards;
}

/* Skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.skeleton {
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 800px 104px;
    animation: shimmer 1.5s infinite linear;
    border-radius: 0.25rem;
    display: inline-block;
}

/* Button loading animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade transition */
.fade-transition {
    transition: opacity 0.3s ease-in-out;
}

@keyframes marquee {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.animate-marquee {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}

#main {
    transition: margin-left 0.3s;
    padding: 16px;
}

/* Mobile menu */
#mobile-menu.open {
    left: 0 !important;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    padding-left: 20px;
}

.submenu.active {
    max-height: 500px;
    overflow-y: auto;
}

.has-submenu > a::after {
    content: "▼";
    font-size: 12px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.has-submenu > a.active::after {
    content: "▲";
}

/* Spinner style */
.spinner {
    display: inline-block;
    animation: spin 1s linear infinite;
}

/* Define the spinning animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes checkmark {
    0% {
        stroke-dashoffset: 100;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 1s ease-in-out forwards;
    animation-delay: 0.5s;
}

@keyframes circle-fill {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.circle-fill {
    transform-origin: center;
    animation: circle-fill 0.5s ease-out forwards;
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

.progress-bar {
    width: 50%;
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #d5ff56;
    animation: progress 2s ease-out forwards;
}

@keyframes progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Remove number input arrows in Chrome, Safari, Edge, and Opera */
/* Remove arrows in Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove arrows in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.sidebar {
    transition: transform 0.3s ease-in-out;
}

.header {
    transition: transform 0.3s ease;
}

.overlay {
    transition: opacity 0.3s ease;
}

body.sidebar-open {
    overflow: hidden;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.social-icons a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown-content.active {
    max-height: 500px;
    /* Adjust based on content */
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.dropdown-arrow.active {
    transform: rotate(180deg);
}

.swiper-button-prev:after,
.swiper-rtl .swiper-button-next:after {
    width: 15px;
    content: "prev" !important;
    height: 15px;
    font-size: 17px !important;
    color: green;
    background: white;
    padding: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
}

.swiper-button-next:after,
.swiper-rtl .swiper-button-prev:after {
    width: 15px;
    content: "next" !important;
    height: 15px;
    font-size: 17px !important;
    color: green;
    background: white;
    padding: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    margin-right: -10px;
}
span[aria-current="page"] span {
    background-color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    color: white;
}