/* STA Side Cart — single product page polish (Elementor product template + Essential Addons widgets).
   Same layout; price and Add to Cart are moved up so they are visible without scrolling. */
.single-product {
	--pp-red: #e0282e;
	--pp-red-dark: #b81f24;
	--pp-ink: #16181d;
	--pp-muted: #6b7280;
	--pp-line: #e5e7eb;
	--pp-soft: #f6f6f7;
}

/* Image column: start at the top (it was vertically centred) and stay in view while scrolling. */
.single-product [data-elementor-type="product"] .e-con:has(> .elementor-widget-eael-woo-product-images) {
	justify-content: flex-start !important; align-self: flex-start !important; position: sticky; top: 120px;
}
.single-product .elementor-widget-eael-woo-product-images img { border-radius: 16px; }
.single-product .elementor-widget-eael-woo-product-images .onsale,
.single-product span.onsale { background: var(--pp-red) !important; color: #fff !important; border-radius: 20px !important; padding: 4px 12px !important; min-height: 0 !important; line-height: 1.6 !important; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* Details column: title → price → Add to Cart → trust row → description. */
.single-product [data-elementor-type="product"] .e-con:has(> .elementor-widget-woocommerce-product-title) > .elementor-widget-woocommerce-product-title { order: 1; }
.single-product [data-elementor-type="product"] .e-con:has(> .elementor-widget-woocommerce-product-title) > .elementor-widget-woocommerce-product-price { order: 2; }
.single-product [data-elementor-type="product"] .e-con:has(> .elementor-widget-woocommerce-product-title) > .elementor-widget-eael-woo-add-to-cart,
.single-product [data-elementor-type="product"] .e-con:has(> .elementor-widget-woocommerce-product-title) > .elementor-widget-woocommerce-product-add-to-cart { order: 3; }
.single-product [data-elementor-type="product"] .e-con:has(> .elementor-widget-woocommerce-product-title) > .elementor-widget-divider { order: 4; }
.single-product [data-elementor-type="product"] .e-con:has(> .elementor-widget-woocommerce-product-title) > .elementor-widget-woocommerce-product-content { order: 5; }

.single-product .elementor-widget-woocommerce-product-title .product_title {
	font-size: clamp(28px, 3vw, 40px) !important; line-height: 1.12 !important; letter-spacing: -0.01em; margin: 0 0 4px !important;
}

.single-product .elementor-widget-woocommerce-product-price .price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 !important; font-size: 30px !important; font-weight: 800 !important; color: var(--pp-ink) !important; }
.single-product .elementor-widget-woocommerce-product-price .price del { order: 2; font-size: 18px; font-weight: 500; color: var(--pp-muted) !important; opacity: 1; }
.single-product .elementor-widget-woocommerce-product-price .price ins { order: 1; text-decoration: none; color: var(--pp-red) !important; background: none; }
.single-product .elementor-widget-woocommerce-product-price .price ins .amount,
.single-product .elementor-widget-woocommerce-product-price .price > .amount { color: inherit; }

/* Add to Cart */
.single-product .elementor-widget-eael-woo-add-to-cart form.cart,
.single-product .elementor-widget-woocommerce-product-add-to-cart form.cart { display: flex; gap: 10px; align-items: stretch; margin: 6px 0 0 !important; }
.single-product form.cart .single_add_to_cart_button {
	flex: 1; display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
	min-height: 54px; padding: 14px 24px !important; margin: 0 !important; border: 0 !important; border-radius: 12px !important;
	background: var(--pp-red) !important; color: #fff !important; font-size: 17px !important; font-weight: 700 !important;
	text-transform: none !important; letter-spacing: 0 !important; box-shadow: 0 10px 24px rgba(224, 40, 46, .28) !important; transition: background .15s, transform .1s;
}
.single-product form.cart .single_add_to_cart_button::before {
	content: ""; width: 20px; height: 20px; flex: 0 0 20px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.2a2 2 0 002 1.6h8.2a2 2 0 002-1.5L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.2a2 2 0 002 1.6h8.2a2 2 0 002-1.5L21 8H6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.single-product form.cart .single_add_to_cart_button:hover { background: var(--pp-red-dark) !important; }
.single-product form.cart .single_add_to_cart_button:active { transform: translateY(1px); }
.single-product form.cart .quantity:not(:has(input[type=hidden])) { display: inline-flex; }
.single-product form.cart .quantity input.qty { min-height: 54px; width: 72px; border-radius: 12px !important; border: 1px solid #d1d5db !important; text-align: center; font-size: 16px; }

/* Trust row under the button */
.single-product .sta-pp-trust { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0 !important; padding: 0 !important; }
.single-product .sta-pp-trust li { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 10px; border-radius: 10px; background: var(--pp-soft); font-size: 12px; color: var(--pp-muted); line-height: 1.3; }
.single-product .sta-pp-trust li svg { flex: 0 0 20px; color: var(--pp-red); fill: none !important; }
.single-product .sta-pp-trust strong { display: block; color: var(--pp-ink); font-size: 13px; }

.single-product [data-elementor-type="product"] .elementor-widget-divider { margin-top: 10px; }

/* Description: readable size, headings and lists tidied. */
.single-product .elementor-widget-woocommerce-product-content { color: #374151; font-size: 15px; line-height: 1.65; }
.single-product .elementor-widget-woocommerce-product-content h2,
.single-product .elementor-widget-woocommerce-product-content h3 { font-size: 20px !important; line-height: 1.3 !important; margin: 22px 0 8px !important; color: var(--pp-ink); }
.single-product .elementor-widget-woocommerce-product-content ul { padding-left: 18px; margin: 0 0 14px; }
.single-product .elementor-widget-woocommerce-product-content li { margin: 3px 0; }

/* Related products */
.single-product .related.products > h2 { font-size: clamp(22px, 2.6vw, 30px) !important; margin-bottom: 18px !important; }
.single-product .related.products ul.products li.product {
	border: 1px solid var(--pp-line); border-radius: 14px; overflow: hidden; padding: 0 0 14px !important; background: #fff; transition: box-shadow .2s, transform .2s;
}
.single-product .related.products ul.products li.product:hover { box-shadow: 0 12px 28px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.single-product .related.products ul.products li.product img { border-radius: 0 !important; margin: 0 0 10px !important; aspect-ratio: 1 / 1; object-fit: cover; }
.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
.single-product .related.products ul.products li.product .price,
.single-product .related.products ul.products li.product .ast-woo-product-category { padding: 0 14px !important; }
.single-product .related.products ul.products li.product .button { margin: 8px 14px 0 !important; border-radius: 10px !important; }

@media (max-width: 1024px) {
	.single-product [data-elementor-type="product"] .e-con:has(> .elementor-widget-eael-woo-product-images) { position: static; }
}
@media (max-width: 560px) {
	.single-product .sta-pp-trust { grid-template-columns: 1fr; }
	.single-product .elementor-widget-woocommerce-product-price .price { font-size: 26px !important; }
}

/* ---------- v1.1: fixes from the live screenshots (Essential Addons add-to-cart widget) ---------- */
/* Details column: keep items together at the top (on wide screens it spread them apart). */
.single-product [data-elementor-type="product"] .e-con:has(> .elementor-widget-woocommerce-product-title) { justify-content: flex-start !important; align-content: flex-start !important; }

/* The widget box was fixed at 375px and centred in a row: make it full width and stack the trust row below. */
.single-product .elementor-widget-eael-woo-add-to-cart { width: 100% !important; max-width: 100% !important; }
.single-product .elementor-widget-eael-woo-add-to-cart .eael-single-product-add-to-cart,
.single-product .elementor-widget-eael-woo-add-to-cart .eael-add-to-cart-wrapper { display: block !important; width: 100% !important; max-width: none !important; }
.single-product .elementor-widget-eael-woo-add-to-cart .eael-add-to-cart-wrapper form.cart { display: flex !important; width: 100% !important; justify-content: stretch !important; gap: 10px; margin: 4px 0 0 !important; }

/* Button: full width, red, one line — more specific than the widget's own black style. */
.single-product .elementor-widget-eael-woo-add-to-cart .eael-add-to-cart-wrapper form.cart .single_add_to_cart_button,
.single-product .elementor-widget-eael-woo-add-to-cart form.cart button.single_add_to_cart_button.button.alt {
	flex: 1 1 auto !important; width: 100% !important; max-width: none !important; white-space: nowrap !important;
	min-height: 56px !important; padding: 14px 24px !important; border-radius: 12px !important; border: 0 !important;
	background-color: var(--pp-red) !important; background-image: none !important; color: #fff !important;
	font-size: 17px !important; font-weight: 700 !important; line-height: 1.2 !important; text-transform: none !important;
}
.single-product .elementor-widget-eael-woo-add-to-cart .eael-add-to-cart-wrapper form.cart .single_add_to_cart_button:hover { background-color: var(--pp-red-dark) !important; }

/* Trust row: full width under the button, three even boxes. */
.single-product .elementor-widget-eael-woo-add-to-cart .sta-pp-trust { width: 100%; }
.single-product .sta-pp-trust li { align-items: flex-start; padding: 12px; }
.single-product .sta-pp-trust li svg { margin-top: 1px; }
