/* v513: fluid layout and restrained motion; existing controls/data remain authoritative. */
.pr-kok.pr-premium { --ph-max:1400px; --ph-gutter:clamp(16px,3vw,48px); }
.pr-premium .ph-header-inner { gap:clamp(10px,1.5vw,24px); }
.pr-premium .ph-header-location { white-space:nowrap; }
.pr-premium .ph-header-search { min-width:180px; }
.pr-premium .ph-section-head h2,.pr-premium .pr-bolum { font-size:clamp(22px,2vw,28px); }
.pr-premium .ph-content { padding-inline:var(--ph-gutter); }
.pr-kok.pr-premium.ph-discovery .pr-govde { padding-inline:var(--ph-gutter); }
.pr-premium .ph-restaurants:has(> .ph-restaurant:nth-child(2):last-child) > .ph-restaurant { flex-basis:calc((100% - 18px)/2); }
.pr-premium .ph-cover { height:auto; aspect-ratio:1.75; }
.pr-premium .ph-card-body { padding:14px 16px 18px; }
.pr-premium .ph-card-name.pr-db-ad { font-size:clamp(16px,1.5vw,20px); }
.pr-premium .ph-header-search:focus-within { outline:2px solid var(--ph-teal); outline-offset:2px; }
.pr-premium :is(.ph-link,.ph-see-all) svg { transition:transform 160ms ease; }
.pr-premium :is(button,a):active { transform:translateY(1px); }
.pr-premium :is(button,a):disabled { transform:none; }
.pr-duyuru-sat-ic span { white-space:normal; overflow-wrap:anywhere; }
.pr-ud-secim-durum { grid-column:1/-1; flex-basis:100%; margin:0 0 8px; font-size:14px; line-height:1.45; color:var(--pr-murekkep); }
.pr-ud-grup--eksik { outline:2px solid var(--pr-petrol); outline-offset:5px; border-radius:8px; scroll-margin-block:24px; }
.ph-demo-badge { display:inline-flex; align-items:center; padding:4px 8px; border-radius:8px; font-size:12px; font-weight:600; line-height:1.3; color:var(--pr-petrol-koyu); background:var(--pr-petrol-zemin); }
:root[data-tema="koyu"] .pr-kok.pr-premium { --ph-canvas:var(--pr-kagit); --ph-hero-paper:var(--pr-yuzey); --ph-local-paper:var(--pr-yuzey); --ph-editorial-paper:var(--pr-yuzey); }
:root[data-tema="koyu"] .pr-premium .ph-hero::before { background:linear-gradient(90deg,var(--pr-kagit) 0%,rgba(12,17,19,.94) 30%,rgba(12,17,19,.5) 55%,transparent 85%); }
:root[data-tema="koyu"] .pr-premium .ph-hero-copy,
:root[data-tema="koyu"] .pr-premium .ph-hero-copy > p,
:root[data-tema="koyu"] .pr-premium .ph-feature,
:root[data-tema="koyu"] .pr-premium .ph-promo--olive { color:var(--ph-ink); }
:root[data-tema="koyu"] .pr-premium :is(.ph-feature,.ph-promo--olive)::before { background:linear-gradient(90deg,var(--pr-yuzey),rgba(21,27,30,.94) 35%,rgba(21,27,30,.12)); }
:root[data-tema="koyu"] .pr-premium .ph-feature .ph-link { color:var(--ph-teal); }
:root[data-tema="koyu"] .pr-premium .ph-hero > .ph-trust { color:var(--ph-ink); }
:root[data-tema="koyu"] .pr-premium .ph-trust svg { color:var(--ph-teal); }

/* The tablet search owns a full row instead of competing with account actions. */
@media(min-width:768px) and (max-width:1100px) {
 .pr-premium .ph-header-inner { display:grid; grid-template-columns:auto 1fr auto auto; gap:8px 16px; padding-block:10px; }
 .pr-premium .ph-header-logo { grid-column:1; grid-row:1; width:120px; }
 .pr-premium .ph-header-location { grid-column:2; grid-row:1; justify-self:start; max-width:none; }
 .pr-premium .ph-header .ph-header-orders { display:none; }
 .pr-premium .ph-header .ph-header-cart { grid-column:3; grid-row:1; }
 .pr-premium .ph-header .ph-header-profile { grid-column:4; grid-row:1; }
 .pr-premium .ph-header-search { grid-column:1/-1; grid-row:2; width:100%; min-width:0; }
 .pr-premium .ph-hero-copy { width:58%; }
 .pr-premium .ph-hero-note { left:auto; right:5%; top:20%; }
 .pr-premium .ph-address { flex-wrap:wrap; }
 .pr-premium .ph-address > b { margin-left:auto; }
}
@media(min-width:1600px) {
 .pr-premium .ph-hero,.pr-premium .ph-local { max-width:1800px; margin-inline:auto; border-radius:24px; }
 .pr-premium .ph-hero { min-height:460px; }
}
@media(max-width:767px) {
 .pr-premium .ph-header-search { min-width:0; }
 .pr-premium .ph-hero { min-height:360px; padding:24px var(--ph-gutter) 106px; border-radius:20px 20px 0 0; }
 .pr-premium .ph-hero h1 { font-size:clamp(30px,8.5vw,38px); width:65%; max-width:260px; }
 .pr-premium .ph-hero-copy > p { font-size:14px; width:62%; }
 .pr-premium .ph-hero-note { top:26px; right:12px; font-size:20px; }
 .pr-premium .ph-address { min-height:72px; gap:8px; padding:8px 10px; }
 .pr-premium .ph-address > b { padding-inline:12px; }
 .pr-premium .ph-restaurants:has(> .ph-restaurant:nth-child(2):last-child) > .ph-restaurant { flex-basis:86%; }
 .pr-premium .ph-services { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .pr-premium .ph-header-search input { font-size:16px; }
}
@media(max-width:359px) {
 .pr-premium .ph-hero-note { display:none; }
 .pr-premium .ph-hero h1 { width:78%; }
 .pr-premium .ph-address > svg { display:none; }
 .pr-premium .ph-address > b { font-size:12px; gap:4px; padding-inline:10px; }
 .pr-premium .ph-trust svg { width:24px; height:24px; }
}

/* Restaurant mockup: photo-led cover, clear identity, readable product rows. */
.pr-kok.pr-kok--menu .pr-r-kapak { height:clamp(220px,23vw,340px); min-height:0; }
.pr-kok.pr-kok--menu .pr-r-icerik { max-width:1400px; margin-inline:auto; }
.pr-kok.pr-kok--menu .pr-urun-izgara { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.pr-kok.pr-kok--menu .pr-urun-izgara .pr-k { min-width:0; min-height:164px; border:1px solid var(--pr-cizgi); border-radius:16px; background:var(--pr-yuzey); box-shadow:none; overflow:hidden; }
.pr-kok.pr-kok--menu .pr-urun-izgara .pr-k-foto { order:2; flex:0 0 38%; width:38%; height:auto; min-height:140px; border-radius:12px; }
.pr-kok.pr-kok--menu .pr-urun-izgara .pr-k-yazi { order:1; min-width:0; }
.pr-kok.pr-kok--menu .pr-urun-izgara .pr-k-ad { overflow-wrap:anywhere; }
.pr-kok.pr-kok--menu .pr-urun-izgara .pr-k-ekle { min-width:44px; min-height:44px; }
/* Desktop identity follows the cover in normal flow; long names and demo notices
   must expand this section rather than collide with fixed cover coordinates. */
@media(min-width:1024px) {
 .pr-kok.pr-kok--menu .pr-r-kapak { margin-bottom:0; }
 .pr-kok.pr-kok--menu .pr-r-kimlik-alan { position:relative; inset:auto; height:auto; margin:0; padding:24px 32px 0; display:grid; grid-template-columns:96px minmax(0,1fr); grid-template-areas:"logo ad" "logo demo" "logo mutfak" "bilgi bilgi"; gap:8px 24px; background:var(--pr-yuzey); align-content:start; }
 .pr-kok.pr-kok--menu .pr-r-logo { align-self:start; margin:0; }
 .pr-kok.pr-kok--menu .pr-r-ad { margin:0; max-width:none; color:var(--pr-murekkep); text-shadow:none; font-size:clamp(30px,3vw,44px); line-height:1.15; }
 .pr-kok.pr-kok--menu .pr-r-mutfak { margin:0; color:var(--pr-murekkep-2); line-height:1.5; }
 .pr-kok.pr-kok--menu .pr-r-kimlik-alan > .pj-demo { grid-area:demo; justify-self:start; margin:0; }
 .pr-kok.pr-kok--menu .pr-r-bilgi { grid-area:bilgi; position:static; inset:auto; min-height:64px; padding:16px 0; margin:0; flex-wrap:wrap; gap:12px; }
 .pr-kok.pr-kok--menu .pr-konum-fav { position:static; inset:auto; display:contents; }
 .pr-kok.pr-kok--menu .ph-menu-sections { position:relative; margin:0; background:var(--pr-yuzey); }
}
@media(max-width:767px) {
 .pr-kok.pr-kok--menu .pr-r-kapak { height:220px; min-height:220px; }
 .pr-kok.pr-kok--menu .pr-r-kimlik-alan { margin-top:-18px; border-radius:20px 20px 0 0; }
 .pr-kok.pr-kok--menu .pr-urun-izgara { grid-template-columns:minmax(0,1fr); gap:12px; }
 .pr-kok.pr-kok--menu .pr-urun-izgara .pr-k { padding:12px; gap:12px; min-height:142px; }
 .pr-kok.pr-kok--menu .pr-urun-izgara .pr-k-foto { flex-basis:100px; width:100px; height:112px; min-height:112px; }
 .pr-kok.pr-kok--menu .pr-urun-izgara .pr-k-yazi { padding-bottom:30px; }
 .pr-kok.pr-kok--menu .pr-urun-izgara .pr-k-ekle { right:14px; bottom:14px; }
 .pr-kok.pr-kok--menu .pr-r-icerik { padding-inline:var(--pr-menu-gutter,16px); }
}
@media(prefers-reduced-motion:no-preference) {
 @keyframes ph-arrive { from { opacity:.3; } to { opacity:1; } }
 .pr-premium .ph-hero-copy { animation:ph-arrive 360ms ease-out both; }
 .pr-premium .ph-restaurant { transition:border-color 160ms ease,transform 160ms ease; }
 @media(hover:hover) and (pointer:fine) {
  .pr-premium .ph-restaurant:hover { transform:translateY(-2px); }
  .pr-premium :is(button,a):hover > .ph-link svg,.pr-premium .ph-see-all:hover svg { transform:translateX(3px); }
 }
}
@media(prefers-reduced-motion:reduce) {
 .pr-premium *, .pr-kok--menu * { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}
