/*
 * 추천딜 페이지 - 모던 반응형 디자인
 * 강조 색상: #008f8c
 */

.pick-deal-container {
    background: var(--bg-gray, #f8f9fa);
    min-height: 100vh;
}

/* page-title 스타일 추가 */
.pick-deal-container .page-title {
    padding: 1.5rem 1rem;
    background: var(--bg-white, #ffffff);
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .pick-deal-container .page-title {
        padding: 2rem;
        border-radius: 16px;
        margin: 1rem 1rem 0 1rem;
    }
}

.pick-deal-container .page-desc {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: var(--text-secondary, #666);
    font-weight: 500;
    text-align: center;
    line-height: 1.6;
}

.pick-header {
    background: linear-gradient(135deg, var(--primary-color, #008f8c) 0%, #006d6a 100%);
    padding: 2rem 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .pick-header {
        padding: 3rem 2rem;
        border-radius: 16px;
        margin: 1rem;
    }
}

.pick-header-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.pick-header-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.pick-header-desc {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

#picks-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    #picks-list {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }
}

.pick-item {
    background: var(--bg-white, #ffffff);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.pick-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.main-layer {
    width: 100%;
    padding: 0.5rem;
}

.main-layer-2 {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-s {
    position: relative;
    width: 100%;
    aspect-ratio: 22 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.main-s > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pick-item:hover .main-s > img {
    transform: scale(1.08);
}

.main-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 2;
}

.div-wrapper-2 {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.text-wrapper-6 {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.jjim-on {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    margin-left: auto;
}

.jjim-on:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.jjim-on img {
    width: 20px;
    height: 20px;
}

.title {
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.4;
    padding: 0 0.5rem;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-g {
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 70px;
}

.site-m,
.site-s,
.site-wrapper {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1.5px solid;
    transition: all 0.3s ease;
}

.site-m {
    border-color: #ff4757;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.site-s,
.site-wrapper {
    border-color: var(--border-color, #e5e5e5);
    background: var(--bg-white, #ffffff);
}

.site-m:hover,
.site-s:hover,
.site-wrapper:hover {
    border-color: var(--primary-color, #008f8c);
    background: #f0fffe;
    transform: translateX(4px);
}

.site,
.site-2 {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.text-wrapper-7 {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
}

.price {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 700;
    color: #ff4757;
}

.main-btn {
    margin: 0 0.5rem 0.5rem;
    padding: 14px 24px;
    background: var(--bg-white, #ffffff);
    border: 2px solid var(--primary-color, #008f8c);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.main-btn:hover {
    background: var(--primary-color, #008f8c);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.main-btn .btn {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: var(--primary-color, #008f8c);
    transition: all 0.3s ease;
}

.main-btn:hover .btn {
    color: #ffffff;
}

#loading {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light, #999);
}

.no-items {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light, #999);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-items p {
    margin: 0;
    font-size: 1rem;
}

/* 상품 태그 스타일 */
.product-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: clamp(0.7rem, 2vw, 0.8rem);
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 남은시간 하단 배치 */
.main-bottom {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
}

/* ========================================
   PC 레이아웃 (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    /* 컨테이너 - max-width: 768px로 제한 */
    .pick-deal-container {
        max-width: 768px;
        margin: 1.5rem auto;
    }

    /* 헤더 */
    .pick-header {
        padding: 4rem 3rem;
        border-radius: var(--radius-lg);
        margin: 1.5rem 1rem;
    }

    /* 추천딜 그리드 최대 2열로 제한 */
    #picks-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
}
