table.variants {text-align: center; margin: 0;}
table.variants td, table.variants th {padding: 0.3rem 0.25rem 0.4rem; line-height: 1.2;}
table.variants td {border-bottom: 1px solid #bbb; border-right: 1px solid #bbb;}
table.variants td:last-child { border-right: 0;}
table.variants {border-bottom: 3px solid #26baf2;}
table.variants th {background: #26baf2; color: white; position: relative; font-size: 0.8rem; line-height: 1.1; padding: 0.4rem 0.75rem 0.5rem;}
table.variants tr th:first-child::before {content: ""; height: 100%; width: 0.75rem; left: 0; top: 0; position: absolute; background: #26baf2; margin-left: -.75rem; border-top-left-radius: .75rem; border-bottom-left-radius: .75rem;}
table.variants tr th:last-child::after {content: ""; height: 100%; width: 0.75rem; right: 0; top: 0; position: absolute; background: #26baf2; margin-right: -.75rem; border-top-right-radius: .75rem; border-bottom-right-radius: .75rem;}
table.variants tr:last-child td {border-bottom: 0;} 
table.variants .addtocart {font-size: 0.8rem; font-weight: bold; border-radius: 0.2rem; color: white; background: #72be44; display: inline-block; padding: 0.25rem 1rem 0.3rem; white-space: nowrap; text-decoration: none; position: relative; top: 0.05rem;}
table.variants a {color: #404042; text-decoration: none;}
table + div {color: #aaa; font-size: 0.8rem; margin-top: 0.2rem;}

ul + table.specs {margin-top: 2rem;}
table.specs {text-align: left; margin: 0; width: 100%;}
table.specs td {padding: 0.3rem 1rem 0.4rem 0; line-height: 1.2; border-bottom: 1px solid rgba(0,0,0,0.15)}
table.specs tr:first-child td {padding-top: 0.1rem;}
table.specs tr:last-child td {border-bottom: 0;}
table.specs tr td:first-child {color: #aaa;}

.sku {color: #aaa; margin-bottom: 1.25rem; font-size: 0.9rem;}
.price {font-size: 2rem; margin-top: 1rem; font-weight: 700;}
.price span {font-size: 0.9rem; font-weight: 500;}

.green {color: #4d9c20;}
.orange {color: rgb(255, 102, 0);}
.red {color: red;}
.delivery_and_stock {margin-top: 0.25rem;}
strong.dot::before {content: ""; display: inline-block; border-radius: 100%; width: 0.8rem; height: 0.8rem; background: silver; margin-right: 0.5rem; vertical-align: middle; position: relative; bottom: 0.05rem;}
strong.dot.small::before {width: 0.4rem; height: 0.4rem; margin-inline: 0.3rem;}
strong.dot.green::before {background: #4d9c20;}
strong.dot.orange::before {background: rgb(255, 102, 0);}
strong.dot.red::before {background: red;}


/* variant selector buttons */
#filterbuttons {margin-top: 1rem;}
#filterbuttons a {color: #404042; text-decoration: none; display: inline-block; padding: 0.1rem 0.5rem; margin: 0.15rem 0.3rem 0.5rem 0; border: 1px solid rgba(0,0,0,0.15);}
#filterbuttons a.selected {color: #00a8e9; border: 1px solid rgba(0, 168, 233,0.5);}
#filterbuttons a.fuzzy {color: silver;}
#filterbuttons .label {display: block; font-weight: bold; margin: 0.25rem 0;}

/* image gallery */
#imagegallery #imagegallery_innerdiv {display: flex; position: relative; margin-right: 4rem; overflow: hidden; width: calc(100% - 4rem);}
#imagegallery #imagegallery_thumbs {width: 16.5%; position: absolute; height: 100%; overflow: hidden;}
#imagegallery #imagegallery_thumbs > ul {margin-top: 55%;}
#imagegallery #imagegallery_thumbs > ul li {position: relative; list-style: none; margin: 20% 20% 45% 20%; width: 60%; height: 0; padding-bottom: 60%; background: url('') center center / contain no-repeat;}
#imagegallery #imagegallery_thumbs > ul li a {display: block; width: 0; height: 0; padding: 100% 0 100% 0 0; overflow: hidden;}
#imagegallery #imagegallery_thumbs > ul li a img {position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%; object-fit: contain; user-select: none;}
#imagegallery #imagegallery_thumbs > ul li a > span {background: #fff; position: absolute; display: flex; width: 100%; height: 100%; align-items: center; color: rgba(0,0,0,0.25); justify-content: center; font-size: 0.5rem; text-align: center;}
#imagegallery #imagegallery_thumbs > ul li a::before {content: ""; position: absolute; margin: -32%; width: 164%; height: 164%;}
#imagegallery #imagegallery_thumbs ul li a:hover::before {box-shadow: inset 0px 0px 0px 1px rgba(58, 45, 45, 0.25);}
#imagegallery #imagegallery_thumbs > ul li.selected a::before {box-shadow: inset 0px 0px 0px 1px #00a8e9;}
#imagegallery #imagegallery_thumbs > ul li:last-child, #imagegallery #imagegallery_thumbs > ul li:first-child {
    position: absolute; 
    z-index: 1; top: 0; 
    margin: 0; width: 100%; 
    padding-bottom: 30%; 
    background: white; 
    box-shadow: none!important;
    cursor: pointer;
}
#imagegallery #imagegallery_thumbs > ul li:last-child {top: auto; bottom: 0;}
#imagegallery #imagegallery_thumbs > ul li:first-child::before,
#imagegallery #imagegallery_thumbs > ul li:last-child::before {content: "›"; height: 2.35rem; line-height: 2rem; display: block; font-size: 250%; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg) scaleY(1.4);}
#imagegallery #imagegallery_thumbs > ul li:first-child::before {transform: translate(-50%, -50%) rotate(-90deg) scaleY(1.5);}
#imagegallery[data-progress="0"] #imagegallery_thumbs > ul li:first-child {display: none;}
#imagegallery[data-progress="1"] #imagegallery_thumbs > ul li:last-child {display: none;}
#imagegallery #imagegallery_main {margin-left: 20%; width: 83.5%; position: relative; padding-bottom: 80%;}
#imagegallery #imagegallery_main > ul {width: 100%; height: 0; padding-bottom: 100%; display: block; position: absolute;}
#imagegallery #imagegallery_main > ul li {width: 100%; list-style: none;}
#imagegallery #imagegallery_main > ul li a {display: block; padding-bottom: 100%; position: relative;}
#imagegallery #imagegallery_main > ul li a img {position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 70%; max-height: 70%; object-fit: contain;}
#imagegallery #imagegallery_main > ul li a > span {background: #fff; position: absolute; display: flex; width: 100%; height: 100%; align-items: center; color: rgba(0,0,0,0.25); justify-content: center; text-align: center;}



/* productintro (with image gallery) */
#productintro {position: relative; min-height: 29rem;}
#productintro > div > * {position: relative; left: calc(100% - 30rem); width: 30rem;}
#productintro #imagegallery {position: absolute; left: 0; width: calc(100% - 30rem); max-width: calc(100% - 30rem); top: 0;}
#productintro > div > ul {padding-left: 1rem;}
#productintro::before {content: ""; width: 0; height: 0; padding-bottom: 43%; float: left;}

#buybutton {margin: 1rem 0 1.25rem 0;}
#buybutton .twocols {columns: 2; margin: 0.75rem 0 0;}
#buybutton > div:first-child {display: flex; gap: 0.95rem;}
#buybutton > div:first-child input {width: 3rem; padding: 0 0.25rem; text-align: center;}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


del {font-size: 50%; color: silver; display: block; text-decoration-thickness: 1px;}

#producttabbar {margin: 3rem 0 0; border-top: 1px solid rgba(0, 168, 233,0.5); border-bottom: 1px solid rgba(0, 168, 233,0.5);}
#producttabbar ul {padding: 0; margin: 0; display: flex;}
#producttabbar ul li {list-style: none; margin-right: 2rem;}
#producttabbar ul li a {display: block; line-height: 2.3rem; height: 2.5rem; text-decoration: none; color: #00a8e9; font-size: 1rem; font-weight: bold;} 

#productdetails {font-size: 0.9rem;}
#productdetails ul {margin-left: 1rem;}
#productdetails ul li p {margin: 0;}
#productdetails {display: flex; gap: 3rem; flex-wrap: wrap;}
#productdetails > div:nth-child(2) {width: 450px; min-width: 450px;}
#productdetails > div:nth-child(2) ul {margin: 0;}
#productdetails > div:nth-child(2) > ul {position: relative; bottom: 0.3rem;}
#productdetails > div:nth-child(2) ul li {line-height: 1.3; list-style: none; position: relative; padding: 0.6rem 0 0 1.2rem;}
#productdetails > div:nth-child(2) ul li::before {
    content: ""; 
    background: url(/img/fontawesome-solid/chevron-right.svg) center 0.4rem / contain no-repeat;
    width: 0.5rem;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0.35rem;
    opacity: 0.75;
}
#productdetails > div:nth-child(1) {flex-grow: 1;}
#productdetails h2 {margin-bottom: 1.25rem;}

.products {display: grid; grid-gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); grid-auto-rows: auto;}
.products ul li {position: relative; list-style: none; text-align: center; font-size: 0.8rem;}
.products ul li a {text-decoration: none; color: #404042; display: block;}
.products ul li a span.imgholder {display: block; width: 100%; position: relative; padding-bottom: 100%; margin-bottom: 0.35rem;}
.products ul li a span.imgholder img {object-fit: contain; position: absolute; display: block; margin: 10%; height: 80%; width: 80%;}
.products ul li a strong {font-size: 0.9rem; font-weight: 500;}
.products ul li a span.imgholder > span {background: #fff; position: absolute; display: flex; width: 100%; height: 100%; align-items: center; color: rgba(0,0,0,0.25);}

@media only screen and (max-width: 1200px) {
  table.variants tr th:first-child::before {content: none;}
  table.variants tr th:last-child::after {content: none;}
  table.variants tr th:first-child {border-top-left-radius: 0.75rem;}
  table.variants tr th:last-child {border-top-right-radius: 0.75rem;}
}


@media only screen and (max-width: 900px) {
    #productdetails {display: block;}
    #productintro > div > * {left: 0%; width: 100%;}
    #productintro #imagegallery {max-width: 30rem; position: relative; width: 100%;}
    #imagegallery #imagegallery_innerdiv {display: block; margin-right: 0; width: 100%;}
    #imagegallery #imagegallery_thumbs {width: 100%; position: relative;}
    #imagegallery #imagegallery_thumbs > ul {margin-top: 10%; column-count: 4; column-gap: 0.5rem;}
    #imagegallery #imagegallery_thumbs > ul li {margin-top: 0!important;}
    #imagegallery #imagegallery_thumbs > ul li:first-child, #imagegallery_thumbs > ul li:last-child {display: none;}
    #imagegallery #imagegallery_main {width: 100%; margin-left: 0; padding-bottom: 100%; overflow: hidden;}
    #imagegallery #imagegallery_main > ul li a img {width: 80%; height: 80%;}
}
@media only screen and (max-width: 500px) {
  #productdetails > div {min-width: 0!important; max-width: 100%!important;}
}