/* ── Products Section ─────────────────────────────────── */
.artis-products-section {
	padding: 60px 0;
	background: #fafafa;
}
.artis-products-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 5%;
	margin-bottom: 36px;
	gap: 16px;
}
.artis-products-header-text h2 {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	color: var(--wp--preset--color--heading);
}
.artis-products-header-text h2::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	background: var(--wp--preset--color--primary);
	border-radius: 2px;
	margin-top: 10px;
}
.artis-products-header-text p {
	margin: 0;
	color: #888;
	font-size: 15px;
}
/* Section-Titel: primary statt weiß */
.artis-section-title {
	color: var(--wp--preset--color--primary) !important;
}

/* Carousel outer: genug Luft, damit Card-Shadows nicht hart clippen */
.artis-products-carousel-outer {
	margin: -12px 0 0;
	overflow: hidden;
	padding: 12px 0 32px;
}

/* Externe Navigation unter dem Carousel – zentriert */
.artis-carousel-nav {
	display: flex;
	gap: 10px;
	justify-content: center;
	padding: 14px 0 0;
}
.artis-nav-prev,
.artis-nav-next {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--primary);
	background: transparent;
	color: var(--wp--preset--color--primary);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, color 0.2s ease;
	padding: 0;
}
.artis-nav-prev:hover,
.artis-nav-next:hover {
	background: var(--wp--preset--color--primary);
	color: #fff;
}
.artis-nav-prev.swiper-button-disabled,
.artis-nav-next.swiper-button-disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* "Alle ansehen" Button: solid primary für gute Sichtbarkeit auf dunklem Bg */
.artis-btn-outline-light .wp-block-button__link {
	background-color: var(--wp--preset--color--primary) !important;
	border-color: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	padding: 7px 16px !important;
	border-radius: 6px !important;
	transition: filter 0.2s ease !important;
}
.artis-btn-outline-light .wp-block-button__link:hover {
	filter: brightness(1.1) !important;
}


.artis-products-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 20px;
	border: 1.5px solid var(--wp--preset--color--primary);
	border-radius: 8px;
	color: var(--wp--preset--color--primary) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
	flex-shrink: 0;
}
.artis-products-all-btn:hover {
	background-color: var(--wp--preset--color--primary);
	color: #fff !important;
}

/* Swiper Container (von JS eingefügt) */
.artis-products-swiper {
	padding: 8px 0 28px;
}
.artis-products-swiper .swiper-wrapper {
	align-items: stretch;
}
.artis-product-slide {
	display: flex !important;
	flex-direction: column;
	height: auto;
	width: 230px !important;
}
.artis-product-slide > .artis-product-card {
	flex: 1;
}

/* <li> border reset (WC default) */
li.artis-product-slide {
	border: none !important;
	outline: none !important;
}

/* Produkt-Card */
.artis-product-card {
	background: #fff !important;
	border: 1.5px solid rgba(255,148,70,0.28) !important;
	border-radius: 12px !important;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
	color: #1a1a1a !important;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.artis-product-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.artis-product-card-img,
.artis-product-card .wp-block-woocommerce-product-image,
.artis-product-card .wc-block-components-product-image,
.artis-product-card .artis-product-img {
	background: var(--wp--preset--color--section-bg);
	border-radius: 8px 8px 0 0 !important;
	box-sizing: border-box;
	display: block;
	margin: 5px 5px 0 !important;
	max-width: calc(100% - 10px) !important;
	overflow: hidden;
	width: calc(100% - 10px) !important;
}

.artis-product-card-img img {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto;
	object-fit: cover;
	transition: transform 0.4s ease;
	width: 100%;
}

.artis-product-card:hover .artis-product-card-img img {
	transform: scale(1.04);
}

.artis-product-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px 16px;
}
.artis-product-card .artis-product-card-footer {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	flex-wrap: nowrap !important;
	gap: 8px !important;
	margin-top: auto;
}
.artis-product-card .artis-product-card-footer .artis-product-card-price {
	flex: 1;
	min-width: 0;
}
.artis-product-card .artis-product-card-cta {
	flex-shrink: 0 !important;
	margin-left: auto !important;
}

.artis-product-card-name {
	color: var(--wp--preset--color--heading) !important;
	display: -webkit-box;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	min-height: 40px;
	overflow: hidden;
	text-decoration: none !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.artis-product-card-name:hover {
	color: var(--wp--preset--color--primary) !important;
}

.artis-product-card-price {
	color: var(--wp--preset--color--primary);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
}

.artis-product-card-price .wgm-info {
	color: #686868;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	margin: 2px 0 0;
}

.artis-product-card-btn {
	align-items: center;
	background: var(--wp--preset--color--primary) !important;
	border: 1.5px solid var(--wp--preset--color--primary) !important;
	border-radius: 8px !important;
	color: #ffffff !important;
	display: inline-flex;
	font-size: 13px !important;
	font-weight: 700 !important;
	justify-content: center;
	line-height: 1.2 !important;
	margin-top: auto;
	min-height: 40px;
	padding: 10px 14px !important;
	text-decoration: none !important;
	transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.artis-product-card-btn:hover {
	filter: brightness(1.08);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.13);
	transform: translateY(-1px);
}

/* WC Product Image — kein grauer Rand */
.artis-product-img {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	display: block !important;
	overflow: hidden !important;
	border-radius: 8px 8px 0 0 !important;
	flex-shrink: 0;
}
.artis-product-img a,
.artis-product-img figure {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}
.artis-product-img img {
	width: 100% !important;
	height: 190px !important;
	object-fit: cover !important;
	border-radius: 8px 8px 0 0 !important;
	display: block;
	transition: transform 0.4s ease;
}
.artis-product-card:hover .artis-product-img img {
	transform: scale(1.04);
}

/* Produkt-Details-Zeile (Columns-Block): Preis links, Icon-Button rechts */
.artis-product-card .product-details {
	padding: 10px 12px 12px !important;
	flex: 1;
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 8px !important;
}
.artis-product-card .product-details.wp-block-columns {
	margin-block-start: 0 !important;
}
.artis-product-card .price-col {
	flex: 1 1 0 !important;
	min-width: 0;
	overflow: hidden;
	flex-basis: unset !important;
	width: auto !important;
}

/* WC Produkt-Titel */
.artis-product-title,
.artis-product-title a {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	min-height: calc(14px * 1.35 * 2) !important;
	color: #1a1a1a !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 4px !important;
}
.artis-product-title a:hover {
	color: var(--wp--preset--color--primary) !important;
}

/* WC Preis-Block — Text immer dunkel + Sale-Farben */
.artis-product-card .price-p .woocommerce-Price-amount,
.artis-product-card .price-p .amount {
	color: #1a1a1a !important;
}
.artis-product-card .price-p ins,
.artis-product-card .price-p ins .woocommerce-Price-amount,
.artis-product-card .price-p ins .amount {
	color: var(--wp--preset--color--primary) !important;
	text-decoration: none !important;
	font-weight: 700 !important;
}
.artis-product-card .price-p del,
.artis-product-card .price-p del .woocommerce-Price-amount,
.artis-product-card .price-p del .amount {
	color: #aaa !important;
	font-size: 12px !important;
	font-weight: 400 !important;
}

/* Star Rating */
.artis-product-card .wc-block-components-product-rating__stars {
	color: var(--wp--preset--color--primary) !important;
}

.artis-product-card .cart-col,
.artis-product-card .artis-product-card-cta {
	flex-shrink: 0 !important;
	padding: 0 !important;
	width: 44px !important;
}
.artis-product-card .cart-col {
	flex-basis: 44px !important;
}

.artis-product-card .product-details.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.price-col {
	flex: 1 1 auto !important;
	flex-basis: auto !important;
	min-width: 0 !important;
	width: auto !important;
}

.artis-product-card .product-details.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column.cart-col {
	flex: 0 0 44px !important;
	flex-basis: 44px !important;
	width: 44px !important;
}

/* ── Warenkorb-Icon-Button ─────────────────────────────── */

/* Parent-Theme cart.png ::before unterdrücken */
.artis-product-card .woo-button .add_to_cart_button:before {
	display: none !important;
}

/* Gemeinsame Icon-Button-Basis (alt: .artis-add-to-cart-btn | neu: .artis-product-card-cta) */
.artis-add-to-cart-btn .wp-block-button__link,
.artis-add-to-cart-btn button.wp-block-button__link,
.artis-product-card .artis-product-card-cta .wp-block-button__link {
	align-items: center !important;
	background-color: var(--wp--preset--color--primary) !important;
	border: none !important;
	border-radius: 8px !important;
	color: transparent !important;
	display: inline-flex !important;
	font-size: 0 !important;
	height: 44px !important;
	justify-content: center !important;
	line-height: 0 !important;
	min-height: 44px !important;
	padding: 0 !important;
	position: relative !important;
	text-decoration: none !important;
	transition: filter 0.2s ease, transform 0.2s ease !important;
	width: 44px !important;
	flex-shrink: 0 !important;
}
.artis-add-to-cart-btn .wp-block-button__link::after,
.artis-add-to-cart-btn button.wp-block-button__link::after,
.artis-product-card .artis-product-card-cta .wp-block-button__link::after {
	content: '';
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.artis-add-to-cart-btn .wp-block-button__link:hover,
.artis-add-to-cart-btn button.wp-block-button__link:hover,
.artis-product-card .artis-product-card-cta .wp-block-button__link:hover {
	filter: brightness(1.1) !important;
	transform: translateY(-1px) !important;
}

@media (max-width: 600px) {
	.artis-product-slide {
		width: 190px !important;
	}
}

/* ── Block-Pattern: WC-Blocks in artis-product-card ───── */
.artis-product-card .wp-block-woocommerce-product-image img {
	aspect-ratio: 1 / 1;
	display: block;
	height: auto !important;
	object-fit: cover !important;
	transition: transform 0.4s ease;
	width: 100% !important;
}
.artis-product-card:hover .wp-block-woocommerce-product-image img {
	transform: scale(1.04);
}

/* (0,3,0) — überschreibt shop.css .woocommerce-shop .wp-block-post-title (0,2,0) */
.artis-product-card .artis-product-card-body .wp-block-post-title {
	display: -webkit-box;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	margin: 0 !important;
	min-height: 40px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.artis-product-card .artis-product-card-body .wp-block-post-title a {
	color: var(--wp--preset--color--heading) !important;
	text-decoration: none !important;
}
.artis-product-card .artis-product-card-body .wp-block-post-title a:hover {
	color: var(--wp--preset--color--primary) !important;
}

/* (0,3,0) — überschreibt shop.css .woocommerce-shop .price (0,2,0) */
.artis-product-card .artis-product-card-body .price {
	color: var(--wp--preset--color--primary) !important;
	font-size: 17px !important;
	font-weight: 800 !important;
	margin: 0 !important;
}
.artis-product-card .artis-product-card-body .price ins .woocommerce-Price-amount {
	color: var(--wp--preset--color--primary) !important;
	font-weight: 700 !important;
	text-decoration: none !important;
}
.artis-product-card .artis-product-card-body .price del .woocommerce-Price-amount {
	color: #aaa !important;
	font-size: 12px !important;
	font-weight: 400 !important;
}


/* ── Produkt-Grid (Archive + Related) ──────────────────── */
.artis-product-grid {
	align-items: stretch;
	display: grid !important;
	gap: 24px;
	grid-template-columns: repeat(4, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 900px) {
	.artis-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 520px) {
	.artis-product-grid {
		grid-template-columns: 1fr;
	}
}
