/* Smoke&Vape — Custom Styles */

/* Base reset enhancements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all links are styled */
a {
    text-decoration: none;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background-color: #f1f5f9;
}

/* Thin line utility */
.thin-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #14b8a6, transparent);
}

/* Scrollbar styling for WebKit */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f8fafc;
}

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* Selection color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Mobile link padding */
.mobile-link {
    padding: 0.25rem 0;
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Product card hover effect */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Button ripple-like hover */
button, a {
    transition: all 0.2s ease;
}

/* Prevent layout shift on images */
img {
    display: block;
    max-width: 100%;
}

/* Ensure proper text rendering */
h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
}

/* Subtle fade-in for hero on load (visible by default, JS enhances) */
@keyframes heroFade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

#hero > div {
    animation: heroFade 0.8s ease forwards;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    #hero > div {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
