/* NXP storefront styling. All selectors limited to WooCommerce views. */
body.woocommerce .site-main, body.woocommerce-page .site-main{min-width:0}
body.woocommerce .woocommerce-products-header, body.woocommerce .woocommerce-notices-wrapper{max-width:100%}
body.woocommerce ul.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:22px 0 36px;padding:0;}
body.woocommerce ul.products::before, body.woocommerce ul.products::after{display:none}
body.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;min-width:0;display:flex;flex-direction:column;gap:8px;}
body.woocommerce ul.products li.product a img{width:100%;aspect-ratio:1/1;object-fit:contain;border-radius:10px;margin:0;background:rgba(128,128,128,.05);}
body.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:clamp(14px,1.2vw,17px);line-height:1.35;letter-spacing:0;margin:4px 0 0;}
body.woocommerce ul.products li.product .price{font-size:18px;font-weight:700;margin:0;}
body.woocommerce ul.products li.product .button{margin-top:auto;align-self:stretch;text-align:center;min-height:42px;display:flex;align-items:center;justify-content:center;border-radius:7px;}
@media(max-width:999px){body.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(max-width:689px){body.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px}body.woocommerce ul.products li.product .price{font-size:16px}body.woocommerce ul.products li.product .button{font-size:13px;padding:10px 8px}}

/* 1.0.1: tighter mobile storefront; never alter editorial article typography. */
body.post-type-archive-product ul.products li.product, body.tax-product_cat ul.products li.product{gap:4px}
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block;margin:0;padding:0}
body.woocommerce ul.products li.product a img{display:block}
@media(max-width:689px){
 body.woocommerce ul.products{row-gap:18px;column-gap:12px;margin-top:14px}
 body.woocommerce ul.products li.product{gap:4px}
 body.woocommerce ul.products li.product a img{aspect-ratio:1/1;max-height:200px;object-fit:contain}
 body.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;line-height:1.32!important;margin:3px 0 0!important}
 body.woocommerce ul.products li.product .price{font-size:16px!important;line-height:1.3!important;margin:2px 0 0!important}
 body.woocommerce ul.products li.product .button{min-height:38px!important;margin:7px 0 0!important;font-size:13px!important;padding:8px 6px!important}
}


/* 1.0.2: dark storefront matching NXP editorial chrome, and uniform media tiles. */
body.woocommerce, body.woocommerce-page{background:#10101b!important;color:#f1f1f8!important;}
body.woocommerce #main, body.woocommerce-page #main, body.woocommerce .site-main, body.woocommerce-page .site-main, body.woocommerce .ct-container, body.woocommerce-page .ct-container{background-color:transparent;}
body.woocommerce .entry-content, body.woocommerce-page .entry-content, body.woocommerce .woocommerce, body.woocommerce-page .woocommerce{color:#e7e7f0;}
body.woocommerce :is(h1,h2,h3,h4,.page-title,.woocommerce-products-header__title,.woocommerce-loop-product__title,.product_title), body.woocommerce-page :is(h1,h2,h3,h4,.page-title,.woocommerce-products-header__title,.woocommerce-loop-product__title,.product_title){color:#f5f5fa!important;}
body.woocommerce :is(p,.price,.amount,.woocommerce-result-count,.woocommerce-product-details__short-description), body.woocommerce-page :is(p,.price,.amount,.woocommerce-result-count,.woocommerce-product-details__short-description){color:#e3e3ee!important;}
body.woocommerce a:not(.button), body.woocommerce-page a:not(.button){color:inherit;}
body.woocommerce ul.products li.product{background:#1b1b2b!important;border-radius:13px;padding:10px!important;overflow:hidden;box-shadow:none!important;}
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:flex!important;flex-direction:column;flex:1;min-width:0;}
body.woocommerce ul.products li.product a img{aspect-ratio:1/1!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important;background:#242437!important;border-radius:9px!important;margin:0 0 10px!important;}
body.woocommerce ul.products li.product .woocommerce-loop-product__title{color:#f3f3fa!important;text-align:center;}
body.woocommerce ul.products li.product .price{color:#d8d9ea!important;text-align:center;margin-top:auto!important;padding-top:8px;}
body.woocommerce ul.products li.product .button{background:#7b2cf4!important;color:#fff!important;border:0!important;}
body.woocommerce :is(select,input,textarea), body.woocommerce-page :is(select,input,textarea){background:#242437;color:#f5f5fa;border-color:#44445b;}
@media(max-width:689px){body.woocommerce ul.products li.product{padding:7px!important;}body.woocommerce ul.products li.product a img{margin-bottom:7px!important;}body.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:3.96em;}body.woocommerce ul.products li.product .price{padding-top:5px!important;}}

/* 1.0.3: compact grid cards; purchase CTA directly below price. */
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{flex:0 0 auto!important;}
body.woocommerce ul.products li.product .woocommerce-loop-product__title{min-height:0!important;margin:4px 0 0!important;}
body.woocommerce ul.products li.product .price{margin-top:auto!important;padding-top:4px!important;}
body.woocommerce ul.products li.product a img{margin-bottom:5px!important;}
@media(max-width:689px){
 body.woocommerce ul.products li.product{gap:3px!important;}
 body.woocommerce ul.products li.product a img{margin-bottom:3px!important;}
 body.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;line-height:1.3!important;}
}

/* 1.0.6 — consistent square image stages without cropping or distortion. */
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{ min-width:0; width:100%; }
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img{
 display:block!important; width:100%!important; height:auto!important;
 aspect-ratio:1 / 1!important; object-fit:contain!important;
 object-position:center center!important; box-sizing:border-box!important;
 padding:8px!important; background:#242437!important;
 border-radius:10px!important; margin:0 0 7px!important;
}
body.woocommerce ul.products li.product{ justify-content:flex-start; }
body.woocommerce ul.products li.product .price{ margin-top:auto!important; }
@media(max-width:689px){
 body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img{ padding:6px!important; margin-bottom:6px!important; }
}

/* 1.0.7: seamless image stage within the product card; preserve uncropped images. */
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img{
 background-color:#1b1b2b!important; border-radius:0!important;
 padding:4px!important; margin-bottom:0!important;
 object-fit:contain!important; object-position:center!important;
}
body.woocommerce ul.products li.product{background-color:#1b1b2b!important;}
body.woocommerce ul.products li.product .woocommerce-loop-product__title{margin-top:0!important;}
@media(max-width:689px){
 body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img{padding:3px!important;margin-bottom:0!important;}
}

/* 1.0.8: remove Blocksy's media-stage panel, not the image or its dimensions. */
body.woocommerce ul.products li.product :is(.ct-media-container,.ct-image-container,.woocommerce-LoopProduct-link){
 background:transparent!important; background-color:transparent!important; box-shadow:none!important;
}
body.woocommerce ul.products li.product :is(.ct-media-container,.ct-image-container)::before, body.woocommerce ul.products li.product :is(.ct-media-container,.ct-image-container)::after{background:transparent!important;box-shadow:none!important;}
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img{
 background:transparent!important; border:0!important;box-shadow:none!important;
 border-radius:0!important;object-fit:contain!important;
}

/* Single product. Keep the gallery carousel and purchase controls intact. */
body.single-product div.product.type-product > :is(.summary, .woocommerce-product-gallery, .ct-product-gallery) {
  min-width: 0;
}

body.single-product div.product.type-product .summary {
  min-width: 0;
  margin-bottom: 0 !important;
}

body.single-product div.product.type-product .summary .product_title {
  font-size: clamp(24px, 3vw, 36px) !important;
  font-weight: 750;
  line-height: 1.24;
  margin: 0 0 14px !important;
  overflow-wrap: anywhere;
}

body.single-product div.product.type-product .summary > .price {
  display: block;
  font-size: 26px !important;
  font-weight: 750;
  line-height: 1.25;
  margin: 0 !important;
  padding: 0;
}

body.single-product div.product.type-product .summary .nxp-single-purchase {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 18px 0 24px !important;
}

body.single-product div.product.type-product .summary :is(form.cart, div.cart).nxp-single-purchase {
  padding: 0;
}

body.single-product div.product.type-product .summary .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 51px !important;
  height: auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px !important;
  background-color: #7b2cf4 !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-shadow: none;
}

body.single-product div.product.type-product .summary .single_add_to_cart_button:focus-visible {
  outline: 2px solid #d9c4ff;
  outline-offset: 3px;
}

body.single-product div.product.type-product .summary .cart .single_add_to_cart_button {
  margin-inline: 0;
}

body.single-product .woocommerce-product-gallery {
  background: transparent;
  padding: 0;
}

body.single-product :is(.woocommerce-product-gallery, .ct-product-gallery) :is(.woocommerce-product-gallery__trigger, .ct-woo-gallery-trigger, .ct-product-gallery-trigger) {
  display: none !important;
}

body.single-product .woocommerce-product-gallery :is(.woocommerce-product-gallery__image, .ct-media-container, .ct-image-container) {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.single-product div.product.type-product .woocommerce-product-gallery :is(.woocommerce-product-gallery__image, .ct-media-container, .ct-image-container) img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center;
  margin: 0 auto;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  aspect-ratio: 1;
  object-fit: contain;
}

body.single-product div.product.type-product :is(.woocommerce-product-details__short-description, .woocommerce-Tabs-panel--description) {
  max-width: 100%;
  margin: 0;
  color: #dedee9;
  font-size: 16px;
  line-height: 1.55;
  text-align: start;
  overflow-wrap: anywhere;
}

body.single-product div.product.type-product :is(.woocommerce-product-details__short-description, .woocommerce-Tabs-panel--description) p {
  color: inherit !important;
  font-size: inherit;
  line-height: inherit;
  text-align: start !important;
  word-spacing: normal !important;
  margin: 0 0 16px;
}

body.single-product div.product.type-product :is(.woocommerce-product-details__short-description, .woocommerce-Tabs-panel--description) > :last-child {
  margin-bottom: 0;
}

body.single-product div.product.type-product p.nxp-region-note {
  padding: 8px 12px;
  border-inline-start: 2px solid #a36bff;
  border-radius: 0 6px 6px 0;
  background: #1b1b2b;
}

body.single-product div.product.type-product p.nxp-delivery-note {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

body.single-product .nxp-delivery-note::before {
  content: "";
  flex: 0 0 10px;
  height: 13px;
  background: #be97ff;
  clip-path: polygon(53% 0, 100% 0, 67% 39%, 100% 39%, 27% 100%, 41% 56%, 0 56%);
}

body.single-product div.product.type-product .related {
  margin-top: 24px !important;
}

body.single-product div.product.type-product .related > h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.25;
  margin: 0 0 14px;
}

body.single-product div.product.type-product .related ul.products {
  margin: 0;
  align-items: stretch;
}

body.single-product div.product.type-product .related ul.products li.product {
  min-width: 0;
  height: 100%;
}

body.single-product div.product.type-product .related ul.products li.product img {
  aspect-ratio: 1;
  object-fit: contain;
}

@media (max-width: 689px) {
  body.single-product div.product.type-product .summary {
    display: block;
  }

  body.single-product div.product.type-product .summary .product_title {
    font-size: clamp(22px, 5.6vw, 24px) !important;
  }

  body.single-product div.product.type-product .summary > .price {
    font-size: 25px !important;
  }

  body.single-product div.product.type-product .woocommerce-product-gallery {
    margin-bottom: 18px;
  }

  body.single-product div.product.type-product :is(.woocommerce-product-details__short-description, .woocommerce-Tabs-panel--description) {
    font-size: 15px;
  }

  body.single-product div.product.type-product .related ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.single-product div.product.type-product .related li.product .woocommerce-loop-product__title {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
}

body.single-product div.product.type-product .summary .nxp-single-purchase .cart {
  margin-block: 0;
}
