/* Tamkit 5.7 — shared layout, interaction and responsive refinements. */
:root{--tk-header-height:80px;--tk-space:clamp(18px,3vw,40px)}
[hidden]{display:none!important}
html{scroll-padding-top:calc(var(--tk-header-height) + 20px)}
body{overflow-wrap:break-word}
img,video{max-width:100%}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button,.button{min-height:44px}
button{text-wrap:pretty}
input,select,textarea{line-height:1.5}
input[type=checkbox],input[type=radio]{padding:0;flex-shrink:0}
input[type=file]{overflow:hidden;max-width:100%}
a.primary,a.secondary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:12px 17px;border:1px solid var(--line);border-radius:11px;font-size:14px;line-height:1.4;font-weight:600;text-decoration:none}
a.primary{border-color:var(--navy);color:white}
a.secondary:hover{border-color:#7f929e;background:#f8fafb}
button:disabled:hover{cursor:not-allowed}
main:focus,#catalog-products:focus{outline:none}
.tk-skip-link{position:fixed;top:10px;left:12px;transform:translateY(-200%);z-index:2000;padding:12px 20px;border-radius:10px;background:var(--lime);color:var(--navy);font-weight:700}
.tk-skip-link:focus{transform:translateY(0)}
:where(.wrap,.admin-main,.card,.form-grid,.two-columns,.co-layout,.cart-layout,.tk-workspace,.tk-result-layout)>*{min-width:0}
.form-grid,.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
label{min-width:0}
.form-grid label small{font-weight:400}
.form-grid .check{align-self:start}
.check{min-height:32px}
.prose{overflow-wrap:anywhere}
.section-title{flex-wrap:wrap}
.page-heading>div{min-width:0}
.page-heading h1{overflow-wrap:break-word;line-height:1.16}
.page-heading p:not(.eyebrow){margin-top:10px}
.top-inner{max-width:1360px;gap:24px}
.top nav{gap:24px;align-items:center}
.top nav a{min-height:44px;display:flex;align-items:center;position:relative;white-space:nowrap}
.top nav a.active:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--lime);border-radius:2px}
.header-actions{flex-shrink:0}
.header-actions button{min-height:44px}
.top .rg-location-button{max-width:190px}
.top .rg-location-button span{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand{flex-shrink:0}
.hero{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:40px;padding-top:48px}
.hero h1{font-size:clamp(34px,4.1vw,56px);overflow-wrap:normal}
.hero h1 em{display:inline}
.hero .primary,.hero-second{vertical-align:middle;margin:0 8px 8px 0}
.hero>div>p.hero-caption{font-size:13px;margin:14px 0 0;color:#5b6f7c}
.hero-note{border:0;padding:24px;background:#eaf0eb;border-radius:24px}
.hero-illustration{background:#eaf0eb}
.path{height:100%;transition:border-color .15s,box-shadow .15s}
.path:hover{box-shadow:0 6px 18px #1528380d}
.path>span{margin-top:auto}
.categories{grid-template-columns:repeat(4,minmax(0,1fr))}
.categories button{min-width:0;overflow-wrap:anywhere}
.filters{margin-top:24px;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto}
.filters input,.filters select{min-height:48px}
.filters button{min-height:48px}
.catalog-meta{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:20px;font-size:13px;color:#556b77}
.catalog-meta p{margin:0}
.product-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;margin-top:14px}
.product-card{display:flex;flex-direction:column;min-width:0;transition:border-color .15s,box-shadow .15s}
.product-card:hover{border-color:#a7b8c0;box-shadow:0 6px 22px #15283808}
.product-image{height:210px;background:#fff;padding:22px;border-bottom:1px solid #edf1f1;flex-shrink:0;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.product-info{flex:1;gap:12px}
.product-title{font-size:17px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:76px}
.product-info>.eyebrow{font-size:11px;min-height:18px;overflow-wrap:anywhere}
.product-info>strong{font-size:24px;font-variant-numeric:tabular-nums;margin-top:auto;line-height:1.35;overflow-wrap:anywhere}
.product-info>small{font-size:12px;line-height:1.6}
.product-info>.secondary{width:100%}
.catalog-pager{display:flex;justify-content:center;align-items:center;gap:20px;margin:28px 0}
.catalog-pager span{font-size:14px;color:var(--muted)}
.catalog-pager button{min-width:112px}
.catalog-empty{grid-column:1/-1;text-align:center;padding:0 0 35px}
.catalog-empty .empty{padding-bottom:20px}
.tk-empty-cart{max-width:650px;margin:20px auto 50px;text-align:center;padding:50px 32px}
.tk-empty-cart>svg{width:52px;height:52px;margin-bottom:20px;color:#617e41}
.tk-empty-cart>p{color:var(--muted);max-width:480px;margin:0 auto 28px}
.tk-empty-cart .button-row{justify-content:center}
.sticky,.co-summary,.tk-summary,.bundle-summary{top:calc(var(--tk-header-height) + 20px)}
.cart-line{align-items:center}
.cart-line b{font-size:15px;line-height:1.65}
.cart-line>.quantity{min-height:44px;text-align:center}
.cart-line .text-button{color:#526773;text-decoration:underline;text-underline-offset:3px}
.cart-layout .form-grid .rg-location-card{margin:0}
.tot-line:has(.item-thumb){display:grid;grid-template-columns:44px minmax(0,1fr);gap:6px 12px;align-items:start;padding:13px 0;border-bottom:1px solid var(--line)}
.tot-line:has(.item-thumb) .item-thumb{grid-column:1;grid-row:1/3;margin:0}
.tot-line:has(.item-thumb)>span:not(.item-thumb){grid-column:2;line-height:1.55;overflow-wrap:anywhere}
.tot-line:has(.item-thumb)>b{grid-column:2;justify-self:end}
.tot-line small{display:block;margin-top:5px;color:var(--muted)}
.tot-line>strong:last-child{font-variant-numeric:tabular-nums}
#cart-total>.primary{margin-top:16px}
#cart-total>p:last-child{margin-top:12px}
.rg-location-card>div{min-width:0}
.rg-location-card button{min-height:44px}
.rg-checks{min-inline-size:0}
.rg-checks label,.co-billing-types label{flex-direction:row}
.rg-checks label{min-height:40px}
.rg-location-dialog .rg-city-results{overscroll-behavior:contain}
.co-costs dd{white-space:normal;text-align:right}
.co-billing-types label{min-height:48px}
.co-billing-same{align-items:flex-start}
.co-method input{margin:0}
.order-list{margin-top:22px}
.order-card .section-title{margin-bottom:16px}
.order-card .section-title:last-child{margin:18px 0 0}
.order-card strong{font-size:23px}
.order-pictures .item-thumb{flex-basis:52px;width:52px;height:58px}
.order-pictures .item-thumb:not(:first-child){display:none}
.order-card>.small{margin-top:18px}
.order-progress{gap:10px}
.account-tabs{padding-bottom:5px;scrollbar-width:thin}
.account-tabs button{flex-shrink:0;font-size:14px}
.article-content .prose{font-size:16px;line-height:1.9}
.article-content .prose a{overflow-wrap:anywhere}
footer{max-width:1200px;flex-wrap:wrap;padding-bottom:max(28px,env(safe-area-inset-bottom))}
footer button,footer a{min-height:36px;display:inline-flex;align-items:center}
footer>span{white-space:nowrap}
.tk-modal-open{overflow:hidden}
#dialog{scrollbar-gutter:stable;overscroll-behavior:contain;padding-top:48px}
#dialog .close{width:44px;height:44px;min-height:44px;top:8px;right:8px;background:#f1f5f3;border:1px solid #e3e9e5;border-radius:50%;padding:0;line-height:1;z-index:2}
#dialog h2{line-height:1.28;overflow-wrap:break-word}
#dialog .specs{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 18px}
.specs dt,.specs dd{overflow-wrap:anywhere;line-height:1.6}
.specs dd{font-weight:500}
.admin-shell{grid-template-columns:230px minmax(0,1fr)}
.admin-main{min-width:0}
.admin-nav button{min-height:44px}
.admin-mobilebar{display:none}
.admin-main .metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.supplier-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px}
.supplier-grid .card{display:flex;flex-direction:column;gap:12px;min-width:0;box-shadow:none}
.supplier-grid h3{margin:0;line-height:1.4}
.supplier-grid p{font-size:13px;color:var(--muted);overflow-wrap:anywhere;margin:0}
.supplier-grid button{margin-top:auto;align-self:flex-start}
.admin-main .toolbar>label{max-width:100%;min-width:0}
.admin-main .toolbar>button{max-width:100%}
.admin-main .toolbar input{max-width:100%}
.table-scroll{max-width:100%;overscroll-behavior-x:contain;scrollbar-width:thin}
.table-scroll:focus-visible{outline-offset:-3px}
.table-scroll td{vertical-align:top;overflow-wrap:break-word;line-height:1.6}
.table-scroll input[type=checkbox]{width:19px;height:19px;accent-color:#526b36}
.table-scroll td button{min-height:36px}
.admin-tabs{gap:8px}
.admin-tabs button{min-height:44px}
.offer-row .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.commerce-periods{max-width:100%;flex-wrap:wrap}
.commerce-periods button{flex:1;min-width:0}
.commerce-card strong{line-height:1.35}
.commerce-card small,.commerce-note,.commerce-zero{color:#5f737e}
.commerce-card.main small{color:#d4e1e7}
.tk-cookie-actions button{white-space:normal;line-height:1.4}
@media(max-width:1100px){
 .top-inner{padding:12px 24px;gap:12px 22px;flex-wrap:wrap}
 .top nav{order:3;width:100%;justify-content:center;margin:0;gap:36px}
 .header-actions{margin-left:auto}
 .hero{gap:24px}
 .hero h1{font-size:clamp(34px,4.8vw,52px)}
 .hero-note{padding:20px}
 .hero-note h2{font-size:22px}
 .admin-shell{grid-template-columns:190px minmax(0,1fr)}
 .admin-main .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .commerce-detail-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:850px){
 .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
 .hero h1{font-size:36px}
 .hero>div>p:not(.eyebrow):not(.hero-caption){font-size:16px}
 .categories{grid-template-columns:repeat(3,minmax(0,1fr))}
 .cart-layout{grid-template-columns:minmax(0,1fr)}
 .cart-layout aside{position:static;margin-top:20px}
}
@media(max-width:720px){
 .top-inner{padding:10px 18px 0;gap:4px 10px}
 .brand img{width:120px}
 .header-actions{gap:6px;margin-left:auto}
 .header-actions button{padding:9px;min-width:42px}
 .header-actions button[data-action=account]>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .header-actions button[data-action=cart]{gap:6px}
 .top .rg-location-button{max-width:112px;padding:7px 8px!important;min-width:0}
 .top .rg-location-button svg{display:block;width:16px;height:16px}
 .top .rg-location-button span{font-size:11px;max-width:76px}
 .top .rg-location-button small{display:none}
 .top nav{width:100%;gap:10px;justify-content:space-between;order:3;margin:0}
 .top nav a{font-size:12px;padding:9px 0;min-height:44px}
 .hero{display:block;padding:32px 0}
 .hero h1{font-size:clamp(32px,8.8vw,42px);line-height:1.16;letter-spacing:-.045em}
 .hero>div>p:not(.eyebrow):not(.hero-caption){margin:18px 0 22px;font-size:16px}
 .hero-note{display:none}
 .hero>div>p.hero-caption{font-size:12px;margin-top:12px}
 .hero .primary,.hero-second{font-size:13px;padding:13px 15px;margin-right:6px}
 .path{height:auto;grid-template-columns:28px minmax(0,1fr);gap:8px 14px}
 .path>span{margin-top:7px}
 .categories{grid-template-columns:repeat(2,minmax(0,1fr))}
 .section-title{gap:12px;align-items:flex-start}
 .section-title h2{font-size:23px}
 .page-heading{flex-wrap:wrap;gap:16px;padding:26px 0 22px}
 .page-heading>div:first-child{flex:1;min-width:180px}
 .page-heading>.button-row{max-width:none;gap:10px}
 .page-heading>.secondary{font-size:12px}
 .page-heading h1{font-size:30px}
 .filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
 .filters>label:first-child{grid-column:1/-1}
 .filters>button{grid-column:1/-1}
 .filters input,.filters select{font-size:16px;padding:11px 10px}
 .product-grid{gap:12px}
 .product-image{height:160px;padding:14px}
 .product-info{padding:14px;gap:10px}
 .product-title{font-size:14px;line-height:1.55;min-height:66px}
 .product-info>.eyebrow{font-size:10px;letter-spacing:.07em}
 .product-info>strong{font-size:19px}
 .product-info>small{font-size:11px;line-height:1.65}
 .product-info>.secondary{padding:11px 6px;font-size:12px;min-height:44px}
 .product-info>.secondary svg{width:16px}
 .catalog-meta{margin-top:16px;font-size:12px}
 .catalog-pager{gap:16px;justify-content:space-between}
 .catalog-pager button{min-width:0;font-size:13px}
 .catalog-empty{padding-bottom:20px}
 .tk-empty-cart{margin-top:0;padding:34px 20px}
 .tk-empty-cart h2{font-size:24px}
 .tk-empty-cart .button-row{flex-direction:column}
 .cart-line{grid-template-columns:60px minmax(0,1fr) 60px;padding:17px}
 .cart-line b{font-size:14px}
 .co-total{flex-wrap:wrap}
 .co-summary{position:static}
 .order-progress{gap:6px;font-size:12px}
 .account-tabs button{padding:11px 14px;font-size:13px}
 .rg-location-card{align-items:flex-start}
 footer{margin-inline:18px;gap:10px 18px}
 footer>span{margin-right:0;flex:1}
 .admin-shell{display:block}
 .admin-mobilebar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--navy);color:#fff;padding:12px 18px}
 .admin-mobilebar img{width:120px;height:auto}
 .admin-mobilebar button{background:transparent;color:white;border-color:#ffffff40;padding:9px 14px;gap:12px}
 .admin-shell>.admin-nav{display:none;position:static;height:auto;overflow:visible;padding:0 18px 18px;gap:6px;background:var(--navy)}
 .admin-menu-open .admin-shell>.admin-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-nav>img,.admin-nav>small{display:none}
 .admin-nav button{white-space:normal;width:100%;padding:12px;text-align:left;min-width:0;font-size:13px;line-height:1.45;align-self:stretch}
 .admin-main{padding:24px 18px;min-width:0}
 .admin-main .page-heading>div:first-child{min-width:180px}
 .admin-main .toolbar>label{flex:1 1 180px}
 .admin-main .toolbar>input{width:100%;max-width:none}
 .admin-main .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-main .table-scroll{max-width:100%}
 .table-scroll table{min-width:560px}
 .commerce-metrics{gap:10px}
 .supplier-grid{grid-template-columns:minmax(0,1fr)}
 #dialog{padding:48px 20px 24px;max-height:calc(100dvh - 24px)}
 #dialog h2{font-size:24px}
 .tk-cookie-banner{max-height:calc(100dvh - 24px);overflow:auto}
 .tk-cookie-actions{gap:6px}
 .tk-cookie-actions button{padding:11px 7px;font-size:12px}
}
@media(max-width:480px){
 .form-grid,.offer-row .form-grid{grid-template-columns:minmax(0,1fr)}
 .form-grid>.wide{grid-column:1}
 .rg-location-card{gap:12px}
 .rg-location-card b{font-size:14px}
 .rg-location-card p{font-size:12px}
 .rg-location-card button{padding:9px 11px}
 .top .rg-location-button{gap:4px}
 .top .rg-location-button svg{display:none}
 .top .rg-location-button span{max-width:82px}
 .rg-city-results button{padding:10px 8px;font-size:12px}
 .co-fields input,.co-fields select,.co-fields textarea,textarea{font-size:16px}
 .commerce-card{padding:15px 13px}
 .commerce-card strong{font-size:20px}
 .commerce-card>span{font-size:12px}
 .commerce-periods button{font-size:12px;padding:10px 8px}
 .section-title .mono{overflow-wrap:anywhere}
 .order-card .section-title>div{flex-basis:100%}
 .order-progress li{font-size:10px}
 .article-content{padding:22px 18px}
 .co-steps{flex-wrap:wrap;gap:10px}
}
@media(max-width:360px){
 .top-inner{padding-inline:16px}
 .brand img{width:105px}
 .top .rg-location-button{padding:7px 6px!important}
 .top .rg-location-button span{font-size:10px;max-width:70px}
 .header-actions{gap:4px}
 .header-actions button{padding:8px;min-width:38px}
 .header-actions button[data-action=cart]{gap:4px}
 .header-actions button svg{width:18px}
 .hero h1{font-size:31px}
 .product-grid{grid-template-columns:minmax(0,1fr)}
 .product-image{height:210px}
 .product-title{font-size:16px;min-height:0}
 .product-info>strong{font-size:23px}
 .hero .primary,.hero-second{width:100%;margin-right:0}
 .cart-line{grid-template-columns:52px minmax(0,1fr);gap:10px}
 .cart-line>.quantity{grid-column:2;grid-row:2;width:76px}
 .cart-line>.item-thumb{width:52px;height:60px}
 .cart-line>.text-button{grid-column:2;grid-row:3}
 .tk-cookie-actions{flex-direction:column;align-items:stretch}
 .tk-cookie-actions button{width:100%}
 .commerce-metrics{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
/* Text contrast on muted helper copy and payment status surfaces. */
:root{--muted:#5b6f7c}
.co-steps,.co-line small,.co-summary-note,.co-delivery,.co-costs,.co-summary-head>span{color:#5a6e79}
.co-fields input::placeholder,.co-fields textarea::placeholder{color:#687b85}
.rg-city-results button span{color:#576b52}
.rg-timeline small{color:#5b6e61}
.tk-result-heading .muted,.tk-mobile-total small{color:#576e78}
/* Keep long editor controls reachable while its content scrolls. */
#dialog{padding:0;overflow:hidden;scrollbar-gutter:auto}
#dialog-body{padding:52px 32px 30px;max-height:calc(90dvh - 2px);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
#dialog>.close{position:absolute;top:8px;right:10px;box-shadow:0 2px 8px #1528380b}
.page-heading .mono{font-size:12px;letter-spacing:0;word-break:normal;overflow-wrap:anywhere}
input[type=file]::file-selector-button{border:1px solid #cdd8d3;border-radius:7px;background:#eef3ed;color:var(--ink);padding:8px 10px;margin-right:10px;cursor:pointer;font:inherit}
@media(max-width:720px){
 .two-columns{grid-template-columns:minmax(0,1fr)}
 #dialog{padding:0;max-height:calc(100dvh - 24px)}
 #dialog-body{padding:52px 20px 24px;max-height:calc(100dvh - 28px)}
 .page-heading:has(.mono)>div:first-child{flex:1 1 260px}
 .order-progress li{color:#5d707a}
 .order-progress li.done{color:#215e4c}
}
