﻿/* wwwroot/css/site.css */
body {
    font-family: 'Inter', sans-serif;
    background-color: whitesmoke; /* Blackish-green */
    color: #00d1b2; /* Light gray for text readability */
}

.myBg {
    background: #950dcb;
    color: white;
}

.myFont {
    color: white;
}

[x-cloak] {
    display: none !important;
}
.dropdown-with-pointer {
    position: relative;
}

    .dropdown-with-pointer::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 20px;
        border: 5px solid transparent;
        border-bottom-color: white;
        opacity: 0;
        transform: translateY(-5px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

.navbar-item.has-dropdown:hover .dropdown-with-pointer::before {
    opacity: 1;
    transform: translateY(0);
}
.is-primary .navbar-link,
.is-primary .navbar-item {
    color: white;
}
.main-image {
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thumb-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    margin-right: 8px;
}

.has-border-primary {
    border-color: #00d1b2 !important;
}

.magnifier-lens {
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 10;
    background-repeat: no-repeat;
    background-position: center;
}

.magnifier-zoom {
    width: 200px;
    height: 200px;
    position: absolute;
    z-index: 20;
    background-repeat: no-repeat;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.top-50-percent {
    top: 50%;
}

.transform-translate-y-50 {
    transform: translateY(-50%);
}

.main-image {
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thumb-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid transparent;
    margin-right: 8px;
}
.product-image {
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
}

.is-64x64 {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.has-border-primary {
    border-color: #00d1b2 !important;
}

.magnifier-lens {
    width: 100px;
    height: 100px;
    pointer-events: none;
    z-index: 10;
    background-repeat: no-repeat;
    background-position: center;
}

.magnifier-zoom {
    width: 200px;
    height: 200px;
    position: absolute;
    z-index: 20;
    background-repeat: no-repeat;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.top-50-percent {
    top: 50%;
}

.transform-translate-y-50 {
    transform: translateY(-50%);
}

.progress-bar {
    transition: width 0.3s ease;
}

    .progress-bar.is-one-quarter {
        width: 25%;
    }

    .progress-bar.is-half {
        width: 50%;
    }

    .progress-bar.is-three-quarters {
        width: 75%;
    }

    .progress-bar.is-full {
        width: 100%;
    }
.hover-shadow:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.modal-card {
    max-width: 480px;
    z-index: 1001;
}
.modal.is-active {
    display: block !important;
    z-index: 1000;
}
.button.is-danger, .button.is-primary {
    pointer-events: auto;
    z-index: 1;
}
.select:not(.is-multiple):not(.is-loading)::after {
    border-color: #00d1b2;
}
.navbar.is-dark {
    background-color: #1a3c34;
}

.badge.is-small {
    font-size: 0.75rem;
}

.navbar-item .icon {
    margin-right: 0.5rem;
}
.navbar-dropdown.is-fullwidth-mobile {
    width: 100% !important;
}
@media screen and (max-width: 1023px) {
    .navbar-brand {
        flex: 1 1 auto;
        width: auto;
    }

    .navbar-item img {
        max-height: 48px;
    }
}
@media screen and (max-width: 1023px) {
    .navbar-menu.is-active {
        display: block;
    }

    .navbar-dropdown.is-active {
        display: block;
    }

    .navbar-link::after {
        display: none;
    }

    .navbar-link {
        padding-right: 1rem;
    }

    .navbar-brand {
        z-index: 1000;
    }

    .navbar-burger {
        color: white;
    }

    .navbar-item, .navbar-link {
        color: white;
    }

    .navbar-dropdown {
        background-color: #ffffff;
        border: none;
    }
}
.form-select {
    min-width: 120px !important; /* Ensures minimum width for quantity dropdown */
}

.dropdown-menu {
    min-width: 1200px !important; /* Ensures minimum width for mega menu */
}
.nav-link .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-width: 1.5rem;
    text-align: center;
}
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        color: #00cc44; /* Bright green hover */
    }
.modal-content {
    z-index: 1060; /* Above the default backdrop z-index of 1050 */
}
/* Carousel navigation arrows */
/* Carousel nav buttons */
#imageCarousel {
    position: relative;
}

    #imageCarousel .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

        #imageCarousel .carousel-nav.prev {
            left: 10px;
        }

        #imageCarousel .carousel-nav.next {
            right: 10px;
        }

/* Zoom lens */
.zoom-container {
    position: relative;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #3273dc;
    width: 100px;
    height: 100px;
    opacity: 0.4;
    background: rgba(255, 255, 255, 0.2);
    display: none;
    cursor: crosshair;
}

.zoom-result {
    display: none;
}

/* Ensure responsive zoom container on mobile */
@media (max-width: 768px) {
    .zoom-result {
        left: auto;
        top: 100%;
        width: 100%;
        height: 200px;
        border: none;
    }
}
@media screen and (max-width: 768px) {
    .container.is-fluid {
        padding: 0 10px;
    }

    .card {
        width: 100%;
    }
}
/* Fixed footer only on mobile */
#mobile-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 999;
    display: none;
    padding: 0.5rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

/* Show footer only on mobile */
@media screen and (max-width: 768px) {
    #mobile-footer {
        display: block;
    }
    .hide-on-mobile {
        display: none !important;
    }
    body {
        padding-bottom: 60px; /* space for footer */
    }
}
@media screen and (max-width: 768px) {
    .navbar-end {
        display: none !important;
    }
}
/* Mega menu adjustments on mobile only */
@media screen and (max-width: 768px) {
    .mega-menu .navbar-dropdown {
        width: 90vw !important; /* shrink width */
        font-size: 0.85rem !important; /* smaller font */
        left: 5% !important; /* center it better */
    }

    .mega-menu .navbar-item {
        padding: 0.5rem 0.75rem !important;
    }

    .mega-menu .icon {
        font-size: 1.3rem !important; /* bigger icons */
        margin-right: 0.5rem;
    }
}
/* Disable text selection */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Disable long-press callout on iOS Safari */
img, .no-select {
    -webkit-touch-callout: none;
}
/* Prevent selection and long-press callout globally */
body {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none; /* iOS long press */
}
/* Disable text selection and hide cursor highlight globally */
* {
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* Standard */
    -webkit-touch-callout: none; /* Prevent long press menu on iOS */
}

/* Disable selection everywhere, but keep inputs usable */
*:not(input):not(textarea):not(select) {
    -webkit-user-select: none; /* Safari/Chrome */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge */
    user-select: none; /* Standard */
    -webkit-touch-callout: none; /* Prevent long press menu on iOS */
}

/* Prevent text cursor (I-beam) outside inputs */
body, *:not(input):not(textarea):not(select) {
    /*cursor: default !important;*/
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.product-card {
    position: relative;
   
}

.stretched-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.product-card form,
.product-card button {
    position: relative;
    z-index: 2; /* ensure button is above the overlay */
}
@keyframes counterBounce {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.3);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.count-bounce {
    animation: counterBounce 0.4s ease-in-out;
}
/* 🔔 Toast container (bottom-right corner) */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9999;
}

/* 🎨 Toast base style (Bulma look) */
.toast {
    min-width: 220px;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    font-weight: 500;
}

/* Toast types */
.toast-success {
    background-color: #48c774;
}
/* Bulma success */
.toast-info {
    background-color: #209cee;
}
/* Bulma info */
.toast-warning {
    background-color: #ffdd57;
    color: #222;
}

.toast-error {
    background-color: #f14668;
}
/* Bulma danger */

/* ✨ Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}
.sale-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.85rem;
    background-color: #ff3860 !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.until-badge {
    position: absolute;
    top: 9.75rem;
    right: 0.5rem;
    font-size: 0.85rem;
    background-color: #950dcb !important;
    color: #fff !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.group:hover .group-hover\:block {
    display: block !important;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1) !important;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

.scale-125 {
    transform: scale(1.25);
    transition: transform 0.3s ease;
}
/* Mobile: 2 cards per row, full width, minimal padding */
@media (max-width: 768px) {
    .px-2 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .h-48 {
        height: 180px !important;
    }

    .text-lg {
        font-size: 1.1rem !important;
    }

    .button.is-small {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Clamp long product names */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
@media (max-width: 767px) {
    .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }

    /* Negative margin to cancel container */
    .grid {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

    /* Tiny gap between cards */
    .gap-2 > * {
        padding: 0.25rem;
    }

    /* Clamp long names */
    .line-clamp-2 {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}