:root {
	--primary-color: #a8741a;
	--primary-hover: #c38b25;
	--bg-body: #fafafa;
	--card-bg: #ffffff;
	--text-main: #2b2b2b;
	--text-muted: #888888;
	--border-color: #eaeaea;
}

body {
	font-family: "Outfit", sans-serif;
	background-color: var(--bg-body);
	color: var(--text-main);
}

nav.navbar-custom {
	background: var(--card-bg);
	border-bottom: 1px solid var(--border-color);
	padding: 15px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.brand-logo {
	max-height: 40px;
}

.image-container {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 5px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	border: 1px solid var(--border-color);
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f8f8f8;
}

.image-container img {
	max-width: 100%;
	max-height: 650px;
	object-fit: contain;
	border-radius: 8px;
	transition: opacity 0.2s ease;
}

/* ===== GALLERY THUMBNAILS ===== */
.gallery-thumbnails {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
	padding: 10px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.gallery-thumbnails::-webkit-scrollbar {
	display: none; /* Hide scrollbar for minimalist look */
}

.gallery-thumb {
	flex-shrink: 0;
	width: 65px;
	height: 65px;
	border: 2px solid transparent;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	background: var(--card-bg);
	padding: 2px;
	transition: all 0.3s ease;
	opacity: 0.6;
}

.gallery-thumb:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.gallery-thumb.active {
	opacity: 1;
	border-color: var(--primary-color);
	box-shadow: 0 4px 15px rgba(168, 116, 26, 0.2);
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.details-wrapper {
	background: var(--card-bg);
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
	border: 1px solid var(--border-color);
	height: 100%;
}

.product-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-main);
	margin-bottom: 5px;
}

.product-meta {
	color: var(--text-muted);
	font-size: 1.1rem;
	margin-bottom: 25px;
	padding-bottom: 25px;
	border-bottom: 1px solid var(--border-color);
}

.fabrication-info {
	border-left: 3px solid var(--primary-color);
	padding: 15px 20px;
	background: rgba(168, 116, 26, 0.05);
	border-radius: 0 8px 8px 0;
	margin-bottom: 25px;
}

.wood-badge {
	display: inline-block;
	background: white;
	padding: 4px 12px;
	border-radius: 50px;
	border: 1px solid var(--border-color);
	margin-right: 6px;
	margin-bottom: 8px;
	font-size: 0.85rem;
	color: var(--text-main);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.price-section {
	margin: 30px 0;
	display: flex;
	align-items: flex-end;
	gap: 15px;
}

.current-price {
	font-size: 2.5rem;
	font-weight: 700;
	color: var(--primary-color);
	line-height: 1;
}

.old-price {
	font-size: 1.2rem;
	color: var(--text-muted);
	text-decoration: line-through;
	margin-bottom: 5px;
}

.btn-add-cart {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 15px 30px;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.3s;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.btn-add-cart:hover {
	background-color: var(--primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(168, 116, 26, 0.3);
}

.btn-add-cart.added {
	background-color: #28a745;
}

.btn-add-cart.added:hover {
	background-color: #218838;
	box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.form-select-custom {
	border-radius: 8px;
	border: 1px solid var(--border-color);
	box-shadow: none;
	padding: 12px 15px;
}

.form-select-custom:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(168, 116, 26, 0.25);
}

.customization-section {
	margin-top: 30px;
	padding-top: 25px;
	border-top: 1px dashed var(--border-color);
}

.customization-section a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
}

.customization-section a:hover {
	text-decoration: underline;
}

/* Related Products (Copied partly from index.php) */
.related-section {
	margin-top: 60px;
	margin-bottom: 60px;
}
.related-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 30px;
	color: var(--text-main);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.product-card {
	background: var(--card-bg);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
	transition: all 0.3s ease;
	border: 1px solid var(--border-color);
	height: 100%;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
	border-color: var(--primary-color);
	color: inherit;
}

.product-img-wrapper {
	position: relative;
	padding-top: 100%;
	overflow: hidden;
	background-color: #f8f8f8;
}

.product-img-wrapper img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.5s ease;
	padding: 10px;
}

.product-card:hover .product-img-wrapper img {
	transform: scale(1.05);
}

.product-category-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--primary-color);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	z-index: 2;
}

.product-destock-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: #e74c3c;
	color: white;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-weight: 600;
	z-index: 2;
}

.product-details-sm {
	padding: 20px;
	text-align: center;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.product-title-sm {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--text-main);
}

.product-dims-sm {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-bottom: 12px;
}
.product-price-sm {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--primary-color);
}

/* ===== DUAL IMAGE DIAGONAL SPLIT (Related Products) ===== */
.product-img-wrapper.dual-image .img-model {
	clip-path: polygon(0 0, 100% 0, 0 100%);
	z-index: 1;
	transition: transform 0.5s ease;
}

.product-img-wrapper.dual-image .img-type {
	clip-path: polygon(100% 0, 100% 100%, 0 100%);
	z-index: 1;
	transition: transform 0.5s ease;
}

/* Diagonal separator line */
.product-img-wrapper.dual-image::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom right, transparent calc(50% - 1.5px), rgba(255, 255, 255, 0.95) calc(50% - 1.5px), rgba(255, 255, 255, 0.95) calc(50% + 1.5px), transparent calc(50% + 1.5px));
	z-index: 3;
	pointer-events: none;
}

/* Hover: uniform zoom for dual-image cards */
.product-card:hover .product-img-wrapper.dual-image .img-model,
.product-card:hover .product-img-wrapper.dual-image .img-type {
	transform: scale(1.05);
}
