/* Pitlane product presentation. Load after the other Pitlane stylesheets.
   Original product text, stock variants, forms, IDs, and handlers are retained. */

body.pitlane .product {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 0 18px;
  padding: 24px;
  border: 1px solid #dce1dd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgb(27 37 32 / 3%);
  transition: border-color .18s ease, box-shadow .18s ease;
}
body.pitlane .product:hover {
  border-color: #bdc7c0;
  box-shadow: 0 8px 24px rgb(27 37 32 / 7%);
}
body.pitlane .product .product-left {
  flex: 0 0 186px;
  width: 186px;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: center;
}
body.pitlane .product .product-left > a {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 194px;
  padding: 7px;
  border: 1px solid #edf0ec;
  border-radius: 6px;
  background: linear-gradient(145deg, #fff, #f6f7f4);
}
body.pitlane .product .product-left > a img {
  display: block;
  width: 170px !important;
  height: 180px !important;
  max-width: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
  border: 0;
  background: transparent;
  mix-blend-mode: multiply;
}
body.pitlane .product .product-left > h4.stock-info {
  margin: 12px 0 2px;
  padding: 0;
  color: #758078;
  font: 600 10px/1.6 Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
body.pitlane .product .product-left > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.pitlane .product .product-left > ul li {
  margin: 0;
  padding: 2px 0;
  font: 600 11px/1.5 Arial, Helvetica, sans-serif;
}
body.pitlane .product .product-left li.stock-yes { color: #347458; }
body.pitlane .product .product-left li.stock-no { color: #a34932; }
body.pitlane .product .product-right {
  display: grid;
  flex: 1 1 0;
  grid-template-columns: minmax(108px, .78fr) minmax(0, 1.22fr);
  align-content: start;
  gap: 4px 18px;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}
body.pitlane .product .product-right h2.productname,
body.pitlane .product .product-right label.productname {
  grid-column: 1 / -1;
  margin: 0 0 10px;
  padding: 0 0 13px;
  border-bottom: 1px solid #e9ede8;
  color: #242a2d;
  font: 700 21px/1.35 Arial, Helvetica, sans-serif;
  letter-spacing: -.5px;
  overflow-wrap: anywhere;
}
body.pitlane .product .product-right h2.productname a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}
body.pitlane .product .product-right h2.productname a:hover { color: #d32317; }
body.pitlane .product .product-right > label:not(.productprice):not(.productname) {
  grid-column: 1;
  margin: 0;
  padding: 2px 0;
  color: #747e77;
  font: 400 12px/1.55 Arial, Helvetica, sans-serif;
}
body.pitlane .product .product-right > span.productcode {
  grid-column: 2;
  margin: 0;
  padding: 2px 0;
  color: #343e38;
  font: 600 12px/1.55 Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}
body.pitlane .product .product-right > p {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: #69736c;
  font-size: 12px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
body.pitlane .product .product-right label.productprice {
  position: static;
  grid-column: 1 / -1;
  justify-self: start;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin: 16px 0 0;
  padding: 11px 15px;
  border: 1px solid #f2d9d2;
  border-radius: 5px;
  background: #fff2ed;
  color: #c82417;
  font: 700 29px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: -.9px;
  text-align: left;
  overflow-wrap: anywhere;
}
body.pitlane .product .product-right .productprice strike {
  color: #8b948e;
  font-size: .62em;
  font-weight: 400;
  letter-spacing: 0;
}
body.pitlane .product .product-right span.button-details {
  position: static;
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  min-height: 44px;
  max-width: 100%;
  margin: 12px 0 0;
  padding: 12px 21px;
  border: 1px solid #272f2b;
  border-radius: 4px;
  background: #272f2b;
  color: #fff;
  font: 700 12px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .15px;
  text-align: center;
  text-indent: 0;
}
body.pitlane .product .product-right span.button-details:hover,
body.pitlane .product .product-right span.button-details:focus-visible {
  border-color: #d32317;
  background: #d32317;
  color: #fff;
}

/* The detail page keeps its original gallery, stock text and specification pairs. */
body.pitlane.detail-page .product:has(> .product-left) {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 36px;
  padding: 30px;
}
body.pitlane.detail-page .product .product-left {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
}
body.pitlane.detail-page .product .product-left > a {
  min-height: 390px;
  padding: 18px;
  border-color: #e6eae4;
}
body.pitlane.detail-page .product .product-left > a img {
  width: 370px !important;
  height: 370px !important;
  max-width: 100%;
  object-fit: contain;
}
body.pitlane.detail-page .product .product-right {
  grid-template-columns: minmax(125px, .8fr) minmax(0, 1.2fr);
  padding: 0;
  gap: 8px 18px;
}
body.pitlane.detail-page .product .product-right h2.productname {
  margin-bottom: 12px;
  padding-bottom: 20px;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -1px;
}
body.pitlane.detail-page .product .product-right > label:not(.productprice):not(.productname),
body.pitlane.detail-page .product .product-right > span.productcode { font-size: 13px; }
body.pitlane.detail-page .product .product-right > p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e9ede8;
  font-size: 14px;
  line-height: 1.8;
}

/* Preserve regular, promotional, reseller and used-product rows without hiding any. */
body.pitlane.detail-page .product:has(> .product-prices) {
  display: block;
  min-height: 0 !important;
  padding: 24px;
  border-top: 3px solid #ed2315;
}
body.pitlane.detail-page .product .product-prices h5 {
  width: auto;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333c36;
  font: 700 16px/1.5 Arial, Helvetica, sans-serif;
}
body.pitlane.detail-page .product .product-prices ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  list-style: none;
}
body.pitlane.detail-page .product .product-prices ul li:is(.normal, .green, .orange) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 17px 20px;
  border: 1px solid #e1e6df;
  border-radius: 5px;
  background: #f6f8f3;
  color: #3c483f;
  font: 600 14px/1.5 Arial, Helvetica, sans-serif;
}
body.pitlane.detail-page .product .product-prices ul li:is(.normal, .green, .orange) > :is(span, label) {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
  overflow-wrap: anywhere;
}
body.pitlane.detail-page .product .product-prices ul li > span {
  font: 600 12px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: .2px;
}
body.pitlane.detail-page .product .product-prices ul li > label {
  font: 700 21px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: -.4px;
}
body.pitlane.detail-page .product .product-prices ul li#price1 {
  border-color: #f0d8d1;
  background: #fff4ef;
  color: #b72518;
}
body.pitlane.detail-page .product .product-prices ul li#price1 > label,
body.pitlane.detail-page .product .product-prices ul li#price2 > label {
  font-size: clamp(27px, 2.7vw, 36px);
  line-height: 1.2;
  letter-spacing: -1px;
}
body.pitlane.detail-page .product .product-prices ul li:is(.green, .orange):has(> label) {
  border-color: #272f2b;
  background: #272f2b;
  color: #fff;
}
body.pitlane.detail-page .product .product-prices ul li:is(.green, .orange):has(> label) > span {
  color: #ffb0a4;
}
body.pitlane.detail-page .product .product-prices ul li.green:not(:has(> label)) {
  background: #eaf3ec;
  color: #347458;
}

/* Existing quantity controls and cart validation stay in the original form. */
body.pitlane.detail-page .product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
  width: 100%;
  padding: 23px 25px;
  border: 1px solid #dce1dd;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 14px rgb(27 37 32 / 3%);
}
body.pitlane.detail-page .product-bottom #frm_product { flex: 1 1 270px; min-width: 0; }
body.pitlane.detail-page .product-bottom div.row { margin-bottom: 0; }
body.pitlane.detail-page .product-bottom :is(select.details, input.cart, input.cart_me) {
  border-radius: 4px;
}
body.pitlane.detail-page .product-bottom span.button-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  float: none;
  width: auto;
  max-width: 100%;
  min-height: 50px;
  height: auto;
  margin: 0;
  padding: 13px 32px;
  border: 1px solid #ed2315;
  border-radius: 4px;
  background: #ed2315;
  color: #fff;
  font: 700 15px/1.5 Arial, Helvetica, sans-serif;
  text-indent: 0;
  box-shadow: 0 5px 14px rgb(237 35 21 / 13%);
}
body.pitlane.detail-page .product-bottom span.button-buy:hover { background: #c71b10; border-color: #c71b10; }

/* Live pagination uses the original page routes; this layer adds no fake controls.
   The presentation renderer should place numeric links in ascending DOM order. */
body.pitlane .module-content .pages {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  float: none;
  clear: both;
  width: 100%;
  max-width: 100%;
  min-height: 72px;
  height: auto;
  margin: 26px 0 12px;
  padding: 18px 20px;
  border: 1px solid #dce1dd;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 14px rgb(27 37 32 / 3%);
  font: 600 12px/1.5 Arial, Helvetica, sans-serif;
}
body.pitlane .module-content .pages :is(.pagination-links, .pager-links) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}
body.pitlane .module-content .pages :is(a, button, .page-link, .page-ellipsis) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none;
  flex: 0 0 auto;
  width: auto;
  min-width: 42px;
  max-width: 100%;
  min-height: 42px;
  height: auto;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #e0e5df;
  border-radius: 5px;
  background: #f8f9f6;
  color: #47524a;
  font: 600 12px/1.5 Arial, Helvetica, sans-serif;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.pitlane .module-content .pages a.normal:hover,
body.pitlane .module-content .pages a:not(.fake):not(.fake_info):hover {
  border-color: #ed2315;
  background: #fff2ed;
  color: #be281a;
}
body.pitlane .module-content .pages a.fake,
body.pitlane .module-content .pages [aria-current="page"] {
  border-color: #ed2315;
  background: #ed2315;
  color: #fff;
  box-shadow: 0 3px 10px rgb(237 35 21 / 13%);
  cursor: default;
}
body.pitlane .module-content .pages .fake_info,
body.pitlane .module-content .pages .fake_info:hover,
body.pitlane .module-content .pages :is(.pager-summary, .pagination-summary) {
  display: block;
  flex: 1 1 180px;
  order: -1;
  min-width: 0;
  min-height: 0;
  width: auto;
  margin: 0;
  padding: 0 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #737e75;
  font: 400 12px/1.6 Arial, Helvetica, sans-serif;
  text-align: left;
  box-shadow: none;
  cursor: default;
}
body.pitlane .module-content .pages .page-ellipsis {
  min-width: 22px;
  padding-right: 3px;
  padding-left: 3px;
  border-color: transparent;
  background: transparent;
  color: #8f9991;
}
body.pitlane .module-content .pages [aria-disabled="true"] {
  border-color: #ebeee8;
  background: #f6f7f4;
  color: #a8b0a9;
  box-shadow: none;
  cursor: default;
}

@media (min-width: 880px) {
  body.pitlane:not(.detail-page) .product .product-right label.productprice {
    grid-column: 1;
    padding: 10px 12px;
  }
  body.pitlane:not(.detail-page) .product .product-right span.button-details {
    grid-column: 2;
    align-self: center;
    justify-self: end;
    margin-top: 16px;
  }
}
@media (max-width: 1000px) {
  body.pitlane .product { gap: 18px; padding: 19px; }
  body.pitlane.detail-page .product:has(> .product-left) { grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr); gap: 24px; padding: 24px; }
  body.pitlane.detail-page .product .product-left > a { min-height: 340px; padding: 12px; }
  body.pitlane.detail-page .product .product-left > a img { width: 340px !important; height: 340px !important; }
}
@media (max-width: 760px) {
  body.pitlane .product { gap: 15px; padding: 16px; margin-bottom: 14px; border-radius: 6px; }
  body.pitlane .product .product-left { flex-basis: 110px; width: 110px; padding: 0; }
  body.pitlane .product .product-left > a { min-height: 138px; padding: 0; }
  body.pitlane .product .product-left > a img { width: 110px !important; height: 132px !important; }
  body.pitlane .product .product-right { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3px 8px; padding: 0; }
  body.pitlane .product .product-right h2.productname { margin-bottom: 5px; padding-bottom: 10px; font-size: 17px; letter-spacing: -.35px; }
  body.pitlane .product .product-right > label:not(.productprice):not(.productname),
  body.pitlane .product .product-right > span.productcode { font-size: 11px; line-height: 1.5; }
  body.pitlane .product .product-right > span.productcode { grid-column: 2; margin-bottom: 0; }
  body.pitlane .product .product-right label.productprice { margin-top: 12px; padding: 9px 11px; font-size: 24px; letter-spacing: -.7px; }
  body.pitlane .product .product-right span.button-details { margin-top: 10px; min-height: 42px; padding: 10px 18px; font-size: 12px; }
  body.pitlane.detail-page .product:has(> .product-left) { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 20px; }
  body.pitlane.detail-page .product .product-left { flex-basis: auto; width: 100%; max-width: 380px; margin: 0 auto; }
  body.pitlane.detail-page .product .product-left > a { min-height: 320px; padding: 12px; }
  body.pitlane.detail-page .product .product-left > a img { width: 340px !important; height: 320px !important; }
  body.pitlane.detail-page .product .product-right { grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); gap: 7px 14px; }
  body.pitlane.detail-page .product .product-right h2.productname { font-size: 27px; line-height: 1.25; padding-bottom: 16px; }
  body.pitlane.detail-page .product .product-right > label:not(.productprice):not(.productname),
  body.pitlane.detail-page .product .product-right > span.productcode { font-size: 12px; }
  body.pitlane.detail-page .product:has(> .product-prices) { padding: 20px; }
  body.pitlane.detail-page .product .product-prices ul { grid-template-columns: minmax(0, 1fr); }
  body.pitlane.detail-page .product .product-prices ul li:is(.normal, .green, .orange) { padding: 15px 17px; }
  body.pitlane.detail-page .product-bottom { padding: 20px; gap: 18px; }
  body.pitlane.detail-page .product-bottom span.button-buy { width: 100%; }
  body.pitlane .module-content .pages { gap: 7px; padding: 16px; margin-top: 20px; }
  body.pitlane .module-content .pages .fake_info,
  body.pitlane .module-content .pages :is(.pager-summary, .pagination-summary) { flex-basis: 100%; padding: 0 0 6px; }
  body.pitlane .module-content .pages :is(.pagination-links, .pager-links) { justify-content: flex-start; }
  body.pitlane .module-content .pages :is(a, button, .page-link) { min-width: 40px; min-height: 42px; padding: 10px 12px; }
}
@media (max-width: 380px) {
  body.pitlane .product { gap: 12px; padding: 12px; }
  body.pitlane .product .product-right h2.productname { font-size: 16px; }
  body.pitlane .product .product-right label.productprice { font-size: 22px; padding: 8px; }
  body.pitlane.detail-page .product:has(> .product-left) { padding: 16px; }
  body.pitlane.detail-page .product .product-right h2.productname { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  body.pitlane .product { transition: none; }
}

/* Align the list price and action in a shared row without moving original controls. */
@media(min-width:880px){
body.pitlane:not(.detail-page) .product .product-right>p{order:2}
body.pitlane:not(.detail-page) .product .product-right>label.productprice,
body.pitlane:not(.detail-page) .product .product-right>span.button-details{order:1}
}

/* The original price, quantity and cart control share the card's lower right panel. */
body.pitlane.detail-page .product.product-with-purchase{grid-template-rows:auto 1fr;row-gap:22px}
body.pitlane.detail-page .product.product-with-purchase>.product-left{grid-column:1;grid-row:1 / span 2;align-self:start}
body.pitlane.detail-page .product.product-with-purchase>.product-right{grid-column:2;grid-row:1}
body.pitlane.detail-page .product .product-purchase-panel{grid-column:2;grid-row:2;align-self:end;display:grid;gap:14px;width:100%;min-width:0;margin:0;padding:18px;border:1px solid #ead9d2;border-top:3px solid var(--red);border-radius:6px;background:#faf8f4}
body.pitlane.detail-page .product-purchase-panel .product-prices{display:block;float:none;width:100%;max-width:100%;margin:0;padding:0}
body.pitlane.detail-page .product-purchase-panel .product-prices h5{margin:0 0 10px;font-size:12px;line-height:1.5}
body.pitlane.detail-page .product-purchase-panel .product-prices ul{float:none;width:100%;margin:0;padding:0;gap:8px}
body.pitlane.detail-page .product-purchase-panel .product-prices ul li:is(.normal,.green,.orange){padding:10px 12px}
body.pitlane.detail-page .product-purchase-panel .product-bottom{display:flex;float:none;align-items:center;justify-content:space-between;gap:12px;width:100%;height:auto;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
body.pitlane.detail-page .product-purchase-panel .product-bottom #frm_product{flex:1 1 180px;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}
body.pitlane.detail-page .product-purchase-panel .product-bottom div.row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;float:none;width:auto;margin:0;padding:0}
body.pitlane.detail-page .product-purchase-panel .product-bottom span.button-buy{flex:0 0 auto;min-height:44px;margin:0;padding:11px 18px}
body.pitlane.detail-page #span_confirm_text{display:block;float:none;clear:both;width:100%;height:auto;margin:18px 0 8px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--red);border-radius:4px;font:12px/1.8 Arial;color:#5d6861;text-align:left}
body.pitlane.detail-page #span_confirm_text>b:first-child{display:block;margin-bottom:8px;font-size:13px;color:var(--ink)}
body.pitlane.detail-page .module-content .grid11>p.small{font-size:11px;line-height:1.7;color:var(--muted)}
@media(max-width:760px){
body.pitlane.detail-page .product.product-with-purchase{grid-template-rows:none;row-gap:20px}
body.pitlane.detail-page .product.product-with-purchase>:is(.product-left,.product-right,.product-purchase-panel){grid-column:1;grid-row:auto}
body.pitlane.detail-page .product .product-purchase-panel{padding:14px}
body.pitlane.detail-page .product-purchase-panel .product-bottom span.button-buy{width:100%}
body.pitlane.detail-page #span_confirm_text{padding:14px 16px}
}

/* List actions share the card's right/bottom padding; keep their own row clear. */
body.pitlane:not(.detail-page) .product:has(> .product-right > span.button-details) > .product-right {
  position: relative;
  align-self: stretch;
  padding-bottom: 60px;
}
body.pitlane:not(.detail-page) .product > .product-right > span.button-details {
  position: absolute;
  inset: auto 0 0 auto;
  grid-column: auto;
  grid-row: auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
}
