/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Child Theme für Astra
 Author:       Dein Name
 Template:     astra
 Version:      1.0.0
*/

/* ==============================
   GLOBAL
   ============================== */

/* Site Title + Description verstecken */
.site-title {
  display: none !important;
}
.site-description {
  display: none !important;
}

/* Meta-Daten (Blog) ausblenden */
.posted-on,
.byline,
.author,
.entry-meta {
  display: none !important;
}

/* Fokusrahmen (Accessibility!) deaktivieren */
button:focus,
.button:focus,
a:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* WooCommerce Result Count ausblenden */
.woocommerce .woocommerce-result-count {
  display: none !important;
}

/* Cart Badge mit Zahl */
.menu-item.cart-icon .cart-badge {
  position: absolute;
  top: -8px;     /* weiter nach oben */
  right: -10px;   /* weiter nach rechts */

  min-width: 18px;
  min-height: 18px;
  padding: 1px 4px;

  background: #53cf36;   /* Grün */
  color: #fff;           /* Zahl weiß */
  font-size: 11px;       /* kleinere Zahl */
  font-weight: 600;
  line-height: 1.2;
  text-align: center;

  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}




/* ==============================
   PRODUKTKARTE (Shop Loop + WC Blocks)
   ============================== */

/* Kartenstil mit runden Ecken */
.woocommerce ul.products li.product,
.wc-block-product {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  text-align: center !important;
  padding: 12px;
}
.woocommerce ul.products li.product:hover,
.wc-block-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

/* Produktbild */
.woocommerce ul.products li.product a img,
.wc-block-product img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  display: block;
  margin: 0 0 12px;
  border-radius: 8px;
}

/* Kategorie */
.woocommerce ul.products li.product .woocommerce-loop-category,
.woocommerce ul.products li.product .ast-woo-product-category,
.wc-block-product .product-categories {
  display: block !important;
  font-size: 0.9rem;
  font-weight: 500;
  color: #0d6efd;
  margin: 0 0 6px;
  text-align: center !important;
}

/* Sterne */
.fake-stars-wrapper {
  display: block;
  text-align: center;
  margin: 2px 0 6px;
  font-size: 18px;
  line-height: 1.2;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #f5a623 !important;
  -webkit-text-fill-color: #f5a623 !important;
}

/* Produkttitel */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-product .wp-block-post-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 0px 0 2px;
  line-height: 1.3;
  text-align: center !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover,
.wc-block-product .wp-block-post-title a:hover {
  color: #0d6efd;
}
.wc-block-product .wp-block-post-title a {
  text-decoration: none;
  color: inherit;
}

/* Preis */
.woocommerce ul.products li.product .price,
.wc-block-product .wc-block-components-product-price,
.wc-block-product .wc-block-components-product-price .woocommerce-Price-amount {
  text-align: center !important;
  margin: 5px 0 16px;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #222 !important;
  line-height: 1.0;
}
.woocommerce ul.products li.product .price del,
.wc-block-product .wc-block-components-product-price del {
  color: #999;
  margin-right: 6px;
}
.woocommerce ul.products li.product .price ins,
.wc-block-product .wc-block-components-product-price ins {
  color: #0d6efd;
  font-weight: 700;
  text-decoration: none;
}

/* Buttons */
.woocommerce ul.products li.product .added_to_cart {
  display: none !important;
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .button.added,
.wc-block-product .wp-block-button__link {
  border-radius: 6px;
  min-width: 160px;
  min-height: 44px;
  margin: 0px auto 20px auto;
  display: inline-block;
  text-align: center;
  font-weight: 600;
  padding: 14px 26px;
  transition: background .2s;
  font-size: 1.1rem !important;
  line-height: 1.4 !important;
}

/* Sale Badge */
.ast-onsale-card {
  background: #ff5400 !important;
  color: #fff !important;
  border-radius: 15px !important;
  padding: 4px 8px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  top: 10px !important;
  left: 10px !important;
  position: absolute !important;
}

/* Abstand über Kategorien */
.woocommerce ul.products li.product .product-categories {
  margin-top: 10px;
}

/* ==============================
   CHECKOUT
   ============================== */

/* Rahmen um Bestellübersicht entfernen */
#order_review_heading {
  display: block;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 1em 0 !important;
}

/* Abstand unter "Buy Now"-Button */
#place_order {
  margin-bottom: 20px !important;
}

/* ==============================
   HEADER / CART ICON
   ============================== */

.menu-item.cart-icon {
  position: relative;
}
.menu-item.cart-icon a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  position: relative;
}


/* ==============================
   PRODUKTSEITE
   ============================== */

/* Attribute im Meta-Bereich */
.product-meta-attributes {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}
.product-meta-attributes table {
  border: none;
  margin: 0;
}
.product-meta-attributes th,
.product-meta-attributes td {
  padding: 2px 6px;
  border: none;
}

/* Kategorie über dem Produkttitel ausblenden */
.summary.entry-summary .single-product-category {
  display: none !important;
}

/* ==============================
   FOOTER
   ============================== */

/* Social Icons */
.footer-social-inner-wrap .footer-social-item {
  opacity: 0.4 !important;
}

/* Footer-Menü */
#astra-footer-menu .menu-link {
  color: #999 !important;
}
#astra-footer-menu .menu-link:hover {
  color: #666 !important;
}

/* ==============================
   RESPONSIVE
   ============================== */

/* Shop Grid auf Mobile: 1 Spalte */
@media (max-width: 767px) {
  .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
}
.n2-ss-slider[data-responsive="fullwidth"] {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.n2-ss-slider[data-responsive="fullwidth"] .n2-ss-layers-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* shadow weg in produktbeschreibungen */
.entry-content img {
    box-shadow: none !important;
}


