/*
Theme Name: BUY99
Description: Custom WooCommerce storefront built from observed source geometry.
Version: 0.2.0
Requires PHP: 8.1
Text Domain: buy99
License: GPL-2.0-or-later
*/
:root{--buy99-ink:#353543;--buy99-muted:#8b8ba3;--buy99-line:#e7e7e7;--buy99-accent:#ffc200;--buy99-cart:#cf32a7}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--buy99-ink);font:14px/1.5 Roboto,Helvetica,Arial,sans-serif}.buy99-shell{max-width:500px;margin:auto;overflow-x:clip}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #1671b8;outline-offset:3px}.skip-link{position:absolute;left:-10000px}.skip-link:focus{left:10px;top:10px;background:white;padding:12px;z-index:100}.site-header{height:64px;padding:12px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd}.site-brand{font-size:25px;font-weight:800;letter-spacing:-1px}.custom-logo{max-width:110px;max-height:32px;width:auto;height:auto}.cart-link{color:var(--buy99-cart);font-weight:700}.category-nav{display:flex;gap:14px;overflow:auto;padding:12px 8px;border-bottom:10px solid #f5f5f5;white-space:nowrap}.category-nav a{min-width:70px;text-align:center;font-size:12px}.category-nav img{display:block;width:70px;height:70px;border-radius:50%;object-fit:cover;margin:auto auto 6px}.hero img{width:100%;height:auto;display:block}.catalog-title{font-size:22px;font-weight:400;padding:20px 16px 10px;margin:0}.woocommerce ul.products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0!important;padding: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;padding:6px!important;border:1px solid var(--buy99-line);list-style:none;min-width:0}.woocommerce ul.products li.product a img{width:100%;height:200px;object-fit:contain;margin:8px 0 16px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:10px;font-weight:600;color:var(--buy99-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 0}.woocommerce ul.products li.product .price{font-size:14px;font-weight:700;color:#111}.woocommerce ul.products li.product .price del{font-size:10px;color:var(--buy99-muted);opacity:1;font-weight:400}.woocommerce ul.products li.product .price ins{text-decoration:none}.woocommerce ul.products li.product .button{display:none}.woocommerce nav.woocommerce-pagination{padding:14px 0}.woocommerce nav.woocommerce-pagination ul{border:0}.woocommerce nav.woocommerce-pagination ul li{border:1px solid #e3e7ed;border-radius:50%;margin:0 3px;overflow:hidden}.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{padding:12px}.site-footer{background:#191919;color:#ddd;padding:36px 20px;margin-top:24px;font-size:14px}.site-footer ul{list-style:none;padding:0;columns:2}.site-footer li{margin:0 0 10px}.site-footer .copyright{border-top:1px solid #333;padding-top:14px;text-align:center;font-size:12px}.entry-content{padding:16px}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:100%;margin:0}.woocommerce div.product div.images img{max-height:500px;object-fit:contain}.woocommerce div.product div.summary{padding:16px}.woocommerce div.product .product_title{font-size:18px;color:var(--buy99-muted)}.woocommerce div.product p.price{color:#111;font-size:24px}.woocommerce button.button.alt,.woocommerce a.button.alt{background:var(--buy99-accent);color:#111}.woocommerce button.button.alt:hover,.woocommerce a.button.alt:hover{background:#eab500;color:#111}.woocommerce .quantity input{min-height:40px}.woocommerce div.product form.cart .button{min-height:44px}.woocommerce-tabs{padding:16px}.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0}.woocommerce div.product .woocommerce-tabs ul.tabs li{padding:0 10px}.related.products>h2{font-size:22px;padding:0 16px}.woocommerce-notices-wrapper,.woocommerce form.checkout,.woocommerce-cart-form,.cart-collaterals{padding:0 12px}.woocommerce .col2-set .col-1,.woocommerce .col2-set .col-2{float:none;width:100%}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{padding:12px;border:1px solid #aaa;min-height:44px;width:100%}.woocommerce-checkout h3{font-size:18px}.woocommerce .woocommerce-breadcrumb{padding:8px 16px;font-size:11px}.buy99-steps{display:flex;justify-content:space-around;padding:14px 8px;border-bottom:1px solid var(--buy99-line);font-size:12px}.buy99-steps [aria-current]{font-weight:700}.button{cursor:pointer}.buy99-buy-now{margin-left:8px!important;background:#fff!important;color:#111!important;border:1px solid #111!important}@media(max-width:430px){.woocommerce ul.products li.product a img{height:200px}.site-header{padding-left:20px;padding-right:20px}}

form[data-buy99-step="address"] #order_review_heading,form[data-buy99-step="address"] #order_review{display:none}form[data-buy99-step="payment"] #customer_details,form[data-buy99-step="summary"] #customer_details{display:none}form[data-buy99-step="payment"] .place-order{display:none}form[data-buy99-step="summary"] .wc_payment_methods{display:none}.buy99-checkout-controls{padding:16px 0;display:flex;gap:12px;flex-wrap:wrap}.buy99-checkout-controls p{width:100%;font-size:12px}.buy99-checkout-controls button{min-height:44px;padding:10px 20px}

/* 0.2: source-based geometry with contained navigation and uncropped media. */
.buy99-shell{width:100%;min-height:100vh;display:flex;flex-direction:column}
.buy99-shell #main{flex:1;min-width:0}
.site-header{height:64px;flex:none;border-bottom-color:#d4cddd}
.buy99-shell .site-header .custom-logo{display:block;width:110px;height:auto;max-width:110px;max-height:32px;object-fit:contain}
.cart-link{display:flex;align-items:center;justify-content:center;position:relative;min-width:44px;min-height:44px}
.cart-count{position:absolute;top:0;right:0;display:grid;place-items:center;min-width:18px;height:18px;border-radius:50%;background:#cf32a7;color:white;font-size:10px;line-height:1}
.category-nav{flex:none;gap:10px;padding:14px 8px 12px;scrollbar-width:thin;scrollbar-color:#ded5e1 transparent;overscroll-behavior-x:contain}
.category-nav a{flex:1 0 76px;width:76px;min-width:76px;max-width:92px;display:flex;align-items:center;flex-direction:column;gap:7px;text-decoration:none}
.category-circle{display:block;width:72px;height:72px;min-width:72px;min-height:72px;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#f5f1f5;flex:none}
.buy99-shell .category-circle img{display:block;width:100%;height:100%;max-width:none;margin:0;border-radius:0;object-fit:cover;object-position:center}
.category-label{display:block;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;text-align:center}
.category-nav a:hover .category-circle,.category-nav a:focus-visible .category-circle{outline:2px solid #cf32a7;outline-offset:2px}
.hero{background:#f5f1f7;overflow:hidden;aspect-ratio:16/9}
.buy99-shell .hero img{display:block;width:100%;height:100%;object-fit:contain;margin:0}
.catalog-title{padding:24px 16px 12px;line-height:1.25}
.woocommerce .woocommerce-products-header__title{font-size:22px;font-weight:400;line-height:1.3;margin:0;padding:12px 16px 20px}
.woocommerce ul.products li.product{display:flex;flex-direction:column;padding:0!important;background:white;border-color:#e6e6e6}
.woocommerce ul.products li.product>a.woocommerce-LoopProduct-link{display:block;min-width:0;color:inherit;text-decoration:none}
.woocommerce ul.products li.product a img{height:200px;width:100%;padding:12px;margin:0 0 12px;object-fit:contain;background:white}
.woocommerce ul.products li.product .woocommerce-loop-product__title{padding:0 6px;margin:0 0 6px;font-size:10px;line-height:14px;font-weight:500}
.woocommerce ul.products li.product .price{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;padding:0 6px;margin:0 0 10px;line-height:20px;font-size:14px}
.woocommerce ul.products li.product .price del{font-size:10px;line-height:1.4;display:inline;color:#8b8ba3}
.buy99-discount{font-weight:400;font-size:11px;white-space:nowrap;color:#353543}
.buy99-price-now{font-weight:700;color:#111;white-space:nowrap}
.woocommerce nav.woocommerce-pagination{padding:16px 8px 20px;overflow:hidden}
.woocommerce nav.woocommerce-pagination ul{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;align-items:center;margin:0;padding:0}
.woocommerce nav.woocommerce-pagination ul li{float:none;display:block;border:0;border-radius:0;overflow:visible;margin:0}
.woocommerce nav.woocommerce-pagination ul li>a,.woocommerce nav.woocommerce-pagination ul li>span{display:grid;place-items:center;box-sizing:border-box;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;border:1px solid #e3e7ed;border-radius:50%;font-size:12px;line-height:1;background:white;color:#14243c;font-weight:600}
.woocommerce nav.woocommerce-pagination ul li .current{background:#f1ebf4;color:#382640;border-color:#ded1e5}
.woocommerce nav.woocommerce-pagination ul li .next,.woocommerce nav.woocommerce-pagination ul li .prev{width:auto;min-width:40px;padding:0 12px;border-radius:22px}
.woocommerce nav.woocommerce-pagination ul li .dots{width:18px;min-width:18px;border:0}
.site-footer{margin-top:24px;padding:32px 20px 18px;flex:none}
.footer-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.site-footer h2{font-size:16px;font-weight:600;margin:0 0 14px;color:#f1f1f1}
.site-footer .footer-columns ul{columns:auto;margin:0 0 24px}
.site-footer a{overflow-wrap:anywhere}
.site-footer .copyright{margin-top:12px;padding-top:16px}
.woocommerce div.product{padding-top:0}
.woocommerce div.product div.images{background:white;float:none;margin:0;width:100%}
.woocommerce div.product div.images .woocommerce-product-gallery__image img{width:100%;height:420px;max-height:70vh;object-fit:contain}
.woocommerce div.product div.images .flex-control-thumbs{display:flex;gap:8px;overflow:auto;padding:12px 16px}
.woocommerce div.product div.images .flex-control-thumbs li{width:60px;min-width:60px;float:none}
.woocommerce div.product div.images .flex-control-thumbs img{width:60px;height:72px;object-fit:contain;border:1px solid #ddd;padding:4px}
.woocommerce div.product div.summary{padding:16px;border-top:8px solid #f5f5f5;margin-bottom:0}
.woocommerce div.product .product_title{font-size:18px;font-weight:500;line-height:1.45;margin:0 0 10px;overflow-wrap:anywhere}
.woocommerce div.product p.price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;line-height:1.4;margin:8px 0 18px}
.woocommerce div.product p.price del{font-size:14px;color:#8b8ba3}
.woocommerce div.product p.price .buy99-discount{font-size:13px;color:#008c00}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.woocommerce div.product form.cart .quantity{float:none;margin:0;flex:0 0 100%}
.woocommerce div.product form.cart .button{float:none;flex:1;min-height:48px;line-height:1.3;font-size:14px;padding:12px 8px;white-space:normal;margin:0!important}
.woocommerce div.product form.cart .single_add_to_cart_button{background:white!important;border:1px solid #111!important;color:#111!important}
.woocommerce div.product form.cart .buy99-buy-now{background:#ffc200!important;border:1px solid #ffc200!important;color:#111!important}
.woocommerce .quantity .qty{border:1px solid #ccc;border-radius:3px;height:40px}
.woocommerce div.product .woocommerce-tabs{border-top:8px solid #f5f5f5;padding:16px;margin:0}
.woocommerce div.product .woocommerce-tabs .panel h2{font-size:17px}
.woocommerce div.product .woocommerce-tabs .panel{font-size:14px;overflow-wrap:anywhere}
.woocommerce div.product .woocommerce-tabs ul.tabs li{background:white;border-radius:0;font-size:13px}
.woocommerce .related.products>h2{font-size:22px;font-weight:400}
.woocommerce-cart .entry-content,.woocommerce-checkout .entry-content{padding:16px 12px}
.woocommerce-cart .entry-content>h1,.woocommerce-checkout .entry-content>h1{font-size:20px;margin:6px 4px 16px}
.woocommerce form.checkout{padding:0 4px}
.woocommerce .buy99-steps{gap:4px;padding:14px 0;margin-bottom:20px;font-size:11px;line-height:1.5}
.buy99-steps [aria-current]{color:#9d237c}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border-radius:4px;background:#fff;color:#353543;min-width:0}
.woocommerce form .form-row{padding:4px 0;margin:0 0 10px}
.woocommerce form .form-row label{font-size:13px}
.woocommerce-checkout #payment{background:#f6f5f8;border-radius:4px}
.woocommerce-checkout #payment .payment_box{background:#eeebf0}
.woocommerce-checkout #payment .payment_box:before{border-bottom-color:#eeebf0}
.buy99-checkout-controls button{border:1px solid #ddd;border-radius:4px;background:white;color:#353543;flex:1}
.buy99-checkout-controls button.alt{background:#ffc200;color:#111;border-color:#ffc200}
.buy99-checkout-controls [hidden]{display:none!important}
@media(max-width:430px){.woocommerce ul.products li.product a img{height:200px}.woocommerce nav.woocommerce-pagination ul{gap:4px}}
.cart-drawer-open{overflow:hidden}
.buy99-cart-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(400px,calc(100vw - 20px));max-width:none;height:100dvh;max-height:none;border:0;padding:20px;background:white;color:#353543;overflow:auto;box-shadow:-8px 0 40px #0002}
.buy99-cart-drawer::backdrop{background:#0006}
.drawer-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;padding-bottom:16px;margin-bottom:20px}
.drawer-heading h2{font-size:20px;margin:0;font-weight:500}
.drawer-heading button{width:44px;height:44px;border:0;background:white;font-size:28px;cursor:pointer}
.buy99-cart-drawer ul.cart_list li{padding:12px 0;border-bottom:1px solid #eee;font-size:13px}
.buy99-cart-drawer ul.cart_list li img{width:64px;height:80px;object-fit:contain}
.buy99-cart-drawer .woocommerce-mini-cart__buttons{display:flex;gap:8px}
.buy99-cart-drawer .woocommerce-mini-cart__buttons a{flex:1;text-align:center;padding:14px 8px}
.buy99-cart-drawer .woocommerce-mini-cart__total{padding:16px 0;font-size:16px}
.buy99-cart-drawer ul.cart_list{list-style:none;margin:0;padding:0}
.buy99-cart-drawer ul.cart_list li{position:relative;padding-left:26px;min-height:104px}
.buy99-cart-drawer ul.cart_list li a.remove{position:absolute;left:0;top:12px;width:22px;height:22px;text-align:center;font-size:20px;color:#a32479}
.buy99-cart-drawer ul.cart_list li img{float:right;margin-left:10px}
.buy99-cart-drawer ul.cart_list li .quantity{display:block;margin-top:8px}
.buy99-cart-drawer .woocommerce-mini-cart__buttons a{border:1px solid #ddd;border-radius:4px;font-weight:600}
.buy99-cart-drawer .woocommerce-mini-cart__buttons a.checkout{background:#ffc200;border-color:#ffc200;color:#111}
