.single-product { .single-product-wrapper { & > .product { margin-top: 2rem; position: relative; &.thumbs-left { span.onsale { left: calc( 50% * 0.25 + 2.375rem); } } span.onsale { position: absolute; top: 1.25rem; left: 1.25rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.6rem; height: 1.6rem; border-radius: 0.188rem; font-size: 0.8rem; font-weight: 600; line-height: 0; text-transform: uppercase; color: $color_white; background-color: $color_main; z-index: 1; } .woocommerce-product-gallery { width: 55%; float: left; display: flex; flex-direction: row-reverse; position: relative; .woocommerce-product-gallery__trigger { position: absolute !important; top: 0.5rem; right: 0.5rem; z-index: 1; width: 2.2rem; height: 2.2rem; font-size: 0; color: $color_text_main; display: flex; align-items: center; justify-content: center; box-sizing: content-box; text-decoration: none; &::before { content: '\f002'; font-family: "Font Awesome 5 Free"; font-weight: 700; font-size: 1.2rem; display: inline-block; } } .flex-viewport { width: 75%; height: inherit !important; a { img { height: 100%; } } } .woocommerce-product-gallery__wrapper { margin: 0; width: 100%; .woocommerce-product-gallery__image { a { display: block; img { display: block; margin: 0 auto; width: 100%; min-height: 500px; } } } } .flex-control-nav { display: flex; flex-direction: column; padding-right: 1rem; overflow-y: scroll; width: 25%; li { width: 100%; display: flex; align-items: center; justify-content: center; img { width: 100%; -o-object-position: center center; object-position: center center; @include transition; } img:not(.flex-active) { opacity: 0.8; &:hover { opacity: 1; @include transition; } } } li:not(:last-child) { margin-bottom: 1em; } } } .entry-summary { width: 45%; float: left; padding-left: 2.5rem; margin-top: 0; .product_title { margin-top: 0.5rem; } .woocommerce-product-rating { display: flex; align-items: center; margin-bottom: 1rem; a { font-size: 0.75rem; margin-left: 0.6rem; span { color: inherit; } } } .price { display: inline-flex; align-items: center; font-weight: 600; font-size: 1.3rem; letter-spacing: 0.03rem; margin-top: 0; margin-bottom: 1.75rem; del { font-size: 1rem; opacity: 0.5; order: 2; margin-left: 0.4rem; } ins { background: transparent; } } form.variations_form { flex-direction: column; .woocommerce-variation-add-to-cart { display: flex; } } form.cart { margin-top: 1.5rem; padding-top: 2.5rem; border-top: 1px solid $color_border; display: flex; .quantity { margin-right: 1rem; .blw-quantity { height: 3.5rem; border: 1px solid $color_border_input; } } button.button { height: 3.5rem; width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; } } .product_meta { display: flex; flex-direction: column; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid $color_border; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; span { font-weight: 700; & >* { opacity: 0.6; font-weight: 600; } } } } .woocommerce-tabs { clear: both; padding-top: 3.75rem; ul.tabs { display: flex; align-items: flex-end; justify-content: center; margin-bottom: 3.4rem; &::before, &::after { content: '' !important; display: block; -webkit-box-flex: 1; -ms-flex: 1 0 auto; flex: 1 0 auto; position: relative !important; border: none; width: auto; height: 1px; background: $color_border; } li { flex: 0 1 auto; margin-right: -1px; border: 1px solid $color_border; border-width: 0px 0px 1px 0px; a { display: flex; align-items: center; justify-content: center; height: 2rem; padding: 0 1.5rem; font-size: 0.75rem; opacity: 0.6; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; } &:hover { a { background-color: $color_light_grey; } } } li.active { a { opacity: 1; background-color: $color_light_grey; } } } .woocommerce-Tabs-panel { table.woocommerce-product-attributes { font-size: 0.9rem; th { width: 250px; } td { p { margin: 0; } } } .woocommerce-Reviews { display: flex; justify-content: space-between; #comments, #review_form_wrapper { width: 47%; } } } } .related.products { padding-top: 2.5rem; margin-top: 3rem; border-top: 1px solid $color_border; ul { li { max-width: 100%; span.onsale { left: 1.9rem; } } } } } &.sidebar-left, &.sidebar-right { .product { .woocommerce-product-gallery { .woocommerce-product-gallery__wrapper { .woocommerce-product-gallery__image { a { img { min-height: 430px; } } } } } } } &.sidebar-left, &.sidebar-rigth { .product { .woocommerce-tabs { .woocommerce-Reviews { flex-wrap: wrap; #comments, #review_form_wrapper { width: 100%; } #review_form_wrapper { .comment-form-rating { padding-top: 0; } } } } } } } } @media ( max-width: 64rem ) { .single-product { .single-product-wrapper { .product { .woocommerce-product-gallery { width: 100%; float: none; } .entry-summary { width: 100%; float: none; padding-left: 0; } &.thumbs-left { span.onsale { left: calc( 50% * 0.25 + 9.375rem); } } } } } } @media ( max-width: 48rem ) { .single-product { .single-product-wrapper { .product { padding: 0 !important; &.thumbs-left { span.onsale { left: calc( 50% * 0.25 + 7.375rem); } } .woocommerce-product-gallery { max-height: 500px; .flex-control-nav { width: calc(25% + 0.25em); } } .woocommerce-Tabs-panel { table.woocommerce-product-attributes { th { width: 150px !important; } } .woocommerce-Reviews { flex-direction: column; #comments, #review_form_wrapper { width: 100% !important; } } } .related.products { ul.products { li { .woocommerce-loop-product__title { font-size: 1.1rem; line-height: 1.6rem; } .product-cat { margin-top: 0.5rem; margin-bottom: 0; } .star-rating { margin-top: 0.5rem; } } } } } } } } @media ( max-width: 42rem ) { .single-product { .single-product-wrapper { .product { .entry-summary { .product_title { font-size: 1.5rem; } p.price { padding: 0; } p.stock { margin-top: 0; } .product_meta { margin-top: 1.5rem; padding-top: 1.5rem; } form.cart { margin-top: 0; .quantity { width: 10rem; } } } .woocommerce-tabs { ul.tabs { flex-direction: column; margin-bottom: 0; li { width: 100%; border-bottom: 0; } } } .related.products { ul.products { grid-template-columns: repeat(2, 1fr); } } } } } } @media ( max-width: 26rem ) { .single-product { .single-product-wrapper { .product { span.onsale { left: calc( 50% * 0.15) !important; } .woocommerce-product-gallery { flex-direction: column; .flex-viewport { width: 100%; } .flex-control-nav { flex-direction: row; flex-wrap: wrap; width: 100%; padding-right: 0; overflow-y: unset; li { width: 21.5%; margin-top: 1rem; margin-right: 1rem; margin-bottom: 0 !important; &:nth-child(4n) { margin-right: 0; } } } } &.thumbs-left { span.onsale { left: calc( 50% * 0.25 + 4.375rem); } } .woocommerce-Tabs-panel { table.woocommerce-product-attributes { th { width: fit-content !important; } } .woocommerce-Reviews { flex-direction: column; #comments, #review_form_wrapper { width: 100% !important; } } } .related.products { ul.products { grid-template-columns: repeat(1, 1fr); } } } } } }