/* G3 single product page (WooCommerce on OceanWP). Scoped to body.g3-pdp. */
body.g3-pdp {
	--g3p: #2D82F5;
	--g3pd: #1E63C9;
	--g3tint: #EAF2FE;
	--g3surf: #F5F8FD;
	--g3ink: #0F172A;
	--g3text: #334155;
	--g3muted: #64748B;
	--g3line: #E6ECF5;
	--g3fd: "Comfortaa", system-ui, sans-serif;
	--g3fb: "Roboto", system-ui, -apple-system, sans-serif;
	background: #fff;
}
body.g3-pdp #content-wrap { max-width: 1280px; width: 100%; padding: 28px 32px 72px; box-sizing: border-box; }
body.g3-pdp #primary, body.g3-pdp #content { width: 100%; padding: 0; float: none; }
body.g3-pdp div.product { position: relative; font-family: var(--g3fb); color: var(--g3text); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: 56px; align-items: start; }
body.g3-pdp div.product > * { grid-column: 1 / -1; }
body.g3-pdp div.product > .woocommerce-product-gallery { grid-column: 1; width: 100% !important; float: none !important; margin: 0 !important; }
body.g3-pdp div.product > .summary { grid-column: 2; width: 100% !important; float: none !important; margin: 0 !important; position: sticky; top: 110px; }
body.g3-pdp div.product > .clear-after-summary { display: none; }

/* Breadcrumb */
body.g3-pdp .g3pdp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; font: 400 14px/1.4 var(--g3fb); color: var(--g3muted); }
body.g3-pdp .g3pdp-crumbs a { color: var(--g3muted); text-decoration: none; }
body.g3-pdp .g3pdp-crumbs a:hover { color: var(--g3p); }
body.g3-pdp .g3pdp-crumbs [aria-current] { color: var(--g3ink); font-weight: 500; }

/* Previous / next product arrows from the theme */
body.g3-pdp .owp-product-nav-wrap { position: absolute; right: 0; top: -6px; width: auto; margin: 0; grid-column: auto; }
body.g3-pdp .owp-product-nav-wrap .owp-product-nav li a { border-radius: 999px; border-color: var(--g3line); color: var(--g3ink); }
body.g3-pdp .owp-product-nav-wrap .owp-product-nav li a:hover { border-color: var(--g3p); background: var(--g3p); color: #fff; }

/* Gallery */
body.g3-pdp .woocommerce-product-gallery { position: relative; }
body.g3-pdp .woocommerce-product-gallery .flex-viewport, body.g3-pdp .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child { border-radius: 24px; overflow: hidden; background: var(--g3surf); border: 1px solid var(--g3line); }
body.g3-pdp .woocommerce-product-gallery__image a { display: flex; align-items: center; justify-content: center; }
body.g3-pdp .woocommerce-product-gallery__image img { width: 100%; height: auto !important; max-height: 680px; object-fit: contain; border-radius: 0; }
body.g3-pdp .woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0 !important; padding: 0; }
body.g3-pdp .woocommerce-product-gallery .flex-control-thumbs li { width: 84px !important; margin: 0 !important; padding: 0 !important; float: none !important; }
body.g3-pdp .woocommerce-product-gallery .flex-control-thumbs img { width: 84px; height: 84px; object-fit: contain; background: var(--g3surf); border: 2px solid var(--g3line); border-radius: 14px; opacity: 1; transition: border-color .2s ease; cursor: pointer; }
body.g3-pdp .woocommerce-product-gallery .flex-control-thumbs img.flex-active, body.g3-pdp .woocommerce-product-gallery .flex-control-thumbs img:hover { border-color: var(--g3p); }
body.g3-pdp .woocommerce-product-gallery__trigger { top: 16px !important; right: 16px !important; width: 42px !important; height: 42px !important; border-radius: 999px !important; background: #fff !important; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .4); display: grid !important; place-items: center; z-index: 5; }
body.g3-pdp .onsale { top: 16px !important; left: 16px !important; right: auto !important; min-height: 0 !important; min-width: 0 !important; padding: 6px 14px !important; border-radius: 999px !important; background: #DC2626 !important; font: 600 13px/1.4 var(--g3fb) !important; text-transform: none !important; z-index: 6; }

/* Summary */
body.g3-pdp .summary { display: flex; flex-direction: column; gap: 18px; }
body.g3-pdp .summary > * { margin: 0 !important; }
body.g3-pdp .g3pdp-pill { align-self: flex-start; display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: var(--g3tint); color: var(--g3pd); font: 600 12.5px/1.3 var(--g3fb); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
body.g3-pdp .g3pdp-pill:hover { background: var(--g3p); color: #fff; }
body.g3-pdp .summary .product_title { font-family: var(--g3fd) !important; font-size: 40px !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -0.01em; text-transform: none; color: var(--g3ink) !important; }
body.g3-pdp .summary .price { font-family: var(--g3fb) !important; font-size: 26px !important; font-weight: 600 !important; color: var(--g3ink) !important; line-height: 1.3; }
body.g3-pdp .summary .price del { color: var(--g3muted); font-weight: 400; font-size: .75em; }
body.g3-pdp .summary .price ins { text-decoration: none; color: #DC2626; }
body.g3-pdp .woocommerce-product-details__short-description { padding: 20px 22px; border-radius: 18px; background: var(--g3surf); font: 400 15px/1.7 var(--g3fb); color: var(--g3text); }
body.g3-pdp .woocommerce-product-details__short-description p { margin: 0 0 .7em; font-family: var(--g3fb); }
body.g3-pdp .woocommerce-product-details__short-description p:last-child { margin: 0; }
body.g3-pdp .woocommerce-product-details__short-description strong, body.g3-pdp .woocommerce-product-details__short-description h2, body.g3-pdp .woocommerce-product-details__short-description h3, body.g3-pdp .woocommerce-product-details__short-description h4 { font-family: var(--g3fb); font-size: 15px; font-weight: 600; text-transform: none; color: var(--g3ink); letter-spacing: 0; }

/* Options and add to cart */
body.g3-pdp form.cart { display: flex; flex-direction: column; gap: 16px; padding: 0 !important; border: 0 !important; }
body.g3-pdp table.variations { margin: 0 !important; border: 0; width: 100%; }
body.g3-pdp table.variations tr { display: flex; flex-direction: column; gap: 10px; }
body.g3-pdp table.variations th, body.g3-pdp table.variations td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left; }
body.g3-pdp table.variations th label, body.g3-pdp table.variations td.label label { font: 600 13px/1.4 var(--g3fb); letter-spacing: .1em; text-transform: uppercase; color: var(--g3muted); }
body.g3-pdp select.g3pdp-hidden { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
body.g3-pdp .g3pdp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
body.g3-pdp button.g3pdp-chip { min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--g3line); background: #fff; color: var(--g3ink); font: 500 15px/1 var(--g3fb); text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
body.g3-pdp button.g3pdp-chip:hover { border-color: var(--g3p); color: var(--g3p); background: #fff; }
body.g3-pdp button.g3pdp-chip.is-on { border-color: var(--g3p); background: var(--g3p); color: #fff; }
body.g3-pdp button.g3pdp-chip.is-off { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
body.g3-pdp button.g3pdp-chip:focus-visible { outline: 2px solid var(--g3p); outline-offset: 3px; }
body.g3-pdp .reset_variations { display: inline-block; margin-top: 8px; font: 500 14px var(--g3fb); color: var(--g3muted) !important; }
body.g3-pdp .single_variation_wrap { display: flex; flex-direction: column; gap: 14px; }
body.g3-pdp .woocommerce-variation-price .price { font-size: 22px !important; }
body.g3-pdp .woocommerce-variation-description p { margin: 0; font: 400 15px/1.6 var(--g3fb); }
body.g3-pdp .woocommerce-variation-availability .stock { margin: 0; font: 500 14px var(--g3fb); color: #15803D; }
body.g3-pdp .woocommerce-variation-availability .stock.out-of-stock { color: #DC2626; }
body.g3-pdp .woocommerce-variation-add-to-cart, body.g3-pdp form.cart:not(.variations_form) { display: flex !important; flex-wrap: wrap; align-items: stretch; gap: 12px; }
body.g3-pdp form.cart .quantity { display: inline-flex !important; align-items: center; height: 54px; margin: 0 !important; border: 1.5px solid var(--g3line); border-radius: 999px; overflow: hidden; background: #fff; float: none !important; }
body.g3-pdp form.cart .quantity .minus, body.g3-pdp form.cart .quantity .plus { width: 44px; height: 100%; display: grid !important; place-items: center; border: 0 !important; background: transparent !important; color: var(--g3ink) !important; font-size: 18px; line-height: 1; float: none !important; }
body.g3-pdp form.cart .quantity .minus:hover, body.g3-pdp form.cart .quantity .plus:hover { background: var(--g3surf) !important; color: var(--g3p) !important; }
body.g3-pdp form.cart .quantity .qty { width: 46px !important; height: 100% !important; min-height: 0; padding: 0 !important; border: 0 !important; background: transparent !important; font: 600 16px var(--g3fb); color: var(--g3ink); text-align: center; float: none !important; -moz-appearance: textfield; }
body.g3-pdp form.cart .quantity .qty::-webkit-outer-spin-button, body.g3-pdp form.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body.g3-pdp form.cart .single_add_to_cart_button { flex: 1 1 220px; height: 54px !important; min-height: 54px; margin: 0 !important; padding: 0 28px !important; border-radius: 999px !important; border: 0 !important; background: var(--g3p) !important; color: #fff !important; font: 600 16px/1 var(--g3fb) !important; letter-spacing: 0 !important; text-transform: none !important; box-shadow: 0 12px 24px -14px rgba(45, 130, 245, .8); float: none !important; transition: background-color .2s ease, opacity .2s ease; }
body.g3-pdp form.cart .single_add_to_cart_button:hover { background: var(--g3pd) !important; }
body.g3-pdp form.cart .single_add_to_cart_button.disabled { opacity: .45 !important; box-shadow: none; cursor: not-allowed; }
body.g3-pdp form.cart .single_add_to_cart_button.loading { opacity: .7 !important; }
body.g3-pdp .wc-stripe-bnpl-product-message, body.g3-pdp #wc-stripe-payment-request-wrapper, body.g3-pdp .wc-stripe-product-checkout-container { margin: 0 !important; }

/* Trust notes */
body.g3-pdp .g3pdp-trust { list-style: none; margin: 4px 0 0 !important; padding: 18px 20px !important; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--g3line); border-radius: 18px; }
body.g3-pdp .g3pdp-trust li { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; }
body.g3-pdp .g3pdp-trust__ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--g3tint); color: var(--g3p); display: grid; place-items: center; }
body.g3-pdp .g3pdp-trust__ico svg { width: 19px; height: 19px; }
body.g3-pdp .g3pdp-trust li > span:last-child { display: flex; flex-direction: column; gap: 1px; font: 400 14px/1.45 var(--g3fb); }
body.g3-pdp .g3pdp-trust strong { color: var(--g3ink); font-weight: 600; }
body.g3-pdp .g3pdp-trust a { color: var(--g3p); font-weight: 500; text-decoration: none; }
body.g3-pdp .g3pdp-trust a:hover { text-decoration: underline; }
body.g3-pdp .woocommerce-product-details__short-description + form.cart { margin-top: 2px !important; }
body.g3-pdp .product_meta { font: 400 14px/1.6 var(--g3fb); color: var(--g3muted); }

/* Tabs */
body.g3-pdp .woocommerce-tabs { margin-top: 64px !important; padding-top: 0; border: 0; }
body.g3-pdp .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px !important; padding: 0 !important; border: 0 !important; text-align: left !important; }
body.g3-pdp .woocommerce-tabs ul.tabs::before, body.g3-pdp .woocommerce-tabs ul.tabs::after { display: none !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li::before, body.g3-pdp .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li a { display: inline-flex; align-items: center; height: 44px; padding: 0 20px !important; border-radius: 999px; border: 1.5px solid var(--g3line); background: #fff; color: var(--g3ink) !important; font: 500 15px var(--g3fb) !important; letter-spacing: 0 !important; text-transform: none !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li.active a { background: var(--g3ink); border-color: var(--g3ink); color: #fff !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li a:hover { border-color: var(--g3ink); }
body.g3-pdp .woocommerce-tabs .panel { max-width: 860px; margin: 0 !important; padding: 28px 30px !important; border-radius: 22px; background: var(--g3surf); border: 0 !important; font: 400 16px/1.75 var(--g3fb); color: var(--g3text); }
body.g3-pdp .woocommerce-tabs .panel p, body.g3-pdp .woocommerce-tabs .panel li { font-family: var(--g3fb); }
body.g3-pdp .woocommerce-tabs .panel > *:last-child { margin-bottom: 0; }
body.g3-pdp .woocommerce-tabs .panel h2, body.g3-pdp .woocommerce-tabs .panel h3 { font-family: var(--g3fd); color: var(--g3ink); font-size: 20px; text-transform: none; letter-spacing: 0; }
body.g3-pdp .woocommerce-tabs .shop_attributes { margin: 0; border: 0; }
body.g3-pdp .woocommerce-tabs .shop_attributes th, body.g3-pdp .woocommerce-tabs .shop_attributes td { padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid var(--g3line) !important; background: none !important; font: 400 15px var(--g3fb); font-style: normal; text-align: left; }
body.g3-pdp .woocommerce-tabs .shop_attributes th { width: 40%; color: var(--g3ink); font-weight: 600; }
body.g3-pdp .woocommerce-tabs .shop_attributes td p { margin: 0; padding: 0; }
body.g3-pdp .heateor_sss_sharing_container { max-width: none; margin: 24px 0 0 !important; padding: 0; text-align: left; }

/* Related */
body.g3-pdp .g3pdp-related { margin-top: 72px; overflow: visible; }
body.g3-pdp .g3pdp-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
body.g3-pdp .g3pdp-related__head h2 { margin: 0; font: 700 32px/1.2 var(--g3fd); color: var(--g3ink); letter-spacing: 0; text-transform: none; }
body.g3-pdp .g3pdp-related__all { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--g3p); color: var(--g3p); font: 600 15px var(--g3fb); text-decoration: none; }
body.g3-pdp .g3pdp-related__all:hover { background: var(--g3p); color: #fff; }
body.g3-pdp .g3s .g3pdp-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* WooCommerce notices (added to cart, errors) */
body.g3-pdp .woocommerce-notices-wrapper .woocommerce-message, body.g3-pdp .woocommerce-notices-wrapper .woocommerce-error, body.g3-pdp .woocommerce-notices-wrapper .woocommerce-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 24px; padding: 16px 20px !important; border: 0 !important; border-radius: 16px; background: #E8F7EE; color: #166534; font: 500 15px/1.5 var(--g3fb); }
body.g3-pdp .woocommerce-notices-wrapper .woocommerce-error { background: #FEF2F2; color: #991B1B; }
body.g3-pdp .woocommerce-notices-wrapper .woocommerce-message::before { display: none; }
body.g3-pdp .woocommerce-notices-wrapper .woocommerce-message .button { order: 2; height: 40px; padding: 0 18px !important; border-radius: 999px !important; background: #166534 !important; color: #fff !important; font: 600 14px/40px var(--g3fb) !important; text-transform: none !important; letter-spacing: 0 !important; float: none !important; }

@media (max-width: 1024px) {
	body.g3-pdp #content-wrap { padding: 20px 24px 56px; }
	body.g3-pdp div.product { column-gap: 32px; }
	body.g3-pdp .summary .product_title { font-size: 32px !important; }
	body.g3-pdp .g3s .g3pdp-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	body.g3-pdp #content-wrap { padding: 14px 16px 40px; }
	body.g3-pdp div.product { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
	body.g3-pdp div.product > .woocommerce-product-gallery, body.g3-pdp div.product > .summary { grid-column: 1; position: static; }
	body.g3-pdp .g3pdp-crumbs { font-size: 13px; margin-bottom: 14px; padding-right: 76px; }
	body.g3-pdp .owp-product-nav-wrap { top: 0; }
	body.g3-pdp .woocommerce-product-gallery .flex-viewport { border-radius: 18px; }
	body.g3-pdp .woocommerce-product-gallery .flex-control-thumbs li, body.g3-pdp .woocommerce-product-gallery .flex-control-thumbs img { width: 64px !important; height: 64px; }
	body.g3-pdp .summary { gap: 14px; }
	body.g3-pdp .summary .product_title { font-size: 28px !important; }
	body.g3-pdp .summary .price { font-size: 22px !important; }
	body.g3-pdp form.cart .single_add_to_cart_button { flex-basis: 160px; }
	body.g3-pdp .woocommerce-tabs { margin-top: 40px !important; }
	body.g3-pdp .woocommerce-tabs .panel { padding: 20px 18px !important; font-size: 15px; }
	body.g3-pdp .g3pdp-related { margin-top: 48px; }
	body.g3-pdp .g3pdp-related__head h2 { font-size: 24px; }
	body.g3-pdp .g3s .g3pdp-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* The theme's styled dropdown is replaced by the option chips */
body.g3-pdp table.variations .theme-select { display: none !important; }
body.g3-pdp table.variations tr + tr { margin-top: 18px; }
body.g3-pdp table.variations td.value { display: flex !important; flex-direction: column; align-items: flex-start; gap: 4px; }
body.g3-pdp .g3pdp-chips { gap: 12px; }
body.g3-pdp button.g3pdp-chip { min-height: 48px; padding: 0 24px; }
body.g3-pdp .reset_variations { margin-top: 10px; }
body.g3-pdp .single_variation_wrap { margin-top: 6px; }
body.g3-pdp .woocommerce-variation.single_variation:not(:empty) { padding: 14px 18px; border-radius: 16px; background: var(--g3surf); }
body.g3-pdp .woocommerce-variation.single_variation:empty, body.g3-pdp .woocommerce-variation.single_variation[style*="display: none"] { display: none !important; }
body.g3-pdp form.variations_form { gap: 22px; }
body.g3-pdp .summary .price .amount, body.g3-pdp .summary .price bdi, body.g3-pdp .woocommerce-variation-price .amount { color: inherit !important; }
body.g3-pdp .summary .price ins .amount { color: #DC2626 !important; }

/* Tab buttons */
body.g3-pdp .woocommerce-tabs ul.tabs { align-items: center; gap: 10px; }
body.g3-pdp .woocommerce-tabs ul.tabs li { display: block !important; height: auto !important; line-height: 1 !important; overflow: visible !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li a { display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; height: 46px !important; min-height: 46px; padding: 0 22px !important; margin: 0 !important; line-height: 1 !important; border: 1.5px solid #CBD5E1 !important; border-radius: 999px !important; background: #fff !important; color: var(--g3ink) !important; box-shadow: none !important; outline: none; }
body.g3-pdp .woocommerce-tabs ul.tabs li a::before, body.g3-pdp .woocommerce-tabs ul.tabs li a::after { display: none !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li a:hover { border-color: var(--g3ink) !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li.active a { background: var(--g3ink) !important; border-color: var(--g3ink) !important; color: #fff !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li a:focus-visible { outline: 2px solid var(--g3p); outline-offset: 3px; }

/* Tabs: keep spacing on every screen (theme switches the list to block on mobile) */
body.g3-pdp .woocommerce-tabs ul.tabs { display: flex !important; flex-wrap: wrap !important; gap: 10px !important; row-gap: 10px !important; }
body.g3-pdp .woocommerce-tabs ul.tabs li { float: none !important; width: auto !important; }
@media (max-width: 767px) {
	body.g3-pdp .woocommerce-tabs ul.tabs { gap: 8px !important; }
	body.g3-pdp .woocommerce-tabs ul.tabs li { flex: 1 1 auto; }
	body.g3-pdp .woocommerce-tabs ul.tabs li a { width: 100%; height: 44px !important; min-height: 44px; padding: 0 16px !important; font-size: 14px !important; white-space: nowrap; }
}

/* Links inside product descriptions: easy to spot, clear on hover. */
.single-product .woocommerce-Tabs-panel a:not(.button),
.single-product .woocommerce-product-details__short-description a:not(.button) {
	color: var(--g3pd, #1E63C9);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: rgba(45, 130, 245, .35);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	transition: color .15s ease, text-decoration-color .15s ease;
}
.single-product .woocommerce-Tabs-panel a:not(.button):hover,
.single-product .woocommerce-Tabs-panel a:not(.button):focus-visible,
.single-product .woocommerce-product-details__short-description a:not(.button):hover {
	color: var(--g3p, #2D82F5);
	text-decoration-color: currentColor;
}
