.hepa-shop-buy{display:grid;gap:12px;max-width:550px;font:inherit}
.hepa-shop-buy-options select,.hepa-shop-buy-actions input,.hepa-shop-item-controls input{border:1px solid #ccc;border-radius:6px;padding:10px;background:#fff;color:#18222b}
.hepa-shop-buy-options select{width:100%;max-width:100%}
.hepa-shop-buy-actions{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.hepa-shop-buy-actions label{display:flex;flex-direction:column;gap:4px;font-size:14px}
.hepa-shop-buy-actions input{width:88px}
.hepa-shop-add{background:#f97821;border:0;border-radius:6px;padding:12px 18px;color:#fff;font-weight:600;cursor:pointer}
.hepa-shop-add:disabled{opacity:.5;cursor:wait}
.hepa-shop-status{margin:0;min-height:1.4em;font-size:14px}
.hepa-shop-cart-item{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #e8e8e8;flex-wrap:wrap}
.hepa-shop-item-description{display:flex;flex-direction:column;gap:4px}
.hepa-shop-item-description a{font-weight:600;color:inherit}
.hepa-shop-item-description small{color:#5d6770}
.hepa-shop-item-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.hepa-shop-item-controls input{width:65px}
.hepa-shop-remove{border:0;background:transparent;color:#a03d25;text-decoration:underline;cursor:pointer}
.hepa-shop-total{display:flex;justify-content:space-between;gap:16px;padding:18px 0}
.hepa-shop-cart-note{font-size:13px;color:#64707a}

/* Hepanergia – Cart summary */

.hepa-shop-summary {
  margin-top: 28px;
  padding: 24px;
  background: #f6f4f2;
  border-radius: 12px;
}

.hepa-shop-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  font-size: 16px;
}

.hepa-shop-summary-row > :last-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.hepa-shop-summary-grand-total {
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid #d8d5d0;
  font-size: 22px;
  font-weight: 700;
}

.hepa-shop-shipping-warning {
  margin-top: 16px;
  color: #b42318;
  font-size: 14px;
}

@media (max-width: 600px) {
  .hepa-shop-summary {
    padding: 18px;
  }

  .hepa-shop-summary-row {
    font-size: 14px;
  }

  .hepa-shop-summary-grand-total {
    font-size: 19px;
  }
}


/* Hepanergia – Checkout */

.hepa-checkout {
  width: 100%;
}

.hepa-checkout-form {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 40px;
  align-items: start;
}

.hepa-checkout-fields,
.hepa-checkout-summary {
  min-width: 0;
}

.hepa-checkout-fields h2 {
  font-size: 24px;
  margin: 0 0 22px;
}

.hepa-checkout-fields h2:not(:first-child) {
  margin-top: 38px;
}

.hepa-checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.hepa-checkout-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.hepa-checkout-full {
  grid-column: 1 / -1;
}

.hepa-checkout-grid input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8d5d0;
  border-radius: 6px;
  background: #fff;
  color: #17212b;
  font: inherit;
}

.hepa-checkout-grid input:focus {
  outline: 2px solid #f97821;
  outline-offset: 1px;
}

.hepa-checkout-grid input:disabled {
  background: #f6f4f2;
}

.hepa-checkout-summary {
  background: #f6f4f2;
  border-radius: 12px;
  padding: 28px;
}

.hepa-checkout-summary h2 {
  font-size: 22px;
  margin: 0 0 24px;
}

.hepa-checkout-product {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #dedbd7;
}

.hepa-checkout-product strong,
.hepa-checkout-product small {
  display: block;
}

.hepa-checkout-product small {
  margin-top: 5px;
  color: #69717a;
}

.hepa-checkout-product > span {
  white-space: nowrap;
}

.hepa-checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.hepa-checkout-total {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid #d8d5d0;
  font-size: 22px;
}

#hepa-checkout-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 6px;
  background: #f97821;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#hepa-checkout-submit:hover:not(:disabled) {
  background: #e66913;
}

#hepa-checkout-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
}

#hepa-checkout-status {
  margin-top: 14px;
  font-size: 14px;
}

.hepa-checkout-error {
  color: #b42318;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .hepa-checkout-form {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .hepa-checkout-grid {
    grid-template-columns: 1fr;
  }

  .hepa-checkout-summary {
    padding: 20px;
  }

  .hepa-checkout-total {
    font-size: 19px;
  }
}


.hepa-checkout-confirmation {
  max-width: 680px;
  margin: 60px auto;
  padding: 55px 40px;
  background: #f6f4f2;
  border-radius: 14px;
  text-align: center;
}

.hepa-checkout-confirmation h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  margin: 0 0 20px;
  color: #26302c;
}

.hepa-checkout-confirmation p {
  font-size: 17px;
  line-height: 1.7;
  color: #535b61;
}

.hepa-checkout-recheck {
  margin-top: 20px;
  padding: 14px 24px;
  background: #a77a43;
  color: #fff;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .hepa-checkout-confirmation {
    margin: 24px auto;
    padding: 35px 22px;
  }
}


/* Cart -> Checkout */

.hepa-shop-checkout-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  padding: 14px 24px;
  background: #f97821;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none !important;
  border-radius: 7px;
  transition: background .2s ease;
}

.hepa-shop-checkout-link:hover {
  background: #e66913;
  color: #fff !important;
}

.hepa-shop-checkout-link:focus-visible,
.hepa-header-cart:focus-visible {
  outline: 2px solid #f97821;
  outline-offset: 3px;
}

/* Confirmation after adding a product to the cart */

.hepa-shop-status:has(.hepa-shop-added-message) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
}

.hepa-shop-added-message {
  color: #267447;
  font-size: 14px;
  font-weight: 600;
}

.hepa-shop-view-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f97821 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}

.hepa-shop-view-cart:hover {
  color: #d65f0c !important;
}

.hepa-shop-view-cart:focus-visible {
  outline: 2px solid #f97821;
  outline-offset: 3px;
}

/* Hepanergia – Quantity + Add to cart */

.hepa-shop-buy {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.hepa-shop-buy .hepa-shop-qty {
  width: 90px;
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 14px;
  font-size: 18px;
  line-height: normal;
  border-radius: 8px;
}

.hepa-shop-buy .hepa-shop-add {
  height: 54px;
  min-height: 54px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}


/* Quantity and add-to-cart button alignment */

.hepa-shop-buy-actions {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.hepa-shop-buy-actions > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.hepa-shop-buy-actions .hepa-shop-qty,
.hepa-shop-buy-actions .hepa-shop-add {
  height: 56px;
  min-height: 56px;
  box-sizing: border-box;
  margin: 0;
}

.hepa-shop-buy-actions .hepa-shop-qty {
  width: 90px;
  padding: 0 14px;
  font-size: 18px;
  border-radius: 8px;
}

.hepa-shop-buy-actions .hepa-shop-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
}




