/* Custom styles beyond Tailwind */
html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-geist-mono {
    font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Product card styles */
.product-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Active filter button */
.filter-btn.active {
    background-color: #0066FF;
    color: white;
    border-color: #0066FF;
}

/* Interactive states */
input:focus, select:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent; 
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Product price badge */
.price-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #0066FF;
    color: white;
    border-radius: 999px;
    padding: 4px 8px;
    font-weight: 600;
    font-size: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Deal label */
.deal-label {
    position: absolute;
    top: 10px;
    left: 0;
    background: #FF3366;
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Skeleton loading animation */
@keyframes pulse {
    0% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.6;
    }
}

.animate-pulse {
    animation: pulse 1.5s infinite;
}

/* Nice checkbox styling */
input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #0066FF;
    border-color: #0066FF;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Pagination active state */
.pagination-active {
    background-color: #0066FF;
    color: white;
}

/* Better focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.3);
}

@media (prefers-reduced-motion) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
