@media (min-width: 1000px) {
    body.shop-categories ul.products li.type-product,
    body.shop-categories ul.products li.product-category { display: none; }

    body.shop-products ul.products li.type-product { display: list-item !important; }
    body.shop-products ul.products li.product-category.dynamic-subcategory { display: list-item !important; }
    body.shop-products ul.products li.product-category:not(.dynamic-subcategory) { display: none !important; }
	body.shop-products ul.products.columns-4 {
	    margin-top: 30px !important;
	}

	.is-hidden {
		display: none !important;
	}

	@media (min-width: 1000px) {
	  /* Wenn Sidebar vorhanden → 2 Spalten */
	  .woocommerce.archive #sidebar.span_3 {
		display: block;
	  }

	  .woocommerce.archive:has(#sidebar.span_3) .container.main-content .row {
		display: grid;
		grid-template-columns: 300px minmax(0, 1fr);
		grid-gap: 30px;
	  }

	  .woocommerce.archive:has(#sidebar.span_3) .container.main-content .post-area {
		grid-column: 2;
		margin-top: -60px !important;
	  }

	  /* Wenn Sidebar fehlt → 1 Spalte */
	  .woocommerce.archive:not(:has(#sidebar.span_3)) .container.main-content .row {
		display: block !important; /* Standard-Layout */
	  }

	  .woocommerce.archive:not(:has(#sidebar.span_3)) .container.main-content .post-area {
		margin-top: 0 !important;
		width: 100% !important;
		padding-right: 0 !important;
	  }
	}



	.woocommerce-ordering,
	.woocommerce-result-count,
	.woocommerce-breadcrumb,
	.woocommerce-products-header {
		display: none !important;
	}


    /* ---- search bar + heading styling ---- */
    .shop-searchbar-container {
        text-align: center;
        /*margin: 50px auto 30px auto;*/
    }

	.nectar-shop-header {
		display: none !important;
	}

	.shop-searchbar-container .fibofilters-search-only {
		max-width: 500px;
		margin: 0 auto;
	}

	/* hide category + price blocks inside search-only container */
	.fibofilters-search-only
	.fibofilters-block--source--tax_product_cat.fibofilters-block--url-slug--cat,
	.fibofilters-search-only
	.fibofilters-block--source--price.fibofilters-block--url-slug--price {
		display: none !important;
	}

	.fibofilters-search-only
	.fibofilters-block--source--search.fibofilters-block--url-slug--search {
		padding: 0px !important;
	}

	/* hide the "Suche" headline */
	.fibofilters-search-only .fibofilters-block__headline {
		display: none !important;
	}
	.fibofilters-search-only input[type="search"] {
		border: 1px solid #ccc !important;
		border-radius: 6px; /* fully rounded like ChatGPT */
		padding: 8px 14px;
		outline: none;
		background-color: #fff;
		color: #000;
		transition: all 0.15s ease-in-out;
	}

	.fibofilters-search-only input[type="search"]:focus {
		border: 2px solid #555 !important;
		box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
	}

	.fibofilters-search-only input[type="search"]::placeholder {
		color: #888;
	}
}
	/* slider base styling (unchanged) */
	.subcategory-slider {
		position: relative;
		margin: 25px 0;
		display: flex;
		align-items: center;
	}


	/* --- arrows only visible on hover --- */
	/* --- next arrow -- hidden unless overflow --- */
	.subcategory-slider button.subcat-next {
		margin-left: 8px;
		background: rgba(0,0,0,.5);
		color: #fff;
		border: none;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		cursor: pointer;
		z-index: 50;
		flex-shrink: 0;
		opacity: 0;           /* hidden */
		pointer-events: none; /* disabled */
		display: none;        /* fully hidden */
	}

	.subcategory-slider.has-overflow button.subcat-next {
		display: block;
		opacity: 1;
		pointer-events: auto;
	}
	/* --- LEFT ARROW (hidden unless overflow-left) --- */
	.subcategory-slider button.subcat-prev {
		position: absolute;
		left: 0;
		margin-right: 8px;
		background: rgba(0,0,0,.5);
		color: #fff;
		border: none;
		width: 32px;
		height: 32px;
		border-radius: 50%;
		cursor: pointer;
		z-index: 50;
		flex-shrink: 0;
		opacity: 0;
		pointer-events: none;
		display: none;
	}

	/* Show when overflow exists on left side */
	.subcategory-slider.has-left-overflow button.subcat-prev {
		display: block;
		opacity: 1;
		pointer-events: auto;
	}


	/* --- fixed fade overlay --- */
	.subcategory-slider.has-overflow::after {
		content: "";
		position: absolute;
		right: 40px;
		top: 0;
		width: 50px;
		height: 100%;
		pointer-events: none;
		background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
		z-index: 40;
		opacity: 1;
		transition: opacity 0.25s ease;
	}

    ul.dynamic-subcategories {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        margin: 0;
        list-style: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
        border: none;
        position: relative;
        flex: 1;
        padding-right: 60px;
        transition: opacity 0.3s ease;
    }
    ul.dynamic-subcategories::-webkit-scrollbar { width: 0; height: 0; display: none; }
    ul.dynamic-subcategories { scrollbar-width: none; -ms-overflow-style: none; }
    ul.dynamic-subcategories:active { cursor: grabbing; }
    ul.dynamic-subcategories li { flex: 0 0 auto; list-style: none !important; }

    ul.dynamic-subcategories li.slider-cat-item a.subcategory-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background: #ffcd00;
        text-decoration: none;
        color: #222;
        font-size: .9em;
        font-weight: 500;
        transition: all .3s ease;
        white-space: nowrap;
        opacity: 1;
    }
    ul.dynamic-subcategories li.slider-cat-item a.subcategory-button:hover {
        background: #fff4cb;
		border: 1px solid #ccc;
    }
    ul.dynamic-subcategories li.slider-cat-item a.subcategory-button.active {
        background: #ffcd00;
		border: 1px solid #bbb;
        opacity: 1 !important;
    }

    ul.dynamic-subcategories.greyed a.subcategory-button:not(.active) {
        background: #e4e4e4;
		border: 1px solid #ccc;
    }

    ul.dynamic-subcategories, ul.dynamic-subcategories * {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
	ul.dynamic-subcategories a,
	ul.dynamic-subcategories img,
	ul.dynamic-subcategories li {
		-moz-user-select: none;
		-webkit-user-drag: none;
		user-drag: none;
		user-select: none;
		pointer-events: auto;
	}


	/* === MAIN CATEGORY CAROUSEL === */
	#vt-main-carousel-wrapper {
		position: relative;
		width: 100%;
		padding: 20px 60px 0;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.carousel-viewport {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 200px;
		overflow: visible;
		touch-action: pan-y;
		user-select: none;
		-webkit-user-select: none;
	}
	.carousel-track {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 14px;
		perspective: 1400px;
		perspective-origin: 50% 50%;
	}
	.maincat-tile {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		text-decoration: none;
		color: #222;
		border-radius: 16px;
		background: #ffcd00;
		transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		            width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		            height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		            opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		            background 0.2s ease;
		padding: 0;
		flex: 0 0 auto;
		box-shadow: 0 6px 16px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.06);
		overflow: hidden;
		cursor: pointer;
		border: none;
		transform-style: preserve-3d;
		backface-visibility: hidden;
	}
	.maincat-tile[data-pos="center"] {
		width: 280px;
		height: 187px;
		z-index: 5;
		opacity: 1;
		transform: rotateY(0deg);
		box-shadow: 0 14px 32px rgba(0,0,0,0.22), 0 4px 10px rgba(0,0,0,0.10);
	}
	.maincat-tile[data-pos="near-left"] {
		width: 224px;
		height: 149px;
		z-index: 4;
		opacity: 0.92;
		transform: rotateY(-10deg);
	}
	.maincat-tile[data-pos="near-right"] {
		width: 224px;
		height: 149px;
		z-index: 4;
		opacity: 0.92;
		transform: rotateY(10deg);
	}
	.maincat-tile[data-pos="far-left"] {
		width: 184px;
		height: 123px;
		z-index: 3;
		opacity: 0.7;
		transform: translateX(14px) rotateY(-16deg);
	}
	.maincat-tile[data-pos="far-right"] {
		width: 184px;
		height: 123px;
		z-index: 3;
		opacity: 0.7;
		transform: translateX(-14px) rotateY(16deg);
	}
	.maincat-tile[data-pos="hidden"] {
		display: none !important;
	}
	.maincat-tile[data-pos="far-left"]   { order: 1; }
	.maincat-tile[data-pos="near-left"]  { order: 2; }
	.maincat-tile[data-pos="center"]     { order: 3; }
	.maincat-tile[data-pos="near-right"] { order: 4; }
	.maincat-tile[data-pos="far-right"]  { order: 5; }
    .maincat-tile *  { pointer-events: none }
	.maincat-tile img {
		width: 100%;
		flex: 1 1 auto;
		min-height: 0;
		object-fit: contain;
		padding: 6px 6px 0;
		display: block;
		transition: opacity 0.3s ease, filter 0.3s ease;
		box-sizing: border-box;
		transform: scale(2);
	}
	.maincat-tile span {
		padding: 5px 12px 20px;
		font-weight: 600;
		font-size: 0.95em;
		display: block;
		line-height: 1.3;
	}
	.maincat-tile[data-pos="center"] span {
		font-size: 1.1em;
		font-weight: 700;
	}
	.maincat-tile:hover { background: #fff4cb; }
	.maincat-tile.active { background: #ffcd00; }
	.maincat-greyed .maincat-tile:not(.active) { background: #e4e4e4; }
	.maincat-greyed .maincat-tile:not(.active):hover { background: #fff4cb; }
	/* Carousel arrows */
	.carousel-nav {
		position: absolute;
		top: calc(50% - 20px);
		transform: translateY(-50%);
		width: 48px;
		height: 48px;
		border-radius: 50%;
		background: #fff;
		border: 1px solid #000000;
		cursor: pointer;
		z-index: 10;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 8px 20px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.10) !important;
		padding: 0;
		color: #222;
	}
	.carousel-nav svg {
		width: 18px;
		height: 18px;
		display: block;
	}
	.carousel-nav--prev { left: 4px; }
	.carousel-nav--next { right: 4px; }
	.carousel-nav:hover { background: #fafafa; }
	.carousel-nav.is-hidden { display: none !important; }
	/* Close button */
	.carousel-close-row {
		margin-top: 0;
		min-height: 0;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
		z-index: 6;
	}
	.carousel-close {
		position: absolute;
		top: -18px;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		background: #222;
		color: #fff;
		border: none;
		font-size: 18px;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: background 0.2s;
	}
	.carousel-close:hover { background: #444; }
	.carousel-close.is-hidden { display: none; }
	/* Dot indicators */
	.carousel-dots {
		display: flex;
		gap: 8px;
		justify-content: center;
		margin-top: 40px;
		margin-bottom: 4px;
	}
	.carousel-dot {
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background: #ccc;
		cursor: pointer;
		transition: background 0.25s;
		flex-shrink: 0;
	}
	.carousel-dot.active { background: #333; }

@media (max-width: 999px) {
	#vt-main-carousel-wrapper { padding: 16px 36px 0; }
	.carousel-viewport { min-height: 150px; }
	.carousel-track { gap: 0; perspective: 800px; }
	.maincat-tile[data-pos="center"] { width: 200px; height: 133px; }
	.maincat-tile[data-pos="near-left"]  { width: 150px; height: 100px; margin-right: -8px; transform: rotateY(-38deg); }
	.maincat-tile[data-pos="near-right"] { width: 150px; height: 100px; margin-left: -8px;  transform: rotateY(38deg); }
	.maincat-tile[data-pos="far-left"],
	.maincat-tile[data-pos="far-right"] { display: none !important; }
	.maincat-tile span { font-size: 0.85em; padding: 4px 10px 14px; }
	.maincat-tile[data-pos="center"] span { font-size: 0.95em; }
	.carousel-nav { width: 40px; height: 40px; }
	.carousel-nav--prev { left: -20px; }
	.carousel-nav--next { right: -20px; }
	.carousel-nav svg { width: 16px; height: 16px; }
	.carousel-close { width: 32px; height: 32px; top: -16px; font-size: 16px; }
	.carousel-dots { flex-wrap: wrap; max-width: 90%; margin-top: 30px; }
}

.fibofilters-horizontal-filters, .fibofilters-mobile-filters {
	display: none;
}
