/*
 * Custom style goes here.
 * A template should always ship with an empty custom.css
 */

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --pk-control-h: 42px;
  --pk-btn-radius: 3px;
  --pk-btn-ink: #222222;
  --pk-btn-ink-hover: #231000;
  --pk-btn-bg: transparent;
}

/* ============================================================
   2. Product page: quantity field + Add to cart button
   ============================================================ */
.product-add-to-cart {
  --product-control-height: var(--pk-control-h);
}

.product-add-to-cart .product-quantity {
  align-items: center !important;
}

.product-add-to-cart .product-quantity .qty,
.product-add-to-cart .product-quantity .add,
.product-add-to-cart #quantity_wanted,
.product-add-to-cart .input-group-btn-vertical,
.product-add-to-cart .add-to-cart {
  height: var(--product-control-height) !important;
  min-height: var(--product-control-height) !important;
  box-sizing: border-box !important;
}

.product-add-to-cart .product-quantity .qty {
  position: relative;
}

.product-add-to-cart #quantity_wanted {
  padding: 0 8px !important;
  padding-right: 26px !important;
  line-height: calc(var(--product-control-height) - 2px) !important;
  text-align: center;
}

.product-add-to-cart .input-group-btn-vertical {
  position: absolute !important;
  top: 1px !important;
  right: 1px !important;
  width: 22px;
  height: calc(var(--product-control-height) - 2px) !important;
  display: flex !important;
  flex-direction: column;
  z-index: 2;
}

.product-add-to-cart .input-group-btn-vertical .btn-touchspin {
  width: 100%;
  height: 50% !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.product-add-to-cart .add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px !important;
  line-height: 1 !important;
  text-align: center;
}

/* ============================================================
   3. Notifications
   ============================================================ */
#notifications .alert-info {
  color: #30383d !important;
  background: #f5f7f8 !important;
  border: 1px solid #dce3e7 !important;
  border-left: 3px solid #6c8798 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  padding: 10px 14px !important;
  font-size: 13px;
  line-height: 1.5;
  font-family: "Inter", sans-serif !important;
}

/* ============================================================
   4. pkextproduct cards — square image frame
   ============================================================ */
article.product-miniature
.elementor-widget-pkminiatureimage
.elementor-widget-container > a.relative.oh.db {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  overflow: hidden !important;
}

article.product-miniature
.elementor-widget-pkminiatureimage
picture.cover-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

article.product-miniature
.elementor-widget-pkminiatureimage
picture.cover-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ============================================================
   5. Card grid — equal heights
   ============================================================ */
#products .products {
  align-items: stretch;
}

#products .products .product-miniature {
  box-sizing: border-box;
  border: 1px solid #888;
}

article.product-miniature,
#products .products .product-miniature {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#products .products .product-miniature .thumbnail-container {
  box-sizing: border-box;
  flex: 1 1 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   6. Price + add-to-cart row — stacked, so no overlap
   ============================================================ */
article.product-miniature .mini-cart-price-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  margin-top: auto;
}

article.product-miniature .mini-cart-price {
  display: block;
  margin: 0 !important;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  font-weight: 600;
}

article.product-miniature .product-add-to-cart-mini,
article.product-miniature .product-add-to-cart-mini .product-quantity,
article.product-miniature .product-add-to-cart-mini .add {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  height: var(--pk-control-h);
  min-height: var(--pk-control-h);
  max-height: var(--pk-control-h);
}

/* transparent, borderless, fixed height — beats the 50% disc rule */
body .product-miniature .mini-cart-price-row .btn.add-to-cart {
  width: 100% !important;
  min-width: 0 !important;
  height: var(--pk-control-h) !important;
  min-height: var(--pk-control-h) !important;
  max-height: var(--pk-control-h) !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  box-sizing: border-box;
  line-height: 1;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0 !important;
  border-radius: var(--pk-btn-radius) !important;
  background: var(--pk-btn-bg) none !important;
  background-color: transparent !important;
  background-image: none !important;
  color: var(--pk-btn-ink) !important;
  box-shadow: none !important;
  transform: none !important;
  text-decoration: none;
  cursor: pointer;
}

/* identical box in every state, colour-only feedback */
body .product-miniature .mini-cart-price-row .btn.add-to-cart:hover,
body .product-miniature .mini-cart-price-row .btn.add-to-cart:active,
body .product-miniature .mini-cart-price-row .btn.add-to-cart.added,
body .product-miniature .mini-cart-price-row .btn.add-to-cart.disabled {
  height: var(--pk-control-h) !important;
  border: 0 !important;
  border-radius: var(--pk-btn-radius) !important;
  background: var(--pk-btn-bg) none !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--pk-btn-ink-hover) !important;
}

body .product-miniature .mini-cart-price-row .btn.add-to-cart:hover {
  color: var(--pk-btn-ink-hover) !important;
  text-decoration: underline;
}

/* keyboard focus: ring only, never a painted box */
body .product-miniature .mini-cart-price-row .btn.add-to-cart:focus {
  outline: none !important;
}

body .product-miniature .mini-cart-price-row
.btn.add-to-cart:focus-visible {
  outline: 1px solid var(--pk-btn-ink-hover) !important;
  outline-offset: 3px;
}

/* no chip behind the icon */
body .product-miniature .mini-cart-price-row .btn.add-to-cart .svg-icon,
body .product-miniature .mini-cart-price-row .btn.add-to-cart .icon,
body .product-miniature .mini-cart-price-row .btn.add-to-cart > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body .product-miniature .mini-cart-price-row .btn.add-to-cart svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

/* ============================================================
   7. Optional — same treatment on the product page button.
   Uncomment if you want it borderless/transparent too.
   ============================================================ */
/*
.product-add-to-cart .btn.add-to-cart {
  border: 0 !important;
  background: transparent none !important;
  color: var(--pk-btn-ink) !important;
  box-shadow: none !important;
}
*/