/***GLOBAL VARIABLES
*****************************************************/
:root {
/***TEXT***/
    /*--fontSize: clamp(1rem, 1.25vw, 1.5rem);*/
    --fontSize: 0.66rem;
    --fontSizeSmall: 0.5rem;
    --fontSizeMedium: 1rem;
    --fontWeight: 400;
    --letterSpacing: .02em;
    --wordSpacing: 0em;
    --lineHeight: 1.25;

/***SPACES***/
    --spaceY: calc(var(--fontSizeMedium) * 1.5);
    --spaceX: calc(var(--fontSizeMedium) * 1.2);
    --bodySpaces: 0;
    --rowGutter: calc(var(--fontSize) * var(--lineHeight));
    --rowGutterSmall: calc(var(--fontSizeSmall) * 1);
    --colGutter: calc(var(--fontSize) * 5);
    /*--mainTopSpace: calc(var(--headerHeight) + var(--rowGutter)*3);*/
    --mainTopSpace: calc(var(--rowGutter)*1);
    --mainBottomSpace: calc(var(--spaceY)*4);

/***SIZES***/
    --mainWidth: 550px;
    --mainHeight: calc(100vh - var(--headerHeight) - var(--mainTopSpace) - var(--mainBottomSpace) - var(--footerHeight));
    --siteNameHeight: calc(var(--rowGutter)*2.5);
    --headerHeight: calc(var(--spaceY)*1 + var(--siteNameHeight) + var(--rowGutter)*2.5);
    --footerHeight: var(--rowGutter);

/***GRIDS***/
    --oneColGrid: repeat(1, 1fr);
    --threeColsGrid: repeat(3, 1fr);
    --fourColsGrid: repeat(4, 1fr);
    --sixColsGrid: repeat(6, 1fr);
    --twelveColsGrid: repeat(12, 1fr);
    --gridGap: var(--rowGutter) var(--colGutter);

/***COLOR***/
    --paletteWhite: #FFFFFF;
    --paletteGray: #999;
    --paletteBlack: #000000; 
    --paletteRed: #CC3333;
    --backColor: var(--paletteWhite);
    --textColor: var(--paletteBlack);
    --linkColor: var(--paletteBlack);
    --hoverColor: var(--paletteGray);

/***DECORATION***/
    --linkDeco: underline;
    --borderWidth: 1px;
    --borderLine: var(--borderWidth) solid var(--textColor);

/***TRANSITION***/
    --transitionDuration: 0.15s;
}
  
/***FONTS
*****************************************************/
* {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -o-text-size-adjust: 100%;
	text-size-adjust: 100%;
    /*
    -webkit-font-smoothing: smooth;
	-moz-font-smoothing: smooth;
    -moz-osx-font-smoothing: smooth;
	-ms-font-smoothing: smooth;
    -o-font-smoothing: smooth;
    text-rendering: geometricPrecision;
    */
}
@font-face {
    font-family: Unica Mono Regular;
    src: url("Unica77MonoLL-Regular.otf");
}
.font_size_S {
    font-size: var(--fontSizeSmall);
    line-height: var(--lineHeight);
}
.uppercase {
    text-transform: uppercase;
}
.lowercase {
    text-transform: lowercase;
}
.underline {
    text-decoration: underline;
}
.black_text,
.black_text p,
.black_text span,
.black_text a {
    color: var(--paletteBlack) !important;
}
.gray_text,
.gray_text p,
.gray_text span,
.gray_text a {
    color: var(--paletteGray) !important;
}
.gray_text a:hover {
    color: var(--paletteBlack) !important;
    text-decoration: underline;
}

/***RESET
*****************************************************/
::-webkit-scrollbar {
    display: none;
}
::-webkit-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::-moz-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::-ms-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::-o-selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
::selection {
    color: var(--backColor);
    background-color: var(--textColor);
}
img::-webkit-selectio {
    color: transparent;
    background-color: transparent;
}
img::-moz-selection {
    color: transparent;
    background-color: transparent;
}
img::-ms-selection {
    color: transparent;
    background-color: transparent;
}
img::-o-selection {
    color: transparent;
    background-color: transparent;
}
img::selection {
    color: transparent;
    background-color: transparent;
}
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}
html {
    /*color-scheme: light dark;*/
    scroll-behavior: smooth;
}
body {
    position: relative;
    margin: var(--bodySpaces);
    color: var(--textColor);
    font-family: Unica Mono Regular,'Courier New', Courier, monospace;
    font-size: var(--fontSize);
    line-height: var(--lineHeight);
}
ul {
    display: block;
    list-style-type: none;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 0;
}
li {
  display: inline;
}
a {	
    color: var(--linkColor);
    text-decoration: none;
}
h1, h2, h3 {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding: 0;
    font-size: var(--fontSize);
    font-style: normal;
    font-weight: 400;
}
p {
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0;
}
span {
    display: inline;
}
form, input, textarea, submit,
iframe, embed, audio {
    margin: 0;
    padding: 0;
    color: var(--textColor);
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    font-size: inherit;
}
input:focus, textarea:focus {
    outline: none;
}
input[name="submit"] {
	cursor: pointer;
}
:-webkit-input-placeholder {
	/*internet explorer*/
	color: var(--textColor);
}
::-moz-input-placeholder {
	/*mozilla edge*/
    color: var(--textColor);
}
::-ms-input-placeholder {
	/*microsoft edge*/
    color: var(--textColor);
}
::-o-input-placeholder {
	/*microsoft edge*/
    color: var(--textColor);
}
::placeholder {
	/*chrome, firefox, opera, safari*/
    color: var(--textColor);
}
img, video {
    vertical-align: middle;
}
img.lazy,
video.lazy {
    opacity: 0;
    transition: opacity var(--transitionDuration);
}
img.lazy.loaded,
video.lazy.loaded {
    opacity: 1;
}


/***BACKGROUND VIDEO
*****************************************************/
video.back_video {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    transition: opacity var(--transitionDuration);
}
video.back_video.on {
    opacity: 1;
}
video.back_video.off {
    opacity: 0.2;
}
.back_video_button {
    cursor: pointer;
}
.back_video_button.on {
    color: var(--paletteRed);
}
.back_video_button.off {
    color: var(--paletteGray);
}

/***HEADER AND MENU
*****************************************************/
header {
    width: 100%;
    min-height: var(--headerHeight);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    padding-block: var(--spaceY) 0;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
    gap: calc(var(--rowGutter)*1.5) 0;
    background: transparent;
    z-index: 100;
}
.site_name img {
    min-height: var(--siteNameHeight);
    text-transform: uppercase;
}
nav.menu {
    width: var(--mainWidth);
    display: flex;
    flex-direction: column;
}
nav.menu ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    /*gap: var(--colGutter);*/
}
nav.menu li.menu_item {
    display: inherit;
}
nav.menu li.menu_item a {
    color: var(--paletteGray);
}
nav.menu li.menu_item a:hover {
    color: var(--paletteBlack);
    text-decoration: underline;
}
body#index nav.menu li.menu_item.all a,
body#product nav.menu li.menu_item.clothing a,
body#accesories nav.menu li.menu_item.accesories a,
body#projects nav.menu li.menu_item.projects a,
body#about nav.menu li.menu_item.about a,
body#stocklist nav.menu li.menu_item.stocklist a,
body#search nav.menu li.menu_item.search a {
    color: var(--paletteBlack);
    text-decoration: underline;
}

/***MAIN CONTENT
*****************************************************/
main.content {
    min-height: var(--mainHeight);
    position: relative;
    margin-inline: auto;
    padding-block: var(--mainTopSpace) var(--mainBottomSpace);
    padding-inline: var(--spaceX);
}

/***THUMBNAIL GRID***/
section.thumb_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--rowGutter)*3) var(--colGutter);
    margin-top: calc(var(--rowGutter)*4);
}
.thumb .thumb_media {
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.thumb .thumb_media img {
    width: 100%;
    max-height: auto;
    object-fit: contain;
    object-position: center;
}
.thumb .thumb_media:hover ~  .thumb_data {
    visibility: visible;
}
.thumb .thumb_data {
    margin-top: calc(var(--rowGutter)*2);
    visibility: hidden;
    text-align: center;
}
.thumb .thumb_data .size_button {
    color: var(--paletteGray);
}
.thumb .thumb_data .size_button:hover {
    color: var(--paletteBlack);
    cursor: pointer;
}

/***BUTTONS***/
.red_button span {
    color: var(--paletteWhite);
    background: var(--paletteRed);
    padding: calc(var(--rowGutter)*0.05) calc(var(--spaceX)*0.15);
}
.cursor_area {
    position: relative;
}
.cursor_area .zoom_button {
    display: none;
}
.cursor_area:hover .zoom_button {
    display: block;
}
.zoom_button {
    position: absolute;
    transform: translate(20%, -50%);
    pointer-events: none;
}
.zoom_button span {
    color: var(--paletteBlack);
    background: var(--paletteWhite);
    padding: calc(var(--rowGutter)*0.05) calc(var(--spaceX)*0.15);
}

/***CENTER COLUMN***/
.center_col {
    max-width: var(--mainWidth);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}
body#product .center_col,
body#about .center_col {
    gap: calc(var(--spaceY)*2) 0;
}
body#search .center_col,
body#checkout .center_col {
    gap: calc(var(--rowGutter)*1.25) 0;
}
.center_col .data {
    /*max-width: calc(var(--mainWidth)*0.85);*/
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--headerHeight) + var(--rowGutter));
    z-index: 300;
}
.center_col .headline {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
.center_col .headline .close_button {
    color: var(--paletteRed);
}
.center_col .price {
    color: var(--paletteRed);
}
.center_col .data .product_price {
    color: var(--paletteRed);
}
.center_col .data .product_sizes > .sizes {
    display: flex;
    gap: var(--spaceX);
    color: var(--paletteGray);
}
.center_col .data .product_sizes > .sizes .size_button:hover {
    color: var(--paletteRed);
    cursor: pointer;
}
.center_col .data .product_sizes > .sizes .size_button.selected {
    color: var(--paletteRed);
}
.center_col .data .check_sizes .check_sizes_button {
    cursor: pointer;
}
.center_col .data .check_sizes > .sizes_chart {
    color: var(--paletteGray);
}
.center_col .data .check_sizes > .sizes_chart:not(.show) {
    display: none;
}
.center_col .data .check_sizes > .sizes_chart.show {
    display: flex;
    gap: calc(var(--spaceX)*1);
}
/*
.center_col .data .check_sizes > .sizes_chart > div {
    flex: 1;
}
*/
.center_col .col_media {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spaceY)*2) 0;
}
.center_col .col_media .media {
    width: 100%;
    display: flex;
    justify-content: center;
}
.center_col .col_media .media img:not(.zoom) {
    width: calc(100% - var(--spaceX)*4);
    cursor: zoom-in;
}
.center_col .col_media .media img.zoom {
    width: 100%;
    cursor: zoom-out;
}

/***MINI THUMBNAILS***/
.mini_thumb .thumb_media {
    max-width: 90px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px;
    border: var(--borderLine);
    background-color: var(--paletteWhite);
}
.mini_thumb .thumb_media img {
    width: 100%;
    max-height: auto;
    object-fit: contain;
    object-position: center;
}
.mini_thumb .thumb_media:hover ~  .thumb_data {
    visibility: visible;
}
.mini_thumb .thumb_data {
    margin-top: calc(var(--rowGutterSmall)*1.2);
    /*
    display: flex;
    flex-direction: column;
    gap: calc(var(--rowGutterSmall)*1.2) 0;
    */
}
.mini_thumb .thumb_data .size_button {
    color: var(--paletteGray);
}
.mini_thumb .thumb_data .size_button:hover {
    color: var(--paletteBlack);
    cursor: pointer;
}
.mini_thumb .thumb_data .price {
    color: var(--paletteRed);
}
.mini_thumb .thumb_data .quantity {
}

/***ABOUT***/
.subscription_form .subscribe_input {
    width: 100%;
}
.subscription_form submit {
    color: var(--paletteRed);
}

/***CHECKOUT***/
.checkout_footer .shipping_message {
    margin-top: calc(var(--rowGutterSmall)*0.4);
}
.checkout_button .red_button {
    margin-top: calc(var(--rowGutterSmall)*1.2);
}

/***SEARCH FORM***/
nav.menuform.search_form {
    margin-top: var(--rowGutter);
}
form.search_form .search_submit {
    color: var(--paletteRed);
    text-decoration: var(--linkDeco);
    cursor: pointer;
}

/***STOCKLIST***/

/***DELIVERY, LEGAL, PRIVACY***/
body#delivery video.back_video,
body#legal video.back_video,
body#privacy video.back_video {
    display: none;
}
body#delivery .description,
body#legal .description,
body#privacy .description {
    text-align: justify;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
body#delivery .description a,
body#legal .description a,
body#privacy .description a {
    text-decoration: underline;
}
body#delivery footer,
body#legal footer,
body#privacy footer {
    display: none;
}

/***FOOTER
*****************************************************/
footer {
    width: 100%;
    min-height: var(--footerHeight);
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: start;
    padding: calc(var(--rowGutter)*1.5) var(--spaceX);
    color: var(--paletteGray);
}
.footer_cookies {
    flex: 1;
}
.footer_cookies .learn_button {
    text-decoration: var(--linkDeco);
}
.footer_cookies .accept_button {
    color: var(--paletteRed);
    text-decoration: var(--linkDeco);
    cursor: pointer;
}
nav.footer_menu {
    min-width: var(--mainWidth);
}
nav.footer_menu ul {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: var(--colGutter);
}
nav.footer_menu ul .cart_num.not_empty,
nav.footer_menu ul .cart_num,
nav.footer_menu ul .subtotal_num  {
    color: var(--paletteRed);
}
footer > .shipping_message {
    flex: 1;
    text-align: right;
    color: var(--paletteRed);
}
footer > .shipping_message:not(.active) {
    visibility: hidden;
}
footer > .shipping_message.active {
    visibility: visible;
}
body:not(#index) .footer_cookies, 
body:not(#index) .shipping_message,
body:not(#index) .back_video_button {
    visibility: hidden;
}

/***BLINK ANIMATION***/
.blink {
    -webkit-animation: blink 1.25s step-start 0s infinite;
    animation: blink 1.25s step-start 0s infinite;
}
@keyframes blink {
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}