/* ==========================================================================
   DW Product Showcase for Elementor
   6 layouts: classic / overlay / minimal / reveal / split / spotlight
   ========================================================================== */

.dwps-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
}

.dwps-empty {
	padding: 40px;
	text-align: center;
	border: 1px dashed #cfcfcf;
	border-radius: 8px;
	color: #777;
}

/* --------------------------------------------------------------------------
   Card base
   -------------------------------------------------------------------------- */

.dwps-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.dwps-image {
	position: relative;
	overflow: hidden;
	line-height: 0;
}

.dwps-image a {
	display: block;
}

.dwps-image img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

/* Hover zoom (toggled via prefix class dwps-zoom-yes) */
.dwps-zoom-yes .dwps-card:hover .dwps-image img {
	transform: scale(1.06);
}

.dwps-content {
	padding: 20px;
	line-height: 1.5;
}

.dwps-cat {
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 6px;
	opacity: 0.65;
}

.dwps-cat a {
	color: inherit;
	text-decoration: none;
}

.dwps-title {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.35;
}

.dwps-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

.dwps-rating {
	margin-bottom: 6px;
}

.dwps-rating .star-rating {
	margin: 0;
	font-size: 14px;
}

.dwps-price {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 14px;
}

.dwps-price del {
	opacity: 0.5;
	font-weight: 400;
	margin-right: 6px;
}

.dwps-price ins {
	text-decoration: none;
}

.dwps-btn-wrap {
	margin-top: auto;
}

.dwps-btn-wrap .button {
	display: inline-block;
	line-height: 1.2;
	padding: 12px 22px;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.dwps-btn-full-yes .dwps-btn-wrap .button {
	display: block;
	width: 100%;
	text-align: center;
}

.dwps-btn-wrap .added_to_cart {
	display: inline-block;
	margin-top: 8px;
	font-size: 13px;
	text-decoration: none;
}

.dwps-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 3;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.4;
	color: #fff;
	background: #e2401c;
	border-radius: 3px;
}

/* --------------------------------------------------------------------------
   1. Classic Card — clean shop card with soft shadow lift
   -------------------------------------------------------------------------- */

.dwps-layout-classic .dwps-card {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(20, 20, 30, 0.07);
}

.dwps-layout-classic .dwps-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 34px rgba(20, 20, 30, 0.14);
}

.dwps-layout-classic .dwps-content {
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* --------------------------------------------------------------------------
   2. Image Overlay — content sits on a gradient over the photo
   -------------------------------------------------------------------------- */

.dwps-layout-overlay .dwps-card {
	border-radius: 12px;
	overflow: hidden;
	background: #111;
	min-height: 340px;
	justify-content: flex-end;
}

.dwps-layout-overlay .dwps-image {
	position: absolute;
	inset: 0;
}

.dwps-layout-overlay .dwps-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dwps-layout-overlay .dwps-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.75) 100%);
	transition: background 0.35s ease;
	pointer-events: none;
}

.dwps-layout-overlay .dwps-card:hover .dwps-image::after {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.85) 100%);
}

.dwps-layout-overlay .dwps-content {
	position: relative;
	z-index: 2;
	color: #fff;
	padding: 24px;
}

.dwps-layout-overlay .dwps-title a,
.dwps-layout-overlay .dwps-cat,
.dwps-layout-overlay .dwps-price {
	color: #fff;
}

.dwps-layout-overlay .dwps-btn-wrap {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transform: translateY(8px);
	transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.35s ease;
}

.dwps-layout-overlay .dwps-card:hover .dwps-btn-wrap {
	max-height: 80px;
	opacity: 1;
	transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3. Minimal Editorial — borderless, typography-led, underline hover
   -------------------------------------------------------------------------- */

.dwps-layout-minimal .dwps-card {
	background: transparent;
}

.dwps-layout-minimal .dwps-content {
	padding: 16px 0 0;
}

.dwps-layout-minimal .dwps-image {
	border-radius: 2px;
}

.dwps-layout-minimal .dwps-title a {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0% 1px;
	transition: background-size 0.35s ease;
	padding-bottom: 2px;
}

.dwps-layout-minimal .dwps-card:hover .dwps-title a {
	background-size: 100% 1px;
}

.dwps-layout-minimal .dwps-btn-wrap .button {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
	border-radius: 0;
	padding: 10px 20px;
}

.dwps-layout-minimal .dwps-btn-wrap .button:hover {
	background: #111;
	border-color: #111;
	color: #fff;
}

/* --------------------------------------------------------------------------
   4. Hover Reveal — add-to-cart bar slides up over the image
   -------------------------------------------------------------------------- */

.dwps-layout-reveal .dwps-card {
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(20, 20, 30, 0.08);
}

.dwps-layout-reveal .dwps-reveal-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 12px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(6px);
	transform: translateY(100%);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	text-align: center;
	line-height: 1.4;
}

.dwps-layout-reveal .dwps-card:hover .dwps-reveal-bar {
	transform: translateY(0);
}

.dwps-layout-reveal .dwps-reveal-bar .button {
	display: block;
	width: 100%;
	text-align: center;
}

/* --------------------------------------------------------------------------
   5. Split Card — image left, content right (horizontal)
   -------------------------------------------------------------------------- */

.dwps-layout-split .dwps-card {
	flex-direction: row;
	align-items: stretch;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(20, 20, 30, 0.08);
}

.dwps-layout-split .dwps-image {
	flex: 0 0 42%;
	max-width: 42%;
}

.dwps-layout-split .dwps-image a,
.dwps-layout-split .dwps-image img {
	height: 100%;
}

.dwps-layout-split .dwps-image img {
	object-fit: cover;
}

.dwps-layout-split .dwps-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px;
}

.dwps-layout-split .dwps-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(20, 20, 30, 0.13);
}

/* --------------------------------------------------------------------------
   6. Spotlight Frame — centered content, offset frame appears on hover
   -------------------------------------------------------------------------- */

.dwps-layout-spotlight .dwps-card {
	background: transparent;
	text-align: center;
}

.dwps-layout-spotlight .dwps-content {
	text-align: center;
	padding: 18px 10px 0;
}

.dwps-layout-spotlight .dwps-image {
	border-radius: 6px;
}

.dwps-layout-spotlight .dwps-image::before {
	content: "";
	position: absolute;
	inset: 12px;
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 4px;
	z-index: 2;
	opacity: 0;
	transform: scale(1.05);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}

.dwps-layout-spotlight .dwps-card:hover .dwps-image::before {
	opacity: 1;
	transform: scale(1);
}

.dwps-layout-spotlight .dwps-badge {
	left: auto;
	right: 14px;
}

.dwps-layout-spotlight .dwps-btn-wrap .button {
	border-radius: 999px;
	padding: 11px 26px;
}

/* --------------------------------------------------------------------------
   7. Polaroid — white frame, slight tilt that straightens on hover
   -------------------------------------------------------------------------- */

.dwps-layout-polaroid .dwps-card {
	background: #fff;
	padding: 14px 14px 0;
	border-radius: 4px;
	box-shadow: 0 3px 14px rgba(20, 20, 30, 0.12);
	transform: rotate(-1.4deg);
}

.dwps-layout-polaroid .dwps-card:nth-child(even) {
	transform: rotate(1.4deg);
}

.dwps-layout-polaroid .dwps-card:hover,
.dwps-layout-polaroid .dwps-card:nth-child(even):hover {
	transform: rotate(0deg) translateY(-4px);
	box-shadow: 0 14px 30px rgba(20, 20, 30, 0.18);
	z-index: 2;
}

.dwps-layout-polaroid .dwps-image {
	border-radius: 2px;
}

.dwps-layout-polaroid .dwps-content {
	text-align: center;
	padding: 16px 6px 20px;
}

/* --------------------------------------------------------------------------
   8. Glass Panel — frosted glass content card floating over the photo
   -------------------------------------------------------------------------- */

.dwps-layout-glass .dwps-card {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #111;
	min-height: 360px;
	justify-content: flex-end;
}

.dwps-layout-glass .dwps-image {
	position: absolute;
	inset: 0;
}

.dwps-layout-glass .dwps-image a,
.dwps-layout-glass .dwps-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dwps-layout-glass .dwps-content {
	position: relative;
	z-index: 2;
	margin: 14px;
	padding: 18px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.16);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #fff;
	transition: background 0.3s ease;
}

.dwps-layout-glass .dwps-card:hover .dwps-content {
	background: rgba(255, 255, 255, 0.24);
}

.dwps-layout-glass .dwps-title a,
.dwps-layout-glass .dwps-cat,
.dwps-layout-glass .dwps-price {
	color: #fff;
}

/* --------------------------------------------------------------------------
   9. Outline Sweep — flat bordered card, accent line sweeps across on hover
   -------------------------------------------------------------------------- */

.dwps-layout-outline .dwps-card {
	background: #fff;
	border: 1px solid #e4e4e4;
	border-radius: 0;
	position: relative;
	overflow: hidden;
}

.dwps-layout-outline .dwps-card::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 0;
	background: #111;
	transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 3;
}

.dwps-layout-outline .dwps-card:hover {
	border-color: #cfcfcf;
}

.dwps-layout-outline .dwps-card:hover::after {
	width: 100%;
}

.dwps-layout-outline .dwps-btn-wrap .button {
	background: transparent;
	color: inherit;
	border: 1px solid #111;
	border-radius: 0;
}

.dwps-layout-outline .dwps-btn-wrap .button:hover {
	background: #111;
	color: #fff;
}

/* --------------------------------------------------------------------------
   10. Offset Stack — image with a solid offset block behind it
   -------------------------------------------------------------------------- */

.dwps-layout-stack .dwps-card {
	background: transparent;
	overflow: visible;
}

.dwps-layout-stack .dwps-image {
	border-radius: 4px;
	box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.1);
	transition: box-shadow 0.35s ease, transform 0.35s ease;
	margin: 0 12px 12px 0;
}

.dwps-layout-stack .dwps-card:hover .dwps-image {
	box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.18);
	transform: translate(3px, 3px);
}

.dwps-layout-stack .dwps-content {
	padding: 16px 4px 0;
}

/* --------------------------------------------------------------------------
   11. Dark Luxe — dark card, gold accent, centered boutique feel
   -------------------------------------------------------------------------- */

.dwps-layout-luxe .dwps-card {
	background: #15151a;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 14px;
	overflow: hidden;
	text-align: center;
}

.dwps-layout-luxe .dwps-content {
	text-align: center;
	padding: 22px 20px 26px;
}

.dwps-layout-luxe .dwps-cat {
	color: #c9a45c;
	opacity: 1;
	letter-spacing: 0.14em;
}

.dwps-layout-luxe .dwps-title a {
	color: #fff;
}

.dwps-layout-luxe .dwps-title::after {
	content: "";
	display: block;
	width: 34px;
	height: 1px;
	background: #c9a45c;
	margin: 12px auto 0;
	transition: width 0.35s ease;
}

.dwps-layout-luxe .dwps-card:hover .dwps-title::after {
	width: 64px;
}

.dwps-layout-luxe .dwps-price {
	color: #e9e2d4;
}

.dwps-layout-luxe .dwps-price del {
	color: rgba(255, 255, 255, 0.45);
}

.dwps-layout-luxe .dwps-btn-wrap .button {
	background: #c9a45c;
	color: #15151a;
	border-radius: 2px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 12px;
	font-weight: 700;
}

.dwps-layout-luxe .dwps-btn-wrap .button:hover {
	background: #dcb96f;
	color: #15151a;
}

.dwps-layout-luxe .dwps-badge {
	background: #c9a45c;
	color: #15151a;
}

/* --------------------------------------------------------------------------
   Responsive fallbacks (Elementor's responsive control overrides these)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.dwps-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.dwps-grid {
		grid-template-columns: 1fr;
	}

	.dwps-layout-split .dwps-card {
		flex-direction: column;
	}

	.dwps-layout-split .dwps-image {
		flex: 0 0 auto;
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dwps-card,
	.dwps-image img,
	.dwps-btn-wrap .button,
	.dwps-layout-reveal .dwps-reveal-bar,
	.dwps-layout-overlay .dwps-btn-wrap,
	.dwps-layout-spotlight .dwps-image::before {
		transition: none !important;
	}
}
