/* ARTMET — Kurumsal katalog düzeni */

.am-shop-body {
  background: var(--page-bg, #f7f8fa);
}

/* ── Header altı — hafif bağlam şeridi (katalog) ── */
.am-shop-topbar {
  margin-top: var(--header);
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.am-shop-topbar__inner {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.am-shop-topbar__brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.am-shop-topbar__brand strong {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.am-shop-topbar__brand span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.am-shop-topbar__cta {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: #fff;
  transition: border-color 0.2s, color 0.2s;
}

.am-shop-topbar__cta:hover {
  border-color: var(--blue);
  color: var(--red);
}

.am-shop-shell {
  padding: 2rem 0 4rem;
}

.am-shop {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  grid-template-areas: "sidebar main";
  gap: 0 2rem;
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: start;
}

/* ── Sol menü = ana sayfa Hizmetlerimiz ── */
.am-shop-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: calc(var(--header) + 1.25rem);
  background: var(--white);
  border: 1px solid rgba(21, 32, 50, 0.08);
  border-radius: 10px;
  padding: 1.15rem 0.85rem;
  box-shadow: 0 1px 3px rgba(21, 32, 50, 0.04);
}

.am-shop-sidebar__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

/* Sol arama */
.am-shop-search {
  margin-bottom: 1.1rem;
  padding: 0 0.35rem 1rem;
  border-bottom: 1px solid rgba(21, 32, 50, 0.07);
}

.am-shop-search__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.45rem;
}

.am-shop-search__input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.15rem;
  border: 1px solid rgba(21, 32, 50, 0.12);
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
  background: #f8f9fb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l3 3'/%3E%3C/svg%3E") 0.65rem center no-repeat;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.am-shop-search__input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 77, 109, 0.1);
}

.am-shop-search__input::placeholder {
  color: var(--ink-muted);
  opacity: 0.8;
}

.am-shop-sidebar__group {
  margin-bottom: 1.15rem;
}

.am-shop-sidebar__group > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 0.5rem 0.5rem 0.45rem;
  margin: 0.35rem 0 0.25rem;
  border-bottom: 1px solid rgba(26, 77, 109, 0.12);
}

.am-shop-sidebar__group a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.18s, color 0.18s;
}

.am-shop-sidebar__group a:hover {
  background: var(--bg);
  color: var(--blue);
}

.am-shop-sidebar__group a.is-active {
  background: rgba(26, 77, 109, 0.07);
  color: var(--blue);
  font-weight: 700;
}

.am-shop-sidebar__back {
  display: block;
  margin-top: 0.65rem;
  padding: 0.6rem 0.5rem 0;
  border-top: 1px solid rgba(21, 32, 50, 0.07);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.am-shop-sidebar__back:hover { color: var(--blue); }

.am-shop-main {
  grid-area: main;
  min-width: 0;
}

/* ── Tek başlık alanı (tekrar yok) ── */
.am-shop-pagehead {
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(21, 32, 50, 0.08);
}

.am-shop-crumb {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.am-shop-crumb a {
  color: var(--ink-soft);
  transition: color 0.18s;
}

.am-shop-crumb a:hover { color: var(--blue); }

.am-shop-pagehead__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.am-shop-pagehead__kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a4d6d;
  margin-bottom: 0.35rem;
}

.am-shop-pagehead h1 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.18;
  color: #0f1824;
  margin-bottom: 0.5rem;
}

.am-shop-pagehead__lead {
  font-size: 0.88rem;
  color: #3d4f63;
  line-height: 1.65;
  max-width: 52ch;
}

.am-shop-pagehead__count {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f1824;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(21, 32, 50, 0.14);
  border-radius: 100px;
  background: var(--white);
}

.am-shop-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  background: var(--white);
  border: 1px dashed rgba(21, 32, 50, 0.15);
  border-radius: 10px;
}

/* ── Ürün kutuları — grid + görsel ── */
.am-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}

.am-shop-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(21, 32, 50, 0.08);
  border-radius: 10px;
  overflow: hidden;
  min-height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.am-shop-card:hover {
  border-color: rgba(26, 77, 109, 0.18);
  box-shadow: 0 6px 20px rgba(21, 32, 50, 0.06);
}

.am-shop-card__media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg);
}

.am-shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.am-shop-card:hover .am-shop-card__media img {
  transform: scale(1.02);
}

.am-shop-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.3rem;
  padding: 0.85rem 0.95rem 0.95rem;
}

.am-shop-card__brand {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.am-shop-card__teklif {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0.2rem 0 0.35rem;
}

.am-shop-card__tag {
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 100px;
  background: var(--bg);
  color: var(--ink-muted);
}

.am-shop-card--punch .am-shop-card__tag {
  background: rgba(196, 74, 58, 0.1);
  color: #a63d2f;
}

.am-shop-card--lazer .am-shop-card__tag {
  background: rgba(26, 77, 109, 0.1);
  color: var(--blue);
}

.am-shop-card--servis .am-shop-card__tag {
  background: rgba(46, 125, 90, 0.1);
  color: #2a6b4a;
}

.am-shop-card--part .am-shop-card__tag {
  background: rgba(21, 32, 50, 0.07);
  color: var(--ink-soft);
}

.am-shop-card__title {
  font-family: var(--sans, inherit);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}

.am-shop-card__title a {
  color: inherit;
  transition: color 0.18s;
}

.am-shop-card__title a:hover { color: var(--blue); }

.am-shop-card__meta {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.4;
}

.am-shop-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
  list-style: none;
}

.am-shop-card__specs li {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink-soft);
}

.am-shop-card__add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1rem;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s;
}

.am-shop-card__add:hover {
  background: var(--ink);
}

.am-shop-card__add.is-in-cart {
  background: var(--blue-light);
  color: var(--blue);
  border: 1px solid rgba(26, 77, 109, 0.15);
}

.am-shop-card__detail {
  display: block;
  text-align: center;
  padding: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.18s;
}

.am-shop-card__detail:hover { color: var(--blue); }

.am-shop-card__actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(21, 32, 50, 0.06);
}

/* ── Animasyonlar ── */
@keyframes shopTopbarIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes shopFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.am-shop-topbar {
  animation: shopTopbarIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.am-shop-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--shop-delay, 0s);
}

.am-shop-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.am-shop-pagehead__count {
  transition: transform 0.25s ease;
}

.am-shop-pagehead__count.is-updated {
  transform: scale(1.06);
}

.am-shop-empty {
  animation: shopFadeUp 0.4s ease both;
}

.am-shop-sidebar-toggle.is-open::after {
  transform: rotate(180deg);
}

.am-shop-sidebar-toggle {
  display: none;
  grid-area: toggle;
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(21, 32, 50, 0.1);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--blue);
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: 0 1px 3px rgba(21, 32, 50, 0.04);
}

.am-shop-sidebar-toggle::after {
  content: "▾";
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

/* ── Tablet (601–900px) ── */
@media (min-width: 601px) and (max-width: 900px) {
  .am-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .am-shop-topbar__brand span {
    font-size: 0.98rem;
  }

  .am-shop-pagehead h1 {
    font-size: 1.65rem;
  }
}

/* ── Küçük tablet / büyük telefon ── */
@media (min-width: 480px) and (max-width: 600px) {
  .am-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .am-shop-card__title {
    font-size: 0.88rem;
  }

  .am-shop-card__add {
    padding: 0.52rem 0.75rem;
    font-size: 0.72rem;
  }
}

/* ── Telefon ── */
@media (max-width: 479px) {
  .am-shop-shell {
    padding: 1.15rem 0 3rem;
  }

  .am-shop-body {
    overflow-x: clip;
  }

  .am-shop {
    padding: 0 1rem;
  }

  .am-shop-topbar__inner {
    padding: 0.85rem 1rem;
  }

  .am-shop-topbar__brand span {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .am-shop-topbar__cta {
    width: 100%;
    text-align: center;
  }

  .am-shop-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .am-shop-pagehead {
    margin-bottom: 1.35rem;
    padding-bottom: 1.1rem;
  }

  .am-shop-pagehead h1 {
    font-size: 1.35rem;
  }

  .am-shop-pagehead__lead {
    font-size: 0.84rem;
  }

  .am-shop-pagehead__count {
    align-self: flex-start;
  }

  .am-shop-card__add {
    min-height: 44px;
    font-size: 0.82rem;
  }

  .am-shop-card__detail {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .am-shop-search__input {
    font-size: 16px; /* iOS zoom önleme */
  }
}

/* ── Geniş tablet / küçük desktop ── */
@media (min-width: 901px) and (max-width: 1100px) {
  .am-shop {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0 1.35rem;
  }

  .am-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .am-shop-shell {
    padding-top: 1.5rem;
  }

  .am-shop-topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .am-shop {
    grid-template-columns: 1fr;
    grid-template-areas:
      "toggle"
      "sidebar"
      "main";
    gap: 0;
  }

  .am-shop-sidebar-toggle { display: flex; }

  .am-shop-sidebar {
    display: block;
    position: static;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.3s ease,
      transform 0.3s ease,
      margin 0.3s ease,
      padding 0.3s ease,
      border-color 0.3s ease;
  }

  .am-shop-sidebar.is-open {
    max-height: 900px;
    opacity: 1;
    margin-bottom: 1.15rem;
    padding: 1.15rem 0.85rem;
    border-color: rgba(21, 32, 50, 0.08);
    pointer-events: auto;
    transform: none;
  }

  .am-shop-pagehead__row {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .am-shop-topbar { animation: none; }
  .am-shop-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .am-shop-card { transition: border-color 0.2s, box-shadow 0.2s; }
  .am-shop-card__media img { transition: none; }
  .am-shop-sidebar { transition: none; }
  .am-shop-empty { animation: none; }
}
