/* Path: wp-content/plugins/wcellar-showcase/assets/css/showcase.css */

/* ── 홈 섹션 ── */
.wc-showcase-home {
    background: #1a1a1a;
    padding: 56px 0 48px;
    margin-top: 40px;
}
.wc-showcase-home__header {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 24px;
}
.wc-showcase-home__title {
    font-size: 24px;
    font-weight: 700;
    color: #f5f0e8;
    letter-spacing: 1px;
    margin: 0 0 8px;
}
.wc-showcase-home__sub {
    font-size: 13px;
    color: #777;
    margin: 0;
}
.wc-showcase-home__more {
    text-align: center;
    margin-top: 30px;
}
.wc-showcase-home__more a {
    display: inline-block;
    padding: 9px 26px;
    border: 1px solid #c9a96e;
    color: #c9a96e;
    border-radius: 24px;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
.wc-showcase-home__more a:hover {
    background: #c9a96e;
    color: #1a1a1a;
}

/* ── /showcase 페이지 ── */
.wc-showcase-page {
    background: #faf8f5;
    min-height: 60vh;
    padding-bottom: 80px;
}
.wc-showcase-page__header {
    text-align: center;
    padding: 56px 24px 36px;
}
.wc-showcase-page__header h1 {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}
.wc-showcase-page__header p {
    font-size: 14px;
    color: #888;
    margin: 0;
}
.wc-showcase-page__empty {
    text-align: center;
    color: #aaa;
    padding: 60px 0;
    font-size: 15px;
}

/* ── 캐러셀 래퍼 ── */
.wc-carousel {
    position: relative;
    overflow: hidden;
    /* 양옆 카드가 살짝 보이도록 패딩 */
    padding: 8px 0 24px;
}

.wc-carousel__track {
    display: flex;
    gap: 20px;
    /* 첫 카드가 가운데 오도록 왼쪽 오프셋 */
    padding-left: calc(50% - 130px);
    will-change: transform;
}

/* ── 카드 ── */
.wc-showcase-card {
    flex-shrink: 0;
    width: 260px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 0.55;
    transform: scale(0.93);
}
/* 활성 카드 강조는 JS로 .active 추가 */
.wc-showcase-card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 8px 36px rgba(0,0,0,0.18);
}

.wc-showcase-card__photos {
    display: grid;
    gap: 2px;
    height: 210px;
}
.wc-showcase-card__photos--double { grid-template-columns: 1fr 1fr; }
.wc-showcase-card__photos--single { grid-template-columns: 1fr; }

.wc-showcase-card__photo-wrap {
    position: relative;
    overflow: hidden;
}
.wc-showcase-card__photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.wc-showcase-card.active .wc-showcase-card__photo-wrap img {
    transform: scale(1.03);
}
.wc-showcase-card__photo-tag {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.wc-showcase-card__body {
    padding: 16px 18px 18px;
}
.wc-showcase-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}
.wc-showcase-card__product {
    font-size: 11px;
    color: #c9a96e;
    font-weight: 600;
    margin-bottom: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wc-showcase-card__msg {
    font-size: 12px;
    color: #666;
    line-height: 1.65;
    margin: 0;
}

/* ── 화살표 ── */
.wc-carousel__btn {
    position: absolute;
    top: calc(50% - 24px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.15s;
    background: rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(8px);
}
.wc-carousel__btn:hover {
    background: #c9a96e;
    color: #fff;
    transform: scale(1.08);
}
.wc-carousel__btn--prev { left: 12px; }
.wc-carousel__btn--next { right: 12px; }

/* /showcase 페이지용 화살표 */
.wc-showcase-page .wc-carousel__btn {
    background: rgba(26,26,26,0.07);
    color: #333;
}
.wc-showcase-page .wc-carousel__btn:hover {
    background: #c9a96e;
    color: #fff;
}

/* ── 도트 ── */
.wc-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.wc-carousel__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.22);
    padding: 0;
    transition: background 0.3s, transform 0.3s, width 0.3s;
}
.wc-carousel__dot.active {
    background: #c9a96e;
    width: 22px;
    border-radius: 4px;
    transform: none;
}
/* /showcase 페이지 도트 */
.wc-showcase-page .wc-carousel__dot {
    background: #d8d4cc;
}
.wc-showcase-page .wc-carousel__dot.active {
    background: #c9a96e;
}

/* ── 반응형 ── */
@media (max-width: 600px) {
    .wc-showcase-card { width: 220px; }
    .wc-showcase-card__photos { height: 170px; }
    .wc-carousel__track { padding-left: calc(50% - 110px); }
}
