/* Net-new CSS for the Summer product detail page: only what the vendored sheet has no rule for,
   because the reference got it from a plugin this theme does not load (Swiper sizing, Drift zoom). */

/* Embla does not size slides, so the thumb rail's box - absolutely positioned over the stage by
   style.css - has to be capped here or it measures the full track width and adds a scrollbar. */
.dz-product-detail .product-gallery-swiper.thumb-swiper-lg {
	width: max-content;
	max-width: calc(100% - 30px);
}

.dz-product-detail .product-gallery-swiper .swiper-slide {
	margin-right: 15px;
	cursor: pointer;
}

/* --- Hover zoom: the reference ran Drift, which is not loaded here --- */

.product-gallery-stage {
	overflow: hidden;
}

.product-gallery-stage .dz-media img {
	width: 100%;
	transition: transform 0.3s ease-in-out;
}

/* Pointer position drives transform-origin from Alpine; a touch device has no pointer to
   drive it with, so the scale is switched off rather than left stuck at the last origin. */
@media (hover: hover) {
	.product-gallery-stage .dz-media img.is-zoomed {
		transform: scale(1.8);
	}
}

/* --- Colour variants: the reference's .color-filter swatches have no rule in style.css --- */

.product-colour-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.product-colour-list a {
	display: block;
	width: 62px;
	text-align: center;
}

/* contain, not cover: these are cut-out garment shots, so cropping them to fill the tile lops
   off the sleeves. The padding keeps the garment off the selected tile's border. */
.product-colour-list img {
	box-sizing: border-box;
	width: 62px;
	height: 62px;
	padding: 6px;
	object-fit: contain;
	border-radius: 10px;
	border: 2px solid transparent;
}

.product-colour-list a.is-active img,
.product-colour-list a:hover img {
	border-color: var(--secondary);
}

.product-colour-list span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--secondary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* .dz-info lays its <ul>s out as one flowing column of label/value pairs; the spec tab wants
   the same pairs without the divider rule that separates them from the buy box. */
.product-specification {
	border-top: 0;
	padding-top: 0;
}

/* bootstrap-touchspin's own sheet made the counter a block so style.css's `margin: auto` could
   centre it; without the plugin the input stays inline-block and the minus button paints over it. */
.btn-quantity .bootstrap-touchspin input {
	display: block;
}

/* style.css styles .dz-rating / .star-fill / .comments-area only under card wrappers this markup
   does not use (.dz-shop-card, .dz-product-detail .dz-content), so the bare block renders unstyled. */

.comments-area .dz-rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Only the summary block's stars are centred; a review's own stars sit above its left-aligned name. */
.comments-area .comment-list .dz-rating,
.comments-area .dz-rating.dz-rating-input {
	justify-content: flex-start;
}

.comments-area .dz-rating li {
	display: inline-block;
	font-size: 16px;
	color: var(--bs-gray-300);
}

/* Sized in em so font-size stays the one size knob the histogram's smaller stars already turn. */
.comments-area .dz-rating li svg,
.comments-area .rating-histogram-row > svg {
	width: 1em;
	height: 1em;
	display: block;
}

.comments-area .rating-histogram-row > svg {
	font-size: 12px;
	flex-shrink: 0;
}

.comments-area .dz-rating li.star-fill {
	color: var(--bs-warning);
}

.comments-area .dz-rating-input li .btn-link {
	line-height: 1;
	text-decoration: none;
}

.comments-area .rating-summary {
	min-width: 220px;
}

.comments-area .rating-histogram-row {
	font-size: 13px;
	color: var(--bs-secondary-text);
}

.comments-area .rating-histogram-row .dz-rating li {
	font-size: 12px;
}

.comments-area .comment-list > .comment .comment-body {
	padding: 2px 0 30px 0;
	min-height: 0;
}

.comments-area .comment-list > .comment .comment-body .fn {
	font-family: var(--font-family-title);
	font-size: 16px;
	line-height: 21px;
	color: var(--title);
	font-weight: 600;
	display: inline-block;
	margin-right: 8px;
}

.comments-area .comment-list > .comment .comment-body p {
	font-size: 14px;
	font-family: var(--font-family-base);
	color: var(--bs-secondary-text);
}

.comments-area .comment-list > .comment .seller-reply {
	background: var(--bs-gray-100);
	border-radius: 10px;
}
