* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f3f3;
  color: #212529;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hb-shop {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
}

.hb-shop-header {
  text-align: center;
  margin-bottom: 28px;
}

.hb-shop-name {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 7px;
}

.hb-shop-subtitle {
  font-size: 16px;
  color: #666;
}

.hb-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.hb-product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  padding: 18px;
}

.hb-product-image {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}

.hb-product-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 9px;
}

.hb-product-name {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 8px;
}

.hb-product-description {
  font-size: 15px;
  line-height: 1.45;
  color: #555;
  white-space: pre-line;
  margin-bottom: 15px;
}

.hb-product-price {
  margin-top: auto;
  font-size: 20px;
  font-weight: 700;
}

.hb-product-vat {
  margin-top: 3px;
  font-size: 13px;
  color: #777;
}

.hb-product-order {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.hb-product-qty,
.hb-cart-qty {
  border: 1px solid #bbb;
  border-radius: 7px;
  background: #fff;
  padding: 10px;
}

.hb-product-qty {
  width: 100px;
}

.hb-product-add,
.hb-primary-button {
  border: 0;
  border-radius: 7px;
  background: #25945c;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.hb-product-add {
  flex: 1;
  padding: 10px 14px;
}

.hb-primary-button {
  display: inline-block;
  padding: 13px 22px;
}

.hb-product-add:hover,
.hb-primary-button:hover {
  opacity: 0.9;
}

.hb-secondary-button {
  border: 1px solid #ccc;
  border-radius: 7px;
  padding: 12px 18px;
  background: #fff;
  color: #222;
  text-decoration: none;
}

.hb-delete-button {
  border: 0;
  background: transparent;
  font-size: 19px;
  padding: 8px;
}

.hb-shop-empty {
  padding: 45px 20px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  color: #666;
}

.hb-cart {
  overflow: hidden;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
}

.hb-cart-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 100px 150px 45px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #e4e4e4;
}

.hb-cart-item:last-child {
  border-bottom: 0;
}

.hb-cart-name {
  font-weight: 700;
  font-size: 17px;
}

.hb-cart-unit {
  margin-top: 4px;
  font-size: 13px;
  color: #777;
}

.hb-cart-total {
  text-align: right;
  font-weight: 700;
}

.hb-cart-summary {
  width: 100%;
  max-width: 400px;
  margin: 24px 0 24px auto;
}

.hb-cart-summary div {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.hb-cart-grand {
  margin-top: 7px;
  padding-top: 11px !important;
  border-top: 1px solid #bbb;
  font-size: 20px;
}

.hb-cart-actions,
.hb-checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.hb-checkout {
  max-width: 760px;
  margin: 0 auto;
  padding: 25px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
}

.hb-field {
  flex: 1;
  margin-bottom: 15px;
}

.hb-field-row {
  display: flex;
  gap: 15px;
}

.hb-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
}

.hb-field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bbb;
  border-radius: 7px;
  background: #fff;
}

.hb-small {
  max-width: 180px;
}

.hb-confirmation {
  max-width: 620px;
  margin: 60px auto;
  padding: 40px;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
}

.hb-confirmation-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #25945c;
  color: #fff;
  font-size: 43px;
  line-height: 70px;
}

.hb-confirmation h1 {
  margin: 0 0 15px;
}

.hb-confirmation p {
  line-height: 1.5;
}

.hb-floating-cart {
  position: sticky;
  bottom: 15px;
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.hb-floating-cart button {
  padding: 13px 28px;
  border: 0;
  border-radius: 24px;
  background: #25945c;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.hb-shop-footer {
  margin-top: 35px;
  text-align: center;
  color: #777;
  font-size: 14px;
}

.hb-shop-footer a {
  color: inherit;
  text-decoration: none;
}


.hb-header-cart {
  margin-top: 16px;
}

.hb-header-cart button {
  padding: 9px 18px;
  border: 0;
  border-radius: 20px;
  background: #25945c;
  color: #fff;
  font-weight: 700;
}

.hb-header-cart button:disabled {
  background: #aaa;
  cursor: default;
}


@media (max-width: 650px) {
  .hb-shop {
    padding: 12px;
  }

  .hb-shop-name {
    font-size: 27px;
  }

  .hb-products {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hb-product {
    padding: 15px;
  }

  .hb-cart-item {
    grid-template-columns: 1fr 80px;
    gap: 10px;
  }

  .hb-cart-total {
    text-align: left;
  }

  .hb-field-row {
    display: block;
  }

  .hb-small {
    max-width: none;
  }

  .hb-cart-actions,
  .hb-checkout-actions {
    flex-direction: column;
  }

  .hb-cart-actions button,
  .hb-checkout-actions button,
  .hb-primary-button,
  .hb-secondary-button {
    width: 100%;
  }

  .hb-confirmation {
    margin: 20px auto;
    padding: 28px 18px;
  }
}