/* =========================
   PRODUCT SUMMARY
========================= */

.tubuy-single-product-summary {
	padding: 0;
}

/* =========================
   TOP META
========================= */

.tubuy-single-product-top-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.tubuy-top-meta-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 0 14px;
	border-radius: 999px;
	background: #dcfce7;
	color: #16a34a;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.tubuy-top-meta-divider {
	width: 1px;
	height: 14px;
	background: #dbe3eb;
	flex-shrink: 0;
}

/* =========================
   STOCK STATUS
========================= */

.tubuy-stock-in-stock {
	background: #dcfce7 !important;
	color: #16a34a !important;
}

.tubuy-stock-low-stock {
	background: #fef3c7 !important;
	color: #d97706 !important;
}

.tubuy-stock-out-stock {
	background: #fee2e2 !important;
	color: #dc2626 !important;
}

/* =========================
   PRODUCT TITLE
========================= */

.tubuy-single-product-title {
	font-size: 36px;
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: -2px;
	color: #07121d;
	margin-bottom: 18px;
	max-width: 620px;
	font-family: inherit;
}

/* =========================
   PRODUCT RATING
========================= */

.tubuy-single-product-rating {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 16px;
}

/* =========================
   BRAND LOGO
========================= */

.tubuy-rating-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.tubuy-rating-brand img {
	width: 92px;
	height: 34px;
	object-fit: contain;
	display: block;
}

/* =========================
   RATING STARS
========================= */

.tubuy-rating-stars {
	display: flex;
	align-items: center;
	line-height: 1;
}

.tubuy-rating-stars .star-rating {
	margin: 0 !important;
	font-size: 17px !important;
}

.tubuy-rating-stars .star-rating::before {
	color: #fcd34d !important;
	opacity: 0.35;
}

.tubuy-rating-stars .star-rating span::before {
	color: #f59e0b !important;
}

.tubuy-rating-score {
	font-size: 16px;
	font-weight: 800;
	color: #f59e0b;
	line-height: 1;
}

.tubuy-rating-count {
	font-size: 15px;
	font-weight: 700;
	color: #f59e0b;
	line-height: 1;
}

/* =========================
   PRODUCT PRICE
========================= */

.tubuy-single-product-price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 22px;
}

.tubuy-single-product-price del {
	order: 1;
	font-size: 28px;
	font-weight: 700;
	color: #9ca3af;
	text-decoration-thickness: 3px;
	text-decoration-color: #ef4444;
}

.tubuy-single-product-price del .woocommerce-Price-amount {
	font-size: 28px;
	font-weight: 700;
	color: #9ca3af;
}

.tubuy-single-product-price ins {
	order: 2;
	text-decoration: none;
}

.tubuy-single-product-price ins .woocommerce-Price-amount {
	font-size: 42px;
	font-weight: 900;
	color: #16a34a;
	letter-spacing: -2px;
	line-height: 1;
}

.tubuy-single-product-price .woocommerce-Price-currencySymbol {
	margin-right: 2px;
}
/* =========================
   SAVE BADGE
========================= */

.tubuy-save-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	background: #fef2f2;
	color: #dc2626;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

/* =========================
   PRODUCT DESCRIPTION
========================= */

.tubuy-single-product-description {
	font-size: 15px;
	line-height: 1.8;
	color: #64748b;
	margin-bottom: 20px;
	max-width: 640px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

	.tubuy-single-product-top-meta {
		gap: 10px;
		margin-bottom: 14px;
	}

	.tubuy-top-meta-item {
		height: 26px;
		padding: 0 12px;
		font-size: 11px;
	}

	.tubuy-single-product-title {
		font-size: 28px;
		line-height: 1.1;
		letter-spacing: -1.2px;
		margin-bottom: 14px;
		max-width: 100%;
	}

	.tubuy-single-product-rating {
		gap: 8px;
		margin-bottom: 14px;
	}

	.tubuy-rating-brand img {
		width: 72px;
		height: 26px;
	}

	.tubuy-rating-stars .star-rating {
		font-size: 14px !important;
	}

	.tubuy-rating-score {
		font-size: 14px;
	}

	.tubuy-rating-count {
		font-size: 13px;
	}

	.tubuy-single-product-price {
		gap: 10px;
		margin-bottom: 18px;
	}

	.tubuy-single-product-price del .woocommerce-Price-amount {
		font-size: 22px;
	}

	.tubuy-single-product-price ins .woocommerce-Price-amount {
		font-size: 34px;
		letter-spacing: -1px;
	}

	.tubuy-single-product-description {
		font-size: 14px;
		line-height: 1.7;
		margin-bottom: 18px;
	}

}
/* =========================
   COLLAPSED DESCRIPTION
========================= */

.tubuy-single-product-description {
	position: relative;
}

.tubuy-description-collapsed p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: 3.6em;
	line-height: 1.8;
}

/* =========================
   DESCRIPTION FADE
========================= */

.tubuy-description-collapsed::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 34px;
	height: 32px;
	background: linear-gradient(
		to bottom,
		rgba(255,255,255,0),
		#ffffff
	);
	pointer-events: none;
}

/* =========================
   TOGGLE BUTTON
========================= */

.tubuy-description-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	gap: 6px;
	margin-top: 10px;
	padding: 0;
	border: none;
	background: transparent;
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: opacity 0.2s ease;
	position: relative;
	z-index: 2;
}

.tubuy-description-toggle:hover {
	opacity: 0.7;
}