/* Mint Value — product cards. Replaces the previous product-cards stylesheet.
   Uses original Shoptet structure. EN/CZ/SK-neutral selectors. */
#content .products .product {min-width:0!important;}
#content .products .product > .p {display:flex!important;flex-direction:column!important;height:100%!important;min-width:0!important;}
#content .products .product .p-in {display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;}
#content .products .product .p-in-in {display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;width:100%!important;}
#content .products .product .p-in-in > a.name {display:block!important;flex:0 0 auto!important;min-height:3.9em!important;height:auto!important;margin:0 0 7px!important;padding:0!important;line-height:1.3!important;}
#content .products .product .p-in-in > .ratings-wrapper {display:flex!important;align-items:flex-end!important;flex:0 0 auto!important;min-height:0!important;width:100%!important;margin:auto 0 0!important;padding:0!important;}
#content .products .product .ratings-wrapper:empty {display:none!important;}
#content .products .product .ratings-wrapper .availability {margin:0!important;}
#content .products .product .p-bottom {flex:0 0 auto!important;width:100%!important;margin:5px 0 0!important;padding:0!important;}
#content .products .product .p-bottom > [data-micro="offer"] {display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important;column-gap:6px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;}
#content .products .product .p-bottom .prices {display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:0!important;min-width:0!important;width:100%!important;margin:0!important;padding:0!important;}
#content .products .product .p-bottom .price-final {margin:0!important;padding:0!important;}
#content .products .product .p-bottom .p-tools {display:flex!important;align-items:flex-end!important;justify-content:flex-end!important;float:none!important;min-width:0!important;margin:0!important;padding:0!important;}
#content .products .product .p-bottom .p-tools .btn {margin:0!important;white-space:nowrap!important;}
#content .products .product .p-bottom > [data-micro="offer"] > .availability {margin:0!important;min-width:0!important;line-height:1!important;justify-self:center!important;}
#content .products .product .p-bottom > [data-micro="offer"] > .availability > span {display:inline-block!important;white-space:nowrap!important;font-family:Montserrat,Arial,sans-serif!important;font-size:10px!important;line-height:1.15!important;font-weight:600!important;padding:4px 6px!important;}
/* Shoptet sometimes outputs an empty placeholder before the actual price. */
#content .products .product .prices > .price-standard-wrapper-placeholder {display:none!important;}
@media(max-width:767px) {
  #content .products .product .p-in-in {position:relative!important;}
  #content .products .product .p-in-in > a.name {font-family:'EB Garamond',Georgia,serif!important;font-size:16px!important;line-height:1.22!important;min-height:2.44em!important;max-height:2.44em!important;overflow:hidden!important;margin:0 0 6px!important;padding:0!important;}
  #content .products .product .p-in-in > a.name > span[data-micro="name"] {display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;overflow:hidden!important;}
  #content .products .product .p-in-in.mv-name-has-more > a.name {padding-right:15px!important;}
  #content .products .product .p-in-in > .ratings-wrapper {margin:0!important;}
  #content .products .product .p-in-in > .ratings-wrapper:empty {display:none!important;}
  #content .products .product .p-bottom {margin-top:5px!important;}
  #content .products .product .p-bottom .price-final strong {font-size:clamp(11px,3vw,16px)!important;line-height:1.15!important;white-space:nowrap!important;}
  #content .products .product .p-bottom .p-tools .btn {display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:30px!important;padding:7px 9px!important;font-size:10px!important;line-height:1!important;}
  #content .products .product .p-bottom > [data-micro="offer"] > .availability > span {font-size:9px!important;padding:4px 5px!important;}
  /* Only the disclosure button opens the full title; product link keeps its original navigation. */
  #content .products .product .mv-name-expand {position:absolute!important;right:0!important;top:21px!important;z-index:2!important;border:0!important;background:transparent!important;color:#1b2e47!important;padding:0 1px!important;width:16px!important;height:16px!important;font:600 14px/16px Montserrat,Arial,sans-serif!important;cursor:pointer!important;}
  #content .products .product .mv-name-expand[hidden] {display:none!important;}
  #content .products .product .mv-name-full {position:absolute!important;z-index:20!important;top:calc(100% - 5px)!important;left:0!important;right:0!important;background:#f8f5f2!important;color:#1b2e47!important;border:1px solid #e6d8ce!important;box-shadow:0 4px 10px rgba(0,0,0,.12)!important;padding:9px!important;font:400 15px/1.3 'EB Garamond',Georgia,serif!important;overflow-wrap:anywhere!important;}
  #content .products .product .mv-name-full[hidden] {display:none!important;}
}
@media(max-width:360px) {
  #content .products .product .p-bottom > [data-micro="offer"] {column-gap:3px!important;}
  #content .products .product .p-bottom .price-final strong {font-size:10px!important;}
  #content .products .product .p-bottom > [data-micro="offer"] > .availability > span {font-size:8px!important;padding:3px 2px!important;}
  #content .products .product .p-bottom .p-tools .btn {padding:7px 4px!important;font-size:8px!important;}
}
@media(min-width:768px) {
  /* Desktop title font and title-line rules are intentionally unchanged. */
  #content .products .product .mv-name-expand,#content .products .product .mv-name-full {display:none!important;}
}

/* Unified stock/Detail pills — price left, both actions grouped on the right. */
#content .products .product .p-bottom > [data-micro="offer"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content max-content !important;
  align-items: center !important;
  justify-content: stretch !important;
  column-gap: 5px !important;
}
#content .products .product .p-bottom > [data-micro="offer"] > .availability {
  display: flex !important;
  align-items: center !important;
  justify-self: end !important;
  margin: 0 !important;
}
#content .products .product .p-bottom .p-tools {
  align-items: center !important;
  justify-self: end !important;
}
#content .products .product .p-bottom > [data-micro="offer"] > .availability > span,
#content .products .product .p-bottom .p-tools .btn {
  box-sizing: border-box !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 7px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
#content .products .product .p-bottom > [data-micro="offer"] > .availability > span {
  background: #a2cdab !important;
  color: #1b2e47 !important;
}
#content .products .product .p-bottom .p-tools .btn {
  background: #1b2e47 !important;
  color: #fff !important;
}
@media (max-width: 380px) {
  #content .products .product .p-bottom > [data-micro="offer"] {column-gap: 3px !important;}
  #content .products .product .p-bottom > [data-micro="offer"] > .availability > span,
  #content .products .product .p-bottom .p-tools .btn {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 4px !important;
    font-size: 8px !important;
  }
}

/* Compact actions, more prominent price — November refinement. */
@media (max-width: 767px) {
  #content .products .product .p-bottom .price-final strong {
    font-size: clamp(16px, 4.2vw, 20px) !important;
    line-height: 1.15 !important;
  }
  #content .products .product .p-bottom > [data-micro="offer"] {
    column-gap: 4px !important;
  }
  #content .products .product .p-bottom > [data-micro="offer"] > .availability > span,
  #content .products .product .p-bottom .p-tools .btn {
    height: 26px !important;
    min-height: 26px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
  }
}
@media (max-width: 380px) {
  #content .products .product .p-bottom .price-final strong {font-size: 15px !important;}
  #content .products .product .p-bottom > [data-micro="offer"] {column-gap: 3px !important;}
  #content .products .product .p-bottom > [data-micro="offer"] > .availability > span,
  #content .products .product .p-bottom .p-tools .btn {
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 3px !important;
    font-size: 8px !important;
  }
}

/* Price + stock only (Detail disabled in Shoptet template). */
#content .products .product .p-bottom > [data-micro="offer"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  align-items: center !important;
  column-gap: 6px !important;
}
#content .products .product .p-bottom > [data-micro="offer"] > .availability {
  grid-column: 2 !important;
  justify-self: end !important;
}
/* Do not let a hidden Detail wrapper reserve a third grid column. */
#content .products .product .p-bottom > [data-micro="offer"] > .p-tools:empty,
#content .products .product .p-bottom > [data-micro="offer"] > .p-tools:not(:has(a:not([aria-hidden="true"]))) {
  display: none !important;
}
#content .products .product .p-bottom .prices {
  grid-column: 1 !important;
  width: min(100%, max-content) !important;
  max-width: 100% !important;
}
#content .products .product .p-bottom .price-final {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  background: transparent !important;
  border: 1px solid #1b2e47 !important;
  padding: 4px 7px !important;
  min-height: 30px !important;
  max-width: 100% !important;
}
@media (max-width: 767px) {
  #content .products .product .p-in-in > a.name {
    font-size: 14px !important;
    line-height: 1.2 !important;
    min-height: 2.4em !important;
    max-height: 2.4em !important;
  }
  #content .products .product .p-bottom .price-final strong {
    font-size: clamp(17px, 4.7vw, 21px) !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }
  #content .products .product .p-bottom > [data-micro="offer"] > .availability > span {
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 6px !important;
    font-size: 9px !important;
  }
  #content .products .product .mv-name-expand { top: 17px !important; }
}
@media (max-width: 360px) {
  #content .products .product .p-bottom > [data-micro="offer"] { column-gap: 4px !important; }
  #content .products .product .p-bottom .price-final { padding: 3px 5px !important; min-height: 28px !important; }
  #content .products .product .p-bottom .price-final strong { font-size: 16px !important; }
  #content .products .product .p-bottom > [data-micro="offer"] > .availability > span {
    height: 28px !important; min-height: 28px !important; padding: 0 4px !important; font-size: 8px !important;
  }
}

/* Hide redundant Detail container in this two-element layout. */
#content .products .product .p-bottom > [data-micro="offer"] > .p-tools { display: none !important; }

/* Mobile card title: override global typography without clipping the second line. */
@media (max-width: 767px) {
  body #content .products .product .p-in-in > a.name {
    display: block !important;
    box-sizing: border-box !important;
    font-family: 'EB Garamond', Georgia, serif !important;
    font-size: 13px !important;
    line-height: 1.22 !important;
    height: calc(2 * 13px * 1.22) !important;
    min-height: calc(2 * 13px * 1.22) !important;
    max-height: calc(2 * 13px * 1.22) !important;
    overflow: hidden !important;
    margin-bottom: 6px !important;
  }
  body #content .products .product .p-in-in > a.name > span[data-micro="name"] {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    font-family: 'EB Garamond', Georgia, serif !important;
    font-size: 13px !important;
    line-height: 1.22 !important;
    font-weight: 500 !important;
    max-height: calc(2 * 13px * 1.22) !important;
    overflow: hidden !important;
  }
  body #content .products .product .mv-name-expand {
    top: 13px !important;
  }
}

/* Unified bordered price and availability — same dimensions on every viewport.
   Width adapts to the price/status text; height and border never change. */
body #content .products .product .p-bottom .price-final,
body #content .products .product .p-bottom > [data-micro="offer"] > .availability > span {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  border: 1px solid #1b2e47 !important;
  border-radius: 0 !important;
  padding: 0 6px !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
body #content .products .product .p-bottom .price-final {
  background: transparent !important;
  color: #1b2e47 !important;
}
body #content .products .product .p-bottom > [data-micro="offer"] > .availability > span {
  background: #a2cdab !important;
  color: #1b2e47 !important;
  font: 600 9px/1 Montserrat, Arial, sans-serif !important;
}
/* Responsive prices may change font-size, but not the badge geometry. */
