:root{--bg:#071223;--header:#071d37;--card:#0d1a30;--card2:#13243e;--border:#263b61;--text:#f5f1e8;--dim:#9ba7ba;--gold:#d0a95d;--red:#c93136;--red-dark:#a9252a;--maxw:1180px;--radius:14px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.wrap{width:min(var(--maxw),calc(100% - 36px));margin:0 auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(7,29,55,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--border)}.header-wrap{display:flex;align-items:center;height:64px}.logo{display:flex;align-items:center;flex:0 0 auto}.logo img{width:45px;height:45px;object-fit:contain;border-radius:50%}.menu-btn{display:none;background:transparent;border:1px solid var(--border);color:var(--text);border-radius:8px;width:40px;height:40px;font-size:22px;line-height:1}#nav{display:flex;align-items:center;gap:18px;margin-left:auto;margin-right:22px;font-size:14px;white-space:nowrap}#nav a:hover{color:var(--gold)}.header-right{display:flex;align-items:center;gap:14px}.lang-switch{display:flex;gap:3px}.lang-switch button{background:none;border:0;color:var(--dim);padding:5px 7px;border-radius:6px}.lang-switch button.active{color:#fff;background:var(--card2)}.cart-btn{display:flex;align-items:center;gap:7px;background:var(--card2);border:1px solid var(--border);color:var(--text);padding:9px 14px;border-radius:999px}.cart-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.cart-count{background:var(--red);color:#fff;border-radius:999px;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;padding:0 5px}
.hero{position:relative;min-height:min(820px,calc(100vh - 64px));overflow:hidden;background:#071223}.hero picture,.hero picture img{position:absolute;inset:0;width:100%;height:100%;display:block}.hero picture img{object-fit:cover;filter:brightness(1.08) saturate(1.06)}.hero-copy{position:absolute;z-index:2;left:max(4vw,28px);top:31%;max-width:760px;color:#f4efe5;text-shadow:0 2px 8px rgba(0,0,0,.75)}.hero-copy h1{font-family:Georgia,'Times New Roman',serif;font-size:clamp(36px,4vw,68px);font-weight:400;line-height:1.08;margin:0}.cards-section{padding:65px 0 74px}.cards-section h2{text-align:center;font:400 clamp(26px,3vw,40px) Georgia,'Times New Roman',serif;color:var(--gold);margin:0 0 32px}.cards-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.cat-card{position:relative;aspect-ratio:4/5;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);display:block;background:var(--card)}.cat-card img{width:100%;height:100%;object-fit:cover;transition:transform .35s}.cat-card:hover img{transform:scale(1.04)}.cat-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 42%,rgba(0,0,0,.82) 100%)}.cat-card span{position:absolute;left:16px;bottom:16px;z-index:2;font-size:19px;font-weight:700}.page{padding:22px 0 56px}.page h1{font:400 clamp(32px,4.5vw,56px) Georgia,'Times New Roman',serif;margin:18px 0 12px}.page h2{font:400 clamp(24px,3vw,38px) Georgia,'Times New Roman',serif}.crumb-back{display:inline-block;margin:12px 0 4px;color:var(--dim);font-size:14px}.crumb-back:hover{color:var(--gold)}.catalog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:22px 0 48px}.product-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}.pcard-photo{aspect-ratio:4/5;overflow:hidden;background:#081423;display:block}.pcard-photo img{width:100%;height:100%;object-fit:cover}.pcard-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:7px;flex:1}.pcard-body h3{font-size:15px;line-height:1.3;min-height:2.6em;margin:0}.dim{color:var(--dim);font-size:13px;line-height:1.5}.price{color:var(--gold);font-size:20px;font-weight:700}.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--red);color:#fff;border:0;border-radius:9px;padding:11px 15px;font-weight:600}.btn:hover{background:var(--red-dark)}.btn:disabled{opacity:.45;cursor:not-allowed}.ghost{background:transparent;border:1px solid var(--border);color:var(--gold)}.product-card .btn{margin-top:auto}.addons-section{margin:22px 0 50px;padding-top:27px;border-top:1px solid var(--border)}.addons-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.addon-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;min-height:190px}.addon-card>img{width:42%;object-fit:cover;aspect-ratio:4/5}.addon-body{padding:15px;display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:8px}.addon-body h3{font-size:17px;line-height:1.25;margin:0}.addon-body .price{margin-top:auto}.builder-call{display:flex;justify-content:space-between;align-items:center;margin:2px 0 32px;padding:20px 24px;border:1px solid var(--gold);border-radius:14px;color:var(--gold);font-size:20px}.product-detail{display:grid;grid-template-columns:1.05fr 1fr;gap:44px;padding:20px 0 50px}.pd-main{border-radius:var(--radius);overflow:hidden;aspect-ratio:4/5;border:1px solid var(--border);background:var(--card)}.pd-main img{width:100%;height:100%;object-fit:cover}.pd-info h1{margin-top:0}.pd-price{font-size:32px;color:var(--gold);font-weight:700;margin:16px 0}.pd-block{border-top:1px solid var(--border);padding:18px 0;margin-top:22px}.builder{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;max-width:880px}.builder-slots{display:grid;gap:14px}.slot{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:10px}.slot select,form input,form select,form textarea,.verify-row input{width:100%;background:#071423;color:var(--text);border:1px solid #3a506d;border-radius:10px;padding:12px}.builder-addons{margin-top:26px}.builder-addons-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.builder-addon{border:1px solid var(--border);border-radius:12px;padding:10px;background:#0a1728;display:flex;gap:8px;align-items:flex-start}.builder-addon input{margin-top:3px}.builder-total{font-size:26px;margin:22px 0}.builder-total strong{color:var(--gold)}.recipe-category-grid{display:grid;grid-template-columns:repeat(6,minmax(110px,150px));justify-content:center;gap:12px;margin:22px auto 38px}.recipe-category-tile{overflow:hidden;border:1px solid var(--border);border-radius:16px;background:var(--card);transition:.2s}.recipe-category-tile:hover,.recipe-category-tile.active{border-color:var(--gold);transform:translateY(-2px)}.recipe-category-tile img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.recipe-category-tile span{display:flex;min-height:40px;padding:7px;align-items:center;justify-content:center;text-align:center;font-size:14px;font-weight:700}.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.recipe-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.recipe-card img{width:100%;aspect-ratio:4/5;object-fit:cover}.recipe-card-body{padding:13px}.recipe-card h3{font-size:17px;margin:0}.recipe-detail{max-width:940px;margin:auto}.recipe-detail>img{width:100%;max-height:650px;object-fit:cover;border-radius:18px}.video-wrap{width:100%;margin:26px auto;border:1px solid var(--border);border-radius:18px;overflow:hidden;background:#000}.video-wrap video{display:block;width:100%;max-height:82vh}.recipe-cols{display:grid;grid-template-columns:.8fr 1.2fr;gap:32px}.recipe-cols li{margin:0 0 9px;line-height:1.5}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.info-card{background:var(--card);border:1px solid var(--border);border-radius:14px;padding:22px}.site-footer{border-top:1px solid var(--border);padding:34px 0;margin-top:28px}.footer-inner{display:flex;flex-wrap:wrap;gap:10px 26px;justify-content:center;font-size:14px;color:var(--dim)}.footer-inner a:hover{color:#fff}.footer-inner small{width:100%;text-align:center;margin-top:8px}.cart-overlay{position:fixed;inset:0;background:rgba(0,0,0,.58);z-index:90;opacity:0;pointer-events:none;transition:.25s}.cart-overlay.open{opacity:1;pointer-events:auto}.cart-drawer{position:fixed;top:0;right:0;bottom:0;width:400px;max-width:92vw;background:var(--card);z-index:95;transform:translateX(100%);transition:transform .3s;display:flex;flex-direction:column;border-left:1px solid var(--border)}.cart-drawer.open{transform:translateX(0)}.cart-head{padding:20px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.cart-head h2{margin:0}.cart-close,.dialog-close{background:none;border:0;color:var(--text);font-size:28px}.cart-items{flex:1;overflow-y:auto;padding:12px 20px}.cart-item{display:grid;grid-template-columns:1fr auto;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}.cart-item h4{margin:0 0 5px;font-size:14px}.qty-control{display:flex;align-items:center;gap:7px}.qty-control button{width:30px;height:30px;border-radius:7px;border:1px solid var(--border);background:var(--card2);color:#fff}.cart-foot{padding:20px;border-top:1px solid var(--border)}.cart-total{display:flex;justify-content:space-between;font-size:17px;font-weight:700;margin-bottom:14px}.cart-checkout{width:100%}.cart-empty{color:var(--dim);text-align:center;padding:55px 20px}.checkout-dialog{width:min(760px,96vw);max-height:94vh;background:var(--card);color:var(--text);border:1px solid var(--border);border-radius:18px;padding:26px}.checkout-dialog::backdrop{background:rgba(0,0,0,.72)}.dialog-close{float:right}.checkout-dialog h2{margin-top:4px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid label,.checkout-dialog>form>label{display:grid;gap:5px}.form-grid label span,.checkout-dialog>form>label>span{font-size:12px;color:var(--dim)}.search-field{position:relative}.search-select{position:relative}.search-menu{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:170;max-height:250px;overflow:auto;background:#071423;border:1px solid #3a506d;border-radius:10px;box-shadow:0 14px 30px rgba(0,0,0,.45);padding:4px}.search-menu[hidden]{display:none}.search-option{width:100%;display:grid;gap:3px;text-align:left;background:transparent;color:var(--text);border:0;border-radius:7px;padding:10px 11px}.search-option+ .search-option{border-top:1px solid rgba(58,80,109,.45)}.search-option small{color:var(--dim);font-size:11px}.search-option:hover,.search-option.active{background:var(--card2);color:#fff}.search-option.active small{color:#c7cfda}textarea{min-height:88px}.inline-check{display:flex!important;grid-template-columns:auto 1fr!important;gap:8px!important;align-items:flex-start}.inline-check input{width:auto;margin-top:4px}.nested{padding:12px;border:1px solid var(--border);border-radius:12px}.verify-row{display:grid;grid-template-columns:1fr auto auto;gap:8px}.statusbox{margin-top:14px;border:1px solid #3d6b48;background:#17321f;padding:16px;border-radius:12px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--card2);border:1px solid var(--gold);color:var(--text);padding:12px 22px;border-radius:999px;font-size:14px;z-index:120;opacity:0;pointer-events:none;transition:opacity .25s}.toast.show{opacity:1}
@media(max-width:880px){.header-wrap{height:72px;padding:0 12px;width:100%;gap:9px}.logo img{height:46px;width:46px}.menu-btn{display:block;order:2;flex:0 0 40px}.header-right{order:3;margin-left:auto;gap:6px}.lang-switch{gap:0}.lang-switch button{font-size:14px;padding:5px 7px}#nav{display:none;position:absolute;left:0;right:0;top:72px;margin:0;padding:10px 14px 14px;background:#0b1220;border-bottom:1px solid var(--border);flex-direction:column;align-items:stretch;gap:0;white-space:normal;box-shadow:0 12px 24px rgba(0,0,0,.35)}#nav.open{display:flex}#nav a{padding:12px 8px;border-bottom:1px solid var(--border);font-size:16px}.cart-btn{padding:8px 10px;font-size:13px}.hero{min-height:calc(100vh - 72px)}.hero-copy{display:none}.cards-grid,.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-detail{grid-template-columns:1fr;gap:22px}.addons-grid{grid-template-columns:1fr}.addon-card{min-height:165px}.builder-addons-list{grid-template-columns:1fr}.recipe-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:none}.recipe-grid{grid-template-columns:repeat(2,1fr);gap:12px}.recipe-cols,.info-grid{grid-template-columns:1fr}.cart-drawer{width:100vw;max-width:100vw}.video-wrap video{aspect-ratio:4/5;object-fit:cover;max-height:none}}
@media(max-width:560px){.wrap{width:min(100% - 24px,var(--maxw))}.cards-section{padding:42px 0}.cat-card span{left:10px;bottom:10px;font-size:14px}.page h1{font-size:32px}.catalog-grid{padding-top:14px}.pcard-body{padding:10px}.pcard-body h3{font-size:13px}.price{font-size:18px}.woocommerce ul.products li.product .button{font-size:13px;padding:9px}.slot{grid-template-columns:1fr}.form-grid,.verify-row{grid-template-columns:1fr}.recipe-card h3{font-size:14px}}

.cards-grid-flex{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.cards-grid-flex .cat-card{min-width:0}
.order-page{max-width:980px}.order-hero{display:flex;align-items:center;gap:18px;margin:18px 0 28px}.order-hero h1{margin:0}.order-ok{display:flex;width:58px;height:58px;align-items:center;justify-content:center;border:1px solid #4d7b58;border-radius:50%;background:#17321f;font-size:30px}.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.order-grid h3{font:600 15px Arial,Helvetica,sans-serif;margin:18px 0 6px;color:var(--dim)}.badge-public{display:inline-flex;padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:var(--card2);font-size:13px}.dev-pay{margin-top:10px}.order-items{margin:24px 0;background:var(--card);border:1px solid var(--border);border-radius:14px;padding:22px}.order-items h2{margin-top:0}.order-line{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--border)}.order-line>div{display:grid;gap:4px}.order-sum{display:flex;justify-content:space-between;align-items:center;padding-top:18px;font-size:20px}.order-sum b{color:var(--gold);font-size:26px}.order-actions{display:flex;gap:10px;flex-wrap:wrap}.tracking-link{color:var(--gold);text-decoration:underline}
@media(max-width:700px){.order-grid{grid-template-columns:1fr}.order-line{display:grid;gap:7px}.order-hero{align-items:flex-start}.order-ok{width:48px;height:48px;flex:0 0 48px}.order-items{padding:16px}}

.orders-paused-note{margin:0 0 12px;padding:10px 12px;border:1px solid #8b6630;border-radius:10px;background:#2a2114;color:#f1d39b;font:600 13px/1.35 Arial,Helvetica,sans-serif}
/* --- WordPress / WooCommerce mapping, KSP WP 1.0 --- */
body.admin-bar .site-header{top:32px}@media(max-width:782px){body.admin-bar .site-header{top:46px}}
.main-nav{display:flex;align-items:center;gap:18px;margin-left:auto;margin-right:22px;font-size:14px;white-space:nowrap}.main-nav a:hover{color:var(--gold)}
.lang-switch a{background:none;border:0;color:var(--dim);padding:5px 7px;border-radius:6px}.lang-switch a.active{color:#fff;background:var(--card2)}
.ksp-cart-count{background:#C2181F;color:#fff;border-radius:999px;min-width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;padding:0 5px;font-weight:700}
.ksp-main{min-height:55vh}.woocommerce-products-header h1,.woocommerce h1,.woocommerce-page h1{font:400 clamp(32px,4.5vw,56px) Georgia,'Times New Roman',serif;color:var(--text)}
.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:22px 0 48px!important;padding:0!important;list-style:none}.woocommerce ul.products::before,.woocommerce ul.products::after{display:none!important}.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important}
.woocommerce ul.products li.product.product-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}.woocommerce ul.products li.product .pcard-photo{aspect-ratio:4/5;overflow:hidden;background:#081423;display:block}.woocommerce ul.products li.product .pcard-photo img{width:100%;height:100%;object-fit:cover;margin:0}.woocommerce ul.products li.product .pcard-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:7px;flex:1}.woocommerce ul.products li.product .pcard-body h3{font-size:15px;line-height:1.3;min-height:2.6em;margin:0}.woocommerce ul.products li.product .price{color:var(--gold)!important;font-size:20px!important;font-weight:700;margin:0}.woocommerce ul.products li.product .pcard-actions{margin-top:auto}.woocommerce ul.products li.product .button,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--red);color:#fff;border:0;border-radius:9px;padding:11px 15px;font-weight:700;line-height:1.2}.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:var(--red-dark);color:#fff}.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--red)}
.woocommerce .woocommerce-result-count,.woocommerce .woocommerce-ordering{color:var(--dim)}.woocommerce .woocommerce-ordering select{background:var(--card2);border:1px solid var(--border);color:var(--text);padding:8px;border-radius:8px}
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.85fr);gap:48px;padding:24px 0 60px}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:auto!important;margin:0!important}.woocommerce div.product div.images img{border-radius:var(--radius);background:#081423}.woocommerce div.product .product_title{font:400 clamp(32px,4vw,52px) Georgia,'Times New Roman',serif}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--gold);font-size:28px}.woocommerce div.product .quantity .qty{background:var(--card2);color:var(--text);border:1px solid var(--border);padding:10px;border-radius:8px}.woocommerce-product-details__short-description,.product_meta{color:var(--dim);line-height:1.6}
.woocommerce-tabs,.related.products,.upsells.products{grid-column:1/-1}.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0}.woocommerce div.product .woocommerce-tabs ul.tabs::before{border-color:var(--border)}.woocommerce div.product .woocommerce-tabs ul.tabs li{background:var(--card);border-color:var(--border);color:var(--text)}.woocommerce div.product .woocommerce-tabs .panel{color:var(--text)}
.ksp-addons{grid-column:1/-1;margin:42px 0 20px}.ksp-addons h2,.ksp-builder h2{font:400 clamp(24px,3vw,38px) Georgia,'Times New Roman',serif;color:var(--gold)}.ksp-addon-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ksp-addon-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.ksp-addon-card img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block}.ksp-addon-body{padding:14px}.ksp-addon-body h3{font-size:16px;margin:0 0 8px}.ksp-addon-body .price{color:var(--gold);font-size:20px;font-weight:700;margin-bottom:10px}
.ksp-builder{grid-column:1/-1;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin:42px 0}.ksp-builder-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.ksp-builder-slot{display:flex;flex-direction:column;gap:7px}.ksp-builder select{width:100%;background:var(--card2);border:1px solid var(--border);color:var(--text);padding:12px;border-radius:9px}.ksp-builder-addons{margin-top:24px}.ksp-builder-addon-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.ksp-builder-addon{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:10px;padding:8px;background:var(--bg)}.ksp-builder-addon .thumb{width:54px;height:54px;overflow:hidden;border-radius:8px}.ksp-builder-addon .thumb img{width:100%;height:100%;object-fit:cover}.ksp-builder-addon small{display:block;color:var(--gold);margin-top:3px}.ksp-builder-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}#ksp-builder-message{margin-top:10px}.ok{color:#77c789}.err{color:#ff8e91}
.cart-drawer .widget_shopping_cart_content,.ksp-mini-cart-inner{height:100%;display:flex;flex-direction:column}.woocommerce-mini-cart{list-style:none;margin:0;padding:14px 18px;overflow:auto;flex:1}.woocommerce-mini-cart-item{position:relative;padding:12px 28px 12px 0!important;border-bottom:1px solid var(--border)}.woocommerce-mini-cart-item img{width:58px!important;height:72px!important;object-fit:cover;float:left!important;margin-right:10px!important;border-radius:6px}.woocommerce-mini-cart-item .remove{position:absolute!important;right:0!important;left:auto!important;color:#fff!important}.woocommerce-mini-cart__total{padding:16px 18px;margin:0;border-top:1px solid var(--border)}.woocommerce-mini-cart__buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 18px 18px}.woocommerce-mini-cart__empty-message{padding:24px;color:var(--dim)}
.woocommerce-cart-form,.cart_totals,.woocommerce-checkout-review-order,.woocommerce form.checkout .col2-set,.woocommerce-order{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.woocommerce table.shop_table{border-color:var(--border);color:var(--text)}.woocommerce table.shop_table td,.woocommerce table.shop_table th{border-color:var(--border)}.woocommerce table.shop_table img{width:72px;border-radius:7px}.woocommerce .cart-collaterals .cart_totals,.woocommerce-page .cart-collaterals .cart_totals{float:none;width:100%;max-width:520px;margin-left:auto}.ksp-orders-paused{color:#ffb3b3}
.woocommerce form.checkout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);grid-template-areas:"customer review-heading" "customer review";gap:24px;align-items:start}.woocommerce form.checkout .col2-set{grid-area:customer}.woocommerce form.checkout #order_review_heading{grid-area:review-heading;margin:0}.woocommerce form.checkout .woocommerce-checkout-review-order{grid-area:review}.woocommerce form.checkout .col2-set,.woocommerce-checkout-review-order{width:auto!important;float:none!important}.woocommerce-billing-fields h3,.woocommerce-shipping-fields h3,#order_review_heading{font:400 28px Georgia,serif;color:var(--gold)}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.select2-container--default .select2-selection--single{background:var(--card2);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:10px;min-height:44px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:var(--text);line-height:22px}.select2-dropdown{background:var(--card2);color:var(--text);border-color:var(--border)}.select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--red)}
.ksp-phone-verify{border:1px solid var(--border);background:var(--bg);padding:14px;border-radius:10px;margin:18px 0}.ksp-phone-verify h3{margin-top:0;color:var(--gold)}.ksp-code-row{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.ksp-code-row label{flex:1;min-width:180px}
.recipe-filter{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0 26px}.recipe-filter a{border:1px solid var(--border);background:var(--card);padding:8px 12px;border-radius:999px}.recipe-filter a:hover{color:var(--gold)}.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.recipe-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.recipe-card-photo{display:block;width:100%;aspect-ratio:4/5;overflow:hidden;background:#081423}.recipe-card-photo img{display:block;width:100%;height:100%;object-fit:cover}.recipe-card h2{font:600 17px Arial,sans-serif!important;color:var(--text);padding:14px;margin:0}.recipe-hero img{width:100%;max-height:680px;object-fit:cover;border-radius:var(--radius)}.recipe-video{margin:24px 0}.recipe-video video{width:100%;max-height:760px;border-radius:var(--radius);background:#000}.recipe-columns{display:grid;grid-template-columns:.8fr 1.2fr;gap:30px;margin:30px 0}.recipe-columns li{margin-bottom:9px;line-height:1.55}
.site-footer{border-top:1px solid var(--border);background:#06172c;padding:0;margin-top:0}.footer-inner{display:flex;flex-wrap:nowrap;gap:22px;align-items:center;justify-content:flex-start;min-height:76px;color:var(--dim);font-size:13px}.footer-inner small{width:auto;text-align:left;margin:0 0 0 auto}.footer-inner a:hover{color:var(--gold)}
.woocommerce-error,.woocommerce-info,.woocommerce-message{background:var(--card);color:var(--text);border-top-color:var(--gold)}.woocommerce-message::before,.woocommerce-info::before{color:var(--gold)}.woocommerce-error::before{color:var(--red)}
@media(max-width:980px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.woocommerce div.product{grid-template-columns:1fr}.woocommerce form.checkout{grid-template-columns:1fr;grid-template-areas:"customer" "review-heading" "review"}.ksp-builder-slots,.ksp-builder-addon-list,.ksp-addon-grid{grid-template-columns:1fr}.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-columns{grid-template-columns:1fr}}
@media(max-width:700px){.main-nav{display:none;position:absolute;top:64px;left:18px;right:18px;background:var(--header);border:1px solid var(--border);border-radius:12px;padding:12px;flex-direction:column;align-items:stretch;margin:0}.main-nav.open{display:flex}.menu-btn{display:inline-flex;align-items:center;justify-content:center;margin-left:auto}.header-right{margin-left:8px}.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.woocommerce ul.products li.product .pcard-body{padding:10px}.woocommerce ul.products li.product .pcard-body h3{font-size:13px}.woocommerce ul.products li.product .price{font-size:17px!important}.recipe-grid{grid-template-columns:1fr}.footer-inner{flex-wrap:wrap;padding:18px 0}.footer-inner small{width:100%;margin:0;text-align:center}.ksp-builder{padding:16px}.woocommerce form.checkout .col2-set,.woocommerce-checkout-review-order{padding:12px}}
@media(max-width:420px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:1fr 1fr}.logo img{width:42px;height:42px}}

/* --- Beta 6 visual parity, KSP WP 1.4 --- */
.cards-section h1{text-align:center;font:400 clamp(26px,3vw,40px) Georgia,'Times New Roman',serif;color:var(--gold);margin:0 0 32px}
.beta-back{padding:11px 18px;border:1px solid var(--border);border-radius:12px;color:var(--gold);font:400 17px Georgia,'Times New Roman',serif}
.recipe-category-nav{margin:22px 0 30px}
.recipe-all-link{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 22px;margin-bottom:16px;border:1px solid var(--gold);border-radius:999px;color:var(--gold);font-weight:700}
.recipe-all-link.active{background:var(--gold);color:#071223}
.recipe-category-grid{display:grid;grid-template-columns:repeat(6,minmax(110px,150px));justify-content:center;gap:12px;max-width:1000px;margin:0 auto}
.recipe-category-tile{min-width:0;overflow:hidden;border:1px solid var(--border);border-radius:16px;background:#111d35;color:var(--text);transition:.2s ease}
.recipe-category-tile:hover,.recipe-category-tile.active{border-color:var(--gold);transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.28)}
.recipe-category-tile img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}
.recipe-category-tile span{display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px;text-align:center;font-size:15px;font-weight:700;line-height:1.15}

@media(max-width:1050px){.recipe-category-grid{grid-template-columns:repeat(3,minmax(120px,160px));max-width:520px}}
@media(max-width:880px){
  .site-header{background:#071d37}
  .header-wrap{height:82px;padding:0 12px;width:100%;gap:9px}
  .logo{display:flex;align-items:center;justify-content:center;width:70px;height:70px;flex:0 0 70px;background:#071d37;border-radius:50%;overflow:hidden}
  .logo img{display:block;width:100%;height:100%;max-width:none;border-radius:50%;clip-path:circle(49.5% at 50% 50%);object-fit:cover;object-position:center;background:#071d37;filter:brightness(1.28) saturate(1.18) drop-shadow(0 0 7px rgba(208,169,93,.55))}
  .menu-btn{width:48px;height:48px;flex:0 0 48px;font-size:28px}
  #nav{top:82px}
  .cart-btn{min-height:48px;padding:8px 12px}
  .cart-icon{width:24px;height:24px}
  .lang-switch a{font-size:16px;padding:8px 9px}
  .hero{min-height:calc(100vh - 82px)}
}
@media(max-width:700px){
  .page{padding-top:28px}
  .page h1{font-size:34px;margin:28px 0 22px}
  .recipe-category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:none}
  .recipe-category-tile{border-radius:12px}
  .recipe-category-tile span{min-height:38px;padding:5px 3px;font-size:12px}
  .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .recipe-card img{aspect-ratio:4/5}
  .recipe-card h2{font-size:14px!important;padding:11px!important;text-align:center}
  .ksp-builder-addon-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ksp-builder-addon{display:grid;grid-template-columns:auto 54px minmax(0,1fr);padding:8px;min-width:0}
  .ksp-builder-addon>span:last-child{min-width:0;font-size:13px;line-height:1.15}
}
@media(max-width:560px){
  .cards-section h1{font-size:26px;line-height:1.2;margin-bottom:25px}
  .cat-card span{font:700 18px/1.15 Georgia,'Times New Roman',serif}
  .beta-back{font-size:16px}
}
@media(max-width:390px){
  .header-wrap{padding:0 8px;gap:6px}
  .logo{width:64px;height:64px;flex-basis:64px}
  .menu-btn{width:44px;height:44px;flex-basis:44px}
  .lang-switch a{padding:7px 6px}
  .cart-btn{padding:7px 9px}
}
.recipe-related{margin:28px 0;padding:18px 22px;border:1px solid var(--border);border-radius:14px;background:var(--card)}
.recipe-related li{margin:9px 0}.recipe-related a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}

.recipe-category-tile:not(:has(img)){display:flex;align-items:center;justify-content:center;min-height:145px}
.ksp-seo-text{margin:32px 0;line-height:1.6}

/* --- Beta 6 recipe detail parity, section 9 --- */
.recipe-detail{max-width:none;margin:0 auto;padding:18px 0 70px}
.rd-hero{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:start;margin-bottom:34px}
.rd-title{padding-top:18px}
.rd-photo{border-radius:var(--radius);overflow:hidden;aspect-ratio:4/5;border:1px solid var(--border);background:#081423}
.rd-photo img{display:block;width:100%;height:100%;object-fit:cover}
.recipe-detail .rd-title h1{font:700 28px/1.2 Georgia,'Times New Roman',serif;margin:0}
.rd-servings{display:inline-block;background:var(--card2);border-radius:999px;padding:6px 16px;font-size:13px;color:var(--dim);margin-bottom:16px}
.rd-cols{display:grid;grid-template-columns:1fr 1.4fr;gap:44px}
.rd-cols h2{color:var(--gold);font:700 16px/1.25 Georgia,'Times New Roman',serif;text-transform:uppercase;letter-spacing:.04em;margin:0 0 14px}
.ing-list{list-style:none;padding:0;margin:0}
.ing-list li{padding:9px 0;border-bottom:1px solid var(--border);font-size:14.5px;line-height:1.5;color:var(--dim)}
.steps-list{list-style:none;padding:0;margin:0;counter-reset:step}
.steps-list li{counter-increment:step;position:relative;padding:0 0 22px 42px;font-size:15px;line-height:1.6}
.steps-list li::before{content:counter(step);position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;background:var(--red);color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center}
.recipe-detail .video-wrap{width:100%;max-width:1040px;margin:32px auto;border:1px solid var(--border);border-radius:18px;overflow:hidden;background:#000}
.recipe-detail .video-wrap video{display:block;width:100%;height:auto;max-height:82vh;background:#000}
.ready-note{margin:26px 0;font-size:13px;line-height:1.55;color:var(--dim);border-top:1px solid var(--border);padding-top:16px}
.recipe-detail>h2{font:700 24px/1.25 Georgia,'Times New Roman',serif;margin:30px 0 14px}
.linked-products,.related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.linked-products a,.related-grid a{display:flex;align-items:center;gap:12px;background:var(--card);border:1px solid var(--border);border-radius:12px;padding:10px;color:var(--text);min-width:0}
.linked-products img,.related-grid img{width:72px!important;height:72px!important;object-fit:cover;border-radius:8px;flex:0 0 72px;margin:0!important}
.linked-products span,.related-grid span{min-width:0;line-height:1.35}
.recipe-all-bottom{display:inline-block;margin-top:26px;color:var(--gold);text-decoration:underline;text-underline-offset:3px}
@media(max-width:880px){
  .rd-hero{grid-template-columns:1fr}
  .rd-cols{grid-template-columns:1fr;gap:26px}
  .rd-title{padding-top:0}
  .recipe-detail .video-wrap{width:100%;border-radius:16px}
  .recipe-detail .video-wrap video{aspect-ratio:4/5;object-fit:cover;max-height:none}
  .linked-products,.related-grid{grid-template-columns:1fr 1fr}
}

/* --- Desktop review corrections, 2026-09-30 --- */
.nav-icon{display:inline-block;color:var(--gold);line-height:1}
#nav a{display:inline-flex;align-items:center;gap:6px}

.ksp-breadcrumbs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:14px 0 22px;color:var(--dim);font-size:14px}
.ksp-breadcrumbs a,.ksp-breadcrumbs .current{display:inline-flex;align-items:center;gap:6px}
.ksp-breadcrumbs a:hover{color:var(--gold)}
.ksp-breadcrumbs a span:first-child,.ksp-breadcrumbs .current span:first-child{color:var(--gold)}
.ksp-breadcrumb-sep{color:var(--gold);opacity:.75}

.ksp-product-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);gap:48px;align-items:start;padding:12px 0 28px}
.ksp-product-photo{aspect-ratio:4/5;overflow:hidden;border-radius:var(--radius);border:1px solid var(--border);background:#081423}
.ksp-product-photo img{display:block;width:100%;height:100%;object-fit:cover}
.ksp-product-summary{padding-top:6px}
.ksp-product-summary h1{font:400 clamp(32px,4vw,52px) Georgia,'Times New Roman',serif;margin:0 0 14px;color:var(--text)}
.ksp-product-weight{color:var(--dim);font-size:15px;margin-bottom:18px}
.ksp-product-price{color:var(--gold);font-size:34px;font-weight:700;margin:0 0 22px}
.ksp-product-price .amount{color:inherit}
.ksp-product-cart{display:flex;align-items:center;gap:10px;margin:0 0 24px}
.ksp-product-cart .quantity{margin:0!important}
.ksp-product-cart .qty{width:74px!important;min-height:46px;background:var(--card2);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:10px}
.ksp-product-cart .single_add_to_cart_button{min-height:46px}
.ksp-product-cart .single_add_to_cart_button{background:#C2181F}
.ksp-product-extra{border-top:1px solid var(--border);padding-top:20px;margin-top:6px}
.ksp-product-extra h2{font:600 24px/1.25 Georgia,'Times New Roman',serif;margin:0 0 12px;color:var(--text)}
.ksp-product-description{color:var(--dim);font-size:15px;line-height:1.65}
.ksp-product-description p:first-child{margin-top:0}
.ksp-addons{margin-top:34px}

@media(min-width:881px){
  .header-wrap{height:92px}
  .logo img{width:78px;height:78px;filter:brightness(1.28) saturate(1.18) drop-shadow(0 0 6px rgba(208,169,93,.45))}
  .hero{min-height:0}
  .hero picture{position:relative;inset:auto;width:100%;height:auto;display:block}
  .hero picture img{position:relative;inset:auto;width:100%;height:auto;display:block;object-fit:contain;object-position:center}
}
@media(max-width:980px){
  .ksp-product-page{grid-template-columns:1fr;gap:24px}
  .ksp-product-summary{padding-top:0}
}

/* --- Desktop polish: brighter accents + compact add-ons, 2026-09-30 --- */
.cart-icon{color:#C2181F;stroke-width:2.15}
.cart-btn{border-color:rgba(194,24,31,.70);box-shadow:0 0 0 1px rgba(194,24,31,.10),0 0 14px rgba(194,24,31,.14)}
.cart-btn:hover{border-color:#C2181F}

.steps-list li::before{background:#C2181F;box-shadow:0 0 0 2px rgba(194,24,31,.14),0 4px 12px rgba(194,24,31,.24)}

.ksp-addon-card{display:grid;grid-template-columns:42% 1fr;min-height:190px;align-items:stretch}
.ksp-addon-card>a{display:block;min-width:0;height:100%;overflow:hidden;background:#081423}
.ksp-addon-card>a img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.ksp-addon-body{padding:14px 15px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.ksp-addon-body h3{font-size:17px;line-height:1.25;margin:0 0 8px}
.ksp-addon-body .price{margin-top:auto;margin-bottom:10px}
@media(max-width:560px){
  .ksp-addon-card{grid-template-columns:40% 1fr;min-height:165px}
  .ksp-addon-body{padding:11px 12px}
  .ksp-addon-body h3{font-size:14px}
  .ksp-addon-body .price{font-size:18px}
}

/* --- Recipe desktop compact layout, 2026-10-01 --- */
.recipe-detail .rd-title h1{color:var(--gold)}
@media(min-width:881px){
  .rd-hero{grid-template-columns:minmax(0,.45fr) minmax(0,.55fr);gap:32px;align-items:start;margin-bottom:30px}
  .rd-photo{aspect-ratio:1/1;max-height:520px}
  .rd-title{padding-top:6px}
  .recipe-detail .rd-title h1{margin:0 0 22px}
  .rd-title .rd-cols{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:24px;margin-top:4px}
  .rd-title .rd-cols h2{margin-bottom:10px}
  .rd-title .ing-list li{padding:7px 0;font-size:14px;line-height:1.4}
  .rd-title .steps-list li{padding:0 0 16px 40px;font-size:14px;line-height:1.48}
}

/* --- Builder cleanup, 2026-10-01 --- */
.ksp-builder .ksp-builder-addons{display:none}

/* --- Desktop cart fixes, 2026-10-01 --- */
.cart-drawer .ksp-mini-cart-inner,
.cart-drawer .widget_shopping_cart_content{
  min-height:0;
  overflow:hidden;
}
.cart-drawer .woocommerce-mini-cart{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
}
.cart-drawer .woocommerce-mini-cart__total,
.cart-drawer .woocommerce-mini-cart__buttons{
  flex:0 0 auto;
  background:var(--card);
  position:relative;
  z-index:2;
}
.cart-drawer .woocommerce-mini-cart-item{
  display:block;
  clear:both;
  min-height:96px;
  overflow:hidden;
}
.cart-drawer .woocommerce-mini-cart-item > a:not(.remove){
  display:grid!important;
  grid-template-columns:58px minmax(0,1fr);
  gap:10px;
  align-items:center;
  min-width:0;
  margin:0!important;
  padding:0 0 3px!important;
}
.cart-drawer .woocommerce-mini-cart-item > a:not(.remove) img{
  float:none!important;
  width:58px!important;
  height:72px!important;
  margin:0!important;
  object-fit:cover;
}
.cart-drawer .woocommerce-mini-cart-item .quantity{
  display:block;
  margin:2px 0 0 68px;
  min-width:0;
}
.cart-drawer .woocommerce-mini-cart-item dl.variation{
  margin:5px 0 5px 68px;
}
.cart-drawer .woocommerce-mini-cart-item .remove{
  top:14px!important;
  right:0!important;
}

.woocommerce-cart-form .quantity{
  display:inline-block;
  min-width:86px;
}
.woocommerce-cart-form .quantity .qty{
  width:86px!important;
  min-width:86px!important;
  height:46px!important;
  padding:8px 26px 8px 12px!important;
  background:#071423!important;
  color:var(--text)!important;
  -webkit-text-fill-color:var(--text);
  border:1px solid #3a506d!important;
  border-radius:10px!important;
  text-align:center;
  line-height:1.2;
  opacity:1;
  box-shadow:none!important;
}

/* --- Cart drawer buttons on non-Woo pages, 2026-10-01 --- */
.cart-drawer .woocommerce-mini-cart__buttons a.button{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  margin:0;
  padding:11px 15px;
  background:#C2181F;
  color:#fff;
  border:0;
  border-radius:9px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
}
.cart-drawer .woocommerce-mini-cart__buttons a.button:hover{
  background:#a9252a;
  color:#fff;
}

/* --- Approved cart action red, 2026-10-01 --- */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button,
.woocommerce ul.products li.product .add_to_cart_button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.ksp-addon-card .button,
.ksp-builder .button{
  background:#C2181F!important;
  color:#fff!important;
}
.woocommerce ul.products li.product a.button:hover,
.woocommerce ul.products li.product button.button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.ksp-addon-card .button:hover,
.ksp-builder .button:hover{
  background:#9f1419!important;
  color:#fff!important;
}

/* --- Final approved cart button red, 2026-10-01 --- */
.pcard-actions .button,
.ksp-product-cart .single_add_to_cart_button,
.ksp-addon-card .button,
.ksp-builder .button{
  background:#C2181F!important;
  background-image:none!important;
  border-color:#C2181F!important;
  color:#fff!important;
}
.pcard-actions .button:hover,
.ksp-product-cart .single_add_to_cart_button:hover,
.ksp-addon-card .button:hover,
.ksp-builder .button:hover{
  background:#9f1419!important;
  background-image:none!important;
  border-color:#9f1419!important;
  color:#fff!important;
}

/* --- Checkout visual shell approved 2026-10-01 --- */
.woocommerce-checkout .page{
  max-width:1380px;
}
.woocommerce-checkout form.checkout{
  grid-template-columns:minmax(0,1.45fr) minmax(420px,.95fr);
  grid-template-areas:"customer review-heading" "customer review";
  gap:26px;
  align-items:start;
}
.woocommerce-checkout form.checkout .col2-set,
.woocommerce-checkout-review-order{
  background:#07182b;
  border:1px solid #24486d;
  border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.14);
}
.woocommerce-checkout form.checkout .col2-set{
  padding:22px;
}
.woocommerce-checkout .woocommerce-billing-fields>h3{
  margin:0 0 22px;
  color:#e6bd67;
  font:400 clamp(34px,3.6vw,54px)/1.05 Georgia,'Times New Roman',serif;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 20px;
}
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::before{
  grid-column:1/-1;
  color:#e6bd67;
  font:600 24px/1.2 Georgia,'Times New Roman',serif;
  margin:0 0 4px;
}
html[lang^="ru"] .woocommerce-checkout .woocommerce-billing-fields__field-wrapper::before{content:"◯  Контактные данные";}
html[lang^="uk"] .woocommerce-checkout .woocommerce-billing-fields__field-wrapper::before{content:"◯  Контактні дані";}

.woocommerce-checkout #billing_first_name_field,
.woocommerce-checkout #billing_last_name_field,
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #billing_email_field{
  width:100%!important;
  float:none!important;
  margin:0!important;
}
.woocommerce-checkout #billing_first_name_field{order:1}
.woocommerce-checkout #billing_last_name_field{order:2}
.woocommerce-checkout #billing_phone_field{order:3}
.woocommerce-checkout #billing_email_field{order:4}

.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_postcode_field{
  display:none!important;
}

.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_city_field,
.woocommerce-checkout #billing_address_1_field{
  grid-column:1/-1;
  width:100%!important;
  float:none!important;
  margin:0!important;
}
.woocommerce-checkout #billing_state_field{
  order:20;
  margin-top:18px!important;
  padding-top:22px;
  border-top:1px solid #24486d;
}
.woocommerce-checkout #billing_city_field{order:21}
.woocommerce-checkout #billing_address_1_field{order:22}

.woocommerce-checkout #billing_state_field::before{
  display:block;
  margin:0 0 18px;
  color:#e6bd67;
  font:600 24px/1.2 Georgia,'Times New Roman',serif;
}
html[lang^="ru"] .woocommerce-checkout #billing_state_field::before{content:"🚚  Доставка Новой почтой";}
html[lang^="uk"] .woocommerce-checkout #billing_state_field::before{content:"🚚  Доставка Новою поштою";}

.woocommerce-checkout #billing_state_field>label,
.woocommerce-checkout #billing_city_field>label,
.woocommerce-checkout #billing_address_1_field>label{
  font-size:0;
}
.woocommerce-checkout #billing_state_field>label::after,
.woocommerce-checkout #billing_city_field>label::after,
.woocommerce-checkout #billing_address_1_field>label::after{
  font-size:14px;
  font-weight:700;
  color:var(--text);
}
html[lang^="ru"] .woocommerce-checkout #billing_state_field>label::after{content:"Область *";}
html[lang^="uk"] .woocommerce-checkout #billing_state_field>label::after{content:"Область *";}
html[lang^="ru"] .woocommerce-checkout #billing_city_field>label::after{content:"Населённый пункт *";}
html[lang^="uk"] .woocommerce-checkout #billing_city_field>label::after{content:"Населений пункт *";}
html[lang^="ru"] .woocommerce-checkout #billing_address_1_field>label::after{content:"Отделение / Почтомат *";}
html[lang^="uk"] .woocommerce-checkout #billing_address_1_field>label::after{content:"Відділення / Поштомат *";}

.woocommerce-checkout .woocommerce-billing-fields__field-wrapper .form-row label{
  margin-bottom:7px;
  line-height:1.2;
}
.woocommerce-checkout form .form-row input.input-text,
.woocommerce-checkout form .form-row textarea,
.woocommerce-checkout form .form-row select,
.woocommerce-checkout .select2-container--default .select2-selection--single{
  min-height:54px;
  padding:13px 15px;
  background:#112f52;
  border:1px solid #315d88;
  border-radius:8px;
  color:#f6f3ed;
}
.woocommerce-checkout .select2-container--default .select2-selection--single{
  display:flex;
  align-items:center;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height:1.2;
  padding-left:0;
}
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow{
  top:50%;
  transform:translateY(-50%);
  right:10px;
}

.woocommerce-checkout .ksp-phone-verify{
  margin:18px 0 0;
  padding:20px;
  border:1px solid #315d88;
  border-radius:12px;
  background:#0a2038;
}
.woocommerce-checkout .ksp-phone-verify h3{
  margin:0 0 8px;
  color:#e6bd67;
  font:600 22px/1.2 Georgia,'Times New Roman',serif;
}
.woocommerce-checkout .ksp-phone-verify>p:first-of-type{
  color:#9fb1c6;
  margin-top:0;
}
.woocommerce-checkout #ksp-send-code,
.woocommerce-checkout #ksp-verify-code,
.woocommerce-checkout #ksp-resend-code{
  background:#C2181F!important;
  color:#fff!important;
  border:0!important;
  border-radius:8px!important;
  min-height:50px;
  padding:12px 22px!important;
}

.woocommerce-checkout #order_review_heading{
  padding:18px 22px 0;
  color:#e6bd67;
  font:600 25px/1.2 Georgia,'Times New Roman',serif;
}
html[lang^="ru"] .woocommerce-checkout #order_review_heading{font-size:0}
html[lang^="ru"] .woocommerce-checkout #order_review_heading::after{content:"🛒  Ваш заказ";font-size:25px}
html[lang^="uk"] .woocommerce-checkout #order_review_heading{font-size:0}
html[lang^="uk"] .woocommerce-checkout #order_review_heading::after{content:"🛒  Ваше замовлення";font-size:25px}

.woocommerce-checkout .woocommerce-checkout-review-order{
  padding:18px 22px 22px;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table{
  margin:0 0 16px!important;
  border:0!important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td{
  padding:13px 6px!important;
  border-color:#24486d!important;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td{
  color:#e6bd67;
  font-size:22px;
}
.woocommerce-checkout .ksp-shipping-policy td{
  color:#f2f4f7;
}

.woocommerce-checkout #payment{
  margin-top:18px;
  padding:18px;
  background:#07182b!important;
  border:1px solid #24486d;
  border-radius:14px;
}
.woocommerce-checkout #payment::before{
  display:block;
  margin:0 0 14px;
  color:#e6bd67;
  font:600 24px/1.2 Georgia,'Times New Roman',serif;
}
html[lang^="ru"] .woocommerce-checkout #payment::before{content:"▣  Способ оплаты";}
html[lang^="uk"] .woocommerce-checkout #payment::before{content:"▣  Спосіб оплати";}

.woocommerce-checkout #payment .wc_payment_methods{
  border:0!important;
  padding:0!important;
}
.woocommerce-checkout #payment .wc_payment_method{
  margin:0 0 10px!important;
  padding:15px 16px!important;
  border:1px solid #315d88;
  border-radius:11px;
  background:#0a2038;
}
.woocommerce-checkout #payment .wc_payment_method input[type="radio"]{
  accent-color:#3ca7ff;
}
.woocommerce-checkout #payment .wc_payment_method label{
  font-weight:700;
}
.woocommerce-checkout #payment .payment_box{
  margin:10px 0 0!important;
  padding:10px 12px!important;
  background:#112f52!important;
  color:#cbd7e4!important;
  border-radius:8px!important;
}
.woocommerce-checkout #payment .payment_box::before{
  border-bottom-color:#112f52!important;
}

.woocommerce-checkout #payment:not(:has(.payment_method_liqpay)):not(:has([class*="liqpay"])) .wc_payment_methods::before{
  content:"◉  LiqPay — оплата карткою онлайн";
  display:block;
  white-space:pre-line;
  margin:0 0 10px;
  padding:16px;
  border:2px solid #3ca7ff;
  border-radius:11px;
  background:#0d3157;
  color:#eaf6ff;
  font-weight:700;
  line-height:1.5;
  pointer-events:none;
}
html[lang^="ru"] .woocommerce-checkout #payment:not(:has(.payment_method_liqpay)):not(:has([class*="liqpay"])) .wc_payment_methods::before{
  content:"◉  LiqPay — оплата картой онлайн";
}

.woocommerce-checkout #payment .place-order{
  padding:16px 0 0!important;
}
.woocommerce-checkout #payment #place_order{
  width:100%;
  min-height:58px;
  float:none!important;
  margin:12px 0 0!important;
  background:#C2181F!important;
  color:#fff!important;
  border:0!important;
  border-radius:9px!important;
  font-size:18px;
}
.woocommerce-checkout #payment .woocommerce-privacy-policy-text{
  color:#9fb1c6;
  font-size:13px;
  line-height:1.45;
}
.woocommerce-checkout #payment .woocommerce-privacy-policy-link{
  color:#4aa9ff;
  text-decoration:underline;
  text-underline-offset:2px;
}

@media(max-width:980px){
  .woocommerce-checkout form.checkout{
    grid-template-columns:1fr;
    grid-template-areas:"customer" "review-heading" "review";
  }
}
@media(max-width:700px){
  .woocommerce-checkout form.checkout .col2-set{
    padding:16px;
  }
  .woocommerce-checkout .woocommerce-billing-fields__field-wrapper{
    grid-template-columns:1fr;
  }
  .woocommerce-checkout #billing_first_name_field,
  .woocommerce-checkout #billing_last_name_field,
  .woocommerce-checkout #billing_phone_field,
  .woocommerce-checkout #billing_email_field{
    grid-column:1/-1;
  }
}

/* --- Checkout product thumbnails + Nova Poshta COD visual, 2026-10-01 --- */
.woocommerce-checkout-review-order-table td.product-name .ksp-checkout-thumb{
  display:inline-flex;
  width:58px;
  height:58px;
  margin:0 12px 0 0;
  vertical-align:middle;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #24486d;
  background:#081423;
}
.woocommerce-checkout-review-order-table td.product-name .ksp-checkout-thumb-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.woocommerce-checkout .payment_method_cod>label .ksp-cod-title{
  display:inline-block;
  font-weight:700;
  line-height:1.35;
}
@media(max-width:700px){
  .woocommerce-checkout-review-order-table td.product-name .ksp-checkout-thumb{
    width:48px;
    height:48px;
    margin-right:8px;
  }
}



/* --- Tablet responsive corrections, 2026-10-01 --- */
/* Keep the approved phone (<=700px) and desktop (>=1024px) layouts intact.
   Tablet is treated as 701-1023px and receives only responsive overrides. */
@media (min-width:701px) and (max-width:1023px){
  /* 1. Header: keep the compact tablet navigation instead of forcing the full desktop row. */
  .header-wrap{
    height:82px;
    padding:0 12px;
    width:100%;
    gap:9px;
  }
  .logo{
    display:flex;
    align-items:center;
    justify-content:center;
    width:70px;
    height:70px;
    flex:0 0 70px;
    background:#071d37;
    border-radius:50%;
    overflow:hidden;
  }
  .logo img{
    display:block;
    width:100%;
    height:100%;
    max-width:none;
    border-radius:50%;
    clip-path:circle(49.5% at 50% 50%);
    object-fit:cover;
    object-position:center;
    background:#071d37;
    filter:brightness(1.28) saturate(1.18) drop-shadow(0 0 7px rgba(208,169,93,.55));
  }
  .menu-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    order:2;
    width:48px;
    height:48px;
    flex:0 0 48px;
    margin-left:0;
    font-size:28px;
  }
  .header-right{
    order:3;
    margin-left:auto;
    gap:6px;
  }
  #nav,
  .main-nav{
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:82px;
    margin:0;
    padding:10px 14px 14px;
    background:#0b1220;
    border:0;
    border-bottom:1px solid var(--border);
    border-radius:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    white-space:normal;
    box-shadow:0 12px 24px rgba(0,0,0,.35);
  }
  #nav.open,
  .main-nav.open{display:flex}
  #nav a,
  .main-nav a{
    padding:12px 8px;
    border-bottom:1px solid var(--border);
    font-size:16px;
  }
  .cart-btn{min-height:48px;padding:8px 12px}
  .cart-icon{width:24px;height:24px}
  .lang-switch a{font-size:16px;padding:8px 9px}

  /* 3. Home category cards: keep a stable 2x2 tablet grid. */
  .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}

  /* 4. Catalog: avoid the abrupt 2 -> 4 column jump inside tablet widths. */
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  /* 5. Product page: retain a compact image + information composition on tablet. */
  .ksp-product-page{
    grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
    gap:24px;
    align-items:start;
  }
  .ksp-product-summary{padding-top:0}
  .ksp-product-summary h1{
    font-size:clamp(28px,3.6vw,38px);
    line-height:1.12;
  }
  .ksp-product-price{font-size:28px;margin-bottom:18px}
  .ksp-product-cart{align-items:stretch;flex-wrap:wrap}
  .ksp-product-photo{max-height:560px}
  .ksp-addon-grid{grid-template-columns:1fr}

  /* 7. Recipe detail: preserve the compact desktop idea instead of a very tall single column. */
  .rd-hero{
    grid-template-columns:minmax(0,.40fr) minmax(0,.60fr);
    gap:24px;
    align-items:start;
    margin-bottom:30px;
  }
  .rd-photo{
    aspect-ratio:1/1;
    max-height:440px;
  }
  .rd-title{padding-top:0}
  .recipe-detail .rd-title h1{
    margin:0 0 18px;
    font-size:clamp(24px,3vw,32px);
  }
  .rd-title .rd-cols{
    grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
    gap:16px;
    margin-top:4px;
  }
  .rd-title .rd-cols h2{margin-bottom:9px}
  .rd-title .ing-list li{
    padding:6px 0;
    font-size:13px;
    line-height:1.35;
  }
  .rd-title .steps-list li{
    padding:0 0 14px 36px;
    font-size:13px;
    line-height:1.42;
  }
  .rd-title .steps-list li::before{
    width:26px;
    height:26px;
    font-size:12px;
  }
  .recipe-detail .video-wrap video{
    aspect-ratio:auto;
    object-fit:contain;
    max-height:82vh;
  }

  /* 8. Builder: three compact selectors fit on tablet and avoid a needlessly long page. */
  .ksp-builder-slots{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  /* 9. Mini-cart: side drawer on tablet; fullscreen remains phone-only. */
  .cart-drawer{
    width:420px;
    max-width:min(70vw,420px);
  }

  /* 10. Checkout: keep the tablet checkout consistently single-column up to desktop. */
  .woocommerce form.checkout,
  .woocommerce-checkout form.checkout{
    grid-template-columns:1fr;
    grid-template-areas:"customer" "review-heading" "review";
  }
}

/* 2. Hero: portrait tablets use the portrait artwork; landscape tablets retain desktop artwork.
   The actual source switch is defined in front-page.php. */
@media (min-width:701px) and (max-width:1023px) and (orientation:portrait){
  .hero{
    min-height:calc(100vh - 82px);
  }
  .hero picture,
  .hero picture img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:block;
  }
  .hero picture img{
    object-fit:cover;
    object-position:center;
  }
  .hero-copy{display:none}
}


@media (min-width:701px) and (max-width:1023px) and (orientation:landscape){
  .hero{min-height:0}
  .hero picture{
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    display:block;
  }
  .hero picture img{
    position:relative;
    inset:auto;
    width:100%;
    height:auto;
    display:block;
    object-fit:contain;
    object-position:center;
  }
  .hero-copy{display:block}
}


@media (min-width:701px) and (max-width:1023px) and (orientation:landscape){
  .cards-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
  }
}


@media (min-width:701px) and (max-width:1023px) and (orientation:landscape){
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .catalog-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
  }
}


/* --- Compact add-on cards on desktop and tablet, 2026-10-06 --- */
@media (min-width:701px){
  .ksp-addon-card{
    min-height:190px;
    height:auto;
    grid-template-rows:minmax(190px,auto);
  }
  .ksp-addon-card>a{
    position:relative;
    height:auto;
    min-height:190px;
  }
  .ksp-addon-card>a img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
  }
  .ksp-addon-card .added_to_cart.wc-forward{
    display:none!important;
  }
}

@media (min-width:701px) and (max-width:1023px) and (orientation:landscape){
  .ksp-addon-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
  .ksp-addon-card{
    grid-template-columns:38% 1fr;
  }
  .ksp-addon-body{
    padding:12px 13px;
  }
  .ksp-addon-body h3{
    font-size:15px;
    line-height:1.22;
  }
  .ksp-addon-body .price{
    font-size:18px;
  }
  .ksp-addon-card .button{
    padding:10px 12px;
  }
}


/* --- Product page: portrait small-tablet correction, 2026-10-08 --- */
@media (min-width:500px) and (max-width:700px) and (orientation:portrait){
  .ksp-product-page{
    grid-template-columns:minmax(0,.42fr) minmax(0,.58fr);
    gap:18px;
    align-items:start;
  }
  .ksp-product-summary{
    padding-top:0;
  }
  .ksp-product-summary h1{
    font-size:26px;
    line-height:1.12;
    margin-bottom:10px;
  }
  .ksp-product-price{
    font-size:26px;
    margin-bottom:16px;
  }
  .ksp-product-cart{
    align-items:stretch;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:18px;
  }
  .ksp-product-cart .qty{
    width:68px!important;
    min-height:44px;
  }
  .ksp-product-cart .single_add_to_cart_button{
    min-height:44px;
    padding:10px 14px;
  }
  .ksp-product-extra{
    padding-top:16px;
    margin-top:4px;
  }
  .ksp-product-extra h2{
    font-size:21px;
    margin-bottom:10px;
  }
  .ksp-product-description{
    font-size:14px;
    line-height:1.5;
  }
  .ksp-product-photo{
    max-height:none;
  }
}


/* --- Product page: hide stale add-to-cart success notice, 2026-10-08 --- */
.single-product .woocommerce-message{
  display:none;
}


/* --- Recipe archive: three cards on tablet landscape, 2026-10-08 --- */
@media (min-width:701px) and (max-width:1023px) and (orientation:landscape){
  .recipe-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:14px;
  }
}


/* --- Recipe detail: smaller hero photo on portrait small-tablet, 2026-10-08 --- */
@media (min-width:500px) and (max-width:700px) and (orientation:portrait){
  .recipe-detail .rd-photo{
    width:72%;
    justify-self:center;
  }
}


/* --- Recipe video: stable 16:9 poster and playback on portrait small-tablet, 2026-10-08 --- */
@media (min-width:500px) and (max-width:700px) and (orientation:portrait){
  .recipe-detail .video-wrap{
    aspect-ratio:16/9;
    height:auto;
  }
  .recipe-detail .video-wrap video{
    display:block;
    width:100%;
    height:100%;
    aspect-ratio:auto;
    object-fit:contain;
    max-height:none;
  }
}


/* --- Recipe detail: compact media and stable video on desktop, 2026-10-08 --- */
@media (min-width:1024px){
  .recipe-detail .rd-hero{
    grid-template-columns:minmax(0,.39fr) minmax(0,.61fr);
  }
  .recipe-detail .video-wrap{
    width:82%;
    max-width:760px;
    aspect-ratio:16/9;
    height:auto;
  }
  .recipe-detail .video-wrap video{
    display:block;
    width:100%;
    height:100%;
    aspect-ratio:auto;
    object-fit:contain;
    max-height:none;
  }
}

/* --- Cart: restore product thumbnails on tablet portrait, 2026-10-09 --- */
@media (min-width:500px) and (max-width:1023px) and (orientation:portrait){
  .woocommerce-cart table.shop_table_responsive tr td.product-thumbnail,
  .woocommerce-page.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail{
    display:block!important;
    padding:8px 12px 4px!important;
    text-align:left!important;
  }
  .woocommerce-cart table.shop_table_responsive tr td.product-thumbnail::before,
  .woocommerce-page.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail::before{
    display:none!important;
    content:none!important;
  }
  .woocommerce-cart table.shop_table_responsive tr td.product-thumbnail a,
  .woocommerce-page.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail a{
    display:inline-block;
  }
  .woocommerce-cart table.shop_table_responsive tr td.product-thumbnail img,
  .woocommerce-page.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail img{
    display:block!important;
    width:58px!important;
    height:72px!important;
    object-fit:cover;
    border-radius:7px;
  }
}

/* Phone-only: short landscape screens show the complete desktop hero, not a cropped portrait. */
@media (max-width:700px) and (orientation:landscape) and (max-height:430px){
  .hero{min-height:0}
  .hero picture,.hero picture img{position:relative;inset:auto;width:100%;height:auto;display:block}
  .hero picture img{object-fit:contain;object-position:center}
}

/* Phone-only: suppress the extra WooCommerce view-cart link after adding an add-on. */
@media (max-width:499px){
  .ksp-addon-card .added_to_cart.wc-forward{display:none!important}
}

/* Phone-only: stable recipe video box (poster, playback and finished state). */
@media (max-width:499px){
  .recipe-detail .video-wrap{aspect-ratio:16/9;height:auto}
  .recipe-detail .video-wrap video{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain;max-height:none}
}

/* Phone-only: give related recipes and KSP products room for long names. */
@media (max-width:499px){
  .recipe-detail .linked-products,
  .recipe-detail .related-grid{grid-template-columns:minmax(0,1fr)}
  .recipe-detail .linked-products a,
  .recipe-detail .related-grid a{min-width:0}
  .recipe-detail .linked-products span,
  .recipe-detail .related-grid span{overflow-wrap:anywhere}
}

/* Phone landscape: scroll tall dropdown within the short viewport. */
@media (orientation:landscape) and (max-height:430px) and (max-width:900px){
  #nav.open{
    max-height:calc(100vh - 90px);
    max-height:calc(100dvh - 90px);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
  }
}

/* Phone landscape: center the burger and anchor language/cart at the right edge. */
@media (orientation:landscape) and (max-height:430px) and (min-width:640px) and (max-width:900px){
  .site-header .menu-btn{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    margin-left:0;
  }
  .site-header .header-right{
    position:absolute;
    top:50%;
    right:12px;
    transform:translateY(-50%);
    margin:0;
  }
}

/* Phone-only: keep add-on cards compact; image must not define grid row height. */
@media (max-width:499px){
  .ksp-addon-grid{grid-template-columns:minmax(0,1fr)}
  .ksp-addon-card{
    grid-template-columns:minmax(0,40%) minmax(0,1fr);
    grid-template-rows:minmax(170px,auto);
    min-height:170px;
    height:auto;
  }
  .ksp-addon-card>a{
    position:relative;
    display:block;
    height:auto;
    min-height:170px;
    overflow:hidden;
  }
  .ksp-addon-card>a img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    aspect-ratio:auto;
    object-fit:cover;
    object-position:center;
  }
  .ksp-addon-body{min-width:0;overflow-wrap:anywhere}
  .ksp-addon-body .button{max-width:100%;white-space:normal;text-align:center}
}

/* Phone landscape: compact add-ons independently of viewport width. */
@media (orientation:landscape) and (max-height:430px) and (min-width:500px) and (max-width:900px){
  .ksp-addon-grid{grid-template-columns:minmax(0,1fr)}
  .ksp-addon-card{
    grid-template-columns:clamp(170px,30%,220px) minmax(0,1fr);
    grid-template-rows:minmax(190px,auto);
    min-height:190px;
    height:auto;
  }
  .ksp-addon-card>a{
    position:relative;
    display:block;
    height:auto;
    min-height:190px;
    overflow:hidden;
  }
  .ksp-addon-card>a img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    aspect-ratio:auto;
    object-fit:contain;
    object-position:center;
  }
  .ksp-addon-body{min-width:0;overflow-wrap:anywhere}
  .ksp-addon-body .button{max-width:100%;white-space:normal;text-align:center}
}

/* Phone landscape: smaller, uncropped product-detail photo. */
@media (orientation:landscape) and (max-height:430px) and (min-width:500px) and (max-width:900px){
  .ksp-product-page .ksp-product-photo{
    width:min(100%,304px);
    max-height:380px;
    aspect-ratio:4/5;
    justify-self:center;
  }
  .ksp-product-page .ksp-product-photo img{
    object-fit:contain;
    object-position:center;
  }
}

/* Phone landscape: shorter recipe thumbnails while keeping a two-column list. */
@media (orientation:landscape) and (max-height:430px) and (min-width:500px) and (max-width:900px){
  .recipe-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
  .recipe-grid .recipe-card-photo{
    aspect-ratio:4/3;
  }
  .recipe-grid .recipe-card-photo img{
    width:100%;
    height:100%;
    aspect-ratio:auto;
    object-fit:cover;
    object-position:center;
  }
}

/* Phone landscape: compact recipe detail photo and stable, uncropped video. */
@media (orientation:landscape) and (max-height:430px) and (min-width:500px) and (max-width:900px){
  .recipe-detail .rd-photo{
    width:min(100%,280px);
    max-width:280px;
    aspect-ratio:4/5;
    justify-self:center;
  }
  .recipe-detail .rd-photo img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
  }
  .recipe-detail .video-wrap{
    width:min(100%,500px);
    max-width:500px;
    aspect-ratio:16/9;
    height:auto;
    margin:24px auto;
  }
  .recipe-detail .video-wrap video{
    display:block;
    width:100%;
    height:100%;
    aspect-ratio:auto;
    object-fit:contain;
    max-height:none;
  }
}

/* KSP gift builder: inline dark options instead of Android's native select sheet.
   Active only on phone portrait / short phone landscape. */
.ksp-phone-picker{display:none}
@media (max-width:499px), (orientation:landscape) and (max-height:430px) and (min-width:500px) and (max-width:900px){
  #ksp-builder-form .ksp-builder-slot{position:relative;min-width:0}
  #ksp-builder-form .ksp-phone-picker-ready>select[name="main_products[]"]{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    border:0!important;
    opacity:0!important;
    pointer-events:none!important;
    clip-path:inset(50%);
  }
  #ksp-builder-form .ksp-phone-picker{display:block;position:relative;min-width:0}
  #ksp-builder-form .ksp-phone-picker-toggle{
    position:relative;
    min-height:48px;
    padding:12px 36px 12px 14px;
    background:var(--card2);
    border:1px solid var(--border);
    border-radius:9px;
    color:var(--text);
    font:inherit;
    line-height:1.35;
    overflow-wrap:anywhere;
    cursor:pointer;
  }
  #ksp-builder-form .ksp-phone-picker-toggle::after{
    content:"";
    position:absolute;
    right:14px;top:50%;
    width:8px;height:8px;
    border-right:1px solid currentColor;
    border-bottom:1px solid currentColor;
    transform:translateY(-70%) rotate(45deg);
  }
  #ksp-builder-form .ksp-phone-picker-toggle[aria-disabled="true"]{opacity:.55;cursor:wait}
  #ksp-builder-form .ksp-phone-picker-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
  #ksp-builder-form .ksp-phone-picker-menu{
    position:absolute;
    top:calc(100% + 4px);
    left:0;right:0;
    z-index:80;
    max-height:min(260px,60vh);
    max-height:min(260px,60dvh);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    border:1px solid var(--border);
    border-radius:9px;
    background:var(--card2);
    box-shadow:0 12px 28px rgba(0,0,0,.5);
  }
  #ksp-builder-form .ksp-phone-picker.is-up .ksp-phone-picker-menu{
    top:auto;bottom:calc(100% + 4px);
  }
  #ksp-builder-form .ksp-phone-picker-menu[hidden]{display:none!important}
  #ksp-builder-form .ksp-phone-picker-option{
    padding:10px 12px;
    color:var(--text);
    line-height:1.35;
    overflow-wrap:anywhere;
    cursor:pointer;
  }
  #ksp-builder-form .ksp-phone-picker-option+.ksp-phone-picker-option{border-top:1px solid var(--border)}
  #ksp-builder-form .ksp-phone-picker-option:focus,
  #ksp-builder-form .ksp-phone-picker-option.is-selected{background:#213852}
}

/* Phone cart: restore WooCommerce product thumbnails hidden by responsive table styles. */
@media (max-width:499px), (orientation:landscape) and (max-height:430px) and (min-width:500px) and (max-width:767px){
  .woocommerce-cart table.shop_table_responsive tr td.product-thumbnail,
  .woocommerce-page.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail{
    display:block!important;
    padding:8px 12px 4px!important;
    text-align:left!important;
  }
  .woocommerce-cart table.shop_table_responsive tr td.product-thumbnail::before,
  .woocommerce-page.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail::before{
    display:none!important;
    content:none!important;
  }
  .woocommerce-cart table.shop_table_responsive tr td.product-thumbnail a,
  .woocommerce-page.woocommerce-cart table.shop_table_responsive tr td.product-thumbnail a{
    display:inline-block;
  }
}
@media (max-width:499px), (orientation:landscape) and (max-height:430px) and (min-width:500px) and (max-width:900px){
  .woocommerce-cart table.shop_table tr td.product-thumbnail img,
  .woocommerce-page.woocommerce-cart table.shop_table tr td.product-thumbnail img{
    display:block!important;
    width:58px!important;
    height:72px!important;
    object-fit:contain;
    border-radius:7px;
  }
}


/* KSP legal documents: scoped content typography and responsive four-link footer. */
.ksp-legal-document{max-width:920px;margin:18px auto 54px;color:var(--text);font-size:16px;line-height:1.7;overflow-wrap:anywhere}
.ksp-legal-document h2{font-size:clamp(22px,2.2vw,30px);line-height:1.2;color:var(--gold);margin:32px 0 14px}
.ksp-legal-document h3{font-size:clamp(19px,2vw,24px);line-height:1.25;color:var(--gold);margin:26px 0 12px}
.ksp-legal-document p{margin:0 0 14px}
.ksp-legal-document ul{margin:4px 0 22px 0;padding-left:22px}
.ksp-legal-document li{padding:3px 0}
.ksp-legal-document strong{color:var(--text)}
.site-footer .footer-inner{flex-wrap:wrap;row-gap:10px}
.site-footer .footer-inner>a{white-space:normal}
.site-footer .footer-inner small{white-space:nowrap}
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a{color:var(--gold);text-decoration:underline}
@media(max-width:767px){
  .ksp-legal-document{font-size:14px;line-height:1.62;margin:16px auto 36px}
  .ksp-legal-document h2{margin-top:26px}
  .site-footer .footer-inner{justify-content:center;gap:12px 18px;padding:18px 0}
  .site-footer .footer-inner small{width:100%;text-align:center;margin:4px 0 0}
}

/* Checkout delivery selectors (Nova Poshta / Woo Select2): readable like contact inputs.
   Covers desktop, tablet, phone and refreshed checkout fields without changing layout. */
body.woocommerce-checkout form.checkout .form-row select,
body.woocommerce-checkout .select2-container--default .select2-selection--single,
body.woocommerce-checkout .select2-container--default .select2-selection--multiple{
  background:#fff!important;
  color:#161616!important;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered,
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder,
body.woocommerce-checkout .select2-container--default .select2-selection--multiple .select2-selection__rendered{
  color:#161616!important;
  opacity:1!important;
}
body.woocommerce-checkout form.checkout .form-row select option{
  background:#fff;
  color:#161616;
}
body.woocommerce-checkout .select2-container--open .select2-dropdown,
body.woocommerce-checkout .select2-container--open .select2-search__field,
body.woocommerce-checkout .select2-container--open .select2-results__option{
  background:#fff;
  color:#161616;
}
body.woocommerce-checkout .select2-container--open .select2-results__option--highlighted[aria-selected]{
  background:#225988;
  color:#fff;
}
