// Product Page
.paction {
  position: relative;
  display: -ms-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 1.8rem;
  font-family: 'porto';
  color: #0e2f40;
  background-color: #ffffff;
  border: 1px solid #d4d4d4;
  transition: all .3s;
  text-decoration: none;
  text-align: center;
  min-width: 35px;
  height: 35px;

  span {
    display: none;
    padding-right: .1rem;
    padding-left: .4rem;
    font-size: 1.2rem;
    letter-spacing: .02rem;
  }

  & + .paction {
    margin-left: .7rem;
  }

  &:hover,
  &:focus {
    text-decoration: none;
    color: #302e2a;
    border-color: #302e2a;
  }
}

.add-cart {
  &::before {
    display: inline-block;
    line-height: 1;
    margin-right: 4px;
    margin-top: 2px;
    font-size: 1.9rem;
    content: '\e87f';
    font-family: 'porto';
    font-weight: 400;
  }
}

.add-wishlist{
  &::before {
    content: '\e889';
  }
}

.add-compare {
  &::before {
    content: '\e88f';
  }
}

.add-cart {
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  font-family: $font-family;
  text-transform: uppercase;
  padding: 2rem;
  min-width: 105px;
  z-index: 2;
  background-color: $primary-color;
  border: none;

  i {
    width: 20px;
    height: 18px;
    top: 3px;
    margin-right: 1rem;

    &::before {
      margin-left: -7px;
      width: 14px;
      height: 11px;
    }
  }

  i,
  i::before {
    border-color: white;
  }

  &:hover,
  &:focus {
    border-color: $primary-color;
    background-color: $primary-color;
    color: #fff;
  }
}

.product-single-container {
  margin-bottom: 3rem;
}

.product-single-details {
  margin-top: 2rem;
  font-family: $font-family;
  color: #777;

  .product-title {
    margin-bottom: .5rem;
    color: white;
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -.01em;
  }

  .price-box {
    margin-bottom: 2.4rem;
    color: $primary-color;
    font-weight: 700;
  }

  .product-price {
    font-size: 2.4rem;
    font-weight: 700;
    color: $secondary-color;
  }

  .old-price {
    font-size: 1.6rem;
    font-weight: 600;

    & + .product-price {
      margin-left: 1rem;
    }
  }

  .ratings-container {
    margin-bottom: 2.1rem;

    .product-ratings, 
    .ratings {
      font-size: 1.4rem;
    }

    .product-ratings {
      height: 14px;
    }
  }

  .rating-link {
    margin-left: 1rem;
    color: #90939a;
    font-weight: 500;
    font-size: 1.2rem;
    letter-spacing: .025em;
  }

  .product-desc {
    padding-bottom: 2.7rem;
    font-size: 1.4rem;
    letter-spacing: .005em;
    line-height: 1.92;

    // p {
    //   max-width: 360px;
    // }

    a {
      color: $primary-color;
      border-bottom: 1px solid $primary-color;
    }
  }
  
  .product-action {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin-bottom: 3.1rem;
    align-items: center;
  }
  
  .sticky-header {
    height: auto;
    
    .sticky-detail {
      display: -ms-flexbox;
      display: flex;
      -ms-flex-direction: row;
      flex-direction: row;
      -ms-flex-align: center;
      align-items: center;
    }
    
    .product-title {
      margin-right: 2rem;
      margin-bottom: 0;
      color: #777;
      font-size: 16px;
      font-weight: 600;
    }
    
    .price-box {
      margin-top: 1rem;
      margin-bottom: 0;
      padding: 0;
      border: 0;
      color: #2b2b2d;
    }
    
    .ratings-container {
      margin-bottom: 3.2rem;
    }
  }

  .container {
    display: none;
    -ms-flex-align: center;
    align-items: center;

    img {
      max-width: 5rem;
      max-height: 5rem;
      margin-right: 2rem;
    }

    .add-cart {
      margin-left: auto;
      margin-bottom: 0;
    }
  }
  
  .sticky-header.fixed-nav .container {
    display: -ms-flexbox;
    display: flex;
    padding: 1.5rem;
  }

  .product-single-qty, .paction {
    margin: 0 1rem 1rem 0;
  }

  .paction {
    height: 43px;
    min-width: 43px;
  }

  .add-cart {
    min-width: 115px;
  }
}

.product-both-info {
  .product-single-details {
    margin-top: 0;
    
    .product-desc {
      border-bottom: 0;
    }
  }
}

.product-single-gallery {
  a {
    display: block;
  }

  img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }

  .owl-theme .owl-nav,
  .owl-theme .owl-nav {
    color: #000;
    font-size: 32px;
  }
  
  .owl-prev,
  .owl-next {
    margin: 0 2rem !important;
    transition: all .5s;
    opacity: 0;
  }

}

.prod-thumbnail {
  padding: .5rem 1rem;

  img {
    width: 100%;
    cursor: pointer;
  }

  > div {
    padding: .5rem;
  }

  .active img, img:hover {
    border: 2px solid #21293c;
  }
}

.transparent-dots {
  display: -ms-flexbox;
  display: flex;
  position: absolute;
  top: 1rem;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 80px;
  margin: 0;
  padding: 0;
  opacity: .5;
  z-index: 99;

  .active img, img:hover {
    border: 1px solid $primary-color;
  }
}

.product-slider-container {
  position: relative;
}

.prod-full-screen {
  position: absolute;
  right: 2rem;
  bottom: 1.7rem;
  transition: all .5s;
  outline: none;
  opacity: 0;
  z-index: 1;

  i {
    color: #21293c;
    font-size: 1.4rem;
    cursor: pointer;
  }
}

.product-item:hover {
  .prod-full-screen,
  .owl-prev,
  .owl-next {
    opacity: 1;
  }
}

.prod-thumbnail {
  img {
    display: block;
  }
  .owl-dot {
    box-sizing: border-box;
  }
}

.single-info-list {
  margin-bottom: 2rem;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1.5;
  text-transform: uppercase;

  li {
    margin-bottom: 1rem;
    color: #7b858a;
    letter-spacing: .005em;

    strong {
      color: #4c4c4c;
    }
  }
}

.product-single-qty {
  max-width: 104px;
  max-height: 43px;

  .bootstrap-touchspin {
    &.input-group{
      display: -ms-flexbox;
      display: flex;
      -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
      -ms-flex-align: stretch;
      align-items: stretch;
      max-width: 100%;
      max-height: 43px;
      padding-right: 0;
    }

    .form-control {
      max-width: none;
      height: 43px;
      padding: 1rem .2rem;
      color: #21293c;
      font-size: 1.5rem;
      letter-spacing: .05em;
      box-shadow: none;
    }

    .form-control,
    .form-control:not(:focus) {
      border-color: #dae2e6;
    }
  }

  .horizontal-quantity {
    height: 43px;
  }

  .btn {
    display: -ms-inline-flexbox;
    display: inline-flex;
    position: relative;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-width: 31px;
    margin: 0;
    padding: .5rem;
    font-family: $font-family;
    font-size: 2.4rem;
    line-height: 1;
    z-index: 2;

    &.btn-outline {
      border-color: #dae2e6;
      color: #8798a1;
    }

    &.btn-down-icon::after,
    &.btn-up-icon::before,
    &.btn-up-icon::after {
      display: block;
      position: absolute;
      top: 50%;
      left: 50%;
      width: 11px;
      height: 1px;
      margin-left: -.55rem;
      background-color: #8798a1;
      content: '';
    }

    &.btn-up-icon::before, {
      transform: rotate(90deg);
    }
  }
}

.product-filters-container {
  .product-action {
    display: flex;
  }
}

.product-single-filter {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  padding-bottom: 4.2rem;

  & + .product-single-filter  {
    margin-top: 2.2rem;
  }

  label {
    margin-right: 1.3rem;
    margin-bottom: 0;
    color: #777;
    font: 600 1.5rem/1.1 $font-family;
    letter-spacing: .005em;
  }

  .config-swatch-list {
    display: inline-flex;
    margin: 0;

    li {
      margin-bottom: 0;
    }
  }

  .config-size-list li {
    margin-right: .7rem;
    margin-bottom: 0;

    a {
      min-width: 3rem;
      height: 3rem;
      border: 1px solid #dae2e6;
      background-color: #f4f4f4;
      color: #21293c;
      font-size: 1.5rem;
      font-weight: 600;
      line-height: 2.8rem;

      &:hover,
      &:focus {
        border-color: $primary-color;
        background-color: #f4f4f4;
        color: #21293c;
      }
    }

    &.active a {
      border-color: $primary-color;
      outline: none;
      background-color: #f4f4f4;
      color: #21293c;
    }
  }

  &.product-single-qty {
    max-width: 148px;
    max-height: 7.5rem;
    border-bottom: 0;
  }
}

.product-single-share {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;

  label {
    margin-right: 1.2rem;
    margin-bottom: .5rem;
    color: white;
    font: 600 1.4rem/1.1 $font-family;
    letter-spacing: .005em;
    text-transform: uppercase;
  }
}

.product-single-tabs {
  margin-bottom: 5.5rem;

  .tab-pane {
    padding-top: 3.5rem;
    color: #777;
    line-height: 1.92;
  }

  .sticky-header {
    height: auto;
  }
}

.scrolling-box .tab-pane + .tab-pane {
  margin-top: 3.5rem;
  border-top: 2px solid #dae2e6;
}

.product-desc-content {
  font-size: 1.4rem;
  letter-spacing: 0.005em;

  p {
    margin-bottom: 2.2rem;
  }

  ul,
  ol {
    margin-bottom: 2.2rem;
    padding-left: 4rem;

    li {
      margin-bottom: .4rem;

      i {
        margin-right: 2rem;
        color: $primary-color;
        font-size: 1.5rem;

        &::before {
          margin: 0;
        }
      }
    }
  }

  img.float-right,
  img.float-left {
    max-width: 50%;
  }

  .feature-box i {
    float: none;
    display: inline-block;
  }

  .feature-box-content {
    margin-left: 0;
  }
}

.product-tags-content {
  h4 {
    margin: 0 0 2rem;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: $primary-color-dark;
  }

  form {
    margin-bottom: 2rem;
  }

  .form-group {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: stretch;
    align-items: stretch;
  }

  .form-control{
    margin-right: 10px;
  }

  .btn {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }
}

.collateral-box {
  ul,ol {
    margin-top: -2rem;
    margin-bottom: 2.5rem;

    li {
      padding: 2rem 0 1rem;
      border-bottom: 1px solid #dae2e6;
    }
  }
}

.ratings-table {
  width: 100%;
  margin: 20px 0 40px;
  border: 1px solid #dae2e6;
  border-spacing: 0;
  font-size: 100%;
  empty-cells: show;

  thead th,
  tbody td {
    border-right: 1px solid #dae2e6;
    border-bottom: 1px solid #dae2e6;
    line-height: 1.3;

    @media (max-width: 600px) {
      padding-left:5px;
      padding-right:5px;
    }

  }

  input[type=checkbox], input[type=radio] {
    margin: 0 auto;
  }

  thead {
    @media (max-width: 600px) {
      display:none;
    }

    th {
      padding: .8rem 1.5rem;
      background-color: #f6f6f6;
      color: #777;
      font-size: 1.1rem;
      font-weight: 600;
      text-align: center;
      text-transform: uppercase;
      white-space: nowrap;
      vertical-align: middle;
    }
  }

  tbody {
    td {
      padding: 1.5rem 1rem;
      font-size: 1.3rem;
      text-align: center;
      vertical-align: middle;

      &:first-child {
        font-weight: 700;
        text-align: left;
      }
    }
  }
}

.add-product-review {
  h3 {
    color: $primary-color-dark;
    font-size: 1.8rem;
  }

  form {
    margin-bottom: 0;
  }
}

// Product Sidebar
.sidebar-product {
  margin-bottom: 2.8rem;

  .widget:not(:last-child) {
    margin-bottom: 1rem;
    padding-bottom: 0;

    &.widget-banner {
      margin-bottom: 4.6rem;
    }

    &.widget-brand {
      margin-bottom: 2.5rem;
    }
  }

  .widget-title {
    margin: 0;
    color: $primary-color;
    font: 600 1.2rem/1.1 $font-family;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom-width: 1px;
  }

  .widget-subtitle {
    color: #7a7d82;
    margin-bottom: 3rem;
    font-size: 1.3rem; 
    font-weight: 400;
  }

  .widget-body {
    padding-left: 0;

    p {
      line-height: 27px;
      font-size: 1.3rem;
      color: #777;
      letter-spacing: 0.01em;
      font-weight: 500;
      margin-bottom: 3rem;
    }
  }

  .product-widget {
    margin-bottom: 2rem;

    figure {
      max-width: 64px;
      margin-right: 1rem;
    }

    .product-title {
      font-family: $font-family;
      font-size: 1.3rem;
      font-weight: 500;
      margin-bottom: 0;
    }

    .ratings-container .product-ratings,
    .ratings-container .ratings {
      font-size: 1.2rem;
    }

    .product-price {
      font-size: 1.8rem;
      font-weight: 500;
    }
  }
}

.widget-brand {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-align: center;
  align-items: center;
  margin-top: .5rem;

  a {
    display: block;
  }
}

.widget-info {
  ul {
    margin: 0;
  }

  li {
    @include clearfix;
    padding-top: 1.8rem;
    padding-bottom: 2rem;
    border-top: 1px solid #dee5e8;
    line-height: 1;
  }

  i {
    min-width: 40px;
    margin-top: .3rem;
    margin-right: 1.4rem;
    margin-left: .7rem;
    float: left;
    color: $primary-color;
    font-size: 4rem;
    line-height: 1;

    &::before {
      margin: 0;
    }
  }

  h4 {
    margin-bottom: 0;
    color: #6b7a83;
    font: 600 1.4rem / 1.5 $font-family;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
  }
}

.widget-banner {
  padding-top: 4rem;
  border-top: 1px solid #dfdfdf;

  a {
    display: block;
  }

  img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }
}

.featured-section {
  padding-top: 3.8rem;
  padding-bottom: 6rem;
  background-color: white;

  &.bg-white {
    background-color: #fff;
  }

  &.pt-sm {
    padding-top: 2.5rem;
  }
}

.productPage .home-product {
  margin: 0;

  &:hover figure {
    box-shadow: none;
  }
}

.promote {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: justify;
  justify-content: space-between;

  li {
    border-top: 0;
  }

  h4 {
    color: #777;
    font-weight: 400;
    letter-spacing: 0;
  }

  i {
    margin: .3rem .7rem;
  }
}

.product-single-gallery .product-item {
  position: relative;
  margin-bottom: .4rem;
}

.product-single-gallery .product-single-grid {
  margin-bottom: 3.6rem;
}

.featured-col .product-widget {
  margin-bottom: 15px;
}

.carousel-title {
  margin-bottom: 2rem;
}

.product-info-box {
  display: flex;
  align-items: flex-start;
  flex-direction: column;

  >div {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }

  span {
    font-size: 1.4rem;
    font-family: $font-family;
    letter-spacing: 0.005em;
    color: white;
    margin-right: 5px;
  }

  .product-info-name {
    color: #777;
  }

  .product-info-category {
    padding: 2rem 0;

    .product-info-name {
      margin-right: 2rem;
    }

    .product-info {
      background-color: #2c2f33;
      padding: 0.5rem 1rem;
      border-radius: 5px;
      font-weight: 600;
    }
  }

  .product-info-rate {
    margin-bottom: 4rem;
  
    .product-info {
      text-transform: uppercase;
      font-size: 1rem;
      font-weight: 600;
    }
  }

  .product-info-ratenum {
    background-color: #16181b;
    padding: 0.5rem 0.7rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.8rem;
    margin-right: 1rem;
  }
}

.bg-black {
  background-color: #1c1e21;
}

@include mq('xl') {
  .widget-info {
    i {
      min-width: 40px;
      margin-right: 2.9rem;
      font-size: 4rem;
    }
  }
}

@include mq('lg') {
  .featured-section {
    padding-top: 5.8rem;
    padding-bottom: 8rem;
  }
}

@include mq('lg', 'max') {
  .product-single-gallery {
    margin-bottom: 3rem;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .product-all-icons.product-action {
    .product-single-qty {
      margin-right: 50%;
      margin-bottom: 1.2rem;
    }
  }
}

@include mq('md') {
  .featured-section {
    padding-top: 4.8rem;
    padding-bottom: 7rem;
  }

  .product-both-info .product-single-share {
    -ms-flex-pack: end;
    justify-content: flex-end;
  }
}

@include mq('sm') {
  .promote {
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .product-both-info {
    .product-top-banner {
      display: -ms-flexbox;
      display: flex;
    }
  
    .product-single-share {
      margin-left: auto;
    }
  }
  
  .product-tags-content .form-control {
    width: 250px;
  }
}
