/* Tax label shared by homepage and listing product miniatures. */
.product-miniature__price .uc-miniature-tax-label {
  display:inline-block;
  margin-inline-start:4px;
  color:#7a8995;
  font-family:Arial, Helvetica, sans-serif;
  font-size:9px;
  font-weight:400;
  line-height:1;
  vertical-align:baseline;
  white-space:nowrap;
}
.product-miniature__price .uc-price-value--ht { display:none; }
html[data-price-mode="ht"] .product-miniature__price .uc-price-value--ttc { display:none; }
html[data-price-mode="ht"] .product-miniature__price .uc-price-value--ht { display:inline; }
html[data-price-mode="ht"] .product-miniature__price .uc-miniature-tax-label { content:"HT"; }

/* Remove Bootstrap's blue primary-button border throughout the storefront. */
.btn-primary {
  --bs-btn-border-color: transparent;
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-border-color: transparent;
  --bs-btn-focus-shadow-rgb: 28, 53, 73;
  --bs-btn-active-shadow: none;
}

.btn.btn-primary,
.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active,
.btn.btn-primary:disabled,
.btn.btn-primary.disabled {
  border-color: transparent !important;
}

.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary.active {
  box-shadow: none;
}

.btn.btn-primary:focus-visible {
  outline: 2px solid var(--uc-navy, #1c3549);
  outline-offset: 3px;
}
.btn.btn-primary {
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

@media (hover: hover) {
  .btn.btn-primary:not(:disabled):not(.disabled):hover {
    background-color: var(--uc-red, #d71920) !important;
    color: #fff;
    box-shadow: 0 5px 12px rgba(215, 25, 32, .25);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn.btn-primary { transition: none; }
  .btn.btn-primary:not(:disabled):not(.disabled):hover { transform: none; }
}

/* Quick view: small round "eye" button in the bottom-right corner of the miniature
   image, revealed on hover. The rest of the image keeps its link to the product page. */
.product-miniature__top {
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}

.product-miniature__quickview-button {
  top: auto;
  right: .75rem;
  bottom: .75rem;
  left: auto;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(28, 53, 73, .14);
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(28, 53, 73, .14);
  color: var(--uc-ink, #1c3549);
  opacity: 0;
  pointer-events: none;
  transform: none;
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
  transition-delay: 0s;
}

/* Square glyph box: the theme gives button icons a 1.2em box (and some home/module
   styles a 1.2em height) with the glyph left-aligned, which pushed the eye off-center. */
.product-miniature .product-miniature__quickview-button .material-icons.material-icons {
  display: block;
  width: 1em;
  height: 1em;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
}

.product-miniature__quickview-button:focus,
.product-miniature__quickview-button:focus-visible,
.product-miniature__inner:has(:focus-visible) .product-miniature__quickview-button {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (hover: hover) {
  .product-miniature__inner:hover .product-miniature__quickview-button {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.product-miniature__quickview-button:hover,
.product-miniature__quickview-button:focus-visible {
  border-color: var(--uc-ink, #1c3549);
  background-color: var(--uc-ink, #1c3549);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .product-miniature__quickview-button { transition: none; }
}

/* "View details" button shown on miniatures instead of add-to-cart (unavailable
   or customizable products). Same navy language as the round add button. */
.product-miniature__details.btn {
  --bs-btn-border-color: var(--uc-ink, #1c3549);
  --bs-btn-hover-border-color: var(--uc-ink, #1c3549);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 2px solid var(--uc-ink, #1c3549);
  border-radius: 0;
  background: transparent;
  color: var(--uc-ink, #1c3549);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.uc-home-products-grid .product-miniature__details.btn {
  border-radius: 19px;
}

/* Catalog grids use square corners, like their add button. */
.uc-home-catalog .uc-home-products-grid .product-miniature__details.btn {
  border-radius: 0;
}

.product-miniature__details.btn:hover,
.product-miniature__details.btn:focus-visible {
  border-color: var(--uc-ink, #1c3549) !important;
  background: var(--uc-ink, #1c3549) !important;
  color: #fff !important;
  box-shadow: none;
  transform: none;
}

.product-miniature__details.btn:focus-visible {
  outline: 2px solid var(--uc-red, #d71920);
  outline-offset: 2px;
}

/* Bigger add-to-cart button on every miniature (home, selections, catalog,
   same-category block). Several modules size it at 36-38px with the same
   specificity, so this selector is deliberately more specific. */
.product-miniature .product-miniature__actions .product-miniature__add.btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
}

.product-miniature .product-miniature__actions .product-miniature__add .material-icons {
  font-size: 24px;
}

.uc-home-products-grid .product-miniature__bottom {
  padding-right: 62px;
}

/* Square corners on every miniature: the parent theme rounds the image block
   (.product-miniature__top) even though the card itself is square. */
.product-miniature .product-miniature__top {
  border-radius: 0;
}
