/* Shop Page */
.shop-page {
  min-height: 100vh;
  padding-top: 120px;
  background-color: #f6f8ed;
  overflow-y: auto;
}

/* Shop 페이지 스크롤바 */
body:has(.shop-page)::-webkit-scrollbar {
  width: 8px;
}

body:has(.shop-page)::-webkit-scrollbar-track {
  background: rgba(13, 13, 13, 0.1);
}

body:has(.shop-page)::-webkit-scrollbar-thumb {
  background: #0d0d0d;
  border-radius: 4px;
}

body:has(.shop-page)::-webkit-scrollbar-thumb:hover {
  background: #0d0d0d;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
  padding: 3rem 4rem 5rem;
  max-width: 1600px;
  margin: 0 auto;
}

/* Product Card */
.product-card {
  text-decoration: none;
  display: block;
  cursor: none;
  position: relative;
}

/* 커서 툴팁 */
.cursor-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background-color: white;
  color: var(--text-primary);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--text-primary);
  font-size: 1.3rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -120%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Product Info - 데스크탑에서 숨김 */
.product-info {
  display: none !important;
}

.product-images {
  position: relative;
  width: 100%;
  aspect-ratio: 550/660;
  overflow: hidden;
  background-color: var(--light-gray);
  margin-bottom: 0;
  border: 1px solid #0d0d0d;
}

.product-images img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.main-image {
  opacity: 1;
}

.hover-image {
  opacity: 0;
}

.product-card:hover .main-image {
  opacity: 0;
}

.product-card:hover .hover-image {
  opacity: 1;
}

/* Product Info */
.product-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.product-name {
  font-family: "Newsreader", serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.product-price {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  /* 태블릿에서 제품 정보 표시 */
  .product-card {
    cursor: pointer;
  }

  .product-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }

  .product-name {
    font-family: "Newsreader", serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
  }

  .product-price {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .shop-page {
    padding-top: 100px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2rem;
  }

  /* 모바일에서 커서 일반으로 */
  .product-card {
    cursor: pointer;
  }

  .product-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
  }

  .product-images {
    margin-bottom: 1rem;
  }

  .product-name {
    font-family: "Newsreader", serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.01em;
  }

  .product-price {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .products-grid {
    padding: 1.5rem;
    gap: 2.5rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .product-price {
    font-size: 0.85rem;
  }
}
