/* Reference header alignment: logo, centered primary nav, utility icons. */
@media (min-width:992px) {
  .header.layout2 .main-header .top-header > .container > .row {
    display:flex;
    align-items:center;
  }
  .header.layout2 .main-header .top-header .left-content {
    flex:0 0 22%;
    max-width:22%;
  }
  .header.layout2 .main-header .top-header .midle-content {
    flex:0 0 58%;
    max-width:58%;
  }
  .header.layout2 .main-header .top-header .right-content {
    flex:0 0 20%;
    max-width:20%;
    text-align:right;
  }
  .header.layout2 .main-header .logo { min-width:0 !important; }
  .header.layout2 .main-header .logo img { max-width:210px; width:auto; height:auto; }
  .header.layout2 .box-header-nav { float:none !important; margin-right:0 !important; }
  #menu-main-menu {
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    margin:0;
    padding:0;
    list-style:none;
  }
  #menu-main-menu > li { float:none !important; display:block !important; }
  #menu-main-menu > li > a {
    display:block;
    float:none;
    padding:0 8px;
    line-height:76px;
    font-size:15px;
    white-space:nowrap;
  }
  #menu-main-menu > li.reference-category-nav { position:static; }
  .reference-nav-chevron { margin-left:4px; font-size:11px; }
  #menu-main-menu > li.reference-category-nav > .reference-category-menu {
    left:0;
    top:100%;
    width:min(1040px, calc(100vw - 36px)) !important;
    min-width:min(760px, calc(100vw - 36px)) !important;
    max-width:calc(100vw - 36px);
    display:grid;
    grid-template-columns:205px minmax(0,1fr);
    gap:0;
    padding:0 !important;
    overflow:hidden;
    background:#fff;
    border:1px solid #e2e8f0;
    border-top:2px solid #d85c64;
    border-radius:0 0 4px 4px;
    box-shadow:0 12px 28px rgba(15,23,42,.14);
    z-index:1200;
    text-transform:none;
  }
  #menu-main-menu > li.reference-category-nav:hover > .reference-category-menu,
  #menu-main-menu > li.reference-category-nav:focus-within > .reference-category-menu {
    visibility:visible;
    opacity:1;
    transform:translate(0,0);
  }
  .reference-category-parents {
    display:flex;
    flex-direction:column;
    gap:0;
    max-height:430px;
    overflow-y:auto;
    padding:8px 0;
    background:#fafafa;
    border-right:1px solid #e7e7e7;
  }
  .reference-category-parent {
    display:flex;
    align-items:center;
    gap:8px;
    min-height:31px;
    padding:7px 13px;
    color:#333 !important;
    font-size:12px;
    font-weight:500;
    line-height:1.3;
    text-decoration:none !important;
    text-transform:none !important;
  }
  .reference-category-parent > i:first-child { width:16px; color:#777; text-align:center; }
  .reference-category-parent .reference-parent-arrow { margin-left:auto; color:#d45a62; }
  .reference-category-parent:hover,
  .reference-category-parent.is-active { color:#c94d57 !important; background:#fff; }
  .reference-category-parent:hover > i:first-child,
  .reference-category-parent.is-active > i:first-child { color:#c94d57; }
  .reference-category-panels { min-width:0; min-height:210px; background:#fff; }
  .reference-category-panel:not(.is-active) { display:none !important; }
  .reference-category-panel { min-height:210px; padding:16px 14px; }
  .reference-category-panel-title { display:none; }
  .reference-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 16px; }
  .reference-category-sub {
    display:block;
    min-height:30px;
    padding:5px 2px;
    border:0;
    border-radius:0;
    background:transparent;
    color:#555 !important;
    font-size:12px;
    font-weight:500;
    line-height:1.3;
    text-decoration:none !important;
    text-transform:none !important;
  }
  .reference-category-sub i { display:none; }
  .reference-category-sub:hover { color:#c94d57 !important; background:transparent; }
  .reference-category-empty { padding:18px; color:#475569; font-size:13px; }
  .reference-category-empty a { color:#c94d57 !important; font-weight:700; }
}

/* Search icon in the right control group and an accessible search dialog. */
.header-control .reference-search-control { padding:0 9px; }
.reference-search-toggle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#333;
  font-size:17px;
  cursor:pointer;
  transition:background .18s ease,color .18s ease;
}
.reference-search-toggle:hover { color:#c94d57; background:#f6f6f6; }
.reference-search-overlay[hidden] { display:none !important; }
.reference-search-overlay {
  position:fixed;
  inset:0;
  z-index:30000;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:18vh 18px 24px;
}
.reference-search-backdrop {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:rgba(15,23,42,.52);
  cursor:default;
}
.reference-search-dialog {
  position:relative;
  z-index:1;
  width:min(760px,100%);
  padding:45px 22px 22px;
  border-radius:5px;
  background:#fff;
  box-shadow:0 20px 60px rgba(15,23,42,.25);
}
.reference-search-close {
  position:absolute;
  top:8px;
  right:10px;
  width:34px;
  height:34px;
  border:0;
  background:transparent;
  color:#64748b;
  font-size:27px;
  line-height:1;
  cursor:pointer;
}
.reference-search-form { display:flex; width:100%; }
.reference-search-input {
  flex:1 1 auto;
  min-width:0;
  height:52px;
  padding:0 16px;
  border:1px solid #d7dbe2;
  border-right:0;
  border-radius:3px 0 0 3px;
  color:#1f2937;
  font-size:15px;
  outline:none;
}
.reference-search-input:focus { border-color:#c94d57; }
.reference-search-submit {
  flex:0 0 58px;
  height:52px;
  border:1px solid #c94d57;
  border-radius:0 3px 3px 0;
  background:#c94d57;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}
.reference-search-open { overflow:hidden; }

/* Small utility links: Blog, bank accounts, and contact remain above the main nav. */
.topbar .menu-topbar.top-links li a { white-space:nowrap; }

@media (max-width:991px) {
  #menu-main-menu > li.reference-category-nav,
  .ovic-clone-mobile-menu > li.reference-category-nav { display:block !important; }
  .reference-category-nav > .reference-category-menu {
    position:static !important;
    left:auto !important;
    top:auto !important;
    display:none !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:0 !important;
    border:0;
    border-radius:0;
    box-shadow:none;
    transform:none !important;
    background:#fff;
  }
  .reference-category-nav.kt-panel-opened > .reference-category-menu,
  .reference-category-nav.open > .reference-category-menu,
  .reference-category-nav.active > .reference-category-menu,
  .ovic-menu-clone-wrap .ovic-menu-panel-opened > .reference-category-menu {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
  }
  .reference-category-parents {
    display:flex !important;
    flex-direction:column;
    max-height:none;
    overflow:visible;
    padding:0;
    border-right:0;
    background:#fff;
  }
  .reference-category-parent {
    min-height:42px;
    padding:10px 12px;
    border-bottom:1px solid #e7edf4;
  }
  .reference-category-panels { display:block; min-height:0; }
  .reference-category-panel {
    display:block !important;
    min-height:0;
    padding:8px 0;
    border-bottom:1px solid #e7edf4;
  }
  .reference-category-panel:not(.is-active),
  .reference-category-panel[hidden] { display:none !important; }
  .reference-category-panel-title {
    display:block;
    margin:0 0 6px;
    color:#1f2937 !important;
    font-size:13px;
    font-weight:700;
    text-decoration:none !important;
  }
  .reference-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 10px; }
  .reference-category-sub { min-height:28px; padding:5px 2px; font-size:12px; }
}
@media (max-width:767px) {
  .reference-search-overlay { padding:22vh 14px 14px; }
  .reference-search-dialog { padding:42px 14px 16px; }
  .reference-search-input { height:48px; padding:0 12px; font-size:14px; }
  .reference-search-submit { flex-basis:50px; height:48px; }
}


/* Final spacing and alignment corrections from the live-page screenshot. */
.header.layout2 .main-header .top-header { padding:4px 0 !important; }
.header-control {
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center;
  justify-content:flex-end;
  gap:4px;
  width:auto;
  margin:0 !important;
  padding:0;
  white-space:nowrap;
}
.header-control > li {
  display:flex !important;
  flex:0 0 auto;
  align-items:center;
  padding:0 7px !important;
  vertical-align:middle;
  white-space:nowrap;
}
.header-control > li::after { height:20px; }
.header-control .reference-search-control { width:38px; min-width:38px; justify-content:center; }
.header-control .box-minicart { order:3; }
.header-control .box-minicart .minicart,
.header-control .box-minicart .cart-block,
.header-control .box-minicart .cart-icon,
.header-control .box-minicart .total-price { white-space:nowrap; }
.header-control .box-minicart .cart-block { display:flex; align-items:center; gap:5px; }
.header-control .box-minicart .cart-icon { display:inline-flex; align-items:center; }
.header-control .box-minicart .total-price { display:inline-flex; align-items:center; }

/* The theme's former vertical-category offset caused the blank band and pushed the hero right. */
.main-content-home3 { margin-top:0 !important; padding-top:0 !important; }
.main-content-home3 .container-offset {
  margin-left:0 !important;
  margin-top:0 !important;
}
.main-content-home3 .main-slideshow {
  position:relative;
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  overflow:hidden;
}
.main-content-home3 .main-slideshow > .owl-carousel,
.main-content-home3 .main-slideshow .owl-stage-outer { width:100% !important; }
.main-content-home3 .main-slideshow .slide-item {
  width:100%;
  background-size:cover;
  background-position:center;
}
.main-content-home3 .main-slideshow .slide-img img {
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
}
.main-content-home3 .featrue-box-list { margin:10px 0 14px !important; }
.main-content-home3 .home-sidebar { margin-top:0 !important; }
.main-content-home3 .right-content-offset { margin-top:0 !important; }

@media (max-width:991px) {
  .header-control { gap:1px; }
  .header-control > li { padding:0 4px !important; }
  .main-content-home3 .main-slideshow { width:100% !important; max-width:100% !important; }
}
@media (max-width:767px) {
  .header-control .box-minicart .total-price .text { display:none; }
  .header-control .reference-search-control { width:34px; min-width:34px; }
}


/* Tüm ürünler sayfası: kategori detayındaki banner + sıralama akışı. */
.all-products-page .all-products-hero {
  position:relative;
  display:flex;
  align-items:center;
  min-height:220px;
  margin:0 0 22px;
  padding:30px 38px;
  overflow:hidden;
  color:#fff;
  background:linear-gradient(112deg,#17395f 0%,#2569a5 58%,#4a94d1 100%);
  border-radius:4px;
  box-shadow:0 8px 22px rgba(24,61,100,.14);
}
.all-products-page .all-products-hero-content { position:relative; z-index:2; max-width:600px; }
.all-products-page .all-products-hero-eyebrow {
  display:inline-block;
  margin-bottom:10px;
  color:#d9ecff;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.2px;
}
.all-products-page .all-products-hero h1 {
  margin:0 0 8px;
  color:#fff;
  font-size:32px;
  font-weight:700;
  line-height:1.15;
}
.all-products-page .all-products-hero p { max-width:470px; margin:0; color:#eef6ff; font-size:14px; line-height:1.6; }
.all-products-page .all-products-hero-art { position:absolute; top:0; right:0; width:42%; height:100%; overflow:hidden; }
.all-products-page .all-products-hero-art span {
  position:absolute;
  display:block;
  border:1px solid rgba(255,255,255,.22);
  border-radius:50%;
}
.all-products-page .all-products-hero-art span:nth-child(1) { width:230px; height:230px; top:-76px; right:24px; }
.all-products-page .all-products-hero-art span:nth-child(2) { width:170px; height:170px; bottom:-88px; right:130px; }
.all-products-page .all-products-hero-art span:nth-child(3) { width:82px; height:82px; top:68px; right:118px; background:rgba(255,255,255,.08); }
.all-products-page .all-products-toolbar { margin-bottom:18px; padding:10px 14px; }
.all-products-page .all-products-toolbar .control { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.all-products-page .all-products-toolbar .filter-choice { float:none; flex:0 1 230px; margin:0; }
.all-products-page .all-products-toolbar .filter-choice form { margin:0; }
.all-products-page .all-products-toolbar .control-button { float:none; flex:0 0 auto; }

/* Logo must fit its column at every tablet/phone width and never expand the header row. */
@media (max-width:991px) {
  .header.layout2 .main-header .top-header .left-content { min-width:0; }
  .header.layout2 .main-header .logo {
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    box-sizing:border-box;
  }
  .header.layout2 .main-header .logo > a { display:inline-flex; align-items:center; max-width:100%; }
  .header.layout2 .main-header .logo img {
    display:block;
    width:auto !important;
    height:auto !important;
    max-width:100% !important;
    max-height:56px;
    object-fit:contain;
  }
}
@media (max-width:767px) {
  .header.layout2 .main-header .top-header { padding:8px 0 !important; }
  .header.layout2 .main-header .top-header > .container > .row {
    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    margin-right:0;
    margin-left:0;
  }
  .header.layout2 .main-header .top-header .left-content {
    flex:1 1 0 !important;
    width:auto !important;
    max-width:calc(100% - 100px) !important;
    min-width:0 !important;
    padding:0 8px !important;
  }
  .header.layout2 .main-header .top-header .midle-content { display:none !important; }
  .header.layout2 .main-header .top-header .right-content {
    display:block !important;
    flex:0 0 auto !important;
    width:auto !important;
    max-width:145px !important;
    min-width:100px !important;
    padding:0 5px !important;
  }
  .header.layout2 .main-header .header-control {
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:flex-end !important;
    width:auto !important;
    margin:0 !important;
    gap:1px;
  }
  .header.layout2 .main-header .header-control > li { flex:0 0 auto; padding:0 3px !important; }
  .header.layout2 .main-header .header-control .reference-search-control { width:32px; min-width:32px; }
  .all-products-page .all-products-hero { min-height:165px; margin-bottom:16px; padding:22px 20px; }
  .all-products-page .all-products-hero h1 { font-size:25px; }
  .all-products-page .all-products-hero p { max-width:78%; font-size:12px; }
  .all-products-page .all-products-hero-art { width:40%; opacity:.72; }
  .all-products-page .sidebar .vertical-wapper { width:100% !important; margin:0 !important; }
  .all-products-page .sidebar .vertical-content { margin-left:0 !important; }
}
@media (max-width:480px) {
  .all-products-page .all-products-hero { min-height:150px; padding:18px 16px; }
  .all-products-page .all-products-hero h1 { font-size:22px; }
  .all-products-page .all-products-hero p { max-width:100%; padding-right:32px; font-size:11px; }
  .all-products-page .all-products-hero-art { right:-18px; width:44%; opacity:.45; }
  .all-products-page .all-products-toolbar .control { flex-wrap:wrap; }
  .all-products-page .all-products-toolbar .filter-choice { flex:1 1 100%; }
  .all-products-page .all-products-toolbar .chosen-container-single { width:100% !important; }
  .all-products-page .all-products-toolbar .control-button { margin-left:auto; }
}


/* Fix the separately rendered mobile header logo (frontend.js clones the desktop logo here). */
@media (max-width:767px) {
  .header-mobile .logo {
    position:absolute !important;
    width:calc(100vw - 164px) !important;
    max-width:200px !important;
    min-width:0 !important;
    height:48px !important;
    max-height:48px !important;
    padding:0 !important;
    margin:0 !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
    z-index:2 !important;
  }
  .header-mobile .logo > a {
    display:block !important;
    width:100% !important;
    height:100% !important;
    overflow:hidden !important;
  }
  .header-mobile .logo img {
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:cover !important;
    object-position:50% 35% !important;
  }
}


/* All-products sidebar: replace the category tree with the category-detail filter panel. */
.sidebar .all-products-filters {
  width: 100%;
  margin: 0;
}
.sidebar .all-products-filters .main-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}
.sidebar .all-products-filters #urunaramatext {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0 0 20px;
  padding: 0 12px;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  outline: 0;
  background: #f8f8f8;
  box-sizing: border-box;
}
.sidebar .all-products-filters .widget {
  margin: 0 0 20px;
}
.sidebar .all-products-filters .widgettitle {
  display: block;
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e6e6e6;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
}
.sidebar .all-products-filters .list-categories {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar .all-products-filters .list-categories li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
}
.sidebar .all-products-filters .list-categories input[type="checkbox"] {
  flex: 0 0 14px;
  margin: 0;
}
.sidebar .all-products-filters .list-categories .label-text {
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}
.sidebar .all-products-filters .price-filter {
  display: flex;
  gap: 8px;
  width: 100%;
}
.sidebar .all-products-filters .price-filter .input-info {
  flex: 1 1 0;
  width: 50%;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  outline: 0;
  background: #f8f8f8;
  box-sizing: border-box;
}
