/* ============================================================
   YorumHizmeti.tr — RESPONSIVE FLUID V13
   Goal: every public page uses exactly 20px viewport gutters,
   scales cleanly from phones to ultrawide monitors, and never
   creates horizontal overflow. Loaded LAST.
   ============================================================ */

:root{
  --page-gutter:20px;
  --page-width:min(var(--page-max-width),calc(100% - (var(--page-gutter) * 2)));
  --header-h:60px;
}

/* ---------- universal sizing / overflow safety ---------- */
html,body{width:100%;max-width:100%;overflow-x:hidden}
*,*::before,*::after{box-sizing:border-box}
img,svg,video,canvas,iframe{max-width:100%;height:auto}
main,section,article,aside,header,footer,nav,div{min-width:0}
input,select,textarea,button{max-width:100%}
table{max-width:100%}

/* Shared bounded container; legacy layouts still require this boundary. */
.container,
.yh-home-v6 .container,
.site-header .container,
.nv-topbar .container,
.site-footer .container,
.panel-section>.container,
.yv-page-hero>.container,
.yv-simple-hero>.container{
  width:var(--page-width)!important;
  max-width:var(--page-max-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Any nested container should not add a second 20px gutter */
.container .container{
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}

/* ---------- topbar / header ---------- */
.nv-topbar-inner,
.header-inner{
  width:100%!important;
  max-width:none!important;
}
.header-inner{
  display:flex!important;
  align-items:center!important;
  gap:clamp(12px,1.5vw,28px)!important;
}
.site-logo{flex:0 0 auto}
.nav-main{
  flex:1 1 auto!important;
  display:flex!important;
  justify-content:center!important;
  gap:clamp(1px,.45vw,8px)!important;
  min-width:0!important;
}
.nav-main a{
  white-space:nowrap!important;
  padding-inline:clamp(6px,.55vw,11px)!important;
}
.header-search-v4{
  flex:0 1 clamp(160px,15vw,260px)!important;
  min-width:130px!important;
  max-width:280px!important;
}
.header-actions{flex:0 0 auto!important}
.nv-topbar-meta{margin-left:auto!important}

/* ---------- homepage ---------- */
.yh6-hero>.container{position:relative!important}
.yh6-hero-grid{
  width:100%!important;
  grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr)!important;
  gap:clamp(24px,3vw,56px)!important;
}
.yh6-hero-copy{max-width:760px!important}
.yh6-hero-copy h1{
  max-width:760px!important;
  font-size:clamp(46px,4.1vw,76px)!important;
}
.yh6-hero-copy>p{max-width:720px!important}
.yh6-hero-art{
  width:100%!important;
  min-width:0!important;
}
.yh6-platform-bar{
  width:100%!important;
  max-width:none!important;
  left:auto!important;
  right:auto!important;
  margin-inline:0!important;
}
.yh6-why-grid{
  grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr)!important;
  gap:clamp(28px,4vw,72px)!important;
}
.yh6-dashboard{width:100%!important}
.yh6-featured-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.yh6-promo-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.yh6-review-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.yh6-how .container{
  grid-template-columns:minmax(220px,.7fr) minmax(0,1.3fr)!important;
}
.yh6-blog-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.yh6-faq-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.yh6-final .container{
  grid-template-columns:minmax(0,1fr) auto auto!important;
}

/* ---------- all services hub ---------- */
.yv-hero-grid{
  grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr)!important;
  gap:clamp(30px,4vw,70px)!important;
}
.yv-category-search,
.yv-filter-shell{width:100%!important;max-width:none!important}
.yv-category-grid{
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr))!important;
  width:100%!important;
}
.yv-promo{
  grid-template-columns:minmax(0,1fr) minmax(360px,.75fr)!important;
}

/* ---------- category detail ---------- */
.yv-category-hero-grid-v5{
  grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr)!important;
  gap:clamp(28px,4vw,72px)!important;
}
.yv-category-filter-v5>.container{width:var(--page-width)!important}
.yv-category-chip-row-v5{
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
}
.yv-category-package-grid-v5{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important;
}
.yv-category-story-grid-v5{
  grid-template-columns:minmax(280px,.95fr) minmax(340px,1.15fr) minmax(240px,.72fr)!important;
}
.yv-category-review-grid-v5{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.yv-services-faq-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.yv-compare-table-wrap-v5{
  width:100%!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
}
.yv-compare-table-wrap-v5 table{min-width:760px}

/* ---------- product detail ---------- */
.yv-product-hero-grid-v5{
  grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr)!important;
  gap:clamp(24px,3vw,56px)!important;
}
.yv-product-stage-grid-v5{
  grid-template-columns:minmax(0,1fr) clamp(330px,28vw,430px)!important;
  gap:clamp(14px,2vw,28px)!important;
}
.yv-product-gallery-v5,
.yv-product-gallery-main-v5,
.yv-product-buy-v5{min-width:0!important}
.yv-product-related-grid-v5{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.yv-product-review-grid-v5{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.yv-product-why-v5>.container{
  grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr)!important;
}

/* ---------- cart / checkout ---------- */
.yv-cart-layout-v5,
.yv-checkout-layout-v5{
  grid-template-columns:minmax(0,1fr) clamp(320px,27vw,410px)!important;
  gap:clamp(14px,2vw,26px)!important;
  width:100%!important;
}
.yv-cart-card-v5,.yv-cart-summary-v5,
.yv-checkout-left-v5,.yv-checkout-right-v5,
.yv-checkout-card-v5,.yv-checkout-summary-v5{min-width:0!important}
.yv-cart-row-v5{
  grid-template-columns:50px minmax(0,1fr) auto auto 36px!important;
}
.yv-cart-row-v5 button{display:inline-grid;place-items:center;width:36px;min-width:36px;min-height:36px;padding:0}
.yv-checkout-product-v5{
  grid-template-columns:46px minmax(0,1fr) auto auto 28px!important;
}
.yv-checkout-user-v5,
.yv-checkout-fields-v5{min-width:0!important}
.yv-checkout-payment-grid-v5{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.yv-checkout-proofbar-v5>.container{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
}
.yv-checkout-review-grid-v9{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}

/* ---------- blog index / detail ---------- */
.yv-blog-hero-grid-v8{
  grid-template-columns:minmax(0,1fr) minmax(420px,1fr)!important;
  gap:clamp(28px,4vw,72px)!important;
}
.yv-blog-chip-grid-v8{
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
}
.yv-blog-layout-v8{
  grid-template-columns:minmax(0,1fr) clamp(280px,23vw,360px)!important;
  gap:clamp(16px,2vw,30px)!important;
}
.yv-blog-post-grid-v8{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
}
.yv-blog-sidebar-v8{min-width:0!important}
.yv-blog-benefits-v8 .container>div{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.yv-blog-faq-grid-v8{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.yv-blog-final-v8 .container{
  grid-template-columns:minmax(0,1fr) auto auto!important;
}
.yv-blog-layout{
  grid-template-columns:minmax(0,1fr) clamp(260px,23vw,340px)!important;
  gap:clamp(18px,2.2vw,32px)!important;
}

/* ---------- contact / FAQ / generic pages ---------- */
.yv-simple-hero-visual-v12>.container{
  grid-template-columns:minmax(0,1fr) minmax(380px,.85fr)!important;
  gap:clamp(28px,4vw,72px)!important;
}
.yv-contact-grid{
  grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr)!important;
  gap:clamp(22px,3vw,48px)!important;
}
.yv-form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.yv-faq-shell{
  grid-template-columns:minmax(250px,.68fr) minmax(0,1.32fr)!important;
  gap:clamp(20px,3vw,44px)!important;
}
.yv-content-card{width:100%!important;max-width:none!important}

/* ---------- account / support ---------- */
.panel-section>.container{padding-inline:0!important}
.panel-layout{
  display:grid!important;
  grid-template-columns:clamp(210px,18vw,270px) minmax(0,1fr)!important;
  gap:clamp(16px,2vw,28px)!important;
}
.panel-content,.panel-card,.panel-card-body{min-width:0!important}
.panel-stats{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
.panel-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.panel-quick-actions{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
}
.panel-table,
.panel-orders-desktop,
.panel-tickets-desktop{
  width:100%!important;
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch;
}
.panel-table table{min-width:760px}
.panel-grid-support-create{
  grid-template-columns:minmax(0,1fr) clamp(260px,25vw,360px)!important;
}
.order-detail-layout{
  grid-template-columns:minmax(0,1fr) clamp(280px,25vw,360px)!important;
  gap:clamp(16px,2vw,28px)!important;
}
.customer-info-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

/* ---------- auth ---------- */
.auth-wrapper{
  width:100%!important;
  max-width:100%!important;
  padding:20px!important;
}
.auth-split-v5,
.auth-shell-v4{
  width:100%!important;
  max-width:none!important;
  min-height:calc(100vh - 40px)!important;
}
.auth-split-v5{
  grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr)!important;
}
.auth-card{min-width:0!important}
.auth-card .form-row{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

/* ---------- footer ---------- */
.footer-grid-v9{
  grid-template-columns:minmax(220px,1.25fr) repeat(4,minmax(150px,1fr))!important;
  gap:clamp(20px,2.6vw,44px)!important;
}
.footer-trust-v9,.footer-bottom{width:100%!important}
.footer-newsletter-form{width:100%!important}

/* ---------- ultrawide: use the screen, but keep text readable ---------- */
@media(min-width:1600px){
  .yh6-hero-copy>p,.yv-page-hero p,.yv-category-hero-v5 p,.yv-product-hero-copy-v5>p,.yv-blog-hero-copy-v8>p{
    max-width:760px!important;
  }
  .yh6-package-card,.yv-category-package-card-v5,.yv-blog-post-card-v8{
    min-width:0!important;
  }
}

/* ---------- medium desktop / small laptop ---------- */
@media(max-width:1280px){
  .nav-main a{padding-inline:6px!important;font-size:7px!important}
  .header-search-v4{flex-basis:150px!important}
  .yh6-featured-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .yh6-review-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .yh6-blog-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .yv-category-chip-row-v5{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .yv-category-story-grid-v5{grid-template-columns:1fr 1fr!important}
  .yv-category-side-benefits-v5{grid-column:1/-1!important}
  .footer-grid-v9{grid-template-columns:1.2fr repeat(3,1fr)!important}
  .footer-subscribe-v9{grid-column:2/-1!important}
}

/* ---------- tablet / compact laptop ---------- */
@media(max-width:1024px){
  .nav-main{display:none!important}
  .mobile-menu-btn{display:flex!important}
  .header-search-v4{margin-left:auto!important;flex:0 1 220px!important}

  .yh6-hero-grid,
  .yv-hero-grid,
  .yv-category-hero-grid-v5,
  .yv-product-hero-grid-v5,
  .yv-blog-hero-grid-v8,
  .yv-simple-hero-visual-v12>.container{
    grid-template-columns:1fr!important;
  }

  .yh6-hero-copy,.yv-page-hero-copy,.yv-category-hero-grid-v5>div:first-child,
  .yv-product-hero-copy-v5,.yv-blog-hero-copy-v8,.yv-simple-hero-copy-v12{
    max-width:760px!important;
  }

  .yh6-hero-art,.yv-hub-hero-art-v11,.yv-category-hero-art-v5,
  .yv-product-hero-visual-v5,.yv-blog-hero-art-v8,.yv-simple-hero-art-v12{
    width:100%!important;
    min-height:320px!important;
  }

  .yh6-why-grid{grid-template-columns:1fr!important}
  .yh6-dashboard{padding-right:0!important;padding-bottom:130px!important}
  .yh6-dash-services{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}

  .yh6-featured-grid,
  .yh6-promo-grid,
  .yh6-review-grid,
  .yh6-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yh6-how .container{grid-template-columns:1fr!important}

  .yv-category-package-grid-v5{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yv-category-story-grid-v5{grid-template-columns:1fr!important}
  .yv-category-side-benefits-v5{grid-column:auto!important}
  .yv-category-review-grid-v5{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  .yv-product-stage-grid-v5,
  .yv-cart-layout-v5,
  .yv-checkout-layout-v5,
  .yv-blog-layout-v8,
  .yv-blog-layout,
  .yv-contact-grid,
  .yv-faq-shell,
  .panel-grid-support-create,
  .order-detail-layout{
    grid-template-columns:1fr!important;
  }
  .yv-product-buy-v5,.yv-cart-summary-v5,.yv-checkout-summary-v5{position:static!important}
  .yv-product-related-grid-v5{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yv-blog-sidebar-v8{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yv-blog-news-v8{grid-column:1/-1!important}

  .panel-layout{grid-template-columns:1fr!important}
  .panel-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  .footer-grid-v9{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .footer-brand{grid-column:1/-1!important}
  .footer-subscribe-v9{grid-column:auto!important}
}

/* ---------- mobile ---------- */
@media(max-width:768px){
  :root{--page-gutter:20px}

  .nv-topbar{display:none!important}
  .site-header{top:0!important}
  .header-inner{gap:10px!important}
  .site-logo{font-size:12px!important}
  .site-logo .logo-icon{width:30px!important;height:30px!important}
  .header-search-v4{display:none!important}
  .header-actions .btn-label{display:none!important}
  .header-actions .btn{width:38px!important;min-width:38px!important;padding:0!important}
  .mobile-menu-btn{margin-left:auto!important}

  .yh6-hero-grid{min-height:0!important}
  .yh6-hero-copy{padding-top:10px!important}
  .yh6-hero-copy h1{font-size:clamp(38px,11vw,56px)!important}
  .yh6-hero-actions{grid-template-columns:1fr 1fr!important}
  .yh6-hero-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yh6-platform-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yh6-featured-grid,
  .yh6-promo-grid,
  .yh6-review-grid,
  .yh6-blog-grid{grid-template-columns:1fr!important}
  .yh6-how-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yh6-faq-grid{grid-template-columns:1fr!important}
  .yh6-final .container{grid-template-columns:1fr!important}

  .yv-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yv-category-chip-row-v5{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yv-category-search-form-v5{grid-template-columns:18px minmax(0,1fr)!important}
  .yv-category-search-form-v5 select{grid-column:1/-1!important;width:100%!important}
  .yv-category-package-grid-v5{grid-template-columns:1fr!important}
  .yv-category-review-grid-v5{grid-template-columns:1fr!important}
  .yv-services-faq-grid{grid-template-columns:1fr!important}

  .yv-product-related-grid-v5,
  .yv-product-review-grid-v5{grid-template-columns:1fr!important}
  .yv-product-why-v5>.container{grid-template-columns:1fr!important}
  .yv-product-why-stats-v5{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  .yv-cart-row-v5{
    grid-template-columns:42px minmax(0,1fr) 36px!important;
    gap:8px!important;
  }
  .yv-cart-row-v5>*{min-width:0!important}
  .yv-cart-row-v5>span{grid-column:1;grid-row:1;width:42px;height:42px}
  .yv-cart-row-v5>.copy{grid-column:2/-1;grid-row:1}
  .yv-cart-row-v5>.qty{grid-column:1;grid-row:2}
  .yv-cart-row-v5>strong{grid-column:2;grid-row:2;text-align:left;white-space:nowrap}
  .yv-cart-row-v5>form{grid-column:3;grid-row:2}
  .yv-checkout-product-v5{
    grid-template-columns:42px minmax(0,1fr) auto!important;
    gap:8px!important;
  }
  .yv-checkout-qty-v9{grid-column:3!important;grid-row:1/3!important}
  .yv-checkout-line-total-v9{grid-column:2!important;grid-row:2!important;white-space:nowrap}
  .yv-checkout-remove-v9{grid-column:3!important;grid-row:3!important;justify-self:end}
  .yv-checkout-payment-grid-v5{grid-template-columns:1fr!important}
  .yv-checkout-proofbar-v5>.container{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yv-checkout-review-grid-v9{grid-template-columns:1fr!important}

  /* Mobile editorial navigation is owned by the shared design language. */
  .yv-blog-post-grid-v8{grid-template-columns:1fr!important}
  .yv-blog-sidebar-v8{grid-template-columns:1fr!important}
  .yv-blog-benefits-v8 .container>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .yv-blog-faq-grid-v8{grid-template-columns:1fr!important}
  .yv-blog-final-v8 .container{grid-template-columns:1fr!important}

  .yv-form-grid{grid-template-columns:1fr!important}

  .panel-stats,.panel-grid-2,.customer-info-grid{grid-template-columns:1fr!important}
  .panel-orders-desktop,.panel-tickets-desktop{display:none!important}
  .panel-orders-mobile,.panel-tickets-mobile{display:grid!important}

  .auth-wrapper{padding:20px!important}
  .auth-split-v5,.auth-shell-v4{grid-template-columns:1fr!important;min-height:auto!important}
  .auth-visual-v5,.auth-art-v4{min-height:280px!important}
  .auth-card .form-row{grid-template-columns:1fr!important}

  .footer-grid-v9{grid-template-columns:1fr 1fr!important}
  .footer-brand,.footer-subscribe-v9{grid-column:1/-1!important}
  .footer-trust-v9,.footer-bottom{align-items:flex-start!important;flex-direction:column!important}
}

/* ---------- small mobile ---------- */
@media(max-width:480px){
  :root{--page-gutter:20px}

  .yh6-hero-actions{grid-template-columns:1fr!important}
  .yh6-how-grid{grid-template-columns:1fr!important}
  .yv-category-grid{grid-template-columns:1fr!important}
  .yv-category-chip-row-v5{grid-template-columns:1fr 1fr!important}

  .yv-checkout-proofbar-v5>.container{grid-template-columns:1fr 1fr!important}
  .yv-blog-benefits-v8 .container>div{grid-template-columns:1fr!important}

  .footer-grid-v9{grid-template-columns:1fr!important}
  .footer-brand,.footer-subscribe-v9{grid-column:auto!important}

  .mobile-bottom-nav{padding-left:20px!important;padding-right:20px!important}
}

@media(max-width:420px){
  :root{--page-gutter:16px}
}

/* ---------- horizontal scrollers instead of page overflow ---------- */
.table-responsive,
.yv-compare-table-wrap-v5,
.panel-table,
.panel-orders-desktop,
.panel-tickets-desktop,
.blog-content,
.yv-content-card{
  max-width:100%!important;
  overflow-wrap:anywhere;
}
pre,code{max-width:100%;overflow-x:auto}
