/*
 * Desktop frame (Florian 16.11.2026, VEL-20261116-KANTEN-LOGO-LINIE).
 *
 * Every wide page starts exactly on the header logo and ends on the cart
 * icon, like /diamanten/ did first. The frame values live in
 * velur-design-system.css (--vlr-frame-*); this file only applies them to
 * the existing page shells, from 1024px. Phones, the narrow centred text
 * pages, cart, checkout, quiz and the product page are not touched.
 *
 * Several shells come from saved Elementor data or inline page styles
 * (About, Werkstatt, Trauringe band, ring configurator, footer, the
 * Verlobungsringe grid), therefore every selector starts with an id-level
 * guard on the html element, the same pattern as velur-apple-details.css.
 *
 * Box recipe: width is the frame span, the side margin is half of the
 * parent width minus the span (negative when the parent is narrower than
 * the window), inline padding is zero.
 *
 * Keep CSS function names out of comments in this file: Autoptimize hides
 * those expressions before minifying and would then swallow the comment end.
 */

@media (min-width: 1024px) {
	/* Collections, gifts, jewellery, birthstone, Trauringe, Sofort verfuegbar. */
	html:not(#vlr-frame) body .vlr-collection-filter,
	html:not(#vlr-frame) body.vlr-jewelry-collection-page .vlr-jewelry-collection,
	html:not(#vlr-frame) body .vlr-gift__wrap,
	html:not(#vlr-frame) body .vlr-gift-list,
	html:not(#vlr-frame) body .vlr-subcategory-shell,
	html:not(#vlr-frame) body .vlr-wedding,
	html:not(#vlr-frame) body .vt,
	html:not(#vlr-frame) body .vlr-bs-head,
	html:not(#vlr-frame) body .vlr-instock__catalog,
	html:not(#vlr-frame) body .vlr-instock__seo,
	html:not(#vlr-frame) body .vlr-tryon-plp,
	html:not(#vlr-frame) body #v-stories.vlr,
	html:not(#vlr-frame) .vlr.hub.hub--clean .hub-container,
	/* About, Werkstatt, Velur-Diamanten: hero, crumbs, sections, facts. */
	html:not(#vlr-frame) .vlr:is(.vlr-about, .vlr-werkstatt, .vlr-diamanten) .container,
	html:not(#vlr-frame) .vlr:is(.vlr-about, .vlr-werkstatt, .vlr-diamanten) :is(.ab-facts-grid, .ws-facts-grid, .vd-facts-grid),
	/* Traumring anfragen. */
	html:not(#vlr-frame) .velur-custom-ring-experience :is(.shell, .proof-steps, .customer-moments-track, .stone-track),
	/* Ring configurator landing below the configurator head. */
	html:not(#vlr-frame) .vlr-tk .wrap,
	/* Footer (Elementor template 127761). */
	html:not(#vlr-frame) body .velur-footer__main,
	html:not(#vlr-frame) body .velur-footer__bottom {
		box-sizing: border-box;
		width: var(--vlr-frame-span);
		max-width: none;
		margin-left: calc((100% - var(--vlr-frame-span)) / 2);
		margin-right: calc((100% - var(--vlr-frame-span)) / 2);
		padding-left: 0;
		padding-right: 0;
	}

	/* The gift page wraps its list in .vlr-gift-list: one shell, not two. */
	html:not(#vlr-frame) body .vlr-gift-list .vlr-collection-filter {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	/* Verlobungsringe: header block and the product widget shell. */
	html:not(#vlr-frame) body.vlr-engagement-main-plp-page .vlr-main-plp-header,
	html:not(#vlr-frame) body.vlr-engagement-main-plp-page .elementor.elementor-114581 .elementor-element.elementor-element-b8e1910,
	html:not(#vlr-frame) :is(body.vlr-engagement-subcategory-lab-diamant, body.vlr-engagement-subcategory-moissanit, body.vlr-engagement-cut-page, body.vlr-engagement-metal-page) .elementor-widget-Velur_Product_List_Widget > .elementor-widget-container {
		box-sizing: border-box;
		width: var(--vlr-frame-span) !important;
		max-width: none !important;
		margin-left: calc((100% - var(--vlr-frame-span)) / 2) !important;
		margin-right: calc((100% - var(--vlr-frame-span)) / 2) !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	/* Rails that scroll to the window edge keep their first card on the frame. */
	html:not(#vlr-frame) .velur-custom-ring-experience .design-track,
	html:not(#vlr-frame) .vlr-tk .tk-rail {
		padding-left: var(--vlr-frame-inset);
		padding-right: var(--vlr-frame-inset);
		scroll-padding-inline: var(--vlr-frame-inset);
	}
}

/*
 * Collection grid (Florian 16.11.2026): four products per row from 1400px,
 * three below. Same gaps as before; the workshop tile is one card wide.
 * Important because the saved Verlobungsringe page (Elementor 114581)
 * sets its three columns with an important flag.
 * Image sizes: includes/collection-product-images.php.
 */
@media (min-width: 1400px) {
	html:not(#vlr-frame) .products-list-filters .products-widget .products-list,
	html:not(#vlr-frame) .vlr-instock .vlr-instock__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	}
}
