/* Product detail UI. Values inherit the AI theme palette; gallery photos stay on a neutral canvas. */
/* Optional divider layout. The original card layout below remains the default. */
.product-style-lines.woocommerce .product-page .summary .product_title{font-family:Arial,"Noto Sans SC",sans-serif;font-weight:600;letter-spacing:-.025em;font-size:clamp(26px,2.45vw,34px);line-height:1.25}
.product-style-lines.woocommerce .product-page .summary>p.price{font-size:30px;color:var(--accent);margin-bottom:24px}
.product-style-lines.woocommerce .product-page .summary form.cart{padding:0;margin:24px 0;border:0;border-radius:0;background:transparent}
.product-style-lines.woocommerce .product-page .summary table.variations{border-top:1px solid color-mix(in srgb,var(--text) 20%,transparent);padding-top:24px;margin-bottom:22px}
.product-style-lines.woocommerce .product-page .summary table.variations tr+tr{border-top:1px solid color-mix(in srgb,var(--text) 14%,transparent);padding-top:22px}
.product-style-lines.woocommerce .product-page .summary table.variations label{font-size:16px;gap:12px;margin-bottom:12px}
.product-style-lines .wpa-chosen{font-size:15px}
.product-style-lines .wpa-option{border-radius:12px;min-height:48px;background:transparent}
.product-style-lines .wpa-option[aria-pressed="true"]{background:transparent;color:var(--text);border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.product-style-lines .wpa-option.wpa-option-image{width:76px;height:76px;min-width:76px;padding:4px;position:relative;background:#fff}
.product-style-lines .wpa-option-image img{display:block;width:100%;height:100%;border-radius:7px;object-fit:contain}
.product-style-lines .wpa-option-image>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.product-style-lines .wpa-option-image:not(.wpa-option-visual){height:auto;width:auto;max-width:130px;flex-direction:column;gap:5px}
.product-style-lines .wpa-option-image:not(.wpa-option-visual)>img{width:64px;height:64px}
.product-style-lines .wpa-option-image:not(.wpa-option-visual)>span{position:static;width:auto;height:auto;clip-path:none;white-space:normal;font-size:12px}
.product-style-lines .wpa-options-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;padding:5px;max-height:260px;align-content:start;overscroll-behavior:contain}
.product-style-lines .wpa-options-images .wpa-option-image{width:100%;height:auto;min-width:0;aspect-ratio:1;padding:4px;border-radius:10px}
.product-style-lines .wpa-option [hidden]{display:none!important}
.product-style-lines .wpa-option:disabled{opacity:.35}
.product-style-lines.woocommerce .product-page .summary .wpu-product-service{border:0;border-top:1px solid color-mix(in srgb,var(--text) 20%,transparent);border-radius:0;background:transparent;padding:24px 0;margin:22px 0}
.product-style-lines.woocommerce .product-page .summary .wpu-service-shipping>.wpu-service-icon{display:none}
.product-style-lines.woocommerce .product-page .summary .wpu-delivery-heading h3{font-size:17px}
.product-style-lines.woocommerce .product-page .summary .wpu-delivery-change{font-size:14px;color:var(--accent);font-weight:600}
.product-style-lines.woocommerce .product-page .summary .wpu-service-emphasis{color:var(--accent)}
.product-style-lines.woocommerce .product-page .summary button.single_add_to_cart_button{border-radius:999px;min-height:50px;font-size:15px}
.product-style-lines.woocommerce .product-page .summary button.wpa-buy-now{background:transparent;border-color:var(--text);color:var(--text)}
.product-style-lines.woocommerce .product-page .summary button.wpa-buy-now:hover:not(.disabled){background:var(--surface);color:var(--text)}
.product-page{padding-top:24px;padding-bottom:80px;min-height:65vh}
.woocommerce .product-page .woocommerce-breadcrumb{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 28px;overflow-wrap:anywhere}
.woocommerce .product-page>div.product{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:52px;align-items:start;position:relative}
.woocommerce .product-page>div.product:before,.woocommerce .product-page>div.product:after{display:none}
.woocommerce .product-page>div.product>.summary{float:none;width:auto;min-width:0;margin:0;padding:4px 0 0;position:relative;z-index:1}
.woocommerce .product-page>div.product>.onsale{left:90px;top:12px;z-index:4;border-radius:20px;padding:4px 12px;min-height:0;line-height:1.8}
.woocommerce .product-page .summary .product_title{font-size:clamp(27px,2.7vw,38px);line-height:1.2;letter-spacing:-.035em;margin:0 0 18px;overflow-wrap:anywhere}
.woocommerce .product-page .summary>p.price{font-size:25px;line-height:1.5;font-weight:600;color:var(--text);margin:0 0 22px}
.woocommerce .product-page .summary .woocommerce-product-details__short-description{font-size:14px;line-height:1.85;margin-bottom:24px;color:var(--muted)}
.woocommerce .product-page .summary .woocommerce-product-details__short-description p{margin:0 0 12px}
.woocommerce .product-page .summary form.cart{margin:24px 0;padding:24px;border:1px solid color-mix(in srgb,var(--text) 20%,transparent);border-radius:16px;background:var(--surface);color:var(--text)}
.woocommerce .product-page .summary table.variations,.woocommerce .product-page .summary table.variations tbody,.woocommerce .product-page .summary table.variations tr,.woocommerce .product-page .summary table.variations th,.woocommerce .product-page .summary table.variations td{display:block;width:100%;border:0;padding:0;text-align:left}
.woocommerce .product-page .summary table.variations{margin:0 0 18px}
.woocommerce .product-page .summary table.variations tr+tr{margin-top:22px}
.woocommerce .product-page .summary table.variations label{display:flex;flex-wrap:wrap;gap:8px;font:600 13px/1.6 Arial,"Noto Sans SC",sans-serif;margin:0 0 10px;letter-spacing:0}
.wpa-chosen{font-weight:400;overflow-wrap:anywhere}
.wpa-native-variation{display:none!important}
.wpa-options{display:flex;flex-wrap:wrap;gap:9px;max-height:272px;overflow-y:auto;padding:2px 3px 4px 1px}
.wpa-option{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:64px;min-height:44px;max-width:100%;padding:10px 15px;border:1px solid color-mix(in srgb,var(--text) 28%,transparent);border-radius:9px;background:var(--background);color:var(--text);font:400 13px/1.5 Arial,"Noto Sans SC",sans-serif;cursor:pointer;overflow-wrap:anywhere;text-align:center;transition:border-color .15s,box-shadow .15s}
.wpa-option:hover:not(:disabled){border-color:var(--text);box-shadow:0 0 0 1px var(--text)}
.wpa-option[aria-pressed="true"]{border-color:var(--text);box-shadow:0 0 0 1px var(--text);background:var(--text);color:var(--background)}
.wpa-option:disabled{opacity:.4;cursor:not-allowed;text-decoration:line-through;border-style:dashed}
.wpa-option:focus-visible{outline:2px solid var(--text);outline-offset:4px}
.wpa-color-dot{width:17px;height:17px;border:1px solid #777;border-radius:50%;flex-shrink:0;box-shadow:0 0 0 2px #fff8}
.woocommerce .product-page .summary .variations select:not(.wpa-native-variation){width:100%;min-height:44px;border:1px solid var(--muted);padding:10px;border-radius:8px;background:var(--background);color:var(--text)}
.woocommerce .product-page .summary .reset_variations{display:inline-block;font-size:12px;color:var(--text);text-underline-offset:4px;padding:9px 0 0;margin:0}
.woocommerce .product-page .summary .woocommerce-variation{font-size:14px;line-height:1.8;margin-bottom:18px}
.woocommerce .product-page .summary .woocommerce-variation-price .price{color:var(--text);font-size:22px;font-weight:600}
.woocommerce .product-page .summary .woocommerce-variation-add-to-cart{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.woocommerce .product-page .summary .quantity{float:none;margin:0}
.woocommerce .product-page .summary input.qty{width:76px;height:48px;border:1px solid color-mix(in srgb,var(--text) 35%,transparent);border-radius:8px;background:var(--background);color:var(--text);font:inherit;padding:8px}
.woocommerce .product-page .summary button.single_add_to_cart_button{float:none;min-height:48px;padding:14px 25px;border-radius:8px;line-height:1.4;font-size:14px;background:var(--accent);color:var(--buttonText)}
.woocommerce .product-page .summary button.single_add_to_cart_button.disabled{opacity:.45;cursor:not-allowed}
.woocommerce .product-page .summary .product_meta{display:grid;gap:8px;border-top:1px solid color-mix(in srgb,var(--text) 18%,transparent);padding-top:22px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.woocommerce .product-page .summary .product_meta a{text-decoration:underline;text-underline-offset:3px}
.woocommerce .product-page>div.product>.woocommerce-tabs,.woocommerce .product-page>div.product>.related,.woocommerce .product-page>div.product>.up-sells{grid-column:1/-1;clear:both;min-width:0;width:100%}
.woocommerce .product-page .woocommerce-Tabs-panel{font-size:15px;line-height:1.85;overflow-wrap:anywhere}
.woocommerce .product-page .woocommerce-Tabs-panel h2,.woocommerce .product-page .related>h2{font-size:28px;line-height:1.25;margin:0 0 24px}
.woocommerce .product-page .woocommerce-Tabs-panel p{margin:14px 0}
.woocommerce .product-page .product .woocommerce-tabs ul.tabs li{background:var(--surface);border-color:var(--muted);color:var(--text)}
.woocommerce .product-page .product .woocommerce-tabs ul.tabs li.active{background:var(--background);color:var(--text)}
/* Native WooCommerce tabs, with a consistent segmented navigation. */
.woocommerce .product-page .product .woocommerce-tabs ul.tabs{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:8px;margin:0 0 30px;border:1px solid color-mix(in srgb,var(--text) 16%,transparent);border-radius:14px;background:var(--surface);overflow:visible}
.woocommerce .product-page .product .woocommerce-tabs ul.tabs::before,.woocommerce .product-page .product .woocommerce-tabs ul.tabs li::before,.woocommerce .product-page .product .woocommerce-tabs ul.tabs li::after{display:none}
.woocommerce .product-page .product .woocommerce-tabs ul.tabs li{display:block;margin:0;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;color:var(--muted)}
.woocommerce .product-page .product .woocommerce-tabs ul.tabs li a{display:block;padding:12px 20px;min-height:46px;font:600 14px/1.5 Arial,"Noto Sans SC",sans-serif;color:inherit;border-radius:8px}
.woocommerce .product-page .product .woocommerce-tabs ul.tabs li.active{background:var(--background);color:var(--text);box-shadow:0 2px 8px #0000000a}
.woocommerce .product-page .product .woocommerce-tabs ul.tabs li:not(.active) a:hover{color:var(--text);background:color-mix(in srgb,var(--background) 60%,transparent)}
.woocommerce .product-page .product .woocommerce-tabs ul.tabs a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.woocommerce .product-page .summary form.cart:not(.variations_form){display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.woocommerce .product-page .summary button.single_add_to_cart_button{border:1px solid var(--accent)}
.woocommerce .product-page .summary button.wpa-buy-now{background:var(--text);border-color:var(--text);color:var(--background)}
.woocommerce .product-page .summary button.wpa-buy-now:hover:not(.disabled){background:var(--text);color:var(--background);filter:brightness(1.18)}
.woocommerce .product-page .related ul.products li.product .button,.woocommerce .product-page .up-sells ul.products li.product .button{border-radius:var(--wpa-button-radius,8px);min-height:44px;padding:13px 18px;line-height:1.4}
@media(max-width:760px){.woocommerce .product-page .product .woocommerce-tabs ul.tabs{gap:4px;padding:5px;border-radius:12px}.woocommerce .product-page .product .woocommerce-tabs ul.tabs li{flex:1 1 auto;text-align:center}.woocommerce .product-page .product .woocommerce-tabs ul.tabs li a{padding:11px 9px;font-size:12px}.woocommerce .product-page .summary button.single_add_to_cart_button{padding-inline:18px;flex:1 1 auto}}
.wpa-gallery{position:relative;min-width:0;align-self:start;z-index:3}
/* Shopify-style purchase rows: quantity + cart, then a full-width Buy now. */
.woocommerce .product-page .summary .woocommerce-variation-add-to-cart,.woocommerce .product-page .summary form.cart:not(.variations_form):has(>.wpa-buy-now){display:grid;grid-template-columns:minmax(120px,140px) minmax(0,1fr);align-items:center;gap:12px}
/* Woo's float clearfix becomes two extra grid items on a simple product form. */
.woocommerce .product-page .summary form.cart:not(.variations_form):has(>.wpa-buy-now)::before,.woocommerce .product-page .summary form.cart:not(.variations_form):has(>.wpa-buy-now)::after{display:none}
.woocommerce .product-page .summary button.single_add_to_cart_button{width:100%;min-width:0;margin:0;padding-inline:16px;min-height:48px}
.woocommerce .product-page .summary button.wpa-buy-now{grid-column:1/-1}
.woocommerce .product-page .summary .quantity{width:100%;min-width:0}
.woocommerce .product-page .summary .quantity:has(input.qty[type="hidden"]){display:none}
.woocommerce .product-page .summary .woocommerce-variation-add-to-cart:not(:has(.quantity input.qty:not([type="hidden"]))),.woocommerce .product-page .summary form.cart:not(.variations_form):has(>.wpa-buy-now):not(:has(.quantity input.qty:not([type="hidden"]))){grid-template-columns:minmax(0,1fr)}
.woocommerce .product-page .summary .quantity.wpa-quantity-stepper{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;height:48px;border:1px solid color-mix(in srgb,var(--text) 35%,transparent);border-radius:8px;background:var(--background);overflow:hidden}
.woocommerce .product-page .summary .wpa-quantity-stepper input.qty{width:100%;min-width:0;height:46px;border:0;border-radius:0;padding:0;background:transparent;text-align:center;appearance:textfield;-moz-appearance:textfield;font:400 14px/1 Arial,sans-serif}
.wpa-quantity-stepper input.qty::-webkit-inner-spin-button,.wpa-quantity-stepper input.qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.wpa-quantity-step{display:flex;align-items:center;justify-content:center;width:38px;height:46px;padding:0;border:0;background:transparent;color:var(--text);font:400 21px/1 Arial,sans-serif;cursor:pointer}
.wpa-quantity-step:hover:not(:disabled){background:var(--surface)}
.wpa-quantity-step:disabled{opacity:.3;cursor:default}
.wpa-quantity-step:focus-visible,.woocommerce .product-page .summary .wpa-quantity-stepper input.qty:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
@media(max-width:380px){.woocommerce .product-page .summary .woocommerce-variation-add-to-cart,.woocommerce .product-page .summary form.cart:not(.variations_form):has(>.wpa-buy-now){grid-template-columns:120px minmax(0,1fr);gap:10px}.woocommerce .product-page .summary button.single_add_to_cart_button{font-size:12px;padding-inline:10px}}
.wpa-gallery [hidden]{display:none!important}
.wpa-gallery-layout{display:grid;grid-template-columns:64px minmax(0,1fr);gap:16px;position:relative}
.wpa-thumbnails{display:flex;flex-direction:column;gap:10px;max-height:590px;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;padding:3px 3px 8px}
.wpa-thumbnails::-webkit-scrollbar{display:none;width:0;height:0}
.wpa-thumbnail{display:grid;place-items:center;flex:0 0 58px;width:58px;height:64px;border:1px solid #d5d5d5;border-radius:8px;background:#fff;padding:4px;overflow:hidden}
.wpa-thumbnail img{width:100%;height:100%;object-fit:contain;display:block}
.wpa-thumbnail:hover,.wpa-thumbnail.is-active{border-color:var(--text);outline:2px solid var(--text);outline-offset:1px}
.wpa-gallery-display{min-width:0}
.wpa-image-stage{position:relative;aspect-ratio:1/1.08;background:#fff;border:1px solid #ddd;border-radius:13px;overflow:hidden}
.wpa-main-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;cursor:zoom-in;position:relative;touch-action:pan-y pinch-zoom}
.wpa-gallery .wpa-main-image{display:block;width:100%;height:100%;max-height:none;object-fit:contain;user-select:none;-webkit-user-drag:none}
.wpa-image-stage.is-loading{opacity:.65}
.wpa-gallery-caption{display:flex;justify-content:space-between;gap:14px;padding-top:12px;font-size:11px;color:var(--muted);line-height:1.6}
.wpa-gallery-count{flex-shrink:0}
.wpa-image-error{position:absolute;inset:30% 12%;text-align:center;font-size:14px;color:#444;pointer-events:none}
.wpa-gallery-step{position:absolute;top:45%;width:38px;height:44px;border:1px solid #ddd;border-radius:8px;background:#fffffff0;color:#222;font:30px/1 Arial,sans-serif;cursor:pointer;z-index:2;box-shadow:0 2px 10px #0001}
.wpa-gallery-prev{left:10px}.wpa-gallery-next{right:10px}
.wpa-zoom-lens{position:absolute;background:repeating-linear-gradient(45deg,#344d3725,#344d3725 2px,#ffffff50 2px,#ffffff50 4px);border:1px solid #7778;pointer-events:none}
.wpa-zoom-preview{position:absolute;left:calc(100% + 24px);top:0;width:min(480px,40vw);height:100%;max-height:590px;z-index:50;background:#fff;border:1px solid #ddd;border-radius:13px;overflow:hidden;box-shadow:0 12px 36px #0002;pointer-events:none}
.wpa-zoom-preview img{position:absolute;max-width:none;object-fit:fill;display:block}
.wpa-lightbox{width:min(1320px,96vw);max-width:96vw;height:min(920px,94dvh);max-height:94dvh;padding:0;border:0;border-radius:16px;background:#fff;color:#222;overflow:hidden}
.wpa-lightbox[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.wpa-lightbox::backdrop{background:#000c}
.wpa-lightbox-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 24px;border-bottom:1px solid #eee}
.wpa-lightbox-header h2{font:500 15px/1.5 Arial,"Noto Sans SC",sans-serif;letter-spacing:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.wpa-lightbox button{border:1px solid #ddd;border-radius:8px;background:#fff;color:#222;cursor:pointer;flex-shrink:0}
.wpa-lightbox button:focus-visible,.wpa-thumbnail:focus-visible{outline:3px solid #344d37;outline-offset:3px}
.wpa-lightbox-close{width:42px;height:42px;font:28px/1 Arial,sans-serif}
.wpa-lightbox-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:minmax(0,1fr);align-items:center;gap:16px;min-height:0;padding:18px 24px;overflow:hidden}
.wpa-lightbox-stage>button{width:44px;height:52px;font:32px/1 Arial,sans-serif}
.wpa-gallery .wpa-lightbox-image{width:100%;height:100%;min-width:0;min-height:0;max-height:100%;object-fit:contain;user-select:none;touch-action:pan-y pinch-zoom}
.wpa-lightbox-bottom{border-top:1px solid #eee;padding:12px 24px 18px;min-width:0}
.wpa-lightbox-count{display:block;text-align:center;font-size:12px;margin-bottom:10px}
.wpa-lightbox-thumbnails{display:flex;justify-content:flex-start;gap:10px;overflow-x:auto;padding:3px 3px 6px}
.wpa-lightbox-thumbnails .wpa-thumbnail{height:58px;flex-basis:58px}
.wpa-lightbox button:disabled{opacity:.3;cursor:default}
@media(min-width:1101px) and (hover:hover) and (pointer:fine){.wpa-gallery-step{display:none}}
@media(max-width:1100px){.woocommerce .product-page>div.product{gap:30px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.wpa-gallery-layout{grid-template-columns:minmax(0,1fr);gap:12px}.wpa-thumbnails{flex-direction:row;grid-row:2;max-height:none;overflow-x:auto;overflow-y:hidden}.wpa-thumbnail{height:58px}.wpa-zoom-preview,.wpa-zoom-lens{display:none!important}.wpa-gallery{position:static}.woocommerce .product-page>div.product>.onsale{left:12px}}
@media(max-width:760px){.product-page{padding-top:18px;padding-bottom:48px}.woocommerce .product-page .woocommerce-breadcrumb{font-size:11px;margin-bottom:20px}.woocommerce .product-page>div.product{grid-template-columns:minmax(0,1fr);gap:28px}.wpa-image-stage{aspect-ratio:1/1}.wpa-thumbnails{gap:10px}.woocommerce .product-page .summary .product_title{font-size:28px}.woocommerce .product-page .summary form.cart{padding:20px;margin-top:20px}.wpa-options{gap:8px}.wpa-option{padding:10px 13px;min-height:44px}.wpa-lightbox{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.wpa-lightbox-header{padding:12px 16px;gap:14px}.wpa-lightbox-stage{grid-template-columns:32px minmax(0,1fr) 32px;gap:6px;padding:10px}.wpa-lightbox-stage>button{width:32px;height:44px;font-size:26px}.wpa-lightbox-bottom{padding:10px 12px 16px}}
