/* GetKiddix.com - Custom Styles & Animations */

/* 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: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-item {
    pointer-events: auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Image fallback styling */
.img-fallback-wrapper {
    background: linear-gradient(135deg, #F0F9FF 0%, #FFF1F2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Custom Checkbox */
input[type="checkbox"]:checked {
    background-color: #87CEEB;
    border-color: #87CEEB;
}

/* Stepper styles */
.step-active {
    background-color: #87CEEB;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(135, 206, 235, 0.3);
}
.step-done {
    background-color: #10B981;
    color: #ffffff;
}

/* WooCommerce Variable Product Overrides */
.wc-variable-wrapper .variations_form .quantity {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.wc-variable-wrapper .variations_form .quantity input.qty {
    width: 3rem;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    font-weight: 700;
    color: #2C3E50;
    padding: 0;
    margin: 0;
    -moz-appearance: textfield;
}
.wc-variable-wrapper .variations_form .quantity input.qty::-webkit-outer-spin-button,
.wc-variable-wrapper .variations_form .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.wc-variable-wrapper .woocommerce-variation-price {
    display: none;
}
.wc-variable-wrapper .woocommerce-variation-description p {
    font-size: 0.75rem;
    color: #475569;
    margin: 0 0 0.5rem 0;
}
.wc-variable-wrapper .woocommerce-variation-availability p.stock {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin: 0 0 0.5rem 0;
}
.wc-variable-wrapper .woocommerce-variation-availability p.stock.in-stock {
    background: #ECFDF5;
    color: #047857;
}
.wc-variable-wrapper .woocommerce-variation-availability p.stock.out-of-stock {
    background: #FFF1F2;
    color: #BE123C;
}
.wc-variable-wrapper .kiddix-var-select.kiddix-pills-ready {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.wc-variable-wrapper .single_add_to_cart_button.button.alt {
    background-color: #5BB7E0;
    color: #ffffff;
    border-radius: 1rem;
    border: none;
    line-height: 1.25rem;
}
.wc-variable-wrapper .single_add_to_cart_button.button.alt:hover {
    background-color: #0ea5e9;
    color: #ffffff;
}

