/* nkp-shop.css: Feinschliff fuer Produktraster und Checkout (liegt im Theme, kommt mit dem Paket live; das Custom CSS der Datenbank bleibt unberuehrt). */

/* ---------- Produktraster: gleiche Hoehe je Zeile, Knoepfe unten buendig ---------------------------------------------- */
.shop-products.row.grid-view:not(.owl-carousel) { display: flex; flex-wrap: wrap; }
.shop-products.row.grid-view:not(.owl-carousel)::before,
.shop-products.row.grid-view:not(.owl-carousel)::after { display: none; content: none; }
.shop-products.row.grid-view:not(.owl-carousel) > .item-col { float: none; display: flex; }
/* Karussell (z. B. "Fuer Dich ausgesucht" auf der Startseite, Owl): gleiche Hoehe ueber die Slides */
.shop-products.owl-carousel .owl-stage { display: flex; }
.shop-products.owl-carousel .owl-stage::after { display: none; content: none; }
.shop-products.owl-carousel .owl-item { display: flex; float: none; }
.shop-products.owl-carousel .owl-item .item-col { display: flex; float: none; width: 100%; }
.shop-products.row.grid-view .item-col .product-wrapper { display: flex; flex-direction: column; float: none; width: 100%; }
.shop-products.row.grid-view .item-col .product-wrapper .list-col8 { display: flex; flex: 1 1 auto; float: none; width: 100%; }
.shop-products.row.grid-view .item-col .product-wrapper .gridview { display: flex; flex: 1 1 auto; width: 100%; }
.shop-products.row.grid-view .item-col .product-wrapper .text-block { display: flex; flex-direction: column; flex: 1 1 auto; float: none; width: 100%; }
.shop-products.row.grid-view .item-col .product-wrapper .grid-add-to-cart { margin-top: auto; padding-top: 14px; width: 100%; }

/* ---------- Knoepfe: schlanker und ruhiger (kein grauer Rahmen, Details als Umrissknopf) -------------------------------- */
.shop-products .item-col .grid-add-to-cart p.add_to_cart_inline {
	display: flex !important;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important; /* ueberschreibt den eingebauten Rahmen (4px grau) des WooCommerce-Shortcodes */
	background: none !important;
}
.shop-products .item-col .grid-add-to-cart a.button {
	display: block;
	float: none;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}
.shop-products .item-col .grid-add-to-cart a.button:not(.grid-details) {
	background: #736b78;
	border: 1px solid #736b78;
	color: #fff;
}
.shop-products .item-col .grid-add-to-cart a.button:not(.grid-details):hover {
	background: #5e5764;
	border-color: #5e5764;
	color: #fff;
}
.shop-products .item-col .grid-add-to-cart a.grid-details {
	background: transparent;
	border: 1px solid #736b78;
	color: #5e5764;
}
.shop-products .item-col .grid-add-to-cart a.grid-details:hover {
	background: #736b78;
	border-color: #736b78;
	color: #fff;
}
/* "Warenkorb anzeigen" nach dem Hinzufuegen: das Seitenpanel oeffnet sich ohnehin */
.shop-products .item-col .grid-add-to-cart a.added_to_cart { display: none; }
@media (max-width: 480px) {
	.shop-products .item-col .grid-add-to-cart a.button { padding: 9px 6px; font-size: 11px; letter-spacing: .05em; }
}

/* ---------- Checkout: Gewaehrleistungs-Hinweis rechts unter dem Bestellknopf ---------------------------------------------- */
.wc-gzd-legal-guarantee-checkout { clear: both; margin: 18px 0 0; text-align: center; }
.wc-gzd-legal-guarantee-checkout img,
.wc-gzd-legal-guarantee-checkout svg { display: inline-block; max-width: 100%; height: auto; }

/* Shop-Meldungen (Warenkorb, Kasse, Konto): ruhige Karte mit farbigem Streifen statt Standard-Balken */
.main-container .woocommerce-message,
.main-container .woocommerce-info,
.main-container .woocommerce-error {
  position: relative;
  display: block;
  margin: 0 0 18px !important;
  padding: 16px 20px 16px 54px;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .65);
  border-left: 5px solid #736b78;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(40, 55, 42, .14);
  color: #3d3a40;
  font-size: 16px;
  line-height: 24px;
  list-style: none;
  outline: 0;
}
.main-container .woocommerce-message { border-left-color: #5b8c61; }
.main-container .woocommerce-error { border-left-color: #b81c23; }
.main-container .woocommerce-message:before,
.main-container .woocommerce-info:before,
.main-container .woocommerce-error:before {
  position: absolute;
  left: 18px;
  top: 16px;
  height: auto;
  line-height: 24px;
  font-size: 20px;
  color: #736b78;
}
.main-container .woocommerce-message:before { color: #5b8c61; }
.main-container .woocommerce-error:before { color: #b81c23; }
.main-container .woocommerce-message:focus,
.main-container .woocommerce-info:focus,
.main-container .woocommerce-error:focus { outline: 0; }
.main-container .woocommerce-error li { margin: 0; padding: 2px 0; list-style: none; }
.main-container .woocommerce-message a:not(.button),
.main-container .woocommerce-info a:not(.button),
.main-container .woocommerce-error a:not(.button) {
  color: #736b78;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.main-container .woocommerce-message a:not(.button):hover,
.main-container .woocommerce-info a:not(.button):hover,
.main-container .woocommerce-error a:not(.button):hover { color: #3d3a40; }
.main-container .woocommerce-message .button,
.main-container .woocommerce-info .button {
  float: right;
  margin: -4px 0 -4px 16px;
  padding: 8px 18px;
  border-radius: 20px;
  background: #736b78;
  color: #fff;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 20px;
}
.main-container .woocommerce-message .button:hover,
.main-container .woocommerce-info .button:hover { background: #5b8c61; }
@media (max-width: 600px) {
  .main-container .woocommerce-message .button,
  .main-container .woocommerce-info .button { float: none; display: inline-block; margin: 10px 0 0; }
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .main-container .woocommerce-message,
  .main-container .woocommerce-info,
  .main-container .woocommerce-error { background: rgba(255, 255, 255, .55); }
}
