@charset "utf-8";

:root {
  --productCartIconColor: rgba(255, 22, 84, 1);
  --productCatFontColor: #fff;
  --productCatFontColorActive: #ff8900;
  --productCatFontSize: 18px;
  --productCatContentSize: 14px;
  --productNameColor: #fff;
  --productNameSize: 14px;
  --productPriceTotalColor: #000;

  --productListFontSize: 14px;
  --productListNameFontSize: 18px;
  --productListNameFontColor: #fff;
  --productListPriceColor: #fff;
  --productListPriceSize: 18px;
  --productListSpColor: #ff8900;
  --productListOldPriceColor: rgba(150, 150, 150, 1);
  --productListQtyColor: rgba(150, 150, 150, 1);
  --productListCountColor: rgba(230, 230, 230, 1);
  --productDetailsPriceSize: 24px;

  --checkoutFontColorSuccess: #199aca;
	--checkoutFontSizeSuccess: 24px;
  --checkoutFontColorError: #ca1919;
  --checkoutNameSize: 16px;
  --checkoutPriceColor: #000;
  --checkoutPriceSize: 16px;
  --checkoutOldPriceSize: 14px;
  --checkoutTotalColor: rgba(25, 154, 202, 1);
	--checkoutTotalSize: 24px;
  --checkoutFontColor: #000;
	--checkoutFontSize: 18px;
	--checkoutBorderColor: #aaa;
  --checkoutFontColorPayment: #000;
	--checkoutFontSizePayment: 24px;

  --myOrderFontColor: #fff;
  --myOrderFontSize: 14px;
  --myOrderTitleSize: 18px;
}

.cartIcon {
  margin: 12px 12px 0 20px; position: fixed; z-index: 5; top: 0; right: 0; cursor: pointer;
  transition: background 0.3s, margin 0.3s, transform 0.3s, opacity 0.3s;
}
.cartIcon:hover {
  transform: scale(1.3, 1.3); opacity: 0.5;
}
.topContent.hide > .mainMenu > .cartIcon {
  margin: 12px 12px 0 0;
}
.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;
}
@media only screen and (max-width:1080px) {
  .topContent > .mainMenu > .cartIcon {
    margin: 12px 12px 0 0;
  }
}

.productHeader {
  padding: 0 20px; text-align: center;
}
.productHeader img {
  max-height: 240px;
}
.productCatList {
  text-align: center;
}
.productCatList > div {
  display: inline-block; color: var(--productCatFontColor); font-size: var(--productCatFontSize); line-height: 1.5em;
}
.productCatList > div::before {
  content: '．';
}
.productCatList > div:first-child::before {
  content: '';
}
.productCatList > div > a {
  color: var(--productCatFontColor); font-size: var(--productCatFontSize); line-height: 1.5em;
}
.productCatList > div > a:hover, .productCatList > div > a.active {
  color: var(--productCatFontColorActive); text-decoration: underline; text-underline-offset: 3px;
}
.productCatDesc {
  width: 860px; max-width: 100%; margin: 0 auto;
}
.headerBr {
  text-align: center; border-bottom: #fff 1px solid; padding-bottom: 20px; margin-bottom: 20px;
}
.productCatDesc > .content {
  color: var(--productCatFontColor); font-size: var(--productCatContentSize); line-height: 1.5em; text-align: center; margin-bottom: 40px;
}
.productList {
  display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 20px; text-align: center; width: 800px; max-width: 100%; margin: 0 auto;
}
.productList > div {
  text-align: center; width: 100%; cursor: pointer;
}
.productList > div .photo {
  display: table-cell; text-align: center; vertical-align: middle; position: relative; overflow: hidden;
}
.productList > div > .photo > a >  img {
  max-width: 100%; opacity: 0;
}
.productList > div > .photo > a > div {
  position: absolute; width: 100%; height: 100%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  opacity: 0; transition: opacity 1s;
}
.productList > div > .photo > a > div.active {
  opacity: 1;
}
.productList > div > .photo > a > div >  img {
  max-width: 100%;
}
.productList > div > .content {
  color: var(--productNameColor); font-size: var(--productNameSize); line-height: 1.5em; padding: 15px 10px;
}
.productList > div > .content > .price {
  font-size: var(--productListPriceSize); line-height: 1.5em;
}
.priceOld {
  color: var(--productListOldPriceColor); text-decoration: line-through; display: inline-block;
}
.priceSP {
  color: var(--productListSpColor); display: inline-block;
}
.priceSold {
  color: var(--productListSpColor); display: inline-block;
}
@media only screen and (max-width:800px) {
  .productList {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (max-width:460px) {
  .productList {
    grid-template-columns: 1fr;
  }
}



.productDetails {
  width: 100%; text-align: center;
}
.productDetails > .photos {
  width: 600px; max-width: 100%; margin: 0 auto;
}
.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 {
  width: 800px; max-width: 100%; margin: 20px auto; color: var(--productListNameFontColor);
}
.productDetails > .content > .name {
  font-size: var(--productListNameFontSize); line-height: 1.5em; margin: 0 0 0 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(--productDetailsPriceSize); line-height: 1.5em; text-align: center; margin: 40px 0 20px 0;
}
.productDetails > .content > .count {
  width: 100%; display: flex; align-items: center; justify-content: center;
}
.productDetails > .content > .count > .qty {
  width: 160px; display: grid; grid-template-columns: 30px 1fr 30px; padding: 0 10px;
}
.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 {
  text-align: center; padding: 0 10px;
}
.productDetails > .content > .count > .total > div {
  width: 150px; max-width: 100%; height: 30px; background: var(--productListCountColor); font-size: var(--productListPriceSize); color: var(--productPriceTotalColor); display: flex; align-items: center; justify-content: center;
}
.productDetails > .content > .buttons {
  width: 100%; display: flex; flex-flow: row nowrap; align-content: center; justify-content: center; padding: 20px 0 0 0;
}
.productDetails > .content > .buttons > div {
	flex: 1; text-align: center; max-width: 320px; height: 40px; line-height: 40px; margin: 0 5px; background: var(--popupButtonColor); color: var(--popupButtonFontColor); font-size: var(--popupButtonFontSize); cursor: pointer; border-radius: 5px;
	transition: background 0.5s;
}
.productDetails > .content > .buttons > div:hover, .productDetails > .content > .buttons > div.active {
	background: var(--popupButtonColorActive);
}


@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;
  }
}






.checkout {
  width: 100%;
}
.checkout > .item > div {
  display: grid; grid-template-columns: 40px 60px 1fr 250px; 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(--checkoutPriceColor); 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 > .item > div > .remark {
  margin: 10px 0 0 0;
}
.checkout > .item > div > .remark textarea {
  width: 250px; height: 60px; border: #ddd 1px solid; border-radius: 5px;
}
.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;
}
@media only screen and (max-width: 900px) {
  .checkout > .item > div > .text > .count > .price {
    display: block; margin: 0 0 10px 0;
  }
}
@media only screen and (max-width: 640px) {
  .checkout > .item > div {
    display: flex; flex-wrap: wrap; grid-template-columns: auto; grid-gap: 0;
  }
  .checkout > .item > div > .action {
    width: 20px; margin: 0 10px 0 0;
  }
  .checkout > .item > div > .photo {
    width: 60px; margin: 0 10px 0 0;
  }
  .checkout > .item > div > .remark {
    display: block; width: 100%;
  }
  .checkout > .item > div > .remark textarea {
    width: 100%; height: 60px;
  }
}
@media only screen and (max-width:  480px) {
  .checkout > .item > div > .text {
    width: 150px;
  }
}

.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;
}


.myOrder.formContent > div {
  width: 100%; color: var(--myOrderFontColor); font-size: var(--myOrderFontSize); line-height: 1.5em;
}
.myOrder.formContent > div.title {
  font-size: var(--myOrderTitleSize);
}
.myOrder.formContent > div.listHead {
  padding: 0 0 10px 0; margin: 0 0 10px 0; border-bottom: #aaa 1px solid;
}
.myOrder.formContent > div.listBody {
  padding: 10px 0 30px 0;
}
.myOrder.formContent > div > div {
  display: inline-block;
}
.myOrder.formContent > div > .date {
  width: 25%;
}
.myOrder.formContent > div > .no {
  width: 30%;
}
.myOrder.formContent > div > .amount {
  width: 25%;
}
.myOrder.formContent > div > .status {
  width: auto;
}
.myOrder.formContent > div > .download {
  width: 100%; text-align: right;
}
.myOrder.formContent > div a {
  color: var(--productCatFontColor); font-size: var(--productCatFontSize); line-height: 1.5em; text-decoration: underline; text-underline-offset: 3px;
}
.myOrder.formContent > div a:hover, .myOrder.formContent > div a.active {
  color: var(--productCatFontColorActive); text-decoration: underline; text-underline-offset: 3px;
}
@media only screen and (max-width: 480px) {
  .myOrder.formContent > div > div {
    font-size: 12px;
  }
  .myOrder.formContent > div > .date {
    width: 35%;
  }
  .myOrder.formContent > div > .no {
    width: 38%;
  }
  .myOrder.formContent > div > .amount {
    display: none;
  }
}
