/* Product Page Styles */

.product-page {
	max-width: 1400px;
	margin: 120px auto 40px;
	padding: 0 20px;
}

.breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 30px;
	font-size: 14px;
	color: rgba(166, 79, 37, 0.7);
}

.breadcrumb a {
	color: rgba(166, 79, 37, 0.7);
	text-decoration: none;
	transition: color 0.3s;
}

.breadcrumb a:hover {
	color: #a64f25;
}

.breadcrumb span:last-child {
	color: #a64f25;
	font-weight: 500;
}

.product-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	margin-top: 40px;
}

/* Product Gallery */
.product-gallery {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.main-image {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 8px;
	background: #f5f5f5;
}

.main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.main-image img:hover {
	transform: scale(1.05);
}

.thumbnail-gallery {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}

.thumbnail {
	aspect-ratio: 1;
	width: 100%;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	border: 2px solid transparent;
	transition:
		border-color 0.3s,
		opacity 0.3s;
	opacity: 0.6;
}

.thumbnail:hover {
	opacity: 1;
}

.thumbnail.active {
	border-color: #a64f25;
	opacity: 1;
}

/* Product Info */
.product-info h1 {
	font-size: 36px;
	font-weight: 500;
	margin-bottom: 8px;
	color: #a64f25;
}

.product-collection {
	font-size: 14px;
	color: #f2c14f;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 20px;
}

.product-price {
	font-size: 28px;
	font-weight: 600;
	color: #a64f25;
	margin-bottom: 24px;
}

.product-description {
	font-size: 16px;
	line-height: 1.8;
	color: rgba(166, 79, 37, 0.85);
	margin-bottom: 40px;
}

/* Product Options */
.product-options {
	display: flex;
	flex-direction: column;
	gap: 32px;
	margin-bottom: 40px;
}

.option-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.option-group label {
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #a64f25;
}

/* Size Selector */
.size-selector {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.size-option {
	min-width: 50px;
	padding: 12px 16px;
	border: 1px solid #ddd;
	background: white;
	font-family: "grappa-two-variable", sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #a64f25;
	cursor: pointer;
	transition: all 0.3s;
	border-radius: 4px;
	position: relative;
}

.size-option:hover {
	border-color: #a64f25;
}

.size-option.active {
	background: #a64f25;
	color: rgba(250, 248, 209, 0.9);
	border-color: #a64f25;
}

/* Size Guide Icon */
.size-guide-icon {
	cursor: help;
	color: #a64f25;
	font-size: 16px;
	margin-left: 5px;
}

/* Size Tooltip */
.size-tooltip {
	display: none;
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 10px;
	background: white;
	border: 2px solid #a64f25;
	border-radius: 8px;
	padding: 12px 16px;
	min-width: 200px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	white-space: nowrap;
}

.size-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 8px solid transparent;
	border-top-color: #a64f25;
}

.size-option:hover .size-tooltip {
	display: block;
}

.size-tooltip h4 {
	margin: 0 0 8px 0;
	color: #a64f25;
	font-family: "grappa-two-variable", sans-serif;
	font-size: 14px;
	font-weight: 600;
	border-bottom: 1px solid #f2c14f;
	padding-bottom: 6px;
	text-align: left;
}

.size-tooltip ul {
	list-style: none;
	padding: 0;
	margin: 0;
	text-align: left;
}

.size-tooltip li {
	color: #a64f25;
	font-size: 12px;
	line-height: 1.6;
	padding: 2px 0;
	text-align: left;
}

/* Color Selector */
.color-selector {
	display: flex;
	gap: 12px;
}

.color-option {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-option:hover {
	transform: scale(1.1);
}

.color-option.active {
	border-color: #a64f25;
	box-shadow: 0 0 0 3px rgba(166, 79, 37, 0.2);
}

/* Quantity Selector */
.quantity-selector {
	display: flex;
	align-items: center;
	gap: 0;
	width: fit-content;
}

.qty-btn {
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	background: white;
	font-family: "grappa-two-variable", sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: #a64f25;
	cursor: pointer;
	transition: all 0.3s;
}

.qty-btn:hover {
	background: #f5f5f5;
}

#quantity {
	width: 60px;
	height: 40px;
	text-align: center;
	border: 1px solid #ddd;
	border-left: none;
	border-right: none;
	font-family: "grappa-two-variable", sans-serif;
	font-size: 16px;
	font-weight: 500;
	color: #a64f25;
}

/* Remove spinner from number input */
#quantity::-webkit-inner-spin-button,
#quantity::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

#quantity {
	-moz-appearance: textfield;
}

/* Commander Button */
.btn-commander {
	width: 100%;
	padding: 18px 32px;
	background: #a64f25;
	color: rgba(250, 248, 209, 0.9);
	border: none;
	font-family: "grappa-two-variable", sans-serif;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s;
	border-radius: 4px;
	margin-bottom: 40px;
}

.btn-commander:hover {
	background: #8b3f1f;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-commander:active {
	transform: translateY(0);
}

/* Product Details */
.product-details {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-top: 32px;
	border-top: 1px solid #eee;
}

.detail-section h3 {
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 12px;
	color: #a64f25;
}

.detail-section p {
	font-size: 14px;
	line-height: 1.8;
	color: rgba(166, 79, 37, 0.85);
}

.detail-section ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.detail-section ul li {
	font-size: 14px;
	line-height: 1.8;
	color: rgba(166, 79, 37, 0.85);
	padding-left: 20px;
	position: relative;
}

.detail-section ul li:before {
	content: "•";
	position: absolute;
	left: 0;
	color: #a64f25;
	font-weight: bold;
}

/* Responsive Design */
@media (max-width: 968px) {
	.product-container {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.product-info h1 {
		font-size: 28px;
	}

	.product-price {
		font-size: 24px;
	}
}

@media (max-width: 640px) {
	.product-page {
		margin-top: 100px;
	}

	.thumbnail-gallery {
		grid-template-columns: repeat(3, 1fr);
	}

	.product-info h1 {
		font-size: 24px;
	}

	.product-price {
		font-size: 22px;
	}

	.size-selector {
		gap: 8px;
	}

	.size-option {
		min-width: 45px;
		padding: 10px 12px;
		font-size: 13px;
	}

	.btn-commander {
		padding: 16px 24px;
		font-size: 14px;
	}
}
