/* NAW Related Products widget — structural / default styles.
   Elementor's Style tab controls layer on top of this via {{WRAPPER}} selectors. */

.naw-rp-widget {
	width: 100%;
}

.naw-rp-header {
	margin-bottom: 30px;
}

.naw-rp-title {
	margin: 0 0 12px;
}

.naw-rp-divider {
	margin: 0 auto;
	background-color: #0b2545;
	width: 60px;
	height: 3px;
}

.naw-rp-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px 20px;
	align-items: stretch;
}

.naw-rp-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.naw-rp-card:hover {
	transform: translateY(-4px);
}

.naw-rp-image-link {
	display: block;
}

.naw-rp-image-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #f7f7f7;
	padding: 20px;
	margin-bottom: 16px;
}

.naw-rp-image-wrap img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	background-color: #ffffff;
	transition: transform 0.3s ease;
}

.naw-rp-image-wrap:hover img {
	transform: scale(1.04);
}

.naw-rp-sale-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #e53935;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	padding: 4px 8px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.naw-rp-content {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.naw-rp-title-link {
	text-decoration: none;
}

.naw-rp-product-title {
	font-size: 15px;
	line-height: 1.4;
	margin: 0 0 8px;
	color: inherit;
	-webkit-line-clamp: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.naw-rp-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.naw-rp-price {
	margin: 0;
	font-weight: 600;
}

.naw-rp-price del {
	opacity: 0.6;
	margin-right: 6px;
	font-weight: 400;
}

.naw-rp-stock-row {
	margin: 0;
}

.naw-rp-stock-row .stock {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	padding: 0;
	background: none;
	border: none;
}

.naw-rp-buttons {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
}

.naw-rp-buttons-single .naw-rp-btn {
	flex: 1 1 100%;
	width: 100%;
}

.naw-rp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	border: 1px solid transparent;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
	flex: 1 1 auto;
	text-align: center;
	white-space: nowrap;
}

.naw-rp-btn-more-info {
	background: #14b8a6;
	color: #fff;
}

.naw-rp-btn-more-info:hover {
	background: #0f9c8c;
	color: #fff;
}

.naw-rp-btn-add-cart {
	background: #0b2545;
	color: #fff;
}

.naw-rp-btn-add-cart:hover {
	background: #08213d;
	color: #fff;
}

.naw-rp-btn-outofstock {
	background: #9e9e9e;
	color: #fff;
	cursor: not-allowed;
}

/* Hide WooCommerce's default AJAX "added" state icon so it doesn't break the custom button layout. */
.naw-rp-btn-add-cart.added::after {
	display: none !important;
}
.naw-rp-btn-add-cart .added_to_cart {
	display: block;
	width: 100%;
	margin-top: 6px;
	font-size: 12px;
}

.naw-rp-editor-notice {
	padding: 20px;
	background: #fff3cd;
	border: 1px solid #ffe58f;
	color: #7a5b00;
	border-radius: 6px;
}

/* Fallback breakpoints — used only until/unless the Layout > Columns
   responsive control in the Style tab is customized per-device. */
@media (max-width: 1024px) {
	.naw-rp-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.naw-rp-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
