/* ========================================
   SafeNest - Custom Styles
   ======================================== */

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Hero Pattern */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(13, 148, 136, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Product Card Overlay */
.product-card:hover .product-overlay {
    opacity: 1;
}

/* Sticky Navigation */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.sticky-nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 3px;
}

/* Animation Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

/* Form Validation Styles */
.is-invalid {
    border-color: #ef4444 !important;
}

.invalid-feedback {
    color: #ef4444;
    font-size: 0.875rem;
}

/* Transitions */
.transition {
    transition: all 0.3s ease;
}

/* Button Hover Effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

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

img.loading {
    opacity: 0;
}

/* Modal Backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
}

/* Product Badge */
.badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Toast Animation - Use Tailwind classes instead */
/* #toast is controlled by Tailwind translate-y-20 class */

/* Mobile Menu (handled by inline styles in index.html) */
/* NOTE: sliding transitions for the mobile menu are now managed via
   the .mobile-menu-visible and .mobile-menu-panel rules defined
   directly in index.html. Removed old transform rules to avoid
   conflicts with display-based toggling. */

/* Cart Sidebar */
#cart-sidebar {
    transform: translateX(100%);
}

#cart-sidebar.open {
    transform: translateX(0);
}

/* FAQ Toggle */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.open {
    max-height: 500px;
}
