/* TEKNOBE 1.1.4 — WooCommerce cart/checkout layout repair and product fidelity.
 * Scoped to WooCommerce pages and loaded after v1.1.3. Preserve Woo's own
 * cart calculations, checkout fields, gateway widgets and React interactions.
 */
:root{--tk-v114-red:#dd000b;--tk-v114-border:#d6dee9;--tk-v114-soft:#f8fafe;--tk-v114-ink:#111319}

/* The header steps belong to the LEFT purchase column, not the full page. */
.woocommerce-cart .tk-order-page-header,.woocommerce-checkout .tk-order-page-header{width:100%;align-items:stretch!important;gap:13px!important;margin:12px 0 23px!important}
.woocommerce-cart .tk-order-page-header h1,.woocommerce-checkout .tk-order-page-header h1{font-size:29px;line-height:1.2;letter-spacing:-.035em}
.woocommerce-cart .tk-order-page-header .tk-checkout-steps,.woocommerce-checkout .tk-order-page-header .tk-checkout-steps{width:calc(67% - 24px)!important;max-width:none!important;margin:0!important;align-self:flex-start;display:flex!important;align-items:start!important;justify-content:space-between!important}
.tk-order-page-header .tk-checkout-steps:before{left:16.5%;right:16.5%;top:21px;height:2px}
.tk-order-page-header .tk-checkout-step{flex:1 1 0;min-width:0;white-space:normal;text-align:center;line-height:1.35}
.tk-order-page-header .tk-step-icon{margin-inline:auto}

/* ROOT CAUSE: v1.1.3 made this live WooCommerce Blocks column flex-grow:0.
 * It shrank to 42px while the price column remained 360px. Give both columns
 * explicit tracks and prevent any inherited Woo flex rules from collapsing. */
body.woocommerce-cart .wp-block-woocommerce-cart,body.woocommerce-cart .wp-block-woocommerce-cart.alignwide{width:100%;max-width:100%;min-width:0;margin-inline:0}
body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(305px,33%)!important;gap:24px!important;width:100%!important;min-width:0!important;align-items:start!important}
body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout > .wc-block-cart__main,body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout > .wc-block-components-main{display:block!important;grid-column:1;min-width:0!important;max-width:none!important;width:100%!important;flex:1 1 auto!important;align-self:start!important;padding:14px 20px!important;margin:0!important;box-sizing:border-box!important;background:#fff;border:1px solid var(--tk-v114-border);border-radius:10px}
body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout > .wc-block-cart__sidebar,body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout > .wc-block-components-sidebar{display:block!important;grid-column:2;min-width:0!important;max-width:none!important;width:100%!important;flex:0 0 auto!important;align-self:start!important;margin:0!important;padding:20px!important;box-sizing:border-box!important;border:1px solid var(--tk-v114-border);border-radius:10px;background:linear-gradient(150deg,#f7f9fe,#fff 92%)!important}
.woocommerce-cart .wc-block-cart-items{width:100%!important;table-layout:auto}
.woocommerce-cart .wc-block-cart-items__row td{vertical-align:middle!important;padding:17px 9px!important}
.woocommerce-cart .wc-block-cart-item__image{min-width:88px;width:125px}
.woocommerce-cart .wc-block-cart-item__image img{max-width:128px!important;max-height:135px!important;object-fit:contain!important;aspect-ratio:1!important}
.woocommerce-cart .wc-block-cart .wc-block-components-product-name{font-size:15px!important;line-height:1.3;font-weight:800!important}
.woocommerce-cart .wc-block-cart .wc-block-cart-item__total .wc-block-components-product-price{font-weight:800}
.woocommerce-cart .wc-block-cart .wc-block-components-sidebar:before{content:'Sipariş Özeti';font-size:21px;font-weight:850;border-bottom:1px solid #dce2ec;padding-bottom:14px;margin-bottom:10px;line-height:1.25;display:block}
.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button{background:var(--tk-v114-red)!important;color:#fff!important;min-height:49px;border-radius:6px}
.woocommerce-cart .wc-block-cart .wc-block-components-totals-footer-item__value{color:var(--tk-v114-red);font-weight:900}

/* Classic cart fallback (sites with [woocommerce_cart] shortcode). */
.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form){grid-template-columns:minmax(0,1fr) minmax(305px,33%)!important;gap:24px!important;width:100%;min-width:0}
.woocommerce-cart .woocommerce-cart-form{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:14px 18px!important}
.woocommerce-cart .cart-collaterals{width:100%!important;float:none!important;min-width:0!important}
.woocommerce-cart .cart-collaterals .cart_totals{width:100%!important;float:none!important}

/* Checkout layout. Woo Blocks owns the real controls and payment methods. */
body.woocommerce-checkout .wc-block-checkout{width:100%;max-width:none;min-width:0;padding-top:5px}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(305px,33%)!important;gap:24px!important;align-items:start!important;width:100%!important}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-main{grid-column:1;width:100%!important;min-width:0!important;max-width:none!important;flex:1 1 auto!important;padding:0!important;margin:0!important}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar{grid-column:2;width:100%!important;max-width:none!important;min-width:0!important;flex:0 0 auto!important;align-self:start!important;box-sizing:border-box!important;padding:20px!important;margin:0!important;border:1px solid var(--tk-v114-border);border-radius:11px;background:linear-gradient(145deg,#f6f9fd,#fafbff 65%,#f6f9fd)!important;box-shadow:none!important}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step{margin:0 0 12px!important;padding:18px 19px!important;background:linear-gradient(145deg,#fcfdff,#f9fbfe 80%)!important;border:1px solid var(--tk-v114-border)!important;border-radius:10px!important;box-shadow:none}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__title{border-left:5px solid var(--tk-v114-red)!important;padding-left:13px!important;font-size:20px!important;line-height:1.28!important;font-weight:850!important;color:var(--tk-v114-ink)}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__heading{margin:0 0 15px!important}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input input,body.woocommerce-checkout .wc-block-checkout .wc-block-components-combobox-control input,body.woocommerce-checkout .wc-block-checkout .wc-block-components-select select{border:1px solid #bec8d6!important;border-radius:6px!important;background:#fff!important;min-height:45px!important}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__image img{object-fit:contain;background:#fff;border-radius:7px}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-totals-footer-item__value{color:var(--tk-v114-red)!important;font-weight:900}
body.woocommerce-checkout .wc-block-checkout .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button{border:0!important;min-height:52px;background:var(--tk-v114-red)!important;border-radius:6px!important;font-size:16px!important;font-weight:800}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option{padding:13px 16px 13px 48px!important;min-height:50px;display:flex;align-items:center;position:relative}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__input{position:absolute!important;left:16px!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label{margin-left:auto!important}
/* Credit/bank transfer choices come from the site's actual Woo gateway list. */
body.woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control__option{background:#fff;border-color:#cbd3df;border-radius:7px}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-radio-control__option:has(input:checked){border-color:var(--tk-v114-red);box-shadow:inset 0 0 0 1px var(--tk-v114-red);background:#fff}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__description{color:#4b5665}
/* Floating labels remain usable; line icon only inside reserved left space. */
body.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input:has(input[id*="email"]):before,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input:has(input[id*="phone"]):before,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input:has(input[id*="first-name"]):before,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input:has(input[id*="last-name"]):before,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-text-input:has(input[id*="address_1"]):before{top:15px}

/* Single product: fixed, contain-based gallery with no object cropping. */
body.single-product .tk-woocommerce-main>.tk-container{max-width:1340px}
body.single-product .tk-woocommerce-main div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:35px;row-gap:22px;align-items:start}
body.single-product .tk-woocommerce-main div.product div.images{grid-column:1;grid-row:1;min-width:0!important;overflow:visible}
body.single-product .tk-woocommerce-main div.product div.summary{grid-column:2;grid-row:1;min-width:0!important}
body.single-product .tk-woocommerce-main div.product div.images .woocommerce-product-gallery__wrapper{width:100%;min-width:0;background:#f3f4f7;border:1px solid #e8ebf0;border-radius:11px;overflow:hidden}
body.single-product .tk-woocommerce-main div.product div.images .flex-viewport{height:390px!important;max-height:390px!important;overflow:hidden!important;border-radius:11px;background:#f3f4f7}
body.single-product .tk-woocommerce-main div.product div.images .woocommerce-product-gallery__image>a{width:100%;height:390px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f3f4f7}
body.single-product .tk-woocommerce-main div.product div.images .woocommerce-product-gallery__image img{width:100%!important;height:390px!important;max-width:100%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center center!important;display:block!important}
body.single-product .tk-woocommerce-main div.product div.images .flex-control-thumbs{display:flex;justify-content:center;flex-wrap:wrap;gap:11px;margin:10px 0 0!important}
body.single-product .tk-woocommerce-main div.product div.images .flex-control-thumbs li{float:none!important;width:82px!important;height:75px!important;max-width:none!important;border:1px solid #d7dce4;border-radius:8px;overflow:hidden;background:#f3f4f7}
body.single-product .tk-woocommerce-main div.product div.images .flex-control-thumbs li:has(img.flex-active){border:2px solid var(--tk-v114-red)}
body.single-product .tk-woocommerce-main div.product div.images .flex-control-thumbs li img{width:100%!important;height:100%!important;aspect-ratio:auto!important;object-fit:contain!important}
body.single-product .tk-woocommerce-main div.product .summary .tk-single-brand{display:flex;align-items:center;min-height:33px;line-height:1;margin:0 0 3px}
body.single-product .tk-woocommerce-main div.product .summary .tk-single-brand .tk-brand-logo-img{max-width:125px;max-height:33px;width:auto;height:auto;object-fit:contain}
body.single-product .tk-woocommerce-main div.product .summary .product_title{font-size:28px!important;font-weight:850!important;line-height:1.14!important;margin:0 0 8px!important;letter-spacing:-.026em}
body.single-product .tk-woocommerce-main div.product .summary .price{font-size:31px!important;font-weight:900!important;line-height:1.2;margin:8px 0 12px!important}
body.single-product .tk-woocommerce-main div.product .summary .woocommerce-product-details__short-description{font-size:13px;line-height:1.48;color:#464d58;margin:8px 0}
body.single-product .tk-woocommerce-main div.product .summary .stock{font-size:13px;font-weight:800;color:#009127;margin:8px 0 10px}
/* Native simple-product forms: quantity first; two equal-width purchase CTAs. */
body.single-product .tk-woocommerce-main div.product .summary form.cart:not(.variations_form){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 12px!important;align-items:stretch!important;margin:13px 0 11px!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart:not(.variations_form)>.quantity{grid-column:1/-1;grid-row:1;justify-self:start;margin:0!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart:not(.variations_form)>.single_add_to_cart_button{grid-column:1;grid-row:2;width:100%!important;margin:0!important;min-width:0!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart:not(.variations_form)>.tk-buy-now{grid-column:2;grid-row:2;width:100%!important;margin:0!important;min-width:0!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart.variations_form{display:block!important;margin-top:12px!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart.variations_form .variations{display:table;width:100%;margin-bottom:12px}
body.single-product .tk-woocommerce-main div.product .summary form.cart.variations_form .single_variation_wrap{width:100%}
body.single-product .tk-woocommerce-main div.product .summary form.cart.variations_form .woocommerce-variation-add-to-cart{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px 12px!important;align-items:stretch}
body.single-product .tk-woocommerce-main div.product .summary form.cart.variations_form .woocommerce-variation-add-to-cart>.quantity{grid-column:1/-1;grid-row:1;justify-self:start;margin:0!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart.variations_form .woocommerce-variation-add-to-cart>.single_add_to_cart_button{grid-column:1;grid-row:2;min-width:0!important;margin:0!important;width:100%!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart.variations_form .woocommerce-variation-add-to-cart>.tk-buy-now{grid-column:2;grid-row:2;min-width:0!important;margin:0!important;width:100%!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart button.single_add_to_cart_button,body.single-product .tk-woocommerce-main div.product .summary form.cart button.tk-buy-now{display:inline-flex;justify-content:center;align-items:center;gap:8px;height:47px;min-height:47px;padding:9px 12px!important;border-radius:5px;flex:none!important;font-size:14px;font-weight:800;line-height:1.1;text-align:center}
body.single-product .tk-woocommerce-main div.product .summary form.cart button.single_add_to_cart_button{background:var(--tk-v114-red)!important;color:#fff!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart button.tk-buy-now{background:#fff!important;color:#15171b!important;border:1px solid var(--tk-v114-red)!important}
body.single-product .tk-woocommerce-main div.product .summary form.cart button.tk-buy-now .tk-icon{color:var(--tk-v114-red)}
body.single-product .tk-woocommerce-main div.product .summary .tk-favorite-single{display:inline-flex;font-size:12px;padding-left:0;margin:6px 0 12px}
body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0;padding:12px 14px!important;background:#f2f4f7;border-radius:7px;border:0;margin:11px 0 12px}
body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances>div{display:flex!important;flex-direction:row!important;justify-content:center!important;gap:11px!important;align-items:center!important;min-width:0;padding:2px 9px;text-align:left!important;border:0}
body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances>div+div{border-left:1px solid #cbd1d9!important}
body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances .tk-icon{color:#1d2631;flex:none}
body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances span{display:flex;flex-direction:column;gap:4px;min-width:0}
body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances strong{font-size:12px;line-height:1.1;color:#17181c}
body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances small{font-size:11px;line-height:1.2;color:#4b5260}
body.single-product .tk-woocommerce-main div.product .woocommerce-tabs{grid-column:1/-1;margin:3px 0 19px}
body.single-product .tk-woocommerce-main div.product .woocommerce-tabs ul.tabs{display:flex;min-width:0;overflow:hidden;border-radius:7px 7px 0 0;background:#f4f5f7}
body.single-product .tk-woocommerce-main div.product .woocommerce-tabs ul.tabs li{flex:1 1 0;min-width:0}
body.single-product .tk-woocommerce-main div.product .woocommerce-tabs ul.tabs li a{font-size:14px;font-weight:800}

@media(max-width:980px){
 body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout,body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout{grid-template-columns:minmax(0,1fr) 305px!important;gap:17px!important}
 .woocommerce-cart .tk-order-page-header .tk-checkout-steps,.woocommerce-checkout .tk-order-page-header .tk-checkout-steps{width:calc(100% - 322px)!important}
 body.single-product .tk-woocommerce-main div.product{column-gap:20px}
 body.single-product .tk-woocommerce-main div.product div.images .flex-viewport,body.single-product .tk-woocommerce-main div.product div.images .woocommerce-product-gallery__image>a,body.single-product .tk-woocommerce-main div.product div.images .woocommerce-product-gallery__image img{height:380px!important;max-height:380px!important}
 body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances{padding:12px 7px!important}
 body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances>div{padding:2px 5px;gap:7px!important}
}
@media(max-width:780px){
 body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout,body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout{display:block!important;width:100%!important}
 body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout > .wc-block-cart__main,body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout > .wc-block-components-main{width:100%!important;max-width:none!important;padding:13px 12px!important;margin-bottom:15px!important}
 body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout > .wc-block-cart__sidebar,body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout > .wc-block-components-sidebar{width:100%!important;max-width:none!important;margin-top:14px!important;padding:16px!important}
 body.woocommerce-checkout .wc-block-checkout .wc-block-components-main{width:100%!important;margin:0 0 20px!important}
 body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar{width:100%!important;padding:16px!important}
 .woocommerce-cart .tk-order-page-header .tk-checkout-steps,.woocommerce-checkout .tk-order-page-header .tk-checkout-steps{width:100%!important;max-width:100%!important}
 body.single-product .tk-woocommerce-main div.product{display:block!important}
 body.single-product .tk-woocommerce-main div.product div.images,body.single-product .tk-woocommerce-main div.product div.summary{display:block!important;width:100%!important;margin-bottom:18px!important}
 body.single-product .tk-woocommerce-main div.product div.images .flex-viewport,body.single-product .tk-woocommerce-main div.product div.images .woocommerce-product-gallery__image>a,body.single-product .tk-woocommerce-main div.product div.images .woocommerce-product-gallery__image img{height:min(78vw,470px)!important;max-height:min(78vw,470px)!important}
 body.single-product .tk-woocommerce-main div.product .summary .product_title{font-size:24px!important}
 body.single-product .tk-woocommerce-main div.product .woocommerce-tabs ul.tabs li a{font-size:12px!important}
}
@media(max-width:480px){
 .woocommerce-cart .tk-order-page-header h1,.woocommerce-checkout .tk-order-page-header h1{font-size:24px}
 .woocommerce-cart .tk-order-page-header,.woocommerce-checkout .tk-order-page-header{margin-top:4px!important}
 .tk-order-page-header .tk-checkout-step{font-size:10px}
 .woocommerce-cart .wc-block-cart-items__row td{padding:10px 5px!important}
 .woocommerce-cart .wc-block-cart-item__image{width:76px;min-width:64px}
 .woocommerce-cart .wc-block-cart-item__image img{max-width:80px!important;max-height:90px!important}
 body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step{padding:14px 11px!important}
 body.woocommerce-checkout .wc-block-checkout .wc-block-components-checkout-step__title{font-size:18px!important}
 body.single-product .tk-woocommerce-main div.product .summary form.cart button.single_add_to_cart_button,body.single-product .tk-woocommerce-main div.product .summary form.cart button.tk-buy-now{font-size:12px;padding-inline:7px!important}
 body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances strong{font-size:11px}
 body.single-product .tk-woocommerce-main div.product .summary .tk-product-assurances small{font-size:10px}
}
