/* ================================================================
   mobile-menu.css — Allesgo/Trendyol tarzı mobil menü
   ================================================================ */

/* Overlay */
.th-header__mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--th-ink-900) 50%, transparent);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.th-header__mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Drawer — tam ekran genişlik */
.th-header__mobile-menu {
  --mmenu-accent: var(--th-emerald-500);
  --mmenu-accent-hover: var(--th-green-600);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  background: var(--th-neutral-0);
  z-index: 1060;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.th-header__mobile-menu[aria-hidden="false"] {
  transform: translateX(0);
}

/* Header */
.th-mmenu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--th-space-3-5) var(--th-space-4);
  border-bottom: 1px solid var(--th-color-bg-secondary);
  flex-shrink: 0;
}
.th-mmenu__logo img {
  height: 32px;
  width: auto;
}
.th-mmenu__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1.5px solid var(--th-color-border-strong);
  color: var(--th-color-text-muted);
  font-size: var(--th-text-lg);
  cursor: pointer;
  border-radius: var(--th-radius-circle);
  transition: background .15s, border-color .15s;
}
.th-mmenu__close:hover {
  background: var(--th-color-bg-secondary);
  border-color: var(--th-neutral-400);
}

/* Body — scroll yapılabilir alan */
.th-mmenu__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Arama */
.th-mmenu__search {
  padding: var(--th-space-3) var(--th-space-4);
  flex-shrink: 0;
}
.th-mmenu__search form {
  display: flex;
  align-items: center;
  gap: var(--th-space-2-5);
  background: var(--th-color-bg-secondary);
  border-radius: var(--th-radius-lg);
  padding: 0 var(--th-space-3-5);
  height: 42px;
  border: 1.5px solid transparent;
  transition: border-color .2s, background .2s;
}
.th-mmenu__search form:focus-within {
  border-color: var(--mmenu-accent, var(--th-emerald-500));
  background: var(--th-neutral-0);
}
.th-mmenu__search i {
  color: var(--th-neutral-400);
  font-size: var(--th-text-base);
  flex-shrink: 0;
}
.th-mmenu__search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--th-text-base);
  color: var(--th-color-text);
  font-family: inherit;
}
.th-mmenu__search input::placeholder {
  color: var(--th-neutral-400);
}

/* Hızlı Linkler */
.th-mmenu__quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--th-space-2);
  padding: var(--th-space-2) var(--th-space-4) var(--th-space-3);
  flex-shrink: 0;
}
.th-mmenu__quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--th-space-1);
  padding: var(--th-space-2-5) var(--th-space-1);
  background: var(--th-color-bg-page);
  border-radius: var(--th-radius-lg);
  text-decoration: none;
  color: var(--th-color-text-secondary);
  font-size: var(--th-text-2xs);
  font-weight: var(--th-font-medium);
  text-align: center;
  transition: background .15s;
}
.th-mmenu__quick-item i {
  font-size: var(--th-text-md);
  color: var(--th-color-accent);
}
.th-mmenu__quick-item:active {
  background: var(--th-color-bg-secondary);
}
.th-mmenu__quick-item--hot {
  background: var(--th-neutral-0)7ed;
  color: var(--th-color-accent);
}
.th-mmenu__quick-item--hot i {
  color: var(--th-color-accent);
}

/* Divider */
.th-mmenu__divider {
  height: 6px;
  background: var(--th-color-bg-secondary);
  flex-shrink: 0;
}

/* Kategoriler */
.th-mmenu__cat-list {
  display: flex;
  flex-direction: column;
}
.th-mmenu__cat-item {
  display: flex;
  align-items: center;
  gap: var(--th-space-3-5);
  padding: var(--th-space-3) var(--th-space-4);
  text-decoration: none;
  color: var(--th-neutral-800);
  font-size: var(--th-text-base);
  font-weight: var(--th-font-medium);
  border-bottom: 1px solid var(--th-color-bg-page);
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.th-mmenu__cat-item:active {
  background: var(--th-color-bg-page);
}
.th-mmenu__cat-item > i:first-child {
  width: 20px;
  text-align: center;
  font-size: var(--th-text-md);
  color: var(--mmenu-accent, var(--th-emerald-500));
  flex-shrink: 0;
}
.th-mmenu__cat-item > span {
  flex: 1;
}
.th-mmenu__cat-arrow {
  font-size: var(--th-text-xs-plus);
  color: var(--th-color-border-strong);
  flex-shrink: 0;
}

/* Alt Linkler */
.th-mmenu__links {
  flex-shrink: 0;
  padding: var(--th-space-1) 0;
}
.th-mmenu__link-item {
  display: flex;
  align-items: center;
  gap: var(--th-space-3-5);
  padding: var(--th-space-3) var(--th-space-4);
  text-decoration: none;
  color: var(--th-neutral-600);
  font-size: var(--th-text-sm);
  font-weight: var(--th-font-medium);
  transition: background .12s;
}
.th-mmenu__link-item:active {
  background: var(--th-color-bg-page);
}
.th-mmenu__link-item i {
  width: 20px;
  text-align: center;
  font-size: var(--th-text-base);
  color: var(--th-neutral-400);
}

/* Separator — ince çizgi (kategoriler ile linkler arası) */
.th-mmenu__separator {
  height: 1px;
  background: var(--th-color-bg-secondary);
  margin: var(--th-space-2) var(--th-space-4);
}

/* Body scroll lock */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .th-header__mobile-menu,
  .th-header__mobile-menu-overlay {
    transition: none;
  }
}

/* Print — gizle */
@media print {
  .th-header__mobile-menu,
  .th-header__mobile-menu-overlay {
    display: none !important;
  }
}

/* ═══ LEGACY: platform'un eski mobil menü bileşenleri ═══ */

/* Bottom nav (platform) */
.tilbehomeMobilMenu456-menu-center-wrapper {
  background: var(--th-color-primary);
  box-shadow: var(--th-shadow-accent);
}
.tilbehomeMobilMenu456-container {
  display: none;
  box-shadow: var(--th-shadow-lg);
  border-top: 1px solid var(--th-color-border-light);
  border-left: none; border-right: none;
  padding: var(--th-space-2) 0 calc(var(--th-space-2) + env(safe-area-inset-bottom, 0px));
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
@media (max-width: 768px) {
  .tilbehomeMobilMenu456-container {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--th-z-fixed, 1000);
    background: var(--th-color-bg, var(--th-neutral-0));
  }
}
.tilbehomeMobilMenu456-container.th-nav-hidden {
  transform: translateY(100%);
}
.tilbehomeMobilMenu456-menu-item.active i,
.tilbehomeMobilMenu456-menu-item.active span {
  color: var(--th-color-primary);
}

/* Mobile product card */
@media (max-width: 768px) {
  .th-card .th-card__overlay { display: none; }
  .th-card .buttons-wrapper { display: block; }
  .th-card .buttons { margin-top: var(--th-space-2); }
  .th-card .btn-cart {
    min-height: 44px; border-radius: var(--th-radius-lg); font-size: var(--th-text-sm); font-weight: var(--th-font-semibold);
  }
}

/* Mobile drawer full width */
@media (max-width: 768px) {
  .th-cd { width: 100%; max-width: 100%; border-radius: 0; }
  .th-cart-drawer__product-img { width: 64px; height: 64px; }
}

/* Product comment location */
#product-comment-location {
  border: 0;
  background: transparent;
  color: var(--th-color-text);
  line-height: normal;
  display: flex;
  flex-direction: row;
  align-items: center;
}
#product-comment-location span {
  border-right: 0 solid var(--th-neutral-400);
  padding-right: 0;
}
#product-comment-location span:last-child {
  border: 0;
}

/* Product price group */
.product-price-group {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  color: var(--th-color-text-secondary);
  font-weight: var(--th-font-regular);
  gap: var(--th-space-2-5);
  padding: var(--th-space-4) 0 1px;
}
.product-price-group .discount .rate {
  font-size: var(--th-text-md);
  padding-bottom: var(--th-space-1);
}
.product-price-group .prices .list-price {
  color: var(--th-color-text-placeholder);
  font-size: var(--th-text-md);
  font-weight: var(--th-font-semibold);
  text-decoration: line-through;
  margin-top: -var(--th-space-1);
}
.product-price-group .prices .sale-price {
  color: var(--th-neutral-600);
  font-size: var(--th-text-4xl);
  font-weight: var(--th-font-bold);
  margin-top: -var(--th-space-2);
  display: inline-block;
  transform: scaleX(0.95) scaleY(1.08);
  transform-origin: left center;
}
.product-price-group .discount {
  align-items: center;
  background: var(--th-red-400);
  color: var(--th-color-text-inverse);
  display: flex;
  flex-direction: column;
  font-size: var(--th-text-xs);
  font-weight: var(--th-font-bold);
  height: 55px;
  justify-content: center;
  margin-right: 0;
  text-align: center;
  width: 60px;
  border-radius: var(--th-radius-md);
  line-height: 1;
  padding: var(--th-space-1-5);
}
.product-price-group .prices {
  padding: 0 var(--th-space-2-5) 0 0;
}

@media (max-width: 768px) {
  .mobilsayac .pattern-group .p-g-mod {
    margin-bottom: var(--th-space-2-5);
    margin-top: 1px;
  }
  .product-price-group .discount .rate {
    font-size: var(--th-text-base);
    font-weight: var(--th-font-medium);
  }
  .product-price-group .prices .list-price {
    color: var(--th-color-text-placeholder);
    font-size: var(--th-text-md);
    font-weight: var(--th-font-medium);
    margin-top: -1px;
  }
  .product-price-group .prices .sale-price {
    font-size: var(--th-text-xl);
    font-weight: var(--th-font-bold);
  }
  .product-price-group .discount {
    font-size: var(--th-text-xs);
    font-weight: var(--th-font-regular);
    height: 50px;
    width: 50px;
  }
  .product-price-group .prices {
    padding: 1px var(--th-space-2) 1px 1px;
  }
  .product-price-group {
    gap: var(--th-space-1);
    padding: var(--th-space-2-5) 0 1px;
  }
  .rating-average .mobil-combtn {
    display: flex;
  }
  body { padding-bottom: 72px; }
}

@media (max-width: 576px) {
  .product-price-group .discount {
    font-size: var(--th-text-xs);
    font-weight: var(--th-font-regular);
    height: 55px;
    width: 50px;
  }
  .product-price-group .prices .sale-price {
    font-size: var(--th-text-lg);
    font-weight: var(--th-font-medium);
  }
  .product-price-group {
    gap: var(--th-space-1);
    padding: var(--th-space-2-5) 0 1px;
  }
}

@media (max-width: 992px) {
  .categories .mms-12345 a .items-11223,
  .categories .mms-12345 a-67890 .items-11223 {
    display: flex;
    padding: var(--th-space-2-5) 0;
    align-items: center;
    justify-content: center;
    gap: var(--th-space-2-5);
    line-height: 18px;
  }
  .categories .mms a,
  .categories .mms-12345 a,
  .categories .mms-12345 a-67890 {
    width: 100%;
    flex: 0 0 50%;
  }
  .categories .mms,
  .categories .mms-12345 {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--th-color-border);
  }
  header.mobile {
    display: block;
    position: relative;
  }
}

.tilbehomeMobilMenu456-cart-icon { position: relative; }

@media (max-width: 768px) {
  .tilbehomeMobilMenu456-menu-item a,
  .tilbehomeMobilMenu456-menu-item button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: var(--th-space-1) 0;
    text-decoration: none;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .tilbehomeMobilMenu456-menu-item i {
    font-size: var(--th-text-xl);
  }
  .cat-responsive-buttons .btn-group {
    width: 100%;
    gap: var(--th-space-2);
  }
  .cat-responsive-buttons .btn {
    flex: 1;
    min-height: 44px;
    font-size: var(--th-text-base);
    font-weight: var(--th-font-semibold);
    border-radius: var(--th-radius-lg);
  }
}

.mobile .dinamik-slide-11234 a img {
  width: 100vh;
  border-radius: 0;
  height: 100%;
}
