@import url("./sub-style.css");

.shop-cnr {
  max-width: 95%;
  margin: 0 auto;
}
.shop-cnr-row1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.shop-cnr-row1  > div:nth-of-type(1) {
  order: 2
}
.shop-cnr-row1-box img {
  max-width: 90%;
  margin: 0 auto 1rem;
  border-radius: 20rem;
}
.shop-cnr-row1-box h1 {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: .3rem;
}
.shop-cnr-row1-box__sizes {
  display: flex;
  margin: 0 auto 2rem;
  justify-content: center;
}
.shop-cnr-row1-box__sizes :first-child a {
  border-radius: 0.6rem 0 0 0.6rem;
}
.shop-cnr-row1-box__sizes :last-child a {
  border-radius: 0 0.6rem 0.6rem 0;
}

.shop-cnr-row1-box__sizes a {
  width: 3.8rem;
  height: 3rem;
  margin-right: -0.05rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  border: 0.05rem solid var(--textheader);
  color: var(--textheader);
}
.shop-cnr-row1-box__sizes li .active,
.shop-cnr-row1-box__sizes li:hover a,
.shop-cnr-row1-box__handles li .active,
.shop-cnr-row1-box__handles li:hover a,
.shop-cnr-row2-box__btn a:hover,
.shop-cnr-row2-box__btn .active,
.shop-cnr-row2-box li:hover
 {
  color: var(--textcolor1);
  background-color: var(--textheader);
  transform: scale(1.05);
  box-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.589);
}
.shop-cnr-row1 > div:nth-of-type(2) {
  justify-content: center;
  align-items: center;
}

.shop-cnr-row1-box__handles {
  display: flex;
  justify-content: center;
  margin: 0 auto 2rem;
}
.shop-cnr-row1-box__handles a {
  width: max-content;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  padding: 0 0.6rem;
  border: 0.05rem solid var(--textheader);
  margin-right: -0.05rem;
  color: var(--textheader);
}
.shop-cnr-row1-box__handles :first-child a {
  border-radius: 0.6rem 0 0 0.6rem;
}
.shop-cnr-row1-box__handles :last-child a {
  border-radius: 0 0.6rem 0.6rem 0;
}
.shop-cnr-row1-box__handles li .active,
.shop-cnr-row1-box__handles li:hover a {
  color: var(--textcolor1);
  background-color: var(--textheader);
  transform: scale(1.05);
  box-shadow: 0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.589);
}
.total-price {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
  font-size: 1.2rem;
  background-color: var(--bgcolor1);
  width: 60%;
  border-radius: 1rem;
}
.addcard {
  text-align: center;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}
.addcard a {
  background: var(--gradiant-gold);
  color: var(--bgcolor2);
  border: 0.1rem solid var(--textheader);
  width: 12rem;
  margin: 0 auto;
  padding: 0.2rem 0;
  border-radius: 0.4rem;
  transition: all 0.1s ease-in-out;
  box-shadow: 0.1rem 0.1rem 0.1rem rgba(0, 0, 0, 0.536);
}
.addcard a:hover {
  box-shadow: 0.1rem 0.1rem 0.6rem black;
  transform: scale(1.02);
}
.shop-cnr-row2 {
  margin-bottom: 4rem;
}
.shop-cnr-row2-box {
  margin-bottom: 2rem;
}
.shop-cnr-row2-box h1 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}
.shop-cnr-row2-box__btn {
  text-align: center;
  margin-bottom: 1rem;
}
.shop-cnr-row2-box__btn a {
  background-color: var(--bgcolor1);
  color: var(--textheader);
  border: 0.1rem solid var(--textheader);
  width: 12rem;
  margin: 0 auto;
  padding: 0.2rem 0;
  border-radius: 0.4rem;
  transition: all 0.23s ease-in-out;
  box-shadow: 0.1rem 0.1rem 0.5rem rgb(120, 120, 120);
}

.shop-cnr-row2-box ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.1rem;
}
.shop-cnr-row2-box li {
  position: relative;
  width: 25%;
  cursor: pointer;
}
.shop-cnr-row2-box span {
  position: absolute;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 31%;
  height: 31%;
  border-radius: 100%;
  top: 63%;
  left: 50%;
  transform: translate(-50%);
  background-color: rgba(255, 255, 255, 0.274);
}


.shop-cnr-row2-box img {
  width: 100%;
}
.shop-cnr-row2-box .active{
  transform: translateY(-0.1rem) scale(1.1);
  box-shadow: .1rem .1rem .5rem white;
  position: relative;
  z-index: 1;
  color: white;
}

@media only screen and (min-width: 481px) {
  .shop-cnr-row2-box ul {
    margin: 0 5% 6rem;
  }
  .shop-cnr-row1-box img {
    max-width: 25rem;
  }
  .shop-cnr-row2-box li {
    width: 17%;
  }
}
@media only screen and (min-width: 768px) {
  .shop-cnr-row2-box ul {
    margin: 0 15% 7rem;
  }
  .shop-cnr-row2-box li {
    width: 17%;
  }
}
@media only screen and (min-width: 992px) {
  .subpage-header-cnr{
    padding: 0;
  }
  .shop-cnr-mainRow {
    max-width: 830px;
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-around;
    align-items: start;
    margin: 0 auto 8rem;
    padding-top: 23rem;
    gap: 2rem;
  }
  

  .shop-cnr-row1 img {
    position: absolute;
    width: 26rem;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
  }
  .shop-cnr-row1 {
    width: 50%;
  }
  .shop-cnr-row1-box:first-child {
    margin-top: 3rem;
  }
  .shop-cnr-row1-box__sizes {
    margin: 0 auto 2rem;
  }
  .shop-cnr-row1-box h1 {
    margin-top: 0;
  }
  .addcard {
    margin: 2rem auto 0;
  }
  .shop-cnr-row2 {
    width: 50%;
    margin-bottom: 0;
    margin-top: -1rem;
  }
  .shop-cnr-row2-box,
  .shop-cnr-row2-box ul {
    margin: 0;
  }
  .shop-cnr-row2-box li {
    width: 17%;
  }
}
@media only screen and (min-width: 1200px) {
  .shop-cnr-row1  > div:nth-of-type(1) {
    order: 0;
  }
  .subpage-header-cnr {
    padding: 0;
    margin-top: 2rem;
    margin-bottom: -1rem;
  }
  .subpage-header-cnr h1 {
    padding: 0;
  }
  .shop-cnr-mainRow {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 0;
    gap: 0;
  }

  .shop-cnr-row1 img {
    position: static;
    width: 100%;
    transform: none;
  }
  .shop-cnr-row1 {
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 0 2rem;
  }
  .shop-cnr-row1 > div:nth-of-type(1) {
    width: 45%;
  }

  .shop-cnr-row1 > div:nth-of-type(3) {
    width: 30%;
  }

  .shop-cnr-row2 {
    margin-bottom: 4rem;
    margin-top: -2rem;
    width: 50%;
  }

  .shop-cnr-row2 ul li {
    width: 4rem;
  }
  .shop-cnr-row2 ul span {
    width: 1.5rem;
    height: 1.5rem;
    top: 2.2rem;
  }
}
