/* Native WooCommerce product forms remain fully editable and plugin-compatible. */
.native-product { padding-block: clamp(32px, 6vw, 96px); }
.native-product .product { width: 100%; }
.native-product .woocommerce-product-gallery { background: var(--warm); }
.native-product .woocommerce-product-gallery img { height: auto; }
.native-product .summary .product_title { margin: 0 0 20px; font-size: clamp(28px, 3vw, 48px); line-height: 1.15; letter-spacing: -.04em; }
.native-product .summary .price { color: var(--text); font-size: 1.25rem; }
.native-product .woocommerce-product-details__short-description { margin-block: 24px; color: var(--muted); line-height: 1.8; }
.native-product .variations { border: 0; }
.native-product .variations th, .native-product .variations td { padding: 8px 0; text-align: start; }
.native-product .variations select, .native-product input.qty { min-height: 44px; border: 1px solid var(--divider); padding: 10px; background: white; color: var(--text); font: inherit; }
.native-product .variations select { width: 100%; }
.native-product .single_add_to_cart_button.button, .native-product .button { min-height: 44px; border: 1px solid var(--text); border-radius: 0; background: var(--text); color: white; padding: 14px 24px; font: inherit; }
.native-product .single_add_to_cart_button.button:hover { background: var(--accent); }
.native-product .button:focus-visible, .native-product select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.native-product .product_meta { display: grid; gap: 8px; margin-block: 24px; font-size: .8rem; }
.native-product .woocommerce-tabs { padding-top: 40px; clear: both; }
.native-product .woocommerce-tabs ul.tabs { padding: 0; }
.native-product .woocommerce-tabs ul.tabs li { border: 0; border-radius: 0; background: transparent; }
.native-product .woocommerce-tabs ul.tabs li::before, .native-product .woocommerce-tabs ul.tabs li::after { display: none; }
.native-product .related { clear: both; padding-top: 40px; }
.native-product .size-table-scroll { overflow-x: auto; }
.native-product .size-table-scroll table { border-collapse: collapse; min-width: 420px; width: 100%; margin-block: 24px; }
.native-product .size-table-scroll th, .native-product .size-table-scroll td { padding: 12px; border-bottom: 1px solid var(--divider); text-align: start; }
.product-card .price, .product-card .amount { color: inherit; font-size: inherit; }
.product-card del { opacity: .6; }
.product-card ins { text-decoration: none; }
@media (max-width: 767px) {
  .native-product div.product .woocommerce-product-gallery, .native-product div.product .summary { float: none; width: 100%; }
  .native-product .variations select { max-width: 100%; }
}
body.woocommerce .native-product div.product p.price,
body.woocommerce .native-product div.product span.price { color: var(--text); }
body.woocommerce .native-product button.button.alt,
body.woocommerce .native-product a.button { background: var(--text); color: white; border-radius: 0; font-weight: 500; }
body.woocommerce .native-product button.button.alt:hover,
body.woocommerce .native-product a.button:hover { background: var(--accent); color: white; }
body.woocommerce .native-product div.product .woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; }
body.woocommerce .native-product div.product .woocommerce-tabs ul.tabs li.active { border-bottom: 2px solid var(--accent); }
body.woocommerce .native-product div.product .woocommerce-tabs ul.tabs li::before,
body.woocommerce .native-product div.product .woocommerce-tabs ul.tabs li::after { display: none; }
/* Style core templates without replacing their query, hooks or controls. */
.native-commerce { padding-block:clamp(32px,5vw,80px); }
.native-commerce .woocommerce-products-header { margin-bottom:40px; }
.native-commerce .woocommerce-products-header__title { font-size:clamp(32px,4vw,56px); line-height:1.1; letter-spacing:-.04em; margin-block:16px; }
.native-commerce .term-description { max-width:760px; color:var(--muted); line-height:1.7; }
body.woocommerce .native-commerce ul.products li.product .woocommerce-loop-product__title,
.editorial-content .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:.875rem; font-weight:500; color:var(--text); }
body.woocommerce .native-commerce ul.products li.product .price,
.editorial-content .woocommerce ul.products li.product .price { color:var(--text); font-size:.875rem; }
.native-commerce .woocommerce-ordering select { max-width:100%; padding:12px; border:1px solid var(--divider); color:var(--text); background:var(--canvas); font:inherit; }
body.woocommerce .native-commerce a.button, .editorial-content .woocommerce a.button { background:var(--text); color:var(--canvas); border-radius:0; font-weight:400; padding:14px 20px; }
body.woocommerce .native-commerce nav.woocommerce-pagination ul { border:0; }
body.woocommerce .native-commerce nav.woocommerce-pagination ul li { border:0; margin:4px; }
.native-commerce .woocommerce-breadcrumb { font-size:.75rem; }
.native-commerce .woocommerce-result-count, .native-commerce .woocommerce-ordering { margin-bottom:32px; }
@media (max-width:767px) {
  .native-commerce .woocommerce-result-count, .native-commerce .woocommerce-ordering { float:none; }
  .native-commerce .woocommerce-ordering select { width:100%; }
}

/* Keep WooCommerce's slider, variation images and PhotoSwipe lifecycle native. */
body.woocommerce .native-product div.product .woocommerce-product-gallery { background: transparent; }
.native-product .woocommerce-product-gallery__wrapper { margin: 0; }
.native-product .woocommerce-product-gallery__image { background: var(--warm); }
.native-product .woocommerce-product-gallery__image a { display: block; cursor: zoom-in; }
.native-product .woocommerce-product-gallery__image img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
body.woocommerce .native-product div.product div.images .flex-control-thumbs { display: flex; gap: 12px; overflow-x: auto; padding: 4px; margin-top: 12px; scrollbar-width: thin; }
body.woocommerce .native-product div.product div.images .flex-control-thumbs li { float: none; width: 76px; flex: 0 0 76px; }
body.woocommerce .native-product div.product div.images .flex-control-thumbs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--warm); opacity: .65; }
body.woocommerce .native-product div.product div.images .flex-control-thumbs img.flex-active { outline: 1px solid var(--accent); outline-offset: 2px; opacity: 1; }
.native-product .woocommerce-product-gallery a:focus-visible,
.native-product .woocommerce-product-gallery img:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.woocommerce .native-product div.product div.images .woocommerce-product-gallery__trigger { top: 16px; right: 16px; width: 44px; height: 44px; background: #fffe; }
body.woocommerce .native-product div.product div.images .woocommerce-product-gallery__trigger::before { top: 13px; left: 13px; }
body.woocommerce .native-product div.product div.images .woocommerce-product-gallery__trigger::after { top: 25px; left: 25px; }
.pswp .pswp__bg { background: #171a17; }
@media (max-width: 767px) {
  body.woocommerce .native-product div.product div.images .flex-control-thumbs li { width: 60px; flex-basis: 60px; }
}

/* Lightweight colour and size controls; native selects remain the form values. */
.native-product .variations td.value { position: relative; }
.native-product .variations select.swatch-select { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.product-swatches { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px; }
.product-swatch { position: relative; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--divider); background: var(--canvas, #fff); color: var(--text); font: inherit; font-size: .875rem; cursor: pointer; }
.product-swatch:hover:not(:disabled) { border-color: var(--accent); }
.product-swatch[aria-pressed="true"] { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 2px; }
.product-swatch:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.product-swatch-color { width: 44px; height: 44px; padding: 5px; border-radius: 50%; font-size: 0; }
.product-swatch-color::before { content: ''; position: absolute; inset: 5px; border-radius: inherit; background: var(--swatch-color); box-shadow: inset 0 0 0 1px #0002; }
.product-swatch:disabled { cursor: not-allowed; opacity: .35; }
.product-swatch:disabled::after { content: ''; position: absolute; top: 50%; left: 3px; right: 3px; height: 1px; background: var(--text); transform: rotate(-45deg); }
.swatch-selection { display: block; min-height: 1.4em; margin: 4px 0 0 4px; color: var(--muted); font-size: .75rem; }
.swatch-selection:empty { display: none; }

/* Match the approved static product composition while retaining WooCommerce forms. */
body.woocommerce .native-product { padding-block: 32px 96px; }
.native-product .woocommerce-breadcrumb { margin-bottom: 24px; }
.native-product .native-product-layout { position: relative; }
body.woocommerce .native-product div.product .native-product-layout > .woocommerce-product-gallery { float: none; width: 100%; min-width: 0; grid-column: 1; grid-row: 1; margin: 0; }
body.woocommerce .native-product div.product .native-product-layout > .summary { float: none; width: 100%; min-width: 0; grid-column: 2; grid-row: 1; margin: 0; padding-top: 28px; position: sticky; top: 120px; }
.native-product .summary > .eyebrow { font-size: .625rem; }
.native-product .summary .product_title { font-size: 2.3rem; line-height: 1.2; letter-spacing: -.04em; margin: 0 0 12px; }
.native-product .summary .product-subtitle { margin: 0; }
body.woocommerce .native-product .summary .price.product-price { font-size: 1.3rem; margin-block: 16px 0; line-height: 1.5; gap: 16px; }
.native-product .summary .product-price > .amount { font: inherit; color: inherit; }
.native-product .summary .product-price > .product-price-label { font-size: .6875rem; color: var(--muted); }
.native-product .summary .woocommerce-product-details__short-description { font-size: .875rem; line-height: 1.6; margin: 24px 0 32px; }
.native-product .summary .woocommerce-product-details__short-description p { margin: 0 0 12px; }
.native-product .summary .woocommerce-product-details__short-description p:last-child { margin: 0; }
body.woocommerce .native-product div.product form.cart { margin-bottom: 0; }
.native-product .variations, .native-product .variations tbody, .native-product .variations tr, .native-product .variations th.label, .native-product .variations td.value { display: block; width: 100%; }
body.woocommerce .native-product div.product form.cart .variations { margin: 0 0 24px; }
.native-product .variations tr { position: relative; margin-bottom: 28px; }
.native-product .variations tr:last-child { margin-bottom: 0; }
.native-product .variations th.label { padding: 0; font-size: .8125rem; font-weight: 400; line-height: 1.5; }
body.woocommerce .native-product div.product form.cart .variations label { font-weight: 400; }
.native-product .variations td.value { position: static; padding: 8px 0 0; line-height: 1.5; }
.native-product .product-size-guide-trigger { font-size: .8125rem; font-weight: 400; color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.native-product .variations .product-size-guide-trigger { position: absolute; inset-inline-end: 0; top: 0; line-height: 1.5; }
.native-product .standalone-size-guide { margin: 0 0 20px; text-align: end; }
.native-product .product-swatches { gap: 10px; padding: 0; }
.native-product .product-swatches[data-swatch-type="size"] { gap: 8px; }
.native-product .product-swatches[data-swatch-type="size"] .product-swatch { width: 52px; min-width: 52px; height: 48px; min-height: 48px; padding: 0; border-color: var(--border); font-size: .875rem; }
.native-product .product-swatches[data-swatch-type="size"] .product-swatch[aria-pressed="true"] { background: var(--text); color: white; border-color: var(--text); outline: 0; }
.native-product .product-swatches[data-swatch-type="size"] .product-swatch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.native-product .product-swatches[data-swatch-type="size"] .product-swatch:disabled { opacity: 1; color: #aaa; border-color: var(--divider); background: linear-gradient(to top right,transparent 48%,#aaa 49%,#aaa 50%,transparent 51%); }
.native-product .product-swatches[data-swatch-type="size"] .product-swatch:disabled::after { display: none; }
.native-product .swatch-selection { display: inline; margin: 0; color: var(--text); font-size: inherit; font-weight: 500; }
body.woocommerce .native-product div.product form.cart .reset_variations { position: absolute; inset-inline-end: 0; top: 100%; display: inline-block; margin-top: 4px; font-size: .6875rem; }
.native-product .variations:not(:has(select:not(.swatch-select))) .reset_variations { display: none !important; }
body.woocommerce .native-product div.product .summary form.cart .quantity { float: none; display: block; width: 100%; margin: 0 0 12px; border: 0; }
body.woocommerce .native-product div.product .summary form.cart .quantity .qty:not([type="hidden"]) { display: block; box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--divider); border-radius: 0; background: var(--canvas, #fff); color: var(--text); font: inherit; text-align: center; }
body.woocommerce .native-product div.product form.cart .single_add_to_cart_button { display: flex; float: none; align-items: center; justify-content: center; gap: 24px; width: 100%; min-height: 50px; padding: 14px 26px; border: 1px solid var(--text); border-radius: 0; background: var(--text); color: white; font-family: inherit; font-size: .875rem; font-weight: 500; line-height: 1.4; }
.native-product .single_add_to_cart_button::before { content: ''; display: block; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4ZM3 6h18M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E") center / contain no-repeat; }
body.woocommerce .native-product div.product form.cart .single_add_to_cart_button:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); }
body.woocommerce .native-product div.product form.cart .single_add_to_cart_button.disabled, body.woocommerce .native-product div.product form.cart .single_add_to_cart_button:disabled { background: var(--text); opacity: 1; cursor: not-allowed; }
.native-product .product-benefits { margin-top: 20px; }
.native-product .product-accordions { margin-top: 30px; }
.native-product .product-detail-content { padding-top: 16px; font-size: .8125rem; }
.native-product .product-detail-content > p:first-child { margin-top: 0; }
.native-product .product-detail-content h2 { font-size: 1rem; }
.native-product .product-detail-content table { width: 100%; font-size: .8125rem; }
.native-product .summary .product_meta { margin: 24px 0 0; font-size: .6875rem; color: var(--muted); }
.native-product .woocommerce-product-gallery__image img:not(.zoomImg) { aspect-ratio: 3 / 4; object-fit: cover; }
body.woocommerce .native-product div.product div.images .flex-control-thumbs { padding: 3px; gap: 12px; margin-top: 16px; }
body.woocommerce .native-product div.product div.images .flex-control-thumbs li { flex-basis: 80px; width: 80px; }
.size-guide-is-open { overflow: hidden; }
.product-size-guide .product-measurements-panel { margin: 0; }
.product-size-guide .measurement-chart { padding: 18px; }
.product-size-guide .measurement-table table { font-size: .8125rem; }
.product-size-guide .icon-button { font-size: 24px; }
.native-product > div.product > .product-measurements-panel { margin-block: 40px; }
.native-product > div.product > .product-measurements-panel > h2 { font-size: 1.5rem; }
@media (max-width: 1023px) and (min-width: 768px) {
  body.woocommerce .native-product div.product .native-product-layout > .summary { top: 132px; padding-top: 8px; }
}
@media (max-width: 767px) {
  body.woocommerce .native-product { padding-block: 24px 64px; }
  body.woocommerce .native-product div.product .native-product-layout > .summary { grid-column: 1; grid-row: 2; padding-top: 0; position: static; }
  .native-product .summary .product_title { font-size: 2rem; }
  .native-product .summary > .eyebrow { margin-bottom: 16px; }
  .native-product .summary .product-subtitle { font-size: 1rem; }
  body.woocommerce .native-product .summary .price.product-price { font-size: 1.2rem; gap: 8px; flex-wrap: wrap; }
  body.woocommerce .native-product div.product div.images .flex-control-thumbs li { flex-basis: 64px; width: 64px; }
}
