/* Shared card density and homepage composition; business data and actions are unchanged. */
body.store-layout.tn-v5[data-page=home] .tk-home-modern { --home-section-gap:44px; padding-bottom:44px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .home-module:not(.ref-module-hero) .ref-section-heading,
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-heading { margin-bottom:18px; gap:12px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .home-module:not(.ref-module-hero) .ref-section-heading h2,
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-heading h2 { font-size:clamp(22px,2vw,28px); line-height:1.25; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-eyebrow { margin-bottom:5px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .ref-products.teknik-home-products { gap:16px; }

/* Defeat only the legacy card/media !important declarations, without scaling text. */
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] { padding:0!important; border-radius:12px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-media { height:clamp(144px,13vw,174px)!important; aspect-ratio:auto; padding:8px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .ref-product-photo-frame { aspect-ratio:auto; border-radius:8px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tn-v5-product-image { padding:8px; object-fit:contain; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-content { min-height:0; gap:0; padding:8px 12px 12px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .ref-product-brand { height:18px; min-height:18px; line-height:18px; margin-bottom:4px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-title { height:44px; min-height:44px; max-height:44px; font-size:16px; line-height:22px; margin-bottom:6px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-code { height:18px; min-height:18px; line-height:18px; margin-bottom:6px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-purchase { min-height:0; flex:0 0 auto; margin-top:auto; padding-top:6px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .ref-rating-stock { height:auto; min-height:18px; margin:0 0 4px; line-height:18px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-old { height:18px; min-height:18px; line-height:18px; }
/* Old browsers keep the harmless empty row; real discount information is always shown. */
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-old:has(>span[aria-hidden=true]) { display:none; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .ref-card-price { min-height:44px; gap:0; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .ref-card-price>strong { font-size:20px; line-height:1.3; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tn-v5-product-tax { min-height:18px; font-size:12px; line-height:18px; margin:2px 0 6px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-cart { margin-top:auto; padding-top:4px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-cart>.ref-button,
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tn-v5-price-request { min-height:44px; height:auto; padding:8px 6px; gap:6px; font-size:14px; line-height:18px; border-radius:8px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-badge { top:10px; left:10px; max-width:calc(100% - 64px); padding:4px 6px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .ref-favorite { top:8px; right:8px; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-visual>.tk-compare-control { top:54px; right:8px; }

body.store-layout.tn-v5 :is(.product-grid,.tk-home-deals__products):has(.tk-product-old del) .tk-product-card.product-card[data-urun-id] .tk-product-old:has(>span[aria-hidden=true]) { display:block; }

/* Small photographic category shortcuts replace the tall poster surfaces. */
body.store-layout.tn-v5[data-page=home] .tk-home-modern .ref-category-grid { display:grid; grid-template-columns:repeat(var(--category-cols,4),minmax(0,1fr)); gap:16px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category { display:grid; grid-template-columns:64px minmax(0,1fr); gap:12px; width:auto; min-height:100px; padding:12px; border-radius:12px; background:#fff; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__media { position:relative; inset:auto; z-index:auto; width:64px; height:72px; border-radius:8px; overflow:hidden; background:var(--v5-soft); }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__media::after { display:none; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__media>img { object-fit:cover; filter:none; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__body { min-height:0; margin:0; padding:0; gap:6px; align-items:center; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__body h3 { color:var(--v5-ink); font-size:15px; line-height:1.4; margin:0; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__eyebrow { display:none; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__caption { color:var(--v5-muted); margin-top:4px; font-size:12px; line-height:1.5; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__arrow { display:none; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-brand-grid { gap:10px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-brand { min-height:68px; border-radius:10px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-brand img { max-width:110px; max-height:36px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.tk-home-promotion__media,.tk-home-guide__media) { height:150px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.tk-home-promotion__copy,.tk-home-guide__copy,.tk-home-benefit) { padding:16px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-deals { padding:22px; gap:20px; border-radius:16px; }

/* Compact hero preserves the message and both existing actions. */
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero { min-height:420px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__content { padding:40px 0 44px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero h2 { margin:14px 0; font-size:clamp(34px,3.4vw,50px); line-height:1.1; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__content>p { font-size:16px; line-height:1.65; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__actions { gap:12px 18px; margin-top:22px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__actions>.ref-button { min-height:44px; padding:10px 16px; font-size:15px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__secondary { min-height:44px; font-size:14px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__footnote { margin-top:18px; }

@media(min-width:901px) and (max-width:1199px) {
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .ref-products.teknik-home-products { grid-template-columns:repeat(var(--teknik-laptop,4),minmax(0,1fr))!important; }
}
@media(max-width:900px) {
 body.store-layout.tn-v5[data-page=home] .tk-home-modern { --home-section-gap:32px; padding-bottom:32px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .ref-category-grid { grid-template-columns:repeat(var(--category-tablet,3),minmax(0,1fr)); }
}
@media(max-width:560px) {
 body.store-layout.tn-v5[data-page=home] .tk-home-modern { --home-section-gap:28px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .ref-products.teknik-home-products { gap:12px; }
 body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-media { height:clamp(112px,34vw,144px)!important; }
 body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tk-product-content { padding:6px 10px 10px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .ref-category-grid { grid-template-columns:repeat(var(--category-mobile,2),minmax(0,1fr)); gap:12px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category { grid-template-columns:40px minmax(0,1fr); gap:8px; min-height:92px; padding:10px 8px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__media { width:40px; height:54px; align-self:center; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-category__body h3 { font-size:15px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero { min-height:400px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__content { padding:32px 0 36px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero h2 { font-size:32px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__content>p { font-size:16px; line-height:1.6; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__actions { gap:8px 12px; margin-top:18px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__actions>.ref-button { width:auto; padding:10px 12px; gap:8px; font-size:14px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__secondary { font-size:13px; gap:6px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero--multiple .tn-v5-hero__content { padding-bottom:88px; }
}
@media(max-width:359px) {
 body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .ref-card-price>strong { font-size:16px; }
}

/* Deterministic headings and shared module rhythm, including long labels. */
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.ref-section-heading,.tk-home-heading) { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.ref-section-heading,.tk-home-heading)::after { display:none; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.ref-section-heading,.tk-home-heading)>div { min-width:0; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.ref-section-heading,.tk-home-heading)>a { max-width:100%; min-height:44px; border:0; gap:8px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero__art { inset:0; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero::after { background:linear-gradient(90deg,#101820fa 0%,#101820ed 29%,#10182075 60%,#10182020 100%); }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.tk-home-promotion,.tk-home-guide) { border-radius:12px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.tk-home-promotion__copy,.tk-home-guide__copy) { display:flex; flex-direction:column; flex:1; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.tk-home-promotion__copy,.tk-home-guide__copy)>span:last-child { margin-top:auto; padding-top:12px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-brand { padding:12px; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.tk-home-quick,.tk-home-corporate) { padding:24px; border-radius:14px; }
@media(max-width:560px) {
 body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.ref-section-heading,.tk-home-heading) { grid-template-columns:minmax(0,1fr); gap:4px; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.ref-section-heading,.tk-home-heading)>a { justify-self:start; }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern .tn-v5-hero::after { background:linear-gradient(90deg,#101820f5,#101820ba); }
 body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.tk-home-quick,.tk-home-corporate) { padding:18px; }
}

/* Reserve extra rows only for grids whose real content needs them. */
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] { container-type:inline-size; }
body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .tn-v5-price-request { margin-top:4px; }
@container (max-width:210px) {
 body.store-layout.tn-v5 :is(.product-grid,.tk-home-deals__products,.tk-pd-related-grid):has(.tn-v5-long-price) .tk-product-card.product-card[data-urun-id] .ref-card-price { min-height:70px; }
 body.store-layout.tn-v5 :is(.product-grid,.tk-home-deals__products,.tk-pd-related-grid):has(.tn-v5-long-price) .tk-product-card.product-card[data-urun-id] .ref-card-price>strong { min-height:52px; align-content:flex-start; align-items:flex-start; }
 body.store-layout.tn-v5 :is(.product-grid,.tk-home-deals__products,.tk-pd-related-grid):has(.tn-v5-price-request) .tk-product-card.product-card[data-urun-id] .tn-v5-product-tax { min-height:36px; }
}
@container (max-width:150px) {
 body.store-layout.tn-v5 .tk-product-card.product-card[data-urun-id] .ref-rating-stock { min-height:36px; }
 body.store-layout.tn-v5 #main .tk-product-card.product-card[data-urun-id] .tk-product-cart>.ref-button,
 body.store-layout.tn-v5 #main .tk-product-card.product-card[data-urun-id] .tn-v5-price-request { min-height:54px; }
}

body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-button { background:var(--v5-accent); border-color:var(--v5-accent); color:var(--v5-ink); }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-button:hover { background:var(--v5-accent-hover); border-color:var(--v5-accent-hover); }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-quick { border-left-color:var(--v5-accent); }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-corporate { background:linear-gradient(120deg,var(--v5-dark),var(--v5-surface)); border-color:var(--v5-surface); }
body.store-layout.tn-v5[data-page=home] .tk-home-modern .tk-home-icon { background:var(--v5-accent-soft); border-color:#f1dcad; }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.tk-home-quick__feature p,.tk-home-benefit p) { font-size:16px; line-height:1.65; color:var(--v5-muted-strong); }
body.store-layout.tn-v5[data-page=home] .tk-home-modern :is(.tn-v5-hero,.tk-home-corporate) :focus-visible { outline-color:var(--v5-accent); }
