.catalog-product-view #maincontent h1.page-title {
    color: #666;
    font-weight: 400;
    font-size: 20px;
    border-bottom: 2px solid #018ea2;
    padding-bottom: 5px;
    margin-bottom: 0;
}
.product-info-main .product.attribute.overview p {
    margin: 0;
}
.catalog-product-view .product-info-main {
  display: flex;
  flex-direction: column;
}

.catalog-product-view #maincontent .product-add-form {
  order: 1;
  padding-top: 0;
}

.catalog-product-view .field.qty {
  width: fit-content;
  display: flex;
  align-items: center;
  margin: 0 30px 0 0;
  text-align: center;
  justify-content: center;
}

.catalog-product-view .box-tocart {
    background: #d8d9db;
    padding: 16px;
    width: fit-content;
    margin: 0 auto;
    border-radius: 8px;
}

.product-info-main .product.attribute.overview {
  margin: 20px 0 0;
}
.page-product-grouped .btsviewprod{margin-top: 15px;}
.fancybox-container .box-tocart{
position: absolute;
bottom: 0;
left: 0;
right: 0;
margin-bottom: 30px;}
.table-wrapper.grouped{
  overflow-x: auto;
}

.catalog-product-view #maincontent .product-add-form {

    margin-top: 20px;
}
.fancybox-container .table.data.grouped {
  overflow-x: auto;
}
.fancybox-container  form#product_addtocart_form {
  padding-bottom: 100px;
}

.table.grouped tr th:last-child, .table.grouped tr td:last-child {
  position: sticky;
  right: 0;
}
.table.grouped tr th:last-child{
  background-color: #039eb5;
}
.table.grouped tr td:last-child{
  background-color: #d7d4d4;
}


.catalog-product-view .box-tocart .fieldset {
  display: flex;
  width: fit-content;
  background: #008ea3;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 8px 30px;
  border-radius: 8px;
  margin: -22px 0 0 0;
}
.table.data.grouped{margin-bottom: 0;}
.catalog-product-view .box-tocart .fieldset .actions {
  width: fit-content;
  text-align: center;
}
.catalog-product-view .box-tocart .fieldset .actions button, .btsviewprod {
  width: 155px;
  background: #f3e600;
  color: #000;
  border-radius: 8px;
  text-align: center;
  border: 0;
  padding: 9px 15px;
  font-size: 16px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  display: block;
}
.btsviewprod{display: none;}
.page-product-grouped  .btsviewprod{display: block;}
.page-product-grouped .product-add-form{display: none;}
.catalog-product-view .box-tocart .fieldset .actions button:hover, .btsviewprod:hover{
  background: #fff;
color: #000;
}
.catalog-product-view button#product-addtocart-button {
  margin: 0;
}
.catalog-product-view .field.qty {
  color: #fff;
}
.catalog-product-view .field.qty label {
  color: #fff;
}
.catalog-product-view #product_addtocart_form .field.qty label {
  margin-right: 015px;
  margin-bottom: 0;
}
.catalog-product-view .pdetails {order: 2;     margin-top: 20px;}
.catalog-product-view .block.related{clear: both;}
.catalog-product-view .pdetails {

    background: #e7e8e9;
    padding: 15px !important;
}
.catalog-product-view #homepagetabContent {
    border-top: 0;
border: 1px solid #ccc;
    background: #fff;
}
.catalog-product-view #homepagetab .nav-item a{border-radius: 0;}
#block-related-heading{    color: #000;
    text-transform: capitalize;
    font-size: 16px;
    border-bottom: 1px solid #CCC;
    width: 100%;
    display: block;
    padding-bottom: 10px; font-weight: bold;}
.block.related    .block-actions, .block.related .field.choice {display: none;}
.block.related .related-available .product-item-name  {
    margin: 0;

}
.block.related .related-available .product-item-name a {

    color: #666;
    font-size: 12px;
}

@media screen and (max-width: 991px) {

  .catalog-product-view .box-tocart .fieldset .actions button, .btsviewprod{width: auto; font-size: 13px;}
  
}

@media only screen and (max-width: 639px) {
  .table.grouped tr th:last-child{
    background-color: none;
  }
  .table.grouped tr td:last-child{
    background-color: none;
  }
  
  .fancybox-container form#product_addtocart_form .product_addtocart_form{padding: 44px 15px;}



  .table-wrapper .table:not(.totals):not(.cart):not(.table-comparison)>tbody>tr td, .table-wrapper .table:not(.totals):not(.cart):not(.table-comparison)>tbody>tr th, .table-wrapper .table:not(.totals):not(.cart):not(.table-comparison)>thead>tr>th {
    

    display: table-cell !important;
  }

  table.grouped thead .col, table.grouped tbody .col {
    min-width: 200px !important;
    text-align: center;
    padding: 5px 10px;
}
.table.grouped .col.qty {
  min-width: 74px !important;
}
.table-wrapper .table:not(.totals):not(.cart):not(.table-comparison)>tbody>tr{display: table-row !important;}
tbody td {
  border-bottom: 1px solid #d9dde3 !important;
  border-right: 1px solid #d9dde3 !important;
}#product_addtocart_form{
  padding: 44px 15px;
}
.table-wrapper.grouped{overflow-x: hidden;}
}