@charset "utf-8";

:root {
  --menuBg: rgba(255, 255, 255, 0.7);
  --menuBgHide: rgba(255, 255, 255, 0.9);
  --logoFontColor: #333436;
  --logoFontSize: 26px;
  --logoFontSizeHide: 20px;
  --menuFontColor: #333436;
  --menuFontSize: 18px;
  --menuActiveColor: #333436;

  --homeFontColor: #fff;
  --homeFontSizeTitle: 24px;
  --homeFontSize: 16px;

  --productBg: rgba(255, 255, 255, 0.8);
  --productBgActive: rgba(255, 255, 255, 1);
  --productNameColor: #000;
  --productTextColor: #747474;

  --productListFontSize: 16px;
  --productListNameFontSize: 24px;
  --productListPriceColor: rgba(25, 154, 202, 1);
  --productListPriceSize: 24px;
  --productListSpColor: rgba(250, 30, 128, 1);
  --productListOldPriceColor: rgba(150, 150, 150, 1);
  --productListOldPriceSize: 18px;
  --productListQtyColor: rgba(150, 150, 150, 1);
  --productListCountColor: rgba(230, 230, 230, 1);

  --productCartIconColor: rgba(255, 22, 84, 1);
  --checkoutFontColorSuccess: #199aca;
	--checkoutFontSizeSuccess: 24px;
  --checkoutFontColorError: #ca1919;
  --checkoutNameSize: 16px;
  --checkoutPriceSize: 16px;
  --checkoutOldPriceSize: 14px;
  --checkoutTotalColor: rgba(25, 154, 202, 1);
	--checkoutTotalSize: 24px;
  --checkoutFontColor: #000;
	--checkoutFontSize: 18px;
	--checkoutBorderColor: #aaa;
  --checkoutFontColorPayment: #000;
	--checkoutFontSizePayment: 24px;

  --footerFontColor: #fff;
  --footerFontSize: 14px;
}

.siteBg {
  background-size: cover; background-repeat: no-repeat; background-position: center top; overflow: hidden;
  width: 100vw; height: 100vh; position: relative; display: none;
}
.siteBg img {
  width: 100%; opacity: 0;
}
.siteContent {
  width: 100vw; height: 100vh; position: absolute; z-index: 2; overflow: auto; scroll-behavior: smooth;
}
.siteContent > div {
  display: block;
}



.topContent {
  width: 100%; padding: 40px 80px; position: fixed; z-index: 3; display: flex;
  transition: padding 0.3s;
}
.topContent.hide {
  width: 100%; padding: 0  0 40px 0; position: fixed; z-index: 3; display: flex;
}
.topContent > .logo {
  background: var(--menuBg); width: 400px; height: 200px; cursor: pointer;
  display: flex;
  transition: background 0.3s, width 0.3s, height 0.3s;
}
.topContent.hide > .logo {
  width: 340px; height: 100px; background: var(--menuBgHide);
}
.topContent > .logo > .logoImg {
  flex: 1; width: 100%; height: 100%; padding: 20px;
  display: flex; align-items: center; justify-content: flex-end;
}
.topContent > .logo > .logoImg img {
  max-width: 70%;
}
.topContent > .logo > .logoText {
  flex: 2; padding: 20px 40px 20px 20px; align-items: center; justify-content: flex-start; display: flex;
  color: var(--logoFontColor); font-size: var(--logoFontSize); line-height: 1.5em;
  transition: padding 0.3s, font-size 0.3s;
}
.topContent.hide > .logo > .logoText {
  font-size: var(--logoFontSizeHide); padding: 20px 60px 20px 20px;
}
.topContent.hide > .mainMenu {
  margin: 0; padding: 0 60px 0 0; background: var(--menuBgHide);
}

.mainMenu {
  flex: 1; margin: 40px; background: var(--menuBg);
  transition: background 0.3s, margin 0.3s;
}
.mainMenu > .items {
  display: flex; height: 100%;
}
.mainMenu > .items > div {
  flex: 1; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer;
  color: var(--menuFontColor); font-size: var(--menuFontSize); line-height: 1.5em; cursor: pointer;
}
.mainMenu > .items > div::before {
  content: '';
  border: var(--menuActiveColor) 2px solid; width: 70%; position: absolute; top: 25px;
  transition: transform 0.3s, opacity 0.3s; transform: scale(0, 1); opacity: 0;
}
.mainMenu > .items > div:hover::before, .mainMenu > .items > div.active::before {
  transform: scale(1, 1); opacity: 1;
}
.mainMenu > .toggle {
  display: none;
}
.mainMenu > .toggle img {
  height: 50px; margin: 24px 20px 0 20px; position: fixed; z-index: 4; top: 0; right: 60px; cursor: pointer;
}
.mainMenu > .toggle > .menu, .mainMenu.active > .toggle > .close {
  display: block;
}
.mainMenu.active > .toggle > .menu, .mainMenu > .toggle > .close {
  display: none;
}



@media only screen and (max-width:1200px) {
  .topContent {
    padding: 20px 20px 20px 40px;
  }
}
@media only screen and (max-width:1080px) {
  .topContent {
    width: 100%; padding: 0 0 40px 0; position: fixed; z-index: 3; display: flex;
  }
  .topContent > .logo {
    width: 340px; height: 100px; background: var(--menuBgHide);
  }
  .topContent > .logo > .logoText {
    font-size: var(--logoFontSizeHide); padding: 20px 60px 20px 20px;
  }
  .mainMenu {
    margin: 0; padding: 0 60px 0 0; background: var(--menuBgHide);
  }
}
@media only screen and (max-width:860px) {
  .topContent, .topContent.hide {
    background: var(--menuBgHide); padding: 0;
  }
  .topContent > .logo {
    background: none;
  }
  .topContent.hide > .logo {
    background: none;
  }
  .mainMenu {
    background: none;
  }
  .topContent.hide > .mainMenu {
    background: none;
  }
  .mainMenu > .items {
    position: fixed; z-index: 3; margin: 0; padding: 0; top: 0; left: 100vw; width: 100%; height: 100vh; margin: auto auto; background: var(--menuBgHide);
    display: block; padding: 100px 40px 40px 40px;
    transition: opacity 0s 0.4s ease-in, left 0.4s ease-in; opacity: 0;
  }
  .mainMenu.active > .items {
		visibility: visible; opacity: 1; left: 0; background: var(--menuBgHide);
		transition: opacity 0s 0s ease-in, left 0.4s ease-in;
	}
  .mainMenu > .items > div {
    padding: 20px 0;
  }
  .mainMenu > .items > div::before {
    top: 60px;
  }
  .mainMenu > .toggle {
    display: block;
  }
}



.middleContent {
  padding: 320px 80px 100px 80px; min-height: 600px;
}
.homeContent {
  width: 100%; max-width: 1000px; display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.homeContent > .content {
  width: 400px; align-self: center;
}
.homeContent > .content > .title {
  color: var(--homeFontColor); font-size: var(--homeFontSizeTitle); line-height: 1.5em; font-weight: bold;
  padding: 0 0 30px 0; margin: 0 0 30px 0; border-bottom: var(--homeFontColor) 1px solid;
}
.homeContent > .content > .text {
  color: var(--homeFontColor); font-size: var(--homeFontSize); line-height: 1.5em; font-weight: bold;
}
.homeContent > .photo {
  flex: 1; padding: 20px; margin: 0 0 0 40px; border-radius: 15px; text-align: center;
  border: var(--menuBg) 3px solid;
}
.homeContent > .photo img {
  max-width: 100%;
}

@media only screen and (max-width:1080px) {
  .middleContent {
    padding: 180px 80px 100px 80px;
  }
}
@media only screen and (max-width:860px) {
  .homeContent {
    display: block;
  }
  .homeContent > .content {
    width: 100%; margin: 0 0 40px 0;
  }
  .homeContent > .photo {
    margin: 0;
  }
  .middleContent {
    padding: 180px 40px 100px 40px;
  }
}
@media only screen and (max-width:720px) {
  .middleContent {
    padding: 180px 20px 100px 20px;
  }
}



.productHome {
}
.productHome > .cat {
  color: var(--homeFontColor); font-size: var(--homeFontSizeTitle); line-height: 1.5em; font-weight: bold;
  width: 500px; max-width: 100%; padding: 0 0 30px 0; margin: 120px 0 40px 0; border-bottom: var(--homeFontColor) 1px solid;
}
.productHome > .list {
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-column-gap: 60px; grid-row-gap: 40px;
}
.productHome > .list > div {
  background-color: var(--productBg); height: 540px; border-radius: 10px; padding: 40px; margin-top: 20px; cursor: pointer;
  transition: background-color 0.5s, margin 0.5s;
}
.productHome > .list > div:hover, .productHome > .list > div.active {
  background-color: var(--productBgActive); margin-top: 0;
}
.productHome > .list > div > .name {
  text-align: center; color: var(--productNameColor); font-size: 24px; line-height: 40px; height: 80px; overflow: hidden; margin: 0 0 40px 0;
}
.productHome > .list > div > .photo {
  width: 100%; height: 200px; display: flex; align-items: center; justify-content: center;
}
.productHome > .list > div > .photo img {
  max-width: 100%; max-height: 100%; border-radius: 50%;
  filter: contrast(0.5); transition: filter 0.5s;
}
.productHome > .list > div:hover > .photo img, .productHome > .list > div.active > .photo img {
  filter: contrast(1);
}
.productHome > .list > div > .text {
  text-align: center; color: var(--productTextColor); font-size: 16px; line-height: 30px; height: 90px; overflow: hidden; margin: 40px 0 0 0;
}
.productHome > .message {
  color: var(--homeFontColor); height: 90px;
}
@media only screen and (max-width: 1080px) {
  .productHome > .list {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (max-width: 720px) {
  .productHome > .list {
    grid-template-columns: 1fr;
  }
}

.productDetails {
  display: grid; grid-template-columns: 340px 1fr; grid-column-gap: 20px;
}
.productDetails > .photos > div {
  display: flex; align-items: center; justify-content: center;
}
.productDetails > .photos > .frist {
  display: block; margin: 0 0 10px 0;
}
.productDetails > .photos > .list {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 10px;
}
.productDetails > .photos img {
  max-width: 100%;
}
.productDetails > .content > .name {
  font-size: var(--productListNameFontSize); line-height: 1.5em; margin: 0 0 20px 0;
}
.productDetails > .content > .text {
  font-size: var(--productListFontSize); line-height: 1.5em; margin: 0 0 20px 0;
}
.productDetails > .content > .price {
  color: var(--productListPriceColor); font-size: var(--productListPriceSize); line-height: 1.5em; text-align: right; margin: 0 0 20px 0;
}
.productDetails > .content > .price > .old {
  color: var(--productListOldPriceColor); font-size: var(--productListOldPriceSize); text-decoration: line-through; display: inline-block;
}
.productDetails > .content > .price > .sp {
  color: var(--productListSpColor); display: inline-block;
}
.productDetails > .content > .price > .sold {
  color: var(--productListSpColor); display: inline-block;
}
.productDetails > .content > .count {
  width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px;
}
.productDetails > .content > .count > .qty {
  width: 160px; display: grid; grid-template-columns: 30px 1fr 30px;
}
.productDetails > .content > .count > .qty > .dec {
  background: var(--productListQtyColor); font-size: 24px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
}
.productDetails > .content > .count > .qty > .num {
  display: flex; align-items: center; justify-content: center; background: var(--productListCountColor);
}
.productDetails > .content > .count > .qty > .num input {
  width: 100%; height: 30px; text-align: center; font-size: 18px; background: transparent;
}
.productDetails > .content > .count > .qty > .num input:focus{
  outline: none;
}
.productDetails > .content > .count > .qty > .add {
  background: var(--productListQtyColor); font-size: 24px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
}
.productDetails > .content > .count > .total {
  width: 150px;
}
.productDetails > .content > .count > .total > div {
  background: var(--productListCountColor); width: 100%; height: 30px; display: flex; align-items: center; justify-content: flex-start; padding: 0 10px;
  font-size: var(--productListOldPriceSize);
}


@media only screen and (max-width: 820px) {
  .productDetails {
    grid-template-columns: 200px 1fr;
  }
}
@media only screen and (max-width: 600px) {
  .productDetails {
    display: block;
  }
  .productDetails > .photos {
    margin: 0 0 20px 0;
  }
}
@media only screen and (max-width: 380px) {
  .productDetails > .content > .count > .qty {
    width: auto;
  }
  .productDetails > .content > .count > .total {
    width: auto;
  }
}



.cartIcon {
  margin: 32px 20px 0 20px; position: fixed; z-index: 5; top: 0; right: 0; cursor: pointer;
}
.cartIcon img {
  height: 30px;
}
.cartIcon > .num {
  position: fixed; z-index: 6; width: 20px; height: 20px; line-height: 20px; text-align: center; color: #fff; border-radius: 50%; margin: 0 0 0 15px;
  background: var(--productCartIconColor); transform: scale(1, 1); opacity: 1; transition: opacity 0.5s, transform 0.5s;
}
.cartIcon > .num.active {
  transform: scale(2.5, 2.5); opacity: 0;
}
.cartIcon > .num.disabled {
  transform: scale(1, 1); opacity: 0;
}


.checkout {
  width: 100%;
}
.checkout > .item > div {
  display: grid; grid-template-columns: 40px 60px 1fr; grid-column-gap: 20px;
  border-bottom: #ccc 1px solid; padding: 0 0 20px 0; margin: 0 0 20px 0;
}
.checkout > .item > div.preview {
  grid-template-columns: 60px 1fr;
}
.checkout > .item > div > .action {
  display: flex; align-items: center; justify-content: flex-start;
}
.checkout > .item > div > .action img {
  max-height: 20px; max-width: 100%; cursor: pointer;
}
.checkout > .item > div > .photo {
  display: flex; align-items: center; justify-content: center;
}
.checkout > .item > div > .photo img {
  max-height: 60px; max-width: 100%;
}
.checkout > .item > div > .text > .name {
  font-size: var(--checkoutNameSize); line-height: 2em;
}
.checkout > .item > div > .text > .count > .price {
  display: inline-block; width: 160px;
  color: var(--productListPriceColor); font-size: var(--checkoutPriceSize); line-height: 1.5em; margin: 0 0 20px 0;
}
.checkout > .item > div.preview > .text > .count > .price {
  margin: 0 0 0 0;
}
.checkout > .item > div > .text > .count > .price > .old {
  color: var(--productListOldPriceColor); font-size: var(--checkoutOldPriceSize); text-decoration: line-through; display: inline-block;
}
.checkout > .item > div > .text > .count > .price > .sp {
  color: var(--productListSpColor); display: inline-block;
}
.checkout > .item > div > .text > .count > .price > .sold {
  color: var(--productListSpColor); display: inline-block;
}
.checkout > .item > div > .text > .count > .qty {
  width: 120px; display: inline-grid; grid-template-columns: 20px 1fr 20px;
}
.checkout > .item > div > .text > .count > .qty > .dec {
  background: var(--productListQtyColor); font-size: 18px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
}
.checkout > .item > div > .text > .count > .qty > .num {
  display: flex; align-items: center; justify-content: center; background: var(--productListCountColor);
}
.checkout > .item > div > .text > .count > .qty > .num input {
  width: 100%; height: 20px; text-align: center; font-size: 14px; background: transparent;
}
.checkout > .item > div > .text > .count > .qty > .num input:focus{
  outline: none;
}
.checkout > .item > div > .text > .count > .qty > .add {
  background: var(--productListQtyColor); font-size: 18px; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
}
.checkout > .item > div > .text > .count > .total {
  width: 120px; display: inline-block; margin: 5px 0;
}
.checkout > .item > div > .text > .count > .total > div {
  background: var(--productListCountColor); width: 100%; height: 20px; display: flex; align-items: center; justify-content: flex-start; padding: 0 10px;
  font-size: 14px;
}
.checkout > .total {
  border: none; text-align: right; color: var(--checkoutTotalColor); font-size: var(--checkoutTotalSize); line-height: 2em;
}
.checkout > .success {
	color: var(--checkoutFontColorSuccess); font-size: var(--checkoutFontSizeSuccess); line-height: 1.5em; display: block; padding: 10px 0 10px 0;
}
.checkout > .message {
  border: none; line-height: 2em;
}

.checkoutPayment {
  width: 100%; color: var(--checkoutFontColorPayment); font-size: var(--checkoutFontSizePayment); padding: 30px 20px; border-radius: 5px; background: var(--productBg);
}
.checkoutPayment.error {
  color: var(--checkoutFontColorError);
}

.checkoutForm {
  width: 100%;
}
.checkoutForm.preview {
  margin: 40px 0 0 0; font-size: var(--checkoutFontSize);
}
.checkoutForm > div {
  display: flex; align-items: center; justify-content: flex-start;
}
.checkoutForm > div > div {
  flex: 1; padding: 20px 10px 10px 10px; position: relative;
}
.checkoutForm > div > div > .error {
  position: absolute; top: 0; left: 0; color: var(--checkoutFontColorError);
}
.checkoutForm input, .checkoutForm textarea {
  color: var(--checkoutFontColor); font-size: var(--checkoutFontSize); line-height: 1.5em; width: 100%; padding: 10px 20px;
  border: var(--checkoutBorderColor) 1px solid; border-radius: 5px;
}
.checkoutForm > .title {
  color: var(--checkoutTotalColor); font-size: var(--checkoutTotalSize); border-bottom: #ccc 1px solid; padding: 0 0 20px 0; margin: 0 0 20px 0;
}
.checkoutForm .content {
  font-size: var(--checkoutFontSize); line-height: 1.5em;
}
.checkoutForm .item {
  display: grid; grid-template-columns: 100px 1fr;
}
.checkoutForm .item > div {
  font-size: var(--checkoutFontSize); line-height: 1.5em;
}
.checkoutForm .item input {
  vertical-align: middle; margin: 5px 0 0 0;
}



.footer {
  color: var(--footerFontColor); font-size: var(--footerFontSize); text-align: center; margin: 60px 0 60px 0;
}
