/* ==========================================================================
   Product Page Pro — Frontend Styles
   Edit colors/fonts here, or override in your theme's Additional CSS.
   ========================================================================== */

/* --- Save Badge (next to price) --- */
.pppn-save-badge {
	display: inline-block;
	margin-left: 10px;
	padding: 3px 10px;
	border-radius: 4px;
	background-color: #111111;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	vertical-align: middle;
}

.price del {
	opacity: 0.55;
	margin-right: 6px;
}

/* --- Review Stars --- */
.pppn-review-stars {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
	margin-bottom: 12px;
	cursor: pointer;
}
.pppn-stars {
	color: #ffc415;
	letter-spacing: 1px;
}
.pppn-star {
	font-size: 23px;
}
.pppn-review-text {
	font-size: 17px;
	opacity: 0.99;
	text-decoration: none;
}

/* --- Bundle / Discount Notice ---
   Grid: row 1 = icon | headline | toggle, row 2 = sub spans full width aligned under headline. */
.pppn-bundle-notice {
	position: relative !important;
	display: grid !important;
	grid-template-columns: auto 1fr auto !important;
	grid-template-areas:
		"icon headline toggle"
		"sub   sub     sub"   !important;
	column-gap: 10px !important;
	row-gap: 1px !important;
	align-items: center !important;
	background-color: #f2ede3 !important;
	border: 1.5px solid #cbb98a !important;
	border-radius: 8px !important;
	padding: 6px 14px !important;
	margin: 14px 0 !important;
	font-size: 14px !important;
	min-height: fit-content() !important;
}
.pppn-bundle-icon {
	grid-area: icon !important;
	font-size: 16px !important;
	line-height: 1 !important;
}
.pppn-bundle-headline {
	grid-area: headline !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	margin: 0 !important;
}
.pppn-bundle-sub {
	grid-area: sub !important;
	font-weight: 400 !important;
	font-size: 12.5px !important;
	opacity: 0.75 !important;
	margin: 0 !important;
	padding-left: 26px !important; /* Aligns under headline text (icon width + gap) */
}
.pppn-bundle-toggle {
	grid-area: toggle !important;
	background-color: #111111 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 5px !important;
	padding: 0px 10px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	gap: 4px !important;
}
.pppn-caret {
	font-size: 10px !important;
	transition: transform 0.15s ease !important;
}
.pppn-bundle-toggle[aria-expanded="true"] .pppn-caret {
	transform: rotate(180deg);
}

/* Dropdown — opens on hover OR click (is-open class added by JS for click/tap) */
.pppn-bundle-dropdown {
	display: none;
	position: absolute;
	right: 14px;
	top: calc(100% + 4px);
	z-index: 20;
	background-color: #f9f9f9;
	border: 1.5px solid #cbb98a;
	border-radius: 8px;
	padding: 6px;
	flex-direction: column;
	gap: 6px;
	min-width: 220px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.pppn-bundle-notice:hover .pppn-bundle-dropdown,
.pppn-bundle-dropdown.pppn-is-open {
	display: flex;
}
.pppn-bundle-tier-row {
	background-color: #f2ede3;
	border-radius: 5px;
	padding: 2px 6px;
	font-size: 11px;
	font-weight: 400;
}

/* --- Trust Badge Bar --- */
.pppn-trust-badge-bar {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 16px;
}
.pppn-trust-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 14px;
	background-color: #fffaf3;
	border: solid #cbb98a 1px; 
	border-radius: 8px;
	font-size: 14px;
}
.pppn-trust-icon {
	font-size: 16px;
	width: 18px;
	text-align: center;
	color: #8a6d3b;
}

/* --- Quantity + Add to Cart layout (stacked rows, Easewild-style) ---
   The JS moves the quantity box and Add to Cart button into a wrapper
   with class "pppn-cart-actions" so this works no matter how your
   theme originally nested them. Do not rely on form.cart selectors —
   theme markup varies too much between themes. */

.pppn-cart-actions {
	display: flex !important;
	flex-direction: column !important;
	gap: 12px !important;
	width: 100% !important;
	margin: 14px 0 !important;
}

.pppn-cart-actions .quantity {
	width: 100% !important;
	margin: 0 !important;
	display: block !important;
	position: relative !important;
}

/* The real number input stays functional but visually hidden — see
   .pppn-native-select-hidden below, reused here for the same purpose. */

.pppn-cart-actions .single_add_to_cart_button {
	width: 100% !important;
	display: block !important;
	margin: 0 !important;
	height: 48px !important;
	line-height: 48px !important;
	padding: 0 24px !important;
	background-color: #111111 !important;
	color: #ffffff !important;
	border-radius: 4px !important;
	font-weight: 600 !important;
	letter-spacing: 0.03em !important;
	text-transform: uppercase !important;
	text-align: center !important;
}
.pppn-cart-actions .single_add_to_cart_button:hover {
	background-color: #333333 !important;
}

/* --- Variation Swatches (color images) + Size Pills --- */

/* Hide the native select/input/label but keep them in the DOM/functional
   (reused for variation dropdowns, the native qty input, and the theme's
   own attribute labels we're replacing with dynamic headings) */
.pppn-native-select-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Forces the theme's original select-parent container back to block
   layout, in case it was a flex row (label + dropdown side by side).
   Our heading + swatch row live inside pppn-attribute-block, which
   also gets forced to block/full-width so they always stack correctly
   regardless of what the outer theme container does. */
.pppn-attribute-parent {
	display: block !important;
	width: 100% !important;
}
.pppn-attribute-block {
	display: block !important;
	width: 100% !important;
}

.pppn-variation-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

/* Dynamic "Color - Black" / "Size - XL" headings, tight spacing above their row */
.pppn-variation-heading {
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 6px;
	color: #111111;
}

/* Color swatches — small rounded-square image thumbnails */
.pppn-color-swatch {
	width: 50px;
	height: 50px;
	padding: 0;
	border: 1px solid #e2e2e2;
	border-radius: 25px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	cursor: pointer;
	outline-offset: 2px;
	transition: outline-color 0.15s ease;
}
.pppn-color-swatch--flat {
	/* Flat color fallback when no variation image was found */
}
.pppn-color-swatch.pppn-selected {
	outline: 2px solid #514936;
	border-color: #ffffff;
}

/* Size pills */
.pppn-size-pill {
	min-width: 44px;
	padding: 6px 19px;
	border: 1px solid #d5d5d5;
	border-radius: 20px;
	background-color: #ffffff;
	color: #111111;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pppn-size-pill:hover {
	border-color: #111111;
}
.pppn-size-pill.pppn-selected {
	background-color: #111111;
	color: #ffffff;
	border-color: #111111;
}

/* --- Quantity heading + custom stepper --- */
.pppn-quantity-heading {
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 6px;
	color: #111111;
}

/* Bordered rounded stepper: minus / value / plus, soft colors */
.pppn-qty-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 40%;
	height: 46px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background-color: #fafafa;
	overflow: hidden;
}
.pppn-qty-minus,
.pppn-qty-plus {
	flex: 0 0 44px;
	height: 100%;
	border: none;
	background: transparent;
	font-size: 16px;
	color: #444444;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.pppn-qty-minus:hover,
.pppn-qty-plus:hover {
	background-color: #eeeeee;
}
.pppn-qty-value {
	flex: 1 1 auto;
	text-align: center;
	font-size: 15px;
	font-weight: 500;
	color: #111111;
}
