/*
Theme Name: Tiny Toy Trunk V2
Theme URI: https://www.tinytoytrunk.com/
Author: Tiny Toy Trunk
Description: Custom Tiny Toy Trunk storefront theme based on the approved Selected Design V2, integrated with WooCommerce.
Version: 1.0.0
Text Domain: tinytoytrunk-v2
*/
:root{
  --navy:#102d5b;
  --pink:#ff2f7f;
  --red:#ff5a5f;
  --cream:#fff4c7;
  --blue:#cdefff;
  --soft:#fffaf0;
  --text:#17315f;
  --card:#ffffff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(255,255,255,.8) 0 12%, transparent 13%),
    radial-gradient(circle at 86% 12%, rgba(255,255,255,.6) 0 10%, transparent 11%),
    linear-gradient(135deg,#fff3bf 0%,#fff8d8 42%,#d7f1ff 100%);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.top-strip{
  min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:6px 18px;font-weight:700;font-size:13px;background:#c9efff;border-bottom:1px solid rgba(16,45,91,.08)
}
.site-header{
  display:grid;grid-template-columns:280px 1fr 220px;gap:22px;align-items:center;padding:14px 30px 10px
}
.brand-block{display:flex;align-items:center;gap:16px}
.brand-logo{width:170px}
.brand-words{font-size:20px;font-weight:800;line-height:1.05;transform:rotate(-4deg)}
.search-wrap{position:relative;display:flex;align-items:center}
.search-wrap input{
  width:100%;height:46px;border:0;border-radius:24px 0 0 24px;padding:0 20px;font-size:15px;box-shadow:0 8px 24px rgba(16,45,91,.12)
}
.search-wrap button{
  width:58px;height:46px;border:0;border-radius:0 24px 24px 0;background:var(--pink);color:#fff;font-size:20px
}
.search-results{
  display:none;position:absolute;z-index:20;top:52px;left:0;right:0;background:#fff;border-radius:16px;
  box-shadow:0 18px 40px rgba(16,45,91,.18);padding:8px 0
}
.search-results div{padding:10px 16px;border-bottom:1px solid #eee}
.header-actions{display:flex;justify-content:flex-end;gap:28px;text-align:center;font-size:28px}
.header-actions small{display:block;font-size:12px;font-weight:700;margin-top:3px}
.main-nav{
  margin:0 18px 10px;padding:0 10px;display:flex;justify-content:space-around;align-items:center;gap:8px;
  min-height:46px;border-radius:26px;background:#c6ebfa;font-weight:800;font-size:14px;overflow-x:auto
}
.main-nav a{padding:10px 14px;white-space:nowrap;border-radius:12px}
.main-nav .active{background:#ff5b66;color:#fff}
.hero{
  display:grid;grid-template-columns:1.15fr .85fr;min-height:520px;align-items:center;overflow:hidden;
  background:linear-gradient(135deg,#fff1b2 0%,#fff8da 52%,#d4f2ff 100%);padding:38px 5vw;position:relative
}
.hero:before,.hero:after{
  content:"";position:absolute;border-radius:50%;background:#cfefff;opacity:.8
}
.hero:before{width:420px;height:180px;left:-120px;bottom:-80px}
.hero:after{width:360px;height:140px;right:-110px;top:-60px}
.hero-copy{position:relative;z-index:2}
.eyebrow{
  display:inline-block;background:var(--navy);color:#fff;padding:10px 18px;border-radius:24px;font-size:14px;font-weight:800
}
.hero h1{font-size:clamp(44px,6vw,78px);line-height:.98;margin:22px 0 18px;max-width:760px}
.hero p{font-size:20px;line-height:1.6;max-width:720px;color:#536580}
.benefit-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0;font-weight:700;font-size:14px}
.btn{display:inline-flex;align-items:center;justify-content:center;border-radius:28px;padding:14px 28px;font-weight:800}
.btn.primary{background:linear-gradient(90deg,#ff2f7f,#ff625d);color:#fff}
.btn.small{padding:10px 16px;font-size:13px}
.hero-art{position:relative;z-index:2;display:flex;justify-content:center;align-items:end;min-height:420px}
.hero-art img{width:min(430px,90%);height:420px;object-fit:cover;border-radius:48% 48% 8% 8%;box-shadow:0 20px 50px rgba(16,45,91,.18)}
.scribble{position:absolute;z-index:3;top:30px;left:0;font-size:30px;color:#ff4f72;transform:rotate(-8deg);font-family:cursive}
.section{padding:28px 20px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;max-width:1180px;margin:0 auto 16px}
.section-head h2{margin:0;font-size:30px}
.section-head a{text-decoration:underline;font-weight:700}
.category-row{
  max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(8,1fr);gap:14px
}
.category-card{text-align:center;font-weight:800;font-size:13px}
.category-image{
  aspect-ratio:1/1;border-radius:50%;overflow:hidden;background:#fff2d9;padding:8px;box-shadow:0 8px 20px rgba(16,45,91,.08);margin-bottom:8px
}
.category-image img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.promo-grid{
  max-width:1180px;margin:10px auto 8px;padding:0 20px;display:grid;grid-template-columns:repeat(3,1fr);gap:14px
}
.promo-card{
  min-height:190px;border-radius:20px;padding:18px;display:flex;align-items:center;justify-content:space-between;overflow:hidden
}
.promo-card strong{display:block;font-size:28px;line-height:1.05;margin-bottom:8px}
.promo-card span{display:block;font-weight:700;margin-bottom:16px}
.promo-card a{display:inline-block;background:#ff5a5f;color:#fff;padding:9px 14px;border-radius:20px;font-weight:800}
.promo-card img{width:46%;height:150px;object-fit:cover;border-radius:16px}
.promo-blue{background:linear-gradient(135deg,#173b84,#4ea3ff);color:#fff}
.promo-pink{background:#ffd6e5}
.promo-yellow{background:#fff0ad}
.product-grid{
  max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(6,1fr);gap:12px
}
.product-card{
  background:#fff;border-radius:16px;padding:12px;text-align:center;box-shadow:0 10px 24px rgba(16,45,91,.08)
}
.product-img{aspect-ratio:1/1;background:#fff8ee;border-radius:12px;overflow:hidden}
.product-img img{width:100%;height:100%;object-fit:cover}
.product-card h3{font-size:14px;min-height:38px;margin:10px 0 4px}
.price{font-size:22px;font-weight:900;margin-bottom:10px}
.add-btn{
  display:block;background:linear-gradient(90deg,#ff2f7f,#ff625d);color:#fff;border-radius:20px;padding:9px 8px;font-weight:800;font-size:13px
}
.trust-strip{
  max-width:1180px;margin:24px auto;padding:16px 20px;display:grid;grid-template-columns:repeat(5,1fr);
  gap:10px;background:#dff3fb;border-radius:28px;font-weight:800;text-align:center
}
.footer{
  display:grid;grid-template-columns:1.15fr 1fr 1.3fr .8fr;gap:28px;padding:38px 5vw 30px;
  background:linear-gradient(135deg,#fff0ae,#dff5ff);border-top:1px solid rgba(16,45,91,.08)
}
.footer h3{margin-top:0}
.footer p{line-height:1.45}
.footer-brand img{width:190px;margin-bottom:12px}
.footer-brand p{font-style:italic}
.qr{width:150px;border-radius:12px;background:#fff;padding:8px}
.footer-bottom{
  display:flex;justify-content:space-between;gap:20px;padding:12px 4vw;background:#c8edfb;font-size:13px
}
.wa-float{
  position:fixed;right:24px;bottom:24px;width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#19cf69;font-size:28px;box-shadow:0 12px 30px rgba(0,0,0,.2);z-index:30
}
@media (max-width:1000px){
  .site-header{grid-template-columns:220px 1fr}.header-actions{display:none}
  .category-row{grid-template-columns:repeat(4,1fr)}
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .benefit-row{grid-template-columns:repeat(2,1fr)}
  .footer{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:700px){
  .desktop-only{display:none!important}
  .top-strip{font-size:11px;padding:6px 10px;justify-content:center;text-align:center}
  .site-header{grid-template-columns:1fr;padding:12px 16px}
  .brand-block{justify-content:center}
  .brand-logo{width:185px}
  .brand-words{display:none}
  .search-wrap{width:100%}
  .main-nav{justify-content:flex-start;margin:0;border-radius:0;padding:6px 10px}
  .hero{grid-template-columns:1fr;padding:28px 22px;min-height:auto}
  .hero h1{font-size:46px}
  .hero p{font-size:18px}
  .hero-art{min-height:290px;margin-top:10px}
  .hero-art img{height:290px;width:88%}
  .scribble{font-size:24px;left:10px;top:10px}
  .benefit-row{grid-template-columns:1fr 1fr;font-size:12px}
  .section{padding:24px 14px}
  .section-head h2{font-size:24px}
  .section-head a{font-size:12px}
  .category-row{display:flex;overflow-x:auto;gap:12px;padding-bottom:6px}
  .category-card{min-width:98px}
  .promo-grid{grid-template-columns:1fr;padding:0 14px}
  .promo-card{min-height:160px}
  .promo-card strong{font-size:24px}
  .product-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .trust-strip{grid-template-columns:1fr 1fr;margin:18px 14px;border-radius:18px}
  .footer{grid-template-columns:1fr;padding:28px 22px}
  .footer-bottom{flex-direction:column;text-align:center}
  .wa-float{right:16px;bottom:16px}
}


/* ===== Selected Design V2 refinements ===== */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
.site-header, .main-nav, .hero, .section, .promo-grid, .trust-strip, .footer, .footer-bottom { max-width:100%; }

@media (max-width:700px){
  body{background:linear-gradient(135deg,#fff5c7 0%,#fffce8 52%,#dff4ff 100%);}
  .top-strip{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    min-height:56px;
    font-size:12px;
    line-height:1.25;
    padding:8px 12px;
  }

  .site-header{
    padding:12px 14px 14px;
    gap:12px;
    background:rgba(255,255,255,.46);
  }

  .brand-block{
    width:100%;
    height:128px;
    overflow:hidden;
    justify-content:center;
    border-radius:18px;
  }
  .brand-logo{
    width:250px;
    height:128px;
    object-fit:cover;
    object-position:center;
    border-radius:18px;
  }

  .search-wrap input{
    height:50px;
    font-size:16px;
    min-width:0;
    padding-left:16px;
  }
  .search-wrap button{
    height:50px;
    width:62px;
    flex:0 0 62px;
  }

  .main-nav{
    width:100%;
    margin:0;
    padding:7px 10px;
    min-height:52px;
    gap:4px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
    background:#c5ecfb;
    justify-content:flex-start;
  }
  .main-nav a{
    flex:0 0 auto;
    padding:9px 12px;
    font-size:13px;
  }

  .hero{
    padding:30px 20px 26px;
    min-height:auto;
    overflow:hidden;
  }
  .hero-copy{min-width:0}
  .eyebrow{
    font-size:12px;
    padding:9px 14px;
    max-width:100%;
    white-space:normal;
  }
  .hero h1{
    font-size:42px;
    line-height:1.02;
    letter-spacing:-1px;
    margin:18px 0 14px;
    max-width:100%;
    word-break:normal;
    overflow-wrap:normal;
  }
  .hero p{
    font-size:17px;
    line-height:1.5;
    margin:0;
  }
  .benefit-row{
    grid-template-columns:1fr 1fr;
    gap:8px 12px;
    margin:18px 0;
    font-size:12px;
  }
  .hero .btn{padding:13px 22px}

  .hero-art{
    min-height:220px;
    margin-top:20px;
    align-items:center;
  }
  .hero-art img{
    width:min(310px,88vw);
    height:220px;
    border-radius:28px;
    object-fit:cover;
  }
  .scribble{
    top:4px;
    left:6px;
    font-size:20px;
  }

  .section-head{
    align-items:flex-end;
    margin-bottom:14px;
  }
  .section-head h2{font-size:23px;line-height:1.1}
  .section-head a{font-size:11px;text-align:right}

  .category-row{
    gap:10px;
    scroll-snap-type:x proximity;
  }
  .category-card{
    min-width:92px;
    scroll-snap-align:start;
    font-size:12px;
  }

  .promo-grid{gap:12px}
  .promo-card{
    min-height:150px;
    padding:16px;
  }
  .promo-card strong{font-size:22px}
  .promo-card img{height:120px}

  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-card{padding:10px;min-width:0}
  .product-card h3{
    font-size:13px;
    min-height:34px;
    overflow-wrap:anywhere;
  }
  .price{font-size:20px}
  .add-btn{font-size:12px;padding:9px 6px}

  .trust-strip{
    grid-template-columns:1fr 1fr;
    font-size:12px;
    padding:14px 12px;
  }

  .footer{
    gap:22px;
    padding:30px 20px 26px;
  }
  .footer-brand img{
    width:190px;
    max-height:110px;
    object-fit:cover;
    object-position:center;
    border-radius:12px;
  }
  .footer p,.footer a{font-size:15px}
  .footer .btn.small{
    width:100%;
    text-align:center;
  }

  .footer-bottom{
    padding:14px 18px 18px;
    font-size:12px;
    line-height:1.45;
  }

  .wa-float{
    width:56px;
    height:56px;
    right:16px;
    bottom:16px;
  }
}

@media (max-width:390px){
  .hero h1{font-size:36px}
  .brand-logo{width:220px}
  .benefit-row{grid-template-columns:1fr}
  .product-grid{grid-template-columns:1fr 1fr}
}

/* ===== WordPress + WooCommerce integration ===== */
body.admin-bar .wa-float{bottom:56px}
.brand-block{color:inherit}
.header-actions a{display:block;color:inherit}
.search-wrap{margin:0}
.search-wrap input{box-sizing:border-box}
.ttt-content-wrap{max-width:1180px;margin:28px auto 50px;padding:24px;background:rgba(255,255,255,.9);border-radius:22px;box-shadow:0 10px 30px rgba(16,45,91,.08)}
.ttt-entry h1,.ttt-content-wrap h1{color:var(--navy)}
.ttt-entry-content img{height:auto}
.ttt-woocommerce-wrap .woocommerce{width:100%}
.woocommerce .woocommerce-breadcrumb{margin-bottom:18px;color:#536580}
.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0!important}
.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}
.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;background:#fff;border-radius:16px;padding:12px;box-shadow:0 10px 24px rgba(16,45,91,.08)}
.woocommerce ul.products li.product a img{border-radius:12px;margin-bottom:10px!important}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;color:var(--navy)}
.woocommerce ul.products li.product .price{font-size:18px!important;color:var(--navy)!important}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:linear-gradient(90deg,#ff2f7f,#ff625d)!important;color:#fff!important;border-radius:22px!important;padding:11px 16px!important}
.woocommerce div.product{background:#fff;border-radius:18px;padding:20px}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--navy)!important;font-weight:900}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:12px;background:#fff}
.woocommerce-cart table.cart img{width:90px}
.woocommerce-checkout #customer_details,.woocommerce-checkout #order_review_heading,.woocommerce-checkout #order_review{background:#fff;border-radius:16px;padding:18px;margin-bottom:18px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1px solid #dce5ed;border-radius:10px;padding:12px}
.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{background:#fff;border-radius:14px;padding:18px}
@media(max-width:900px){.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .ttt-content-wrap{margin:16px 12px 30px;padding:16px;border-radius:16px}
  .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .woocommerce ul.products li.product{padding:10px}
  .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important}
  .woocommerce ul.products li.product .price{font-size:15px!important}
}
/* ===== Tiny Toy Trunk Shipping Running Bar ===== */

.top-strip{
    display:block !important;
    padding:0 !important;
    overflow:hidden;
}

.top-static{
    min-height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:20px;
    padding:6px 12px;
    text-align:center;
}

.shipping-ticker{
    width:100%;
    overflow:hidden;
    border-top:1px solid rgba(16,45,91,.10);
}

.shipping-ticker-track{
    display:flex;
    width:max-content;
    animation:tttShippingTicker 18s linear infinite;
    will-change:transform;
}

.shipping-ticker-track span{
    flex:none;
    white-space:nowrap;
    padding:7px 32px;
    font-weight:800;
}

@keyframes tttShippingTicker{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-50%);
    }
}

@media(max-width:700px){
    .top-static{
        font-size:11px;
        gap:8px;
        padding:6px 8px;
    }

    .shipping-ticker-track{
        font-size:11px;
        animation-duration:16s;
    }

    .shipping-ticker-track span{
        padding:7px 24px;
    }
}
/* ===== Fix Featured Products & Trust Strip Overlap ===== */

.product-grid{
    margin-bottom:35px !important;
}

.trust-strip{
    position:relative !important;
    clear:both !important;
    width:calc(100% - 28px) !important;
    margin:35px auto 30px !important;
    padding:14px 12px !important;
    box-sizing:border-box !important;
    z-index:1 !important;
}

@media(max-width:700px){

    .product-grid{
        row-gap:28px !important;
        margin-bottom:40px !important;
    }

    .product-card{
        height:auto !important;
        min-height:0 !important;
        overflow:visible !important;
        padding-bottom:14px !important;
    }

    .trust-strip{
        display:grid !important;
        grid-template-columns:1fr 1fr !important;
        gap:10px 8px !important;
        margin-top:40px !important;
        margin-bottom:28px !important;
        line-height:1.3 !important;
    }

    .trust-strip > *{
        position:relative !important;
        width:auto !important;
    }

    .trust-strip > *:last-child{
        grid-column:1 / -1 !important;
    }
}
/* ===== Compact Featured Products + Proper Button Spacing ===== */

.product-grid{
    margin-bottom:24px !important;
    align-items:start !important;
}

.product-card{
    height:auto !important;
    min-height:0 !important;
    overflow:visible !important;
    padding-bottom:18px !important;
}

.product-img{
    aspect-ratio:4 / 3 !important;
    min-height:0 !important;
    overflow:hidden !important;
}

.product-img img{
    width:100% !important;
    height:100% !important;
    object-fit:contain !important;
}

.product-card .price{
    margin:8px 0 10px !important;
}

.product-card .add-btn{
    display:block !important;
    width:100% !important;
    min-height:40px !important;
    padding:10px 8px !important;
    line-height:18px !important;
    margin:0 !important;
    position:relative !important;
    z-index:2 !important;
}

.trust-strip{
    position:relative !important;
    clear:both !important;
    width:calc(100% - 28px) !important;
    margin:28px auto 28px !important;
    padding:14px 12px !important;
    box-sizing:border-box !important;
}

@media(max-width:700px){

    .product-grid{
        gap:16px 10px !important;
        margin-bottom:28px !important;
    }

    .product-img{
        aspect-ratio:4 / 3 !important;
    }

    .product-card{
        padding-bottom:16px !important;
    }

    .product-card .add-btn{
        min-height:38px !important;
        padding:9px 6px !important;
        font-size:12px !important;
    }

    .trust-strip{
        display:grid !important;
        grid-template-columns:1fr 1fr !important;
        gap:10px 8px !important;
        margin-top:28px !important;
    }

    .trust-strip > *:last-child{
        grid-column:1 / -1 !important;
    }
}
/* ===== WhatsApp Community - Compact Premium Card ===== */

.whatsapp-community{
    max-width:1180px;
    margin:24px auto 30px;
    padding:0 14px;
}

.wa-community-card{
    display:grid;
    grid-template-columns:1fr 145px;
    align-items:center;
    gap:22px;
    padding:20px 24px;
    background:linear-gradient(135deg,#effff4,#f7fffa);
    border:1px solid rgba(37,211,102,.25);
    border-radius:22px;
    box-shadow:0 8px 24px rgba(16,45,91,.08);
}

.wa-community-badge{
    display:inline-block;
    font-size:13px;
    font-weight:800;
    margin-bottom:6px;
}

.wa-community-copy h2{
    margin:0 0 7px;
    font-size:25px;
    line-height:1.15;
    color:#102d5b;
}

.wa-community-copy p{
    margin:0 0 14px;
    font-size:14px;
    line-height:1.5;
}

.wa-community-btn{
    display:inline-block;
    background:#25D366;
    color:#fff !important;
    padding:11px 18px;
    border-radius:24px;
    font-size:13px;
    font-weight:800;
    text-decoration:none;
}

.wa-community-qr{
    text-align:center;
}

.wa-community-qr img{
    display:block;
    width:135px !important;
    height:135px !important;
    object-fit:contain !important;
    margin:0 auto;
    border-radius:14px;
}

.wa-community-qr strong{
    display:block;
    margin-top:6px;
    font-size:11px;
    color:#102d5b;
}

/* Mobile */
@media(max-width:700px){

    .whatsapp-community{
        margin:22px auto 26px;
        padding:0 12px;
    }

    .wa-community-card{
        grid-template-columns:1fr 110px;
        gap:12px;
        padding:16px;
        border-radius:18px;
    }

    .wa-community-copy{
        text-align:left;
    }

    .wa-community-badge{
        font-size:11px;
    }

    .wa-community-copy h2{
        font-size:19px;
        margin-bottom:6px;
    }

    .wa-community-copy p{
        font-size:12px;
        line-height:1.4;
        margin-bottom:10px;
    }

    .wa-community-btn{
        padding:9px 12px;
        font-size:11px;
    }

    .wa-community-qr img{
        width:105px !important;
        height:105px !important;
    }

    .wa-community-qr strong{
        font-size:9px;
    }
}

@media(max-width:430px){

    .wa-community-card{
        grid-template-columns:1fr;
        text-align:center;
    }

    .wa-community-copy{
        text-align:center;
    }

    .wa-community-qr img{
        width:120px !important;
        height:120px !important;
    }
}