/* =========================================================
   Elementor WooCommerce Product Card — base structural CSS.
   Colors, spacing, typography, borders etc. are controlled by
   the widget's Style tab (Elementor selectors). This file only
   provides layout/structure and sane fallback defaults so the
   card looks good the moment it's dropped into a Loop Grid.
   ========================================================= */

.ewpc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: #fff;
	border-radius: 14px;
	overflow: hidden;
	transition-property: transform, box-shadow, background-color, border-color;
	transition-duration: 300ms;
	transition-timing-function: ease;
	height: 100%;
	box-sizing: border-box;
}

.ewpc-card * {
	box-sizing: border-box;
}

/* ---------- Image ---------- */
.ewpc-image-wrap {
	position: relative;
	width: 100%;
	height: 260px;
	overflow: hidden;
	margin-bottom: 14px;
	background-color: #f4ede4;
}

.ewpc-image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.ewpc-image-wrap img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition-property: opacity, transform;
	transition-duration: 400ms;
	transition-timing-function: ease;
}

.ewpc-image-main {
	opacity: 1;
	z-index: 1;
}

.ewpc-image-hover {
	opacity: 0;
	z-index: 2;
}

.ewpc-card:hover .ewpc-image-hover {
	opacity: 1;
}

/* ---------- Badge ---------- */
.ewpc-badge {
	position: absolute;
	z-index: 5;
	display: inline-block;
	background-color: #2e7d32;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 4px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

.ewpc-badge.pos-top-left {
	top: 10px;
	left: 10px;
}

.ewpc-badge.pos-top-right {
	top: 10px;
	right: 10px;
}

.ewpc-badge.pos-bottom-left {
	bottom: 10px;
	left: 10px;
}

.ewpc-badge.pos-bottom-right {
	bottom: 10px;
	right: 10px;
}

.ewpc-badge-stock {
	background-color: #9a9a9a;
}

/* ---------- Rating ---------- */
.ewpc-rating {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background-color: #2b1c14;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 10px;
	border-radius: 20px;
	width: fit-content;
}

.ewpc-rating.pos-image-top-left,
.ewpc-rating.pos-image-top-right {
	position: absolute;
	top: 10px;
	z-index: 5;
}

.ewpc-rating.pos-image-top-left {
	left: 10px;
}

.ewpc-rating.pos-image-top-right {
	right: 10px;
}

.ewpc-rating.pos-above-title {
	margin: 0 0 8px 0;
}

.ewpc-rating .ewpc-star {
	color: #ffc107;
	font-size: 12px;
	line-height: 1;
}

.ewpc-rating-count {
	opacity: 0.85;
	font-weight: 500;
}

/* ---------- Content ---------- */
.ewpc-card-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 0 16px 16px;
}

.ewpc-title {
	margin: 0 0 6px 0;
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.35;
}

.ewpc-title a {
	color: inherit;
	text-decoration: none;
}

.ewpc-title a:hover {
	text-decoration: underline;
}

.ewpc-excerpt {
	margin: 0 0 10px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #6b6b6b;
}

.ewpc-price {
	margin: 0 0 10px 0;
	font-size: 16px;
	font-weight: 700;
}

.ewpc-price .price {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ewpc-price .price del {
	opacity: 0.7;
	font-weight: 400;
	font-size: 0.85em;
}

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

/* ---------- Variations ---------- */
.ewpc-variations {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 12px 0;
}

.ewpc-variation-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ewpc-variation-label {
	font-size: 12px;
	font-weight: 600;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ewpc-variations select {
	width: 100%;
	appearance: auto;
	background-color: #fff;
	color: #333;
	font-size: 14px;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 8px 10px;
	cursor: pointer;
}

.ewpc-variations select:focus {
	outline: none;
	border-color: #999;
}

/* ---------- Button ---------- */
.ewpc-add-to-cart-btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background-color: #e07a3f;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	padding: 12px 20px;
	border-radius: 30px;
	border: none;
	cursor: pointer;
	transition-property: background-color, transform, box-shadow, border-color;
	transition-duration: 250ms;
	transition-timing-function: ease;
}

.ewpc-add-to-cart-btn:hover {
	color: #fff;
	text-decoration: none;
}

.ewpc-add-to-cart-btn.ewpc-disabled {
	background-color: #cccccc;
	color: #777777;
	pointer-events: none;
}

.ewpc-add-to-cart-btn.ewpc-loading {
	opacity: 0.7;
	pointer-events: none;
}

.ewpc-btn-icon {
	display: inline-flex;
	align-items: center;
	margin-right: 8px;
}

.ewpc-btn-icon.ewpc-icon-after {
	margin-right: 0;
	margin-left: 8px;
}

.ewpc-btn-icon svg {
	width: 1em;
	height: 1em;
}

/* Editor-mode placeholder */
.ewpc-editor-placeholder {
	padding: 20px;
	text-align: center;
	background: #fafafa;
	border: 1px dashed #ccc;
	color: #888;
	font-size: 13px;
}
