/* Native Odoo shop, product page, cart and account inside the staging shell.
   Loaded after design-system.css. Layout and surfaces only; Odoo handlers,
   forms, variants and the cart flow stay untouched. Existing motion is kept;
   the card hover below is an addition and respects reduced motion. */
body.sl-native-shell{
  --nc-shell-w:calc(100% - 112px);
  --nc-shell-max:1320px;
  --nc-surface:#fff;
  --nc-media:#f3f7fa;
}

/* One column for header, content and footer. silitech_website widens
   .container to 1600px, which pushed native content to the screen edge. */
body.sl-native-shell #wrapwrap main .container,
body.sl-native-shell #wrapwrap main #product_detail,
body.sl-native-shell #wrapwrap main #product_full_description{
  width:var(--nc-shell-w);
  max-width:var(--nc-shell-max);
  margin-inline:auto;
  padding-inline:0;
}
body.sl-native-shell #wrapwrap main :is(.container,#product_detail,#product_full_description) :is(.container,#product_full_description){
  width:auto;
  max-width:none;
}

/* ---------- Shop list ---------- */
body.sl-native-shell #wrapwrap .o_wsale_products_page .s_title .lead{
  max-width:62ch;
  font-size:1.125rem;
  line-height:1.6;
}
body.sl-native-shell #wrapwrap #products_grid_before .products_categories :is(a,.form-check-label){
  font-size:.875rem;
  color:var(--ds-ink);
}
body.sl-native-shell #wrapwrap .o_wsale_filmstrip_item{
  border:1px solid var(--ds-line)!important;
  border-radius:0!important;
  background:var(--nc-surface)!important;
  color:var(--ds-ink);
  font-weight:500;
}
body.sl-native-shell #wrapwrap .o_wsale_filmstrip_link:is(:hover,:focus-visible) .o_wsale_filmstrip_item,
body.sl-native-shell #wrapwrap .btn-check:checked + .o_wsale_filmstrip_item{
  border-color:var(--ds-ink)!important;
}
body.sl-native-shell #wrapwrap .products_header :is(.form-control,.btn,.dropdown-toggle,.input-group-text){
  min-height:var(--ds-control-h-sm);
  border-radius:0!important;
}
body.sl-native-shell #wrapwrap .products_header .o_wsale_products_searchbar_form .form-control{
  background:var(--nc-surface);
  border:1px solid var(--ds-line);
}

/* Product cards: photo on a quiet ground, name first, then the request action. */
body.sl-native-shell #wrapwrap #o_wsale_products_grid .oe_product_cart{
  flex-direction:column;
  background:var(--nc-surface);
  border:1px solid var(--ds-line)!important;
  border-radius:0!important;
  overflow:hidden;
}
body.sl-native-shell #wrapwrap #o_wsale_products_grid .oe_product_cart:is(:hover,:focus-within){
  border-color:var(--ds-ink)!important;
}
body.sl-native-shell #wrapwrap #o_wsale_products_grid .oe_product_image{
  aspect-ratio:4/3;
  background:var(--nc-media);
}
body.sl-native-shell #wrapwrap #o_wsale_products_grid .oe_product_image_img{
  object-fit:contain;
  padding:1rem;
  mix-blend-mode:multiply;
}
body.sl-native-shell #wrapwrap #o_wsale_products_grid .oe_product_cart .o_wsale_product_information{
  gap:.75rem;
  padding:1rem 1rem 1.25rem;
}
/* The visible request button (o_silitech_pricereq) follows the name; Odoo's
   cart action keeps its own overlay on the photo. */
body.sl-native-shell #wrapwrap #o_wsale_products_grid .o_silitech_pricereq{order:5;margin-top:auto}
body.sl-native-shell #wrapwrap #o_wsale_products_grid .o_wsale_products_item_title{
  font-size:1rem!important;
  line-height:1.3!important;
  font-weight:620;
  font-variation-settings:var(--ds-title-axes);
  letter-spacing:0;
}
body.sl-native-shell #wrapwrap #o_wsale_products_grid .oe_subdescription{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  font-size:.8125rem;
  line-height:1.45;
}
body.sl-native-shell #wrapwrap #o_wsale_products_grid .o_silitech_pricereq .btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:2.75rem;
  border:1px solid var(--ds-ink);
  border-radius:0!important;
  background:transparent;
  color:var(--ds-ink);
  font-weight:540;
}
body.sl-native-shell #wrapwrap #o_wsale_products_grid .o_silitech_pricereq .btn:is(:hover,:focus-visible){
  background:var(--ds-ink);
  color:#fff;
}
body.sl-native-shell #wrapwrap #o_wsale_pager .page-link{
  min-width:2.5rem;
  min-height:2.5rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
@media (prefers-reduced-motion:no-preference){
  body.sl-native-shell #wrapwrap #o_wsale_products_grid .oe_product_cart{transition:border-color .2s ease}
  body.sl-native-shell #wrapwrap #o_wsale_products_grid .oe_product_image_img{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
  body.sl-native-shell #wrapwrap #o_wsale_products_grid .oe_product_cart:is(:hover,:focus-within) .oe_product_image_img{transform:scale(1.04)}
}

/* ---------- Product page ---------- */
body.sl-native-shell #wrapwrap .o_wsale_product_page #product_detail_main{margin-inline:0}
body.sl-native-shell #wrapwrap .o_wsale_product_page :is(.product_detail_img,.o_wsale_product_details_content_section,.carousel-indicators img,.o_wsale_product_images .carousel-outer){border-radius:0!important}
body.sl-native-shell #wrapwrap .o_wsale_product_page .o_wsale_product_details_content_section_cta{border:1px solid var(--ds-line)}
/* Long-form description at a readable measure. */
body.sl-native-shell #wrapwrap #product_full_description .s_text_block .container > *{max-width:72ch}

@media (max-width:760px){
  body.sl-native-shell{--nc-shell-w:calc(100% - 40px)}
}
