/* ============================================================
   WPR Product Widgets — Main Stylesheet
   ============================================================ */

/* ── Shared / Utility ── */
.wpr-placeholder {
	padding: 24px;
	background: #f5f5f5;
	border: 2px dashed #ccc;
	border-radius: 8px;
	text-align: center;
	color: #666;
}

.wpr-divider {
	border: none;
	border-top: 1px solid #e8e8e8;
	margin: 18px 0;
}

.wpr-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.wpr-btn-outline {
	display: inline-block;
	padding: 9px 20px;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}
.wpr-btn-outline:hover {
	background: #f5f5f5;
	border-color: #aaa;
}

/* ============================================================
   WPR Product Hero
   ============================================================ */

.wpr-product-hero {
	font-family: inherit;
	color: #1a1a1a;
}

.wpr-hero__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: flex-start;
}

@media (max-width: 768px) {
	.wpr-hero__layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}
}

/* Image */
.wpr-hero__image {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
	background: #f9f9f9;
}
.wpr-hero__image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	padding: 16px;
}

/* Badge */
.wpr-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background-color: #1a1a1a;
	color: #fff;
	margin-bottom: 12px;
}

/* Title */
.wpr-hero__title {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.25;
}

/* Rating */
.wpr-hero__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
}
.wpr-hero__rating .star-rating,
.wpr-hero__rating .wpr-stars-wrap {
	display: flex;
	gap: 2px;
}
.wpr-rating__value {
	font-size: 14px;
	font-weight: 600;
}
.wpr-rating__count {
	font-size: 13px;
	color: #777;
}

/* Price */
.wpr-hero__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 16px;
}
.wpr-hero__price .price,
.wpr-hero__price .amount {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
}
.wpr-hero__price ins {
	text-decoration: none;
}
.wpr-price-suffix {
	font-size: 15px;
	color: #666;
	font-weight: 400;
}

/* Short description */
.wpr-hero__short-desc {
	font-size: 14px;
	line-height: 1.7;
	color: #444;
	margin-bottom: 14px;
}

/* Meta */
.wpr-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
}
.wpr-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #444;
}
.wpr-meta-item svg {
	flex-shrink: 0;
	color: #555;
}

/* Quantity */
.wpr-hero__qty-wrap {
	margin-bottom: 18px;
}
.wpr-qty-row {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.wpr-qty {
	display: flex;
	align-items: center;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	overflow: hidden;
}
.wpr-qty__btn {
	width: 36px;
	height: 36px;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
}
.wpr-qty__btn:hover { background: #e8e8e8; }
.wpr-qty__input {
	width: 50px;
	height: 36px;
	border: none;
	border-left: 1px solid #d0d0d0;
	border-right: 1px solid #d0d0d0;
	text-align: center;
	font-size: 15px;
	-moz-appearance: textfield;
}
.wpr-qty__input::-webkit-outer-spin-button,
.wpr-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.wpr-qty__total {
	font-size: 14px;
	color: #333;
}

/* Date picker */
.wpr-hero__dates {
	margin-bottom: 22px;
}
.wpr-date-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.wpr-date-field {
	position: relative;
	border: 1px solid #d0d0d0;
	border-radius: 6px;
	overflow: hidden;
}
.wpr-date-input {
	width: 100%;
	padding: 10px 14px 10px 38px;
	border: none;
	font-size: 14px;
	background: #fff;
	box-sizing: border-box;
	cursor: pointer;
}
.wpr-date-input:focus { outline: 2px solid #1a1a1a; }
.wpr-date-label {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	color: #999;
	pointer-events: none;
}
.wpr-date-input:not(:placeholder-shown) + .wpr-date-label,
.wpr-date-input[value]:not([value=""]) + .wpr-date-label { display: none; }

/* Actions */
.wpr-hero__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}
.wpr-hero__cta {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 24px;
	background: #1a1a1a;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}
.wpr-hero__cta:hover { background: #333; color: #fff; }

.wpr-hero__wishlist {
	width: 48px;
	height: 48px;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s, border-color 0.15s;
}
.wpr-hero__wishlist:hover { background: #fef2f2; border-color: #e57373; }
.wpr-hero__wishlist svg { color: #555; }
.wpr-hero__wishlist.wpr-wishlisted svg { fill: #e53935; color: #e53935; }

/* Guarantee */
.wpr-hero__guarantee {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 18px;
	background: #f7f7f7;
	border-radius: 8px;
	font-size: 13px;
}
.wpr-hero__guarantee svg { flex-shrink: 0; margin-top: 2px; }
.wpr-hero__guarantee strong { display: block; font-weight: 600; color: #222; }
.wpr-hero__guarantee p { margin: 2px 0 0; color: #666; }

/* ============================================================
   WPR Product Description
   ============================================================ */

.wpr-product-description {
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: hidden;
}

/* Tabs */
.wpr-desc__tabs {
	border-bottom: 1px solid #e8e8e8;
	padding: 0 24px;
	display: flex;
	gap: 0;
}
.wpr-desc__tab {
	padding: 14px 4px;
	font-size: 15px;
	font-weight: 500;
	color: #999;
	border: none;
	background: none;
	border-bottom: 2px solid transparent;
	cursor: pointer;
	margin-bottom: -1px;
	transition: color 0.2s, border-color 0.2s;
}
.wpr-desc__tab.wpr-active {
	color: #1a1a1a;
	border-bottom-color: #1a1a1a;
	font-weight: 600;
}
.wpr-desc__tab:hover { color: #333; }

/* Panel */
.wpr-desc__panel {
	padding: 28px 24px;
}
.wpr-desc__heading {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 14px;
}
.wpr-desc__content {
	font-size: 14px;
	line-height: 1.75;
	color: #444;
	margin-bottom: 24px;
}
.wpr-desc__content p { margin: 0 0 12px; }

/* Features grid */
.wpr-features-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px 32px;
	margin-top: 8px;
}
@media (max-width: 580px) {
	.wpr-features-grid { grid-template-columns: 1fr; }
}
.wpr-feature-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.wpr-feature__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	background: #1a1a1a;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	margin-top: 1px;
}
.wpr-feature__text {
	font-size: 14px;
	line-height: 1.5;
}
.wpr-feature__text strong {
	display: block;
	font-weight: 600;
	color: #222;
}
.wpr-feature__text span {
	color: #666;
	font-size: 13px;
}

/* ============================================================
   WPR Product Reviews
   ============================================================ */

.wpr-product-reviews {
	font-size: 14px;
}

/* Header */
.wpr-reviews__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}
.wpr-reviews__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

/* Summary */
.wpr-reviews__summary {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 32px;
	padding: 24px;
	background: #f9f9f9;
	border-radius: 8px;
	margin-bottom: 28px;
	align-items: center;
}
@media (max-width: 560px) {
	.wpr-reviews__summary { grid-template-columns: 1fr; }
}

.wpr-reviews__score-box {
	text-align: center;
}
.wpr-avg-rating {
	font-size: 52px;
	font-weight: 700;
	color: #f5a623;
	line-height: 1;
	display: block;
}
.wpr-reviews__score-stars {
	display: flex;
	justify-content: center;
	gap: 3px;
	margin: 6px 0 6px;
}
.wpr-reviews__count {
	font-size: 13px;
	color: #777;
}

/* Stars shared */
.wpr-stars-wrap {
	display: inline-flex;
	gap: 2px;
}
.wpr-star-filled { color: #f5a623; }
.wpr-star-empty  { color: #d0d0d0; }
.wpr-star-half   { color: #f5a623; }

/* Bars */
.wpr-reviews__bars {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.wpr-bar-row {
	display: flex;
	align-items: center;
	gap: 10px;
}
.wpr-bar-label {
	width: 24px;
	text-align: right;
	font-size: 13px;
	color: #555;
	flex-shrink: 0;
}
.wpr-bar-track {
	flex: 1;
	height: 8px;
	background: #e0e0e0;
	border-radius: 99px;
	overflow: hidden;
}
.wpr-bar-fill {
	height: 100%;
	background: #f5a623;
	border-radius: 99px;
	transition: width 0.5s ease;
}
.wpr-bar-count {
	width: 20px;
	text-align: right;
	font-size: 13px;
	color: #555;
	flex-shrink: 0;
}

/* Review cards */
.wpr-reviews__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 20px;
}
.wpr-review-card {
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	padding: 18px 20px;
	background: #fff;
}
.wpr-review-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 10px;
}
.wpr-review-card__author {
	display: flex;
	align-items: center;
	gap: 12px;
}
.wpr-review-card__avatar img,
.wpr-review-card__avatar svg {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.wpr-review-card__name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #222;
}
.wpr-review-card__date {
	font-size: 12px;
	color: #999;
}
.wpr-review-card__stars {
	display: flex;
	gap: 2px;
}
.wpr-review-card__text {
	font-size: 14px;
	line-height: 1.65;
	color: #444;
	margin: 0;
}

/* Empty */
.wpr-reviews__empty {
	text-align: center;
	color: #999;
	padding: 28px 0;
}

/* Footer */
.wpr-reviews__footer {
	text-align: center;
	margin-top: 8px;
}
.wpr-reviews__load-more {
	min-width: 160px;
}
