/* The Simple Corner - Custom Styles */

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

/* Product card hover effects */
.product-card-image {
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image {
    transform: scale(1.05);
}

/* Link underline animation */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

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

/* Focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #D97757;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #D6D3D1;
}

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

/* Loading spinner */
.spinner {
    border: 3px solid #E7E5E4;
    border-top: 3px solid #D97757;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Cart sidebar animation */
.cart-open #cart-sidebar {
    transform: translateX(0);
}

.cart-open #cart-overlay {
    display: block;
    opacity: 1;
}

/* Button hover effect */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Image loading */
img {
    transition: opacity 0.3s ease;
}

img.loading {
    opacity: 0.5;
}
