/* SCREEN 02 catalog presentation. Business logic remains in app.js. */

body:has(#catalog.active) {
  background:
    radial-gradient(circle at 50% 0, rgba(210, 167, 104, .14), transparent 34rem),
    #33281f;
  color: #20150f;
}

body:has(#catalog.active) .announcement-bar { display: none; }

body:has(#catalog.active) .site-header {
  position: relative;
  inset: auto;
  z-index: 30;
  width: min(1340px, calc(100% - 16px));
  min-height: 58px;
  margin: 8px auto 0;
  border: 0;
  border-radius: 17px 17px 0 0;
  background: linear-gradient(100deg, #26180f, #160f0a 68%, #21150e);
  box-shadow: 0 18px 50px rgba(10, 6, 4, .22);
}

body:has(#catalog.active) .site-header .header-main {
  width: 100%;
  max-width: none;
  min-height: 58px;
  padding: 0 20px;
  gap: 12px;
}

body:has(#catalog.active) .brand-button {
  min-width: 184px;
  padding: 0;
  color: #f7d79c;
  text-align: left;
}

body:has(#catalog.active) .brand-button img {
  width: 35px;
  height: 35px;
  border: 0;
  background: transparent;
  object-fit: contain;
}

body:has(#catalog.active) .brand-copy strong {
  color: #f4d18f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body:has(#catalog.active) .brand-copy small { color: rgba(255, 246, 229, .74); font-size: 8px; }
body:has(#catalog.active) .primary-nav { position: static; margin-left: auto; background: transparent; box-shadow: none; }
body:has(#catalog.active) .primary-nav .nav-inner { display: flex; align-items: center; gap: 2px; }
body:has(#catalog.active) .primary-nav button,
body:has(#catalog.active) .header-category-nav button {
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  color: rgba(255, 249, 238, .88);
  background: transparent;
  font-size: 10px;
  font-weight: 500;
}
body:has(#catalog.active) .primary-nav button:hover,
body:has(#catalog.active) .primary-nav button.is-active { color: #f1bd61; background: transparent; }
body:has(#catalog.active) .header-category-nav { display: none; }

body:has(#catalog.active) .header-search {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  overflow: hidden;
}
body:has(#catalog.active) .header-search input,
body:has(#catalog.active) .search-label { display: none; }
body:has(#catalog.active) .header-search:hover,
body:has(#catalog.active) .header-search:focus-within,
body:has(#catalog.active) .header-search.is-open {
  width: 178px;
  min-width: 178px;
  border: 1px solid rgba(255, 246, 229, .22);
  border-radius: 6px;
}
body:has(#catalog.active) .header-search:hover input,
body:has(#catalog.active) .header-search:focus-within input,
body:has(#catalog.active) .header-search.is-open input {
  display: block;
  min-width: 0;
  padding-left: 9px;
  color: #fff8ed;
  background: transparent;
  font-size: 10px;
}
body:has(#catalog.active) .header-search button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #fff8ed;
  background: transparent;
  font-size: 22px;
}

body:has(#catalog.active) .header-actions { gap: 2px; }
body:has(#catalog.active) .header-action {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff8ed;
  background: transparent;
}
body:has(#catalog.active) .header-action > span:not(.action-icon) { display: none; }
body:has(#catalog.active) .header-action .action-icon { font-size: 20px; }
body:has(#catalog.active) .cart-action { position: relative; }
body:has(#catalog.active) .cart-action b {
  position: absolute;
  top: -1px;
  right: -1px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #1c120c;
  border-radius: 999px;
  color: #432b16;
  background: #e8aa45;
  font-size: 10px;
}

body:has(#catalog.active) #catalog {
  width: min(1340px, calc(100% - 16px));
  min-height: 760px;
  margin: 0 auto 34px;
  padding: 0;
  border-radius: 0 0 17px 17px;
  overflow: clip;
  background: linear-gradient(105deg, #fffaf2, #f7efe3 68%, #fffaf3);
  box-shadow: 0 28px 70px rgba(10, 6, 4, .24);
}

body:has(#catalog.active) #catalog > .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "breadcrumb breadcrumb"
    "title toolbar"
    "layout layout";
  align-items: end;
  width: 100%;
  max-width: none;
  padding: 17px 20px 28px;
}

body:has(#catalog.active) .catalog-page .breadcrumb {
  grid-area: breadcrumb;
  margin: 0 0 10px;
  color: #75675b;
  font-size: 9px;
}
body:has(#catalog.active) .catalog-page .breadcrumb button { color: #4e392a; }

body:has(#catalog.active) .catalog-title {
  grid-area: title;
  display: block;
  margin: 0 0 12px;
}
body:has(#catalog.active) .catalog-title .eyebrow { display: none; }
body:has(#catalog.active) .catalog-title h1 {
  margin: 0 0 5px;
  color: #17100c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -.025em;
}
body:has(#catalog.active) .catalog-title p { margin: 0; color: #62584f; font-size: 10px; }

body:has(#catalog.active) .catalog-toolbar {
  grid-area: toolbar;
  display: block;
  justify-self: end;
  width: 154px;
  margin: 0 0 13px;
}
body:has(#catalog.active) .catalog-toolbar .catalog-search { display: none; }
body:has(#catalog.active) .catalog-toolbar label:not(.catalog-search) {
  display: block;
  min-width: 0;
  color: transparent;
  font-size: 0;
}
body:has(#catalog.active) .catalog-toolbar select {
  width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 7px 30px 7px 10px;
  border: 1px solid #d8cbbb;
  border-radius: 6px;
  color: #2b211a;
  background: #fffdf9;
  font-size: 9px;
  font-weight: 600;
}

body:has(#catalog.active) .catalog-layout {
  grid-area: layout;
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

body:has(#catalog.active) .category-sidebar {
  position: sticky;
  top: 12px;
  padding: 0 15px 0 0;
  border: 0;
  border-right: 1px solid rgba(99, 69, 45, .2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body:has(#catalog.active) .filter-head { display: none; }
body:has(#catalog.active) .filter-group { padding: 0 0 15px; border: 0; }
body:has(#catalog.active) .filter-group + .filter-group {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(99, 69, 45, .14);
}
body:has(#catalog.active) .filter-group h3,
body:has(#catalog.active) .category-sidebar > .check-filter:first-of-type::before {
  margin: 0 0 7px;
  color: #24170f;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}
body:has(#catalog.active) .category-filters { display: grid; gap: 2px; }
body:has(#catalog.active) .category-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 26px;
  padding: 4px 7px;
  border-radius: 4px;
  color: #43362d;
  background: transparent;
  font-size: 9px;
  text-align: left;
}
body:has(#catalog.active) .category-filter small { color: #82766d; font-size: 8px; }
body:has(#catalog.active) .category-filter:hover { background: #efe3d2; }
body:has(#catalog.active) .category-filter.is-active { color: #2d2017; background: #e8d7bf; }
body:has(#catalog.active) .category-filter.is-active small { color: #645344; }

body:has(#catalog.active) .price-filter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding-top: 9px;
}
body:has(#catalog.active) .price-filter::before {
  content: "";
  position: absolute;
  top: 1px;
  right: 5px;
  left: 5px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #21150e, #9c7a55 50%, #21150e);
}
body:has(#catalog.active) .price-filter label { color: #756b63; font-size: 8px; }
body:has(#catalog.active) .price-filter input {
  width: 100%;
  min-height: 29px;
  margin-top: 4px;
  padding: 5px 3px;
  border: 0;
  border-bottom: 1px solid #cdbba7;
  border-radius: 0;
  background: transparent;
  font-size: 9px;
}

body:has(#catalog.active) .category-sidebar > .check-filter:first-of-type {
  display: grid;
  grid-template-columns: 16px 1fr;
  margin-top: 0;
  padding-top: 13px;
  border-top: 1px solid rgba(99, 69, 45, .14);
}
body:has(#catalog.active) .category-sidebar > .check-filter:first-of-type::before {
  content: "Öne Çıkanlar";
  grid-column: 1 / -1;
  display: block;
}
body:has(#catalog.active) .check-filter {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #4d4239;
  font-size: 9px;
}
body:has(#catalog.active) .check-filter input { width: 14px; height: 14px; margin: 0; }
body:has(#catalog.active) .category-sidebar .secondary {
  min-height: 31px;
  margin-top: 12px;
  padding: 6px 9px;
  border: 1px solid #d6c6b5;
  border-radius: 4px;
  color: #4f4035;
  background: transparent;
  font-size: 9px;
}

body:has(#catalog.active) #catalogState { margin-bottom: 12px; }
body:has(#catalog.active) #cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
body:has(#catalog.active) #cards .card {
  display: flex;
  min-width: 0;
  min-height: 365px;
  padding: 4px;
  border: 1px solid #d9ccbc;
  border-radius: 8px;
  overflow: hidden;
  background: #fffdf8;
  box-shadow: 0 3px 10px rgba(46, 29, 18, .055);
}
body:has(#catalog.active) #cards .card:hover {
  transform: translateY(-2px);
  border-color: #c8aa80;
  box-shadow: 0 8px 18px rgba(46, 29, 18, .09);
}
body:has(#catalog.active) #cards .product-image-frame,
body:has(#catalog.active) #cards .placeholder {
  width: 100%;
  height: auto;
  aspect-ratio: 1.28 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #eee5da;
}
body:has(#catalog.active) #cards .product-image-frame img { width: 100%; height: 100%; object-fit: cover; }
body:has(#catalog.active) #cards .card-flags { top: 10px; right: 10px; left: auto; gap: 5px; }
body:has(#catalog.active) #cards .product-flag {
  padding: 4px 7px;
  border-radius: 4px;
  color: #fff;
  background: #b87823;
  box-shadow: 0 3px 8px rgba(39, 23, 13, .16);
  font-size: 9px;
  font-weight: 700;
}
body:has(#catalog.active) #cards .product-flag.discount { background: #e6422c; }
body:has(#catalog.active) #cards .product-flag.dealer { background: #2f5d49; }
body:has(#catalog.active) #cards .product-flag.custom { background: #9a6327; }

body:has(#catalog.active) #cards .card-body { display: flex; flex: 1; padding: 7px 4px 4px; }
body:has(#catalog.active) #cards .card-category {
  margin: 0 0 4px;
  color: #6c5e53;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
body:has(#catalog.active) #cards .card h2 {
  display: -webkit-box;
  min-height: 30px;
  margin: 0 0 5px;
  overflow: hidden;
  color: #241a14;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body:has(#catalog.active) #cards .card-code,
body:has(#catalog.active) #cards .card-description,
body:has(#catalog.active) #cards .card-availability { display: none; }
body:has(#catalog.active) #cards .card-bottom {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 6px;
  margin-top: auto;
  padding: 0;
  border: 0;
}
body:has(#catalog.active) #cards .price {
  margin: 0;
  color: #17100c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
}
body:has(#catalog.active) #cards .price-unavailable {
  color: #70645b;
  font-size: 12px;
  font-weight: 600;
}
body:has(#catalog.active) #cards .regular-price { margin: 0 0 2px; font-size: 9px; }
body:has(#catalog.active) #cards .discount-badge,
body:has(#catalog.active) #cards .dealer-price-badge { font-size: 9px; }
body:has(#catalog.active) #cards .card-bottom .primary {
  width: 100%;
  min-height: 33px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #fff;
  background: #17110d;
  font-size: 10px;
  font-weight: 650;
}
body:has(#catalog.active) #cards .card-bottom .primary:hover { background: #3b281d; }
body:has(#catalog.active) #cards .card-bottom .primary:focus-visible,
body:has(#catalog.active) .category-filter:focus-visible,
body:has(#catalog.active) .catalog-toolbar select:focus-visible,
body:has(#catalog.active) .price-filter input:focus-visible {
  outline: 2px solid #b87c2d;
  outline-offset: 2px;
}
body:has(#catalog.active) .site-footer { display: none; }

@media (max-width: 1100px) {
  body:has(#catalog.active) .site-header,
  body:has(#catalog.active) #catalog { width: min(100% - 20px, 980px); }
  body:has(#catalog.active) .primary-nav { display: none; }
  body:has(#catalog.active) .mobile-menu-toggle { display: inline-flex; color: #fff8ed; }
  body:has(#catalog.active) .brand-button { min-width: 0; margin-right: auto; }
  body:has(#catalog.active) .catalog-layout { grid-template-columns: 1fr; }
  body:has(#catalog.active) .filter-drawer-toggle { display: inline-flex; }
  body:has(#catalog.active) .category-sidebar {
    position: fixed;
    z-index: 200;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 340px);
    padding: 20px;
    overflow: auto;
    border: 0;
    border-radius: 10px 0 0 10px;
    background: #fffaf2;
    box-shadow: -12px 0 30px rgba(35, 22, 14, .16);
    transform: translateX(105%);
  }
  body:has(#catalog.active) .category-sidebar.is-open { transform: translateX(0); }
  body:has(#catalog.active) .filter-head { display: flex; }
  body:has(#catalog.active) .filter-head .dialog-close { display: grid; }
  body:has(#catalog.active) #cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body:has(#catalog.active) .site-header { width: 100%; margin: 0; border-radius: 0; }
  body:has(#catalog.active) #catalog { width: 100%; margin: 0; border-radius: 0; }
  body:has(#catalog.active) #catalog > .shell {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 15px 14px 30px;
  }
  body:has(#catalog.active) .brand-copy { display: flex !important; }
  body:has(#catalog.active) .brand-copy strong { font-size: 13px; }
  body:has(#catalog.active) .brand-copy small { font-size: 7px; }
  body:has(#catalog.active) .brand-button img { width: 31px; height: 31px; }
  body:has(#catalog.active) .catalog-page .breadcrumb { margin-bottom: 10px; font-size: 9px; }
  body:has(#catalog.active) .catalog-title h1 { font-size: 21px; }
  body:has(#catalog.active) .catalog-title p { font-size: 9px; }
  body:has(#catalog.active) .catalog-toolbar { width: 120px; margin-bottom: 13px; }
  body:has(#catalog.active) .catalog-toolbar select { min-height: 32px; font-size: 9px; }
  body:has(#catalog.active) #cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body:has(#catalog.active) #cards .card { min-height: 350px; padding: 4px; border-radius: 6px; }
  body:has(#catalog.active) #cards .card-body { padding: 8px 3px 3px; }
  body:has(#catalog.active) #cards .card h2 { min-height: 31px; font-size: 10px; }
  body:has(#catalog.active) #cards .price { font-size: 15px; }
  body:has(#catalog.active) #cards .card-bottom .primary { min-height: 33px; font-size: 9px; }
}

@media (max-width: 430px) {
  body:has(#catalog.active) .site-header .header-main { min-height: 58px; padding: 0 12px; gap: 6px; }
  body:has(#catalog.active) #dealerLoginOpen { display: none; }
  body:has(#catalog.active) .header-search,
  body:has(#catalog.active) .header-search button,
  body:has(#catalog.active) .header-action { width: 34px; min-width: 34px; height: 34px; }
  body:has(#catalog.active) #catalog > .shell { padding-inline: 10px; }
  body:has(#catalog.active) #cards .card { min-height: 325px; }
  body:has(#catalog.active) #cards .card-category { font-size: 8px; }
  body:has(#catalog.active) #cards .card h2 { font-size: 9px; }
}
