/* TUKO product detail refresh — 22 September 2026. Scoped to product pages. */
body.template-12.type-detail .p-detail{max-width:1180px;margin:0 auto}
body.template-12.type-detail .p-detail-inner{padding:26px 0 48px!important;gap:44px;align-items:flex-start}
body.template-12.type-detail .p-data-wrapper,body.template-12.type-detail .p-image-wrapper{padding:0!important;min-width:0}
body.template-12.type-detail .p-image{margin:0!important}
body.template-12.type-detail .p-main-image{display:block;background:#f1ebe4;border-radius:18px!important;overflow:hidden}
body.template-12.type-detail .p-main-image img{width:100%;height:auto;max-height:580px;object-fit:contain;border-radius:18px!important}
body.template-12.type-detail .p-detail-inner-header h1{font:400 clamp(28px,3vw,40px)/1.2 Georgia,serif!important;letter-spacing:-.025em;margin:0!important;color:#513e33}
body.template-12.type-detail .p-detail-inner-header{margin:0 0 24px!important}
body.template-12.type-detail .tuko-detail-kicker{font:11px/1.5 Arial,sans-serif;letter-spacing:.13em;color:#92702d;margin:0 0 14px}
body.template-12.type-detail .p-detail-inner.tuko-detail-layout{display:grid!important;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:48px;row-gap:0}
body.template-12.type-detail .tuko-detail-layout>.p-detail-inner-header{grid-column:2;grid-row:1}
body.template-12.type-detail .tuko-detail-layout>.p-image-wrapper{grid-column:1;grid-row:1/3;width:100%!important}
body.template-12.type-detail .tuko-detail-layout>.p-data-wrapper{grid-column:2;grid-row:2;width:100%!important}
body.template-12.type-detail .p-basic-info-block,body.template-12.type-detail .p-to-cart-block,body.template-12.type-detail .p-param-block{border:0!important;background:transparent!important;padding:0!important}
body.template-12.type-detail .p-basic-info-block{margin:16px 0!important;gap:12px;flex-wrap:wrap}
body.template-12.type-detail .p-basic-info-block .block:empty{display:none}
body.template-12.type-detail .p-to-cart-block{margin:18px 0 0!important;gap:14px}
body.template-12.type-detail .p-final-price-wrapper{margin:0 0 20px;padding:0!important}
body.template-12.type-detail .price-final{font:600 30px/1.3 Arial,sans-serif!important;color:#513e33}
body.template-12.type-detail .availability-label{font-size:14px;line-height:1.5}
body.template-12.type-detail .p-detail:has(.availability-label) .sold-out{display:none!important}
body.template-12.type-detail .p-variants-block:not(:has(select,input,button)){display:none!important}
body.template-12.type-detail .p-add-to-cart-wrapper{width:100%}
body.template-12.type-detail .p-param-block{margin:26px 0 0!important;padding-top:20px!important;border-top:1px solid #e7ded5!important;display:flex;flex-direction:column;gap:14px}
body.template-12.type-detail .p-param-block .social-buttons-wrapper{float:none;width:100%;text-align:left}
body.template-12.type-detail .p-param-block .detail-parameters-wrapper{width:100%;padding:0}
body.template-12.type-detail .tuko-detail-category,body.template-12.type-detail .link-icon.print{display:none!important}
body.template-12.type-detail .link-icons{display:flex;flex-wrap:wrap;gap:20px;justify-content:flex-start}
body.template-12.type-detail .link-icons .link-icon{margin:0;padding-top:8px;padding-bottom:8px;font-size:14px}
body.template-12.type-detail .p-code{display:block!important;font-size:12px;font-weight:400;color:#85796e}
body.template-12.type-detail .detail-parameters{margin:0}
body.template-12.type-detail .detail-parameters th,body.template-12.type-detail .detail-parameters td{border:0;padding:8px 12px 8px 0}
body.template-12.type-detail .p-variants-block select{min-height:48px;border:1px solid #cdbdab;border-radius:8px;background-color:#fffdf9;color:#513e33;font-size:16px;max-width:100%}
body.template-12.type-detail #product-detail-form .btn-conversion{min-height:50px;padding:13px 28px!important;font-size:16px!important;letter-spacing:0;border-radius:9px!important}
body.template-12.type-detail .p-thumbnail{width:76px;height:88px;border-radius:10px!important}
body.template-12.type-detail .tuko-photo-pending{aspect-ratio:4/5;max-height:520px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;pointer-events:none;text-decoration:none}
body.template-12.type-detail .tuko-photo-pending img{display:none!important}
body.template-12.type-detail .tuko-photo-pending:before{content:'TUKO';font:36px/1.2 Georgia,serif;letter-spacing:.15em;color:#b7a38a}
body.template-12.type-detail .tuko-photo-pending:after{content:'Fotografii připravujeme';font:14px/1.5 Arial,sans-serif;color:#85796e}
body.template-12.type-detail #p-detail-tabs{gap:20px;flex-wrap:wrap;padding-bottom:0}
body.template-12.type-detail #p-detail-tabs .shp-tab-link{border:0!important;border-radius:0!important;background:transparent!important;color:#756b63!important;padding:12px 0!important}
body.template-12.type-detail #p-detail-tabs .active .shp-tab-link{color:#513e33!important;border-bottom:2px solid #92702d!important}
/* Override the older gallery script's injected rules without changing its controls. */
body.template-12.type-detail #content .p-main-image{aspect-ratio:4/5;max-height:580px;border-radius:18px!important}
body.template-12.type-detail #content .p-main-image img{max-height:580px!important;border-radius:18px!important}
body.template-12.type-detail #content .p-main-image.tuko-photo-pending{max-height:520px;aspect-ratio:4/5}
body.template-12.type-detail #content .p-main-image.tuko-photo-pending img{display:none!important}
body.template-12.type-detail #product-detail-form{display:flex;flex-direction:column;align-items:stretch}
body.template-12.type-detail #product-detail-form>.p-final-price-wrapper,body.template-12.type-detail #product-detail-form>.p-basic-info-block{float:none;width:100%}
body.template-12.type-detail .p-param-block .link-icons{flex-direction:row!important}
body.template-12.type-detail .p-param-block .p-code{order:5}
body.template-12.type-detail .p-param-block .detail-parameters-wrapper:not(:has(tr:not(.tuko-detail-category):not(.sold-out))){display:none}
@media(max-width:767px){
 body.template-12.type-detail .p-detail-inner,body.template-12.type-detail .p-detail-inner.tuko-detail-layout{display:flex!important;flex-direction:column;gap:0;padding:12px 0 32px!important}
 body.template-12.type-detail .tuko-detail-layout>.p-detail-inner-header{order:0;width:100%;margin-bottom:20px!important}
 body.template-12.type-detail .tuko-detail-layout>.p-image-wrapper{order:1;margin-bottom:24px}
 body.template-12.type-detail .tuko-detail-layout>.p-data-wrapper{order:2}
 body.template-12.type-detail .tuko-detail-kicker{font-size:10px;margin-bottom:9px}
 body.template-12.type-detail .p-main-image img{max-height:430px;max-height:55svh;width:100%;object-fit:contain}
 body.template-12.type-detail #content .p-main-image,body.template-12.type-detail #content .p-main-image img{max-height:430px!important;max-height:55svh!important}
 body.template-12.type-detail #content .p-main-image.tuko-photo-pending{aspect-ratio:5/4;max-height:300px!important}
 body.template-12.type-detail .tuko-photo-pending{aspect-ratio:5/4;max-height:300px}
 body.template-12.type-detail .price-final{font-size:26px!important}
 body.template-12.type-detail .p-param-block{margin-top:20px!important}
 body.template-12.type-detail #product-detail-form .btn-conversion{min-height:50px;width:100%}
}
/* Compact purchase controls; native quantity and cart behavior retained. */
body.template-12.type-detail #product-detail-form>.p-final-price-wrapper{margin:0 0 5px!important}
body.template-12.type-detail #product-detail-form>.p-basic-info-block{margin:0 0 18px!important;display:flex;gap:8px;padding:0!important}
body.template-12.type-detail #product-detail-form .p-basic-info-block .block{width:auto;flex:none;margin:0;padding:0}
body.template-12.type-detail #product-detail-form .p-basic-info-block .block:not(:has(*)):not(:has(.availability-label)){display:none}
body.template-12.type-detail #product-detail-form .availability-label{font-size:13px!important;line-height:20px;font-weight:500}
body.template-12.type-detail #product-detail-form .availability-label:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:7px;vertical-align:2px}
body.template-12.type-detail #product-detail-form .p-to-cart-block{width:100%;margin:0!important;display:block}
body.template-12.type-detail #product-detail-form .add-to-cart{display:flex!important;align-items:stretch;gap:12px;width:100%;margin:0}
body.template-12.type-detail #product-detail-form .quantity{position:relative;display:block;flex:0 0 124px;width:124px;height:54px!important;min-height:54px;margin:0!important;padding:0!important;overflow:hidden;border:1px solid #d7c8ba!important;border-radius:11px!important;background:#f5f0e9!important}
body.template-12.type-detail #product-detail-form .quantity label{display:block;margin:0;width:100%;height:100%}
body.template-12.type-detail #product-detail-form .quantity input{width:100%!important;height:52px!important;padding:0 40px!important;border:0!important;background:transparent!important;text-align:center;font-size:16px;color:#513e33;box-shadow:none;appearance:textfield;-moz-appearance:textfield}
body.template-12.type-detail #product-detail-form .quantity input::-webkit-inner-spin-button,body.template-12.type-detail #product-detail-form .quantity input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
body.template-12.type-detail #product-detail-form .quantity button{position:absolute;top:0!important;bottom:auto!important;width:40px!important;height:52px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#513e33!important;font-size:20px!important;line-height:52px!important;box-shadow:none!important;transform:none!important}
body.template-12.type-detail #product-detail-form .quantity .decrease{left:0!important;right:auto!important}
body.template-12.type-detail #product-detail-form .quantity .increase{right:0!important;left:auto!important}
body.template-12.type-detail #product-detail-form .add-to-cart-button{flex:1;min-width:0;width:auto!important;height:54px;min-height:54px!important;margin:0!important;padding:12px 16px!important;border-radius:11px!important;background:#513e33!important;border:1px solid #513e33!important;color:#fffdf9!important;font-size:16px!important;line-height:26px!important;text-transform:none!important;box-shadow:none!important}
body.template-12.type-detail #product-detail-form .quantity button:focus-visible,body.template-12.type-detail #product-detail-form .add-to-cart-button:focus-visible{outline:2px solid #92702d;outline-offset:-3px}
@media(hover:hover){body.template-12.type-detail #product-detail-form .quantity button:hover{background:#eae1d7!important}body.template-12.type-detail #product-detail-form .add-to-cart-button:hover{background:#654d3e!important}}
@media(max-width:380px){body.template-12.type-detail #product-detail-form .quantity{flex-basis:112px;width:112px}body.template-12.type-detail #product-detail-form .add-to-cart{gap:8px}}
