/*
 * AS Product Detail — tablet and up (media attribute: min-width = phone breakpoint + 1).
 * Stacked layout with the peek gallery, arrows and thumbnails.
 */

body.aspd-page {
	--aspd-gutter: var(--aspd-gutter-tab, 4vw);
}

/* Gallery: peek strip */
body.aspd-page .aspd-main__media {
	margin: 0 0 18px;
}
body.aspd-page .aspd-gallery__media {
	border-radius: var(--aspd-r-media);
}
body.aspd-page .aspd-gallery__track {
	gap: var(--aspd-slide-gap, 1px);
	cursor: grab;
}
body.aspd-page .aspd-gallery__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}
body.aspd-page .aspd-gallery__track.is-dragging .aspd-gallery__link {
	pointer-events: none;
}
body.aspd-page .aspd-gallery__slide {
	flex-basis: var(--aspd-slide-tab, 66%);
}
body.aspd-page .aspd-gallery[data-count="1"] .aspd-gallery__slide {
	flex-basis: 100%;
}
body.aspd-page .aspd-gallery__zoom,
body.aspd-page .aspd-gallery__dots,
body.aspd-page .aspd-gallery__counter {
	display: none;
}
body.aspd-page .aspd .aspd-gallery__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 39px;
	height: 39px;
	margin: -19.5px 0 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
	color: #1a1a1a;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: background-color .15s ease, opacity .15s ease;
}
body.aspd-page .aspd .aspd-gallery__arrow:hover {
	background: rgba(255, 255, 255, .85);
}
body.aspd-page .aspd .aspd-gallery__arrow .aspd-icon {
	width: 18px;
	height: 18px;
	stroke-width: 2.2;
}
body.aspd-page .aspd .aspd-gallery__arrow--prev {
	left: 14px;
}
body.aspd-page .aspd .aspd-gallery__arrow--next {
	right: 14px;
}
body.aspd-page .aspd-gallery__thumbs {
	display: flex;
	gap: 1px;
	margin: 12px 0 0;
	overflow-x: auto;
	scrollbar-width: none;
}
body.aspd-page .aspd-gallery__thumbs::-webkit-scrollbar {
	display: none;
}
body.aspd-page .aspd .aspd-gallery__thumb {
	position: relative;
	display: block;
	flex: 0 0 var(--aspd-thumb, 51px);
	width: var(--aspd-thumb, 51px);
	height: var(--aspd-thumb, 51px);
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	border-radius: var(--aspd-r-media) !important;
	background: var(--aspd-media-bg);
	cursor: pointer;
	overflow: hidden;
}
body.aspd-page .aspd .aspd-gallery__thumb.is-active {
	border-color: #111;
}
body.aspd-page .aspd-gallery__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}
body.aspd-page .aspd-gallery__thumb-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, .28);
	color: #fff;
}
body.aspd-page .aspd-gallery__thumb-play .aspd-icon {
	width: 18px;
	height: 18px;
}

/* Purchase column */
body.aspd-page .aspd-crumbs {
	margin: 0 0 16px;
	font-size: 12px;
	line-height: 1.4;
}
body.aspd-page .aspd .aspd-title {
	font-size: 30px;
}
body.aspd-page .aspd .aspd-price {
	margin-bottom: 20px;
}
body.aspd-page .aspd .aspd-price :is(.amount, .amount bdi, .woocommerce-Price-currencySymbol, ins, .wcpbc-price) {
	font-size: 32px;
}
body.aspd-page .aspd-kf {
	margin-bottom: 35px;
}
body.aspd-page .aspd-kf__head {
	align-items: baseline;
	gap: 14px;
}
body.aspd-page .aspd-kf__item.is-over-mob {
	display: flex;
}
body.aspd-page .aspd-kf__item.is-over-desk {
	display: none;
}
body.aspd-page .aspd-buy :is(.ct-cart-actions, form.cart:not(.variations_form):not(.grouped_form), .woocommerce-variation-add-to-cart) > .single_add_to_cart_button {
	flex: 1 1 0;
}
body.aspd-page #aspd-purchase .aspd-buy .quantity input.qty {
	font-size: 15px;
}
body.aspd-page .aspd .aspd-actions .ct-label {
	display: block;
}
body.aspd-page .aspd-trust {
	grid-template-columns: repeat(var(--aspd-trust-cols, 3), minmax(0, 1fr));
}
body.aspd-page .aspd-trust__item {
	grid-template-columns: 28px minmax(0, 1fr);
	column-gap: 8px;
	min-height: 70px;
	padding: 10px 9px;
	border-bottom: 0;
	border-right: 1px solid var(--aspd-border);
}
body.aspd-page .aspd-trust__item:last-child {
	border-right: 0;
}
body.aspd-page .aspd-trust__icon {
	width: 28px;
	height: 28px;
}
body.aspd-page .aspd-trust__icon .aspd-icon {
	width: 17px;
	height: 17px;
}
body.aspd-page .aspd .aspd-trust__title {
	font-size: 10.5px;
	letter-spacing: .05em;
}
body.aspd-page .aspd .aspd-trust__desc {
	font-size: 10px;
}

/* Section titles, reviews */
body.aspd-page .aspd .aspd-section-title {
	font-size: 28px;
}
body.aspd-page .aspd-reviews {
	padding: 48px 0 88px;
}
body.aspd-page .aspd-reviews__layout {
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 32px;
}
body.aspd-page .aspd-reviews__summary {
	position: sticky;
	top: calc(var(--aspd-snav-h, 60px) + 48px);
	padding: 24px;
}
body.aspd-page .aspd-reviews__score {
	grid-template-columns: minmax(0, 1fr) 144px;
	gap: 24px;
}
body.aspd-page .aspd .aspd-reviews__average {
	font-size: 72px;
}

body.aspd-page .aspd-review {
	grid-template-columns: 40px minmax(0, 1fr);
}
body.aspd-page .aspd .aspd-review__avatar {
	display: flex;
}
body.aspd-page .aspd-reviews__item.is-over-mob {
	display: block;
}
body.aspd-page .aspd-reviews__item.is-over-desk {
	display: none;
}
body.aspd-page .aspd-reviews.is-expanded .aspd-reviews__item {
	display: block;
}
body.aspd-page .aspd-reviews.has-more-mob .aspd-reviews__more {
	display: none;
}
body.aspd-page .aspd-reviews.has-more .aspd-reviews__more {
	display: flex;
}
body.aspd-page .aspd-reviews.is-fade.has-more-mob:not(.is-expanded) .aspd-reviews__more {
	margin-top: 0;
	padding-top: 24px;
	background: none;
}
body.aspd-page .aspd-reviews.is-fade.has-more:not(.is-expanded) .aspd-reviews__more {
	margin-top: -132px;
	padding-top: 108px;
	background: linear-gradient(to bottom, color-mix(in srgb, var(--aspd-page) 0%, transparent) 0, color-mix(in srgb, var(--aspd-page) 88%, transparent) 46%, var(--aspd-page) 72%);
}
body.aspd-page .aspd-related {
	padding: 48px 0 88px;
}
body.aspd-page .aspd .aspd-rail-nav {
	display: inline-flex;
}
body.aspd-page .aspd-related__cards > ul {
	grid-template-columns: repeat(var(--aspd-rel-grid-tab, 3), minmax(0, 1fr));
	gap: 20px;
}
body.aspd-page .aspd-related.is-carousel .aspd-related__cards > ul {
	grid-auto-columns: calc((100% - (var(--aspd-rel-cols-tab, 3) - 1) * 16px) / var(--aspd-rel-cols-tab, 3));
	gap: 16px;
}

/* Section nav */
body.aspd-page .aspd-snav {
	padding: 7px 24px 6px;
}
body.aspd-page .aspd-snav__link {
	min-height: 40px;
	padding: 0 16px;
	font-size: 12px;
}
body.aspd-page .aspd-snav__dots {
	display: none;
}

/* Sticky bar: thumbnail, title, price | button */
body.aspd-page .aspd-bar {
	padding: 8px 0;
	border-top: 0;
	box-shadow: 0 10px 20px rgba(44, 62, 80, .15), 0 -1px 0 rgba(26, 29, 32, .06);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
body.aspd-page .aspd-bar__inner {
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
}
body.aspd-page .aspd-bar__product {
	gap: 15px;
}
body.aspd-page .aspd-bar__media {
	display: block;
	flex: none;
	width: 40px;
	height: 40px;
}
body.aspd-page .aspd-bar__img {
	display: block;
	width: 40px;
	height: 40px;
	object-fit: cover;
}
body.aspd-page .aspd-bar__copy {
	gap: 0;
}
body.aspd-page .aspd-bar__title {
	display: block;
	overflow: hidden;
	color: var(--aspd-text);
	font-family: var(--aspd-font-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 21px;
	text-overflow: ellipsis;
	white-space: nowrap;
}
body.aspd-page .aspd-bar .aspd-bar__price,
body.aspd-page .aspd-bar .aspd-bar__price :is(.amount, bdi, .woocommerce-Price-currencySymbol, ins, .wcpbc-price) {
	color: var(--aspd-text);
	font-family: var(--aspd-font-text) !important;
	font-size: 12px;
	font-weight: 500 !important;
	line-height: 19.8px;
	letter-spacing: 0;
}
body.aspd-page .aspd-bar .aspd-bar__btn {
	width: auto;
	min-width: 128px;
	font-size: 15px;
	letter-spacing: .04em;
}
body.aspd-page .aspd-bar .aspd-bar__btn.aspd-btn--primary {
	background: var(--aspd-accent);
	color: var(--aspd-accent-ink);
	font-weight: 600 !important;
}
body.aspd-page.aspd-bar-on .ct-back-to-top {
	transform: translateY(-70px);
}

body.aspd-page .aspd-dialog__head {
	padding: 12px 20px;
}

/* Media switch / video row: the gallery is no longer full bleed. */
body.aspd-page .aspd-gallery__videos {
	display: flex;
	padding: 0;
}
body.aspd-page .aspd-gallery__modes {
	margin-top: 16px;
}
body.aspd-page .aspd .aspd-gallery__first-play {
	top: auto;
	bottom: 16px;
}
body.aspd-page .aspd-gallery__media::before,
body.aspd-page .aspd-gallery__media::after {
	display: block;
}

/* Sticky bar, autoboss.com style on tablets: shortcuts left, the button pair right. */
body.aspd-page .aspd-bar.is-autoboss {
	padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 -8px 24px rgba(31, 31, 51, .08);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
body.aspd-page .aspd-bar.is-autoboss .aspd-bar__inner {
	justify-content: flex-end;
	gap: 8px;
	padding: 0 24px;
}
body.aspd-page .aspd-bar.is-autoboss .aspd-bar__icons {
	gap: 8px;
	margin-right: auto;
}
body.aspd-page .aspd-bar.is-autoboss .aspd-bar__icon {
	width: 48px;
	height: 48px;
	font-size: 12px;
	line-height: 16px;
}
body.aspd-page .aspd-bar.is-autoboss .aspd-bar__actions {
	flex: 0 1 460px;
}
body.aspd-page .aspd .aspd-quote.is-bar-on-phone {
	display: block;
}

/* Specification card: three columns on the wider slide. */
body.aspd-page .aspd-specs-card {
	gap: 18px;
	padding: 32px 64px; /* clear of the arrows */
}
body.aspd-page .aspd-specs-card__grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}
body.aspd-page .aspd-specs-card__grid[data-tiles] .aspd-specs-card__item:last-child {
	grid-column: auto;
}
body.aspd-page .aspd-specs-card__item {
	min-height: 84px;
	padding: 14px;
}
body.aspd-page .aspd-specs-card__item:nth-child(n+5) {
	display: flex;
}
/* Every row is a tile here: no "View all". */
body.aspd-page .aspd .aspd-specs-card__all.is-phone-only {
	display: none;
}
body.aspd-page .aspd-specs-card__item dd {
	font-size: 15px;
	line-height: 20px;
}

/* The purchase sheet is a phone thing: the form shows in the page again. */
body.aspd-page .aspd-buy--sheet:not([data-aspd-sheet-slot] > *) {
	display: block;
}

/* Tablet/desktop galleries already sit inside the content gutter. */
body.aspd-page .aspd-gallery__stage {
	width: 100%;
}
