/*
 * Site2WP adapter: makes Elementor containers/widgets behave like the original
 * plain HTML elements, so the original site's CSS lays them out exactly as before.
 * Elements created by you in Elementor (without the "s2w" class) are not affected.
 */
.e-con.s2w {
	--display: block;
	--width: auto;
	--min-height: 0;
	--position: static;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-top: 0px;
	--margin-right: 0px;
	--margin-bottom: 0px;
	--margin-left: 0px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--flex-grow: initial;
	--flex-shrink: initial;
	--flex-basis: auto;
	--container-widget-width: auto;
	--content-width: 100%;
	--overflow: visible;
	--z-index: auto;
	--border-radius: 0;
}
/* the original markup decides display, width and position */
.e-con.s2w,
.e-con.s2w > .e-con-inner {
	max-width: none;
}
/* Elementor's page CSS sets "--display: flex" (and a column direction) on every container; converted
   elements start as plain blocks like the original markup — the original CSS still sets flex/grid,
   direction and alignment wherever the original site used them. */
.e-con.s2w.s2w.s2w.s2w {
	--display: block;
	--flex-direction: initial;
	--flex-wrap: initial;
	--justify-content: initial;
	--align-items: initial;
	--align-content: initial;
}

/* widget wrappers are transparent: on the live site they don't create a box, so the copied
   flex/grid layouts lay out the original elements exactly as before */
body:not(.elementor-editor-active) .elementor-widget.s2w-w { display: contents; }

/* widget wrappers are transparent */
.elementor-widget.s2w-w {
	position: static;
	margin: 0;
	max-width: none;
	--container-widget-width: auto;
}
.e-con.s2w > .elementor-widget.s2w-w { width: auto; }
.elementor-widget.s2w-w > .elementor-widget-container {
	margin: 0;
	padding: 0;
	display: contents;
}

/* images: sizing comes from the original CSS (which loads with higher specificity) */
.elementor-widget-image.s2w-img { text-align: inherit; }

/* empty-container placeholder only in the editor */
body:not(.elementor-editor-active) .e-con.s2w:empty { display: revert; }

/* theme fallbacks (blog, 404, WooCommerce) */
.s2w-container { max-width: 1240px; margin: 0 auto; padding: 48px 20px 64px; }
.s2w-page-title { margin: 0 0 24px; }
.s2w-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.s2w-card { border: 1px solid rgba(0,0,0,.08); border-radius: 10px; overflow: hidden; background: #fff; }
.s2w-card-img img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.s2w-card-body { padding: 18px 20px 22px; }
.s2w-card-title { font-size: 1.15rem; margin: 0 0 6px; }
.s2w-card-title a { color: inherit; text-decoration: none; }
.s2w-card-meta { opacity: .65; font-size: .85rem; margin-bottom: 10px; }
.s2w-btn, .s2w-pbtn {
	display: inline-block;
	background: var(--e-global-color-primary, #222);
	color: #fff;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	transition: background .2s, color .2s, transform .2s;
}
.s2w-btn:hover, .s2w-pbtn:hover { background: var(--e-global-color-secondary, #000); color: #fff; }

/* Product Grid widget */
.s2w-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.s2w-pcard { display: flex; flex-direction: column; position: relative; transition: box-shadow .25s, transform .25s; overflow: hidden; }
.s2w-pimg { display: block; position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: #f5f5f5; }
.s2w-pimg img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .45s ease; }
.s2w-zoom-yes .s2w-pcard:hover .s2w-pimg img { transform: scale(1.06); }
.s2w-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--e-global-color-accent, #e74c3c); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.s2w-pbody { padding: 14px 4px 4px; display: flex; flex-direction: column; flex: 1; }
.s2w-pcat { font-size: 12px; opacity: .7; margin-bottom: 4px; }
.s2w-pcat a { color: inherit; text-decoration: none; }
.s2w-ptitle { font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.s2w-ptitle a { color: inherit; text-decoration: none; }
.s2w-pprice { font-weight: 600; margin-bottom: 12px; color: var(--e-global-color-text, inherit); }
.s2w-pprice del { opacity: .55; font-weight: 400; margin-right: 6px; }
.s2w-pprice ins { text-decoration: none; }
.s2w-pbody .s2w-pbtn { margin-top: auto; align-self: flex-start; }
.s2w-pbody .added_to_cart { margin-top: 8px; font-size: 13px; }
.s2w-pagination { margin-top: 32px; display: flex; gap: 6px; justify-content: center; }
.s2w-pagination .page-numbers { padding: 6px 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 6px; text-decoration: none; color: inherit; }
.s2w-pagination .page-numbers.current { background: var(--e-global-color-primary, #222); color: #fff; border-color: transparent; }
@media (max-width: 1024px) { .s2w-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .s2w-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } }
