/* ============================================
   KID-FRIENDLY TOYS & STATIONERY SHOP STYLES
   Hybrid Design - Template Inspired + Custom
   ============================================ */

/* CSS Variables for Kid-Friendly Color Scheme */
:root {
    --primary-blue: #4A90E2;
    --primary-pink: #FF6B9D;
    --accent-yellow: #FFC107;
    --accent-purple: #9C27B0;
    --accent-orange: #FF9800;
    --success-green: #28A745;
    --warning-orange: #FF9800;
    --toy-red: #FF5252;
    --toy-green: #4CAF50;
    --toy-purple: #9C27B0;
    
    --gradient-primary: linear-gradient(135deg, #4A90E2 0%, #FF6B9D 100%);
    --gradient-secondary: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
    --gradient-success: linear-gradient(135deg, #28A745 0%, #20C997 100%);
    --gradient-playful: linear-gradient(135deg, #FF6B9D 0%, #9C27B0 50%, #4A90E2 100%);
    --gradient-rainbow: linear-gradient(90deg, #FF5252, #FF9800, #FFC107, #4CAF50, #2196F3, #9C27B0);
    
    --shadow-colorful: 0 8px 20px rgba(74, 144, 226, 0.3);
    --shadow-pink: 0 8px 20px rgba(255, 107, 157, 0.3);
    --shadow-yellow: 0 8px 20px rgba(255, 193, 7, 0.3);
    --shadow-playful: 0 10px 30px rgba(255, 107, 157, 0.4);
    
    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Comic Neue', 'Nunito', sans-serif;
    --font-playful: 'Comic Neue', cursive;
}

/* Body & Background - Playful Design */
body {
    background: linear-gradient(135deg, #fff5f5 0%, #e8f0f8 30%, #f0f8ff 60%, #fff5f5 100%);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 157, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(74, 144, 226, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(156, 39, 176, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Floating Decorative Toys */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-toy {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.toy-1 { top: 10%; left: 10%; animation-delay: 0s; }
.toy-2 { top: 20%; right: 15%; animation-delay: 3s; }
.toy-3 { bottom: 30%; left: 20%; animation-delay: 6s; }
.toy-4 { top: 50%; right: 10%; animation-delay: 9s; }
.toy-5 { bottom: 15%; right: 30%; animation-delay: 12s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-40px) rotate(-5deg); }
    75% { transform: translateY(-20px) rotate(3deg); }
}

.container {
    position: relative;
    z-index: 2;
}

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #1ebe5d;
    color: #ffffff;
}

/* Mobile: avoid covering bottom-right Add to Cart / card actions — left side + higher + safe area */
@media (max-width: 767.98px) {
    .whatsapp-float {
        right: auto;
        left: max(16px, env(safe-area-inset-left, 0px));
        bottom: calc(130px + env(safe-area-inset-bottom, 0px));
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
}

/* ============================================
   TYPOGRAPHY - Playful & Kid-Friendly
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    background: var(--gradient-playful);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }

/* Solid light text on gradient/dark bands — overrides gradient clipped headings */
.heading-on-dark {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Homepage full-bleed hero carousel */
.home-hero-fullbleed {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.home-hero-carousel .carousel-indicators {
    margin-bottom: 0.75rem;
}

.home-hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.5;
    border: 0;
}

.home-hero-carousel .carousel-indicators .active {
    opacity: 1;
}

.home-hero-carousel .carousel-item {
    background: transparent;
}

.home-hero-carousel .carousel-control-prev,
.home-hero-carousel .carousel-control-next {
    z-index: 25;
    width: min(12%, 3.5rem);
}

/* Homepage hero — rainbow_banners_v2 layout (copy left, visual right) */
.rainbow-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: clamp(17rem, 52vw, 24rem);
    isolation: isolate;
}

.rainbow-banner-photo {
    position: relative;
    order: 2;
    width: 100%;
    min-height: 12rem;
    flex: 1 1 auto;
    z-index: 1;
}

.rainbow-banner-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.rainbow-banner-photo-img {
    width: 100%;
    height: 100%;
    min-height: 12rem;
    object-fit: cover;
    object-position: center right;
    display: block;
}

.rainbow-banner-photo--illustration .rainbow-banner-photo-img {
    object-fit: contain;
    object-position: right center;
    background: transparent;
}

/* Real photo / raster art — fill the right panel */
.rainbow-banner-photo--photo .rainbow-banner-photo-img {
    object-fit: cover;
    object-position: center right;
}

.rainbow-banner-content {
    order: 1;
    position: relative;
    z-index: 2;
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
}

.rainbow-banner-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.65rem;
    width: fit-content;
}

.rainbow-banner-title {
    font-family: var(--font-heading);
    font-size: clamp(1.65rem, 6vw, 2.65rem);
    line-height: 1.08;
    margin-bottom: 0.5rem;
    /* Reset global h1/h2 gradient text — otherwise -webkit-text-fill hides theme colors */
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none;
}

.rainbow-banner-text {
    font-size: clamp(0.9rem, 2.8vw, 1rem);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 1.1rem;
    max-width: 22rem;
    opacity: 0.88;
}

.rainbow-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.75rem 1.35rem;
    border-radius: 50px;
    border: none;
    width: fit-content;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rainbow-banner-cta:hover,
.rainbow-banner-cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    color: #fff;
}

.rainbow-banner-cta-icon {
    flex-shrink: 0;
}

/* Theme: stationery (sky blue) */
.rainbow-banner.b1 {
    background: #b8e8f0;
}

.rainbow-banner.b1 .rainbow-banner-photo::before {
    background: linear-gradient(to bottom, #b8e8f0 0%, transparent 35%),
        linear-gradient(to right, #b8e8f0 0%, rgba(184, 232, 240, 0.75) 40%, transparent 72%);
}

@media (min-width: 768px) {
    .rainbow-banner.b1 .rainbow-banner-photo::before {
        background: linear-gradient(to right, #b8e8f0 28%, rgba(184, 232, 240, 0.72) 52%, transparent 82%);
    }
}

.rainbow-banner.b1 .rainbow-banner-tag {
    background: rgba(255, 255, 255, 0.35);
    color: #0077a8;
    border: 1px solid rgba(0, 119, 168, 0.22);
}

.rainbow-banner.b1 .rainbow-banner-title {
    color: #004d6e;
}

.rainbow-banner.b1 .rainbow-banner-text {
    color: #006080;
}

.rainbow-banner.b1 .rainbow-banner-cta {
    background: #0099cc;
    color: #fff;
}

/* Theme: toys (warm yellow) */
.rainbow-banner.b2 {
    background: #fff0c0;
}

.rainbow-banner.b2 .rainbow-banner-photo {
    background: linear-gradient(135deg, #fff0c0, #ffe0a0, #ffd080);
}

.rainbow-banner.b2 .rainbow-banner-photo::before {
    background: linear-gradient(to bottom, #fff0c0 0%, transparent 30%),
        linear-gradient(to right, #fff0c0 0%, rgba(255, 240, 192, 0.75) 42%, transparent 75%);
}

@media (min-width: 768px) {
    .rainbow-banner.b2 .rainbow-banner-photo::before {
        background: linear-gradient(to right, #fff0c0 28%, rgba(255, 240, 192, 0.72) 52%, transparent 82%);
    }
}

.rainbow-banner.b2 .rainbow-banner-tag {
    background: rgba(255, 150, 0, 0.15);
    color: #c47000;
    border: 1px solid rgba(196, 112, 0, 0.2);
}

.rainbow-banner.b2 .rainbow-banner-title {
    color: #7a3d00;
}

.rainbow-banner.b2 .rainbow-banner-text {
    color: #9a5200;
}

.rainbow-banner.b2 .rainbow-banner-cta {
    background: #ff9900;
    color: #fff;
}

/* Theme: sports & gifts (mint) */
.rainbow-banner.b3 {
    background: #c8f5e0;
}

.rainbow-banner.b3 .rainbow-banner-photo {
    background: linear-gradient(135deg, #c8f5e0, #a8edcc, #80e0b8);
}

.rainbow-banner.b3 .rainbow-banner-photo::before {
    background: linear-gradient(to bottom, #c8f5e0 0%, transparent 30%),
        linear-gradient(to right, #c8f5e0 0%, rgba(200, 245, 224, 0.75) 42%, transparent 75%);
}

@media (min-width: 768px) {
    .rainbow-banner.b3 .rainbow-banner-photo::before {
        background: linear-gradient(to right, #c8f5e0 28%, rgba(200, 245, 224, 0.72) 52%, transparent 82%);
    }
}

.rainbow-banner.b3 .rainbow-banner-tag {
    background: rgba(0, 160, 80, 0.12);
    color: #006633;
    border: 1px solid rgba(0, 160, 80, 0.2);
}

.rainbow-banner.b3 .rainbow-banner-title {
    color: #004422;
}

.rainbow-banner.b3 .rainbow-banner-text {
    color: #005c2e;
}

.rainbow-banner.b3 .rainbow-banner-cta {
    background: #00a854;
    color: #fff;
}

@media (min-width: 768px) {
    .rainbow-banner {
        flex-direction: row;
        align-items: stretch;
        min-height: clamp(220px, 28vw, 380px);
        max-height: 400px;
    }

    .rainbow-banner-photo {
        position: absolute;
        right: 0;
        top: 0;
        width: 65%;
        height: 100%;
        order: 0;
        min-height: 0;
        z-index: 1;
    }

    .rainbow-banner-photo-img {
        min-height: 100%;
        position: absolute;
        inset: 0;
    }

    .rainbow-banner-content {
        order: 0;
        width: 52%;
        max-width: 52%;
        padding: 1.25rem 1.25rem 1.25rem clamp(1.75rem, 4.5vw, 4.25rem);
        z-index: 2;
    }

    .rainbow-banner-title {
        font-size: clamp(1.85rem, 3.2vw, 2.85rem);
    }

    .rainbow-banner-text {
        font-size: clamp(0.95rem, 1.35vw, 1.05rem);
    }
}

/* Grayscale placeholder when product has no photo (index & shared asset) */
.product-image--bw-placeholder {
    object-fit: contain;
    background: #e8e8e8;
    filter: grayscale(1);
}

/* Trust tiles: calmer hover than default .card */
.card.trust-tile {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card.trust-tile:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.card.trust-tile h6,
.card.trust-tile .card-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--bs-body-color, #212529) !important;
    text-shadow: none;
    font-family: var(--font-body);
    font-weight: 700;
}

/* Why us: scannable bullets */
.why-us-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.25rem;
}

.why-us-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.45;
}

.why-us-list li i {
    font-size: 1.35rem;
    color: var(--primary-blue);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem !important;
}

/* ============================================
   CARDS - Colorful & Playful with Bounce
   ============================================ */
.card {
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    overflow: hidden;
    background: white;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-rainbow);
    opacity: 0.1;
    transition: left 0.5s ease;
    z-index: 0;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.card > * {
    position: relative;
    z-index: 1;
}

.product-card {
    border-radius: 25px;
    overflow: hidden;
    background: white;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
    animation: shine 0.8s ease;
}

@keyframes shine {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.product-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 107, 157, 0.22);
    border-color: var(--primary-pink);
}

.product-card .card-img-top {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-card:hover .card-img-top {
    transform: scale(1.06);
}

/* Product card quantity stepper (+ / quantity / -) - match cart page sizing */
.product-card .cart-stepper {
    min-height: 48px;
    gap: 6px;
}
.product-card .cart-stepper .cart-stepper-minus,
.product-card .cart-stepper .cart-stepper-plus {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
}
.product-card .cart-stepper .cart-qty-display {
    font-size: 1.2rem;
    font-weight: 700;
    user-select: none;
}

/* ============================================
   BUTTONS - Vibrant & Bouncy
   ============================================ */
.btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 700;
    font-family: var(--font-playful);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.5);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-success:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.5);
    color: white;
}

.btn-warning {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-warning:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: var(--shadow-yellow);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #FF5252 0%, #FF1744 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 82, 82, 0.4);
}

.btn-danger:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 30px rgba(255, 82, 82, 0.5);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-5px) scale(1.08);
    color: white;
}

/* ============================================
   FORMS - Playful & Interactive
   ============================================ */
.form-control {
    border-radius: 20px;
    border: 3px solid #e0e0e0;
    padding: 14px 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-control:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 0.3rem rgba(255, 107, 157, 0.25);
    transform: scale(1.03);
    outline: none;
}

.form-label {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-family: var(--font-playful);
    font-size: 1.05rem;
}

.input-group .form-control {
    border-radius: 20px 0 0 20px;
}

.input-group .btn {
    border-radius: 0 20px 20px 0;
}

/* ============================================
   NAVBAR - Colorful Gradient with Animation
   ============================================ */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.4);
    padding: 18px 0;
    border-radius: 0 0 30px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 400;
    font-size: 1.8rem;
    color: white !important;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    transform: scale(1.15) rotate(-3deg);
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 600;
    font-family: var(--font-playful);
    padding: 10px 24px !important;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 0 5px;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    border-radius: 3px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::before {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    transform: translateY(-3px) scale(1.05);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.35);
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Navbar — product search (GET shop.php?search=) */
.navbar-search-form {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 32rem;
}

.navbar-search-form .input-group {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    border-radius: 50rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: #fff;
}

.navbar-search-input {
    min-width: 10rem;
    font-size: 0.95rem !important;
    font-family: var(--font-body);
}

.navbar-search-input:focus {
    box-shadow: none !important;
}

.navbar-search-submit {
    color: var(--primary-blue) !important;
    font-weight: 700;
    padding-left: 1rem;
    padding-right: 1.1rem;
}

.navbar-search-submit:hover {
    background: #f8f9fa !important;
    color: var(--primary-pink) !important;
}

@media (max-width: 991.98px) {
    .navbar-search-form {
        max-width: none;
        order: -1;
    }

    #navbarNav {
        flex-direction: column;
        align-items: stretch !important;
    }
}

/* Cart Badge - Animated */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.6);
    animation: pulse 2s infinite, bounce 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

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

.cart-badge-empty {
    background: rgba(255, 255, 255, 0.4) !important;
    color: rgba(0, 0, 0, 0.5);
    box-shadow: none;
    animation: none;
}

/* ============================================
   BADGES - Colorful & Eye-catching
   ============================================ */
.badge {
    border-radius: 20px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-playful);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.badge.bg-danger {
    background: var(--gradient-secondary) !important;
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.5);
}

.badge.bg-success {
    background: var(--gradient-success) !important;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.5);
}

.badge.bg-warning {
    background: var(--gradient-secondary) !important;
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.5);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-secondary);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    font-family: var(--font-heading);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.6);
    z-index: 10;
    animation: bounce 2s infinite, pulse 2s infinite;
    transform-origin: center;
}

/* Low stock — on product image (high specificity + !important so it never falls back to plain text in flow) */
.image-container span.low-stock-ribbon,
.product-main-image-click span.low-stock-ribbon,
#productsContainer .image-container span.low-stock-ribbon,
.product-card-grid .image-container span.low-stock-ribbon {
    position: absolute !important;
    top: 10px !important;
    left: 8px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 11 !important;
    display: block !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-family: var(--font-heading);
    font-size: clamp(0.68rem, 3.5vw, 0.88rem) !important;
    font-weight: 400 !important;
    padding: 0.4rem 0.65rem !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(183, 28, 28, 0.45) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.03em !important;
    max-width: 58% !important;
    text-align: center !important;
    pointer-events: none !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    animation: lowStockPulse 2.2s ease-in-out infinite !important;
}

@keyframes lowStockPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(183, 28, 28, 0.45); }
    50% { transform: scale(1.04); box-shadow: 0 6px 22px rgba(183, 28, 28, 0.6); }
}

/* ============================================
   PRODUCT CARDS - Vibrant Design
   ============================================ */
.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f8 100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
}

/* Shop + index + related products: show full photo (avoid tall/narrow products cropping) */
#productsContainer .product-card .product-image,
.product-card-grid .product-card .product-image {
    object-fit: contain;
    object-position: center;
}

/* Shop page: card flex layout so Add to Cart stays at bottom */
#productsContainer .product-card,
.product-card-grid .product-card {
    display: flex;
    flex-direction: column;
}
#productsContainer .product-card .card-body,
.product-card-grid .product-card .card-body {
    flex: 1 1 auto;
}

/* ============================================
   CATEGORY TABS - Colorful & Playful
   ============================================ */
.nav-pills .nav-link {
    border-radius: 30px;
    padding: 12px 28px;
    margin: 8px;
    font-weight: 700;
    font-family: var(--font-playful);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
    font-size: 1rem;
}

.nav-pills .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-colorful);
    transform: scale(1.1);
    border-color: var(--primary-pink);
}

.nav-pills .nav-link:not(.active) {
    background: white;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.nav-pills .nav-link:not(.active):hover {
    background: rgba(74, 144, 226, 0.15);
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-pink);
}

/* Landing page: browse and category cards */
.browse-option-card:hover,
.landing-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--primary-pink);
}

.landing-category-image-wrap {
    height: 140px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}
.landing-category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   TABLES - Colorful Styling
   ============================================ */
.table {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table thead {
    background: var(--gradient-primary);
    color: white;
}

.table thead th {
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px;
    border: none;
    font-size: 0.95rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: scale(1.01);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table tbody td {
    padding: 18px;
    vertical-align: middle;
    font-family: var(--font-body);
}

/* Cart - Mobile card layout */
@media (max-width: 767px) {
    .cart-table thead {
        display: none;
    }
    .cart-table tbody tr.cart-item-row {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        border: 2px solid #e0e0e0;
        border-radius: 20px;
        background: white;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    .cart-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem 0;
        border: none;
    }
    .cart-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--primary-blue);
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    .cart-table tbody td:first-child {
        justify-content: center;
        padding-top: 0;
    }
    .cart-table tbody td:first-child::before {
        display: none;
    }
    .cart-table .cart-item-img {
        width: 70px !important;
        height: 70px !important;
    }
    .cart-table tfoot .cart-total-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        border-radius: 15px;
    }
    .cart-table tfoot th {
        border: none;
        padding: 0.5rem;
    }
    .cart-table tfoot th[colspan="4"] {
        flex: 1;
        text-align: left !important;
    }
    .cart-table tfoot #grandTotalCell {
        flex: 0 0 auto;
    }
}


/* ============================================
   QUANTITY STEPPER - Kid-friendly +/- buttons
   ============================================ */
.quantity-stepper {
    gap: 6px;
}
.quantity-stepper .stepper-minus,
.quantity-stepper .stepper-plus {
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 1.4rem;
    font-weight: bold;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.quantity-stepper .stepper-input {
    width: 64px;
    max-width: 72px;
    padding: 8px 6px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

/* Checkout - Total payable always visible */
.order-total-payable {
    color: #333;
}
.order-total-payable .order-total-label {
    font-size: 1.1rem;
    color: #333;
}
.order-total-payable .order-total-amount {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* ============================================
   ALERTS - Colorful & Playful
   ============================================ */
.alert {
    border-radius: 20px;
    border: none;
    padding: 18px 24px;
    font-weight: 600;
    font-family: var(--font-body);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(40, 167, 69, 0.25) 100%);
    color: #155724;
    border-left: 5px solid var(--success-green);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.15) 0%, rgba(255, 82, 82, 0.25) 100%);
    color: #721c24;
    border-left: 5px solid #FF5252;
}

.alert-info {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(74, 144, 226, 0.25) 100%);
    color: #004085;
    border-left: 5px solid var(--primary-blue);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.25) 100%);
    color: #856404;
    border-left: 5px solid var(--accent-yellow);
}

/* ============================================
   MODALS - Playful Design
   ============================================ */
.modal-content {
    border-radius: 30px;
    border: none;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-bottom: none;
    padding: 25px 30px;
    border-radius: 30px 30px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-body {
    padding: 30px;
    font-family: var(--font-body);
}

.modal-footer {
    border-top: 2px solid #f0f0f0;
    padding: 25px 30px;
    border-radius: 0 0 30px 30px;
}

/* Product detail: clickable main image (lightbox trigger) */
.product-main-image-click {
    cursor: pointer;
    transition: transform 0.2s ease;
}
.product-main-image-click:hover {
    transform: scale(1.02);
}
.product-main-image-click .product-image {
    /* Taller main image; contain so long/tall SKUs stay fully visible */
    height: 360px;
    object-fit: contain;
    object-position: center;
}
.product-main-image-click .product-image-zoom-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(74, 144, 226, 0.9);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.product-main-image-click:hover .product-image-zoom-hint {
    opacity: 1;
}

/* Product image lightbox modal */
.product-image-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.product-lightbox-image {
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   STOCK INDICATORS - Colorful
   ============================================ */
.stock-indicator {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-playful);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.stock-low {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.5);
}

.stock-out {
    background: linear-gradient(135deg, #FF5252 0%, #FF1744 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(255, 82, 82, 0.5);
}

.stock-good {
    background: var(--gradient-success);
    color: white;
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.5);
}

/* ============================================
   PAGINATION - Colorful
   ============================================ */
.pagination .page-link {
    border-radius: 20px;
    margin: 0 5px;
    border: 3px solid #e0e0e0;
    color: var(--primary-blue);
    font-weight: 700;
    font-family: var(--font-playful);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 10px 18px;
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    transform: scale(1.1);
}

.pagination .page-link:hover {
    background: rgba(74, 144, 226, 0.15);
    border-color: var(--primary-pink);
    transform: translateY(-3px) scale(1.05);
}

/* ============================================
   FOOTER - Colorful & Playful
   ============================================ */
footer {
    background: var(--gradient-primary) !important;
    color: white;
    border-radius: 30px 30px 0 0;
    margin-top: 60px;
    box-shadow: 0 -6px 25px rgba(74, 144, 226, 0.4);
    padding: 30px 0 !important;
    font-family: var(--font-body);
}

footer p {
    margin: 8px 0;
    font-size: 1.05rem;
}

footer strong {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* Storefront footer — columns, links, social (overrides gradient footer above) */
footer.site-footer {
    background: linear-gradient(180deg, #f0f6ff 0%, #fff5fa 100%) !important;
    color: #333 !important;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08);
    margin-top: 3rem !important;
    padding-top: 2.5rem !important;
    padding-bottom: 1.75rem !important;
}

footer.site-footer .footer-heading {
    font-family: var(--font-body);
    font-weight: 800;
    letter-spacing: 0.04em;
    background: none !important;
    -webkit-text-fill-color: #6c757d !important;
    color: #6c757d !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
}

footer.site-footer .footer-nav a {
    color: #3d7fc8;
    font-weight: 600;
}

footer.site-footer .footer-nav a:hover {
    color: #e84a8a;
}

footer.site-footer .footer-divider {
    border-color: rgba(74, 144, 226, 0.2);
    opacity: 1;
}

footer.site-footer .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: #fff !important;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

footer.site-footer .social-link:hover {
    transform: scale(1.08);
    color: #fff !important;
}

footer.site-footer .social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

footer.site-footer .social-facebook {
    background: #1877f2;
}

footer.site-footer .social-youtube {
    background: #ff0000;
}

footer.site-footer .footer-brand-block p,
footer.site-footer .footer-brand-block small {
    color: #5c5c5c !important;
}

footer.site-footer .footer-brand-block strong {
    color: #333;
    font-size: 1.1rem;
}

/* Policy / FAQ pages — readable titles (override gradient headings) */
.policy-page-h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #333 !important;
    color: #333 !important;
}

.policy-page-h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #495057 !important;
    color: #495057 !important;
}

/* ============================================
   LOADING & ANIMATIONS
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 70px;
    height: 70px;
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-indicator-playful .loading-emoji {
    font-size: 4rem;
    display: inline-block;
    animation: bounce 1s ease-in-out infinite;
}

/* ============================================
   DECORATIVE ELEMENTS
   ============================================ */
.decorative-star {
    display: inline-block;
    color: var(--accent-yellow);
    animation: twinkle 2s infinite;
    margin: 0 5px;
    font-size: 1.2em;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    25% { opacity: 0.7; transform: scale(1.2) rotate(90deg); }
    50% { opacity: 0.5; transform: scale(1.1) rotate(180deg); }
    75% { opacity: 0.7; transform: scale(1.2) rotate(270deg); }
}

/* ============================================
   SEARCH BAR - Colorful & Playful
   ============================================ */
.search-bar {
    border-radius: 30px;
    border: 3px solid var(--primary-blue);
    padding: 14px 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    font-family: var(--font-body);
}

.search-bar:focus {
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 0.3rem rgba(255, 107, 157, 0.25);
    transform: scale(1.03);
}

/* ============================================
   EMPTY STATES - Playful
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 6rem;
    margin-bottom: 25px;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ============================================
   HERO SECTION - Enhanced
   ============================================ */
.hero-section {
    background: var(--gradient-playful);
    border-radius: 30px;
    padding: 50px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-playful);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* Order success - kid-friendly celebration */
.order-success-title {
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.order-success-kid {
    animation: fadeInUp 0.8s ease 0.3s both;
}
@keyframes successPop {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Add-to-cart button and stepper - larger touch target on mobile for kids */
@media (max-width: 768px) {
    .product-image {
        height: 200px;
    }
    .product-card .card-body {
        padding: 0.65rem 0.75rem;
    }
    .product-card .card-title {
        font-size: 1rem;
    }
    .product-card .card-body .h4 {
        font-size: 1.1rem;
    }
    .product-card .card-body > .mb-3 {
        margin-bottom: 0.5rem;
    }
    .product-card .add-to-cart {
        min-height: 48px;
        padding: 14px 20px;
        font-size: 1rem;
    }
    .product-card .cart-stepper {
        min-height: 48px;
    }
    .product-card .cart-stepper .cart-stepper-minus,
    .product-card .cart-stepper .cart-stepper-plus {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.4rem;
        font-weight: bold;
    }
    /* Product detail: increase main image height on tablet */
    .product-main-image-click .product-image {
        height: 260px;
    }
    /* Shop page: flush Add to Cart to card bottom on tablet */
    #productsContainer .product-card .card-body {
        padding-bottom: 0;
    }
    #productsContainer .product-card .mt-auto {
        margin: 0 !important;
        padding: 0 !important;
    }
    #productsContainer .product-card .add-to-cart,
    #productsContainer .product-card .btn-secondary {
        margin: 0 !important;
        border-radius: 0 0 22px 22px;
        width: 100%;
    }
    #productsContainer .product-card .cart-stepper {
        margin: 0 !important;
        padding: 6px 0;
        border-radius: 0 0 22px 22px;
    }
    /* Index / Product related: same flush Add to Cart on tablet */
    .product-card-grid .product-card .card-body {
        padding-bottom: 0;
    }
    .product-card-grid .product-card .mt-auto {
        margin: 0 !important;
        padding: 0 !important;
    }
    .product-card-grid .product-card .add-to-cart,
    .product-card-grid .product-card .btn-secondary {
        margin: 0 !important;
        border-radius: 0 0 22px 22px;
        width: 100%;
    }
    .product-card-grid .product-card .cart-stepper {
        margin: 0 !important;
        padding: 6px 0;
        border-radius: 0 0 22px 22px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .product-card:hover {
        transform: translateY(-8px) scale(1.02);
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    
    .navbar-brand {
        font-size: 1.4rem !important;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .table th,
    .table td {
        padding: 12px 10px;
    }
    
    .floating-toy {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .product-image {
        height: 180px;
    }
    .product-card .card-title {
        font-size: 0.95rem;
    }
    .product-card .text-muted {
        font-size: 0.8rem;
    }
    .product-card .card-body .h4 {
        font-size: 1rem;
    }
    .card {
        border-radius: 20px;
        margin-bottom: 1rem;
    }
    .product-card .discount-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .modal-dialog {
        margin: 8px;
    }
    .modal-content {
        border-radius: 25px;
    }
    .modal-header {
        padding: 12px 16px;
    }
    .modal-body {
        padding: 16px;
    }
    .modal-footer {
        padding: 12px 16px;
    }
    .product-lightbox-image {
        max-height: 65vh;
    }
    .product-image-modal .modal-body {
        min-height: 120px;
    }
    .hero-section {
        padding: 30px 20px;
    }

    /* Shop page: 2-column mobile product cards - compact layout */
    #productsContainer .product-card .product-image {
        height: 180px;
    }
    #productsContainer .product-card .card-body {
        padding: 0.5rem 0.6rem 0 0.6rem;
    }
    #productsContainer .product-card .card-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    #productsContainer .product-card .card-body .h4,
    #productsContainer .product-card .card-body .text-success {
        font-size: 0.9rem;
    }
    #productsContainer .product-card .card-body .text-muted {
        font-size: 0.7rem;
    }
    #productsContainer .product-card .mt-auto {
        margin: 0 !important;
        padding: 0 !important;
    }
    #productsContainer .product-card .add-to-cart,
    #productsContainer .product-card .btn-secondary {
        margin: 0 !important;
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 0 0 22px 22px;
        width: 100%;
    }
    #productsContainer .product-card .cart-stepper {
        min-height: 40px;
        margin: 0 !important;
        padding: 6px 0;
        border-radius: 0 0 22px 22px;
    }
    #productsContainer .product-card .mb-4 {
        margin-bottom: 0.75rem;
    }
    #productsContainer .row > [class*="col-"] {
        margin-bottom: 0.75rem !important;
    }

    /* Index / Product related: same 2-col mobile product card layout */
    .product-card-grid .product-card .product-image {
        height: 180px;
    }
    .product-card-grid .product-card .card-body {
        padding: 0.5rem 0.6rem 0 0.6rem;
    }
    .product-card-grid .product-card .card-title {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    .product-card-grid .product-card .card-body .h4,
    .product-card-grid .product-card .card-body .h6,
    .product-card-grid .product-card .card-body .text-success {
        font-size: 0.9rem;
    }
    .product-card-grid .product-card .card-body .text-muted {
        font-size: 0.7rem;
    }
    .product-card-grid .product-card .mt-auto {
        margin: 0 !important;
        padding: 0 !important;
    }
    .product-card-grid .product-card .add-to-cart,
    .product-card-grid .product-card .btn-secondary {
        margin: 0 !important;
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 0 0 22px 22px;
        width: 100%;
    }
    .product-card-grid .product-card .cart-stepper {
        min-height: 40px;
        margin: 0 !important;
        padding: 6px 0;
        border-radius: 0 0 22px 22px;
    }
    .product-card-grid > [class*="col-"] {
        margin-bottom: 0.75rem !important;
    }

    /* Product detail: increase main image height on small mobiles */
    .product-main-image-click .product-image {
        height: 230px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .navbar, .btn, .modal, .toast-container, footer, .floating-elements {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    body {
        background: white;
    }
}

/* ============================================
   TOAST NOTIFICATIONS - Colorful
   ============================================ */
.toast-container {
    z-index: 9999;
}

.toast {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: var(--font-body);
}

/* ============================================
   ADDITIONAL PLAYFUL ELEMENTS
   ============================================ */
.playful-border {
    border: 4px dashed var(--primary-pink);
    border-radius: 25px;
    padding: 20px;
    background: rgba(255, 107, 157, 0.05);
}

.price-display {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    background: var(--gradient-success);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ACCESSIBILITY - Focus visible for keyboard
   ============================================ */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

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

/* Selection Color */
::selection {
    background: var(--primary-pink);
    color: white;
}

::-moz-selection {
    background: var(--primary-pink);
    color: white;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .product-card:hover,
    .card:hover {
        transform: none;
    }

    .product-card:hover .card-img-top {
        transform: none;
    }

    body::before {
        animation: none;
    }

    .floating-toy {
        animation: none;
    }

    .cart-badge {
        animation: none;
    }
}
