/* Netrevven single product – values measured on production (netrevven.com, Razzi). RTL: logical properties. */

/* Hello caps .site-main at 1140px (body:not([class*=elementor-page-]) .site-main); use the site's 1200px content width. */
body.single-product:not(.nr-x) .site-main { box-sizing: border-box; max-width: 1240px; margin-inline: auto; padding: 0 20px 80px; }
.single-product .woocommerce-breadcrumb { margin: 0; padding: 19px 0; color: #909090; font-size: 14px; line-height: 21px; }
.single-product .woocommerce-breadcrumb a { color: #909090; }
.single-product .woocommerce-breadcrumb a:hover { color: #EE2C1F; }

/* Gallery (right) 570 / summary (left) 550, 50px apart. */
.single-product div.product { display: grid; grid-template-columns: 57fr 55fr; column-gap: 50px; align-items: start; }
.single-product div.product > * { grid-column: 1 / -1; min-width: 0; }
.single-product div.product > .woocommerce-product-gallery,
.single-product div.product > #play_video_additional_button { grid-column: 1; }
.single-product div.product > .summary { grid-column: 2; grid-row: 1 / span 3; }
.single-product.woocommerce div.product div.images,
.single-product.woocommerce div.product div.summary { float: none; width: auto; margin: 0; }

/* Gallery */
.single-product div.product div.images .woocommerce-product-gallery__image img { aspect-ratio: .75; width: 100%; object-fit: cover; }
.single-product div.product div.images .flex-control-thumbs {
	display: flex;
	gap: 15px;
	margin: 15px 0 0;
	padding: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.single-product div.product div.images .flex-control-thumbs::-webkit-scrollbar { display: none; }
.single-product div.product div.images .flex-control-thumbs li { flex: 0 0 calc((100% - 60px) / 5); width: auto; margin: 0; float: none; scroll-snap-align: start; }
.single-product div.product div.images .flex-control-thumbs li img { aspect-ratio: 1; object-fit: cover; opacity: .55; transition: opacity .2s; }
.single-product div.product div.images .flex-control-thumbs li img.flex-active,
.single-product div.product div.images .flex-control-thumbs li img:hover { opacity: 1; }
.nr-thumbs { position: relative; }
.single-product .nr-thumbs .nr-thumbs__arrow {
	position: absolute;
	z-index: 2;
	top: calc(50% + 7px);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
	color: #111;
	cursor: pointer;
	transform: translateY(-50%);
}
.single-product .nr-thumbs .nr-thumbs__arrow:hover, .single-product .nr-thumbs .nr-thumbs__arrow:focus { background: #fff; color: #111; }
.single-product .nr-thumbs .nr-thumbs__arrow[hidden] { display: none; }
/* RTL: "previous" sits on the right edge pointing right, "next" on the left edge pointing left. */
.single-product .nr-thumbs .nr-thumbs__arrow--prev { inset-inline-start: 6px; }
.single-product .nr-thumbs .nr-thumbs__arrow--next { inset-inline-end: 6px; }
.single-product .woocommerce-product-gallery__trigger { z-index: 3; }

/* Summary */
.single-product div.product .summary { color: #525252; font-size: 16px; line-height: 24px; }
.nr-product-brand { margin-bottom: 5px; }
.nr-product-brand a { color: #525252; text-decoration: none; }
.nr-product-brand a:hover { color: #EE2C1F; }
.single-product div.product .product_title { margin: 0 0 13px; color: #111; font-size: 28px; font-weight: 500; line-height: 1.33; }
.single-product div.product .summary > .price { margin: 0 0 20px; color: #111; font-size: 24px; font-weight: 500; line-height: 36px; }
.single-product div.product .woocommerce-product-details__short-description { margin-bottom: 15px; }
.single-product div.product .woocommerce-product-details__short-description p { margin: 0; }

.nr-size-guide { margin: 0 0 43px; }
.single-product .summary .nr-size-guide .nr-size-guide__open { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; border: 0; background: none; color: #111; font: inherit; font-size: 16px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.single-product .summary .nr-size-guide .nr-size-guide__open:hover, .single-product .summary .nr-size-guide .nr-size-guide__open:focus { background: none; color: #EE2C1F; }

/* Variations: label above a full-width select */
.single-product div.product form.cart .variations { width: 100%; margin: 0 0 30px; border: 0; background: none; }
.single-product div.product form.cart .variations tbody,
.single-product div.product form.cart .variations tr,
.single-product div.product form.cart .variations th,
.single-product div.product form.cart .variations td { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: start; }
.single-product div.product form.cart .variations tr + tr { margin-top: 20px; }
.single-product div.product form.cart .variations th.label { padding-bottom: 20px; line-height: 24px; }
.single-product div.product form.cart .variations label { color: #111; font-size: 16px; font-weight: 400; }
.single-product div.product form.cart .variations select {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	height: 47px;
	margin: 0;
	padding: 11px 15px 10px;
	border: 1px solid #d9d9d9;
	border-radius: 0;
	background-color: transparent;
	color: #111;
	font: inherit;
	font-size: 16px;
}
/* "נקה" sits on the label row's far side instead of adding space under the select. */
.single-product div.product form.cart .variations td.value { position: relative; }
.single-product div.product form.cart .reset_variations { position: absolute; top: -44px; inset-inline-end: 0; margin: 0; color: #767676; font-size: 14px; line-height: 24px; }
.single-product div.product .single_variation_wrap .woocommerce-variation:not(:empty) { margin-bottom: 15px; }
.single-product.woocommerce div.product form.cart { margin-bottom: 0; }

/* Button row: quantity, add to cart, buy now, wishlist (RTL: right to left) */
.single-product div.product form.cart:not(.variations_form),
.single-product div.product .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 20px; margin: 0; }
/* WooCommerce's clearfix pseudo-elements would be flex items here, taking gap space and breaking the rows. */
.single-product.woocommerce div.product form.cart:not(.variations_form)::before,
.single-product.woocommerce div.product form.cart:not(.variations_form)::after { display: none; }
.single-product div.product form.cart div.quantity {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 132px;
	height: 56px;
	margin: 0;
	border: 1px solid #cdcdcd;
	float: none;
}
.single-product div.product form.cart div.quantity .qty {
	width: 40px;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	font: inherit;
	font-size: 16px;
	text-align: center;
	-moz-appearance: textfield;
}
.single-product div.product form.cart div.quantity .qty::-webkit-outer-spin-button,
.single-product div.product form.cart div.quantity .qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.single-product div.product form.cart .nr-qty-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #111;
	cursor: pointer;
}
.single-product div.product form.cart .nr-qty-button:hover,
.single-product div.product form.cart .nr-qty-button:focus { background: none; color: #EE2C1F; }

.single-product.woocommerce div.product form.cart .single_add_to_cart_button,
.single-product.woocommerce div.product form.cart .nr-buy-now {
	box-sizing: border-box;
	height: 56px;
	margin: 0;
	padding: 0 37px;
	border-radius: 0;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 54px;
	float: none;
}
.single-product.woocommerce div.product form.cart .single_add_to_cart_button { border: 1px solid #1f1f1f; background: #1f1f1f; color: #fff; }
.single-product.woocommerce div.product form.cart .single_add_to_cart_button:hover { border-color: #EE2C1F; background: #EE2C1F; }
.single-product.woocommerce div.product form.cart .nr-buy-now { min-width: 140px; border: 1px solid #111; background: transparent; color: #111; cursor: pointer; }
.single-product.woocommerce div.product form.cart .nr-buy-now:hover { border-color: #111; background: #111; color: #fff; }
.single-product.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.single-product.woocommerce div.product .woocommerce-variation-add-to-cart-disabled .nr-buy-now { opacity: .5; cursor: not-allowed; }
.single-product.woocommerce div.product .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button.disabled:hover { border-color: #1f1f1f; background: #1f1f1f; }
.single-product.woocommerce div.product .woocommerce-variation-add-to-cart-disabled .nr-buy-now:hover { background: transparent; color: #111; }

/* Wishlist heart (YITH) */
.single-product div.product form.cart .yith-wcwl-add-to-wishlist { margin: 0; }
.single-product div.product form.cart .yith-wcwl-add-to-wishlist a { display: inline-flex; align-items: center; gap: 0; color: #111; font-size: 0; text-decoration: none; }
.single-product div.product form.cart .yith-wcwl-add-to-wishlist a:hover { color: #EE2C1F; }
.single-product div.product form.cart .yith-wcwl-add-to-wishlist .yith-wcwl-icon,
.single-product div.product form.cart .yith-wcwl-add-to-wishlist svg { width: 22px; height: 22px; margin: 0; font-size: 22px; }
.single-product div.product form.cart .yith-wcwl-add-to-wishlist .feedback,
.single-product div.product form.cart .yith-wcwl-add-to-wishlist span:not([class*=icon]) { display: none; }

/* WhatsApp (production green) and PayPal */
.single-product #whatsapp_product_contact { margin-top: 15px; }
.single-product.woocommerce #whatsapp_product_contact a.button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: #4dc247;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	text-align: center;
	float: none;
}
.single-product.woocommerce #whatsapp_product_contact a.button:hover { background: #3fae3a; color: #fff; }
.single-product div.product .summary .ppc-button-wrapper { margin-top: 15px; }

/* Meta and share */
.single-product div.product .product_meta { margin-top: 20px; color: #525252; }
.single-product div.product .product_meta > span { display: block; }
.single-product div.product .product_meta a { color: #525252; }
.single-product div.product .product_meta a:hover { color: #EE2C1F; }
.nr-share { display: flex; align-items: center; gap: 14px; margin-top: 15px; color: #111; }
.nr-share__link { display: inline-flex; color: #111; }
.nr-share__link:hover { color: #EE2C1F; }

/* Tabs: centered, red active underline, 790px text column */
.single-product div.product .woocommerce-tabs { margin-top: 80px; padding: 0; }
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	justify-content: center;
	gap: 0 40px;
	margin: 0 0 45px;
	padding: 0;
	border-bottom: 1px solid #e2e2e2;
	overflow: visible;
}
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li { position: relative; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 0; color: #111; font-size: 16px; font-weight: 500; }
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover { color: #EE2C1F; }
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: #EE2C1F; }
.single-product div.product .woocommerce-tabs .panel { max-width: 790px; margin: 0 auto; color: #525252; font-size: 16px; line-height: 24px; text-align: start; }
.single-product div.product .woocommerce-tabs .panel > :first-child { margin-top: 0; }
/* Production shows <strong> at 500 (Varela Round has only 400, so it reads as regular, not synthetic bold). */
.single-product div.product :is(.woocommerce-tabs, .summary) :is(strong, b) { font-weight: 500; }
.single-product div.product .woocommerce-tabs table.shop_attributes { border-top: 1px solid #e2e2e2; }
.single-product div.product .woocommerce-tabs table.shop_attributes th,
.single-product div.product .woocommerce-tabs table.shop_attributes td { padding: 12px 0; border-bottom: 1px solid #e2e2e2; background: none; font-style: normal; text-align: start; }

/* Related products slider */
.nr-related { margin-top: 80px; }
.nr-related__title, .single-product .rvp-title, .single-product .recently-viewed-products h2 { margin: 0 0 60px; color: #111; font-size: 28px; font-weight: 500; line-height: 1.33; text-align: center; }
.nr-related__track {
	display: flex;
	gap: 30px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	cursor: grab;
}
.nr-related__track::-webkit-scrollbar { display: none; }
.nr-related__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.nr-related__item { flex: 0 0 calc((100% - 90px) / 4); min-width: 0; scroll-snap-align: start; }
.nr-related__bar { position: relative; width: 570px; max-width: 100%; height: 4px; margin: 30px auto 0; background: #e5e5e5; cursor: pointer; }
.nr-related__thumb { position: absolute; top: 0; inset-inline-start: 0; height: 100%; background: #EE2C1F; }

/* Recently viewed: 3 columns (production) */
.nr-recent { margin-top: 80px; }
.nr-recent__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }

/* "נגן וידאו" button above the gallery (production: outlined, 56px) */
.single-product div.product > #play_video_additional_button { margin-bottom: 16px; }
.single-product div.product:has(> #play_video_additional_button) > .summary { grid-row: 2 / span 3; }
.single-product #play_video_additional_button a {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%; /* Same width as the gallery image below. */
	height: 56px;
	margin: 0;
	border: 1px solid #000;
	background: #fff;
	color: #111;
	font-size: 16px;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.single-product #play_video_additional_button a:hover,
.single-product #play_video_additional_button a:focus { background: #111; color: #fff; }

/* Video popup */
.nr-modal--video .nr-modal__backdrop { background: rgba(0, 0, 0, .8); }
.nr-modal--video .nr-modal__dialog { width: min(90vw, 788px); max-height: none; overflow: visible; background: #000; }
.nr-modal--video .nr-video { display: block; width: 100%; max-height: 80vh; background: #000; }


/* Size guide modal */
.nr-modal[hidden] { display: none; }
.nr-modal { position: fixed; z-index: 100002; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.nr-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.nr-modal__dialog { position: relative; box-sizing: border-box; width: 770px; max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; }
.nr-modal__header { position: relative; padding: 20px 60px; border-bottom: 1px solid #e2e2e2; text-align: center; }
.nr-modal__title { margin: 0; color: #111; font-size: 28px; font-weight: 500; line-height: 1.4; }
/* Close button shared by the popups: a round 40px button with a clean × (RTL: on the inline-end corner, i.e. left). */
.nr-modal .nr-modal__close {
	position: absolute;
	z-index: 2;
	top: 50%;
	inset-inline-end: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f2f2f2;
	color: #111;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color .2s, color .2s;
}
.nr-modal .nr-modal__close svg { width: 18px; height: 18px; stroke-width: 1.8; transition: transform .25s ease; }
.nr-modal .nr-modal__close:hover { background: #111; color: #fff; }
.nr-modal .nr-modal__close:hover svg { transform: rotate(90deg); }
.nr-modal .nr-modal__close:focus { outline: none; background: #f2f2f2; color: #111; }
.nr-modal .nr-modal__close:focus-visible { outline: 2px solid #EE2C1F; outline-offset: 2px; }
/* Video popup: white round button sitting on the dialog's top inline-end corner. */
.nr-modal.nr-modal--video .nr-modal__close { top: -20px; inset-inline-end: -20px; transform: none; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); }
/* Dark backdrop: a dark hover fill would disappear into it, so hover uses the brand red. */
.nr-modal.nr-modal--video .nr-modal__close:hover { background: #EE2C1F; color: #fff; }
@media (max-width: 767px) { .nr-modal.nr-modal--video .nr-modal__close { top: -52px; inset-inline-end: 0; } }
@media (prefers-reduced-motion: reduce) { .nr-modal .nr-modal__close svg { transition: none; } }
.nr-modal__body { padding: 20px 24px 28px; }
.nr-size-guide__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.nr-modal .nr-size-guide__tab { padding: 8px 10px; border: 1px solid #111; border-radius: 0; background: #fff; color: #111; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.nr-modal .nr-size-guide__tab.is-active, .nr-modal .nr-size-guide__tab:hover { background: #111; color: #fff; }
.nr-modal .nr-size-guide__tab:focus { outline: none; }
.nr-modal .nr-size-guide__tab:focus-visible { outline: 2px solid #EE2C1F; outline-offset: 2px; }
.nr-size-guide__name { margin: 0 0 20px; color: #111; font-size: 24px; font-weight: 500; }
.nr-size-guide__table { overflow-x: auto; }
.nr-size-guide__table table { width: 100%; border-collapse: collapse; }
.nr-size-guide__table th, .nr-size-guide__table td { padding: 12px 10px; border: 1px solid #e2e2e2; color: #111; font-size: 15px; text-align: center; white-space: nowrap; }
.nr-size-guide__table td:first-child { font-weight: 500; text-align: start; }
body.nr-modal-open { overflow: hidden; }

/* Below desktop the summary column is too narrow for production's single button row: use two full lines –
   quantity + add to cart, then buy now + wishlist (RTL: right to left). */
@media (max-width: 1199px) {
	.single-product.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1 1 calc(100% - 152px); }
	.single-product.woocommerce div.product form.cart .nr-buy-now { flex: 1 1 0; min-width: 0; }
	.single-product div.product form.cart .yith-wcwl-add-to-wishlist { flex: none; padding-inline: 4px; }
}

/* Tablet & mobile */
@media (max-width: 1024px) {
	.single-product div.product { grid-template-columns: 1fr 1fr; column-gap: 30px; }
	.nr-related__item { flex-basis: calc((100% - 60px) / 3); }
}
@media (max-width: 767px) {
	.single-product .site-main { padding: 0 16px 56px; }
	.single-product div.product { display: block; }
	.single-product div.product .summary { margin-top: 24px; }
	.single-product div.product .product_title { font-size: 24px; }
	.single-product.woocommerce div.product .woocommerce-tabs ul.tabs { justify-content: flex-start; gap: 0 24px; overflow-x: auto; }
	.single-product.woocommerce div.product .woocommerce-tabs ul.tabs li { flex: none; }
	.nr-related__item { flex-basis: calc((100% - 15px) / 2); }
	.nr-recent__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 15px; }
	.nr-related__track { gap: 15px; }
	.nr-related__title, .single-product .rvp-title { margin-bottom: 30px; font-size: 24px; }
}
