/*
Theme Name: FUTURE TOY SPACE
Version: 0.1.0
Description: Independent WooCommerce test framework with the approved FUTURE TOY SPACE brand.
Text Domain: futuretoyspace
*/
:root{--fts-paper:#f4f1e8;--fts-ink:#17191d;--fts-lime:#d6ff3f;--fts-violet:#7656ff;--fts-price:#5333cf;--fts-line:#d8d5cc;--fts-radius:8px}
body.fts-native{margin:0;background:var(--fts-paper);color:var(--fts-ink);font:15px/1.7 "Noto Sans","Microsoft YaHei","Hiragino Kaku Gothic ProN",sans-serif}
.fts-test-banner{background:var(--fts-ink);color:var(--fts-lime);padding:9px 20px;text-align:center;font:600 13px/1.6 "Noto Sans","Microsoft YaHei",sans-serif;position:relative;z-index:1050}
.fts-store-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px max(24px,calc((100vw - 1240px)/2));border-bottom:1px solid var(--fts-line)}
.fts-store-logo img{width:225px;height:62px;object-fit:contain;display:block}.fts-store-nav{display:flex;align-items:center;gap:25px;flex-wrap:wrap}.fts-store-nav a{color:var(--fts-ink);text-decoration:none;font-weight:600}.fts-store-nav a:hover{text-decoration:underline;text-underline-offset:5px}
.fts-language{font:inherit;padding:9px 12px;border:1px solid var(--fts-line);border-radius:6px;background:#fff;color:var(--fts-ink)}
.fts-native-main{max-width:1240px;margin:0 auto;padding:40px 24px 70px;min-height:55vh}.fts-native-main h1{font-size:clamp(27px,3vw,38px);line-height:1.25;margin:0 0 30px;font-weight:700;letter-spacing:-.02em}.fts-native-main h2{font-size:24px;line-height:1.4;margin:30px 0 18px}.fts-native-main h3{font-size:20px;line-height:1.5;margin:24px 0 16px}
.fts-native-main p{max-width:72ch}.fts-native-main a{color:var(--fts-price);text-underline-offset:3px}.fts-native-main :focus-visible,.fts-store-header :focus-visible{outline:3px solid var(--fts-violet);outline-offset:3px}
:is(.fts-native .woocommerce,.fts-native.woocommerce) a.button,:is(.fts-native .woocommerce,.fts-native.woocommerce) button.button,:is(.fts-native .woocommerce,.fts-native.woocommerce) input.button,:is(.fts-native .woocommerce,.fts-native.woocommerce) #respond input#submit{background:var(--fts-ink);color:var(--fts-lime);border:0;border-radius:6px;padding:14px 22px;font-size:15px;font-weight:650;line-height:1.4;min-height:48px;box-sizing:border-box;cursor:pointer;transition:background .15s ease}
:is(.fts-native .woocommerce,.fts-native.woocommerce) a.button:hover,:is(.fts-native .woocommerce,.fts-native.woocommerce) button.button:hover,:is(.fts-native .woocommerce,.fts-native.woocommerce) input.button:hover{background:var(--fts-price);color:#fff}:is(.fts-native .woocommerce,.fts-native.woocommerce) button.button:disabled{opacity:.55;cursor:not-allowed}
:is(.fts-native .woocommerce,.fts-native.woocommerce) input.input-text,:is(.fts-native .woocommerce,.fts-native.woocommerce) textarea,:is(.fts-native .woocommerce,.fts-native.woocommerce) select{font:inherit;background:#fff;color:var(--fts-ink);border:1px solid #b2afa5;border-radius:6px;padding:12px;min-height:48px;box-sizing:border-box;max-width:100%}:is(.fts-native .woocommerce,.fts-native.woocommerce) textarea{min-height:110px}:is(.fts-native .woocommerce,.fts-native.woocommerce) form .form-row{margin:0 0 18px;padding:0}:is(.fts-native .woocommerce,.fts-native.woocommerce) form .form-row label{font-weight:600;margin:0 0 7px;font-size:14px}:is(.fts-native .woocommerce,.fts-native.woocommerce) form .form-row .required{color:#ae2632}:is(.fts-native .woocommerce,.fts-native.woocommerce) .select2-selection{border:1px solid #b2afa5;border-radius:6px;min-height:48px;padding:8px}.fts-native .select2-container .select2-selection__rendered{line-height:30px!important}.fts-native .select2-selection__arrow{height:46px!important}
:is(.fts-native .woocommerce,.fts-native.woocommerce) form.checkout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr);gap:0 52px;align-items:start}:is(.fts-native .woocommerce,.fts-native.woocommerce) form.checkout #customer_details{grid-column:1;grid-row:1/4;width:100%}:is(.fts-native .woocommerce,.fts-native.woocommerce) form.checkout #order_review_heading{grid-column:2;margin:0 0 20px}:is(.fts-native .woocommerce,.fts-native.woocommerce) form.checkout #order_review{grid-column:2;min-width:0}:is(.fts-native .woocommerce,.fts-native.woocommerce) .col2-set .col-1,:is(.fts-native .woocommerce,.fts-native.woocommerce) .col2-set .col-2{float:none;width:100%}:is(.fts-native .woocommerce,.fts-native.woocommerce) form.checkout .woocommerce-NoticeGroup{grid-column:1/-1}:is(.fts-native .woocommerce,.fts-native.woocommerce) form.checkout #customer_details h3:first-child{margin-top:0}
:is(.fts-native .woocommerce,.fts-native.woocommerce) table.shop_table{border:0;border-collapse:collapse;border-radius:0;margin:0 0 25px;background:transparent}:is(.fts-native .woocommerce,.fts-native.woocommerce) table.shop_table th{padding:16px 12px;border-bottom:2px solid var(--fts-ink);text-align:left;font-size:14px}:is(.fts-native .woocommerce,.fts-native.woocommerce) table.shop_table td{padding:18px 12px;border-top:1px solid var(--fts-line);vertical-align:middle}:is(.fts-native .woocommerce,.fts-native.woocommerce) .woocommerce-cart-form .product-thumbnail img{width:80px;height:90px;object-fit:contain;background:white}:is(.fts-native .woocommerce,.fts-native.woocommerce) .woocommerce-cart-form .quantity .qty{width:78px}:is(.fts-native .woocommerce,.fts-native.woocommerce) .cart-collaterals .cart_totals{width:min(100%,460px)}
:is(.fts-native .woocommerce,.fts-native.woocommerce) .cart-collaterals .cart_totals h2{margin-top:15px}:is(.fts-native .woocommerce,.fts-native.woocommerce) ul#shipping_method li{margin:0 0 10px}:is(.fts-native .woocommerce,.fts-native.woocommerce) ul#shipping_method label{font-weight:400}
:is(.fts-native .woocommerce,.fts-native.woocommerce) #payment{background:#e8e5dc;border-radius:8px;padding:10px 6px}:is(.fts-native .woocommerce,.fts-native.woocommerce) #payment ul.payment_methods{border-bottom:1px solid #bdb9ad;padding:18px}:is(.fts-native .woocommerce,.fts-native.woocommerce) #payment div.payment_box{background:var(--fts-paper);color:var(--fts-ink);padding:16px;line-height:1.7}:is(.fts-native .woocommerce,.fts-native.woocommerce) #payment div.payment_box:before{border-bottom-color:var(--fts-paper)}:is(.fts-native .woocommerce,.fts-native.woocommerce) #payment .place-order{padding:18px}:is(.fts-native .woocommerce,.fts-native.woocommerce) #place_order{float:none;width:100%;margin-top:15px}
.fts-native .woocommerce-error,.fts-native .woocommerce-info,.fts-native .woocommerce-message{background:#fff;border-top:3px solid var(--fts-price);color:var(--fts-ink);padding:18px 24px 18px 50px;border-radius:0;line-height:1.7}.fts-native .woocommerce-error{border-top-color:#ae2632}.fts-native .woocommerce-error:before{color:#ae2632}.fts-native .woocommerce-info:before,.fts-native .woocommerce-message:before{color:var(--fts-price)}
.fts-native .woocommerce-MyAccount-navigation{width:23%}.fts-native .woocommerce-MyAccount-navigation ul{padding:0;margin:0;list-style:none;border-top:1px solid var(--fts-line)}.fts-native .woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--fts-line)}.fts-native .woocommerce-MyAccount-navigation a{display:block;padding:14px 12px;text-decoration:none;color:var(--fts-ink)}.fts-native .woocommerce-MyAccount-navigation .is-active a{background:var(--fts-lime);font-weight:700}.fts-native .woocommerce-MyAccount-content{width:72%;min-width:0}:is(.fts-native .woocommerce,.fts-native.woocommerce) .woocommerce-form-login,:is(.fts-native .woocommerce,.fts-native.woocommerce) .woocommerce-form-register{padding:24px;border:1px solid var(--fts-line);border-radius:8px;background:#fff}.fts-native #customer_login{display:grid;grid-template-columns:1fr 1fr;gap:32px}.fts-native #customer_login .col-1,.fts-native #customer_login .col-2{width:100%;float:none}
:is(.fts-native .woocommerce,.fts-native.woocommerce) div.product .woocommerce-product-gallery{max-width:48%}:is(.fts-native .woocommerce,.fts-native.woocommerce) div.product .summary{max-width:48%}:is(.fts-native .woocommerce,.fts-native.woocommerce) div.product p.price{color:var(--fts-price);font-weight:700;font-size:25px}.fts-price-unit{white-space:nowrap;font-size:.8em}.fts-native .woocommerce-product-gallery img{max-height:640px;object-fit:contain}:is(.fts-native .woocommerce,.fts-native.woocommerce) ul.products li.product .price{color:var(--fts-price)}
.fts-native .woocommerce-order-overview{padding:0}.fts-native .woocommerce-order-overview li{margin-bottom:15px!important;line-height:1.7}.fts-native .woocommerce-order-details,.fts-native .woocommerce-customer-details{margin-top:36px}.fts-native .woocommerce-customer-details address{line-height:1.8;padding:20px!important;border:1px solid var(--fts-line)!important;box-sizing:border-box}
.fts-store-footer{border-top:1px solid var(--fts-line);padding:30px 24px;display:flex;gap:20px;flex-wrap:wrap;justify-content:center;font-size:13px}.fts-store-footer a{color:var(--fts-ink)}
.fts-home .fts-test-banner{margin-left:75px}.fts-home .pd-preview-note{font-size:13px}.fts-home .pd-primary[aria-busy=true]{opacity:.6;pointer-events:none}
@media(max-width:760px){.fts-store-header{padding:16px 18px;align-items:flex-start;gap:15px;flex-wrap:wrap}.fts-store-logo img{width:185px;height:50px}.fts-store-nav{gap:16px;font-size:14px}.fts-native-main{padding:28px 18px 55px}:is(.fts-native .woocommerce,.fts-native.woocommerce) form.checkout{display:block}:is(.fts-native .woocommerce,.fts-native.woocommerce) form.checkout #order_review_heading{margin-top:35px}.fts-native #customer_login{display:block}.fts-native .woocommerce-MyAccount-navigation,.fts-native .woocommerce-MyAccount-content{float:none;width:100%}.fts-native .woocommerce-MyAccount-navigation{margin-bottom:28px}.fts-native .woocommerce-MyAccount-navigation ul{display:flex;overflow:auto;gap:4px}.fts-native .woocommerce-MyAccount-navigation li{flex:0 0 auto;border:0}.fts-native .woocommerce-MyAccount-navigation a{padding:10px 14px}:is(.fts-native .woocommerce,.fts-native.woocommerce) table.shop_table td{padding:14px 9px}:is(.fts-native .woocommerce,.fts-native.woocommerce) .cart-collaterals .cart_totals{width:100%}:is(.fts-native .woocommerce,.fts-native.woocommerce) div.product .woocommerce-product-gallery,:is(.fts-native .woocommerce,.fts-native.woocommerce) div.product .summary{max-width:100%;width:100%;float:none}.fts-home .fts-test-banner{margin-left:0}.fts-test-banner{font-size:12px;padding:8px 14px}:is(.fts-native .woocommerce,.fts-native.woocommerce) .form-row-first,:is(.fts-native .woocommerce,.fts-native.woocommerce) .form-row-last{width:100%;float:none}.fts-native .woocommerce-order-overview{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fts-native .woocommerce-order-overview li{border:0!important;margin:0!important;padding:0!important;float:none!important;overflow-wrap:anywhere}.fts-native .woocommerce-privacy-policy-text{font-size:13px}}
@media(prefers-reduced-motion:reduce){.fts-native *{scroll-behavior:auto!important;transition:none!important}}
.fts-native-main h1{font-size:2rem}
@media(max-width:760px){.fts-native-main h1{font-size:1.75rem}}
.fts-native .woocommerce-info:before{content:"";width:18px;height:18px;left:20px;top:21px;border:0;background:var(--fts-price);mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7h.01'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat}
:is(.fts-native .woocommerce,.fts-native.woocommerce) button.button:disabled,:is(.fts-native .woocommerce,.fts-native.woocommerce) button.button:disabled[disabled],:is(.fts-native .woocommerce,.fts-native.woocommerce) button.button.disabled,:is(.fts-native .woocommerce,.fts-native.woocommerce) button.button[aria-disabled="true"]{background:#e1ded5!important;color:#514f47!important;opacity:1!important;text-shadow:none;cursor:not-allowed}

/* Keep the navigation trigger aligned with the header below the test notice. */
body.fts-home #market-root #sidebar .side-menu{display:flex;align-items:center;justify-content:center;left:0;padding:0;background:transparent!important}
body.fts-home #market-root #sidebar .menu-btn{display:block;box-sizing:border-box;width:48px;height:48px;border:0;border-radius:6px;background:transparent;color:var(--fts-paper);flex:none}
body.fts-home #market-root #sidebar .menu-btn span{left:12px;right:auto;bottom:auto;width:24px;height:2px;border-radius:2px;animation:none!important;transition:none!important;transform-origin:center!important;opacity:1}
body.fts-home #market-root #sidebar .menu-btn span:first-of-type{top:15px}
body.fts-home #market-root #sidebar .menu-btn span:nth-of-type(2){top:23px}
body.fts-home #market-root #sidebar .menu-btn span:nth-of-type(3){top:31px}
body.fts-home #market-root #sidebar .menu-btn:not(.active) span{animation:none!important;transform:none!important}
body.fts-home #market-root #sidebar .menu-btn.active span:first-of-type{top:23px;transform:rotate(45deg)!important}
body.fts-home #market-root #sidebar .menu-btn.active span:nth-of-type(2){opacity:0!important;transform:none!important}
body.fts-home #market-root #sidebar .menu-btn.active span:nth-of-type(3){top:23px;transform:rotate(-45deg)!important}
body.fts-home #market-root #sidebar .menu-btn:focus-visible{outline:2px solid var(--fts-lime);outline-offset:2px}
body.fts-home #market-root #bg-menu{right:0;width:auto}
@media(min-width:992px){
 body.fts-home #market-root::before{content:"";position:fixed;top:0;bottom:0;left:0;width:75px;background:var(--fts-ink);z-index:1028;pointer-events:none}
 body.fts-home #market-root .sidebar{background:var(--fts-ink)!important}
 body.fts-home #market-root #sidebar .side-menu{position:fixed;top:var(--fts-notice-offset,39px);width:75px;height:88px;z-index:1035}
 body.fts-home #market-root #sidebar.open .side-menu{visibility:visible;pointer-events:auto}
 body.fts-home #market-root #sidebar .sm-menu{top:calc(var(--fts-notice-offset,39px) + 12px);max-height:calc(100dvh - var(--fts-notice-offset,39px) - 24px)}
 body.fts-home #market-root #sidebar .menu-btn:hover{background:var(--fts-violet)!important}
}
@media(max-width:991px){
 body.fts-home .fts-test-banner{margin-left:0}
 body.fts-home #market-root #sidebar .side-menu{position:absolute;top:calc(var(--fts-notice-height,55px) + 12px);left:12px;width:48px;height:48px;z-index:1035}
 body.fts-home #market-root #header .header-logo{position:relative;min-height:52px}
 body.fts-home #market-root #header .logo-dropdown-mobile{top:50%;left:50%;right:auto;width:42px;height:42px;margin:0;transform:translate(-50%,-50%)}
 body.fts-home #market-root #header .logo-dropdown-mobile>a{display:block;width:42px;height:42px}
 body.fts-home #market-root #header .logo-dropdown-mobile .mobile-brand{margin:0!important}
 body.fts-home #market-root #market-products .product-miniature{min-width:0;max-width:100%}
 body.fts-home #market-root #sidebar .menu-btn span{background:var(--fts-ink)!important}
 body.fts-home #market-root #sidebar .menu-btn:focus-visible{outline-color:var(--fts-violet)}
 body.fts-home #market-root #sidebar .sm-menu{top:var(--fts-notice-offset,55px);height:calc(100dvh - var(--fts-notice-offset,55px));max-height:calc(100dvh - var(--fts-notice-offset,55px))}
}
@media(max-width:400px){body.fts-home #market-root #market-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* WordPress owns the private administrator row; visitors have no reserved ribbon. */
body.fts-home{--fts-notice-height:0px;--fts-notice-offset:0px}
body.fts-home.admin-bar{--fts-notice-height:32px;--fts-notice-offset:32px}
@media(max-width:782px){body.fts-home.admin-bar{--fts-notice-height:46px;--fts-notice-offset:46px}#wpadminbar #wp-admin-bar-fts-manage{display:block!important}#wpadminbar #wp-admin-bar-fts-manage>.ab-item{font-size:14px;padding:0 10px}}
@media(max-width:991px){body.fts-home #market-root{position:relative}body.fts-home #market-root #sidebar{position:static}body.fts-home #market-root #sidebar .side-menu{top:12px}}

/* Native WooCommerce product pages put .woocommerce on body, not a nested wrapper. */
body.fts-native h1.entry-title{display:block!important;font-size:clamp(24px,4vw,32px);line-height:1.35;overflow-wrap:break-word;margin:0 0 20px}
body.fts-native .page-header{display:block;--page-title-display:block}
body.fts-native .woocommerce-product-gallery{margin-bottom:24px}
@media(max-width:767px){
  body.fts-native :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){font-size:16px}
  body.fts-native .single_add_to_cart_button{min-height:48px}
  body.fts-native .quantity .qty{min-height:48px}
}

@media(max-width:767px){
  body.fts-native .woocommerce a.remove{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;line-height:1;font-size:24px}
}

@media(max-width:767px){body.fts-native .reset_variations{display:inline-flex;align-items:center;min-height:44px;padding:4px 8px}}
