/* 공통 클래스 */
.view-btn {
  display: block;
  padding: 10px 0px;
  display: flex;
  justify-content: end;
}

.product-card {
  width: 305px;
  height: 547px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.product-card-text-wrapper {
  width: 258px;
  height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-card-textbox {
  width: 258px;
}
.product-card .product-text-title {
  font-size: 24px;
}

.product-card .product-text-type,
.product-card .product-text-volume {
  font-size: 20px;
  color: var(--text-secondary);
}

.product-card .product-text-volume {
  display: block;
  padding: 5px 0px;
}

.product-card .product-text-price {
  display: flex;
  justify-content: end;
  font-size: 18px;
  padding-bottom: 5px;
}

.product-card .view-btn {
  font-size: 20px;
}

/* pc header */
.header {
  width: 100%;
  height: 80px;
  position: fixed;
  top: 0;
  z-index: 1000;
  transition: 0.3s;
  padding: 0 50px;
}
/* 1440 이하 */
@media screen and (max-width: 1440px) {
  .header {
    display: none;
  }
}

/* 1440 이상 */
@media screen and (min-width: 1440px) {
  .header {
    display: block;
  }
}

.header.detail {
  background-color: #272727;
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

/* 스크롤 시 및 호버 시 헤더 상태 제어 */
.header:hover,
.header.on {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.header:hover .main-link,
.header.on .main-link,
.header:hover .cart-btn,
.header.on .cart-btn {
  color: var(--text-primary) !important;
}

.header:hover .logo img,
.header.on .logo img {
  filter: invert(1);
}

/* nav */
.pc-nav {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.depth-1 {
  display: flex;
  height: 100%;
}

.depth-1 > li {
  position: relative;
  display: flex;
  align-items: center;
}

.depth-1 > li > a {
  padding: 0 20px;
  color: var(--bg-surface);
  font-weight: 600;
  font-size: 15px;
}

.depth-2-wrap {
  display: none;
  position: absolute;
  top: 80px;
  left: 0;
  padding: 60px 0;
}

.depth-2-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150vw;
  right: -150vw;
  bottom: 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  z-index: -1;
}

.depth-1 > li:hover .depth-2-wrap {
  display: block;
}

.depth-2-inner {
  display: flex;
  align-items: flex-start;
}

.menu-visual {
  width: 400px;
  height: 300px;
  margin-left: -500px;
  margin-right: 100px;
  flex-shrink: 0;
}

.menu-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-list-area {
  display: flex;
  gap: 80px;
}

.depth-2 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.depth-3-title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--text-primary);
  white-space: nowrap;
}

.depth-3 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.depth-2 li a,
.depth-3 li a {
  font-size: 14px;
  color: #666;
  white-space: nowrap;
  transition: 0.2s;
}

.depth-2 li a:hover,
.depth-3 li a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.cart-link {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.cart-btn {
  color: var(--bg-surface);
  transition: 0.3s;
}

/* 1440 이하 m-header */
.m-header {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  padding: 0px 10px;
  z-index: 10;
}

.m-header.detail {
  background-color: #272727;
}

/* 스크롤 시 및 호버 시 헤더 상태 제어 */

.m-header.on {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

.m-header.on .cart-btn {
  color: var(--text-primary) !important;
}

.m-header.on .logo img {
  filter: invert(1);
}

/* 1440 이하 */
@media screen and (max-width: 1440px) {
  .m-header {
    display: flex;
  }
}

/* 1440 이상 */
@media screen and (min-width: 1440px) {
  .m-header {
    display: none;
  }
}

/* 768 이상 */
@media screen and (min-width: 768px) {
  .m-header {
    padding: 0px 50px;
  }
}

/* 768 이하 */
@media screen and (max-width: 768px) {
  .m-header {
    display: flex;
    height: 60px;
  }
}

.m-header.on {
  background-color: var(--bg-surface);
}

/* m-nav */
.m-header .m-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.m-header .m-nav .menu-btn {
  color: var(--bg-surface);
}

.m-header.on .m-nav .menu-btn {
  color: var(--text-primary);
}

.m-header.on .m-nav .cart-btn {
  color: var(--text-primary);
  margin: 0px 10px;
}

.m-header .m-nav .logo {
  width: 100px;
  height: auto;
}

/* 햄버거 menu */
.m-menu {
  width: 320px;
  height: 100dvh;
  background-color: var(--bg-surface);
  position: fixed;
  top: 0;
  left: -320px;
  transition: left 0.3s;
  z-index: 1050;
  padding: 0px 20px;
}

.m-menu.open {
  left: 0px;
}

/* 닫기 버튼 */
.m-menu .close-btn-wrapper {
  width: 100%;
  display: flex;
  justify-content: end;
}

.m-menu .close-btn {
  padding: 8px;
  margin-top: 10px;
}

/* 리스트 스크롤 */
.m-menu-list {
  height: 100dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 40px;
}

.m-menu .m-menu-list > li:first-child {
  margin-top: 10px;
}

.m-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.m-menu li {
  margin: 0;
  padding: 0;
}

.m-menu details {
  margin: 0;
  padding: 0;
}

/* details 기본 마커 숨김 */
.m-menu details > summary {
  list-style: none;
  cursor: pointer;
}

.m-menu details > summary::-webkit-details-marker {
  display: none;
}

/* title */
.m-menu details.m-2depth > summary,
.m-menu details.m-3depth > summary,
.m-menu .life {
  display: block;
  padding: 15px 0px;
  padding-left: 20px;
  font-weight: 600;
  line-height: 1.2;
}

/* Hover */
.m-menu details.m-2depth > summary:hover,
.m-menu details.m-3depth > summary:hover,
.m-menu .life:hover,
.m-menu .m-2depth-list a:hover,
.m-menu .m-depth-3 a:hover {
  background-color: var(--bg-footer);
  border-radius: 4px;
}

/* 2depth */

.m-menu .m-2depth-list {
  padding-left: 10px;
}

.m-menu .m-2depth-list a {
  display: block;
  padding: 15px 0px;
  padding-left: 20px;
  line-height: 1.2;
}

/* 3depth */

.m-menu details.m-3depth > summary {
  padding-left: 30px;
}

.m-menu .m-depth-3 {
  padding-left: 20px;
}

.m-menu .m-depth-3 a {
  display: block;
  padding: 15px 0px;
  padding-left: 20px;
  line-height: 1.2;
}
/* footer */

footer {
  width: 100%;
  height: 345px;
  background-color: var(--bg-footer);
  display: flex;
  align-items: center;
}

footer .footer-wrapper {
  width: 1440px;
  margin: 0 auto;
  padding: 60px;
}

footer .footer-menu {
  display: flex;
  gap: 50px;
}

footer .info {
  height: 100%;
  margin-top: 45px;
  display: flex;
  justify-content: space-between;
}

@media screen and (max-width: 768px) {
  footer .info {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .instagram-btn {
    margin: 0;
    padding: 0;
  }
}
