/* V21.6 — yatay taşma ve header/sepet yerleşim düzeltmeleri */
html,body{
  width:100%;
  max-width:100%;
  overflow-x:clip;
}
@supports not (overflow:clip){
  html,body{overflow-x:hidden}
}

img,svg,video,canvas,iframe{
  max-width:100%;
}

.page,
.topbar,
.topbar-inner,
.modern-site-header,
.home-module-canvas,
.home-builder-module,
.home-visual-module,
.home-text-module,
.workspace,
.stage,
.catalog,
.product-detail-grid,
.checkout-card,
.drawer-panel{
  min-width:0;
  max-width:100%;
}

/* 100vw, masaüstü kaydırma çubuğunu da hesaba kattığı için sayfayı sağa taşıyordu. */
.home-builder-module.is-full-width{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

.home-module-canvas>*{
  min-width:0;
}

.modern-site-header{
  isolation:isolate;
}

.topbar-inner{
  grid-template-columns:minmax(0,auto) minmax(0,1fr) max-content;
  max-width:calc(100% - 20px);
}

.header-style-full .topbar-inner{
  max-width:100%;
}

.topbar-inner>*{
  min-width:0;
}

.modern-brand{
  min-width:0 !important;
  max-width:100%;
  overflow:hidden;
}

.modern-brand img{
  flex:0 1 auto;
  max-width:min(180px,100%);
}

.modern-brand span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.modern-header-nav{
  min-width:0;
  max-width:100%;
  overflow:hidden;
}

.modern-top-actions{
  position:relative;
  z-index:2;
  min-width:0;
  max-width:100%;
  flex-wrap:nowrap;
}

.modern-cart-button,
.cart-btn,
[data-theme-action="cart"]{
  position:relative;
  z-index:3;
  flex:0 0 auto;
  max-width:100%;
  white-space:nowrap;
}

.modern-cart-button .cart-count,
.cart-btn .cart-count{
  flex:0 0 auto;
}

.mobile-header-panel{
  max-width:100%;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}

.mobile-header-panel::before{
  width:calc(100vw - min(390px,92vw));
  max-width:100vw;
}

.drawer{
  overflow:hidden;
}

.drawer-panel{
  width:min(440px,100vw);
  max-width:100vw;
}

.cart-list,
.cart-item,
.cart-item>div{
  min-width:0;
}

.cart-item{
  grid-template-columns:54px minmax(0,1fr) auto;
}

.cart-item strong,
.cart-item small{
  overflow-wrap:anywhere;
}

.checkout-card{
  width:min(760px,calc(100% - 24px));
  max-width:calc(100% - 24px);
}

.detail-thumbs,
.model-selector,
.public-page-menu,
.home-module-buttons{
  max-width:100%;
}

@media(max-width:1320px){
  .modern-header-nav a{
    padding-inline:9px;
  }
  .modern-top-actions .account-link,
  .modern-top-actions #homeBtn{
    display:none;
  }
}

@media(max-width:1120px){
  .topbar-inner{
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:9px;
  }
  .header-mobile-toggle{
    justify-self:end;
  }
  .modern-top-actions{
    justify-self:end;
  }
}

@media(max-width:680px){
  .topbar-inner{
    width:calc(100% - 14px) !important;
    max-width:calc(100% - 14px);
    gap:6px;
    padding:7px 7px 7px 10px;
  }
  .modern-brand{
    font-size:15px;
  }
  .modern-brand img{
    max-width:104px;
  }
  .modern-brand span{
    max-width:92px;
  }
  .modern-cart-button{
    min-width:42px;
    height:42px;
    padding:6px 8px;
  }
  .modern-cart-button>span{
    display:none;
  }
  .modern-cart-button .cart-count{
    min-width:25px;
    height:25px;
  }
  .header-mobile-toggle{
    flex:0 0 42px;
  }
  .page{
    width:calc(100% - 16px);
    max-width:calc(100% - 16px);
  }
  .home-builder-module,
  .home-visual-module{
    max-width:100%;
  }
  .cart-item{
    grid-template-columns:46px minmax(0,1fr) auto;
    gap:8px;
    padding:10px;
  }
  .cart-item img{
    width:46px;
    height:46px;
  }
}

@media(max-width:420px){
  .modern-brand span{
    display:none;
  }
  .modern-brand img{
    max-width:96px;
  }
  .topbar-inner{
    grid-template-columns:minmax(0,1fr) 42px 42px;
  }
}
/* V22.1 — sepet ve ödeme katmanı her header türünün üzerinde */
html body .drawer,
html body .modal{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  isolation:isolate;
  transform:none;
  contain:layout style;
}

html body .drawer-backdrop,
html body .modal-backdrop{
  z-index:0!important;
}

html body .drawer-panel,
html body .checkout-card,
html body .common-payment-card{
  z-index:2!important;
}

html.commerce-overlay-open,
html.commerce-overlay-open body{
  overflow:hidden!important;
}

html.commerce-overlay-open .modern-site-header,
html.commerce-overlay-open .limra-theme-header,
html.commerce-overlay-open .site-header{
  pointer-events:none;
}

html.commerce-overlay-open .drawer.open,
html.commerce-overlay-open .modal.open{
  pointer-events:auto;
}

@media(max-width:680px){
  html body .checkout-card,
  html body .common-payment-card{
    width:calc(100% - 14px)!important;
    max-width:calc(100% - 14px)!important;
    max-height:calc(100dvh - 14px)!important;
    border-radius:16px!important;
  }

  html body .drawer-panel{
    width:min(440px,100%)!important;
    max-width:100%!important;
  }
}

/* V22.1.2 — klasik kart görselleri kırpılmasın */
body:not(.theme-limra-butik) :is(
  .main-choice-image,
  .category-card-image,
  .model-card-image,
  .catalog-image-wrap,
  .product-card-image,
  .related-product-image,
  .part-card-image,
  .bike-model-image,
  .home-category-card-image
) img{
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}

/* V22.1.3 — kategori isimleri görsellerin altında */
body:not(.theme-limra-butik) .dynamic-main-card>.main-choice-copy,
body:not(.theme-limra-butik) .rider-category-card>span:last-child{
  position:relative!important;
  z-index:10!important;
  background:#fff!important;
  opacity:1!important;
  visibility:visible!important;
}

body:not(.theme-limra-butik) .home-category-card>b,
body:not(.theme-limra-butik) .home-category-card>small{
  position:relative!important;
  z-index:10!important;
  display:block!important;
  background:#fff!important;
  opacity:1!important;
  visibility:visible!important;
}

body:not(.theme-limra-butik) .dynamic-main-card>.main-choice-image,
body:not(.theme-limra-butik) .home-category-card>span:first-child,
body:not(.theme-limra-butik) .rider-category-card>.rider-category-image{
  position:relative!important;
  z-index:1!important;
  overflow:hidden!important;
}

body:not(.theme-limra-butik) .dynamic-main-card>.main-choice-image img,
body:not(.theme-limra-butik) .home-category-card>span:first-child img,
body:not(.theme-limra-butik) .rider-category-card>.rider-category-image img{
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
}


/* Tema merkezinden yönetilen kategori görsel ölçüleri */
.category-card-image,.home-category-card-image,.rider-category-image{
  height:var(--category-image-height,240px)!important;
  background:var(--theme-surface,#fff);
}
.category-card-image img,.home-category-card-image img,.rider-category-image img{
  width:100%;height:100%;object-fit:var(--category-image-fit,cover)!important;
}
body{background-color:var(--theme-background,#f5f7f9);color:var(--theme-text,#172331)}


/* Ana sayfa sistem bölümleri: slider haricinde modül sırasına göre render edilir. */
.home-system-module{width:100%;box-sizing:border-box}
.home-system-shell{width:min(1180px,calc(100% - 32px));margin:0 auto}
.home-system-heading{margin-bottom:18px}.home-system-heading small{display:block;margin-bottom:5px;color:var(--theme-primary,#ee8833);font-size:11px;font-weight:900;letter-spacing:.12em}.home-system-heading h2{margin:0;color:var(--theme-text,#172331);font-size:clamp(24px,3vw,38px)}
.home-system-quick-links{padding:24px 0;background:var(--theme-surface,#fff)}.home-system-link-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.home-system-link-grid a{display:flex;align-items:center;justify-content:space-between;min-height:54px;padding:13px 16px;border:1px solid var(--theme-border,#e5e7eb);border-radius:14px;background:#fff;color:var(--theme-text,#172331);font-weight:800;text-decoration:none}.home-system-link-grid a:hover{border-color:var(--theme-primary,#ee8833)}
.home-system-benefits{padding:28px 0;background:var(--theme-surface,#fff)}.home-system-benefit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.home-system-benefit-grid article{display:grid;gap:5px;padding:18px;border:1px solid var(--theme-border,#e5e7eb);border-radius:16px;background:#fff}.home-system-benefit-grid b{font-size:14px}.home-system-benefit-grid span{color:var(--theme-muted,#667085);font-size:11px;line-height:1.5}
.home-system-cta{padding:34px 0}.home-system-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:34px;border-radius:24px;background:var(--theme-text,#172331);color:#fff}.home-system-cta-inner small{font-size:10px;font-weight:900;letter-spacing:.12em;opacity:.7}.home-system-cta-inner h2{margin:7px 0;font-size:clamp(25px,3vw,40px)}.home-system-cta-inner p{margin:0;opacity:.72}.home-system-cta-inner a{flex:0 0 auto;padding:13px 17px;border-radius:12px;background:var(--theme-primary,#ee8833);color:#fff;font-weight:900;text-decoration:none}
@media(max-width:760px){.home-system-link-grid{grid-template-columns:1fr 1fr}.home-system-benefit-grid{grid-template-columns:1fr 1fr}.home-system-cta-inner{align-items:flex-start;flex-direction:column}.home-system-cta-inner a{width:100%;text-align:center}}
