/* PRODUCT LISTING
===================================== */

.product-grid {
  margin: 0;
  padding: 0;
}

.product-grid li {
  padding: 5px;
  position: relative;
  z-index: 1;
}

.product-grid li > *:first-child {
  background: #efefef;
  padding: 15px;
}

.product-grid li:hover > *:first-child {
  background: #ddd;
}

/* product grid sliders */

.product-grid .owl-item {
  padding: 20px 15px;
  margin-bottom: 20px;
}

.product-grid .owl-item:hover {
  background: #eee;
}

/* badges */

.product-grid .pg-badge {
  float: right;
  position: absolute;
  z-index: 999;
  right: 0;
  top: 0px;
  pointer-events: none;
}

/* image */

.product-grid li .prod-image,
.product-grid div .prod-image {
  display: block;
  position: relative;
  background: url('../img/icons/ajax-loader.gif') no-repeat center center;
}

.product-grid li .prod-image img,
.product-grid div .prod-image img {
  width: 100%;
  height: auto;
}

@media ( max-width: 991px ) {
  .product-grid li {
    width: -webkit-calc(99.7% * 1/2);
    width: calc(99.7% * 1 / 2);
  }
  .product-grid li:nth-child(2n) {
    margin-right: 0;
  }

  .figures {
    font-size: 0.75em !important;
  }
  .from-now span {
    font-size: 1.1em;
  }
}

@media (min-width: 992px) {
  .product-grid li .prod-image {
    min-height: 210px;
  }
}

@media (min-width: 1200px) {
  .product-grid li .prod-image {
    min-height: 242px;
  }
}

/* prices */

.figures {
  font-weight: 500;
  padding-top: 10px;
  font-size: 0.9em;
}

@media (min-width: 992px) {
  .figures {
    font-size: 0.8em;
  }
}
.figures .left.aligned {
  float: left;
  width: 50%;
  min-height: 60px;
}

.figures .right.aligned {
  float: right;
  width: 50%;
  min-height: 60px;
}

.figures p {
  margin: 0;
}

.from-now {
  color: #50b7d8;
  font-size: 1.3em;
}

.from-now span {
  font-size: 1em;
}

.rrp {
  color: #777;
  text-decoration: line-through;
}

.rrp span {
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  display: inline;
}

.rrp span+div {
  display: inline;
}

.save {
  color: #91b600;
  line-height: 2.5em;
}

.code {
  color: #444;
}

p.rating-icons {
  margin-top: 10px;
  font-size: 0.8em;
}

.code span,
.code span+div {
  display: inline;
}

@media ( max-width: 991px) {
  .product-grid li > *:first-child {
    padding: 10px;
  }
  .product-title {
    padding: 10px 0 0;
  }
  .figures .left.aligned, .figures .right.aligned {
      width: 100%;
      display: inline-block;
      min-height: 0 !important;
      text-align: center;
  }
  .from-now {
      font-weight: bold;
      display: block;
      line-height: 1.4em;
      margin: 0 5px;
  }

  .rrp {
      display: inline-block;
      margin: 0 5px;
  }
  .save {
      display: none;
      margin: 0 5px;
  }
  .code {
      display: inline-block;
      margin: 0 5px;
      color: #999;
  }
}

/* product supplier logo */

.product-grid li .prod-supplier,
.product-grid div .prod-supplier {
  text-align: center;
  display: block;
  margin: 10px 0;
}

.product-grid div .prod-supplier img,
.product-grid li .prod-supplier img {
  height: 30px;
  width: auto;
  display: inline;
  -webkit-transform-style: flat;
  transform-style: none;
  transition-property: none;
  transition-duration: 400ms;
  transition-timing-function: ease;
}

/* product title */

.product-title {
  display: table;
  width: 100%;
  padding: 10px 0;
}

.product-title div {
  display: table-cell;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  height: 70px;
  line-height: 1.4;
  vertical-align: middle;
}
.product-title div a {
  color: #000;
}

@media ( max-width: 991px) {
  .product-title {
    display: table;
  }
  .product-title div {
    text-align: center;
    display: table-cell;
    height: 60px;
    vertical-align: middle;
  }
  .product-title div a {
    color: #000000;
    font-size: 12px;
  }
}

/* view button */

a.view-button {
  display: block;
  padding: 10px 0;
  background: #b0bdc8;
  color: #fff;
  text-align: center;
  font-size: 0.9em;
  text-transform: uppercase;
  font-weight: 500;
}

a.view-button:hover {
  background: #9ba9b5;
  color: #fff;
}

a.view-button.no-variation {
  background: #adc552;
}

a.view-button.no-variation:hover {
  background: #9cbb2b;
}

/* List view */

.product-grid.list-view li {
  border-bottom: 1px dotted #ccc;
}

.product-grid.list-view li:first-child {
  border-top: 1px dotted #ccc;
}

.product-grid.list-view li .prod-image {
  min-height: 0;
}

.product-grid.list-view .product-title h3 {
  display: block;
  font-size: 1em;
  height: auto;
  margin-bottom: 10px;
  text-align: left;
}

.product-grid.list-view .product-content {
  font-size: 0.8em;
}

/* PRODUCT PAGE
===================================== */

.node-type-product-display h1 {
  font-size: 1.8em;
  padding: 10px 30px 20px;
}

/*main product area */

.node-type-product-display>.col-md-9 {
  border-right: 1px solid #ededed;
}

@media ( max-width: 992px) {
  .node-type-product-display>.col-md-9 {
    border-right: 0;
    margin-bottom: 30px;
  }
}

.image-holder {
  position: relative;
}

@media ( min-width: 767px) {
  .image-holder {
    padding-left: 0;
  }
}

/* image lens */

#imageLensZoom {
  position: relative;
  z-index: 1;
  display: block;
  cursor: crosshair;
  border: 1px solid #ddd;
  padding-bottom: 1px;
  overflow: hidden;
}

@media ( max-width: 992px) {
  #imageLensZoom {
    cursor: auto;
  }
}

/* image thumbnails */

#imageLensThumbnails {
  margin-top: 10px;
}

#imageLensThumbnails img {
  width: 50px;
  border: 1px solid #ccc;
  margin-left: 4.5px;
  cursor: pointer;
  margin-top: 7px;
}

#imageLensThumbnails img:nth-child(7n+1) {
  margin-left: 0;
}

/* increase font size */

.node-type-product-display .price-holder {
  position: relative;
}

/* used for the positioning of .item-badge */

.node-type-product-display .price-holder .figures {
  font-size: 1.3em;
  padding: 0;
  line-height: 1;
  padding-bottom: 20px;
}

.node-type-product-display .price-holder .figures .from-now {
  font-size: 1.8em;
}

.node-type-product-display .price-holder .figures .from-now span {
  font-size: 0.8em;
}

.node-type-product-display .price-holder .figures .right.aligned {
  margin-top: 10px;
}

.node-type-product-display .price-holder .figures .rrp,
.node-type-product-display .price-holder .figures .code {
  margin-top: 10px;
}

.node-type-product-display .price-holder .figures .code {
  color: #999;
  font-size: 0.9em;
  text-transform: uppercase;
  font-weight: 400;
}

/* best buy / sale badge */

.node-type-product-display .price-holder .pg-badge {
  position: absolute;
  top: 10px;
  right: 35%;
}

/* colour swatch */

.commerce-product-field-field-colour-swatch {
  margin: 15px 0;
}

.commerce-product-field-field-colour-swatch img {
  border: 1px solid #ccc;
}

/* select form */

.node-type-product-display .form-type-select select {
  display: block;
  padding: 10px 30px 10px 15px;
  background: #fff url('../img/icons/dropdown_icon.png') 97% center no-repeat;
  background-size: 10px 5px;
  color: #000;
  font-weight: 400;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #ddd;
  width: 100%;
  border-radius: 0;
  font-size: 15px;
}

/* addon options */

#addons-section {
  margin-top: 30px;
}

#addons-section a {
  display: block;
  padding: 20px;
  background: #b9c0c6;
  color: #fff;
  font-weight: 400;
}

#addons-section a:hover {
  background: #9ca6af;
}

@media ( max-width: 1199px) {
  .node-type-product-display .price-holder .figures .from-now {
    font-size: 1.4em;
  }
  .node-type-product-display .price-holder .figures .right.aligned {
    margin-top: 10px;
  }
  .node-type-product-display .price-holder .item-badge {
    top: 40px;
  }
}

@media ( max-width: 992px) {
  .node-type-product-display .price-holder .figures {
    padding-top: 20px;
  }
}

@media ( max-width: 767px) {
  .node-type-product-display .price-holder .figures {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .node-type-product-display .price-holder .pg-badge {
    top: 30px;
    right: 0;
  }
  .node-type-product-display #addons-section {
    margin-top: 0;
  }
  .node-type-product-display #addons-section a {
    font-size: 0.9em;
  }
  .node-type-product-display .commerce-add-to-cart .select-options-label {
    margin-top: 20px;
  }
  .node-type-product-display .form-type-select select {
    margin-top: 1 0px;
  }
}

/* addons modal */

.modal {
  font-size: 13px;
  z-index: 16000004;
}

.modal h2 {
  font-weight: 500;
  color: #000;
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.modal h4 {
  padding: 0;
  font-weight: 400;
}

@media ( min-width: 600px) {
  .modal .modal-header h4 {
    position: relative;
    top: 25px;
  }
}

.modal h5 {
  padding: 0;
  font-weight: 400;
  font-size: 1.1em;
  margin: 30px 0;
}

.modal-body {
  font-weight: 400;
  padding: 0 20px;
}

.modal .rrp {
  margin: 0;
}

.modal form.buttons {
  text-align: right;
  position: relative;
}

.modal form.buttons input {
  margin: 0;
}

.modal form.buttons input.checkoutbutton {
  margin-left: 15px;
  background: #B8C744;
}

.modal th {
  padding: 0 10px;
}

.modal td {
  padding: 10px;
}

.modal tr.odd {
  background: #f3f3f3;
}

.modal td.views-field-add-to-cart-form {
  text-align: right;
  padding: 10px 20px;
  max-width: 300px;
}

.modal td.views-field-add-to-cart-form label {
  margin: 0;
}

.modal td.views-field-add-to-cart-form select {
  padding: 0 10px;
  margin: 0 0 7px;
}

.modal td input[type="submit"] {
  margin: 0;
  background: #50b7d8;
}

/* chosen addons text */

#chosen-items p {
  font-size: 0.9em;
  font-weight: 400;
  color: #707c87;
  text-align: center;
}

/* quantity field */

.node-type-product-display .form-item-quantity {
  display: inline-block;
  width: 20%;
  
}

.node-type-product-display .form-item-quantity input[type="text"] {
  width: 100%;
  text-align: center;
  border: 1px solid #ddd;
  background: #fff;
  color: #000;
}

/* Add to Cart button */

#add-to-cart input[type="submit"],
.node-type-product-display .product-page-add-to-cart-form input[type="submit"] {
  width: 75%;
  display: inline-block;
  margin-left: 3%;
  padding: 0 20px;
  background: #88c425;
  height: auto;
  font-size: 25px;
  position: relative;
  top: 4px;
  border-radius: 8px;
  box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.1);
}

@media ( max-width: 1199px) {
  #add-to-cart input[type="submit"],
  .node-type-product-display .product-page-add-to-cart-form input[type="submit"] {
    background-position: 20px center;
  }
}

@media ( min-width: 768px) and ( max-width: 992px) {
  #add-to-cart input[type="submit"],
  .node-type-product-display .product-page-add-to-cart-form input[type="submit"] {
    background-position: 33% center;
  }
}

@media ( max-width: 767px) {
  #add-to-cart input[type="submit"],
  .node-type-product-display .product-page-add-to-cart-form input[type="submit"] {
    background-image: none;
    width: 100%;
    margin-left: 0;
  }
}

/* product page sidebar */

.brand-information .field-name-field-logo {
  border: 1px solid #ccc;
  text-align: center;
  padding: 20px 0;
}

.brand-information .field-name-field-logo img {
  height: 40px;
  width: auto;
}

.brand-information a {
  display: block;
  width: 100%;
  padding: 10px 0;
  margin-top: -1px;
  background: #737373;
  color: #fff;
  text-align: center;
  font-weight: 400;
  font-size: 1.1em;
  text-transform: uppercase;
}

@media ( max-width: 992px) {
  .brand-information {
    text-align: center;
  }
}

.prod-sidebar-icons {
  margin-top: 15px;
}

.node-type-product-display .cart-trust-signals {
  display: block;
  float: none;
  margin-bottom: 10px;
}

/* middle row */

.middle-row {
  margin-top: 30px;
}

@media ( min-width: 992px) {
  .middle-row>.col-md-5 {
    margin-top: 55px;
  }
}

/* tabbed content */

/*-- resets -------*/

.middle-row .horizontal-tabs,
.middle-row ul.horizontal-tabs-list,
.middle-row ul.horizontal-tabs-list li,
.middle-row ul.horizontal-tabs-list li:hover,
.middle-row ul.horizontal-tabs-list li:focus {
  background: none;
  border: 0;
}

/* Global tab styles */

.middle-row ul.horizontal-tabs-list li {
  padding: 0;
}

.middle-row ul.horizontal-tabs-list li.selected {
  padding: 0 1px;
}

.middle-row ul.horizontal-tabs-list li a,
.middle-row ul.horizontal-tabs-list li.selected a {
  color: #999;
  text-decoration: none;
  padding: 40px 20px 10px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.middle-row ul.horizontal-tabs-list li a:hover,
.middle-row ul.horizontal-tabs-list li.selected strong {
  color: #fff;
}

/* Individual tab styles */

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-0 a {
  background: url('../img/icons/product_icon.png') center 15px no-repeat;
  background-size: 28%;
}

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-0 a:hover,
.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-0.selected a {
  background: #0284b6 url('../img/icons/product_icon_active.png') center 15px no-repeat;
  background-size: 28%;
}

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-1 a {
  background: url('../img/icons/specification_icon.png') center 13px no-repeat;
  background-size: 23%;
}

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-1 a:hover,
.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-1.selected a {
  background: #0284b6 url('../img/icons/specification_icon_active.png') center 13px no-repeat;
  background-size: 23%;
}

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-2 a {
  background: url('../img/icons/finance_icon.png') center 13px no-repeat;
  background-size: 25%;
}

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-2 a:hover,
.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-2.selected a {
  background: #0284b6 url('../img/icons/finance_icon_active.png') center 13px no-repeat;
  background-size: 25%;
}

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-3 a {
  background: url('../img/icons/terms_icon.png') center 13px no-repeat;
  background-size: 15%;
}

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-3 a:hover,
.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-3.selected a {
  background: #0284b6 url('../img/icons/terms_icon_active.png') center 13px no-repeat;
  background-size: 15%;
}

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-4 a {
  background: url('../img/icons/faqs_icon.png') center 13px no-repeat;
  background-size: 20%;
}

.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-4 a:hover,
.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-4.selected a {
  background: #0284b6 url('../img/icons/faqs_icon_active.png') center 13px no-repeat;
  background-size: 20%;
}

/*.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-4 a { background: url('../img/icons/reviews_icon.png') center 13px no-repeat; background-size: 20%; }
.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-4 a:hover,
.middle-row ul.horizontal-tabs-list li.horizontal-tab-button-4.selected a { background: #0284b6 url('../img/icons/reviews_icon_active.png') center 13px no-repeat; background-size: 20%; }*/

/* Content area border */

.middle-row .horizontal-tabs-panes {
  margin-top: -7px;
  border-color: #ccc;
  border-style: solid;
  border-width: 2px 1px;
  border-bottom-color: #0284b6;
  border-top-color: #0284b6;
  padding: 1.5em;
}

@media ( min-width: 992px) {
  .middle-row .horizontal-tabs-panes {
    min-height: 445px;
  }
}

@media ( min-width: 1200px) {
  .middle-row .horizontal-tabs-panes {
    min-height: 475px;
  }
}

/* product details tab */

.middle-row .group-details .brandname {
  display: inline-block;
  font-size: 2em;
  font-family: Arial, sans-serif;
  border-bottom: 1px dotted #999;
  padding-bottom: 17px;
  padding-right: 10px;
  margin: 0 -4px 20px 0;
}

.middle-row .group-details .rangename {
  display: inline-block;
  font-size: 1.5em;
  font-weight: 400;
  font-family: Arial, sans-serif;
  border-bottom: 1px dotted #999;
  margin-bottom: 20px;
  padding-bottom: 20px;
  color: #777;
  padding-right: 15px;
}

/* specifications tab */

.middle-row .horizontal-tabs .field-label {
  float: left;
  font-size: 1em;
  font-weight: 600;
  background: #ddd;
  padding: 10px 5%;
  width: 37%;
}

.middle-row .horizontal-tabs .field-label-inline {
  background: #eee;
  padding: 10px 5%;
  display: block;
  float: left;
  width: 62%;
  margin: 0 0 0.2em 0;
}

@media ( max-width: 992px) {
  .middle-row ul.horizontal-tabs-list li {
    width: 100%;
  }
  .middle-row ul.horizontal-tabs-list li a {
    background: none !important;
    text-align: center;
    padding: 10px 0 !important;
  }
  .middle-row ul.horizontal-tabs-list li.selected a {
    background: #0284b6 !important;
  }
  .middle-row ul.horizontal-tabs-list li a:hover {
    background: #777 !important;
  }
  .middle-row ul.horizontal-tabs-list li.selected a:hover {
    background: #0284b6 !important;
  }
}

.middle-row .horizontal-tabs-panes .group-finance img {
  width: 100%;
}

/* related products list */

.related-list ul {
  margin: 0;
  padding: 0;
}

.related-list ul li {
  margin-bottom: 15px;
}

.related-list ul .rel-prod-image {
  margin-bottom: 10px;
}

.related-list ul .rel-prod-info {
  font-size: 1.1em;
}

.related-list ul div {
  padding: 0;
  font-size: 0.9em;
}

.related-list ul div a {
  color: #444;
  font-weight: 700;
}

.related-list ul div:last-child {
  margin-bottom: 10px;
}

.related-list ul .rel-prod-info .commerce-product-field-commerce-price {
  color: #50b7d8;
  font-weight: 700;
}

.related-list ul .rel-prod-info .save {
  margin: 0;
  font-size: 0.9em;
  font-weight: bold;
}

.related-list ul .rel-prod-info .related-code-wrap>span,
.related-list ul .rel-prod-info .related-code-wrap>div {
  display: inline-block;
  color: #999;
  font-size: 0.9em;
}

/* category related slider */

.category-related-row>p>span {
  font-size: 18px;
  text-align: center;
  display: block;
  color: #50646C;
  font-weight: 700;
}

.view-related-products .view-header>p {
  font-size: 18px;
  display: block;
  color: #50646C;
}

.field-name-field-buy-link a {
  display: none;
}
@media ( max-width: 991px ) {
  .field-name-field-buy-link {
      display: block;
      margin: 0 auto;
      width: 110px;
  }  
  .field-name-field-buy-link a {
    background: #99cc33;
    color: #fff;
    width: 100%;
    display: block;
    padding: 5px;
    font-size: 1em;
    font-weight: bold;
    text-transform: uppercase;
  }
}

.product-badge {
  background-color:black;
  color:white;
  padding: 3px 10px;
  font-size: 1rem;
}

.product-badge.free-delivery {
  background-color:#31946A;
}

.product-badge.sale {
  background-color:#85302F;
}

.product-grid .product-badge {
  position: absolute;
  bottom:0px;
  width:100%;
  text-align: center;
  font-size: 0.8em;
}

.product-grid .product-badge.free-delivery {
  bottom:auto;
  width:auto;
  top:0px;
}

.product-grid .product-badge.sale {
  text-align: center;
}