/* ===========================================
   VE-GA – Single Product Page
   =========================================== */

/* --- Sidebar same as shop --- */
.single-product.woocommerce {
	--theme-var-sidebar_width: 320px !important;
	--theme-var-sidebar_width_min: 300px !important;
	--theme-var-sidebar_width_max: 360px !important;
	--theme-var-sidebar_prc: 0.23 !important;
}

.single-product .sidebar {
	margin-top: 0 !important;
	padding-top: 2.1em !important;
}

.single-product .sidebar .widget {
	font-size: 12.5px;
	padding-left: 20px !important;
	padding-right: 20px !important;
}

/* --- Layout --- */
.vega-single-product {
	max-width: 100%;
	padding: 30px 0 60px;
}

/* --- Top section: gallery + info side by side --- */
.vega-sp-top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	margin-bottom: 50px;
}

/* --- Gallery --- */
.vega-sp-gallery {
	position: sticky;
	top: 30px;
	align-self: start;
}

.vega-sp-main-img {
	width: 100%;
	overflow: hidden;
	background: #f5f0eb;
	margin-bottom: 12px;
}

.vega-sp-main-img img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.vega-sp-placeholder {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e8e0d6;
}

.vega-sp-placeholder span {
	font-size: 80px;
	font-weight: 700;
	color: rgba(0, 0, 0, 0.1);
}

/* Thumbnails */
.vega-sp-thumbs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.vega-sp-thumb {
	width: 70px;
	height: 70px;
	border: 2px solid transparent;
	padding: 0;
	background: #f5f0eb;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s;
}

.vega-sp-thumb.active {
	border-color: #F6B255;
}

.vega-sp-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- Product info --- */
.vega-sp-info {
	padding-top: 10px;
}

.vega-sp-cats {
	margin-bottom: 10px;
}

.vega-sp-cats a {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #F6B255 !important;
	text-decoration: none !important;
	font-weight: 600;
}

.vega-sp-cats a:hover {
	text-decoration: underline !important;
}

/* Shipping notice */
.vega-sp-shipping-notice {
	background: #f9f5ef;
	border-left: 3px solid #F6B255;
	padding: 10px 14px;
	font-size: 13px;
	color: #555;
	margin-bottom: 20px;
	line-height: 1.5;
}

.vega-sp-shipping-icon {
	margin-right: 6px;
}

.vega-sp-title {
	font-size: 28px;
	font-weight: 700;
	color: #333 !important;
	margin: 0 0 20px !important;
	line-height: 1.3;
	letter-spacing: 0.5px;
}

.vega-sp-price {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin-bottom: 25px;
}

.vega-sp-price del {
	opacity: 0.5;
	font-size: 18px;
}

.vega-sp-price ins {
	text-decoration: none;
	color: #c0392b;
}

.vega-sp-excerpt {
	color: #666;
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 30px;
}

.vega-sp-excerpt p {
	margin: 0 0 10px;
}

/* --- Add to cart --- */
.vega-sp-add-to-cart {
	margin-bottom: 25px;
}

.vega-sp-qty-row {
	display: flex;
	align-items: center;
	gap: 15px;
}

.vega-sp-qty-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vega-qty-btn {
	width: 34px;
	height: 34px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	transition: background 0.2s, border-color 0.2s;
	padding: 0;
	line-height: 1;
}

.vega-qty-btn:hover {
	background: #f5f0eb;
	border-color: #F6B255;
}

.vega-sp-qty-wrap .qty,
.vega-sp-qty-wrap input[type="number"] {
	width: 40px;
	height: 34px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: center;
	font-size: 15px;
	-moz-appearance: textfield;
	appearance: textfield;
}

.vega-sp-qty-wrap input::-webkit-outer-spin-button,
.vega-sp-qty-wrap input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.vega-sp-atc-btn {
	height: 40px;
	padding: 0 30px;
	background: #F6B255;
	color: #333;
	border: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.3s, transform 0.1s;
	white-space: nowrap;
}

.vega-sp-atc-btn:hover {
	background: #e5a244;
}

.vega-sp-atc-btn:active {
	transform: scale(0.98);
}

.vega-sp-out-of-stock {
	color: #c0392b;
	font-weight: 600;
	font-size: 16px;
	padding: 12px 0;
}

/* --- Meta (SKU, categories) --- */
.vega-sp-meta {
	padding-top: 20px;
	border-top: 1px solid #eee;
	font-size: 13px;
	color: #999;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.vega-sp-meta a {
	color: #F6B255 !important;
	text-decoration: none !important;
}

.vega-sp-meta a:hover {
	text-decoration: underline !important;
}

/* --- Tabs --- */
.vega-sp-tabs {
	margin-bottom: 50px;
}

.vega-sp-tab-nav {
	display: flex;
	gap: 0;
	border-bottom: 1px solid #ddd;
}

.vega-sp-tab-btn {
	padding: 14px 25px;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	font-size: 14px;
	font-weight: 600;
	color: #999;
	cursor: pointer;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: color 0.2s, border-color 0.2s;
}

.vega-sp-tab-btn:hover {
	color: #333;
}

.vega-sp-tab-btn.active {
	color: #333;
	border-bottom-color: #F6B255;
}

.vega-sp-tab-panels {
	padding: 30px 0;
}

.vega-sp-tab-panel {
	display: none;
	color: #555;
	font-size: 14px;
	line-height: 1.8;
}

.vega-sp-tab-panel.active {
	display: block;
}

.vega-sp-tab-panel table {
	width: 100%;
	border-collapse: collapse;
}

.vega-sp-tab-panel table th,
.vega-sp-tab-panel table td {
	padding: 10px 15px;
	border-bottom: 1px solid #eee;
	text-align: left;
	font-size: 14px;
}

.vega-sp-tab-panel table th {
	font-weight: 600;
	color: #333;
	width: 30%;
}

/* --- Related products --- */
.vega-sp-related {
	margin-top: 10px;
}

.vega-related-grid {
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 25px !important;
}

/* --- Responsive --- */
@media (max-width: 900px) {
	.vega-sp-top {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.vega-sp-gallery {
		position: static;
	}

	.vega-sp-title {
		font-size: 24px;
	}

	.vega-related-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 600px) {
	.vega-single-product {
		padding: 20px 0 40px;
	}

	.vega-sp-top {
		gap: 20px;
	}

	.vega-sp-title {
		font-size: 20px;
	}

	.vega-sp-price {
		font-size: 20px;
	}

	.vega-sp-thumb {
		width: 55px;
		height: 55px;
	}

	.vega-sp-qty-row {
		flex-direction: column;
		align-items: stretch;
	}

	.vega-sp-atc-btn {
		height: 48px;
	}

	.vega-sp-tab-btn {
		padding: 10px 15px;
		font-size: 12px;
	}

	.vega-related-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 15px !important;
	}
}
