/*
Theme Name: GetKiddix
Theme URI: https://getkiddix.com
Author: GetKiddix Team
Author URI: https://getkiddix.com
Description: Premium E-Commerce WordPress & WooCommerce Theme for Baby Gear, Montessori Wooden Toys, Organic Clothing, and Nursery Essentials. Features Tailwind CSS, Fredoka & Inter typography, slide-over drawer cart, wishlists, and full Bangladeshi commerce support (Cash on Delivery, bKash, Nagad).
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: getkiddix
Tags: e-commerce, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, woocommerce
*/

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

/* Custom Logo Constraints */
.site-logo {
    display: inline-flex;
    align-items: center;
    max-height: 52px;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-height: 52px;
    line-height: 0;
}

.custom-logo,
.custom-logo-link img,
.site-logo img,
header .site-logo img,
header .custom-logo {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 220px !important;
    object-fit: contain !important;
    display: inline-block !important;
}

@media (max-width: 640px) {

    .site-logo,
    .custom-logo-link {
        max-height: 40px;
    }

    .custom-logo,
    .custom-logo-link img,
    .site-logo img,
    header .site-logo img,
    header .custom-logo {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 160px !important;
    }
}

/* WordPress Menu Dropdowns */
.sub-menu {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

li.group:hover>.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

li.group>.sub-menu {
    pointer-events: none;
}

li.group:hover>.sub-menu {
    pointer-events: auto;
}

/* Custom Soft Pastel Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #87CEEB;
}

/* Soft Card Hover Micro-interactions */
.product-card {
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -10px rgba(135, 206, 235, 0.35);
}

/* Floating Badges Animation */
@keyframes floatSoft {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

.animate-float {
    animation: floatSoft 3.5s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Category Badge Gradients */
.badge-wooden {
    background: #FEF3C7;
    color: #92400E;
}

.badge-plush {
    background: #FCE7F3;
    color: #9D174D;
}

.badge-clothing {
    background: #E0F2FE;
    color: #0369A1;
}

.badge-feeding {
    background: #DCFCE7;
    color: #15803D;
}

.badge-gear {
    background: #EDE9FE;
    color: #6D28D9;
}

.badge-learning {
    background: #FFEDD5;
    color: #C2410C;
}

/* Drawer Cart Animations */
.drawer-backdrop {
    transition: opacity 0.3s ease;
}

.drawer-panel {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Toast Container */
#toast-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

@media (min-width: 1024px) {
    #toast-container {
        bottom: 24px;
        right: 24px;
    }
}

.toast-item {
    pointer-events: auto;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom Form Styles */
input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #5BB7E0;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Print Styles */
@media print {

    .glass-nav,
    footer,
    .lg\\:hidden.fixed.bottom-0,
    #cart-drawer,
    #toast-container {
        display: none !important;
    }
}