/**
 * Package page (single product) — a two-column editorial layout:
 * gallery card on one side, purchase panel on the other.
 */

body.nw-single-product .site-content.container {
	max-width: 1240px;
}

body.nw-single-product .site-content .row {
	display: block;
	margin-inline: 0;
}

body.nw-single-product main.site-main {
	float: none;
	width: 100%;
	padding: 0;
}

body.nw-single-product aside.widget-area {
	display: none;
}

/* Two columns ------------------------------------------------------------ */
body.nw-single-product .product-top-image {
	display: grid;
	grid-template-columns: minmax(0, 44%) minmax(0, 56%);
	gap: 44px;
	align-items: start;
}

body.nw-single-product .product-top-image::after {
	display: none;
}

/* Gallery ---------------------------------------------------------------- */
body.nw-single-product .summary,
body.nw-single-product .images {
	width: 100% !important;
	float: none !important;
}

/* `relative` keeps the gallery as the anchor for the ::after ribbon. A sticky
   gallery was fighting the sticky header and made the image appear to slide
   over the page, so it stays in normal flow. */
body.nw-single-product .images {
	position: relative;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 28px;
	background-color: #ffffff;
	box-shadow: 0 30px 60px -42px rgba(15, 23, 42, 0.5);
}

body.nw-single-product .woocommerce-product-gallery {
	margin: 0;
}

body.nw-single-product .woocommerce-product-gallery__wrapper,
body.nw-single-product .woocommerce-product-gallery__image,
body.nw-single-product .woocommerce-product-gallery__image a {
	display: block;
	overflow: hidden;
	border-radius: 20px;
}

body.nw-single-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 20px;
}

body.nw-single-product .woocommerce-product-gallery__trigger,
body.nw-single-product .flex-control-nav,
body.nw-single-product .woocommerce-product-gallery .zoomImg {
	display: none !important;
}

/* Summary ---------------------------------------------------------------- */
body.nw-single-product .summary.entry-summary {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
	padding: 0;
}

body.nw-single-product .summary .product_title {
	margin: 0;
	font-size: 36px;
	font-weight: 800;
	line-height: 1.35;
	color: #0f172a;
}

body.nw-single-product .summary .product_title::after {
	content: "";
	display: block;
	width: 62px;
	height: 4px;
	margin-top: 14px;
	border-radius: 999px;
	background-image: linear-gradient(90deg, #f59e0b, #fbbf24);
}

body.nw-single-product .summary .woocommerce-product-details__short-description {
	margin: 0;
	font-size: 15px;
	line-height: 1.95;
	color: #475569;
}

body.nw-single-product .summary .woocommerce-product-details__short-description p {
	margin: 0;
}

/* Price panel ------------------------------------------------------------ */
.nw-price-panel {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 20px 24px;
	border: 1px solid #fde68a;
	border-radius: 20px;
	background-image: linear-gradient(135deg, #fffbeb, #fef3c7);
}

.nw-price-main {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.nw-price-main .nw-price {
	font-size: 32px;
	font-weight: 800;
	color: #0f172a;
}

.nw-price-main .nw-price-was {
	font-size: 15px;
	font-weight: 600;
	color: #94a3b8;
	text-decoration: line-through;
}

.nw-price-note {
	margin: 0;
	font-size: 12.5px;
	color: #92400e;
}

.nw-price-save {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-inline-start: auto;
	padding: 7px 14px;
	border-radius: 999px;
	background-color: #16a34a;
	font-size: 12.5px;
	font-weight: 800;
	color: #ffffff;
}

/* Content of the package -------------------------------------------------- */
.nw-bundle {
	margin: 0;
	padding: 22px;
	border: 1px solid #e2e8f0;
	border-radius: 22px;
	background-color: #ffffff;
	box-shadow: 0 24px 48px -46px rgba(15, 23, 42, 0.6);
}

.nw-bundle-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.nw-bundle-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	color: #0f172a;
}

.nw-bundle-title i {
	color: #d97706;
}

/* bundle.css positions this pill absolutely for the listing card badge. On the
   product page it lives inside the panel header, so it must stay in flow. */
.nw-bundle-head .nw-bundle-count {
	position: static;
	top: auto;
	inset-inline-start: auto;
	flex: 0 0 auto;
	padding: 5px 13px;
	border-radius: 999px;
	background-color: #f1f5f9;
	font-size: 12px;
	font-weight: 700;
	color: #475569;
	white-space: nowrap;
}

.nw-bundle-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nw-bundle-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 11px;
	border: 1px solid #eef2f7;
	border-radius: 14px;
	background-color: #f8fafc;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nw-bundle-list li:hover {
	border-color: #fcd34d;
	background-color: #ffffff;
}

.nw-bundle-link {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 10px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.nw-bundle-thumb {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	overflow: hidden;
	border-radius: 10px;
	background-color: #e2e8f0;
	color: #94a3b8;
	font-size: 14px;
}

.nw-bundle-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nw-bundle-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.nw-bundle-name {
	display: -webkit-box;
	overflow: hidden;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.55;
	color: #0f172a;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.nw-bundle-link:hover .nw-bundle-name {
	color: #b45309;
}

.nw-bundle-price {
	font-size: 11.5px;
	font-weight: 600;
	color: #94a3b8;
}

.nw-bundle-tick {
	flex: 0 0 auto;
	font-size: 12px;
	color: #16a34a;
}

.nw-bundle-save {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px dashed #cbd5e1;
	font-size: 13px;
	color: #475569;
}

.nw-bundle-save s {
	color: #94a3b8;
}

.nw-bundle-save-badge {
	padding: 5px 12px;
	border-radius: 999px;
	background-color: #dcfce7;
	font-size: 12px;
	font-weight: 800;
	color: #15803d;
}

/* Call to action --------------------------------------------------------- */
body.nw-single-product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
}

body.nw-single-product form.cart .quantity,
body.nw-single-product form.cart .shopengine-wishlist,
body.nw-single-product form.cart .shopengine-comparison {
	display: none !important;
}

body.nw-single-product form.cart .single_add_to_cart_button {
	display: inline-flex;
	flex: 1 1 100%;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 56px;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background-image: linear-gradient(135deg, #f59e0b, #d97706);
	font-size: 16px;
	font-weight: 800;
	color: #ffffff;
	box-shadow: 0 18px 34px -22px rgba(217, 119, 6, 0.9);
	transition: filter 0.2s ease, transform 0.2s ease;
}

body.nw-single-product form.cart .single_add_to_cart_button:hover {
	filter: brightness(1.06);
	transform: translateY(-2px);
}

.nw-cta-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 12.5px;
	color: #64748b;
}

.nw-cta-note i {
	color: #16a34a;
}

/* Feature strip ---------------------------------------------------------- */
.nw-feature-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nw-feature-strip li {
	display: flex;
	gap: 9px;
	padding: 12px;
	border: 1px solid #eef2f7;
	border-radius: 14px;
	background-color: #f8fafc;
}

.nw-feature-strip i {
	margin-top: 3px;
	font-size: 14px;
	color: #d97706;
}

.nw-feature-strip span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 11.5px;
	line-height: 1.6;
	color: #64748b;
}

.nw-feature-strip strong {
	font-size: 12.5px;
	color: #0f172a;
}

/* Help card -------------------------------------------------------------- */
.nw-help-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border: 1px solid #dbeafe;
	border-radius: 16px;
	background-color: #f0f9ff;
}

.nw-help-card > i {
	font-size: 20px;
	color: #16a34a;
}

.nw-help-card div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nw-help-card strong {
	font-size: 13px;
	font-weight: 800;
	color: #0f172a;
}

.nw-help-card a {
	font-size: 12.5px;
	color: #0284c7;
	text-decoration: none;
}

.nw-help-card a:hover {
	text-decoration: underline;
}

/* Meta and tabs ---------------------------------------------------------- */
body.nw-single-product .summary .product_meta {
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid #eef2f7;
	font-size: 12.5px;
	color: #94a3b8;
}

body.nw-single-product .summary .product_meta a {
	color: #b45309;
	text-decoration: none;
}

body.nw-single-product .woocommerce-tabs {
	margin-top: 44px;
	padding: 26px 28px;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	background-color: #ffffff;
}

body.nw-single-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	list-style: none;
}

body.nw-single-product .woocommerce-tabs ul.tabs::before,
body.nw-single-product .woocommerce-tabs ul.tabs li::before,
body.nw-single-product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

body.nw-single-product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

body.nw-single-product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: 9px 20px;
	border-radius: 999px;
	background-color: #f1f5f9;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
	text-decoration: none;
}

body.nw-single-product .woocommerce-tabs ul.tabs li.active a {
	background-image: linear-gradient(135deg, #f59e0b, #d97706);
	color: #ffffff;
}

body.nw-single-product .woocommerce-tabs .panel {
	margin: 0;
	padding: 0;
	line-height: 1.95;
	color: #475569;
}

body.nw-single-product .woocommerce-tabs .panel h2 {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
	body.nw-single-product .product-top-image {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}

	body.nw-single-product .images {
		position: relative;
	}

	body.nw-single-product .summary .product_title {
		font-size: 28px;
	}
}

@media (max-width: 640px) {
	.nw-bundle-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.nw-feature-strip {
		grid-template-columns: minmax(0, 1fr);
	}

	.nw-price-main .nw-price {
		font-size: 26px;
	}

	.nw-price-save {
		margin-inline-start: 0;
	}
}

/* Purchase order: price and CTA first, details after ---------------------- */
body.nw-single-product .summary.entry-summary > * {
	order: 10;
}

body.nw-single-product .summary.entry-summary > .product_title {
	order: 1;
}

body.nw-single-product .summary.entry-summary > .nw-price-panel {
	order: 2;
}

body.nw-single-product .summary.entry-summary > .woocommerce-product-details__short-description {
	order: 3;
}

body.nw-single-product .summary.entry-summary > form.cart {
	order: 4;
}

body.nw-single-product .summary.entry-summary > .nw-feature-strip {
	order: 5;
}

body.nw-single-product .summary.entry-summary > .nw-bundle {
	order: 6;
}

body.nw-single-product .summary.entry-summary > .nw-help-card {
	order: 7;
}

body.nw-single-product .summary.entry-summary > .product_meta {
	order: 8;
}

/* Ribbon on the gallery ----------------------------------------------- */
body.nw-single-product .images::after {
	content: "باقة مجمّعة";
	position: absolute;
	top: 30px;
	inset-inline-start: 30px;
	padding: 7px 16px;
	border-radius: 999px;
	background-color: rgba(15, 23, 42, 0.85);
	font-size: 11.5px;
	font-weight: 800;
	color: #FFFFFF;
	letter-spacing: 0.01em;
	backdrop-filter: blur(4px);
	z-index: 2;
}

body.nw-single-product .images {
	position: relative;
}

/* Package-only details ---------------------------------------------------- */
body.nw-single-product .images::after {
	display: none;
}

body.nw-bundle-product .images::after {
	display: block;
}

/* Regular product: the price panel is a plain card, not a discount voucher. */
body.nw-single-product:not(.nw-bundle-product) .nw-price-panel {
	border-color: #e2e8f0;
	background-image: none;
	background-color: #f8fafc;
}

body.nw-single-product:not(.nw-bundle-product) .nw-price-note {
	color: #64748b;
}

/* Hide the theme's help sidebar: the support card replaces it. */
body.nw-single-product aside.widget-area {
	display: none;
}
