/* Product catalog page styles */

.prod-permalink {
  float: none;
  margin: 0 0.3rem 0 0.1rem;
  flex: 0 0 auto;
}

.product-status-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  width: 100% !important;
  text-align: left !important;
}

.ui.label.product-status-row {
  display: flex !important;
  align-items: center;
}

/* Featured cards use ribbon label; normalize to full-width status bar. */
.product-status-row.ui.ribbon.label {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.product-status-row.ui.ribbon.label::before,
.product-status-row.ui.ribbon.label::after {
  display: none !important;
}

.product-status-text {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.ui.container {
  width: 88%;
}

.ui.ribbon.label {
  left: calc(-1rem - 1.2rem + 0.6875rem);
}

.ui.card > .content,
.ui.cards > .card > .content {
  border-top: none !important;
  padding-top: 0;
}

.price {
  float: none;
  margin: 0 0.35rem 0 0.25rem;
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem;
  white-space: nowrap;
  margin-left: auto !important;
  text-align: right;
  flex: 0 0 auto;
}

.oldprice {
  font-size: 91.2%;
  color: #888;
  text-decoration: line-through;
  font-weight: 400;
}

.price .oldprice {
  margin: 0;
}

.price .current-price {
  color: #db2828;
  font-weight: 700;
  line-height: 1.05;
}


.menu-bugfix {
  width: calc(100% + 2px) !important;
  margin-left: -1px !important;
}

.js-qty-picker,
.js-var-picker {
  min-width: 10em !important;
}

.js-del-item {
  float: right;
  font-size: 66% !important;
}

@media only screen and (max-width: 1280px) and (min-width: 992px) {
  .ui.four.doubling.stackable.cards > .card {
    width: calc(33.3333% - 1.5em);
  }
}

.ui.cards > .card > .content {
  font-size: 0.95em;
}

.ui.selection.dropdown:not(.subnav-dropdown) {
  border: 0;
  border-top: 1px solid rgba(34, 36, 38, 0.05);
  border-radius: 0;
}

.ui.selection.dropdown:not(.subnav-dropdown):hover {
  border: 0;
  border-top: 1px solid rgba(34, 36, 38, 0.05);
  border-radius: 0;
  background: #f0fff4;
}

.ui.card .content img,
.ui.cards > .card .content img {
  width: auto;
}

.card-image-wrap {
  background: #fff;
}

.card-image-wrap > .js-prod-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Reserve a consistent title lane directly under the image. */
.card-title-wrap {
  min-height: 0;
}

.card-title-wrap .ui.header {
  margin: 0 !important;
}

/* Tighten vertical rhythm inside product cards to reduce total height. */
.js-top-per-prod .card-title-wrap {
  padding-top: 0.55em !important;
  padding-bottom: 0 !important;
}

.js-top-per-prod .ui.middle.attached.segment.content {
  padding: 0.75em 0.9em !important;
}

.js-top-per-prod .ui.middle.attached.segment.content > p {
  margin: 0 0 0.45em;
  line-height: 1.35;
}

.js-top-per-prod .ui.middle.attached.segment.content > p:last-child {
  margin-bottom: 0;
}

.js-top-per-prod .ui.attached.form.menu-bugfix {
  padding: 0.55em 0.9em 0.45em !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.js-top-per-prod .ui.attached.form.menu-bugfix .field {
  margin-bottom: 0.6em !important;
}

.js-top-per-prod .ui.attached.form.menu-bugfix .field:last-child {
  margin-bottom: 0 !important;
}

.js-top-per-prod .ui.attached.form.menu-bugfix .field > label {
  margin-bottom: 0.35em !important;
}

.ui.secondary.pointing.menu.tweaked-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0.8rem;
  border-bottom: none;
  column-gap: 0.9rem;
  row-gap: 0.6rem;
  background-color: #f9fafb;
  padding: 0.45rem 0.7rem;
  border: 1px solid #d4d4d5;
  border-radius: 0.5rem;
  overflow: hidden;
}

.ui.secondary.pointing.menu.tweaked-menu::after {
  content: none;
}

.ui.secondary.pointing.menu.tweaked-menu .item {
  padding: 0.15rem 0;
  line-height: 1.1;
  font-size: 0.98rem;
}

.ui.secondary.pointing.menu.tweaked-menu .item .category-count,
.ui.secondary.pointing.menu.tweaked-menu .item .start-here-label {
  margin-left: 0.35em;
  vertical-align: middle;
}

.ui.secondary.pointing.menu.tweaked-menu .item .category-count.ui.circular.label {
  background: transparent;
  color: #76797d;
  border: 1px solid #76797d;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem !important;
  padding: 0.06rem 0.44rem !important;
  min-width: 1.41rem !important;
  min-height: 1.13rem !important;
  line-height: 1 !important;
}

.ui.secondary.pointing.menu.tweaked-menu .item:hover {
  border-bottom: 2px solid #1b1c1d;
}

.subnav-dropdown {
  margin-top: 0.25rem;
  border: 1px solid rgba(34, 36, 38, 0.15) !important;
  border-radius: 0.28571429rem !important;
  background: #fff !important;
}

.subnav-dropdown.ui.selection.active.dropdown,
.subnav-dropdown.ui.selection.visible.dropdown {
  border-color: #85b7d9 !important;
}

.subnav-dropdown .menu {
  max-height: 55vh;
  overflow-y: auto;
}

.welcome-back {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 420px) {
  .welcome-back {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cart summary popup */
.cart-qty {
  font-weight: bold;
}

.cart-cost {
  font-size: 80%;
  color: #ccc;
  padding-right: 8px;
  float: right;
}

.js-cart-summary-popup {
  min-width: 300px !important;
}
