/* 공동구매 리스트 페이지 전용 스타일 */
/* 상단 배너 → components/list-hero-banner.css */
.group-buy-banner { width: 100%; display: flex; justify-content: center; } 
.banner-text h1 { font-size: 3.5rem; font-weight: 900; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); } 
.banner-text h2 { font-size: 2.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 15px; } 
.banner-text h2 i { font-size: 2.2rem; animation: pulse 2s infinite; } 
.banner-text p { font-size: 1.2rem; opacity: 0.9; font-weight: 500; } 

@keyframes pulse { 0%,
 100% { transform: scale(1); } 

 50% { transform: scale(1.1); } 
 } 

.section-title { padding: 30px 0; text-align: center; } 
.section-title h1 { font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -0.75px; color: #333; } 

.group-buy-list-page .section-title .tit-web { display: flex; flex-direction: row; align-items: center; justify-content: center; } 
.group-buy-list-page .section-title h1 { text-align: center; } 
.group-buy-list-page .section-title .tit-mobile { display: none; flex-direction: column; align-items: center; justify-content: center; padding-top: 50px; } 
.group-buy-list-page .section-title .tit-mobile .tit { display: flex; flex-direction: row; align-items: center; gap: 3px; } 
.group-buy-list-page .section-title .tit-mobile .tit p { font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: -0.75px; } 
.group-buy-list-page .section-title .tit-mobile .tit i { width: 24px; height: 24px; background: url(../../images/alarm-emoji-icon.png) 50% 50% no-repeat; background-size: contain; } 
.group-buy-list-page .section-title .tit-mobile .tit-text { font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: -0.75px; color: #888; padding-top: 10px; } 

.product-grid-section { width: 100%; display: flex; flex-direction: column; gap: 30px; } 
.product-grid-section .title-wrap { width: 100%; display: flex; flex-direction: row; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #eeeeee; } 
 /* 정렬옵션 */
.title-wrap .titl p { font-size: 14px; font-weight: 400; letter-spacing: -0.75px; color: #333; line-height: 1; } 
.title-wrap .sort-section { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; position: relative; } 
/* 웹 버전 정렬 옵션 */
.title-wrap .sort-section .sort-options.web-sort { display: flex; flex-direction: row; align-items: center; gap: 10px; } 
.title-wrap .sort-section .sort-options.web-sort .sort-btn { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px; font-size: 14px; letter-spacing: -0.75px; line-height: 1; color: #B5B5B6; transition: all 0.3s; background: none; border: none; cursor: pointer; padding: 0; } 
.title-wrap .sort-section .sort-options.web-sort .sort-btn.active { color: #000; font-weight: 600; } 
.title-wrap .sort-section .sort-options.web-sort .sort-btn+.sort-btn::before { content: ''; width: 1px; height: 14px; background-color: #B5B5B6; display: block; } 
/* 모바일 버전 드롭다운 */
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort { display: none; position: relative; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort .sort-dropdown-btn { display: flex; flex-direction: row; align-items: center; gap: 5px; background: none; border: none; padding: 0; cursor: pointer; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort .sort-dropdown-btn .sort-text { font-size: 14px; letter-spacing: -0.75px; line-height: 1; color: #333; font-weight: 500; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort .sort-dropdown-btn .sort-arrow { font-size: 14px; color: #333; transition: transform 0.3s ease; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort.active .sort-dropdown-btn .sort-arrow { transform: rotate(180deg); } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort .sort-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: white; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); z-index: 1000; min-width: 120px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s ease; display: none; overflow: hidden; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort.active .sort-dropdown { opacity: 1; visibility: visible; transform: translateY(0); display: block; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort .sort-dropdown .sort-option { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; cursor: pointer; transition: background-color 0.2s ease; border-bottom: 1px solid #f0f0f0; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort .sort-dropdown .sort-option:last-child { border-bottom: none; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort .sort-dropdown .sort-option span { font-size: 14px; letter-spacing: -0.75px; line-height: 1; color: #333; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort .sort-dropdown .sort-option:hover { background-color: #f8f8f8; } 
.title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort .sort-dropdown .sort-option.active span { color: #23B16C; font-weight: 600; } 

/* 메인 컨텐츠 */
.group-buy-list-page .main-content { padding: 40px 0 80px; } 


/* 핫딜 제품 그리드 수정 26.02.09 */
.produst-list .product-grid-container { width: 100%; } 
.produst-list .group-buy-product-grid { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, auto); row-gap: 30px; column-gap: 10px; height: 100%; } 
.produst-list .group-product-card { display: flex; flex-direction: column; align-items: flex-start; flex: 1; width: 100%; gap: 15px; max-width: none; } 
.produst-list .group-product-card .product-card-link { display: flex; width: 100%; flex-direction: column; gap: 15px; } 
.produst-list .group-product-card .product-card-link .thumb { position: relative; width: 100%; max-width: 100%; height: 100%; max-height: 250px; border-radius: 5px; overflow: hidden; aspect-ratio: 1 / 1; } 
.produst-list .group-product-card .product-card-link .thumb img { width: 100%; height: 100%; object-fit: cover; } 

/* 판매 종료 오버레이 */
.sold-out-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 2; } 
.sold-out-overlay p { color: white; font-size: 24px; letter-spacing: -0.75px; font-weight: 500; line-height: 1; text-align: center; } 

/* 뱃지 */
.badge-wrap { position: absolute; top: 0; left: 12px; z-index: 3; display: flex; flex-direction: column; gap: 6px; } 
.badge { padding: 8px; border-radius: 5px; font-size: 14px; font-weight: 600; line-height: 1; letter-spacing: -0.75px; } 
.badge-공구특가 { background: #FF3B30; color: white; } 
/* 뱃지 이미지 스타일 */
.badge.badge-image { padding:0; border-radius:0; background:transparent; width:auto; height:auto; max-width:64%; object-fit:contain; } 

/* 장바구니 버튼 */
.btn-cart { position: absolute; bottom: 50px; right: 10px; width: 40px; height: 40px; background: rgba(0, 0, 0, 0.6); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; z-index: 3; } 
.btn-cart .cart-img { width: 20px !important; height: 20px !important; filter: brightness(0) invert(1); object-fit: contain; } 
.btn-cart:hover .cart-img img { transform: none !important; } 

/* 제품 정보 수정 26.02.09 */
.produst-list .group-product-card .info { width: 100%; display: flex; flex-direction: column; gap: 10px; } 
.row-wrap { display: flex; justify-content: space-between; align-items: flex-start; } 
.produst-list .group-product-card .info .col { width: 100%; display: flex; flex-direction: column; gap: 10px; } 
.col { flex: 1; } 

/* 제품명 */
.name p { font-size: 17px; font-weight: 400; color: #1f2937; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; letter-spacing: -0.75px; } 

/* 가격 정보 */

.original-price { font-size: 0.9rem; color: #9ca3af; text-decoration: line-through; } 
.current-price { display: flex; align-items: baseline; gap: 8px; } 
.current-price p { font-size: 20px; color: #FF3B30; font-weight: 600; letter-spacing: -0.75px; line-height: 1; } 
.current-price b { font-size: 24px; color: #FF3B30; font-weight: 800; line-height: 1; } 

/* 할인율 */
.discount { text-align: right; } 

.discount-rate { font-size: 25px; font-weight: 800; color: #FF3B30; } 

/* 할인종료 */
.group-product-card.sold-out .name p { color: #B5B5B6; } 
.group-product-card.sold-out .original-price { color: #B5B5B6; } 
.group-product-card.sold-out .current-price b { color: #B5B5B6; } 
.group-product-card.sold-out .current-price p { color: #B5B5B6; } 
.group-product-card.sold-out .discount-rate { color: #B5B5B6; } 
.group-product-card.sold-out:hover .thumb>img { transform: none; } 
/* 마감 정보 */
.deadline-info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.5); padding: 12px; display: flex; justify-content: center; align-items: center; font-size: 0.9rem; z-index: 3; } 
.time-info { display: flex; align-items: center; color: white; text-align: center; } 
.group-product-card .product-card-link .info .deadline-info .time-info { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px } 
.deadline-info .time-info .alarm-icon { width: 20px; height: 16px; background: url(../../images/main/alarm-white-icon.svg) 50% 50%/contain no-repeat } 
.time-value { font-weight: 800; } 
.time-info p { margin: 0; font-weight: 400; font-size: 14px; letter-spacing: -0.75px; word-break: keep-all;color: #ffffff; } 
.time-info b { color: #ffffff; font-weight: 700; } 
.stock-info { color: #6b7280; font-weight: 500; } 

 

/* 모바일 전용 스타일 */
.group-buy-list-page.mobile .group-buy-banner { padding: 30px 0; } 
.group-buy-list-page.mobile .banner-text h1 { font-size: 2rem; } 
.group-buy-list-page.mobile .banner-text h2 { font-size: 1.5rem; } 
.group-buy-list-page.mobile .banner-text p { font-size: 0.9rem; } 
.group-buy-list-page.mobile .group-buy-product-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; } 
.group-buy-list-page.mobile .group-product-card { border-radius: 8px; } 

/* 모바일 판매 종료된 제품 카드 */
.group-buy-list-page.mobile .group-product-card.sold-out { opacity: 0.7; filter: grayscale(0.3); } 
.group-buy-list-page.mobile .group-product-card .thumb { height: 150px; } 
.group-buy-list-page.mobile .group-product-card .info { padding: 12px; } 
.group-buy-list-page.mobile .name p { font-size: 0.85rem; line-height: 1.3; } 
.group-buy-list-page.mobile .original-price { font-size: 0.75rem; } 
.group-buy-list-page.mobile .current-price p { font-size: 0.75rem; } 
.group-buy-list-page.mobile .current-price b { font-size: 1rem; } 
.group-buy-list-page.mobile .discount-rate { font-size: 0.9rem; } 
.group-buy-list-page.mobile .deadline-info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.8); padding: 8px; display: flex; justify-content: center; align-items: center; font-size: 0.75rem; z-index: 3; } 

.group-buy-list-page.mobile .time-info { display: flex; align-items: center; gap: 6px; color: white; text-align: center; } 
.group-buy-list-page.mobile .time-info i { color: #ffffff; font-size: 0.9rem; } 
.group-buy-list-page.mobile .time-info p { margin: 0; font-weight: 600; } 
.group-buy-list-page.mobile .time-info b { color: #ffffff; font-weight: 700; } 

.group-buy-list-page.mobile .sort-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } 
.group-buy-list-page.mobile .sort-btn { padding: 8px 6px; font-size: 0.75rem; text-align: center; } 
.group-buy-list-page.mobile .badge { font-size: 0.65rem; padding: 2px 6px; } 
.group-buy-list-page.mobile .discount-badge { padding: 4px 6px; font-size: 0.75rem; } 
.group-buy-list-page.mobile .btn-cart { width: 32px; height: 32px; top: 8px; right: 8px; } 
.group-buy-list-page.mobile .btn-cart .cart-img { width: 16px; height: 16px; } 

/* 반응형 디자인 */
@media only screen and (max-width: 1050px) { 
 .product-grid-section { padding: 0 10px; } 
 .produst-list .group-buy-product-grid { grid-template-columns: repeat(3, 1fr); } 
 .group-buy-list-page .section-title .tit-web { display: none; } 
 .group-buy-list-page .section-title .tit-mobile { display: flex; } 
 
 } 

/* 반응형 디자인 */
@media (max-width: 768px) { 
 .banner-text h1 { font-size: 2.5rem; } 
 .banner-text h2 { font-size: 1.8rem; } 
 .banner-text p { font-size: 1rem; } 
 .produst-list .group-buy-product-grid { grid-template-columns: repeat(2, 1fr) !important; } 
 .sort-options { flex-direction: column; gap: 6px; } 
 .sort-btn { font-size: 0.8rem; } 
 } 

@media only screen and (max-width: 720px) { 
 /* 모바일에서 웹 정렬 옵션 숨기고 드롭다운 표시 */
 .title-wrap .sort-section .sort-options.web-sort { display: none; } 
 .title-wrap .sort-section .sort-dropdown-wrapper.mobile-sort { display: block; } 
 .current-price p { font-size: 16px; } 
 .current-price b { font-size: 20px; flex: 1; letter-spacing: -0.5px; } 
 .discount-rate { font-size: 20px; } 
.btn-cart { bottom: 55px; } 

 } 
@media (max-width: 600px) {  
 .name p { font-size: 14px; letter-spacing: -0.5px; } 
 } 
@media (max-width: 425px) { 
.btn-cart { width: 36px; height: 36px; } 
.time-info p { font-size: 12px; } 
.current-price p { font-size: 14px; } 
.current-price b { font-size: 18px; } 
.row-wrap { flex-direction: column; gap: 10px; } 
 } 
