/* Officeserv — single product page. */

.osx-pdp { padding-block: 20px 56px; display: flex; flex-direction: column; gap: 20px; }
.osx-pd { display: flex; flex-direction: column; gap: 24px; }

.osx-pd__top {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 40px;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--osx-line);
	border-radius: 18px;
}

/* Gallery (WooCommerce's own: flexslider + zoom + lightbox) */
.osx-pd__gallery { position: relative; min-width: 0; }
.osx-pd__gallery .onsale { position: absolute; top: 0; left: 0; z-index: 5; }
.woocommerce div.product .osx-pd__gallery div.images,
.osx-pd__gallery .woocommerce-product-gallery { float: none; width: 100% !important; margin: 0; }
.osx-pd__gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.osx-pd__gallery .woocommerce-product-gallery__image img,
.osx-pd__gallery .woocommerce-product-gallery__image a img {
	width: 100%;
	max-height: 520px;
	aspect-ratio: 1;
	object-fit: contain;
	background: #fff;
}
.osx-pd__gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
	margin: 14px 0 0 !important;
	padding: 0;
}
.woocommerce div.product .osx-pd__gallery .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; }
.osx-pd__gallery .flex-control-thumbs img {
	aspect-ratio: 1;
	object-fit: contain;
	padding: 6px;
	border: 1px solid var(--osx-line);
	border-radius: 10px;
	background: #fff;
	opacity: 1 !important;
	cursor: pointer;
}
.osx-pd__gallery .flex-control-thumbs img.flex-active { border: 2px solid var(--osx-blue); padding: 5px; }
.osx-pd__gallery .woocommerce-product-gallery__trigger {
	top: 0 !important;
	right: 0 !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 10px !important;
	background: var(--osx-blue-50) !important;
}
.osx-pd__gallery .flex-direction-nav { display: none; }

/* Summary */
.osx-pd__summary { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.woocommerce div.product .osx-pd__summary { float: none; width: auto; margin: 0; }
.osx-pd__brand { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.osx-pd__brand a { color: var(--osx-muted); }
.osx-pd__brand a:hover { color: var(--osx-blue); }
.woocommerce div.product .product_title.osx-pd__title { margin: -6px 0 0; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.22; }
.osx-pd__sku { margin: -6px 0 0; font-size: 14px; color: var(--osx-muted); }

.woocommerce div.product .osx-pd__summary p.price,
.woocommerce div.product .osx-pd__summary span.price {
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--osx-line);
	border-bottom: 1px solid var(--osx-line);
	color: var(--osx-ink);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
}
.woocommerce div.product .osx-pd__summary p.price del { margin-right: 8px; font-size: .6em; font-weight: 400; color: var(--osx-muted); opacity: 1; }
.woocommerce div.product .osx-pd__summary p.price ins { text-decoration: none; }
.woocommerce div.product .osx-pd__summary p.price .woocommerce-price-suffix { font-size: 13px; }

/* B2B: SRP smaller, the customer's own price in front */
.woocommerce div.product .osx-pd__summary p.price:has(.b2bking_both_prices_text) { line-height: 1.45; }
.woocommerce div.product .osx-pd__summary p.price .b2bking_retail_price_text,
.woocommerce div.product .osx-pd__summary p.price .b2bking_retail_price_price,
.woocommerce div.product .osx-pd__summary p.price .b2bking_retail_price_price .amount { font-size: 16px; font-weight: 600; }
.woocommerce div.product .osx-pd__summary p.price .b2bking_b2b_price_text,
.woocommerce div.product .osx-pd__summary p.price .b2bking_b2b_price_price,
.woocommerce div.product .osx-pd__summary p.price .b2bking_b2b_price_price .amount { font-size: 24px; font-weight: 700; }

.osx-pd__summary .woocommerce-product-details__short-description { color: var(--osx-ink-2); font-size: 15px; }
.osx-pd__summary .woocommerce-product-details__short-description > :last-child { margin-bottom: 0; }
.osx-pd__summary .stock { margin: 0; font-weight: 600; }
.osx-pd__summary .stock.in-stock { color: var(--osx-green); }
.osx-pd__summary .stock.out-of-stock { color: var(--osx-danger); }

/* Stock per store (Multi Location plugin markup) */
.officeserv-location-stock { margin: 0; border: 1px solid var(--osx-line); border-radius: 12px; overflow: hidden; background: #fff; }
.officeserv-location-stock__title { margin: 0; padding: 11px 16px; background: #f6f8fb; font-weight: 700; font-size: 15px; }
.officeserv-location-stock__list { margin: 0; padding: 0; list-style: none; }
.officeserv-location-stock__list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--osx-line); font-size: 15px; }
.officeserv-location-stock__list .in-stock { color: var(--osx-green); font-weight: 700; }
.officeserv-location-stock__list .out-of-stock { color: var(--osx-danger); font-weight: 700; }

/* Add to cart: quantity box and button on one line, same height */
.woocommerce div.product .osx-pd__summary form.cart { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0; }
.woocommerce div.product .osx-pd__summary form.cart::before,
.woocommerce div.product .osx-pd__summary form.cart::after { display: none; }
.woocommerce div.product .osx-pd__summary form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product .osx-pd__summary form.cart .single_add_to_cart_button {
	flex: 1 1 200px;
	float: none;
	min-height: 54px;
	font-size: 17px;
}
.woocommerce div.product .osx-pd__summary form.variations_form { display: block; }
.woocommerce div.product .osx-pd__summary .variations { margin-bottom: 12px; }
.woocommerce div.product .osx-pd__summary .variations select { min-height: 44px; padding: 0 12px; border: 1px solid var(--osx-field); border-radius: var(--osx-radius-sm); }
.woocommerce div.product .osx-pd__summary .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.osx-pd__summary .osx-qty { height: 54px; }

.osx-pd__notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 2px 0 0; padding: 0; list-style: none; }
.osx-pd__notes li { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 10px; background: #f6f8fb; color: var(--osx-blue); }
.osx-pd__notes span { display: flex; flex-direction: column; color: var(--osx-ink); font-size: 13px; line-height: 1.35; }
.osx-pd__notes strong { font-size: 14px; }
.osx-pd__notes small { color: var(--osx-muted); font-size: 13px; }
.osx-pd__meta { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--osx-muted); }

/* Tabs */
.woocommerce div.product .osx-pd__after .woocommerce-tabs {
	padding: 4px 28px 28px;
	background: #fff;
	border: 1px solid var(--osx-line);
	border-radius: 18px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 28px;
	margin: 0 0 20px;
	padding: 0;
	border-bottom: 1px solid var(--osx-line);
	overflow: visible;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 18px 0 15px; border-bottom: 3px solid transparent; color: var(--osx-muted); font-weight: 600; font-size: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { border-bottom-color: var(--osx-blue); color: var(--osx-ink); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; font-size: 16px; line-height: 1.7; max-width: 900px; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--osx-line); font-style: normal; }
.woocommerce table.shop_attributes th { width: 220px; color: var(--osx-muted); font-weight: 600; text-align: left; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: #f9fbfd; }

/* Related / upsells */
.osx-pd__after .related, .osx-pd__after .upsells { margin-top: 32px; }
.osx-pd__after .related > h2, .osx-pd__after .upsells > h2 { margin: 0 0 16px; font-size: 24px; }

@media (max-width: 900px) {
	.osx-pd__top { grid-template-columns: 1fr; gap: 24px; padding: 18px; }
	.osx-pd__notes { grid-template-columns: 1fr; }
	.woocommerce div.product .osx-pd__after .woocommerce-tabs { padding: 0 18px 18px; }
	.woocommerce div.product .woocommerce-tabs ul.tabs { gap: 20px; }
}

@media (max-width: 700px) {
	.osx-pdp { padding-block: 12px 40px; }
	.woocommerce div.product .osx-pd__summary form.cart div.quantity { flex: 0 0 auto; }
	.woocommerce div.product .osx-pd__summary form.cart .single_add_to_cart_button { flex: 1 1 0; min-width: 0; }
	.osx-pd__summary .osx-qty .qty { width: 40px; }
	.osx-pd__summary .osx-qty__btn { width: 34px; }
	.woocommerce table.shop_attributes th { width: 40%; }
}
