/**
 * Custom CSS Overrides
 * Add any additional custom styles here
 *
 * @package Sromajori_Arts
 */

/* Additional hover effects */
.header-action-btn:focus-visible,
.btn:focus-visible,
.collection-card:focus-visible,
.product-card:focus-visible {
    outline: 2px solid hsl(var(--primary));
    outline-offset: 2px;
}

/* Scrolled header state */
.site-header.scrolled {
    box-shadow: var(--shadow-soft);
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: hsl(var(--background) / 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        hsl(var(--muted)) 25%,
        hsl(var(--muted) / 0.5) 50%,
        hsl(var(--muted)) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* WhatsApp floating button (optional) */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* WooCommerce compatibility */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .woocommerce .products {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .woocommerce .products {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .newsletter-form,
    .product-actions,
    .product-wishlist,
    .whatsapp-float {
        display: none !important;
    }

    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-background {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
        background: white;
    }
}
