/*
Theme Name: SquishPop Child
Theme URI: https://squishpop.quantumqubo.space
Description: Cutesy kawaii child theme for SquishPop — slimes, squishies & toys
Author: Jonathan
Author URI: https://glint.quantumqubo.space
Template: storefront
Version: 1.0.0
Text Domain: squishpop-child
*/

/* ============================================================
   GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Quicksand:wght@400;500;600;700&family=Pacifico&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (KAWAII PALETTE)
   ============================================================ */
:root {
    --pink-light: #FFB6C1;
    --pink: #FF69C1;
    --pink-dark: #ff1493;
    --lavender: #E6E6FA;
    --mint: #98FB98;
    --mint-dark: #7CCD7C;
    --yellow-soft: #FFFACD;
    --peach: #FFDAB9;
    --white: #FFFFFF;
    --gray-light: #FFF5F5;
    --gray: #888;
    --text-dark: #444;
    --shadow-soft: 0 4px 15px rgba(255,105,193,0.15);
    --shadow-hover: 0 8px 25px rgba(255,105,193,0.25);
    --radius: 20px;
    --radius-sm: 12px;
    --font-body: 'Nunito', 'Quicksand', sans-serif;
    --font-heading: 'Pacifico', cursive;
}

/* ============================================================
   BASE STYLES
   ============================================================ */
body,
button,
input,
select,
textarea {
    font-family: var(--font-body);
    color: var(--text-dark);
}

body {
    background: var(--gray-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.5px;
}

a {
    color: var(--pink);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--pink-dark);
}

/* ============================================================
   TOP BAR
   ============================================================ */
.squishpop-top-bar {
    background: linear-gradient(135deg, var(--pink-light), var(--lavender));
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 2px solid rgba(255,255,255,0.5);
}

.squishpop-top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.top-bar-item {
    animation: gentleFloat 3s ease-in-out infinite;
}

.top-bar-divider {
    color: var(--pink);
    opacity: 0.5;
}

/* ============================================================
   CUSTOM HEADER
   ============================================================ */
.squishpop-header {
    background: linear-gradient(135deg, var(--white), var(--yellow-soft));
    padding: 15px 0;
    border-bottom: 3px solid var(--pink-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(255,105,193,0.1);
}

.squishpop-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.squishpop-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-emoji {
    font-size: 2em;
    animation: gentleFloat 2s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--pink);
    text-shadow: 2px 2px 4px rgba(255,105,193,0.2);
}

.squishpop-nav {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--pink-light);
    color: var(--pink-dark);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
}

.squishpop-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-link,
.account-link {
    font-size: 1.4em;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.cart-link:hover,
.account-link:hover {
    background: var(--pink-light);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--pink);
    color: white;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    box-shadow: 0 2px 8px rgba(255,105,193,0.3);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.squishpop-hero {
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--lavender) 30%, var(--yellow-soft) 60%, var(--mint) 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.squishpop-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: gentleFloat 6s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5em;
    color: var(--pink);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(255,105,193,0.2);
    animation: fadeInUp 1.2s ease-out;
}

.hero-subtitle {
    font-size: 1.3em;
    color: var(--text-dark);
    margin-bottom: 10px;
    animation: fadeInUp 1.4s ease-out;
}

.hero-subtitle strong {
    color: var(--pink);
}

.hero-description {
    color: var(--gray);
    font-size: 1.1em;
    margin-bottom: 30px;
    animation: fadeInUp 1.6s ease-out;
}

.hero-emoji-row {
    margin-top: 25px;
    font-size: 2em;
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: fadeInUp 1.8s ease-out;
}

.hero-emoji-row span {
    animation: gentleFloat 3s ease-in-out infinite;
}

.hero-emoji-row span:nth-child(2) { animation-delay: 0.3s; }
.hero-emoji-row span:nth-child(3) { animation-delay: 0.6s; }
.hero-emoji-row span:nth-child(4) { animation-delay: 0.9s; }
.hero-emoji-row span:nth-child(5) { animation-delay: 1.2s; }
.hero-emoji-row span:nth-child(6) { animation-delay: 1.5s; }
.hero-emoji-row span:nth-child(7) { animation-delay: 1.8s; }

/* ============================================================
   FLASH SALE BANNER
   ============================================================ */
.flash-sale-banner {
    background: linear-gradient(90deg, var(--pink), var(--pink-dark));
    padding: 12px 20px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.flash-sale-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.flash-icon {
    font-size: 1.5em;
    animation: gentleFloat 1.5s ease-in-out infinite;
}

.flash-text {
    font-family: var(--font-body);
    font-weight: 700;
    color: white;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.flash-text strong {
    color: var(--yellow-soft);
    text-decoration: underline;
}

/* ============================================================
   KAWAII BUTTONS
   ============================================================ */
.kawaii-btn,
a.kawaii-btn,
button.kawaii-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink), var(--mint));
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 18px;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kawaii-btn:hover,
a.kawaii-btn:hover,
button.kawaii-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--pink-dark), var(--mint-dark));
    color: white;
}

.hero-btn {
    font-size: 22px;
    padding: 16px 50px;
    animation: fadeInUp 2s ease-out;
}

/* WooCommerce default button override */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, var(--pink), var(--mint)) !important;
    color: white !important;
    border-radius: 50px !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    padding: 12px 30px !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-soft) !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-hover) !important;
    background: linear-gradient(135deg, var(--pink-dark), var(--mint-dark)) !important;
}

/* ============================================================
   PRODUCT GRID — CSS GRID
   ============================================================ */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 25px !important;
    padding: 20px 0 !important;
    list-style: none !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.squishpop-product-card {
    background: var(--white);
    border: 2px solid var(--pink-light);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.squishpop-product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink);
}

.squishpop-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--pink-light), var(--lavender), var(--mint), var(--yellow-soft));
    border-radius: var(--radius) var(--radius) 0 0;
}

.product-emoji-placeholder {
    font-size: 4em;
    padding: 20px;
    animation: gentleFloat 3s ease-in-out infinite;
}

.woocommerce ul.products li.product a img {
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: var(--text-dark);
    padding: 5px 0;
}

.woocommerce ul.products li.product .price {
    color: var(--pink) !important;
    font-weight: 700;
    font-size: 1.3em !important;
}

.woocommerce ul.products li.product .price del {
    color: var(--gray) !important;
    font-size: 0.8em;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    font-weight: 800;
}

/* Add to cart button on product cards */
.woocommerce ul.products li.product .button {
    margin-top: 10px !important;
    font-size: 14px !important;
    padding: 10px 20px !important;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.squishpop-testimonials {
    padding: 60px 20px;
    background: var(--lavender);
}

.section-title {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 2.5em;
    color: var(--pink);
    margin-bottom: 40px;
}

.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--yellow-soft);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--pink-light);
}

.stars {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.testimonial-text {
    font-size: 1.05em;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--pink);
    font-family: var(--font-heading);
    font-size: 1.1em;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.squishpop-newsletter {
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--yellow-soft), var(--pink-light));
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-family: var(--font-heading);
    font-size: 2.2em;
    color: var(--pink);
    margin-bottom: 10px;
}

.newsletter-content p {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    padding: 14px 20px;
    border: 2px solid var(--pink-light);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 16px;
    flex: 1;
    min-width: 250px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 3px rgba(255,105,193,0.2);
}

.newsletter-form .kawaii-btn {
    padding: 14px 30px;
    font-size: 16px;
}

/* ============================================================
   KAWAII FOOTER
   ============================================================ */
.squishpop-footer {
    background: linear-gradient(180deg, var(--lavender), var(--pink-light));
    padding: 40px 20px 20px;
    color: var(--text-dark);
}

.footer-wave {
    text-align: center;
    font-size: 1.2em;
    color: var(--pink);
    margin-bottom: 30px;
    opacity: 0.6;
    letter-spacing: 3px;
    font-family: monospace;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.3em;
    color: var(--pink-dark);
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 10px;
}

.footer-col a {
    display: block;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--pink);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 12px;
    font-size: 1.5em;
    margin-top: 10px;
}

.footer-social span {
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-social span:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 2px solid rgba(255,255,255,0.5);
}

.footer-bottom p {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.footer-emoji-line {
    font-size: 1.5em;
    letter-spacing: 8px;
    animation: gentleFloat 4s ease-in-out infinite;
}

/* ============================================================
   WOOCOMMERCE SINGLE PRODUCT
   ============================================================ */
.woocommerce div.product {
    animation: fadeInUp 0.8s ease-out;
}

.woocommerce div.product .product_title {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--pink);
}

.woocommerce div.product p.price {
    color: var(--pink) !important;
    font-size: 1.8em !important;
    font-weight: 700;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-dark);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--pink);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom-color: var(--pink);
}

/* ============================================================
   CART & CHECKOUT
   ============================================================ */
.woocommerce-cart .cart_totals h2,
.woocommerce-checkout h3 {
    font-family: var(--font-heading);
    color: var(--pink);
}

.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
    font-family: var(--font-body);
}

.woocommerce-checkout #payment {
    border-radius: var(--radius);
    border: 2px solid var(--pink-light);
}

.woocommerce-checkout #payment div.payment_box {
    border-radius: var(--radius-sm);
}

/* ============================================================
   PAGE TITLES
   ============================================================ */
.woocommerce-products-header h1.page-title {
    font-family: var(--font-heading);
    color: var(--pink);
    text-align: center;
    font-size: 2.5em;
    padding: 30px 0;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 768px) {
    .squishpop-header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .squishpop-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .hero-btn {
        font-size: 18px;
        padding: 12px 35px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
        gap: 15px !important;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-wave {
        font-size: 0.9em;
    }

    .section-title {
        font-size: 2em;
    }

    .flash-text {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .squishpop-top-bar-inner {
        font-size: 12px;
    }

    .logo-text {
        font-size: 1.5em;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-emoji-row {
        font-size: 1.5em;
        gap: 10px;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form input[type="email"] {
        min-width: auto;
        width: 100%;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--pink-light), var(--lavender));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--pink), var(--lavender));
}

/* ============================================================
   SELECTION STYLING
   ============================================================ */
::selection {
    background: var(--pink-light);
    color: var(--text-dark);
}

/* ============================================================
   ADDITIONAL WOOCOMMERCE FIXES
   ============================================================ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--pink) !important;
    border-radius: var(--radius-sm) !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--pink) !important;
}

.woocommerce .star-rating span {
    color: var(--pink) !important;
}

.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: var(--pink-light) !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--pink) !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--pink) !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul {
    border: 2px solid var(--pink-light);
    border-radius: 50px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-dark);
}

.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--pink-light);
    color: var(--pink-dark);
}
