table.variants {text-align: center; margin: 0; border-collapse: collapse; margin-bottom: 0.5rem;}
table.variants td, 
table.variants th {padding: 0.3rem 0.5rem 0.4rem; line-height: 1.2; font-size: 0.9rem;}
table.variants th {border: 1px solid black;}
table.variants td {border: 1px solid rgba(0, 0, 0,0.1);}
table.variants {border-bottom: 3px solid black;}
table.variants th {
  background: black; color: white; position: relative; line-height: 1.1; padding: 0.4rem 0.75rem 0.5rem;
}
table.variants tr:last-child td {border-bottom: 0;} 
table.variants a {text-decoration: none; color: rgba(0, 0, 0,0.5);}
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: rgba(0, 0, 0, 0.25); margin-block: -0.2rem 1.25rem; font-size: 0.9rem;}
.price {font-size: 2rem; margin-top: 1rem; font-weight: 600;}
.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: black; text-decoration: none; display: inline-block; padding: 0.1rem 0.65rem; margin: 0.15rem 0.2rem 0.5rem 0; border: 1px solid rgba(0,0,0,0.15);}
#filterbuttons a.selected {color: black; border: 1px solid rgba(0, 0, 0, 1);}
#filterbuttons a.fuzzy {color: silver;}
#filterbuttons .label {display: block; font-weight: 600; margin: 0.25rem 0;}

/* image gallery */
#imagegallery {min-height: 29rem;}
#imagegallery img {max-height: 29rem; width: 100%; object-fit: contain;}


/* 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% - 34rem); max-width: calc(100% - 34rem); 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, 0, 0,0.5); border-bottom: 1px solid rgba(0, 0, 0,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: black; font-size: 1rem; font-weight: 600;} 

#productdetails {font-size: 1rem;}
#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: 30rem; min-width: 30rem;}
#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.2; list-style: none; position: relative; padding: 0.6rem 0 0 1.2rem;}
#productdetails > div:nth-child(2) ul li::before {
    content: ""; 
    background: url(/img/chevron-right.svg) center 0.4rem / contain no-repeat;
    width: 0.5rem;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0.3rem;
    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: 900px) {
    #imagegallery {min-height: 0;}
    #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;}
}