/* Mert Karataş Shop v1.6.40 ---------------------------------------------
   Stable header geometry, legible light PDP rails, hardened preorder state,
   true MERTED Signal Light and high-contrast LAB assembly guides.
----------------------------------------------------------------------------- */

/* 1. Header: never change the sticky element's occupied height on scroll.
   The previous 74 -> 62px mutation could feed back into scrollY near the
   compact threshold and make the logo appear to pulse. */
.mks-header,.mks-header.is-compact{height:74px!important}
.mks-brand--logo .mks-brand__logo,.mks-header.is-compact .mks-brand__logo{
  display:block!important;width:auto!important;height:auto!important;max-height:38px!important;
  transform:none!important;transition:none!important;animation:none!important
}
@media(max-width:760px){.mks-header,.mks-header.is-compact{height:64px!important}.mks-brand--logo .mks-brand__logo,.mks-header.is-compact .mks-brand__logo{max-height:36px!important}}

/* 2. Product technical rail: reserve a clean lane above the gallery. */
.woocommerce div.product div.images{padding-top:2.45rem!important}
.mks-product-stage-marks--1640{
  left:1.45rem!important;right:1.45rem!important;top:.72rem!important;height:22px!important;
  display:grid!important;grid-template-columns:auto minmax(42px,1fr) auto!important;gap:.85rem!important;
  align-items:center!important;font-size:.45rem!important;letter-spacing:.15em!important;color:#9ba8b9!important
}
.mks-product-stage-marks--1640>span{display:flex;align-items:center;gap:.46rem;white-space:nowrap}
.mks-product-stage-marks--1640>span b,.mks-product-stage-marks--1640>span strong,.mks-product-stage-marks--1640>span em{font:900 .45rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;font-style:normal;letter-spacing:.16em}
.mks-product-stage-marks--1640>span b{color:var(--gold)}
.mks-product-stage-marks--1640>span em{color:#59677b}
.mks-product-stage-marks--1640>span strong{color:#9aa7ba}
.mks-product-stage-marks--1640>i{width:100%!important;height:1px!important;background:linear-gradient(90deg,rgba(210,174,103,.62),rgba(71,222,245,.28),transparent)!important}
.mks-product-stage-marks--1640>mark{margin:0!important;padding:0!important;background:transparent!important;color:#718095!important;font:900 .44rem/1 ui-monospace,SFMono-Regular,Menlo,monospace!important;letter-spacing:.17em!important;white-space:nowrap}
html[data-mks-theme="light"] .mks-product-stage-marks--1640{color:#545e6b!important}
html[data-mks-theme="light"] .mks-product-stage-marks--1640>span b{color:var(--mks-light-accent,#A64B63)!important}
html[data-mks-theme="light"] .mks-product-stage-marks--1640>span em{color:#8a7580!important}
html[data-mks-theme="light"] .mks-product-stage-marks--1640>span strong{color:#56616e!important}
html[data-mks-theme="light"] .mks-product-stage-marks--1640>mark{color:#8D4057!important}
html[data-mks-theme="light"] .mks-product-stage-marks--1640>i{background:linear-gradient(90deg,var(--mks-light-accent,#A64B63),rgba(27,145,169,.75),rgba(27,145,169,.08))!important}

/* Assurance is important trust copy, not decorative micro-text. */
.mks-product-assurance{gap:.85rem!important;margin-top:1rem!important;font-size:.59rem!important;font-weight:900!important;letter-spacing:.115em!important;line-height:1.3!important}
.mks-product-assurance i{flex:0 0 42px!important;width:42px!important}
html[data-mks-theme="light"] .mks-product-assurance{color:#59626f!important}
html[data-mks-theme="light"] .mks-product-assurance span{color:#59626f!important;opacity:1!important}
html[data-mks-theme="light"] .mks-product-assurance i{background:linear-gradient(90deg,var(--mks-light-accent,#A64B63),#2AA9C0)!important;opacity:.9!important}

/* 3. Pre-order is a distinct commerce mode. It also works when WooCommerce's
   native backorder state is used rather than only the MK checkbox. */
body.mks-product-state--preorder .woocommerce div.product div.summary{
  position:relative!important;border-color:rgba(210,174,103,.34)!important;
  box-shadow:inset 3px 0 0 rgba(210,174,103,.68),0 18px 52px rgba(0,0,0,.1)!important
}
body.mks-product-state--preorder .mks-stock-signal--preorder{color:#f2d38e!important}
body.mks-product-state--preorder .mks-stock-signal--preorder i{background:linear-gradient(90deg,#f0c86d,#ff55b7)!important;box-shadow:0 0 13px rgba(240,200,109,.42)!important}
.mks-preorder-reserve{position:relative!important;margin:1rem 0 .25rem!important;border-width:1px!important;border-color:rgba(240,200,109,.38)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(210,174,103,.12),rgba(255,85,183,.055) 54%,rgba(71,222,245,.045))!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)!important}
.mks-preorder-reserve::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(#f0c86d,#ff55b7,#47def5)}
.mks-preorder-reserve>header{min-height:44px!important;padding:.72rem .9rem .68rem 1rem!important;background:rgba(3,8,18,.15)!important}
.mks-preorder-reserve>header span{font-size:.5rem!important;color:#f2d38e!important}.mks-preorder-reserve>header b{font-size:.43rem!important;color:#8f9cb0!important}
.mks-preorder-reserve__lead{padding:1rem 1rem .9rem!important}.mks-preorder-reserve__lead strong{font-size:clamp(1.35rem,1.9vw,1.75rem)!important}.mks-preorder-reserve__lead p{font-size:.73rem!important}
.mks-preorder-reserve dl>div{padding:.82rem 1rem!important}.mks-preorder-reserve dt{font-size:.43rem!important}.mks-preorder-reserve dd{font-size:.7rem!important}
body.mks-product-state--preorder .woocommerce div.product form.cart .button{position:relative!important;overflow:hidden!important;background:linear-gradient(90deg,#d2ae67,#e7c478)!important;color:#071225!important;border-color:#e5c575!important;box-shadow:0 9px 24px rgba(210,174,103,.14)!important}
body.mks-product-state--preorder .woocommerce div.product form.cart .button::after{content:"RESERVE";margin-left:.55rem;font-size:.44rem;letter-spacing:.13em;opacity:.62}
html[data-mks-theme="light"] body.mks-product-state--preorder .woocommerce div.product div.summary{border-color:color-mix(in srgb,var(--mks-light-accent,#A64B63) 30%,#cfc7bd)!important;box-shadow:inset 3px 0 0 var(--mks-light-accent,#A64B63),0 18px 48px rgba(46,39,43,.07)!important}
html[data-mks-theme="light"] .mks-preorder-reserve{border-color:color-mix(in srgb,var(--mks-light-accent,#A64B63) 34%,#d7cfc5)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--mks-light-accent,#A64B63) 10%,#fffaf5),#fffaf5 56%,rgba(49,175,199,.07))!important;box-shadow:0 10px 30px rgba(75,53,62,.055)!important}
html[data-mks-theme="light"] .mks-preorder-reserve>header{background:color-mix(in srgb,var(--mks-light-accent,#A64B63) 5%,#fffaf5)!important}
html[data-mks-theme="light"] .mks-preorder-reserve>header span,html[data-mks-theme="light"] .mks-preorder-reserve dd{color:var(--mks-light-accent,#A64B63)!important}
html[data-mks-theme="light"] body.mks-product-state--preorder .woocommerce div.product form.cart .button{background:var(--mks-light-button-bg,var(--mks-light-accent,#A64B63))!important;color:var(--mks-light-button-text,#fff)!important;border-color:var(--mks-light-button-bg,var(--mks-light-accent,#A64B63))!important}

/* 4. MERTED SIGNAL LIGHT: not generic cream. Applies to both /merted/ and a
   MERTED product detail. Media remains a dark signal island; commerce chrome
   becomes cool pearl with cyan/pink routing marks. */
html[data-mks-theme="light"] body.mks-merted-archive,
html[data-mks-theme="light"] body.mks-merted-product,
html[data-mks-theme="light"] body.mks-product-merted{
  --merted-light-bg:#E9EEF1;--merted-light-paper:#F5F7F7;--merted-light-ink:#151B24;
  --merted-light-cyan:#168EA7;--merted-light-pink:#C73D82
}
html[data-mks-theme="light"] body.mks-merted-archive .mks-main,
html[data-mks-theme="light"] body.mks-merted-product .mks-main,
html[data-mks-theme="light"] body.mks-product-merted .mks-main{
  background:radial-gradient(circle at 88% 9%,rgba(199,61,130,.12),transparent 23%),radial-gradient(circle at 11% 34%,rgba(22,142,167,.115),transparent 27%),linear-gradient(rgba(33,113,134,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(33,113,134,.038) 1px,transparent 1px),linear-gradient(180deg,#EEF2F3,#E6ECEF 58%,#F0F1EF)!important;
  background-size:auto,auto,54px 54px,54px 54px,auto!important
}
html[data-mks-theme="light"] body.mks-merted-archive .mks-header,
html[data-mks-theme="light"] body.mks-merted-product .mks-header,
html[data-mks-theme="light"] body.mks-product-merted .mks-header{
  background:rgba(238,243,244,.94)!important;border-bottom-color:rgba(22,142,167,.18)!important;box-shadow:inset 0 -1px 0 rgba(199,61,130,.055)!important
}
html[data-mks-theme="light"] body.mks-merted-archive .mks-header::after,
html[data-mks-theme="light"] body.mks-merted-product .mks-header::after,
html[data-mks-theme="light"] body.mks-product-merted .mks-header::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent 15%,rgba(22,142,167,.5),rgba(199,61,130,.38),transparent 85%);pointer-events:none}
html[data-mks-theme="light"] body.mks-merted-archive .mks-preview-bar{background:linear-gradient(90deg,#E3EBED,#F0E8EC,#E4ECEE)!important;color:#6B5361!important}
html[data-mks-theme="light"] body.mks-merted-archive .mks-catalogue-shell{position:relative}
html[data-mks-theme="light"] body.mks-merted-archive .mks-catalogue-shell::before{content:"SIGNAL / LIGHT";position:absolute;right:0;top:-1.6rem;color:rgba(22,142,167,.6);font:900 .43rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.18em}
html[data-mks-theme="light"] body.mks-merted-archive .mks-filters{background:linear-gradient(150deg,rgba(248,250,250,.94),rgba(229,237,240,.94))!important;border-color:rgba(22,142,167,.24)!important;box-shadow:inset 3px 0 0 rgba(22,142,167,.55),0 16px 40px rgba(26,49,59,.06)!important}
html[data-mks-theme="light"] body.mks-merted-archive .mks-filter-group{border-color:rgba(22,142,167,.12)!important}
html[data-mks-theme="light"] body.mks-merted-archive .mks-filter-group summary{color:#26303A!important}
html[data-mks-theme="light"] body.mks-merted-archive .mks-product-card{background:linear-gradient(150deg,#FAFBFA,#EAF0F2)!important;border-color:rgba(22,142,167,.22)!important;box-shadow:0 12px 34px rgba(28,45,53,.065),inset 0 0 0 1px rgba(255,255,255,.65)!important}
html[data-mks-theme="light"] body.mks-merted-archive .mks-product-card:hover{border-color:rgba(199,61,130,.32)!important;box-shadow:0 20px 46px rgba(35,50,57,.1),inset 0 0 0 1px rgba(255,255,255,.7)!important}

html[data-mks-theme="light"] body.mks-merted-product .mks-commerce--merted,
html[data-mks-theme="light"] body.mks-product-merted .mks-commerce--merted{position:relative}
html[data-mks-theme="light"] body.mks-merted-product .mks-commerce--merted::before,
html[data-mks-theme="light"] body.mks-product-merted .mks-commerce--merted::before{content:"MERTED / SIGNAL LIGHT";display:block;margin:0 0 .55rem;color:rgba(22,142,167,.72);font:900 .44rem/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.19em}
html[data-mks-theme="light"] body.mks-merted-product .woocommerce div.product,
html[data-mks-theme="light"] body.mks-product-merted .woocommerce div.product{background:radial-gradient(circle at 84% 8%,rgba(199,61,130,.10),transparent 24%),radial-gradient(circle at 10% 76%,rgba(22,142,167,.09),transparent 25%),linear-gradient(135deg,#E8EEF1,#F3F1F1)!important;border-color:rgba(22,142,167,.18)!important;box-shadow:0 22px 64px rgba(32,48,57,.08)!important}
html[data-mks-theme="light"] body.mks-merted-product .woocommerce div.product::before,
html[data-mks-theme="light"] body.mks-product-merted .woocommerce div.product::before{opacity:1!important;background:linear-gradient(rgba(22,142,167,.052) 1px,transparent 1px),linear-gradient(90deg,rgba(22,142,167,.045) 1px,transparent 1px)!important;background-size:52px 52px!important;mask-image:linear-gradient(90deg,#000,rgba(0,0,0,.38) 76%,transparent)!important}
html[data-mks-theme="light"] body.mks-merted-product .woocommerce div.product div.summary,
html[data-mks-theme="light"] body.mks-product-merted .woocommerce div.product div.summary{background:linear-gradient(145deg,rgba(250,252,252,.94),rgba(237,242,244,.9))!important;border-color:rgba(22,142,167,.18)!important;box-shadow:inset 3px 0 0 rgba(199,61,130,.55)!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-product-kicker,
html[data-mks-theme="light"] body.mks-product-merted .mks-product-kicker{color:#168EA7!important;text-shadow:1px 0 rgba(199,61,130,.28)!important}
html[data-mks-theme="light"] body.mks-merted-product .woocommerce div.product .product_title,
html[data-mks-theme="light"] body.mks-product-merted .woocommerce div.product .product_title{color:#151B24!important;text-shadow:2px 0 rgba(199,61,130,.20),-2px 0 rgba(22,142,167,.20)!important}
html[data-mks-theme="light"] body.mks-merted-product .woocommerce div.product p.price,
html[data-mks-theme="light"] body.mks-merted-product .woocommerce div.product span.price,
html[data-mks-theme="light"] body.mks-product-merted .woocommerce div.product p.price,
html[data-mks-theme="light"] body.mks-product-merted .woocommerce div.product span.price{color:#B63A77!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-stock-signal i,
html[data-mks-theme="light"] body.mks-product-merted .mks-stock-signal i{background:#168EA7!important;box-shadow:0 0 0 4px rgba(22,142,167,.08),0 0 10px rgba(22,142,167,.24)!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-product-assurance,
html[data-mks-theme="light"] body.mks-product-merted .mks-product-assurance{color:#45545F!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-product-assurance span,
html[data-mks-theme="light"] body.mks-product-merted .mks-product-assurance span{color:#45545F!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-product-assurance i,
html[data-mks-theme="light"] body.mks-product-merted .mks-product-assurance i{background:linear-gradient(90deg,#C73D82,#168EA7)!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-product-stage-marks--1640>span b,
html[data-mks-theme="light"] body.mks-product-merted .mks-product-stage-marks--1640>span b{color:#C73D82!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-product-stage-marks--1640>mark,
html[data-mks-theme="light"] body.mks-product-merted .mks-product-stage-marks--1640>mark{color:#168EA7!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-product-stage-marks--1640>i,
html[data-mks-theme="light"] body.mks-product-merted .mks-product-stage-marks--1640>i{background:linear-gradient(90deg,#C73D82,#168EA7,rgba(22,142,167,.06))!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-buy-option__choices span,
html[data-mks-theme="light"] body.mks-product-merted .mks-buy-option__choices span{background:rgba(250,252,252,.8)!important;border-color:rgba(22,142,167,.18)!important;color:#1D2731!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-buy-option__choices input:checked+span,
html[data-mks-theme="light"] body.mks-product-merted .mks-buy-option__choices input:checked+span{border-color:#C73D82!important;background:rgba(199,61,130,.075)!important;color:#A42F68!important;box-shadow:inset 0 0 0 1px rgba(22,142,167,.12)!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-product-manifest,
html[data-mks-theme="light"] body.mks-product-merted .mks-product-manifest{border-color:rgba(22,142,167,.16)!important}
html[data-mks-theme="light"] body.mks-merted-product .mks-product-manifest div,
html[data-mks-theme="light"] body.mks-product-merted .mks-product-manifest div{border-color:rgba(22,142,167,.14)!important}

/* 5. LAB: force the construction route to read in light mode. The lines are
   deliberately thicker/darker than the old decorative blueprint. */
html[data-mks-theme="light"] .mks-lab-assembly{opacity:1!important;filter:none!important}
html[data-mks-theme="light"] .mks-lab-assembly>span{color:#167C95!important;opacity:1!important;font-weight:950!important}
html[data-mks-theme="light"] .mks-lab-assembly>div{gap:.72rem!important}
html[data-mks-theme="light"] .mks-lab-assembly i{height:3px!important;min-width:64px!important;background:linear-gradient(90deg,#A64B63 0 48%,#168EA7 72%,#168EA7 100%)!important;box-shadow:0 1px 0 rgba(255,255,255,.7),0 0 0 1px rgba(93,65,76,.06),0 2px 7px rgba(46,71,81,.12)!important;opacity:1!important}
html[data-mks-theme="light"] .mks-lab-assembly b{padding:.36rem .5rem!important;border:1px solid rgba(35,50,64,.24)!important;background:#FCFAF6!important;color:#303945!important;box-shadow:0 4px 14px rgba(38,48,57,.09)!important;opacity:1!important}
html[data-mks-theme="light"] .mks-lab-assembly b:nth-of-type(2){color:#9E3E58!important;border-color:rgba(166,75,99,.42)!important;background:#FFF7F8!important}
html[data-mks-theme="light"] .mks-lab-assembly b:nth-of-type(3){color:#126F85!important;border-color:rgba(22,142,167,.42)!important;background:#F4FCFD!important}
html[data-mks-theme="light"] .mks-lab-assembly em:nth-of-type(1),html[data-mks-theme="light"] .mks-lab-assembly em:nth-of-type(2){border-color:rgba(22,142,167,.72)!important;opacity:1!important}
html[data-mks-theme="light"] .mks-lab-assembly em:nth-of-type(3),html[data-mks-theme="light"] .mks-lab-assembly em:nth-of-type(4){border-color:rgba(166,75,99,.68)!important;opacity:1!important}
html[data-mks-theme="light"] .mks-lab-archive-hero.is-motion-expanded .mks-lab-assembly{opacity:1!important}

@media(max-width:760px){
  .woocommerce div.product div.images{padding-top:2.25rem!important}
  .mks-product-stage-marks--1640{left:.85rem!important;right:.85rem!important;top:.65rem!important;grid-template-columns:auto 1fr auto!important;gap:.5rem!important}
  .mks-product-stage-marks--1640>span b,.mks-product-stage-marks--1640>span strong,.mks-product-stage-marks--1640>span em,.mks-product-stage-marks--1640>mark{font-size:.39rem!important}
  .mks-product-assurance{font-size:.53rem!important;gap:.55rem!important}.mks-product-assurance i{flex-basis:28px!important;width:28px!important}
  .mks-preorder-reserve dl{grid-template-columns:1fr!important}
}
