/*=============== PRODUCT DETAILS PAGE ===============*/
.product-details {
	padding: 9rem 1.5rem 4rem;
	background: #fff;
}

.product-details__container {
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
}

/*=============== BREADCRUMB ===============*/
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
	max-width: 85%;
	margin-left: auto;
	margin-right: auto;
}

/* Breadcrumb visibility control */
.product-info__description--mobile {
	display: none; /* Hidden on desktop */
}

.product-info__description--desktop {
	display: block; /* Shown on desktop */
}

.breadcrumb__link {
	color: #666;
	text-decoration: none;
	transition: color 0.3s;
}

.breadcrumb__link:hover {
	color: #333;
}

.breadcrumb__separator {
	color: #999;
}

.breadcrumb__current {
	color: #333;
}

/*=============== PRODUCT LAYOUT ===============*/
.product-details__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	margin-bottom: 6rem;
}

/*=============== IMAGE GALLERY ===============*/
.product-gallery {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
	max-width: 100%;
	margin: 0 auto;
}

.product-gallery__main {
	width: 100%;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	border-radius: 12px;
	background: #f9f9f9;
	position: relative;
	cursor: zoom-in;
}

.product-gallery__main-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Zoom lens (small circle showing zoom area) */
.product-gallery__zoom-lens {
	position: absolute;
	width: 100px;
	height: 100px;
	border: 2px solid #333;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	pointer-events: none;
	z-index: 10;
	opacity: 0;
	transition: opacity 0.1s ease;
}

/* Zoom view (larger zoomed image) */
.product-gallery__zoom-view {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: 12px;
	top: 0;
	left: 0;
	background: #fff;
	z-index: 11;
	opacity: 0;
	transition: opacity 0.1s ease;
	pointer-events: none;
	/* Position inside the main gallery only, not over thumbnails */
}


.product-gallery__zoom-view img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: top left;
	display: block;
}

.product-gallery__thumbnails {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.product-gallery__thumb {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 8px;
	border: 2px solid transparent;
	background: #f9f9f9;
	cursor: pointer;
	transition: all 0.3s;
	padding: 0;
	pointer-events: auto;
	z-index: 5;
}

.product-gallery__thumb:hover {
	border-color: #ddd;
}

.product-gallery__thumb--active {
	border-color: #333;
}

.product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*=============== PRODUCT INFO ===============*/
.product-info {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	position: relative;
	z-index: 20;
	pointer-events: auto;
}

.product-info__header {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.product-info__category {
	font-size: 0.85rem;
	color: #666;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.product-info__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 300;
	letter-spacing: 0.04em;
	line-height: 1.2;
}

.product-info__price {
	font-size: 1.5rem;
	font-weight: 500;
	color: #333;
}

.product-info__article-number {
	font-size: 1rem;
	color: #666;
	margin: 0.5rem 0;
	font-weight: 400;
}

.product-info__article-number strong {
	font-weight: 700;
	color: #333;
}

.product-info__description {
	color: #555;
	line-height: 1.6;
	font-size: 1rem;
}

.product-info__details-text {
	color: #555;
	line-height: 1.6;
	font-size: 0.95rem;
}

.product-info__details-text p {
	margin: 0;
	white-space: normal;
}

.product-info__details-heading {
	margin: 0 0 10px;
	font-size: 1rem;
	font-weight: 600;
	color: #222;
}

.product-info__details-paragraphs p {
	margin: 0 0 12px;
}

.product-info__details-list {
	margin: 0;
	padding-left: 18px;
	list-style: disc;
}

.product-info__details-list li {
	margin-bottom: 6px;
}

/*=============== COLOR & SIZE OPTIONS ===============*/
.product-info__option {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	position: relative;
	z-index: 21;
}

.product-info__label {
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #333;
}

.product-info__label-value {
	font-weight: 700;
	color: #000;
	margin-left: 0.5rem;
}

.product-info__colors {
	display: flex;
	gap: 0.75rem;
}

/* Color Wrapper with labels */
.product-info__colors-wrapper {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
}

.product-info__color-item {
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: transform 0.3s;
}

.product-info__color-item:hover {
	transform: scale(1.1);
}

.product-info__color-item--active .product-info__color {
	border-color: #000;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000;
}

.product-info__color {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
}

.product-info__color:hover {
	transform: scale(1.1);
}

.product-info__color--active {
	border-color: #333;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333;
}

/* Color Variants */
.product-info__variants {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.product-info__variant {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid #ddd;
	cursor: pointer;
	transition: all 0.3s;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.product-info__variant:hover {
	transform: scale(1.15);
	border-color: #333;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-info__variant::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	border: 2px solid transparent;
	transition: border-color 0.3s;
}

.product-info__variant:hover::after {
	border-color: rgba(0,0,0,0.1);
}

.product-info__sizes {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.product-info__size-option {
	position: relative;
	display: inline-flex;
	pointer-events: auto;
	z-index: 22;
}

.product-info__size-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.product-info__size {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	font-size: 0.95rem;
	font-weight: 500;
	min-width: 60px;
	pointer-events: auto;
	position: relative;
	z-index: 23;
}

.product-info__size:hover {
	border-color: #333;
	background: #f9f9f9;
}

.product-info__size-option:focus-within .product-info__size {
	outline: 2px solid #333;
	outline-offset: 2px;
}

.product-info__label-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.product-info__size-chart-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	color: #666;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s;
	white-space: nowrap;
	pointer-events: auto;
	z-index: 25;
}

.product-info__size-chart-link svg {
	width: 14px;
	height: 14px;
	transition: transform 0.3s;
}

.product-info__size-chart-link:hover {
	color: #333;
	background: #fff;
	border-color: #333;
}

.product-info__size-chart-link:hover svg {
	transform: scale(1.1);
}

/* Size Chart Modal */
.size-chart-modal {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	align-items: center;
	justify-content: center;
}

.size-chart-modal__content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	background-color: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.size-chart-modal__close {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 40px;
	height: 40px;
	background-color: #fff;
	color: #333;
	font-size: 32px;
	font-weight: bold;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	transition: background-color 0.3s, color 0.3s;
	line-height: 1;
}

.size-chart-modal__close:hover,
.size-chart-modal__close:focus {
	background-color: #333;
	color: #fff;
}

.size-chart-modal__image {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	width: auto;
	height: auto;
	object-fit: contain;
}

.product-info__size--active {
	border-color: #333;
	background: #333;
	color: #fff;
}

.product-info__size-input:checked + .product-info__size {
	border-color: #333;
	background: #333;
	color: #fff;
}

/*=============== ACTIONS ===============*/
.product-info__actions {
	display: flex;
	gap: 1rem;
	margin-top: 1rem;
	position: relative;
	z-index: 21;
}

.product-info__add-to-cart {
	flex: 1;
	padding: 1rem 2rem;
	background: #333;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	pointer-events: auto;
	z-index: 24;
}

.product-info__add-to-cart:hover {
	background: #000;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-info__wishlist {
	width: 54px;
	height: 54px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	color: #333;
	position: relative;
	z-index: 30;
	pointer-events: auto;
}

.product-info__wishlist svg {
	transition: fill 0.2s ease, stroke 0.2s ease;
	fill: none;
	stroke: currentColor;
}

.product-info__wishlist:hover {
	border-color: #333;
	background: #f9f9f9;
}

.product-info__wishlist.favorite-btn--active {
	border-color: #c44;
	color: #c44;
	background: #fff5f5;
}

.product-info__wishlist.favorite-btn--active svg,
.product-info__wishlist[aria-pressed="true"] svg {
	fill: #c44;
	stroke: #c44;
}

/*=============== ACCORDION DETAILS ===============*/
.product-info__details {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	border-top: 1px solid #eee;
	padding-top: 2rem;
}

.product-info__accordion {
	border-bottom: 1px solid #eee;
}

.product-info__accordion-title {
	padding: 1.25rem 0;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.3s;
}

.product-info__accordion-title:hover {
	color: #666;
}

.product-info__accordion-title::after {
	content: '+';
	font-size: 1.5rem;
	transition: transform 0.3s;
}

.product-info__accordion[open] .product-info__accordion-title::after {
	transform: rotate(45deg);
}

.product-info__accordion-content {
	padding-bottom: 1.5rem;
	color: #555;
	line-height: 1.6;
}

.product-info__accordion-content ul {
	list-style: none;
	padding: 0;
}

.product-info__accordion-content li {
	padding: 0.25rem 0;
}

.product-info__accordion-content li::before {
	content: '•';
	margin-right: 0.5rem;
	color: #999;
}

/*=============== SIZE GUIDE TABLE ===============*/
.size-guide {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

.size-guide th,
.size-guide td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid #eee;
}

.size-guide th {
	font-weight: 600;
	color: #333;
	font-size: 0.9rem;
}

.size-guide td {
	color: #555;
}

.size-guide tr:last-child td {
	border-bottom: none;
}

/*=============== SIMILAR PRODUCTS ===============*/
.similar-products {
	padding-top: 4rem;
	border-top: 1px solid #eee;
}

.similar-products__title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 300;
	letter-spacing: 0.08em;
	text-align: center;
	margin-bottom: 3rem;
}

.similar-products__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
}

/* Use shared product card styles from index.css */
.similar-products .product-card {
	background: transparent;
	border: none;
	box-shadow: none;
	transition: none;
}

.similar-products .product-card:hover {
	transform: none;
	box-shadow: none;
}

.similar-products .product-card__image-wrapper {
	background: none;
	aspect-ratio: 3 / 4;
}

.similar-products .product-card__content {
	padding: 1rem 0;
}

.similar-products .product-card__category {
	color: #666;
}

/*=============== RESPONSIVE ===============*/
@media screen and (max-width: 1024px) {
	.product-details__layout {
		gap: 3rem;
	}

	.similar-products__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media screen and (max-width: 768px) {
	.product-details {
		padding: 7rem 1.5rem 3rem;
	}

	/* Show mobile breadcrumb, hide desktop breadcrumb */
	.product-info__description--mobile {
		display: block;
		margin-bottom: 1.5rem;
		padding: 0 0.5rem;
	}

	.product-info__description--desktop {
		display: none;
	}

	.product-details__layout {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.product-gallery__thumbnails {
		grid-template-columns: repeat(4, 1fr);
		gap: 0.75rem;
	}

	.product-info__actions {
		flex-direction: row;
		align-items: stretch;
	}

	.product-info__wishlist {
		width: 54px;
		flex: 0 0 54px;
	}

	.similar-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

@media screen and (max-width: 480px) {
	.product-details {
		padding: 5rem 1rem 1rem;
	}
	.product-details__layout {
		gap: 1rem;
	}
	.product-info__title {
		font-size: 1.1rem;
	}
	.breadcrumb {
		font-size: 0.8rem;
	}

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

	.similar-products__grid {
		grid-template-columns: 1fr;
	}
}
