/********************
 GENERAL
*********************/

html,
body {
  margin: 0;
  position: relative;
  overflow: overlay;
}

body {
  --margin: 20px;
  --field-height: calc(0.8rem + 12px);
}

a {
  text-decoration: none;
  cursor: pointer;
}

.protect {
  pointer-events: none;
}

div {
  align-items: start;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-track-piece {
  background: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-thumb {
  background: var(--text-color-3);
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-color-2);
}

::-webkit-scrollbar-corner {
  background: var(--text-color-2);
  opacity: 0.2;
}

/********************
 COLORS
*********************/
.theme-light {
  --main-color-1: #f4f3ed;
  --main-color-2: #ffffff;
  --main-color-3: #ebe8dc;
  --text-color-1: #2b2b2b;
  --text-color-2: #454444;
  --text-color-3: #797979;
  --banner-text-color: #454444;
  --error-color: #723e3e;
  --success-color: #91aa8e;
}

.theme-dark {
  --main-color-1: #1d1d1d;
  --main-color-2: #333333;
  --main-color-3: #333333;
  --text-color-1: #f5f4f4;
  --text-color-2: #c1c0c0;
  --text-color-3: #7b7b7b;
  --banner-text-color: #c1c0c0;
  --error-color: #723e3e;
  --success-color: #91aa8e;
}

.theme-colorful1 {
  --main-color-1: #f2ebe8;
  --main-color-2: #eb3a41;
  --main-color-3: #efd2d2;
  --text-color-1: #eb3a41;
  --text-color-2: #ed6d72;
  --text-color-3: #f09da0;
  --banner-text-color: #f2ebe8;
  --error-color: #a32429;
  --success-color: #99cb93;
}

.theme-colorful2 {
  --main-color-1: #2d2d2d;
  --main-color-2: #e2fc52;
  --main-color-3: #3e3e39;
  --text-color-1: #e2fc52;
  --text-color-2: #cad865;
  --text-color-3: #b3ba7b;
  --banner-text-color: #2d2d2d;
  --error-color: #f08f6c;
  --success-color: #9ae564;
}

.theme-colorful3 {
  --main-color-1: #f7dac6;
  --main-color-2: #3757e9;
  --main-color-3: #edc2a6;
  --text-color-1: #3757e9;
  --text-color-2: #5e71cb;
  --text-color-3: #7e8ccb;
  --banner-text-color: #f7dac6;
  --error-color: #db6515;
  --success-color: #46d36c;
}

.theme-colorful4 {
  --main-color-1: #fff296;
  --main-color-2: #4a26e2;
  --main-color-3: #f4e78e;
  --text-color-1: #4a26e2;
  --text-color-2: #7863d3;
  --text-color-3: #b6ace2;
  --banner-text-color: #fff296;
  --error-color: #ffa696;
  --success-color: #9ae564;
}

.theme-colorful5 {
  --main-color-1: #4169a9;
  --main-color-2: #f6ccdb;
  --main-color-3: #335488;
  --text-color-1: #f6ccdb;
  --text-color-2: #bfa2bb;
  --text-color-3: #a29bac;
  --banner-text-color: #4169a9;
  --error-color: #db6515;
  --success-color: #46d36c;
}

/********************
 FONTS
*********************/

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-Thin.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-ThinItalic.woff2") format("woff2");
  font-weight: 200;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-Ultralight.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-UltralightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-Bold.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-BoldItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: fallback;
}

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-Heavy.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: fallback;
}

@font-face {
  font-family: "SiteFont";
  src: url("../fonts/PPEditorialNew-HeavyItalic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: fallback;
}

/********************
 TITLES AND TEXTS
*********************/

body {
  font-family: "SiteFont", serif;
  color: var(--text-color-1);
  transition: color 0.2s ease-in-out;
}

h1,
.heading {
  font-size: 3.6rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.2rem;
  margin: 0;
}

h2 {
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.2rem;
  margin: 0;
}

p,
span {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  line-height: 1.55;
}

/********************
 COMMONS
*********************/
.btn {
  border: 4px solid var(--text-color-2);
  padding: 6px 45px 2px 45px;
  border-radius: 4px;
  color: var(--text-color-2);
  transition: border 0.2s ease-in-out, background-color 0.2s ease-in-out,
    color 0.2s ease-in-out, opacity 0.2s ease-in-out;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.2rem;
  letter-spacing: 0.1rem;
  display: block;
  cursor: pointer;
  max-width: max-content;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "SiteFont", serif;
}

.btn:hover {
  color: var(--main-color-1);
  background-color: var(--text-color-2);
}

.btn.dark {
  color: var(--main-color-1);
  background-color: var(--text-color-2);
}

.btn.dark:hover {
  background-color: var(--main-color-1);
  color: var(--text-color-2);
}

.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/********************
 HEADER
*********************/
.page {
  background-color: var(--main-color-1);
  transition: background-color 0.2s ease-in-out;
}

.page-content {
  padding: calc(50px + var(--margin)) var(--margin) var(--margin) var(--margin);
  box-sizing: border-box;
  width: 100%;
}

.page-content.with-subheader {
  padding-top: calc(85px + var(--margin));
}

.head {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--margin);
  height: 50px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--main-color-2);
  transition: background-color 0.2s ease-in-out;
  padding-top: 3px;
}

.head > div:nth-child(2) {
  position: absolute;
  left: 50%;
  top: calc(50% + 3px);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
}

.head > div:nth-child(2) > a:not(:last-child) {
  margin-right: 50px;
}

.head > div:last-child > a:not(:last-child) {
  margin-right: 10px;
}

.head a {
  color: var(--banner-text-color);
  font-style: italic;
  letter-spacing: 0.1rem;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.2s ease-in-out;
}

.head a:not(.cart-basket) > span {
  visibility: hidden;
  width: max-content;
}

.head a > div {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
}

.head .cart-basket > svg > path,
.mobile-menu .cart-basket > svg > path {
  fill: var(--banner-text-color);
}

.head .cart-basket > span,
.mobile-menu .cart-basket > span {
  color: var(--banner-text-color);
  border: 1px solid var(--banner-text-color);
  background-color: var(--main-color-2);
}

.head > div:not(:first-child) > a > div {
  font-weight: 300;
}

.head > div:not(:first-child) > a:hover > div,
.head > div:not(:first-child) > a.active > div {
  font-weight: 400;
}

.head > div:first-child > a > div {
  font-weight: 400;
}

.mobile-menu {
  display: none;
}

.head > div > .cart-basket {
  left: unset;
  top: unset;
}

.mobile-menu > .cart-basket {
  z-index: 14;
  position: fixed;
  top: 19px;
  left: unset;
  right: 80px;
}

@media screen and (max-width: 1200px) {
  .head > div:nth-child(2) > a:not(:last-child) {
    margin-right: 20px;
  }
}

@media screen and (max-width: 700px) {
  .head {
    padding: 3px 15px 0 15px;
  }
  .head > div:not(:first-child) {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}

.burger {
  position: fixed;
  z-index: 14;
  top: 19px;
  right: 15px;
  width: 40px;
  height: 12px;
  cursor: pointer;
}

.burger > span {
  display: block;
  background-color: var(--text-color-3);
  height: 4px;
  width: 100%;
  position: absolute;
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
  border-radius: 2px;
  transform-origin: center center;
}

@media screen and (max-width: 992px) {
  .burger:hover > span {
    background-color: var(--text-color-1);
  }
}

.burger > span:first-child {
  top: 0;
  left: 0;
}

.burger > span:last-child {
  bottom: 0;
  left: 0;
}

.mobile-menu.active > .burger > span:first-child {
  transform: translate(0.5px, 4px) rotate(30deg);
}

.mobile-menu.active > .burger > span:last-child {
  transform: translate(0.5px, -4px) rotate(-30deg);
}

#menu_background {
  background-color: var(--text-color-3);
  position: fixed;
  z-index: 12;
  height: calc(100vh - (100vh - 100%) - 100px);
  height: calc(100svh - (100svh - 100%) - 100px);
  width: 100%;
  top: 50px;
  left: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  opacity: 0;
}

#menu_background.active {
  opacity: 0.5;
  pointer-events: all;
}

.menu {
  position: fixed;
  right: 0;
  top: 0;
  height: calc(100vh - (100vh - 100%));
  height: calc(100svh - (100svh - 100%));
  width: 250px;
  max-width: 100%;
  z-index: 13;
  background-color: var(--main-color-1);
  transition: background-color 0.2s ease-in-out, transform 0.4s ease-in-out;
  padding: 50px 20px 60px 10px;
  box-sizing: border-box;
  transform: translateX(100%);
}

.mobile-menu.active > .menu {
  transform: translateX(0);
}

.menu > a {
  color: var(--text-color-2);
  transition: color 0.2s ease-in-out;
  position: relative;
  display: block;
  width: max-content;
  font-style: italic;
  margin: 10px 0 0 0;
}

.menu > a:first-child {
  margin-left: auto;
}

.menu > a > span {
  visibility: hidden;
  width: max-content;
}

.menu > a > div {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: max-content;
  font-weight: 300;
}

.menu > a:hover > div,
.menu > a.active > div {
  font-weight: 400;
}

.menu > div {
  position: absolute;
  font-style: normal;
  bottom: 50px;
  left: 10px;
  width: calc(100% - 30px);
}

.menu > div > a {
  color: var(--text-color-3);
  display: block;
  transition: color 0.2s ease-in-out;
}

.menu > div > a:hover {
  color: var(--text-color-1);
}

.menu > div > a:first-child {
  margin: auto;
  width: max-content;
  margin-bottom: 20px;
}

.menu > div > a svg path {
  fill: var(--text-color-3);
  transition: fill 0.2s ease-in-out;
}

.menu > div > a:hover svg path {
  fill: var(--text-color-1);
}

.menu > div > a:nth-child(2) {
  margin-bottom: 10px;
}

#menu-filler {
  position: fixed;
  z-index: 11;
  height: 100%;
  width: 100%;
  pointer-events: none;
}

.mobile-menu.active #menu-filler {
  pointer-events: all;
}

.subheader {
  position: fixed;
  top: 50px;
  left: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--margin);
  height: 35px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--main-color-2);
  padding-top: 2px;
  border-top: 1px solid var(--banner-text-color);
  border-bottom: 1px solid var(--banner-text-color);
  transition: background-color 0.2s ease-in-out, border-top 0.2s ease-in-out,
    border-bottom 0.2s ease-in-out;
  overflow: auto;
}

.subheader > a {
  display: block;
  width: max-content;
  position: relative;
  padding: 0 20px;
  cursor: pointer;
}

.subheader > a:not(:last-child) {
  border-right: 1px solid var(--text-color-3);
  transition: border-right 0.2s ease-in-out;
}

.subheader > a > span {
  visibility: hidden;
  width: max-content;
  white-space: nowrap;
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
}

.subheader > a > div {
  position: absolute;
  top: 50%;
  left: 50%;
  font-weight: 300;
  font-size: 0.9rem;
  transform: translate(-50%, -50%);
  width: max-content;
  white-space: nowrap;
  color: var(--banner-text-color);
  letter-spacing: 0.1rem;
}

.subheader > a:hover > div,
.subheader > a.active > div {
  font-weight: 400;
  font-style: italic;
}

@media screen and (max-width: 700px) {
  .subheader {
    justify-content: flex-start;
    padding: 0;
    padding-top: 2px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
  }

  .subheader::-webkit-scrollbar {
    display: none;
  }
}

/********************
 TOOLS
*********************/
.tools {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 50px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 0 var(--margin);
  background-color: var(--main-color-1);
  transition: background-color 0.2s ease-in-out;
  z-index: 14;
  justify-content: space-between;
  width: 100%;
}

.modes {
  display: flex;
  align-items: center;
}

.modes > svg {
  cursor: pointer;
}

.modes rect {
  fill: var(--text-color-3);
  transition: fill 0.2s ease-in-out;
}

.modes .active rect {
  fill: var(--text-color-2);
  transition: fill 0.2s ease-in-out;
}

.modes > svg:first-child {
  margin-right: 10px;
}

.modes.disabled > svg {
  cursor: unset;
  opacity: 0.6;
  pointer-events: none;
}

.modes.disabled rect {
  fill: var(--text-color-3);
}

.colors {
  display: flex;
  align-items: center;
  position: relative;
}

.colors > div {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.colors > div > div {
  font-weight: 300;
  font-style: italic;
  color: var(--text-color-1);
  transition: color 0.2s ease-in-out;
  font-size: 0.9rem;
  letter-spacing: 0.1rem;
}

.colors > div:not(:last-child) {
  margin-right: 30px;
}

.colors > div > span {
  display: block;
  height: 0.6rem;
  width: 0.6rem;
  border-radius: 50%;
  margin-left: 5px;
  border: 2px solid var(--text-color-3);
  background-color: var(--main-color-1);
  transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
}

#colors_box {
  position: absolute;
  width: 60px;
  height: calc(0.9rem + 10px);
  border: 1px solid var(--text-color-3);
  transition: border 0.2s ease-in-out;
  border-radius: calc(0.45rem + 6px);
  pointer-events: none;
  margin-bottom: 2px;
  transition: transform 0.2s ease-in-out, width 0.2s ease-in-out;
}

#color_dark > span {
  background-color: var(--text-color-3);
  transition: background-color 0.2s ease-in-out;
}

@media screen and (max-width: 700px) {
  .tools {
    padding: 0 15px;
  }
}

@media screen and (max-width: 500px) {
  #colors_box,
  .colors > div > div {
    display: none;
  }

  .colors > div:not(:last-child) {
    margin-right: 15px;
  }

  .colors > div > span {
    margin-left: 0;
  }
}

/********************
 CURSOR
*********************/

.cursor {
  position: fixed;
  z-index: 200;
  height: 50px;
  width: 50px;
  pointer-events: none;
  transition: transform 0.2s ease-out, height 0.2s ease-in-out,
    width 0.2s ease-in-out, opacity 0.2s ease-in-out;
  border: 1px solid var(--text-color-1);
  border-radius: 50%;
}

.theme-light .cursor,
.theme-dark .cursor {
  border: 1px solid white;
  mix-blend-mode: difference;
}

.cursor.hide {
  opacity: 0;
  height: 0;
  width: 0;
}

.cursor.active {
  height: 70px;
  width: 70px;
}

/********************
 FOOT
*********************/

.pre-foot {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-bottom: calc(50px + var(--margin));
  padding-top: var(--margin);
}

.pre-foot h2 {
  margin-bottom: 20px;
}

.foot {
  background-color: var(--main-color-3);
  padding: var(--margin);
  transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
}

.foot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-bottom: 40px;
}

.foot-top > a {
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.foot-top > a > svg {
  width: 40px;
  height: auto;
}

.foot-top > a > svg > path {
  fill: var(--text-color-1);
  transition: fill 0.2s ease-in-out;
}

.foot-top > a:hover > svg > path {
  fill: var(--text-color-3);
}

.foot-left > h2 {
  margin-bottom: 5px;
}

.foot-left > h2 > a {
  font-size: 2rem;
  color: var(--text-color-1);
  transition: color 0.2s ease-in-out;
}

.foot-left > h2 > a:hover {
  color: var(--text-color-3);
}

.foot-left > p {
  letter-spacing: 0.08rem;
  color: var(--text-color-3);
}

.foot-left > p > a {
  color: var(--text-color-3);
  transition: color 0.2s ease-in-out;
}

.foot-left > p > a:hover {
  color: var(--text-color-1);
}

.foot-right {
  text-align: right;
}

.foot-right a {
  color: var(--text-color-3);
  transition: color 0.2s ease-in-out;
}

.foot-right a:hover {
  color: var(--text-color-1);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding-bottom: 40px;
  color: var(--text-color-2);
  font-weight: 300;
  font-style: italic;
}

.foot-bottom > p > span {
  color: var(--text-color-3);
}

.foot-bottom a {
  color: var(--text-color-3);
  transition: color 0.2s ease-in-out;
  font-weight: 400;
}

.foot-bottom a:hover {
  color: var(--text-color-1);
}

.foot-bottom > p:last-child {
  text-align: right;
}

@media screen and (max-width: 620px) {
  .foot {
    padding: 20px 15px;
  }

  .foot-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-left h2 {
    margin-bottom: 10px;
  }

  .foot-bottom p:first-child > span {
    display: none;
  }

  .foot-bottom p:first-child > a {
    display: block;
    width: max-content;
  }

  .foot-top > a {
    order: 3;
    display: block;
    position: relative;
    left: 0;
    transform: none;
    margin: 10px auto;
  }

  .foot-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-bottom > p:last-child {
    margin-top: 10px;
    width: 100%;
    text-align: right;
  }
}

/********************
 GALLERY
*********************/

.gallery {
  width: 100%;
  display: none;
  padding: 10px 40px;
  box-sizing: border-box;
}

.gallery.active {
  display: block;
  min-height: calc(100vh - 168px - var(--margin) * 4 - 47px);
}

.gallery-desc {
  position: relative;
  padding-right: 10px;
}

.gallery-desc > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin-top: 10px;
  margin-bottom: 30px;
  margin-right: 50px;
}

.gallery-desc > svg {
  display: block;
  position: absolute;
  right: 10px;
  bottom: 0;
  height: 70px;
  width: auto;
}

.gallery-desc > svg path {
  transition: fill 0.2s ease-in-out;
  fill: var(--text-color-1);
}

@media screen and (max-width: 992px) {
  .gallery-desc > div {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-right: 0;
    margin-bottom: 0;
  }
  .gallery-desc > svg {
    display: none;
  }
  .gallery {
    padding: 0;
  }
}

.gallery.line-mode {
  padding: 0;
}

.gallery.line-mode > .gallery-desc {
  width: 400px;
  max-width: calc(100vw - var(--margin) * 2 - 70px);
  height: 100%;
  overflow: auto;
}

.gallery.line-mode > .gallery-desc > div {
  grid-template-columns: 1fr;
  gap: 20px;
}

.gallery.line-mode > .gallery-desc > svg {
  display: block;
}

.gallery.line-mode > .gallery-desc > svg.hide {
  display: none;
}

.gallery-row {
  display: flex;
  max-width: 100%;
}

.gallery-row:not(:last-child) {
  padding-bottom: 20px;
}

.gallery-row > div {
  padding: 0 10px;
  transition: opacity 0.1s ease-in-out;
}

.gallery-row > div:first-child {
  padding-left: 0;
}

.gallery-row > div:last-child {
  padding-right: 0;
}

.gallery.line-mode > .gallery-row > div {
  padding: 0 10px;
}

.gallery.line-mode > .gallery-row:first-child > div:first-child {
  padding-left: 0;
}

.gallery.line-mode > .gallery-row:last-child > div:last-child {
  padding-right: 0;
}

.gallery-row > div.preshow-hide {
  opacity: 0.7;
}

.gallery-row > div > picture > img {
  cursor: zoom-in;
  height: auto;
  width: 100%;
  display: block;
  background-color: var(--main-color-3);
  transition: background-color 0.2s ease-in-out;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--main-color-3);
}

@media screen and (max-width: 992px) {
  .gallery-row:not(:last-child) {
    padding-bottom: 10px;
  }
  .gallery-row > div {
    padding: 0 5px;
  }
  .gallery-row > div:first-child {
    padding-left: 0;
  }
  .gallery-row > div:last-child {
    padding-right: 0;
  }
  .gallery.line-mode > .gallery-row > div {
    padding: 0 5px;
  }
  .gallery.line-mode > .gallery-row:first-child > div:first-child {
    padding-left: 0;
  }
  .gallery.line-mode > .gallery-row:last-child > div:last-child {
    padding-right: 0;
  }
}

/* Line mode */

.gallery.line-mode.active {
  display: flex;
  height: calc(var(--vh, 1vh) * 100 - 80px - var(--margin) * 3);
  transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
  width: max-content;
}

.with-subheader .gallery.line-mode.active {
  height: calc(var(--vh, 1vh) * 100 - 115px - var(--margin) * 3);
}

@media screen and (max-width: 992px) {
  .gallery.line-mode.active {
    height: calc(var(--vh, 1vh) * 100 - 80px - var(--margin) * 4);
  }
  /*.with-subheader .gallery.line-mode.active {
    height: calc(var(--vh, 1vh) * 100 - 115px - var(--margin) * 4);
  }*/
}

.gallery.line-mode .gallery-row {
  height: 100%;
  max-width: max-content;
  padding-bottom: 0;
}

.gallery.line-mode .gallery-row > div {
  height: 100%;
  flex-basis: unset !important;
}

.gallery.line-mode .gallery-row > div > picture > img {
  height: 100%;
  width: auto;
}

/* Zoom */

#gallery_zoom {
  position: fixed;
  top: 0;
  left: 0;
  height: calc(100vh - (100vh - 100%));
  width: 100vw;
  z-index: 8;
  background-color: var(--main-color-1);
  transition: background-color 0.2s ease-in-out, opacity 0.2s ease-in-out;
  opacity: 0;
  pointer-events: none;
  cursor: zoom-out;
}

#gallery_zoom.active {
  opacity: 0.8;
  pointer-events: all;
}

#image_zoom {
  position: fixed;
  z-index: 9;
  pointer-events: none;
  display: none;
}

#image_zoom.active {
  display: block;
  opacity: 0;
}

#image_zoom.active.visible {
  opacity: 1;
}

#image_zoom > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/********************
 INDEX
*********************/
.lander {
  height: 100vh;
  height: 100svh;
  width: 100vw;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lander-background {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  background-image: url("../img/lander.jpg");
}

.lander-info {
  position: relative;
  text-align: center;
  pointer-events: none;
  color: #f5f4f4;
}

.lander-info > h1 {
  font-size: 2rem;
  letter-spacing: 0.1rem;
  font-weight: 400;
  margin-bottom: 15px;
}

.lander-info > p {
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.1rem;
}

.lander > img {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: auto;
  display: block;
  pointer-events: none;
}

/********************
 ABOUT
*********************/

.about {
  display: flex;
  min-height: calc(100vh - 100px - var(--margin) * 2 - 2vw);
  align-items: stretch;
  margin-top: 2vw;
  padding-left: 40px;
}

.about-left {
  padding-right: 10vw;
  width: 100%;
  flex-basis: 50%;
  font-weight: 100;
  box-sizing: border-box;
}

.about-left > h1 {
  margin-bottom: 10px;
}

.about-left > h2 {
  margin-top: 35px;
  margin-bottom: 10px;
}

.about-left > p a {
  font-weight: 400;
}

.about-right {
  position: relative;
  width: 100%;
  flex-basis: 50%;
}

.about-right > div {
  position: absolute;
  bottom: 0;
  right: 0;
}

.about-right > div > img {
  width: 100%;
  height: auto;
  max-width: 45vw;
}

.about-right > div > svg {
  position: absolute;
  bottom: 35px;
  right: 30px;
  max-width: 10vw;
}

.about-right > div > svg > path {
  fill: var(--text-color-3);
  transition: fill 0.2s ease-in-out;
}

.theme-light .about-right > div > svg > path {
  fill: var(--main-color-1);
}

.theme-dark .about-right > div > svg > path {
  fill: var(--text-color-1);
}

.about p > a {
  color: var(--text-color-1);
  transition: color 0.2s ease-in-out;
}

.about p > a:hover {
  color: var(--text-color-3);
}

@media screen and (max-width: 1100px) {
  .about {
    display: block;
    padding-left: 0;
  }
  .about-left {
    padding-right: 0;
  }
  .about-right > div {
    margin-top: 40px;
    position: relative;
  }
  .about-right > div > svg {
    bottom: 15px;
    right: 10px;
  }
  .about-right > div > img {
    max-width: unset;
  }
}

@media screen and (max-width: 1500px) {
  .about-left {
    padding-right: 5vw;
  }
}

/********************
 legals
*********************/

.mentions-body {
  margin-top: 2vw;
  padding-left: 4vw;
}

.mentions-body p,
.mentions-body li {
  color: var(--text-color-2);
}

.mentions-body li {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.12rem;
  line-height: 1.55;
}

.mentions-body a {
  color: var(--text-color-1);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-out;
}

.mentions-body a:hover {
  color: var(--text-color-3);
  cursor: pointer;
}

/**********
    SHOP
***********/

.shop {
  padding: 40px;
}

.shop > p {
  max-width: 500px;
  margin: 10px 0;
}

.categories {
  display: flex;
  position: relative;
  margin: 30px 0 20px 0;
  overflow: auto;
}

#categories_box {
  position: absolute;
  width: 62px;
  height: calc(100% - 2px);
  border: 1px solid var(--text-color-2);
  border-radius: 5px;
  left: 0;
  top: 0;
}

.category {
  position: relative;
  cursor: pointer;
  padding: 5px 30px;
}

.category > span,
.category > div {
  font-size: 1rem;
  color: var(--text-color-1);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 1px;
  font-style: italic;
}

.category > span {
  opacity: 0;
  pointer-events: none;
}

.category > div {
  position: absolute;
  left: 50%;
  top: calc(50% + 2px);
  transform: translate(-50%, -50%);
}

.category:hover > div {
  font-weight: 300;
}

.category.active > div {
  font-weight: 400;
}

.products {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  align-items: stretch;
}

.product {
  display: flex;
  flex-direction: column;
  background-color: var(--main-color-3);
  flex-basis: calc(33.33333% - 20px * 0.66666);
  color: var(--text-color-1);
  min-height: 20vw;
}

.product.hidden {
  display: none;
}

.product > div {
  width: 100%;
}

.product > div:first-child {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--margin) var(--margin) 0;
  position: relative;
  box-sizing: border-box;
}

.product > div:first-child > img:first-child {
  height: 100%;
  width: auto;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 0 5px var(--text-color-3));
  transition: opacity 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  object-fit: contain;
  max-height: 28vw;
}

.product:hover > div:first-child > img:first-child {
  opacity: 0;
}

.product > div:first-child > img:last-child {
  position: absolute;
  opacity: 0;
  width: calc(100% - var(--margin) * 2);
  height: calc(100% - var(--margin));
  display: block;
  top: var(--margin);
  left: var(--margin);
  transition: opacity 0.2s ease-in-out;
  filter: drop-shadow(0 0 5px var(--text-color-3));
  object-fit: contain;
}

.product:hover > div:first-child > img:last-child {
  opacity: 1;
}

.product > div:last-child {
  display: flex;
  gap: var(--margin);
  justify-content: space-between;
  padding: var(--margin) var(--margin);
  box-sizing: border-box;
}

.product > div:last-child > p:last-child {
  font-style: italic;
  font-weight: 200;
  text-align: right;
}

@media screen and (max-width: 992px) {
  .shop {
    padding: 0;
  }
  .products {
    gap: 10px;
  }
  .product {
    flex-basis: calc(50% - 10px * 0.5);
  }
  .product > div:first-child > img:first-child {
    max-height: 45vw;
  }
}

@media screen and (max-width: 500px) {
  .product {
    flex-basis: 100%;
  }
  .product > div:first-child > img:first-child {
    max-height: unset;
  }
}

/*****************
    PRODUCT PAGE
******************/
.single-product {
  padding: 40px;
}

@media screen and (max-width: 992px) {
  .single-product {
    padding: 0;
  }
}

.product-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.back-button {
  color: var(--text-color-2);
  transition: color 0.2s ease-in-out;
  font-style: italic;
  margin-left: 32px;
  font-size: 0.8rem;
}

.back-button > svg {
  transition: transform 0.2s ease-in-out;
  margin-right: 5px;
  height: 0.6rem;
  width: auto;
}

.back-button > svg > path {
  fill: currentColor;
  transition: fill 0.2s ease-in-out;
}

.back-button:hover {
  color: var(--text-color-3);
}

.back-button:hover > svg {
  transform: translateX(-3px);
}

.product-images {
  display: flex;
  align-items: center;
  gap: 15px;
}

.product-images > svg {
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  width: 17px;
  height: auto;
}

.product-images > svg > g {
  fill: var(--main-color-1);
  transition: fill 0.2s ease-in-out;
}

.product-images > svg > g > path:last-child {
  fill: var(--text-color-2);
  transition: fill 0.2s ease-in-out;
}

.product-images > svg:hover > g > path:last-child {
  fill: var(--text-color-3);
}

.product-images > svg:first-child:hover {
  transform: translateX(-3px);
}

.product-images > svg:last-child:hover {
  transform: translateX(3px);
}

.product-images > div {
  margin: 10px 0;
  position: relative;
  background-color: var(--main-color-3);
  height: 30vw;
  width: calc(100% - 68px);
  transition: background-color 0.2s ease-in-out;
}

.product-images > div > img {
  position: absolute;
  display: block;
  height: calc(100% - var(--margin) * 2);
  width: calc(100% - var(--margin) * 2);
  object-fit: contain;
  top: var(--margin);
  left: var(--margin);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  filter: drop-shadow(0 0 5px var(--text-color-3));
}

.product-images > div > img.active {
  opacity: 1;
  pointer-events: all;
}

.product-gallery {
  display: flex;
  gap: 10px;
  margin-left: 32px;
}

.product-gallery > div {
  position: relative;
  cursor: pointer;
  width: 80px;
  height: 50px;
  background-color: var(--main-color-3);
  transition: background-color 0.2s ease-in-out;
}

.product-gallery > div > span {
  background-color: var(--text-color-2);
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
  pointer-events: none;
}

.product-gallery > div > svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.product-gallery > div.active > span {
  opacity: 0.8;
}

.product-gallery > div.active > svg {
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

.product-gallery > div > svg > g > g,
.product-gallery > div > svg > g > line {
  stroke: var(--main-color-1);
  transition: stroke 0.2s ease-in-out;
}

.product-gallery > div > img {
  object-fit: contain;
  display: block;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  top: 5px;
  left: 5px;
  position: absolute;
}

.product-right {
  padding-top: calc(0.8rem + 10px);
  max-width: 500px;
}

.product-right > span,
.product-left > span {
  font-weight: 200;
  font-style: italic;
  display: block;
}

.product-left > h1,
.product-left > span {
  padding: 0 32px;
  display: none;
}

.product-left > h1 {
  margin-top: 20px;
}

.product-right > p {
  margin: 15px 0;
}

.add-to-cart {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 20px 0 40px;
}

.add-to-cart > p {
  font-style: italic;
  font-weight: 200;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.specs {
  font-style: italic;
  font-weight: 200;
  text-align: right;
}

.more-products {
  padding: 40px;
}

.more-products h1 {
  margin-bottom: 20px;
}

.product-return {
  margin-bottom: 40px;
}

.product-return a {
  display: block;
  margin: auto;
}

.shop-return {
  margin: 80px 0 20px;
  text-align: center;
}

.shop-return a {
  display: block;
  margin: auto;
  margin-top: 20px;
}

@media screen and (max-width: 992px) {
  .product-info {
    display: block;
  }
  .product-images > div {
    height: 60vw;
  }
  .product-right {
    padding: 20px 32px 0;
    max-width: 100%;
  }
  .product-right > h2,
  .product-right > span {
    display: none;
  }
  .product-left > h1,
  .product-left > span {
    display: block;
  }
  .more-products {
    padding: 40px 0;
  }
  .more-products .products .product:nth-child(3) {
    display: none;
  }
  .shop-return {
    margin: 60px 0 40px;
  }
}

@media screen and (max-width: 600px) {
  .product-left > h1,
  .product-left > span {
    padding: 0;
  }
  .product-right {
    padding: 20px 0;
  }
  .product-images > svg {
    display: none;
  }
  .product-images > div {
    flex-basis: 100%;
  }
  .product-gallery,
  .product-left > a {
    margin-left: 0;
  }
  .shop-return {
    margin: 60px 0 30px;
  }
}

/*************
    INPUTS
**************/

.field {
  margin: 12px 0 10px;
  position: relative;
}

.field.hidden {
  display: none;
}

.cart-product .field {
  margin: 5px 0 10px;
}

.field label {
  display: block;
  font-size: 0.9rem;
  width: max-content;
  letter-spacing: 1px;
}

.field input {
  background-color: transparent;
  outline: none;
  border: 1px solid var(--text-color-3);
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 0.8rem;
  font-family: inherit;
  padding: 7px 5px 3px;
  max-width: 100%;
  height: var(--field-height);
  width: 250px;
  box-sizing: border-box;
  color: var(--text-color-1);
  transition: border 0.2s ease-in-out, color 0.2s ease-in-out;
  letter-spacing: 1px;
  font-style: italic;
}

.field input::placeholder {
  font-weight: 200;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

#checkout_form .field input {
  width: 500px;
}

#checkout_form {
  transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

#checkout_form.hidden {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

#payment_message {
  margin: 20px 0 10px;
  color: var(--error-color);
  text-align: center;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 500px;
  max-width: 100%;
  gap: 10px;
}

.field-grid input {
  width: 100% !important;
}

.field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 40px;
  margin-bottom: 10px;
}

.field-list > .field {
  margin: 0 !important;
}

.select-place {
  height: var(--field-height);
  width: 100%;
}

.select {
  position: absolute;
  border: 1px solid var(--text-color-3);
  border-radius: 4px;
  font-size: 0.8rem;
  width: 250px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  height: var(--field-height);
  background-color: var(--main-color-1);
  transition: height 0.2s ease-in-out, border 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
}

.select-drop {
  overflow: auto;
  max-height: 200px;
}

#checkout_form .field .select {
  width: 500px;
}

.field.box {
  display: flex;
  align-items: center;
  align-items: flex-start;
  cursor: pointer;
}

.field.box label {
  margin: 0;
  padding-top: 3px;
  padding-left: 10px;
  cursor: pointer;
  font-size: 0.8rem;
}

.field.box label a {
  color: var(--text-color-3);
  transition: color 0.2s ease-in-out;
}

.field.box label a:hover {
  color: var(--text-color-1);
}

input[type="checkbox"],
input[type="radio"] {
  appearance: none;
  height: 16px;
  width: 16px !important;
  min-width: 16px;
  border-radius: 3px;
  margin: 0;
  margin-top: 2px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

input[type="checkbox"]::before,
input[type="radio"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  transform: scale(0);
  transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
  background-color: var(--text-color-1);
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
  transform: scale(1);
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="radio"]::before {
  border-radius: 50%;
}

.field:first-child .select {
  z-index: 100;
}
.field:nth-child(2) .select {
  z-index: 99;
}
.field:nth-child(3) .select {
  z-index: 98;
}
.field:nth-child(4) .select {
  z-index: 97;
}
.field:nth-child(5) .select {
  z-index: 96;
}
.field:nth-child(6) .select {
  z-index: 95;
}
.field:nth-child(7) .select {
  z-index: 94;
}
.field:nth-child(8) .select {
  z-index: 93;
}
.field:nth-child(9) .select {
  z-index: 92;
}
.field:nth-child(10) .select {
  z-index: 91;
}
.field:nth-child(11) .select {
  z-index: 90;
}
.field:nth-child(12) .select {
  z-index: 89;
}
.field:nth-child(13) .select {
  z-index: 88;
}
.field:nth-child(14) .select {
  z-index: 87;
}
.field:nth-child(15) .select {
  z-index: 86;
}
.field:nth-child(16) .select {
  z-index: 85;
}
.field:nth-child(17) .select {
  z-index: 84;
}
.field:nth-child(18) .select {
  z-index: 83;
}
.field:nth-child(19) .select {
  z-index: 82;
}
.field:nth-child(20) .select {
  z-index: 81;
}

.select > svg {
  position: absolute;
  top: 8px;
  right: 6px;
  transition: transform 0.2s ease-in-out;
}

.select > svg path {
  fill: var(--text-color-3);
  transition: fill 0.2s ease-in-out;
}

.select.active > svg {
  transform: rotate(-180deg);
}

.select-value {
  padding: 4px 0px 0px 6px;
  margin-right: 20px;
  height: var(--field-height);
  letter-spacing: 1px;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.option {
  padding: 3px 0 3px 6px;
  font-style: italic;
  font-weight: 300;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
}

.option.hidden {
  display: none;
}

.option.disabled {
  opacity: 0.8;
  cursor: default;
}

.option.selected {
  display: none;
}

.option:not(.disabled):hover {
  font-weight: 400;
  background-color: var(--main-color-3);
}

/***********
    CART
************/

#cart_background {
  background-color: var(--text-color-3);
  position: fixed;
  z-index: 11;
  height: calc(100vh - (100vh - 100%) - 100px);
  height: calc(100svh - (100svh - 100%) - 100px);
  width: 100%;
  top: 50px;
  left: 0;
  transition: opacity 0.2s ease-in-out;
  pointer-events: none;
  opacity: 0;
}

#cart_background.active {
  opacity: 0.5;
  pointer-events: all;
}

#cart {
  position: fixed;
  z-index: 12;
  height: calc(100vh - (100vh - 100%) - 100px);
  height: calc(100svh - (100svh - 100%) - 100px);
  top: 50px;
  width: 450px;
  max-width: 100%;
  right: 0;
  box-sizing: border-box;
  transform: translateX(100%);
  pointer-events: none;
  background-color: var(--main-color-3);
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#cart.active {
  pointer-events: all;
  transform: translateX(0);
}

#checkout_cart {
  transition: opacity 0.2s ease-in-out;
}

#checkout_cart.loading {
  opacity: 0.6;
  pointer-events: none;
}

#checkout_cart.locked .cart-product-head > a {
  pointer-events: none;
}

#checkout_cart.locked .field {
  margin: 0;
}

#checkout_cart.locked .select {
  border: none;
  pointer-events: none;
  cursor: unset;
  width: 100%;
}

#checkout_cart .cart-product-head {
  margin-bottom: 10px;
}

#checkout_cart.locked .select-value {
  padding: 0;
}

#checkout_cart.locked .select svg,
#checkout_cart.locked .cart-product-qte > span,
#checkout_cart.locked .cart-product-qte + svg,
#discount_form.locked {
  display: none;
}

#checkout_cart.locked .cart-product-qte > p::before {
  content: "x";
}

#cart > div {
  transition: opacity 0.2s ease-in-out;
  position: relative;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--main-color-1);
  padding-top: 40px;
  transition: background-color 0.2s ease-in-out;
}

#cart.loading > div {
  opacity: 0.6;
  pointer-events: none;
}

.cart-bottom {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 26px 10px 20px;
  height: 100%;
  background-color: var(--main-color-3);
  transition: background-color 0.2s ease-in-out;
}

#cart > div > h3 {
  text-align: center;
  font-style: italic;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1;
}

.cart-basket {
  position: absolute;
  top: 40px;
  left: 20px;
}

.cart-basket.hidden {
  display: none !important;
}

.cart-basket > svg {
  width: 22px;
  height: auto;
  display: block;
}

.cart-basket > svg > path {
  fill: var(--text-color-1);
  transition: fill 0.2s ease-in-out;
}

.cart-basket > span {
  background-color: var(--main-color-1);
  border: 1px solid var(--text-color-1);
  border-radius: 50%;
  transition: background-color 0.2s ease-in-out, border 0.2s ease-in-out;
  position: absolute;
  width: 17px;
  height: 17px;
  top: -7px;
  left: 13px;
  box-sizing: border-box;
}

.cart-basket > span > p {
  height: 100%;
  width: 100%;
  padding-top: 2px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  font-style: italic;
}

.close-cart {
  cursor: pointer;
  position: absolute;
  right: 26px;
  top: 40px;
  height: 25px;
  width: 25px;
}

.close-cart > span {
  height: 1px;
  width: 100%;
  position: absolute;
  background-color: var(--text-color-1);
  transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.close-cart > span:first-child {
  transform: translateY(12px) rotate(45deg);
}

.close-cart > span:last-child {
  transform: translateY(12px) rotate(-45deg);
}

.close-cart:hover > span:first-child {
  transform: translateY(12px) rotate(-45deg);
}

.close-cart:hover > span:last-child {
  transform: translateY(12px) rotate(45deg);
}

.cart-bottom > .btn {
  width: 306px;
  max-width: 100%;
  margin: 10px auto;
}

.cart-bottom > .btn.dark {
  margin-top: 20px;
}

.cart-bottom > hr {
  width: 100%;
  border: none;
  border-top: 1px solid var(--text-color-3);
  transition: border 0.2s ease-in-out;
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  width: 100%;
}

.cart-subtotal > p:first-child {
  font-style: italic;
  font-weight: 200;
}

.cart-subtotal > p:last-child {
  font-style: italic;
}

#cart_error {
  display: none;
  padding: 20px;
}

#cart_error.active {
  display: block;
}

#cart_list {
  overflow: auto;
  width: calc(100% - 20px);
  flex: 1;
  margin: 20px 0 0;
  padding: 0 6px 0 20px;
  box-sizing: border-box;
}

#cart_list > p {
  min-height: 100vh;
}

.cart-product {
  display: flex;
  align-items: stretch;
  padding: 20px 0;
}

.cart-product-image {
  flex-basis: 30%;
  padding: 10px;
  background-color: var(--main-color-3);
  transition: background-color 0.2s ease-in-out;
  position: relative;
}

.cart-product-image > img {
  height: calc(100% - 20px);
  width: calc(100% - 20px);
  object-fit: contain;
  position: absolute;
  transition: opacity 0.2s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.cart-product-image > img.active {
  opacity: 1;
  pointer-events: all;
}

.cart-product-info {
  position: relative;
  flex: 70%;
  padding-left: 10px;
  box-sizing: border-box;
}

.cart-product-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 20px;
  margin-top: 7px;
}

.cart-product-head > span {
  font-style: italic;
}

.cart-product-head > a {
  color: var(--text-color-1);
  transition: color 0.2s ease-in-out;
  letter-spacing: 1px;
  font-style: italic;
  font-size: 1.1rem;
}

.cart-product-info > svg {
  position: absolute;
  bottom: 0;
  right: 0;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
}

.cart-product-info > svg:hover {
  opacity: 0.8;
}

.cart-product-info > svg > path {
  fill: var(--text-color-1);
  transition: fill 0.2s ease-in-out;
}

.cart-product-info .select {
  width: 200px;
}

.cart-product-qte {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-product-qte > span {
  cursor: pointer;
  width: 20px;
  text-align: center;
  transition: opacity 0.2s ease-in-out;
}

.cart-product-qte > span:hover {
  opacity: 0.8;
}

.cart-product-qte > p {
  min-width: 20px;
  text-align: center;
}

@media screen and (max-width: 450px) {
  #cart > div {
    padding-top: 20px;
  }
  .cart-basket {
    top: 20px;
    left: 10px;
  }
  .close-cart {
    top: 20px;
    right: 16px;
  }
  .cart-bottom {
    padding: 10px 16px 10px 10px;
  }
  #cart_error {
    padding: 10px;
  }
  #cart_list {
    width: calc(100% - 10px);
    padding: 0 6px 0 10px;
  }
}

/*************
    CHECKOUT
**************/

.checkout {
  min-height: 1vh;
  min-height: 1svh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease-in-out;
}

.checkout.loading {
  opacity: 0.7;
  pointer-events: none;
}

.checkout > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  width: 100%;
  padding: 30px 40px 45px;
  box-sizing: border-box;
  max-width: 1200px;
}

.checkout-left {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.checkout-left h2 {
  margin: 10px 0 20px;
}

.checkout-left > .back-button,
.checkout-right > .back-button {
  margin: 0;
}

.checkout-right > .back-button {
  display: none;
}

.checkout-left .field {
  margin: 10px 0;
}

.checkout-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.totaltotal > span {
  font-weight: 500;
}

#checkout_form > .field:not(.box) > label {
  margin-top: 20px;
}

.checkout-subtotal > p {
  font-weight: 200;
  font-style: italic;
}

.checkout-subtotal > span {
  font-style: italic;
}

.checkout-discount {
  margin-left: auto;
  width: max-content;
  max-width: 100%;
}

.checkout-discount > .field {
  display: flex;
  align-items: center;
  gap: 20px;
}

.checkout-discount > .field > input {
  height: calc(1.2rem + 16px);
  font-size: 0.9rem;
  text-transform: uppercase;
  padding-left: 10px;
  padding-right: 10px;
}

.checkout-discount > .field > input::placeholder {
  font-size: 0.9rem;
  text-transform: none;
}

#invoice_infos.hidden {
  display: none;
}

.checkout-left .btn {
  margin-left: auto;
  margin-top: 20px;
}

.checkout-left > a:last-child {
  position: absolute;
  bottom: 8px;
  left: 0;
}

#checkout_discount {
  display: none;
}

#checkout_discount.active {
  display: flex;
}

#shipping_options.hidden {
  display: none;
}

#shipping_container {
  display: none;
}

#shipping_container.active {
  display: flex;
}

#shipping_container.free > span {
  text-decoration: line-through;
}

#relay_point_info {
  margin-top: -10px;
  margin-bottom: 20px;
}

#relay_point_info.hidden {
  display: none;
}

#relay_point_info > a {
  font-weight: 500;
  letter-spacing: 1px;
}

#address_is_billing,
#billing_address_block {
  display: none;
}

#address_is_billing.active,
#billing_address_block.active {
  display: block;
}

#discount_error {
  color: var(--error-color);
  display: none;
  margin-top: -6px;
  font-size: 0.8rem;
}

#discount_success {
  color: var(--success-color);
  display: none;
  margin-top: -6px;
  font-size: 0.8rem;
}

#discount_error.active,
#discount_success.active {
  display: block;
}

@media screen and (max-width: 1200px) {
  .checkout > div {
    gap: 40px;
  }
}

@media screen and (max-width: 1100px) {
  .checkout-discount > .field > input {
    width: 100px;
  }
}

@media screen and (max-width: 992px) {
  .checkout > div {
    padding: 0;
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .checkout-left {
    overflow: hidden;
    width: auto;
  }
  .checkout-discount > .field > input {
    width: 250px;
  }
  .checkout-right > .back-button {
    display: block;
  }
  .checkout-right > h2 {
    margin-top: 10px;
  }
  .checkout-left > .back-button {
    display: none;
  }
  #checkout_form {
    width: max-content;
    margin: auto;
    max-width: 100%;
  }
}

@media screen and (max-width: 500px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .checkout-discount > .field {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .checkout-left > a:last-child {
    display: none;
  }
  .checkout-discount > .field > input {
    width: 200px;
  }
}

/***************
    COLISSIMO
****************/

.widget_colissimo_close {
  display: none;
}

.widget_colissimo_bouton_validation > p {
  text-align: center;
  transform: translateX(-8px);
}

#colissimoModal {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  pointer-events: none;
}

#colissimoBack {
  background-color: var(--text-color-3);
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

#colissimoModal.active {
  pointer-events: all;
}

#colissimoModal.active #colissimoBack {
  opacity: 0.5;
}

#colissimoWidget {
  overflow: hidden;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: calc(100% - 120px);
  max-width: calc(100% - 20px);
}

@media screen and (max-width: 992px) {
  #colissimoWidget {
    grid-column: 1;
    order: 1;
  }
}

/***************
    COLISSIMO
****************/

.confirmation {
  min-height: calc(100vh - 100px - var(--margin) * 2 - 2vw);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.couleur1 {
  color: var(--text-color-3);
}

.couleur2 {
  color: var(--text-color-3);
}

.police {
  font-family: "SiteFont", serif;
}

/*********
  FOLDERS
**********/
.gallery.active.folders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 140px 80px;
  padding: 80px 80px;
}

.gallery.active.folders.line-mode {
  display: flex;
  gap: 140px 120px;
  padding: 20px;
}

.gallery.active.folders.line-mode .folder:first-child {
  margin-left: 60px;
}

.gallery.active.folders.line-mode .folder:last-child {
  margin-right: 80px;
}

.folder {
  cursor: pointer;
  display: flex;
  width: max-content;
  pointer-events: none;
  justify-content: center;
  max-height: 100%;
  overflow: hidden;
}

.folder > div {
  pointer-events: all;
  width: max-content;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
}

.folder > div > picture {
  pointer-events: none;
  display: block;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
  flex: 1;
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--text-color-1);
  transition: opacity 0.2s ease-in-out;
}

.folder > div > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: calc(50vw - var(--margin) - 124px);
  max-height: calc(43vw - var(--margin) - 124px);
}

.folder:hover > div > picture {
  opacity: 0.8;
}

.folder > div > p {
  font-style: italic;
  padding-top: 10px;
  width: max-content;
  color: var(--text-color-1);
}

.folder.small-folder > div > picture > img {
  max-width: calc(25vw - var(--margin) / 2 - 44px);
  max-height: calc(24vw - var(--margin) / 2 - 44px);
}

@media screen and (max-height: 800px) {
  .gallery.active.folders.line-mode {
    padding: 0;
  }
}

@media screen and (max-width: 1500px) {
  .gallery.active.folders {
    gap: 100px 40px;
    padding: 40px 40px;
  }

  .folder > div > picture > img {
    max-width: calc(50vw - var(--margin) - 64px);
    max-height: calc(43vw - var(--margin) - 64px);
  }

  .folder.small-folder > div > picture > img {
    max-width: calc(25vw - var(--margin) / 2 - 24px);
    max-height: calc(24vw - var(--margin) / 2 - 24px);
  }
}

@media screen and (max-width: 992px) {
  .gallery.active.folders {
    padding: 40px;
    gap: 80px;
  }

  .gallery.active.folders {
    grid-template-columns: 1fr;
  }

  .folder > div > picture > img {
    max-width: calc(100vw - var(--margin) - 102px);
    max-height: calc(90vw - var(--margin) - 102px);
  }

  .folder.small-folder > div > picture > img {
    max-width: calc(80vw - var(--margin) - 102px);
    max-height: calc(70vw - var(--margin) - 102px);
  }
}

@media screen and (max-width: 500px) {
  .gallery.active.folders {
    padding: 20px 0;
    gap: 40px;
  }

  .folder > div > picture > img,
  .folder.small-folder > div > picture > img {
    max-width: calc(100vw - var(--margin) - 24px);
    max-height: calc(90vw - var(--margin) - 24px);
  }
}
