/* Reusable Hover Underline Effect */
.hover-underline {
    position: relative;
    text-decoration: none;
    color: inherit;
    /* Inherit text color */
    font-weight: 500;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
}

.hover-underline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--hover-color, #007bff);
    /* Default to Bootstrap primary */
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.hover-underline:hover::after {
    width: 100%;
}

.hover-underline:hover {
    color: var(--hover-color, #007bff);
}

/* Active state (optional) */
.active.hover-underline {
    color: var(--hover-color, #007bff);
    font-weight: 600;
}

.active.hover-underline::after {
    width: 100%;
}

/* Currency / Language / Account Bar */
.marquee {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: marquee 10s linear infinite;
}

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

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

/* Hero Section */
.slide-bg {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right center;
    min-height: 500px;
}


/* Custom slick dots */
.slick-dots li.slick-active button {
    background-color: var(--bs-danger);
}


/* Top Category Bar */
#category-nav .cate-dropdown {
    position: unset !important;
}

#category-nav .cate-dropdown .cate-dropdown-menu {
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#category-nav .cate-dropdown:hover .cate-dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Category navigation styles */
#category-nav .category-item:first-of-type > a {
    border-left: none!important;
}
#category-nav .category-item:last-of-type > a {
    border-right: none!important;
}


#category-nav .category-item>a:hover {
    background-color: #f8f9fa;
    color: var(--bs-danger) !important;
}

.mega-menu {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.subcategory-link:hover {
    color: var(--bs-danger-dark) !important;
    transform: translateX(2px);
}

.child-category-item a:hover {
    color: var(--bs-danger) !important;
    transform: translateX(3px);
}

/* For responsive design */
@media (max-width: 992px) {
    #category-nav .category-item {
        flex-basis: 33.33%;
    }

    #category-nav .category-item:nth-child(4n) {
        border-right: 1px solid #f1f1f1;
    }

    #category-nav .category-item:nth-child(3n) {
        border-right: none;
    }
}

/* Featured Categories Slider */
.gs-category-showcase .category-item:hover .cate-image-overlay {
    opacity: 1 !important;
}

.gs-category-showcase .category-item:hover .pulse-ring {
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

.gs-category-showcase .category-item:hover .category-name {
    color: var(--bs-danger) !important;
}

.gs-category-showcase .section-title {
    font-size: 1.75rem;
}



/* Custom Scrollbar for the entire website */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Hide scrollbar arrows (Only works on WebKit browsers like Chrome, Edge, and Safari) */
::-webkit-scrollbar-button {
    display: none;
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
    background: var(--bs-danger-bg-subtle);
    /* Change background color */
    border-radius: 10px;
}

/* Scrollbar Thumb */
::-webkit-scrollbar-thumb {
    background: var(--bs-danger);
    /* Scrollbar color */
    border-radius: 10px;
    border: 2px solid var(--bs-danger-bg-subtle);
}

::-webkit-scrollbar-thumb:hover {
    background: #b30012;
}

::-webkit-scrollbar-button {
    display: none;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bs-danger) var(--bs-danger-bg-subtle);
}

/* For Edge and IE */
body {
    -ms-overflow-style: none;
}


/* Custom Product Card */

.product-card {
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.effect-container {
    perspective: 1000px;
    width: 160px;
    height: 200px;
}

.product-image {
    transform-style: preserve-3d;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    transform: rotateY(30deg) scale(1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    will-change: transform;
}

.product-card:hover .product-image {
    transform: rotateY(0deg) scale(1.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.brand-info-outer {
    width: 30px;
    transform-origin: 0 50%;
    transition: transform 0.2s ease-in-out;
    transform: rotateY(100deg);
    background: linear-gradient(315deg, rgba(101, 0, 94, 1) 3%, rgba(60, 132, 206, 1) 38%, rgba(48, 238, 226, 1) 68%, rgba(255, 25, 25, 1) 85%);
    /* animation: gradient 15s ease infinite; */
    background-position: 0% 0%;
    background-size: 400% 400%;
    background-attachment: fixed;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

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


.product-card:hover .product-image .brand-info-outer {
    transform: rotateY(5deg);
}

.brand-info-outer .brand-info-inner {
    writing-mode: sideways-lr;
    transform: rotateY(185deg);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
    background: linear-gradient(to bottom right, rgba(0, 123, 255, 0.3), rgba(40, 167, 69, 0.3));
    mask-image: url('data:image/svg+xml,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="white" fill-opacity="1" d="M0,160L48,149.3C96,139,192,117,288,112C384,107,480,117,576,144C672,171,768,213,864,224C960,235,1056,213,1152,186.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    mask-repeat: no-repeat;
    mask-size: cover;
}


/* Home Page Product Cards */
#featured-product .slick-list,
#best-selling-product .slick-list {
    padding: 1rem 0rem
}

#featured-product .slick-dots,
#best-selling-product .slick-dots {
    margin-top: 0px;
}


/* Footer */
.hover-danger a:hover {
    color: var(--bs-danger) !important;
    transition: color 0.3s ease;
}

.social-links a:hover {
    opacity: 0.8;
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.list-unstyled a:hover {
    color: var(--bs-danger) !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}




/* Product Specific Page (product.blade.ph) -- Tabs */
.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
}

.rating input {
    display: none;
}

.rating label {
    font-size: 1.5rem;
    color: var(--bs-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

/* Change star color when selected */
.rating input:checked~label {
    color: var(--bs-warning);
}

/* Hover effect */
.rating label:hover,
.rating label:hover~label {
    color: var(--bs-warning);
}