/* ============================================================
   Granola Love – Shopseite „Finde dein Granola“ (Canvas „Shop“)
   Nur auf body.gl-shop-page
   ============================================================ */
body.gl-shop-page {
	--sh-ink: #2A1D14;
	--sh-muted: #5E4A3C;
	--sh-line: #CDBBA5;
	--sh-hair: #E6DCCE;
	--sh-cream: #F7F1E8;
	overflow-x: clip;
}
body.gl-shop-page .woocommerce-products-header { margin: 0 !important; padding: 0 !important; }
body.gl-shop-page .page-description,
body.gl-shop-page .oceanwp-toolbar { display: none !important; }
body.gl-shop-page #content-wrap { padding-top: 0 !important; }

/* ---------- Intro ---------- */
body.gl-shop-page .gl-shop-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; padding: 28px 0 28px; }
body.gl-shop-page .gl-shop-intro__text { display: flex; flex-direction: column; gap: 10px; }
body.gl-shop-page .gl-shop-intro__title {
	margin: 0 !important; font-family: 'Cormorant Garamond', Georgia, serif !important; font-weight: 500 !important;
	font-size: clamp(44px, 6vw, 72px) !important; line-height: 1 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--sh-ink) !important;
}
body.gl-shop-page .gl-shop-intro__sub { margin: 0 !important; font-size: 17px !important; font-weight: 300; color: var(--sh-muted) !important; }
body.gl-shop-page .gl-shop-intro__link { font-size: 15px; font-weight: 500; color: #4A2C1A !important; text-underline-offset: 4px; }
body.gl-shop-page .gl-shop-intro__link:hover { color: #7B4A88 !important; }

/* ---------- Filterleiste ---------- */
body.gl-shop-page .gl-shop-filter {
	position: sticky; top: var(--gl-shop-top, 0px); z-index: 20;
	width: 100vw; margin: 0 calc(50% - 50vw); background: rgba(247, 241, 232, 0.96);
	border-top: 1px solid var(--sh-hair); border-bottom: 1px solid var(--sh-hair);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
body.gl-shop-page .gl-shop-filter__in { width: min(1400px, 90%); margin: 0 auto; padding: 14px 0; display: flex; flex-direction: column; gap: 12px; }
body.gl-shop-page .gl-shop-filter__tabs,
body.gl-shop-page .gl-shop-filter__taste { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.gl-shop-page .gl-shop-filter__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
body.gl-shop-page .gl-shop-filter__label { margin-right: 4px; font-size: 14px; color: var(--sh-muted); }
body.gl-shop-page .gl-shop-filter__sort { display: flex; align-items: center; gap: 14px; }
body.gl-shop-page .gl-shop-filter__count { font-size: 14px; color: var(--sh-muted); white-space: nowrap; }

body.gl-shop-page .gl-shop-pill {
	display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 16px; border-radius: 999px;
	border: 1px solid var(--sh-line); background: #FFFFFF; color: var(--sh-ink); box-shadow: none;
	font-family: 'Jost', 'Poppins', sans-serif; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1; cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}
body.gl-shop-page .gl-shop-pill:hover { border-color: var(--pill, var(--sh-ink)); }
body.gl-shop-page .gl-shop-pill.is-on { background: var(--pill, var(--sh-ink)); border-color: var(--pill, var(--sh-ink)); color: #FFFFFF; }
body.gl-shop-page .gl-shop-pill__dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--pill); }
body.gl-shop-page .gl-shop-pill.is-on .gl-shop-pill__dot { background: #FFFFFF; }
body.gl-shop-page .gl-shop-pill__n { font-size: 13px; opacity: 0.7; }
body.gl-shop-page .gl-shop-reset {
	margin: 0; padding: 8px; border: 0; background: transparent; box-shadow: none; cursor: pointer;
	font-family: 'Jost', 'Poppins', sans-serif; font-size: 14px; color: #7B4A88; text-decoration: underline; text-transform: none; letter-spacing: 0;
}
body.gl-shop-page .gl-shop-reset[hidden] { display: none; }

body.gl-shop-page .gl-shop-filter .woocommerce-ordering { float: none !important; margin: 0 !important; }
body.gl-shop-page .gl-shop-filter .woocommerce-ordering select,
body.gl-shop-page .gl-shop-filter .woocommerce-ordering .theme-select {
	height: 40px !important; min-width: 210px; padding: 0 38px 0 16px !important; border: 1px solid var(--sh-line) !important; border-radius: 999px !important;
	background-color: #FFFFFF !important; font-family: 'Jost', 'Poppins', sans-serif !important; font-size: 14px !important; color: var(--sh-ink) !important; line-height: 38px !important;
}
body.gl-shop-page .gl-shop-filter .woocommerce-ordering .theme-selectInner { line-height: 38px !important; }

body.gl-shop-page .gl-shop-empty { margin: 0; padding: 48px 0; text-align: center; font-size: 17px; color: var(--sh-muted); }
body.gl-shop-page .gl-shop-empty[hidden] { display: none; }
body.gl-shop-page .gl-shop-empty .gl-shop-reset { font-size: 17px; }

/* ---------- Raster ---------- */
body.gl-shop-page ul.products {
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; margin: 32px 0 96px !important; padding: 0 !important;
}
body.gl-shop-page ul.products::before,
body.gl-shop-page ul.products::after { display: none !important; }
html body.gl-shop-page ul.products[class] > li[class] { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; float: none !important; clear: none !important; }
html body.gl-shop-page ul.products[class] > li[hidden] { display: none !important; }

/* Erste Sorte groß – nur ohne Filter */
body.gl-shop-page ul.products:not(.is-filtered) > li.gl-shop-featured { grid-column: span 2; }
/* Höhe setzt das JS (= Bildhöhe der Karte daneben); ohne JS ein breites Format */
body.gl-shop-page ul.products:not(.is-filtered) > li.gl-shop-featured .gl-card__img { position: relative; aspect-ratio: 2.08 / 1 !important; }
/* Foto ganz zeigen, Ränder weich in die ausgelesene Randfarbe auslaufen lassen */
body.gl-shop-page ul.products:not(.is-filtered) > li.gl-shop-featured .gl-card__img img {
	position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
	object-fit: contain !important;
	-webkit-mask-image: linear-gradient(to right, transparent var(--fade-l, 26%), #000 var(--fade-l2, 35%), #000 var(--fade-r2, 65%), transparent var(--fade-r, 74%)) !important;
	mask-image: linear-gradient(to right, transparent var(--fade-l, 26%), #000 var(--fade-l2, 35%), #000 var(--fade-r2, 65%), transparent var(--fade-r, 74%)) !important;
}
body.gl-shop-page ul.products:not(.is-filtered) > li.gl-shop-featured .gl-card__name { font-size: 30px !important; }

/* ---------- Kacheln ---------- */
body.gl-shop-page .gl-shop-tile a {
	display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 100%; box-sizing: border-box; padding: 28px; border-radius: 20px;
	text-decoration: none !important; transition: transform 0.25s ease;
}
body.gl-shop-page .gl-shop-tile a:hover { transform: translateY(-3px); }
body.gl-shop-page .gl-shop-tile__kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
body.gl-shop-page .gl-shop-tile__title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-size: 38px; line-height: 1.02; }
body.gl-shop-page .gl-shop-tile__text { font-size: 15px; line-height: 1.55; font-weight: 300; opacity: 0.9; }
body.gl-shop-page .gl-shop-tile__cta { margin-top: auto; font-size: 15px; font-weight: 500; }
body.gl-shop-page .gl-shop-tile--probier a { background: #EFE4D4; color: var(--sh-ink) !important; }
body.gl-shop-page .gl-shop-tile--saison a { background: #7A4F2D; color: var(--sh-cream) !important; }
body.gl-shop-page .gl-shop-tile--julia a { background: #7B4A88; color: #FFFFFF !important; }
body.gl-shop-page .gl-shop-tile--julia .gl-shop-tile__title { font-size: 30px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	body.gl-shop-page ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Handy ---------- */
@media (max-width: 767px) {
	body.gl-shop-page .gl-shop-intro { padding: 20px 0 20px; }
	body.gl-shop-page .gl-shop-intro__sub { font-size: 15px !important; }
	body.gl-shop-page .gl-shop-filter__in { width: 100%; padding: 10px 0; gap: 10px; }
	/* Tabs und Geschmack als waagrecht scrollbare Zeile */
	body.gl-shop-page .gl-shop-filter__tabs,
	body.gl-shop-page .gl-shop-filter__taste { flex-wrap: nowrap; overflow-x: auto; padding: 0 5vw; scrollbar-width: none; }
	body.gl-shop-page .gl-shop-filter__tabs::-webkit-scrollbar,
	body.gl-shop-page .gl-shop-filter__taste::-webkit-scrollbar { display: none; }
	body.gl-shop-page .gl-shop-pill { flex: 0 0 auto; height: 36px; padding: 0 14px; font-size: 13px; }
	body.gl-shop-page .gl-shop-filter__row { flex-direction: column; align-items: stretch; gap: 10px; }
	body.gl-shop-page .gl-shop-filter__sort { justify-content: space-between; padding: 0 5vw; }
	body.gl-shop-page .gl-shop-filter .woocommerce-ordering select,
	body.gl-shop-page .gl-shop-filter .woocommerce-ordering .theme-select { min-width: 0; height: 36px !important; line-height: 34px !important; }
	body.gl-shop-page ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin: 20px 0 64px !important; }
	body.gl-shop-page ul.products:not(.is-filtered) > li.gl-shop-featured .gl-card__name { font-size: 22px !important; }
	body.gl-shop-page ul.products:not(.is-filtered) > li.gl-shop-featured .gl-card__img { aspect-ratio: 16 / 10.4 !important; --fade-l: 17.5%; --fade-l2: 29%; --fade-r2: 71%; --fade-r: 82.5%; }
	body.gl-shop-page .gl-shop-tile { grid-column: span 2; }
	body.gl-shop-page .gl-shop-tile a { padding: 22px; border-radius: 16px; }
	body.gl-shop-page .gl-shop-tile__title { font-size: 30px; }
	body.gl-shop-page .gl-shop-tile--julia .gl-shop-tile__title { font-size: 24px; }
}
