/*
 * 주간별 마감딜 페이지 - 모던 반응형 디자인
 * 강조 색상: #008f8c
 */
.fcontents {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--bg-gray);
    gap: 0;
    padding: 0.5rem 0 2rem 0;
}
.week-deal-container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg-gray, #f8f9fa);
    min-height: 100vh;
    padding-bottom: 2rem;
}

.page-title {
    padding: 1.5rem 1rem;
    background: var(--bg-white, #ffffff);
    margin-bottom: 1rem 0 1rem 0;
}

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

.page-desc {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: var(--text-secondary, #666);
    font-weight: 500;
    margin: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.page-desc img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.week-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1rem;
    background: var(--bg-white, #ffffff);
    margin-bottom: 1rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .week-navigation {
        padding: 2rem;
        margin: 1rem;;
        margin-left: auto;
        margin-right: auto;
    }
}

.nav-button {
    width: 40px;
    height: 40px;
    border-radius: 35%;
    border: 2px solid var(--primary-color, #008f8c);
    background: var(--bg-white, #ffffff);
    color: var(--primary-color, #008f8c);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-button:hover {
    background: var(--primary-color, #008f8c);
    color: #ffffff;
    transform: scale(1.1);
}

.current-week-label {
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    text-align: center;
    flex: 1;
}

.wlist {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .wlist {
        gap: 16px;
    }
}

.wlist-3 {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-white, #ffffff);
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e5e5);
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.wimg {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .wimg {
        width: 140px;
        height: 140px;
    }
}

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

.wlist-3:hover .wimg img {
    transform: scale(1.1);
}

.wcontent {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
}

.text-wrapper-11 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    font-weight: 700;
    color: var(--text-primary, #1a1a1a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-wrapper-12 {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    color: var(--text-secondary, #666);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

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

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

    /* 페이지 타이틀 */
    .page-title,
    .week-navigation {
        padding: 2.5rem;
        border-radius: var(--radius-lg);
        margin: 1.5rem 1rem;
    }

    /* 주간딜 리스트 */
    .wlist {
        padding: 0 1rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .wlist-3 {
        display: flex;
    }
}
