/**
 * detapp.css
 * Custom styles for the Bold theme.
 * Loaded after app.css so rules here override the theme defaults.
 */

/* Frequently Bought Together bundle (single product page) */
.fbt {
	border: 1px solid #ddd;
	padding: 18px;
	margin: 20px 0;
	font-family: 'montserrat', sans-serif;
}

.fbt-title {
	font-size: 14px;
	letter-spacing: 0.5px;
	margin: 0 0 14px;
}

.fbt-images {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
}

.fbt-thumb {
	width: 80px;
	flex: 0 0 auto;
}

.fbt-thumb img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid #eee;
}

.fbt-plus {
	font-size: 18px;
	color: #999;
	padding: 0 2px;
}

.fbt-total {
	font-size: 14px;
	margin-bottom: 12px;
}

.fbt-total-price {
	font-weight: 600;
}

.fbt-total-regular {
	color: #999;
	margin-left: 6px;
}

.fbt-total-regular:empty {
	display: none;
}

.fbt-add {
	display: inline-block;
	background: #111;
	color: #fff;
	border: 0;
	padding: 10px 22px;
	font-size: 13px;
	letter-spacing: 0.5px;
	cursor: pointer;
	margin-bottom: 14px;
}

.fbt-add:hover {
	background: #000;
	color: #fff;
}

.fbt-add:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.fbt-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fbt-line {
	font-size: 13px;
	padding: 6px 0;
}

.fbt-line-head {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	margin: 0;
}

.fbt-line-head .fbt-check {
	margin-top: 2px;
}

.fbt-line-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 0 24px;
}

.fbt-line-controls .fbt-variation {
	max-width: 220px;
	padding: 4px 6px;
}

.fbt-line-price {
	font-weight: 600;
}

/* Cart page: use full width (override the default 60% story-item column).
   Excludes the empty-cart box so its recommendations keep the 2-column layout. */
body.woocommerce-cart #page-info > .container:not(.cart-empty-box) > .story-item {
	max-width: none;
	width: 100%;
	float: none;
}

/* Product list thumbnails: force 4:5 (portrait) aspect ratio */
.listing-fi .product-item figure {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	margin: 0;
}

.listing-fi .product-item figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Size guide text on the product page (below size selector) */
.size-guide {
	margin: 8px 0 16px;
	text-align: left;
}

.size-guide .size-guide-text {
	display: inline-block;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: underline;
	cursor: pointer;
	color: inherit;
}

/* Size guide popup page (inside the iframe) */
.sizeguide-popup .sizeguide-popup__content {
	padding: 20px;
}

/* Size guide lightbox */
body.sizeguide-lock {
	overflow: hidden;
}

.sizeguide-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 100000;
}

.sizeguide-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.sizeguide-modal {
	position: relative;
	width: 800px;
	max-width: 100%;
	height: 80vh;
	max-height: 700px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	transform: translateY(12px);
	transition: transform 0.25s ease;
}

.sizeguide-overlay.is-open .sizeguide-modal {
	transform: translateY(0);
}

.sizeguide-frame {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Image mode: modal shrinks to the image and scrolls if it is tall. */
.sizeguide-modal--image {
	width: 800px;
	max-width: 100%;
	height: auto;
	max-height: 90vh;
	background: #fff;
}

.sizeguide-scroll {
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.sizeguide-img {
	display: block;
	width: 100%;
	height: auto;
}

.sizeguide-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	padding: 0;
	line-height: 34px;
	font-size: 24px;
	text-align: center;
	color: #000;
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	z-index: 1;
}

@media (max-width: 575px) {
	.sizeguide-close {
		top: 8px;
		right: 8px;
	}
}

