/* =========================================================
   Single Product — page template styles
   ========================================================= */

.ppp-wrap {
	padding: 40px 0;
}


/* ---------------------------------------------------------
   Main product section — 2-column layout
   --------------------------------------------------------- */

.ppp-product-section {
	display: flex;
	gap: 48px;
	align-items: flex-start;
	margin-bottom: 60px;
}


/* ---------------------------------------------------------
   Left column: images
   --------------------------------------------------------- */

.ppp-images {
	flex: 0 0 42%;
	max-width: 42%;
}

.ppp-lifestyle-image {
	width: 100%;
	margin-bottom: 12px;
	background: #f5f5f5;
}

.ppp-lifestyle-img {
	display: block;
	width: 100%;
	height: auto;
}

.ppp-gallery-thumbs {
	display: flex;
	gap: 12px;
}

.ppp-gallery-thumb {
	flex: 1;
	background: #f5f5f5;
}

.ppp-thumb-img {
	display: block;
	width: 100%;
	height: auto;
}

.ppp-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: #f0f0f0;
	color: #aaa;
	font-size: 0.8rem;
	text-align: center;
	padding: 16px;
}

.ppp-no-image--sm {
	min-height: 120px;
}

/* Zoom icon overlay on main image */
.ppp-lifestyle-image {
	position: relative;
	cursor: zoom-in;
}

.ppp-zoom-icon {
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

/* Magnifier glass shape via CSS */
.ppp-zoom-icon::before {
	content: '';
	position: absolute;
	top: 6px;
	left: 6px;
	width: 12px;
	height: 12px;
	border: 2px solid #333;
	border-radius: 50%;
}

.ppp-zoom-icon::after {
	content: '';
	position: absolute;
	top: 18px;
	left: 18px;
	width: 2px;
	height: 8px;
	background: #333;
	transform: rotate(45deg);
	transform-origin: top center;
}

.ppp-lifestyle-image:hover .ppp-zoom-icon {
	opacity: 1;
}

/* Thumbnail active state */
.ppp-gallery-thumb {
	cursor: pointer;
	outline: 2px solid transparent;
	outline-offset: 2px;
	transition: outline-color 0.15s ease;
}

.ppp-gallery-thumb:hover {
	outline-color: #999;
}

.ppp-gallery-thumb.is-active {
	outline-color: #333;
}


/* ---------------------------------------------------------
   Right column: product info
   --------------------------------------------------------- */

.ppp-info {
	flex: 1;
	min-width: 0;
}

.ppp-title {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 12px;
}

.ppp-meta {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 8px;
	font-size: 0.85rem;
	color: #666;
}

.ppp-type {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
}

.ppp-sku {
	color: #888;
}

/* Rating */
.ppp-rating {
	margin-bottom: 8px;
}

.ppp-rating .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0.85rem;
}

/* Price */
.ppp-price {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 16px;
}

.ppp-price .woocommerce-Price-amount {
	color: inherit;
}

/* Add to cart */
.ppp-add-to-cart {
	margin-bottom: 20px;
}

.ppp-add-to-cart .quantity {
	display: inline-flex;
	align-items: center;
	margin-right: 8px;
}

.ppp-add-to-cart .single_add_to_cart_button {
	padding: 10px 24px;
	font-size: 0.9rem;
	font-weight: 600;
	border: 2px solid #333;
	border-radius: 3px;
	background: #333;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.ppp-add-to-cart .single_add_to_cart_button:hover {
	background: #fff;
	color: #333;
}

/* Dividers */
.ppp-divider {
	border: none;
	border-top: 1px solid #e0e0e0;
	margin: 20px 0;
}

/* Description */
.ppp-section-heading {
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 10px;
}

.ppp-desc-text {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #444;
}

/* Short description / specs bullets */
.ppp-specs {
	font-size: 0.9rem;
	line-height: 1.7;
	color: #444;
}

.ppp-specs ul {
	margin: 0;
	padding-left: 20px;
	list-style: disc;
}

.ppp-specs li {
	margin-bottom: 4px;
}


/* ---------------------------------------------------------
   Tabs
   --------------------------------------------------------- */

.ppp-tab-nav {
	display: flex;
	gap: 0;
	border-bottom: 2px solid #333;
	margin-bottom: 20px;
}

.ppp-tab-btn {
	padding: 10px 18px;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 1px solid #ccc;
	border-bottom: none;
	background: #f5f5f5;
	color: #555;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	line-height: 1.4;
	text-decoration: none;
	display: inline-block;
}

.ppp-tab-btn + .ppp-tab-btn {
	border-left: none;
}

.ppp-tab-btn:hover {
	background: #eaeaea;
	color: #333;
}

.ppp-tab-btn.is-active {
	background: #333;
	border-color: #333;
	color: #fff;
}

.ppp-tab-btn--disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.ppp-tab-panel {
	font-size: 0.9rem;
	line-height: 1.65;
	color: #444;
}

.ppp-tab-empty {
	color: #999;
	font-style: italic;
	margin: 0;
}

/* Technical info attribute table */
.ppp-attr-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.ppp-attr-table th,
.ppp-attr-table td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.ppp-attr-table th {
	width: 40%;
	font-weight: 600;
	color: #333;
	background: #f9f9f9;
}

.ppp-attr-table td {
	color: #555;
}


/* ---------------------------------------------------------
   Trust badges
   --------------------------------------------------------- */

.ppp-trust-badges {
	display: flex;
	gap: 24px;
	justify-content: space-between;
	padding: 32px 0;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 60px;
}

.ppp-trust-badge {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 14px;
}

/* Placeholder icons — replace background with actual SVG or img */
.ppp-trust-icon {
	display: block;
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #e0e0e0;
}

.ppp-trust-icon--delivery  { background-color: #c8dff0; }
.ppp-trust-icon--guarantee { background-color: #c8e8d0; }
.ppp-trust-icon--design    { background-color: #e8d8c8; }
.ppp-trust-icon--eco       { background-color: #d0e8c8; }

.ppp-trust-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 0.85rem;
	line-height: 1.3;
}

.ppp-trust-text strong {
	font-weight: 700;
	color: #222;
}

.ppp-trust-text span {
	color: #666;
}


/* ---------------------------------------------------------
   Related products
   --------------------------------------------------------- */

.ppp-related {
	margin-bottom: 60px;
}

.ppp-related-title {
	font-size: 1.2rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 2px solid #333;
	padding-bottom: 10px;
	margin-bottom: 28px;
}

.ppp-related-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.ppp-related-card {
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.ppp-related-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ppp-related-img-link {
	display: block;
	text-decoration: none;
}

.ppp-related-img-link img {
	display: block;
	width: 100%;
	height: auto;
}

.ppp-related-info {
	padding: 12px 16px 16px;
	text-align: center;
}

.ppp-related-name {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 4px;
}

.ppp-related-name a {
	text-decoration: none;
	color: inherit;
}

.ppp-related-name a:hover {
	color: #0073aa;
}

.ppp-related-sku {
	font-size: 0.75rem;
	color: #888;
	margin: 0 0 6px;
}

.ppp-related-price {
	font-size: 1rem;
	font-weight: 700;
}


/* ---------------------------------------------------------
   FAQ accordion
   --------------------------------------------------------- */

.ppp-faq {
	margin-bottom: 60px;
}

.ppp-faq-title {
	font-size: 1.2rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	text-align: center;
	position: relative;
	margin-bottom: 28px;
}

.ppp-faq-title::before,
.ppp-faq-title::after {
	content: '';
	display: block;
	height: 2px;
	background: #333;
	margin: 6px auto 0;
	width: 60px;
}

.ppp-faq-title::before {
	margin: 0 auto 6px;
}

.ppp-faq-list {
	max-width: 760px;
	margin: 0 auto;
}

.ppp-faq-item {
	border-bottom: 1px solid #e0e0e0;
}

.ppp-faq-question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 16px 0;
	background: none;
	border: none;
	font-size: 0.95rem;
	font-weight: 600;
	color: #222;
	text-align: left;
	cursor: pointer;
	gap: 16px;
	line-height: 1.4;
}

.ppp-faq-question:hover {
	color: #555;
}

.ppp-faq-icon {
	flex-shrink: 0;
	display: block;
	width: 18px;
	height: 18px;
	position: relative;
}

.ppp-faq-icon::before,
.ppp-faq-icon::after {
	content: '';
	position: absolute;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Horizontal bar */
.ppp-faq-icon::before {
	width: 100%;
	height: 2px;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
}

/* Vertical bar */
.ppp-faq-icon::after {
	width: 2px;
	height: 100%;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
}

/* Rotate vertical bar to 0 when expanded (shows minus) */
.ppp-faq-question[aria-expanded="true"] .ppp-faq-icon::after {
	transform: translateX(-50%) rotate(90deg);
	opacity: 0;
}

.ppp-faq-answer {
	padding: 0 0 16px;
	font-size: 0.9rem;
	line-height: 1.65;
	color: #555;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {
	.ppp-product-section {
		flex-direction: column;
		gap: 32px;
	}

	.ppp-images {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.ppp-related-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 640px) {
	.ppp-trust-badges {
		flex-wrap: wrap;
		gap: 20px;
	}

	.ppp-trust-badge {
		flex: 0 0 calc(50% - 10px);
	}

	.ppp-tab-nav {
		flex-wrap: wrap;
	}

	.ppp-tab-btn {
		flex: 1 1 auto;
		text-align: center;
	}

	.ppp-related-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.ppp-title {
		font-size: 1.3rem;
	}
}

/* ---------------------------------------------------------
   Lightbox
   --------------------------------------------------------- */

.ppp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ppp-lightbox[hidden] {
	display: none;
}

.ppp-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	cursor: zoom-out;
}

.ppp-lightbox-inner {
	position: relative;
	z-index: 1;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ppp-lightbox-img {
	display: block;
	max-width: 90vw;
	max-height: 90vh;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.ppp-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	opacity: 0.8;
	transition: opacity 0.15s;
}

.ppp-lightbox-close:hover {
	opacity: 1;
}

.ppp-lightbox-prev,
.ppp-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	font-size: 3rem;
	line-height: 1;
	cursor: pointer;
	padding: 12px 18px;
	opacity: 0.7;
	transition: opacity 0.15s, background 0.15s;
	z-index: 2;
}

.ppp-lightbox-prev { left: -64px; }
.ppp-lightbox-next { right: -64px; }

.ppp-lightbox-prev:hover,
.ppp-lightbox-next:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 900px) {
	.ppp-lightbox-prev { left: 0; }
	.ppp-lightbox-next { right: 0; }
}

/* Prevent body scroll when lightbox is open */
body.ppp-lightbox-open {
	overflow: hidden;
}


@media (max-width: 400px) {
	.ppp-related-grid {
		grid-template-columns: 1fr 1fr;
	}

	.ppp-trust-badge {
		flex: 0 0 100%;
	}
}
