/* ── WooCommerce Global CSS Resets ──────────────────────────────────────── */
/* Overrides WooCommerce's own woocommerce.css defaults.
   Loaded on every WC page via enqueue.php.                                  */

/* WC shortcode'un oluşturduğu .woocommerce wrapper extra boşluk eklememeli */
.woocommerce-page .woocommerce,
.woocommerce-account .woocommerce,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  margin-top: 0 !important;
}

/* ════════════════════════════════════════════════════════
   1. NOTICES — strip WC's olive/teal defaults + bullet
════════════════════════════════════════════════════════ */

/* Wrapper'ı container içinde tut — WC'nin AJAX'ı bazen body'e prepend yapar */
.woocommerce-notices-wrapper {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .woocommerce-notices-wrapper { padding-left: 1rem; padding-right: 1rem; }
}
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
  border: none !important;
  border-top: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  list-style: none !important;
  box-shadow: none !important;
  color: inherit !important;
}
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error {
  border: none !important;
  border-top: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  list-style: none !important;
  box-shadow: none !important;
}
.woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info {
  border: none !important;
  border-top: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 1rem !important;
  list-style: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

/* Remove WC icon-font bullet on notices */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* "Sepetim" / "View Cart" button inside notices */
.woocommerce-message .button,
.woocommerce-message a.button,
.woocommerce-error .button,
.woocommerce-error a.button,
.woocommerce-info .button,
.woocommerce-info a.button {
  display: inline-flex !important;
  align-items: center !important;
  float: none !important;
  margin: 0 !important;
  padding: .25rem .75rem !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #2563eb !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: .375rem !important;
  font-size: .8125rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
}
.woocommerce-message .button:hover,
.woocommerce-message a.button:hover {
  background: #f1f5f9 !important;
  color: #1d4ed8 !important;
}

/* ════════════════════════════════════════════════════════
   2. SALE BADGE — replace WC's olive circular shape
════════════════════════════════════════════════════════ */
.onsale {
  background: #ef4444 !important;
  background-color: #ef4444 !important;
  color: #fff !important;
  border-radius: .375rem !important;
  font-size: .6875rem !important;
  font-weight: 700 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
  padding: .2rem .5rem !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.5 !important;
  top: .625rem !important;
  left: .625rem !important;
  right: auto !important;
  border: none !important;
  box-shadow: none !important;
}

/* ════════════════════════════════════════════════════════
   3. ADD TO CART BUTTON — override WC's #7f54b3 purple
════════════════════════════════════════════════════════ */
.single_add_to_cart_button,
.single_add_to_cart_button.button,
.single_add_to_cart_button.button.alt,
button.single_add_to_cart_button {
  background: #2563eb !important;
  background-color: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
  box-shadow: none !important;
}
.single_add_to_cart_button:hover,
.single_add_to_cart_button.button:hover,
.single_add_to_cart_button.button.alt:hover {
  background: #1d4ed8 !important;
  background-color: #1d4ed8 !important;
  color: #fff !important;
  border-color: #1d4ed8 !important;
  box-shadow: none !important;
}
.single_add_to_cart_button:disabled,
.single_add_to_cart_button.button:disabled {
  opacity: .55 !important;
  cursor: not-allowed !important;
}

/* ════════════════════════════════════════════════════════
   4. ARCHIVE PRODUCT BUTTONS
   archive-product.php <style> bloğu bu stilleri yönetir.
   wc-global.css burada müdahale etmez.
════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   5. PRICE — override WC's brownish default colors
════════════════════════════════════════════════════════ */
.price ins,
.price ins .woocommerce-Price-amount,
span.price ins {
  text-decoration: none !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}
.price del,
.price del .woocommerce-Price-amount,
span.price del {
  color: #94a3b8 !important;
  opacity: 1 !important;
}

/* ════════════════════════════════════════════════════════
   6. STAR RATING — consistent amber color
════════════════════════════════════════════════════════ */
.star-rating span::before,
.star-rating::before {
  color: #f59e0b !important;
}

/* ════════════════════════════════════════════════════════
   7. SINGLE PRODUCT TABS — strip WC's gray tabbed UI
════════════════════════════════════════════════════════ */
/* Remove the horizontal rule WC adds as ::before on ul.tabs */
.woocommerce-tabs ul.tabs::before,
.woocommerce-tabs .tabs::before {
  display: none !important;
  content: none !important;
  border: none !important;
}

/* Tabs nav container */
.wsp-tabs-wrap .woocommerce-tabs .tabs,
.wsp-tabs-wrap .woocommerce-tabs ul.tabs {
  display: flex !important;
  border-bottom: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  overflow: hidden !important;
}

/* Individual tab items — remove WC's gray bordered style */
.wsp-tabs-wrap .woocommerce-tabs .tabs li,
.wsp-tabs-wrap .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  position: relative !important;
  z-index: auto !important;
}

/* Tab links */
.wsp-tabs-wrap .woocommerce-tabs .tabs li a,
.wsp-tabs-wrap .woocommerce-tabs ul.tabs li a {
  display: flex !important;
  align-items: center !important;
  padding: .875rem 1.375rem !important;
  font-size: .875rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -1px !important;
  transition: color .15s !important;
  white-space: nowrap !important;
}
.wsp-tabs-wrap .woocommerce-tabs .tabs li a:hover,
.wsp-tabs-wrap .woocommerce-tabs ul.tabs li a:hover {
  color: #0f172a !important;
}

/* Active tab */
.wsp-tabs-wrap .woocommerce-tabs .tabs li.active,
.wsp-tabs-wrap .woocommerce-tabs ul.tabs li.active {
  background: transparent !important;
  border: none !important;
}
.wsp-tabs-wrap .woocommerce-tabs .tabs li.active a,
.wsp-tabs-wrap .woocommerce-tabs ul.tabs li.active a {
  color: #0f172a !important;
  background: #fff !important;
  border-bottom-color: #2563eb !important;
}

/* Tab panel */
.wsp-tabs-wrap .woocommerce-tabs .woocommerce-Tabs-panel {
  padding: 2rem !important;
  border: none !important;
  background: #fff !important;
}

/* Hide redundant h2 inside tab panels */
.wsp-tabs-wrap .woocommerce-tabs .woocommerce-Tabs-panel > h2,
.wsp-tabs-wrap .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child {
  display: none !important;
}

/* Reviews title (separate element) */
.wsp-tabs-wrap .woocommerce-Reviews-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 1.25rem !important;
}

/* "No reviews" text */
.wsp-tabs-wrap .woocommerce-noreviews {
  color: #94a3b8 !important;
  font-size: .9rem !important;
  margin: 0 0 1.5rem !important;
}

/* Review form inputs */
.wsp-tabs-wrap #reviews .comment-form input[type="text"],
.wsp-tabs-wrap #reviews .comment-form input[type="email"],
.wsp-tabs-wrap #reviews .comment-form textarea {
  width: 100% !important;
  padding: .625rem .875rem !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: .625rem !important;
  font-size: .875rem !important;
  outline: none !important;
  box-sizing: border-box !important;
  background: #fff !important;
  color: #0f172a !important;
}
.wsp-tabs-wrap #reviews .comment-form input:focus,
.wsp-tabs-wrap #reviews .comment-form textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.07) !important;
}
.wsp-tabs-wrap #reviews .comment-form textarea {
  min-height: 120px !important; resize: vertical !important;
}
.wsp-tabs-wrap #reviews #submit {
  padding: .7rem 1.75rem !important;
  background: #0f172a !important; background-color: #0f172a !important;
  color: #fff !important; border: none !important;
  border-radius: .625rem !important;
  font-size: .9rem !important; font-weight: 700 !important;
  cursor: pointer !important;
}
.wsp-tabs-wrap #reviews #submit:hover {
  background: #1e293b !important; background-color: #1e293b !important;
}

/* Rating select → keep it styled until JS replaces with stars */
.wsp-tabs-wrap #rating {
  padding: .5rem .875rem !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: .5rem !important;
  font-size: .875rem !important;
  outline: none !important;
  color: #0f172a !important;
  background: #fff !important;
  margin-top: .375rem !important;
}

/* Star widget (after JS transforms the select) */
.wsp-tabs-wrap .stars a { color: #d1d5db !important; }
.wsp-tabs-wrap .stars:hover a,
.wsp-tabs-wrap .stars a:hover,
.wsp-tabs-wrap .stars a:hover ~ a { color: #f59e0b !important; }
.wsp-tabs-wrap .stars.selected a.active { color: #f59e0b !important; }
