/* test.css - Optimized with Modern CSS */

:root {
  --max-width: 1200px;
  --breakpoint-tablet: 992px;
  --breakpoint-phone: 768px;
  --breakpoint-mini: 600px;
  --breakpoint-mobile: 1180px;
  --gray: rgba(0, 0, 0, 0.2);
}

/* Image Zoom & System Messages */
.zoom-container {
  width: 100%;
  display: none;
  position: absolute;
  aspect-ratio: 1 / 1;
  left: 0;
  top: 0;
  z-index: 32;
  overflow: hidden;
  border: 1px solid #333;
  background: #efeee8;
}

.add-to-cart-button {
  color: #ffffff;
  background-color: #669c8f;
  text-transform: uppercase;
  padding: 15px;
  font-size: 20px;
  text-align: center;
  margin: 0px;
  width: 100%;
  border: 0px solid transparent;
  cursor: pointer;
}

.zoomed-image {
  position: absolute;
  background-size: 100% 100%;
  display: none;
  aspect-ratio: 1 / 1;
  min-width: 2000px;
}

.product-images {
  position: relative;

  &.fullscreen {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 80%;
    background: #efeee8;
    z-index: 120;
    padding: 0;

    .zoom-title {
      display: flex;
      margin: 0 auto;
      width: 100%;
      text-align: center;
      font-family: "trade-gothic-next", sans-serif;
      font-weight: 800;
      font-size: 5vw;
      line-height: 5.1vw;
      height: 100px;
      justify-content: center;
      align-items: center;
      text-transform: uppercase;
      cursor: pointer;

      @media (min-width: 1224px) {
        font-size: 50px;
        line-height: 55px;
      }
    }

    .logo-item {
      top: 20px;
    }

    .slide-wrapper {
      max-width: calc(100% - 150px);
      margin: 24px auto 0;
      position: relative;
      max-height: calc(100vh - 200px);

      .image-zoom { display: none; }
      .image-zoom-quit { display: block; }
    }
  }
}

.zoom-title { display: none; }

.admin-bar .product-images.fullscreen {
  top: 32px;
  height: calc(100% - 32px);
}

.slide-wrapper {
  .image-zoom,
  .image-zoom-quit {
    opacity: 0;
    transition: all 0.2s;
    top: 24px;
    right: 24px;
    color: #888;
    position: absolute;
    font-size: 40px;
    cursor: pointer;

    &:hover { color: #000; }
  }

  .image-zoom { display: block; }
  .image-zoom-quit { display: none; }

  &:hover {
    .image-zoom, .image-zoom-quit { opacity: 1; }
  }
}

.system-message {
  background: #488c46;
  color: #fff;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid darkgreen;
  text-align: center;

  h2 {
    font-size: 20px;
    margin: 0 0 20px 0;
    padding: 0;
  }

  p {
    font-size: 18px;
    padding: 0;
    margin: 0;
  }
}


/* H5APP_Product Main Block */
.H5APP_ProductDetailX {
  width: 100%;
  position: relative;
  height: auto;
  padding: 0;
  margin-top: 0;
  margin-bottom: 5px;
  overflow-x: hidden;
  color: #111111;

  .size-table {
    text-transform: uppercase;
    margin-bottom: 15px;

    .table-header {
      padding-bottom: 10px;
      border-bottom: 1px solid gray;
      margin-bottom: 10px;
    }

    .size-table-row { font-size: 20px; }

    .size-table-image {
      padding-right: 40px;
      img { min-width: 100px; }
    }

    div {
      > .measure-header {
        margin-top: 20px;

        &:first-child { margin-top: 0; }

        > div {
          font-size: 26px;
          padding: 0 15px 0 0;
          @media (max-width: 992px) { font-size: 20px; }
        }
      }
    }
  }


  button.add-to-cart-button {
    position: relative;
    width: 100%;
    margin-top: 20px;
    padding:10px;
    color: #ffffff;
    background-color: #669c8f;
    text-transform: uppercase;
    padding: 15px;
    font-size: 20px;
    text-align: center;
    margin: 0px;
    width: 100%;
    border: 0px solid transparent;
    cursor: pointer;
    &:hover{
      background : #303647;
      color : #ffffff;
      border:0px solid transparent;
    }

  }


  .prod_attributes {
    .p-models {
      max-height: 100px;
      overflow: hidden;
    }
    &:hover .p-models {
      max-height: 800px;
      overflow: auto;
      transition: max-height 0.2s;
    }
  }

  .special-offer {
    position: absolute;
    width: 40px;
    height: 80px;
    background: #ca161d;
    color: #fff;
    text-align: center;
    box-sizing: border-box;
    padding-top: 20px;
    z-index: 10;
    right: 20px;
    top: 0;
    clip-path: polygon(0 0%, 100% 0, 100% 100%, 0 54%);
  }

  .matching-models .special-offer {
    padding-top: 0;
    display: flex;
    padding-bottom: 7%;
    align-items: center;
    justify-content: center;

    @media (max-width: 1000px) {
      width: 30px;
      height: 60px;
      font-size: 10px;
    }
    @media (max-width: 840px) {
      width: 20px;
      height: 40px;
      font-size: 12px;
    }
  }

  .product_variant .special-offer { right: 0; }

  .sizing_content {
    overflow: auto;

    .size_icon {
      width: 10%;
      height: auto;
      overflow: hidden;
      background: transparent;
      float: left;
      padding-right: 20px;
    }

    .t_wrap, .s_wrap { width: 100%; overflow: auto; }

    .tsg_size_table {
      width: 60%;
      float: left;
      td { padding: 5px; text-transform: uppercase; }
    }
  }

  .product-wrapper {
    background: #efeee8;
    padding: 0 0 120px 0;
    width: 100%;
    margin:0;
    margin-top: 60px;

    .part_1 { padding-top: 50px; }

    > .inner_bounds {
      overflow: auto;
      position: relative;
      max-width: calc(1600px - 24px);
      margin: 0 auto;
      width: calc(100% - 24px);
      padding: 0 12px;
    }

    @media (max-width: 1024px) {
      padding-bottom: 0;
      margin-top: 50px;
    }
  }

  .logo-item {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 4vw;
    min-width: 100px;
    position: absolute;

    img { width: 100%; height: auto; }
    @media (max-width: 1024px) { display: none; }
  }

  .product-image {
    width: calc(60% - 40px);
    float: left;
    background-size: cover;
    background-position: center center;
    margin-right: 10px;
    position: relative;

    .range-image {
      position: absolute;
      left: 25px;
      top: 0;
      font-size: 90px;
      float: left;
    }

    @media (max-width: 1024px) { margin-right: 0; }
    @media (max-width: 860px) { width: calc(100% - 10px); }
  }

  .product-details {
    width: calc(40% - 40px);
    float: left;
    position: relative;
    padding-bottom: 50px;
    padding-top: 20px;

    @media (max-width: 860px) { width: calc(100% - 10px); }

    h1 {
      font-size: 60px;
      line-height: 55px;
      padding-bottom: 20px;
      border-bottom: 8px solid black;

      @media (max-width: 1280px) { font-size: 40px; line-height: 40px; }
      @media (max-width: 1024px) { font-size: 30px; line-height: 30px; }
    }

    .product-group {
      text-transform: uppercase;
      margin-bottom: 30px;
      display: block;
      color: #b5b4ae;
      font-size: 20px;
    }

    .price {
      margin-bottom: 50px;
      overflow: auto;
      padding-bottom: 50px;
      font-family: trade-gothic-lt;

      .full_price {
        font-size: 40px;
        color: #333333;
        margin-right: 30px;
        font-family: trade-gothic-no-2-bold;
        float: left;
        line-height: 50px;
        span.euro { font-family: arial; font-weight: bold; }
      }

      .original_price {
        font-size: 30px;
        color: #b5b4ae;
        text-decoration: line-through;
        float: left;
        padding-top: 10px;
      }

      @media (max-width: 1280px) {
        margin-bottom: 25px;
        padding-bottom: 25px;
      }
      @media (max-width: 1024px) {
        margin-bottom: 50px;
        padding-bottom: 10px;
        .full_price { font-size: 30px; }
      }
    }

    .product-config-wrapper {
      background-image: linear-gradient(to right, black 33%, rgba(255, 255, 255, 0) 0%);
      background-position: top;
      background-size: 3px 2px;
      background-repeat: repeat-x;
      padding-bottom: 25px;

      .product-config {
        padding: 20px;
        text-transform: uppercase;
        overflow: auto;
        font-size: 20px;
        position: relative;
        background-image: linear-gradient(to right, black 33%, rgba(255, 255, 255, 0) 0%);
        background-position: bottom;
        background-size: 3px 2px;
        background-repeat: repeat-x;

        .header { overflow: hidden; }
        .description { float: left; width: 30%; color: #b5b4ae; }
        .info {
          float: left; width: 70%; padding-right: 25px;
          > span { position: absolute; right: 0; top: 0; }
        }
        .out-of-stock { float: right; opacity: 0.2; position: absolute; right: 0; top: 13px; }

        &.no-js .selections, &.ok-js .selections {
          overflow: hidden; height: auto; max-height: 0; transition: max-height 0.2s;
        }

        &.no-js:hover .selections, &.hover.ok-js .selections {
          max-height: 500px;
        }

        .selections .option {
          display: block; cursor: pointer; font-weight: normal; opacity: 0.5; transition: all 0.2s; text-decoration: none;

          > div { padding-top: 15px; padding-left: 30%; }
          &:hover { opacity: 1; color: #4a4a4a; }
          &.o-u-s { opacity: 0.8; color: #333; }
        }
      }
    }
  }

 
  .ous { display: none; }

  .image-index .index-item {
    margin: 8px; cursor: pointer;
    > img {
      width: 75px; aspect-ratio: 1 / 1;
      filter: grayscale(80%); cursor: pointer;
    }
    &.selected > img { filter: grayscale(0%); }
  }

  .product_navigation {
    padding: 15px 0 15px 30px;
    color: #ffffff;
    background: #000000;
    min-height: 25px;
    height: 25px;
    box-sizing: border-box;

    .prod_nav {
      display: block; float: left; text-transform: uppercase; opacity: 0;
      > span { font-size: 12px; }
      &.prod_next { display: none; float: right; }
    }
  }

  .product-description {
    background: #333333;
    padding: 72px 50px;
    color: #b4b5af;
    text-align: center;
    font-size: 27px;
    line-height: 37px;
    font-family: trade-gothic-lt;
    font-weight: normal;

    .inner_bounds { padding: 0 8.5%; }

    @media (max-width: 1024px) { font-size: 18px; line-height: 24px; }
  }

  /* Product Variants Styling */
  .product-variants {
    &.prod_attributes, &.prod-attributes {
      background: #111111;
      text-align: center;
      position: relative;
      max-height: 300px;
      overflow: hidden;
      padding-right: 5px;
    }

    .product_variant {
      width: calc(12.5% - 5px);
      display: inline-block;
      background-color: #f0efe8;
      margin-right: 5px;

      @media (max-width: 1280px) { width: calc(16.6666% - 5px); }
      @media (max-width: 1024px) { width: calc(33.333% - 5px); }
    }

    > .inner_bounds {
      max-width: calc(1600px - 48px);
      margin: 0 auto;
      width: calc(100% + 5px);

      @media (max-width: 1024px) { max-width: 100%; width: 100%; }
    }

  }


  .more_blend, .more-blend {
    position: relative;
    width: 100%;
    background: #333333;
    text-align: center;
    padding: 20px;
    color: #669c8f;
    text-transform: uppercase;
    font-size: 25px;
    z-index: 20;

    > div { margin-bottom: 20px; }

    .icon-btn-circle-plus, > div.closed { display: block; }
    .icon-btn-circle-minus, > div.open { display: none; }

    &.active, .selected & {
      .icon-btn-circle-plus, > div.closed { display: none; }
      .icon-btn-circle-minus, > div.open { display: block; }
    }
  }

  /* Features block */
  .product-features {
    background: #333333;
    padding: 50px 25px;
    color: #807f78;
    font-size: 24px;

    a { color: #669c8f; }

    .features-wrapper {
      padding: 0 15px;
      .product-info-header > span { float: right; }
    }
  }

  .feature-box {
    .feature-details-wrapper { max-height: auto; transition: max-height 0.2s; overflow: hidden; }
    &:hover .feature-details-wrapper { max-height: 10000px; }
  }

  .product-tab-section {
    &.no-js, &.ok-js {
      .product-info-content { max-height: 0; overflow: hidden; transition: max-height 0.2s; }
    }
    &.no-js:hover, &.ok-js.hover {
      .product-info-content { max-height: 10000px; }
    }
  }

  .product-info-content {
    overflow: hidden;
    height: 0;
    color: #807f78;
    background: #333333;
    font-size: 24px;

    &.selected { height: auto; overflow: auto; }

    h3 {
      border-top: 2px solid #807f78;
      border-bottom: 2px solid #807f78;
      margin-top: 0;
      padding: 25px 24px;
    }
  }

  .product-info-header {
    padding: 25px;
    border: none;
    background-image: linear-gradient(to right, #807f78 33%, rgba(255, 255, 255, 0) 0%);
    background-position: top;
    background-size: 3px 2px;
    background-repeat: repeat-x;
    text-transform: uppercase;
    color: #b4b5af;
    text-align: left;
    font-size: 22px;
    cursor: pointer;
  }

  .inner {
    display: block; padding: 24px; position: relative; width: 100%;
    a { display: block; }
    &.border-top { border-top: 2px solid #807f78; }
    @media (max-width: 1024px) { &.maxw { overflow: auto; max-width: 90vw; } }
  }

  .details-link {
    padding: 15px; font-size: 24px; cursor: pointer; display: block;
    &:hover { background: #f0efe8; color: #333333; }
    > span:first-child { min-width: 200px; width: 30%; display: inline-block; }
  }

  span.icon-btn-plus { display: block; }
  span.icon-btn-minus { display: none; }
  .hover {
    span.icon-btn-minus { display: block; }
    span.icon-btn-plus { display: none; }
  }

  .feature-row {
    display: flex; flex-wrap: wrap; margin: 0 auto; width: 100%; padding: 0 50px; box-sizing: border-box; color: #807f78;

    &:hover {
      background: #f0efe8; color: #333333;
      .icon img { display: none; &.hover { display: block; } }
    }

    .icon {
      width: 10%; float: left; text-align: center; max-width: 250px;
      img { width: auto; height: 75px; &.hover { display: none; } }
    }

    .header { width: 30%; font-family: trade-gothic-next, sans-serif; font-size: 24px; text-transform: uppercase; padding: 30px 25px 25px; }
    .description { width: 60%; padding: 25px; font-size: 18px; line-height: 22px; }
  }

  .product-feature-row {
    margin-bottom: 20px; padding: 0;

    .feature-cell-header { flex: 0.3; }
    .icon { flex: 0.4; margin-right: 40px; max-width: 80px; img { max-width: 40px; } }
    .header {
      flex: 0.6; font-family: trade-gothic-next, sans-serif; font-size: 24px; text-transform: uppercase; font-weight: normal; margin-top: 10px;
      @media (max-width: 1024px) { margin-bottom: 16px; }
    }
    .description { flex: 0.7; padding: 0; margin: 0; p { margin: 10px 0 25px 0; } }
  }

  .specs-content {
    color: #807f78; font-family: trade-gothic-next, sans-serif; font-size: 24px; text-transform: uppercase;
    table {
      width: 100%;
      tr { height: 40px; margin-bottom: 20px; > td:first-child { width: 10%; min-width: 150px; } }
    }
  }

  /* Linked Products */
  .product_linked_products { background: #111111; overflow: hidden; position: relative; }

  .product_match { width: 20%; max-width: 250px; float: left; background: #f0f0f0; margin-right: 10px; > .product-image { width: 100%; } }

  .item-wrapper .product-panel {
    width: 100%; aspect-ratio: 1 / 1; transition: all 0.25s ease-in-out; background-size: 100% 100%; position: relative;

    &:hover { background-size: 80% 80%; z-index: 20; > .info { opacity: 1; } }

    .info {
      position: absolute; bottom: 0; left: 0; z-index: 10; opacity: 0; color: #000; padding: 10px; transition: all 0.25s ease-in-out;
      h1 { font-size: 1.2vw; line-height: 1.3vw; margin: 0 0 3px; border-bottom: none; }
      .name { font-family: trade-gothic-lt; font-weight: normal; margin-bottom: 8px; }
      .price {
        font-size: 0.9vw; font-family: trade-gothic-lt; font-weight: bold; margin-bottom: 0;
        > span { text-decoration: line-through; color: #807f7a; font-size: 0.7vw; }
      }
    }

    .blend {
      position: absolute; width: 100%; height: 100%; background: url(/bd_xml_series/47/blend.png); background-size: 100% 100%; left: 0; top: 0; z-index: 20; opacity: 0.6; transition: all 0.25s ease-in-out;
    }

    @media (max-width: 1024px) {
      > .info { opacity: 1; }
      .info h1 { font-size: 16px; line-height: 18px; }
      .info .price, .info .price > span { font-size: 14px; line-height: 16px; }
    }
  }
}

/* Global specific utilities & overrides */
#matching-models { width: 100%; overflow: hidden; min-height: 100px; position: relative; margin: 8px 0; padding: 0 8px; }
#model-wrapper { width: 100%; gap: 8px; margin: 10px auto; padding: 0; transition: all 0.3s ease; position: relative; overflow: hidden; }

.vat-notice { font-size: 12px; font-style: italic; }
.seperator { height: 1px; width: 100%; border-top: 1px dotted #807f78; }

/* Body Contexts & Mobile Mode Adjustments */
body.bdh-debug .H5APP_ProductDetailX {
  .quantity-0 .ous { display: block; color: rgba(0, 0, 0, 0.2); }
}

.mode-mobile .H5APP_ProductDetailX {
  .sizing_content {
    .size_icon { width: 65px; }
    .tsg_size_table tr > td { &:first-child { padding-left: 0; } &:last-child { padding-right: 0; } }
  }
  .product-features { padding: 50px 0; .features-wrapper { padding: 0 5px; } }
  .product-info-content {
    h3 { line-height: 24px; padding: 15px 50px 10px 50px; }
    &.spare_content .inner { padding: 0 25px; }
  }
  .details-link { font-size: 18px; text-transform: uppercase; > span:first-child { min-width: 160px; } }
  .product-feature-row .header { font-size: 24px; line-height: 28px; }
  .specs-content { font-size: 18px; }
}

.mode-tablet .H5APP_ProductDetailX .product-feature-row .header { font-size: 22px; line-height: 24px; }