@charset "UTF-8";
/* 상품목록 페이지 스타일 파일입니다. */
/* 레이아웃 가로폭 제한 */
.product-list {
max-width: 1200px;
margin: 0 auto;
}
@media (min-width: 1200px) {
.product-list {
max-width: 1400px;
}
}
.product-list__display-type-btn {
background-color: unset;
border: unset;
}
.product-list__search-keyword-wrap {
font-weight: 700;
padding-block-start: 10px;
padding-block-end: 15px;
margin-inline: 0;
padding-inline: 15px;
border-block-end: 2px solid var(--color-base-black);
}
.product-list__search-keyword {
font-style: normal;
color: var(--color-point);
}
.product-list__search-category {
font-weight: 500;
color: var(--color-primary, #1a1a1a);
margin-left: 4px;
}
.product-list__sort {
background-color: var(--color-base-white);
max-width: max-content;
height: 32px;
}
.product-list__current-category-content img {
display: inline;
}
.product-list__current-category-content span {
vertical-align: baseline;
}
.product-list .pagination {
padding-top: 60px;
}
.product-list-items {
margin-block-end: 20px;
}
.product-list-items :where(.thumb-LIST) {
padding-inline: 20px;
}
.product-list-items .skeleton__wrap {
margin-bottom: 10px;
}
.product-list-items .skeleton__wrap--has-item {
margin-top: 24px;
}
.product-list-items .skeleton--list .skeleton__media {
flex: 1;
height: auto;
}
.product-list-category-slider {
background-color: var(--gray100);
padding: 12px 0;
}
.product-list-category-slider .category-slider__wrapper {
overflow-x: auto;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
scrollbar-width: none;
cursor: grab;
user-select: none;
-webkit-user-select: none;
}
.product-list-category-slider .category-slider__wrapper.active {
cursor: grabbing;
}
.product-list-category-slider .category-slider__wrapper::-webkit-scrollbar {
display: none;
}
.product-list-category-slider .category-slider__list {
display: flex;
padding: 0 15px;
}
.product-list-category-slider .category-slider__slide {
flex-shrink: 0;
width: auto !important;
margin-right: 10px;
}
.product-list-category-slider .category-slider__item {
display: inline-flex;
align-items: center;
padding: 8px 16px;
font-size: 14px;
font-weight: 500;
color: var(--gray700, #555);
background: var(--color-bg, #fff);
border-radius: 20px;
white-space: nowrap;
text-decoration: none;
border: 1px solid var(--gray300, #ddd);
transition: all 0.2s ease;
}
.product-list-category-slider .category-slider__item:hover,
.product-list-category-slider .category-slider__item:active {
background: var(--gray200, #f5f5f5);
}
.product-list-category-slider .category-slider__item.is-active {
background: var(--color-primary, #1a1a1a);
color: #fff;
border-color: var(--color-primary, #1a1a1a);
}
.product-list-category-slider .category-slider__item.is-active .category-slider__item-count {
color: rgba(255, 255, 255, 0.8);
}
.product-list-category-slider .category-slider__item-count {
font-size: 12px;
color: var(--gray600);
margin-left: 2px;
}
/* 브레드크럼브 상품 개수 */
.breadcrumb__count {
font-size: 13px;
color: var(--gray600);
margin-left: 4px;
font-weight: 400;
}
/* --- Responsive List View Style Improvements --- */
/* Wrapper for list Items */
.product-list-items .thumb-LIST {
display: flex;
flex-direction: column;
gap: 16px;
}
/* Individual Item Card - Mobile Base (List Style) */
.product-list-items .thumb-LIST .thumb-item {
display: flex;
flex-direction: row;
width: 100%;
align-items: flex-start;
gap: 16px;
padding-bottom: 16px;
border-bottom: 1px solid #f0f0f0;
/* Subtle divider */
}
/* Remove border from last item */
.product-list-items .thumb-LIST .thumb-item:last-child {
border-bottom: none;
}
/* Image Container */
.product-list-items .thumb-LIST .thumb-item__media {
width: 110px;
height: 165px;
flex-shrink: 0;
position: relative;
border-radius: 6px;
overflow: hidden;
background-color: #f9f9f9;
/* Reset any padding hacks from grid view */
padding-bottom: 0 !important;
}
/* Image itself */
.product-list-items .thumb-LIST .thumb-item__media .thumb-item__img,
.product-list-items .thumb-LIST .thumb-item__media img,
.product-list-items .thumb-LIST .thumb-item__media iframe {
width: 100%;
height: 100%;
object-fit: cover;
position: absolute;
top: 0;
left: 0;
/* Reset padding on span wrapper if it exists */
padding: 0 !important;
}
/* Product Info Container */
.product-list-items .thumb-LIST .thumb-item__info {
flex: 1;
min-width: 0;
/* Enables truncation to work in flex child */
padding: 0;
padding-top: 4px;
/* Slight alignment adjustment */
text-align: left;
margin-top: 0 !important;
}
/* Product Value/Name */
.product-list-items .thumb-LIST .product-thumb-title {
font-size: 15px;
font-weight: 500;
color: #1a1a1a;
line-height: 1.4;
margin-bottom: 4px;
/* Multiline truncation */
display: -webkit-box;
-webkit-line-clamp: 4;
margin-top: 0;
-webkit-box-orient: vertical;
overflow: hidden;
white-space: normal;
}
/* Promotion Text */
.product-list-items .thumb-LIST .product-thumb__promotion-text {
font-size: 12px;
color: #888;
margin-bottom: 8px;
line-height: 1.3;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Price Section */
.product-list-items .thumb-LIST .product-thumb-price-info {
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: 4px;
}
.product-list-items .thumb-LIST .product-thumb-price {
font-size: 16px;
font-weight: 700;
color: #000;
}
.product-list-items .thumb-LIST .product-thumb-unit {
font-size: 13px;
color: #333;
margin-right: 4px;
}
/* Discount % */
.product-list-items .thumb-LIST .product-thumb__immediately-percent {
font-size: 14px;
color: #d32f2f;
/* Standard discount red */
font-weight: 700;
}
/* Original Price */
.product-list-items .thumb-LIST .product-thumb-price--origin {
font-size: 12px;
color: #999;
text-decoration: line-through;
}
/* Badges / Stickers inside Info */
.product-list-items .thumb-LIST .product-thumb__sticker {
display: inline-block;
margin-top: 6px;
margin-right: 4px;
}
/* Like Button adjustment */
.product-list-items .thumb-LIST .sc-like-button {
width: 28px;
height: 28px;
bottom: 4px;
right: 4px;
padding: 4px;
}
.product-list-items .thumb-LIST .sc-like-button svg {
width: 100%;
height: 100%;
}
/* Skeleton Mobile */
.product-list-items .skeleton--list {
display: flex;
flex-direction: row;
gap: 16px;
padding-bottom: 16px;
}
.product-list-items .skeleton--list .skeleton__media {
width: 110px;
height: 110px;
flex: none;
padding-bottom: 0;
}
.product-list-items .skeleton--list>div:not(.skeleton__media) {
flex: 1;
padding-top: 10px;
}
.product-list-items .skeleton__line--product-name {
height: 18px;
width: 80%;
margin-bottom: 10px;
}
.product-list-items .skeleton__line--product-price {
height: 20px;
width: 40%;
}
/* Desktop Styles (2 Columns, Larger Images) */
@media (min-width: 1024px) {
/* Grid Layout for Desktop List View */
.product-list-items .thumb-LIST {
display: grid;
grid-template-columns: repeat(2, 1fr);
column-gap: 24px;
row-gap: 40px;
}
.product-list-items .thumb-LIST .thumb-item {
border-bottom: none;
/* No divider line on desktop grid */
gap: 20px;
align-items: normal;
/* Allow stretch or normal */
}
/* Larger Image Size matching Gallery View approx */
.product-list-items .thumb-LIST .thumb-item__media {
width: 215px;
/* Match Gallery Width */
height: 288px;
/* Match Gallery Height */
border-radius: 8px;
/* Slightly nicer radius */
}
/* Adjust font sizes for desktop comfort */
.product-list-items .thumb-LIST .product-thumb-title {
font-size: 16px;
-webkit-line-clamp: 3;
/* Show more lines on desktop */
}
.product-list-items .thumb-LIST .product-thumb-price {
font-size: 18px;
}
/* Skeleton Desktop override */
.product-list-items .skeleton--list .skeleton__media {
width: 215px;
height: 288px;
}
}