/* Bakım Sepeti v1.66 — content-density layer. Does not modify order, price, stock or admin logic.
   Rationale: the original four-column catalog left 25% of wide screens empty
   when a category contained only three real products. */
:root{--v166-ink:#133e34;--v166-line:#cfe5dc;--v166-pale:#f1f8f4;--v166-cta:#007f69}

/* HOME — show actual product cards near the top. Keep banners/videos as configured. */
body.med-store .med-hero{padding-top:19px}
body.med-store .med-hero .med-hero-slide{min-height:420px;padding:24px 0;gap:27px}
body.med-store .med-hero .med-hero-text{padding:10px 0 18px}
body.med-store .med-hero h1{font-size:clamp(35px,3.55vw,55px);margin:18px 0 13px}
body.med-store .med-slides .med-hero-visual img{height:348px}
body.med-store .med-trust .wrap{padding-top:18px;padding-bottom:18px}
body.med-store .med-section.soft{background:linear-gradient(180deg,#f3faf5 0%,#f8fbf8 100%)}
body.med-store .med-section.soft .med-section-heading{margin-bottom:21px}
body.med-store .med-section,body.med-store .med-category-banners-section{padding-block:44px}
body.med-store .med-products--limited{grid-template-columns:repeat(var(--med-card-cols,3),minmax(0,1fr));max-width:min(100%,calc(var(--med-card-cols,3) * 430px));margin-inline:auto}
body.med-store .med-products .med-product-photo{aspect-ratio:1.12/1}
body.med-store :is(.med-product-photo,.med-retail-photo){padding:16px}
body.med-store :is(.med-product-photo,.med-retail-photo)::before{inset:9px}
body.med-store .med-product-info .med-product-excerpt:empty{display:none}
body.med-store .med-section-heading h2{font-size:clamp(25px,2.35vw,34px)}

/* CATALOG — 3 real products fill 3 columns; never fabricate a fourth. */
body.med-store .med-retail-grid--short{grid-template-columns:repeat(var(--med-card-cols,3),minmax(0,1fr));max-width:min(100%,calc(var(--med-card-cols,3) * 430px));margin-inline:auto}
body.med-store .med-retail-grid--short .med-retail-photo{aspect-ratio:1.14/1}
body.med-store .med-retail-main{padding-bottom:48px!important}
body.med-store .med-retail-count{display:inline-flex;align-items:center;gap:7px;font-weight:750;color:#1a6654;padding:8px 13px;background:#eaf7f0;border:1px solid #cce5d7;border-radius:999px;margin:2px 0 17px}
body.med-store .med-retail-count::before{content:"";background:#10866b;width:7px;height:7px;border-radius:50%}
body.med-store .med-retail-next-v166{margin-top:29px;padding:25px 27px;background:#f2f9f4;border:1px solid #cfe5d8;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:25px}
body.med-store .med-retail-next-v166 h2{font-size:22px;line-height:1.18;margin:7px 0 0;color:var(--v166-ink)}
body.med-store .med-retail-next-links-v166{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;max-width:860px}
body.med-store .med-retail-next-links-v166 a{display:inline-flex;align-items:center;gap:9px;padding:10px 13px;background:#fff;border:1px solid #c9e1d3;border-radius:10px;color:#086c57!important;font-size:12px;font-weight:750;text-decoration:none}
body.med-store .med-retail-next-links-v166 a:hover{background:#e2f4ea;border-color:#8cbda6}

/* DETAIL — more usable visual density, without cropping the product packaging. */
body.med-product-premium main{max-width:1280px}
body.med-product-premium .product{gap:26px;padding:22px 25px}
body.med-product-premium .product .image{min-height:395px;padding:16px;background:#f3f8f4}
body.med-product-premium .med-photo-zoom{min-height:310px}
body.med-product-premium .product .image img{max-height:365px;max-width:100%}
body.med-product-premium .med-gallery-stage{min-height:315px}
body.med-product-premium .med-gallery-stage .med-photo-zoom{min-height:290px}
body.med-product-premium .med-gallery-stage img{max-height:320px}
body.med-product-premium .product h1{margin:10px 0 11px;font-size:clamp(28px,2.9vw,39px)}
body.med-product-premium .product .price{margin:12px 0 5px}
body.med-product-premium .med-purchase{padding:17px 19px;margin:16px 0 12px;border-color:#a9dac7;background:#e8f6ee}
body.med-product-premium .med-purchase h2{margin:0 0 5px}
body.med-product-premium .med-purchase p{margin:0 0 10px;color:#436e5e}
body.med-product-premium .med-detail-service{border-color:#c9e5d5;margin:10px 0 14px}
body.med-product-premium .med-detail-service-item{background:#f5fbf6;padding:12px}
body.med-product-premium .med-product-links a{background:#f4faf6}

/* Real, published catalogue suggestions. They are links, not alternative checkout forms. */
.med-discovery-v166{min-width:0;margin:26px 0 10px;padding:25px;background:linear-gradient(135deg,#eaf7ef,#f7fbf8);border:1px solid #cbe3d5;border-radius:19px}
.med-discovery-v166-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:19px}
.med-discovery-v166-kicker{display:block;color:#0b785e;font-size:10px;font-weight:800;letter-spacing:1.3px}
.med-discovery-v166-head h2{margin:5px 0 0;color:#153f32;font-size:clamp(21px,2vw,26px);line-height:1.25;letter-spacing:-.5px}
.med-discovery-v166-head>a{color:#08705b;font-size:12px;font-weight:760;text-decoration:none;white-space:nowrap}
.med-discovery-v166-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.med-discovery-v166-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px;background:white;border:1px solid #d6e7df;border-radius:13px;color:#183e33!important;text-decoration:none!important;transition:border-color .2s,transform .2s,box-shadow .2s}
.med-discovery-v166-card:hover{border-color:#83bba4;box-shadow:0 10px 22px rgba(8,65,45,.10);transform:translateY(-2px)}
.med-discovery-v166-photo{height:122px;display:grid;place-items:center;border-radius:9px;background:#f7faf8;overflow:hidden}
.med-discovery-v166-photo img{display:block;width:100%;height:100%;object-fit:contain}
.med-discovery-v166-title{font-size:12px;font-weight:740;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:35px;color:#173e34}
.med-discovery-v166-price{font-size:16px;font-weight:850;color:#006b56}
.med-discovery-v166-link{margin-top:auto;font-size:11px;font-weight:760;color:#08725b}
.med-discovery-v166 a:focus-visible{outline:3px solid #d39a4d;outline-offset:2px}
body.med-flow .med-flow-layout>.med-discovery-v166{grid-column:1;grid-row:2;margin:0}
body.med-flow .med-flow-layout>.med-discovery-v166 .med-discovery-v166-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
body.med-flow .med-flow-layout>.med-discovery-v166 .med-discovery-v166-photo{height:105px}
body.med-flow .med-flow-layout>.med-discovery-v166 .med-discovery-v166-card{display:grid;grid-template-columns:95px minmax(0,1fr);grid-template-rows:auto auto 1fr;gap:3px 11px;align-content:start}
body.med-flow .med-flow-layout>.med-discovery-v166 .med-discovery-v166-photo{grid-row:1/4;height:92px}
body.med-flow .med-flow-layout>.med-discovery-v166 .med-discovery-v166-title{min-height:0}
body.med-flow .med-flow-layout>.med-discovery-v166 .med-discovery-v166-link{align-self:end}

@media(max-width:1100px){
 body.med-store .med-retail-next-v166{display:block}
 body.med-store .med-retail-next-links-v166{justify-content:flex-start;max-width:none;margin-top:17px}
 body.med-store .med-retail-grid--short{max-width:100%}
}
@media(max-width:990px){
 body.med-flow .med-flow-layout>.med-discovery-v166{grid-column:auto;grid-row:auto}
}
@media(max-width:760px){
 body.med-store .med-hero .med-hero-slide{min-height:0;padding:25px 0 38px;gap:12px}
 body.med-store .med-hero .med-hero-text{padding:0 0 11px}
 body.med-store .med-hero h1{font-size:clamp(30px,7vw,41px)}
 body.med-store .med-slides .med-hero-visual img{height:218px}
 body.med-store .med-trust .wrap{padding-top:15px;padding-bottom:15px}
 body.med-store .med-section,body.med-store .med-category-banners-section{padding-block:34px}
 body.med-store .med-retail-grid--short,body.med-store .med-products--limited{grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%}
 body.med-store .med-retail-grid--short .med-retail-photo{aspect-ratio:1/1}
 body.med-store .med-retail-next-v166{padding:19px 16px}
 body.med-store .med-retail-next-v166 h2{font-size:19px}
 body.med-store .med-retail-next-links-v166 a{padding:8px 10px}
 body.med-product-premium .product .image{min-height:260px}
 body.med-product-premium .med-photo-zoom{min-height:245px}
 body.med-product-premium .med-gallery-stage{min-height:245px}
 body.med-product-premium .med-gallery-stage .med-photo-zoom{min-height:220px}
 body.med-product-premium .product{padding:15px}
 .med-discovery-v166{padding:17px;margin-top:17px}
 .med-discovery-v166-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .med-discovery-v166-photo{height:115px}
}
@media(max-width:470px){
 body.med-store .med-retail-grid--short[style*="--med-card-cols:1"],body.med-store .med-products--limited[style*="--med-card-cols:1"]{grid-template-columns:1fr;max-width:400px}
 .med-discovery-v166-head{align-items:start}
 .med-discovery-v166-head h2{font-size:20px}
 .med-discovery-v166-photo{height:103px}
 .med-discovery-v166-card{padding:9px}
 body.med-flow .med-flow-layout>.med-discovery-v166 .med-discovery-v166-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){.med-discovery-v166-card{transition:none}.med-discovery-v166-card:hover{transform:none}}
