/*
 * AXCOS — Tebex mağaza temel düzeni
 * .site, grid, sepet/ürün sınıfları, kenar çubuğu; ayrıntılı görünüm: axcos-tebex-theme + axcos-preview-layout
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.site-bg-image {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
}

.site-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1rem;
}

.site-content {
  display: flex;
  flex: 1;
  flex-direction: row;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

/* AXCOS: Tebex modülleri / widget alanı — yan sütun değil, dikey yığın (preview hizası) */
.site-content.site-content-axcos-stack {
  flex-direction: column;
  align-items: stretch;
  max-width: 68rem;
}

.store-sidebar {
  flex: 0 0 240px;
  min-width: 0;
}

.store-sidebar.store-sidebar--stacked {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}

.store-home,
.store-products,
.store-product-cont,
main[role="main"] {
  flex: 1;
  min-width: 0;
}

.site-content-widgets .store-home,
.site-content-widgets .store-products,
.site-content-widgets .store-product-cont {
  flex: 1;
}

/* Ürün grid / list — Tebex List: tek 1fr sütun tüm alanı doldurmasın; dar kompakt sütun (≈2. ref) */
.store-products-grid,
.store-products-list,
[class^="store-products-"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14.25rem, 16.5rem));
  justify-content: start;
  gap: 1.1rem 1.15rem;
  width: 100%;
  box-sizing: border-box;
}

.store-product {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.store-product .image,
.store-product .image-link .image,
.store-product-cont .image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1a1c19;
}

.store-product .image-default {
  min-height: 160px;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}

.product-title a {
  text-decoration: none;
}

/* Paket eylem satırı */
.actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.75rem 0 0;
  align-items: center;
}

.actions .wide,
.add.wide,
.btn-primary.wide {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.actions .half,
.add.half,
.subscribe.half {
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 120px;
}

.price {
  width: 100%;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.quantity-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.quantity-field .quantity {
  width: 3.5rem;
  text-align: center;
  padding: 0.4rem;
}

/* Navigasyon (drawer; main.js konumlandırır) */
.site-navigation {
  position: fixed;
  z-index: 200;
  inset: 0 auto 0 0;
  max-width: min(20rem, 100%);
  width: 100%;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  padding: 1rem 1.25rem;
  overflow: auto;
}

body.show-navigation .site-navigation {
  transform: translateX(0);
}

/* Varsayılan Tebex: geniş ekranda nav header içi. AXCOS: .site-navigation body sonunda çekmecedir; position:relative
   akışa alıp linkleri sayfa altında gösterir — yalnız axcos-store dışında uygula. */
@media (min-width: 961px) {
  body:not(.axcos-store) .site-navigation {
    position: relative;
    transform: none;
    max-width: none;
    width: auto;
    flex: 1;
  }
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item,
.menu .menu-item {
  position: relative;
}

.menu-link {
  display: block;
  padding: 0.4rem 0.25rem;
  text-decoration: none;
}

.menu-sub {
  list-style: none;
  margin: 0.25rem 0 0 0.75rem;
  padding: 0;
}

#header.site-header,
.site-header {
  padding: 0.5rem 1rem;
  text-align: center;
}

.site-title img {
  max-height: 3rem;
}

.text-content,
.category-header {
  max-width: 65ch;
}

.text-content p,
.category-header p {
  margin: 0 0 0.75rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 1rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.we-accept {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  padding: 0;
}

.we-accept img {
  height: 1.5rem;
  width: auto;
}

.copyright {
  font-size: 0.8rem;
  margin: 0;
}

/* Yardımcı: mobil / masaüstü (sınıf adları main.js + şablonda) */
.mobile-only {
  display: block;
}
.desktop-only {
  display: none;
}
@media (min-width: 961px) {
  .mobile-only {
    display: none;
  }
  .desktop-only {
    display: block;
  }
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}
