/**
 * TODO: Printing.
 */

@font-face {
    font-family: Primary;
    src: url(/public/fonts/ReadexPro-Light.ttf);
}

@font-face {
    font-family: Secondary;
    src: url(/public/fonts/ReadexPro-Regular.ttf);
}

@font-face {
    font-family: Stencil;
    src: url(/public/fonts/SairaStencilOne-Regular.ttf);
}

/**
 * Global reset
 */
* {
    width: auto;
    margin: 0;
    padding: 0;
    outline: unset;
    box-sizing: border-box;
    border: 0;
    background-color: unset;
    font-weight: normal;
}

:root {
    --font: rgb(34, 34, 34);
    --line-height: 1.7rem;

    --clickable: #a61313;
    --selection: rgba(2, 94, 214, 0.7);
    --border: #222222;

    --bg: rgb(200, 200, 200);
    --bg-gallery: rgb(240, 240, 240);
    --bg-main: rgb(230, 230, 230);
    --bg-disabled: rgb(130, 130, 130);
    --bg-shadow: rgb(70, 70, 70);

    --light: rgb(240, 240, 240);
    --medium: rgb(200, 200, 200);
    --dark: rgb(170, 170, 170);

    scroll-behavior: smooth;
    line-height: 1.7rem;
    font-family: Primary, Tahoma, Verdana, sans-serif;
    font-style: normal;
    font-size: 16px;
}

[data-theme='dark'] {
    --font: rgb(233, 233, 233);
    --border: #E9E9E9;

    --bg: rgb(26, 26, 26);
    --bg-gallery: rgb(80, 80, 80);
    --bg-main: rgb(0, 0, 12);
    --bg-disabled: rgb(110, 110, 110);
    --bg-shadow: rgb(35, 35, 35);

    --light: rgb(233, 233, 233);
    --medium: rgb(70, 70, 70);
    --dark: rgb(35, 35, 35);
}

::placeholder {
    font-family: monospace, sans-serif;
}

::selection {
    color: white;
    background: var(--selection);
}

:focus {
    outline-offset: 2px;
    outline: var(--font) dotted 2px;
}

a:link,
a:visited {
    font-family: Secondary, Tahoma, Verdana, sans-serif;
    text-decoration: none;
    color: var(--clickable);
}
a:hover {
    color: var(--clickable);
    text-decoration: underline;
}

address {
    margin-bottom: 1rem;
    line-height: 1.5rem;
    font-style: normal;
    white-space: nowrap;
}

article > * {
    margin: 1.5rem 2rem;
}

article > h3 {
    margin: 1.5rem 0;
}

article ul {
    margin-left: 2.5rem;
}

b {
    font-weight: bold;
}

body {
    background-color: var(--bg);
    color: var(--font);
    transition: 0.3s;
}

html,
body {
    height: 100%;
}


button {
    background-color: var(--clickable);
    border-radius: 1rem;
    color: var(--light);
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    line-height: 1.8rem;
    padding: 0 0.8rem;

}

button:disabled,
button.disabled {
    background-color: var(--bg-disabled);
    cursor: default;
}

button:hover:enabled {
    background-color: red;
}

button.round {
    padding: 0.4rem;
    border-radius: 50%;
    line-height: revert;
}



fieldset {
    margin: 3rem 2rem;
    border: 1px solid var(--font);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
}
fieldset legend {
    padding: 0.2rem 1rem;
    border: 1px solid var(--font);
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}
fieldset table th {
    white-space: nowrap;
    vertical-align: top;
    text-align: right;
    padding-right: 0.5rem;
    font-weight: bold;
}
/*
.h-captcha {
    width: 300px;
    margin: 0 auto;
}
*/
h1,
h2,
h3,
h4,
h5 {
    font-family: Secondary, Tahoma, Verdana, sans-serif;
    /*font-weight: bold;*/
    line-height: 2rem;
    text-transform: uppercase;
}
h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
h1 > span {
    text-transform: none;
}
h2 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}
h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    text-decoration: underline;
}
h4 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

header {
    position: relative;
    padding: 0.7rem;
}

ol {
    margin-left: 2rem;
}
ol:not(:last-child) {
    margin-bottom: 2rem;
}
ol li {
    padding-left: 0.3rem;
}

p:not(:last-child) {
    margin-bottom: 2rem;
}

h1 + p {
    margin-top: 0;
}

input,
select,
textarea {
    padding: 0.4rem 0.4rem;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    min-width: 10rem;
    color: var(--font);
    font-family: monospace, sans-serif;
    font-size: 0.95rem;
}

input:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
    border: 1px solid var(--clickable);
}

input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 5px var(--font);
    outline: none;
}

main {
    padding: 2rem 3rem 3rem;
    color: var(--font);
    min-width: fit-content;
    background-color: var(--bg-main);
}
main > *:not(:last-child) {
    margin-bottom: 1.5rem;
}

section {
    margin: 1.5rem 0;
}
section a {
    margin: 0 0.3rem;
}

table {
    border-collapse: collapse;
}

textarea {
    resize: vertical;
}

ul {
    margin-left: 2rem;
}
ul:not(:last-child) {
    margin-bottom: 2rem;
}


/**
 * NAMED ELEMENTS
 */
#account-menu {
    position: absolute;
    min-width: 15rem;
    overflow: hidden;
    margin: 0;
    padding: 1rem 0;
    z-index: 1;
    background-color: var(--dark);
    border-radius: 1rem;
    box-shadow: 0 0 1rem black;
    text-align: center;
}
#account-menu a,
#account-menu button {
    display: block;
    width: 100%;
    padding: 0.2rem 1rem;
    margin: 0;
    white-space: nowrap;
    border-radius: 0;
    background-color: transparent;
    color: var(--font);
    text-align: left;
    text-decoration: none;
    line-height: 1.7rem;
}
#account-menu a:hover,
#account-menu button:hover {
    color: white;
    background-color: var(--clickable);
}

#bad-option {
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: red;
}
#bad-option {
    position: absolute;
}
#bad-option.hide {
    display: none;
}

#btn-go-top {
    position: fixed;
    padding: 0;
    width: 3rem;
    height: 2.5rem;
    bottom: 0;
    right: 1rem;
    border-radius: 1rem 1rem 0 0;
    background-color: rgba(34, 34, 34, 0.4);
    cursor: pointer;
    display: none;
    z-index: 100;
}
#btn-go-top:hover {
    background-color: var(--clickable);
}
#crumbs {
    margin-left: 6rem;
}
#crumbs a:link,
#crumbs a:visited {
    font-family: Secondary, Tahoma, Verdana, sans-serif;
    text-transform: capitalize;
}
#crumbs a:not(:last-child)::after {
    display: inline-block;
    content: '/';
    margin: 0 0.25rem;
    color: var(--font);
    text-decoration: none;
}

#footer {
    padding: 2rem 1rem;
}
#footer a:link,
#footer a:visited {
    font-family: Secondary, Tahoma, Verdana, sans-serif;
}
#footer a:hover {
    color: var(--clickable);
}

#legal {
    line-height: 4.5rem;
}
#legal a:link,
#legal a:visited {
    display: inline-block;
    margin-left: 1rem;
    color: var(--font);
}
#legal a:hover {
    color: var(--clickable);
}

#links {
    display: grid;
    width: fit-content;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin: 0 auto;
    padding: 2rem 1rem;
    gap: 5rem;
}

#links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    line-height: 2rem;
}

#logo {
    position: absolute;
    width: 8rem;
    height: 8rem;
    bottom: -2.5rem;
    left: 1rem;
    display: inline-block;
    color: var(--font);
}
#logo span {
    position: absolute;
    top: 3rem;
    left: 8.5rem;
    font-size: 2rem;
    white-space: nowrap;
}


/**
 * Navbar
 */
#navbar {
    width: 100%;
    text-align: right;
}
#navbar > * {
    vertical-align: middle;
}
#navbar a {
    display: inline-block;
    padding: 0 0.5rem;
    border-radius: 1.5rem;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 2rem;
}
#navbar a:link,
#navbar a:visited {
    color: var(--font);
}
#navbar a:hover {
    background-color: var(--clickable);
    color: var(--light);
}
#navbar a.active {
    color: var(--clickable);
}
#navbar a.active:hover {
    color: var(--clickable);
    background-color: unset;
}

#ordering.hide {
    visibility: hidden;
}

#sa-links {
    background-image: url('/public/images/flag.png');
    background-position: top;
    background-size: cover;
    text-align: center;
    text-shadow: 0 0 3px var(--medium);
}
[data-theme='dark'] #sa-links {
    background-color: var(--dark);
}
#sa-links * {
    text-align: center;
}
#sa-links .wrapper {
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.4fr 2fr 0.4fr;
    gap: 2rem;
    align-items: center;
}
#sa-links img {
    width: 20vh;
    filter: drop-shadow(0 0 3px var(--medium));
}
#sa-links p {
    margin: 1rem 2rem;
    font-size: 1.25rem;
    line-height: 2rem;
    font-weight: bold;
}

#search {
    display: inline-block;
}
#search input {
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 1.2rem;
    color: transparent;
    margin-right: -2.8rem;
    min-width: unset;
    padding: 0 3rem 0 1rem;
    line-height: 2.4rem;
    transition: all 0.4s ease-in-out;
    width: 0;
}
#search input:focus {
    background-color: var(--bg-main);
    border: 1px solid var(--font);
    box-shadow: none;
    color: var(--font);
    width: 40vw;
}

#sm-logo {
    position: relative;
    display: inline-block;
    top: 1rem;
    width: 3rem;
    height: 3rem;
    margin: 0 1rem;
}

/* Only unhidden in staging environment */
#test-site-flag {
    display: none;
    background-color: red;
    color: white;
    padding: 0.5rem;
    text-align: center;
}
#test-site-flag h2 {
    margin: 0;
    padding: 0;
}

/**
 * Template toolbar
 */
#tmpl-tb {
    margin: 0.5rem 0;
    padding-right: 0.3rem;
    white-space: nowrap;
}
#tmpl-tb button {
    line-height: 2rem;
    margin: 0 0.2rem;
    vertical-align: middle;
}
#tmpl-tb label {
    display: none;
}
#tmpl-tb button > span,
#tmpl-tb button > span::after {
    margin-left: 0.15rem;
}
#tmpl-tb button.icon-only {
    padding: 0.35rem;
    line-height: 0;
}

#worldwide {
    min-height: 40vh;
    background-image: url('/public/images/transportation.webp');
    background-position: center bottom;
    background-color: var(--medium);
    background-size: cover;
    text-align: center;
    color: var(--font);
    text-shadow: 0 0 3px var(--medium);
}
#worldwide img {
    width: 30vh;
    filter: drop-shadow(0 0 3px var(--medium));
}
#worldwide a {
    display: inline-block;
    margin: 2rem;
    text-align: center;
    vertical-align: middle;
}


/**
 * Classes
 */
tr.active {
    background-color: var(--selection) !important;
}
tr.active td {
    color: var(--light);
}

tr.clickable:hover,
table.hilite-row tbody tr:hover {
    background-color: var(--clickable) !important;
}
tr.clickable:hover td {
    color: white;
    cursor: pointer;
}
table.hilite-row tbody tr:hover td {
    color: white;
}

.center {
    text-align: center;
}

.clickable:hover {
    cursor: pointer;
}

.content {
    padding: 3rem;
    color: var(--font);
    min-width: fit-content;
}

.critical {
    color: #a61313;
    font-weight: bold;
}

ul.features li {
    list-style: none;
    line-height: 2rem;
    position: relative;
    margin-left: 1rem;
}
ul.features li::before {
    content: '\279C';
    position: absolute;
    left: -1.4rem;
}

.filter {
    width: 100%;
    text-align: center;
}
.filter > * {
    line-height: 1.7rem;
    margin: 0.25rem;
}
.filter label.option {
    display: inline-block;
    grid-template-columns: unset;
    grid-gap: unset;
    margin-top: unset;
}


.flex-tiles {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
}

.flex-tiles a {
    display: inline-block;
    padding: 1rem;
    margin: 0.5rem;
    text-align: center;
    background-color: var(--bg-gallery);
    border-radius: 1rem;
    border: 1px solid var(--dark);
    color: var(--font);
    min-width: min-content;
}

.flex-tiles a:hover {
    cursor: pointer;
    border: 1px solid var(--clickable);
    text-decoration: none;
}

.flex-tiles img {
    width: 88px;
}

.flex-tiles svg {
    fill: var(--font);
    height: 72px;
    margin: 8px 0;
    width: 72px;
}

.flex-tiles h4,
.flex-tiles img,
.flex-tiles svg {
    filter: drop-shadow(0 0 3px var(--dark));
}



.form {
    min-width: fit-content;
    width: 70%;
    margin: 1.5rem auto;
}

.form > *:not(:last-child) {
    margin-bottom: 2rem;
}
.form .required::before {
    display: inline-block;
    content: '*';
    padding-right: 0.2rem;
    color: #a61313;
    font-weight: bold;
}

.form-head {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem;
    border-bottom: 1px solid var(--bg);
    margin-bottom: 2rem;
}

.form-head #title {
    margin: unset;
    white-space: nowrap;
}

.form-head .toolbar {
    padding: 0;
    margin-left: 2rem;
}



.fraction {
    padding-right: 0.25rem;
}

.gallery {
    padding: 1rem;
    min-width: 20rem;
    background-color: var(--bg-gallery);
    border-radius: 1rem;
    border: 1px solid var(--bg);
    text-align: center;
    position: relative;
}
.gallery img {
    width: 100%;
    filter: drop-shadow(0 0 3px var(--bg));
    object-fit: contain;

    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
[data-theme='dark'] .gallery img {
    filter: drop-shadow(1px 1px 2px var(--bg)) brightness(0.8) contrast(1.1);
}

.grid {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
    align-items: stretch;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}
.grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.error,
.error * {
    color: #a61313;
    font-weight: bold;
}
.error input,
.error select,
.error textarea {
    border-color: #a61313;
    background-color: rgba(221, 184, 184, 0.8);
}

div.error {
    background-image: url('/public/icons/error.svg');
    background-repeat: no-repeat;
    background-position: 0.5rem;
    background-size: 4rem;
    min-height: 4rem;
    padding: 1rem 0 1rem 5rem;
    border: 1px solid #a61313;
    background-color: rgba(221, 184, 184, 0.8);
    color: #a61313;
    font-weight: bold;
}

span.error {
    text-align: right;
}

span.error span {
    text-align: left;
}

.hidden {
    display: none;
}

.invisible {
    visibility: hidden;
}

.flex {
    display: flex;
}

.block {
    display: block;
}

.hide {
    display: none;
}

[class^='icon'] {
    display: inline-block;
}
.icon-only {
    padding: 0.3rem;
    line-height: 1rem;
}
[class^='icon']:not(.icon-right)::before,
.icon-right::after {
    position: relative;
    display: inline-block;
    width: 1.3rem;
    height: 1.3rem;
    content: '';
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    vertical-align: middle;
}
.icon-left::before {
    top: -2px;
    margin-right: 0.4rem;
}

.icon-account::before {
    background-image: url('/public/icons/light/account_circle.svg');
}
.icon-expand-more::after {
    background-image: url('/public/icons/light/expand_more.svg');
}
.icon-add::before {
    background-image: url('/public/icons/light/add.svg');
}
.icon-cart::before {
    background-image: url('/public/icons/light/shopping_cart.svg');
}
.icon-close::before {
    background-image: url('/public/icons/light/close.svg');
}
.icon-delete::before {
    background-image: url('/public/icons/light/delete.svg');
}
.icon-edit::before {
    background-image: url('/public/icons/light/edit.svg');
}
.icon-save::before {
    background-image: url('/public/icons/light/save.svg');
}
.icon-expand-less::before {
    background-image: url('/public/icons/dark/expand_less.svg');
}
[data-theme='dark'] .icon-expand-less::before {
    background-image: url('/public/icons/light/expand_less.svg');
}
.icon-fax::before {
    background-image: url('/public/icons/dark/fax.svg');
}
[data-theme='dark'] .icon-fax::before {
    background-image: url('/public/icons/light/fax.svg');
}
.icon-mail::before {
    background-image: url('/public/icons/dark/mail.svg');
}
[data-theme='dark'] .icon-mail::before {
    background-image: url('/public/icons/light/mail.svg');
}
.icon-mode::before {
    background-image: url('/public/icons/light/dark_mode.svg');
}
[data-theme='dark'] .icon-mode::before {
    background-image: url('/public/icons/light/light_mode.svg');
}
.icon-menu::before {
    background-image: url('/public/icons/dark/menu.svg');
}
.icon-password::before {
    background-image: url('/public/icons/light/password.svg');
}
.icon-phone::before {
    background-image: url('/public/icons/dark/phone.svg');
}
[data-theme='dark'] .icon-phone::before {
    background-image: url('/public/icons/light/phone.svg');
}
.icon-remove::before {
    background-image: url('/public/icons/light/remove.svg');
}
.icon-search::before {
    background-image: url('/public/icons/light/search.svg');
}


.input-pwd {
    width: 100%;
}

.input-pwd-vis {
    fill: var(--font);
    height: 1.25rem;
    left: -2.25rem;
    position: relative;
    width: 1.25rem;
    vertical-align: middle
}


.left {
    text-align: left;
}

table.list {
    width: 100%;
}
table.list thead th {
    padding: 0.5rem;
    vertical-align: bottom;
    font-weight: bold;
}
table.list tbody tr:not(.active):nth-child(even) {
    background-color: var(--bg);
}

table.list thead {
    background-color: var(--bg-main);
}
table.list td {
    padding: 0.5rem;
}
table.list td:empty::after {
    position: relative;
    content: '\a0';
}

ul.list {
    list-style-type: none;
}
ul.list li {
    margin-bottom: 2rem;
}

[data-theme='dark'] .logo {
    content: url('/public/images/ch.logo.dark.svg');
}

ul.notes li {
    position: relative;
    margin-left: 1rem;
    list-style: none;
    line-height: 2rem;
    font-style: italic;
}
ul.notes li::before {
    position: absolute;
    left: -1.25rem;
    content: '\2217';
    font-style: normal;
}

/*.option span:first-of-type {*/
.option .label {
    text-align: right;
    white-space: nowrap;
}

.form .option,
.options .option {
   display: grid;
   grid-template-columns: minmax(10rem, 15%) 1fr;
   grid-gap: 1rem;
   margin-top: 1rem;
}

/*
.form .option {
    display: grid;
    grid-template-columns: minmax(10rem, 15%) 1fr;
    grid-gap: 1rem;
    margin-top: 1rem;
}

.options label.option {
   display: block;
   margin: 1rem 0;
}

.options label.option span {
   display: inline-block;
   min-width: 10rem;
   margin-right: .5rem;
   text-align: right;
}

.options input,
.options select {
   min-width: 40%;
}
*/
.sales .price {
    font-family: Secondary, Verdana, Tahoma, sans-serif;
}
.price > .label {
    margin-right: 0.5rem;
}
.price > .item {
    font-size: 1.35rem;
    margin-right: 1rem;
}
.price > .currency,
.price > .value {
    font-size: 1.75rem;
}

td.price:not(:empty):before {
    content: '$';
    padding-right: 0.1rem;
}

.product {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.product > * {
    padding: 1rem;
    margin-bottom: 1rem;
}
.product article {
    flex-grow: 1;
}
.product h1 {
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--font);
}
.product .desc > * {
    margin-bottom: 1rem;
}
.product .gallery {
    flex-grow: 0;
    width: 10%;
    padding: 1rem 0;
}

.sales {
    position: relative;
}

.sales .stock {
    text-transform: uppercase;
    font-size: 1.25rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 1.5rem;
}
.sales .stock.call::before {
    content: 'CALL FOR AVAILABILITY';
    color: red;
}
.sales .stock.in::before {
    content: 'IN STOCK';
    color: forestgreen;
}
.sales .stock.low::before {
    content: 'ALMOST GONE!';
    color: orange;
}
.sales .stock.out::before {
    content: 'OUT OF STOCK';
    color: red;
}

.small-i {
    font-style: italic;
    font-size:.8rem;
    filter: brightness(50%);
}

.right {
    text-align: right;
}

.stencil,
a.stencil {
    font-family: Stencil, Verdana, Tahoma, sans-serif;
    font-weight: normal;
}
h1.stencil {
    letter-spacing: 0.15rem;
}
.sticky {
    position: sticky;
    top: 0;
}
.sticky th {
    padding: 0.5rem;
    text-align: center;
    font-weight: bold;
    background-color: #aaaaaa;
    color: black;
}

.stock-image {
    font-size: smaller;
    font-style: italic;

    position: absolute;
    left: 100%;
    top: 100%;
    transform: translate(-100%, -100%);
    width: 100%;
}


.tiles {
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.5rem;
}

.tiles a {
    display: inline-block;
    padding: 1rem;
    margin: 0.5rem;
    text-align: center;
    background-color: var(--bg-gallery);
    border-radius: 1rem;
    border: 1px solid var(--dark);
    color: var(--font);
    min-width: min-content;
}

.tiles a:hover {
    cursor: pointer;
    border: 1px solid var(--clickable);
    text-decoration: none;
}
.tiles h4 {
    font-weight: bold;
}
.tiles img {
    width: 128px;
}

.tiles svg {
    fill: var(--font);
    height: 84px;
    margin: 22px 0;
    width: 84px;
}

.tiles h4,
.tiles img,
.tiles svg {
    filter: drop-shadow(0 0 3px var(--dark));
}

[data-theme='dark'] .tiles img {
    filter: brightness(0.8) contrast(1.1) drop-shadow(0 0 3px var(--dark));
}



.toolbar input::file-selector-button,
.toolbar button {
    display: inline-block;
    padding: 0 1.5rem;
    border: none;
    border-radius: 1rem;
    background-color: var(--clickable);
    color: var(--light);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1.8rem;
}
.toolbar button:disabled {
    background-color: var(--bg-disabled);
    cursor: default;
}
.toolbar input::file-selector-button:hover,
.toolbar button:focus,
.toolbar button:hover:enabled {
    background-color: red;
}
.toolbar {
    text-align: right;
}
.toolbar.left {
    text-align: left;
}
.toolbar > * {
    margin: 0 0.2rem;
}
.toolbar > a.active {
    background-color: var(--clickable);
    color: var(--font);
    border-radius: 1rem;
}
.toolbar.right {
    padding: 0;
}
.toolbar.right > a {
    display: inline-block;
    font-size: 1rem;
    margin-right: 1rem;
}



@media only screen and (min-width: 1600px) {
    :root {
        font-size: 18px;
    }

    .tiles {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    }

    #worldwide {
        min-height: 50vh;
        background-position: bottom;
    }
    #worldwide img {
        width: 40vh;
    }
}

@media only screen and (max-width: 990px) {
    #logo span {
        top: 1.5rem;
    }

    .content {
        padding: 1rem 2rem;
    }

    table.list,
    table.list * {
        display: block;
        margin: 0;
        padding: 0;
        background-color: unset;
    }

    table.list thead tr {
        display: none;
    }

    table.list tr {
        padding: 1rem 0;
    }

    table.list td {
        border: none;
        position: relative;
        padding: 0 0 0 51%;
        text-align: left;
    }

    table.list td:not(:last-child) {
        border-bottom: 5px solid transparent;
    }

    table.list td:before {
        position: absolute;
        top: 0;
        left: -10px;
        width: 50%;
        text-align: right;
        white-space: nowrap;
    }

    #worldwide {
        background-position: center bottom;
    }
}

@media only screen and (max-width: 867px) {
    fieldset {
        margin: 3rem 0;
    }

    ul {
        margin-left: 1rem;
    }

    #btn-go-top {
        display: none;
    }

    #crumbs {
        margin-left: auto;
    }

    header {
        padding: 0.5rem;
        text-align: right;
    }

    #footer {
        padding: initial;
    }

    #legal {
        margin: 1rem 0;
        line-height: 2.5rem;
    }
    #legal span {
        display: block;
    }
    #legal #sm-logo {
        display: none;
    }

    #links {
        gap: 2rem;
    }

    #logo {
        width: 4rem;
        height: 4rem;
        top: 0.5rem;
        left: 0.5rem;
    }
    #logo span {
        position: absolute;
        top: 1rem;
        left: 4.5rem;
        font-size: 1.4rem;
        white-space: nowrap;
    }

    #navbar {
        margin-top: 0.5rem;
        text-align: center;
    }

    #sa-links .wrapper {
        display: block;
        width: 100%;
        margin: 0;
    }
    #sa-links div {
        display: block;
        margin: 2rem 0;
        width: 100%;
    }

    #search input:focus {
        width: 65vw;
    }

    #tmpl-tb {
        margin-top: 4rem;
    }

    #worldwide img {
        width: 30vh;
    }

    .content {
        padding: 1.5rem 1rem;
    }

    .grid {
        width: 100%;
        gap: 1rem;
    }

    .grid-3 {
        grid-template-columns: none;
    }

    .product {
        gap: 1rem;
    }

    .options .option {
        grid-auto-flow: row;
    }
}

@media only screen and (max-width: 667px) {
    .filter-form {
        padding: 0 1rem;
    }
    .filter-form label,
    .filter-form input,
    .filter-form select {
        display: block;
        width: 100%;
        text-align: left;
    }
    .filter-form input,
    .filter-form select {
        margin-bottom: 1rem;
    }

    .gallery img {
        left: auto;
        top: auto;
        transform: none;
    }

    #links {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    #worldwide img {
        width: 20vh;
    }
}

@media only screen and (max-width: 467px) {
    fieldset {
        padding: 1rem;
    }

    main {
        padding: 1.5rem 1rem;
    }

   .grid {
      grid-auto-flow: row;
      grid-template-columns: none;
      gap: 0.25rem;
   }

   .options .option {
      grid-auto-flow: row;
      grid-template-columns: none;
      gap: 0.25rem;
   }

    .options .label {
       text-align: left;
    }

    .filter label.option {
        display: block;
        width: 100%;
        margin: 0.6rem 0;
    }

    .product .gallery {
        min-width: unset;
        width: unset;
    }
    .product {
        flex-direction: column;
        gap: 0;
        margin: 2rem 0;
    }
    .product > * {
        padding: unset;
    }

    #links {
        grid-template-columns: 1fr;
    }

}