/* Layout from the PDP references; brand tokens come from the current theme. */
.xanh-theme .pdp-redesign{padding:32px 0 0;background:var(--xanh-page)}
.xanh-theme .pdp-redesign .productDetail--main{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(24px,3vw,48px);align-items:start}
.xanh-theme .pdp-redesign :is(.productDetail--gallery,.productDetail--content){width:auto;padding:0;min-width:0}
.xanh-theme .pdp-redesign .product-container-gallery{position:static}
.xanh-theme .pdp-redesign .wrapbox-gallery{padding:0;background:transparent}
.xanh-theme .pdp-redesign .wrapbox-image{display:grid!important;grid-template-columns:80px minmax(0,1fr);align-items:start;gap:16px}
.xanh-theme .pdp-redesign .productGallery_slider{grid-column:2;grid-row:1;width:100%;min-width:0;border:1px solid var(--xanh-line);border-radius:20px;background:#fff;overflow:hidden}
.xanh-theme .pdp-redesign .productGallery_thumb{grid-column:1;grid-row:1;width:80px;max-height:600px;margin:0;overflow:auto;scrollbar-width:thin}
.xanh-theme .pdp-redesign .xanh-gallery-thumbs{display:flex;flex-direction:column;gap:12px}
.xanh-theme .pdp-redesign #productCarousel-thumb .product-thumb{width:80px;height:80px;min-height:80px;flex:0 0 80px;margin:0;padding:5px;border:1px solid var(--xanh-line);border-radius:12px;background:#fff;opacity:.65}
.xanh-theme .pdp-redesign #productCarousel-thumb .current{border:2px solid var(--xanh-green);opacity:1}
.xanh-theme .pdp-redesign #productCarousel-thumb .boxlazy-img{height:100%;padding:0}
.xanh-theme .pdp-redesign .product-gallery{background:#fff}
.xanh-theme .pdp-redesign .productGallery_slider .product-gallery{aspect-ratio:1/1}
.xanh-theme .pdp-redesign .product-gallery img{display:block;width:100%;height:100%;max-height:660px;object-fit:contain}
.xanh-theme .pdp-redesign .wrapbox-image>.product-gallery{grid-column:1/-1;width:100%;aspect-ratio:1/1;border-radius:20px;overflow:hidden}
.xanh-theme .pdp-redesign .product-gallery :is(.boxlazy-img__insert,.boxlazy-img__aspect){height:100%;padding:0}
.xanh-theme .pdp-redesign .product-gallery__item{display:block;height:100%}
.xanh-theme .pdp-redesign .productGallery_slider .owl-nav{position:absolute;inset:calc(50% - 22px) 12px auto;display:flex;justify-content:space-between;pointer-events:none}
.xanh-theme .pdp-redesign .productGallery_slider .owl-nav button{pointer-events:auto;width:40px;height:40px;border-radius:50%;background:#ffffffeb!important;color:var(--xanh-green)!important}
.xanh-theme .pdp-redesign .productGallery_slider .owl-dots{display:none}
.xanh-theme .pdp-redesign .product-percent{top:16px;right:16px;left:auto}
.xanh-theme .pdp-redesign .product-percent .pro-sale{border-radius:6px;padding:6px 10px;font-size:13px;line-height:1.3}
.xanh-theme .pdp-redesign .productDetail--gallery .wrapbox-detail{margin:16px 0 0;padding:0;background:transparent}
.xanh-theme .pdp-redesign .product-toshare{justify-content:center}
.xanh-theme .pdp-redesign .productDetail--content>.wrapbox-inner{display:block;padding:0}
.xanh-theme .pdp-redesign .productDetail--content>.wrapbox-inner>.wrapbox-detail{width:100%;padding:32px;border:1px solid var(--xanh-line);border-radius:24px;background:#fff;box-shadow:0 1px 2px #00000004}
.xanh-theme .pdp-redesign .product-heading{border:0;padding:0;margin:0 0 24px}
.xanh-theme .pdp-redesign .product-heading h1{font-size:clamp(24px,2vw,32px);font-weight:800;line-height:1.3;margin:0 0 18px;text-transform:none}
.xanh-theme .pdp-redesign .product-heading :is(#pro_sku,.pro-soldold,.pro-vendor){display:inline-block;margin:0 14px 8px 0;font-size:13px;line-height:1.6;float:none}
.xanh-theme .pdp-redesign .product-price{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:20px;margin:0 0 28px;background:var(--xanh-page);border-radius:14px;border:0}
.xanh-theme .pdp-redesign .product-price .pro-title{display:none}
.xanh-theme .pdp-redesign .product-price .pro-price{font-size:32px;font-weight:800;line-height:1.3;color:var(--xanh-green)}
.xanh-theme .pdp-redesign .product-price del{margin:0;color:var(--xanh-muted);font-size:16px}
.xanh-theme .pdp-redesign .xanh-variant-picker{display:flex;flex-wrap:wrap;gap:10px;padding:0;border:0;margin:0}
.xanh-theme .pdp-redesign .xanh-variant-picker legend{float:none;display:block;width:100%;margin-bottom:12px;font-size:14px;font-weight:700}
.xanh-theme .pdp-redesign .xanh-variant-option{position:relative;flex:0 1 auto;min-width:0;max-width:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.xanh-theme .pdp-redesign .xanh-variant-option input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.xanh-theme .pdp-redesign .xanh-variant-option span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:11px 20px;border:1px solid var(--xanh-line);border-radius:999px;font-size:14px;font-weight:600;line-height:20px;text-align:center;overflow-wrap:anywhere;background:#fff}
.xanh-theme .pdp-redesign .xanh-variant-option:hover:not(:has(input:disabled)) span{border-color:var(--xanh-green)}
.xanh-theme .pdp-redesign .xanh-variant-option input:checked+span{border-color:var(--xanh-green);color:var(--xanh-green);background:color-mix(in srgb,var(--xanh-green) 6%,white)}
.xanh-theme .pdp-redesign .xanh-variant-option input:focus-visible+span{outline:3px solid var(--xanh-green);outline-offset:3px}
.xanh-theme .pdp-redesign .xanh-variant-option:has(input[data-unavailable]) span{text-decoration:line-through;color:var(--xanh-muted)}
.xanh-theme .pdp-redesign .xanh-variant-option small{display:none}
.xanh-theme .pdp-redesign [data-variant-status]{font-size:13px;color:var(--xanh-muted);margin:14px 0 0}
.xanh-theme .pdp-redesign .product-actions{margin-top:24px}
.xanh-theme .pdp-redesign .product-actions .select-actions{display:block}
.xanh-theme .pdp-redesign .product-actions .quantity-area{width:100%;margin:0 0 24px;float:none}
.xanh-theme .pdp-redesign .pro-qty{flex-wrap:wrap;justify-content:flex-start!important;gap:0}
.xanh-theme .pdp-redesign .quantity-title{width:100%;margin-bottom:12px;text-align:left;font-size:14px;font-weight:700}
.xanh-theme .pdp-redesign .pro-qty :is(button,input){height:44px;min-height:44px;width:44px;margin:0;border:1px solid var(--xanh-line);background:#fff;color:var(--xanh-ink);border-radius:0}
.xanh-theme .pdp-redesign .pro-qty button:first-of-type{border-radius:24px 0 0 24px}
.xanh-theme .pdp-redesign .pro-qty button:last-of-type{border-radius:0 24px 24px 0}
.xanh-theme .pdp-redesign #quantity{font-size:16px;text-align:center;border-inline:0;appearance:textfield;padding:0}
.xanh-theme .pdp-redesign .product-actions .addcart-area{display:grid!important;grid-template-columns:1.1fr 1fr!important;gap:12px!important}
.xanh-theme .pdp-redesign .product-actions .addcart-area :is(button,.button){width:100%;min-width:0;margin:0;min-height:50px;border-radius:12px!important;padding:12px 16px;font-size:15px;font-weight:700;line-height:1.4;white-space:normal}
.xanh-theme .pdp-redesign #buy-now{background:#fff;color:var(--xanh-green);border:1px solid currentColor}
.xanh-theme .pdp-redesign [data-zero-contact]{margin-top:14px}
.xanh-theme .pdp-redesign .pdp-information{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:40px;padding:32px;margin-top:16px;border:1px solid var(--xanh-line);border-radius:24px;background:#fff}
.xanh-theme .pdp-redesign .qty-btn svg,.xanh-theme .pdp-sticky .qty-btn svg{width:12px;height:12px}
.pdp-description,.pdp-source,.pdp-panel,.pdp-panel-content{min-width:0}
.pdp-tabs{display:flex;flex-wrap:wrap;gap:12px 28px;border-bottom:1px solid var(--xanh-line);margin-bottom:28px}
.pdp-tabs button{position:relative;min-height:48px;padding:10px 0;border:0;background:transparent;color:var(--xanh-muted);font-size:14px;font-weight:600;line-height:1.5;text-align:left}
.xanh-theme .pdp-redesign .pdp-tabs button:focus:not(:focus-visible){outline:none}
.xanh-theme .pdp-redesign .pdp-tabs button:focus-visible{outline:3px solid var(--xanh-green);outline-offset:3px}
.pdp-tabs button[aria-selected=true]{color:var(--xanh-green)}
.pdp-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:currentColor}
.pdp-accordion-heading{margin:0!important;font-size:16px}
.pdp-accordion-heading:has(button[hidden]){display:none}
.pdp-accordion{width:100%;min-height:56px;padding:16px 0;border:0;border-bottom:1px solid var(--xanh-line);background:transparent;text-align:left;font-size:15px;font-weight:700;line-height:1.5;display:flex;align-items:center;justify-content:space-between;gap:16px}
.pdp-accordion:after{content:'›';font-size:24px;color:var(--xanh-muted);transform:rotate(0)}
.pdp-accordion[aria-expanded=true]:after{transform:rotate(90deg)}
.pdp-panel-content{font-size:15px;line-height:1.85;color:var(--xanh-ink);overflow-wrap:anywhere;overflow-x:auto}
.pdp-panel-content [data-pdp-section-marker]{display:none}
.pdp-panel-content :is(p,div,section,article){width:auto!important;min-width:0!important;max-width:100%!important;white-space:normal!important;text-align:start!important}
.pdp-panel-content p{margin:0 0 16px}
.pdp-panel-content :is(h2,h3){font-size:20px;line-height:1.4;margin:24px 0 16px}
.pdp-panel-content :is(ul,ol){padding-left:24px;margin:16px 0}
.pdp-panel-content img,.pdp-source>img{max-width:100%!important;height:auto!important}
.pdp-panel-content table{width:auto;max-width:100%;border-collapse:collapse;margin:16px 0}
.pdp-panel-content :is(td,th){border:1px solid var(--xanh-line);padding:10px 14px}
.pdp-panel-content a{text-decoration:underline;color:var(--xanh-green)}
.pdp-native-details{padding:24px;border-radius:16px;background:var(--xanh-page);min-width:0}
.pdp-native-details h2{font-size:18px;line-height:1.4;margin:0 0 16px}
.pdp-native-details table{width:100%;font-size:13px;table-layout:fixed}
.pdp-native-details :is(th,td){vertical-align:top;padding:14px 0;border-bottom:1px solid var(--xanh-line);overflow-wrap:anywhere}
.pdp-native-details th{color:var(--xanh-muted);font-weight:400;width:43%;text-align:left}
.pdp-native-details td{text-align:right;font-weight:600}
.xanh-theme .pdp-reviews{grid-column:1/-1;margin-top:0;padding:32px;border-radius:24px;background:#fff}
.xanh-theme .pdp-related{margin:56px 0 0}
.xanh-theme .pdp-related .productRelated-title h2{font-size:28px;color:var(--xanh-green);font-weight:800;margin:0;padding:0}
.xanh-theme .pdp-related .pdp-related-heading{display:grid;grid-template-columns:minmax(0,1fr) auto 70px;grid-auto-rows:minmax(44px,auto);gap:12px 16px;align-items:center;margin-bottom:24px}
.xanh-theme .pdp-related .pdp-related-heading>a{grid-column:2}
/* The last grid column reserves Owl's 70px nav; align it with the final 44px header row. */
.xanh-theme .pdp-related #owlProduct-related>.owl-nav{position:absolute;top:-61px;right:7px;width:70px;gap:10px}
.xanh-theme .pdp-related #owlProduct-related>.owl-nav:not(.disabled){display:flex}
.xanh-theme .pdp-related #owlProduct-related>.owl-nav>button{position:static;flex:0 0 30px;margin:0;transform:none}
.pdp-related-heading>a{color:var(--xanh-green);text-decoration:underline;font-weight:600;white-space:nowrap}
.xanh-theme .pdp-sticky{position:fixed!important;z-index:90;padding:12px 0 calc(12px + env(safe-area-inset-bottom));}
.xanh-theme .pdp-sticky .sticky-atc{max-width:1440px;margin:auto;gap:24px}
.xanh-theme .pdp-sticky .prod-img{width:60px;height:60px;flex:0 0 60px}
.xanh-theme .pdp-sticky .prod-img img{width:60px!important;height:60px!important;max-width:60px;object-fit:contain}
.xanh-theme .pdp-sticky .pdp-sticky-title{font-size:14px;font-weight:700;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:580px}
.xanh-theme .pdp-sticky .prod-info__price{display:flex;gap:12px;align-items:center;font-size:20px;color:var(--xanh-green);font-weight:800}
.xanh-theme .pdp-sticky .prod-info__price .prod-price{color:var(--xanh-green)}
.xanh-theme .pdp-sticky [data-sticky-variant]{font-size:12px;font-weight:400;color:var(--xanh-muted)}
.xanh-theme .pdp-sticky .sticky-atc__vrt{display:none}
.xanh-theme .pdp-sticky .btn-quantity{margin-right:24px}
.xanh-theme .pdp-sticky #add-to-cart-sticky{min-height:48px;border-radius:12px;padding:12px 28px;font-size:15px;font-weight:700;background:var(--xanh-green);color:#fff}
.xanh-theme .pdp-sticky.pdp-obscured{visibility:hidden!important;pointer-events:none!important;transform:translateY(110%)!important}
.pdp-redesign button[aria-busy=true],.pdp-sticky button[aria-busy=true]{opacity:.65}
.pdp-redesign #add-to-cart[aria-busy=true]:after,.pdp-sticky #add-to-cart-sticky[aria-busy=true]:after{content:' · Đang xử lý…'}
@media(min-width:1921px){.xanh-theme .pdp-redesign .productDetail--main{gap:48px}}
@media(min-width:768px) and (max-width:1100px){.xanh-theme .pdp-redesign .productDetail--main{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.xanh-theme .pdp-redesign .productDetail--content>.wrapbox-inner>.wrapbox-detail{padding:24px}.xanh-theme .pdp-redesign .productGallery_thumb{width:60px;flex-basis:60px;max-height:420px}.xanh-theme .pdp-redesign #productCarousel-thumb .product-thumb{width:60px;height:60px;min-height:60px;flex-basis:60px}.xanh-theme .pdp-redesign .product-actions .addcart-area{grid-template-columns:1fr!important}.xanh-theme .pdp-redesign .pdp-information{grid-template-columns:minmax(0,1fr) 260px;gap:24px;padding:24px}.xanh-theme .pdp-sticky .pdp-sticky-title{max-width:300px}}
@media(max-width:767px){
 .xanh-theme .pdp-redesign{padding-top:16px}
 .xanh-theme .pdp-redesign .productDetail--main{display:block}
 .xanh-theme .pdp-redesign .wrapbox-image{display:block!important}
 .xanh-theme .pdp-redesign .productGallery_slider{width:100%;overflow:visible;border-radius:18px;border:0;background:transparent}
 .xanh-theme .pdp-redesign .product-gallery{border-radius:18px;overflow:hidden}
 .xanh-theme .pdp-redesign .product-gallery img{max-height:none}
 .xanh-theme .pdp-redesign .productGallery_thumb{display:none}
 .xanh-theme .pdp-redesign .productGallery_slider .owl-nav{display:none}
 .xanh-theme .pdp-redesign .productGallery_slider .owl-dots{display:flex;justify-content:center;gap:6px;padding:14px 0 0;position:static}
 .xanh-theme .pdp-redesign .owl-dot{display:grid;place-items:center;width:24px;height:24px;padding:0!important}
 .xanh-theme .pdp-redesign .owl-dot span{display:block;width:6px;height:6px;border-radius:10px;background:var(--xanh-line);margin:0}
 .xanh-theme .pdp-redesign .owl-dot.active span{width:20px;background:var(--xanh-green)}
 .xanh-theme .pdp-redesign .productDetail--gallery .wrapbox-detail{display:none}
 .xanh-theme .pdp-redesign .productDetail--content{margin-top:24px}
 .xanh-theme .pdp-redesign .productDetail--content>.wrapbox-inner>.wrapbox-detail{padding:0;border:0;background:transparent;box-shadow:none;border-radius:0}
 .xanh-theme .pdp-redesign .product-heading{margin-bottom:18px}
 .xanh-theme .pdp-redesign .product-heading h1{font-size:26px;line-height:1.35;margin-bottom:16px}
 .xanh-theme .pdp-redesign .product-price{padding:0;margin-bottom:24px;background:transparent}
 .xanh-theme .pdp-redesign .product-price .pro-price{font-size:30px}
 .xanh-theme .pdp-redesign .product-actions .addcart-area{grid-template-columns:1fr!important;gap:12px!important}
 .xanh-theme .pdp-redesign .product-actions .addcart-area :is(button,.button){min-height:54px;font-size:16px;border-radius:14px!important}
 .xanh-theme .pdp-redesign .pdp-information{display:flex;flex-direction:column;gap:24px;padding:0;margin-top:32px;border:0;border-radius:0;background:transparent}
 .pdp-description{width:100%;background:#fff;padding:0 16px;border-radius:16px}
 .pdp-tabs{display:none}
 .pdp-panel-content{padding:18px 0;font-size:14px;line-height:1.8}
 .pdp-native-details{width:100%;padding:20px;background:#fff}
 .xanh-theme .pdp-reviews{padding:20px;margin-top:24px}
 .xanh-theme .pdp-related{margin-top:40px}
 .xanh-theme .pdp-related .productRelated-title h2{font-size:22px;margin:0}
 .xanh-theme .pdp-related .pdp-related-heading>.productRelated-title{grid-column:1/-1}
 .xanh-theme .pdp-related #owlProduct-related>.owl-nav{right:-2px}
 .pdp-related-heading>a{font-size:12px}
 .xanh-theme .pdp-sticky .prod-info{margin:0}
 .xanh-theme .pdp-sticky :is(.pdp-sticky-title,.prod-img,.btn-quantity){display:none}
 .xanh-theme .pdp-sticky .sticky-atc__img{flex:1}
 .xanh-theme .pdp-sticky .sticky-atc__action{flex:0 1 55%}
 .xanh-theme .pdp-sticky .prod-info__price{font-size:20px;flex-wrap:wrap;gap:2px 8px}
 .xanh-theme .pdp-sticky .prod-info__price del,.xanh-theme .pdp-sticky .prod-percent{display:none}
 .xanh-theme .pdp-sticky #add-to-cart-sticky{padding:12px 16px;width:100%;font-size:14px}
}
@media(prefers-reduced-motion:reduce){.pdp-redesign *,.pdp-sticky{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
