/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 /* Remove spinner overlays left by lazyload or loading classes */
.thumbnail::after,
.product-thumbnail::after,
.thumbnail.loading::after,
.product-thumbnail.loading::after,
.card-product .card-img-top::after {
  content: none !important;
  background: none !important;
  display: none !important;
  animation: none !important;
}
/* Force product image to display properly */
.product-img img,
.products-imagescover img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
}
a {
  color: red;
}

/* === Cart Quantity Input Styles === */
.js-cart-line-product-quantity,
.js-cart-line-product-quantity.form-control {
  width: 60px !important;
  max-width: 100% !important;
  height: 38px !important;
  padding: 4px 6px !important;
  font-size: 16px !important;
  text-align: center !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  display: inline-block !important;
  margin: 0 auto !important;
}

/* Spinner button visibility across browsers */
.js-cart-line-product-quantity::-webkit-inner-spin-button,
.js-cart-line-product-quantity::-webkit-outer-spin-button {
  opacity: 1;
  height: auto;
}

/* Prevent Safari zoom on iOS */
@media (max-width: 768px) {
  .js-cart-line-product-quantity {
    font-size: 16px;
  }
}

/* === Cart Product Line Layout === */
.product-line-actions {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-line-actions input[type="number"] {
  flex: none;
  margin: 0;
  box-shadow: none;
}

/* Center price and delete icon */
.product-line-actions .current-price,
.product-line-actions .cart-line-product-actions {
  text-align: center;
  margin: 0 auto;
}

/* Align product line items (right panel) */
.product-line-grid-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

/* === Cart Icon / Header Styles === */
.blockcart__count {
  font-weight: bold;
  margin-left: 4px;
  color: #003366; /* You can change to yellow or brand color */
}

.blockcart__label {
  margin-left: 4px;
  color: #000;
}

input.js-cart-line-product-quantity.form-control {
  all: unset !important;
  width: 60px !important;
  height: 38px !important;
  padding: 4px 6px !important;
  font-size: 16px !important;
  text-align: center !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  display: inline-block !important;
  background: #fff !important;
}

.product-line-actions .form-group,
.product-line-actions .form-control {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
}

.cart-line-custom .product-line-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Tweak each child */
.cart-line-custom .quantity-selector {
  flex: 0 0 auto;
}

.cart-line-custom .product-price {
  flex: 0 0 auto;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

.cart-line-custom .cart-line-product-actions {
  flex: 0 0 auto;
}

/* Optional: remove .input-group if unused */
.cart-line-custom .input-group {
  all: unset;
  display: inline-block;
}

input[type="number"],
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
  display: inline-block !important;
}


.product-quantity {
  background: #f4f4f4;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: bold;
}

.product-name {
  font-weight: 500;
}
/* Fix card layout inside displayHome hook */
#featured-products .product-miniature {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 1rem;
  box-sizing: border-box;
}

#featured-products .card {
  height: 100%;
}

#featured-products .product-title {
  font-size: 1rem;
  text-align: center;
}

#featured-products .product-flags {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
}

#featured-products .product-flags li {
  display: inline-block;
  background-color: #0d6efd;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-right: 5px;
}
