/* ============================================================
   ARMONELLE FIX CSS — Header + Cards + Buttons
   ============================================================ */

/* ── FIX 1: Header boşluğu ── */
/* Marquee nav'ın hemen altında başlasın */
.arm-marquee {
  margin-top: 60px !important; /* nav height */
}
@media (min-width: 768px) {
  .arm-marquee {
    margin-top: 70px !important;
  }
}

/* Shop ve diğer Kadence sayfalarında da boşluk düzgün olsun */
body.home .arm-hero {
  padding-top: 0 !important;
}

/* Kadence'in kendi header'ı varsa gizle — bizim nav var */
#masthead,
.site-header,
.kadence-header-wrap {
  display: none !important;
}

/* ── FIX 2: WooCommerce Shop — kart taşmaları ── */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
  padding: 0 1rem !important;
  margin: 0 !important;
  list-style: none !important;
}

.woocommerce ul.products li.product {
  background: #EDE7D9 !important;
  border: 1px solid rgba(201,169,110,.12) !important;
  border-radius: 2px !important;
  padding: 1.2rem !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  overflow: hidden !important;
  position: relative !important;
  transition: all .3s !important;
  display: flex !important;
  flex-direction: column !important;
}

.woocommerce ul.products li.product:hover {
  box-shadow: 0 8px 24px rgba(28,58,42,.1) !important;
  transform: translateY(-3px) !important;
}

/* Ürün resmi */
.woocommerce ul.products li.product img {
  width: 100% !important;
  height: 160px !important;
  object-fit: cover !important;
  border-radius: 1px !important;
  margin-bottom: .8rem !important;
}

/* Ürün başlığı — kayma düzeltmesi */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: #1C3A2A !important;
  margin: 0 0 .5rem 0 !important;
  padding: 0 !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

/* Fiyat */
.woocommerce ul.products li.product .price {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.1rem !important;
  color: #1C3A2A !important;
  margin: 0 0 .8rem 0 !important;
  display: block !important;
}

.woocommerce ul.products li.product .price del {
  color: rgba(74,74,66,.4) !important;
  font-size: .85rem !important;
}

.woocommerce ul.products li.product .price ins {
  text-decoration: none !important;
}

/* ── FIX 3: ADD TO CART butonu — taşma düzeltmesi ── */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background: #1C3A2A !important;
  color: #F5F0E8 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: .62rem !important;
  font-weight: 400 !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
  padding: .7rem 1rem !important;
  border: none !important;
  border-radius: 2px !important;
  margin-top: auto !important;
  cursor: pointer !important;
  transition: all .3s !important;
  /* Taşmayı engelle */
  white-space: normal !important;
  word-break: break-word !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
  background: #2C4A38 !important;
  color: #F5F0E8 !important;
  transform: none !important;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale {
  background: #C9A96E !important;
  color: #1A1A18 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: .58rem !important;
  font-weight: 500 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  border-radius: 2px !important;
  padding: .25rem .6rem !important;
  top: .8rem !important;
  right: .8rem !important;
  left: auto !important;
  min-height: auto !important;
  line-height: 1.5 !important;
}

/* ── FIX 4: Shop page — üst boşluk ve başlık ── */
.woocommerce-page .site-main,
.woocommerce-shop .site-main {
  padding-top: 0 !important;
}

/* Shop page header banner */
.woocommerce-products-header {
  background: #1C3A2A !important;
  padding: 5rem 2rem 3rem !important;
  text-align: center !important;
  margin-bottom: 2rem !important;
}

.woocommerce-products-header__title.page-title {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(2rem, 6vw, 3.5rem) !important;
  font-weight: 400 !important;
  color: #F5F0E8 !important;
}

/* WooCommerce breadcrumb gizle (temiz görünüm) */
.woocommerce-breadcrumb {
  display: none !important;
}

/* Toolbar (result count + sort) */
.woocommerce-result-count,
.woocommerce-ordering {
  font-family: 'Jost', sans-serif !important;
  font-size: .75rem !important;
  color: #4A4A42 !important;
}

/* ── FIX 5: Single product sayfası ── */
.woocommerce div.product {
  padding: 1.5rem 1rem !important;
}

.woocommerce div.product .product_title {
  font-family: 'Playfair Display', serif !important;
  font-size: clamp(1.6rem, 5vw, 2.5rem) !important;
  font-weight: 400 !important;
  color: #1C3A2A !important;
  line-height: 1.15 !important;
  margin-bottom: .8rem !important;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.6rem !important;
  color: #1C3A2A !important;
  margin-bottom: 1.5rem !important;
  display: block !important;
}

.woocommerce div.product .woocommerce-product-details__short-description {
  font-family: 'Jost', sans-serif !important;
  font-size: .88rem !important;
  font-weight: 300 !important;
  line-height: 1.8 !important;
  color: #4A4A42 !important;
  margin-bottom: 1.5rem !important;
}

/* Single product add to cart */
.woocommerce div.product form.cart .single_add_to_cart_button {
  background: #1C3A2A !important;
  color: #F5F0E8 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: .72rem !important;
  font-weight: 400 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 2px !important;
  padding: 1rem 2rem !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all .3s !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: #2C4A38 !important;
}

/* Quantity input */
.woocommerce div.product form.cart .qty {
  border: 1px solid rgba(28,58,42,.2) !important;
  border-radius: 2px !important;
  padding: .8rem !important;
  font-family: 'Jost', sans-serif !important;
  font-size: .9rem !important;
  width: 70px !important;
  text-align: center !important;
}

/* ── FIX 6: Cart & Checkout mobil ── */
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
  padding: .8rem .5rem !important;
  font-family: 'Jost', sans-serif !important;
  font-size: .82rem !important;
}

.woocommerce .cart_totals h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.3rem !important;
  color: #1C3A2A !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
  background: #C9A96E !important;
  color: #1A1A18 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: .72rem !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
  border-radius: 2px !important;
  padding: 1rem !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin-top: 1rem !important;
}

/* ── FIX 7: Kadence Shop sayfasında nav padding ── */
/* Shop Kadence template kullanıyor, bizim nav fixed olduğu için boşluk lazım */
body:not(.home) .site-main,
body:not(.home) #primary {
  padding-top: 130px !important; /* nav 70px + marquee 40px */
}

@media (max-width: 767px) {
  body:not(.home) .site-main,
  body:not(.home) #primary {
    padding-top: 100px !important; /* nav 60px + marquee 40px */
  }
}

/* ── FIX 8: Desktop'ta 3 kolon ── */
@media (min-width: 900px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 0 2rem !important;
  }
  .woocommerce ul.products li.product img {
    height: 220px !important;
  }
}

/* ── FIX 9: Star ratings ── */
.woocommerce .star-rating span::before {
  color: #C9A96E !important;
}

/* ── FIX 10: Notices ── */
.woocommerce-message {
  border-top-color: #C9A96E !important;
  background: #F5F0E8 !important;
  font-family: 'Jost', sans-serif !important;
  font-size: .85rem !important;
}

.woocommerce-error {
  border-top-color: #8B3A3A !important;
}

/* ── FIX 11: Footer input ve formlar ── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  font-family: 'Jost', sans-serif !important;
  font-size: .9rem !important;
  border: 1px solid rgba(28,58,42,.2) !important;
  border-radius: 2px !important;
  padding: .8rem 1rem !important;
  background: #FAFAF7 !important;
  color: #0E1A13 !important;
  width: 100% !important;
  transition: border-color .3s !important;
  -webkit-appearance: none !important;
}

input:focus, textarea:focus, select:focus {
  outline: none !important;
  border-color: #C9A96E !important;
  box-shadow: 0 0 0 3px rgba(201,169,110,.1) !important;
}

/* ── FIX 12: TranslatePress dil butonunu sağ alta al ── */
#trp-floatingbar {
  bottom: 20px !important;
  right: 20px !important;
  left: auto !important;
  z-index: 998 !important;
}

/* ── FIX: Başlık kelime bölünmesi kaldır ── */
* {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  font-size: .95rem !important;
}

/* ── FIX: Shop sayfası boş alan ── */
/* Kadence'in ürettiği boş header alanını kaldır */
.woocommerce-page .entry-header,
.woocommerce-page .page-header,
.woocommerce-shop .entry-header,
.woocommerce-shop .page-header,
.woocommerce-products-header,
.shop-notice {
  display: none !important;
}

/* Shop'ta Kadence'in body padding'ini sıfırla */
.woocommerce-page #primary,
.woocommerce-page .content-area,
.woocommerce-page #main,
.woocommerce-page .site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Shop page'de nav sonrası marquee hemen başlasın */
.woocommerce-page .arm-marquee {
  margin-top: 60px !important;
}
@media (min-width: 768px) {
  .woocommerce-page .arm-marquee {
    margin-top: 70px !important;
  }
}

/* Kadence shop wrapper boşlukları sıfırla */
.woocommerce-page .kadence-inner-column-inner,
.woocommerce-page .wp-block-group,
.woocommerce-page .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Boş gri alan (Kadence page hero) */
.page-title-area,
.hero-section,
.kadence-blocks-header-section {
  display: none !important;
}

/* ── FIX: Shop hero yerine sadece şeritler ── */
/* Shop sayfasında nav markup yok (Kadence render ediyor)
   bu yüzden body'ye top padding ver */
body.woocommerce.archive {
  padding-top: 0 !important;
}

/* ── FIX: "ADD TO CART" metni düzelt ── */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button {
  font-size: .6rem !important;
  letter-spacing: .08em !important;
  line-height: 1.4 !important;
  padding: .65rem .8rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* ── FIX: Ürün kartı iç boşluk ── */
.woocommerce ul.products li.product {
  padding: 0 !important;
  overflow: hidden !important;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: flex !important;
  flex-direction: column !important;
  padding: 1rem !important;
}

.woocommerce ul.products li.product img {
  margin: -0px -0px 1rem -0px !important;
  width: calc(100% + 0px) !important;
  border-radius: 0 !important;
}

