/* ==========================================================================
   W Cellar Wineries — 29CM + Vivino Luxury Minimal Style
   Consistent with reviews-page.css design tokens
   ========================================================================== */

/* ── Hero ────────────────────────────────────────────────────────────────── */
.wnr-hero {
    position: relative;
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}
.wnr-hero__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.wnr-hero__bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
.wnr-hero__inner { max-width: 600px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.wnr-hero__title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 3px;
    margin: 0 0 12px;
    font-family: 'Georgia', serif;
    white-space: nowrap;
    color: #fff;
}
.wnr-hero__subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 8px;
    letter-spacing: 1px;
}
.wnr-hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.wnr-hero__stats span { display: flex; align-items: center; gap: 6px; }

/* Search */
.wnr-search {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}
.wnr-search__icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    pointer-events: none;
}
.wnr-search__input {
    width: 100%;
    height: 48px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 14px;
    padding: 0 20px 0 48px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.wnr-search__input::placeholder { color: rgba(255,255,255,0.35); }
.wnr-search__input:focus { border-color: rgba(255,255,255,0.35); }

/* Search below hero (light bg) */
.wnr-search--light {
    max-width: 100%;
    margin: 0;
    padding: 12px 0;
    position: relative;
}
.wnr-search--light .wnr-search__icon { color: #999; }
.wnr-search--light .wnr-search__input {
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    color: #1a1a1a;
    height: 48px;
    border-radius: 100px;
    font-size: 14px;
    padding: 0 20px 0 48px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.wnr-search--light .wnr-search__input::placeholder { color: #999; }
.wnr-search--light .wnr-search__input:focus { border-color: #1a1a1a; }

/* ── Container ───────────────────────────────────────────────────────────── */
.wnr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

/* ── Featured Carousel ──────────────────────────────────────────────────── */
.wnr-featured {
    margin-bottom: 40px;
}
.wnr-featured__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.wnr-featured__title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin: 0;
    font-weight: 600;
}
.wnr-featured__nav { display: flex; gap: 8px; }
.wnr-featured__arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
}
.wnr-featured__arrow:hover { border-color: #1a1a1a; color: #1a1a1a; }
.wnr-featured__arrow:disabled { opacity: 0.3; cursor: default; }
.wnr-featured__scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.wnr-featured__scroll::-webkit-scrollbar { display: none; }

.wnr-featured-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wnr-featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.wnr-featured-card__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.wnr-featured-card__placeholder {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-family: 'Georgia', serif;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
}
.wnr-featured-card__info {
    padding: 12px 14px;
}
.wnr-featured-card__name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 4px;
}
.wnr-featured-card__meta {
    font-size: 11px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 4px;
}
.wnr-featured-card__meta img { width: 12px; height: 12px; border-radius: 50%; }

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
/* Sticky bar: search + filters combined */
.wnr-sticky-bar {
    position: sticky;
    top: 70px;
    z-index: 99;
    background: #fff;
    padding-bottom: 4px;
    margin-bottom: 24px;
}
.wnr-sticky-bar--stuck {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.wnr-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}
.wnr-toolbar__left-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.wnr-toolbar__left-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, #fff);
    pointer-events: none;
    z-index: 1;
    opacity: 1;
    transition: opacity 0.2s;
}
.wnr-toolbar__left-wrap--end::after { opacity: 0; }
.wnr-toolbar__left {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-right: 32px;
}
.wnr-toolbar__left::-webkit-scrollbar { display: none; }

.wnr-toolbar__right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* 국가 필터 토글 (모바일 전용) */
.wnr-chip-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 100px;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.wnr-chip-toggle:hover { border-color: #1a1a1a; }
.wnr-chip-toggle__arrow {
    font-size: 10px;
    transition: transform 0.2s;
}
.wnr-chip-toggle--open .wnr-chip-toggle__arrow { transform: rotate(180deg); }

.wnr-chip {
    padding: 6px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 100px;
    background: #fff;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wnr-chip:hover { border-color: #1a1a1a; color: #1a1a1a; }
.wnr-chip--active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}
.wnr-chip img { width: 14px; height: 14px; border-radius: 50%; }

.wnr-sort {
    padding: 8px 32px 8px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E") right 12px center no-repeat;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}

.wnr-count {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

/* ── Card Grid ───────────────────────────────────────────────────────────── */
.wnr-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.wnr-card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    opacity: 0;
    animation: wnrFadeUp 0.4s ease forwards;
}
.wnr-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

@keyframes wnrFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Visual */
.wnr-card__visual {
    position: relative;
    padding-bottom: 75%; /* 4:3 */
    overflow: hidden;
}
.wnr-card__visual { background: #f7f5f3; }
.wnr-card__img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 0.3s;
}
.wnr-card:hover .wnr-card__img { transform: scale(1.05); }

.wnr-card__placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}
.wnr-card__initial {
    font-size: 42px;
    font-family: 'Georgia', serif;
    font-weight: 300;
    color: rgba(255,255,255,0.6);
}
.wnr-card__placeholder-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
}

/* Country-based placeholder colors */
.wnr-card__placeholder--fr { background: #1E3A5F; }
.wnr-card__placeholder--it { background: #2D5F2D; }
.wnr-card__placeholder--es { background: #8B2500; }
.wnr-card__placeholder--us { background: #4A3728; }
.wnr-card__placeholder--au { background: #6B4226; }
.wnr-card__placeholder--cl { background: #5C3317; }
.wnr-card__placeholder--ar { background: #3D5C5C; }
.wnr-card__placeholder--de { background: #4A4A5A; }
.wnr-card__placeholder--pt { background: #6B2D4A; }
.wnr-card__placeholder--default { background: #722F37; }

/* Card Info */
.wnr-card__info { padding: 14px 16px; }

.wnr-card__name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin: 0 0 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.wnr-card__korean {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wnr-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
    flex-wrap: wrap;
}
.wnr-card__meta img { width: 14px; height: 14px; border-radius: 50%; }
.wnr-card__meta-sep { color: #ddd; }
.wnr-card__price {
    font-size: 11px;
    color: #800020;
    font-weight: 500;
    margin-top: 6px;
}

/* ── No Results ──────────────────────────────────────────────────────────── */
.wnr-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
}
.wnr-empty__icon { font-size: 48px; margin-bottom: 16px; }
.wnr-empty__text { font-size: 16px; color: #333; margin: 0 0 8px; }
.wnr-empty__sub { font-size: 14px; color: #999; margin: 0; }
.wnr-empty__reset {
    display: inline-block;
    margin-top: 16px;
    font-size: 14px;
    color: #800020;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
}

/* ── Loader ──────────────────────────────────────────────────────────────── */
.wnr-loader {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}
.wnr-loader__spinner {
    width: 32px;
    height: 32px;
    border: 2px solid #e5e5e5;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: wnrSpin 0.6s linear infinite;
}
@keyframes wnrSpin { to { transform: rotate(360deg); } }

/* ── Back to top ─────────────────────────────────────────────────────────── */
.wnr-back-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 50;
}
.wnr-back-top--visible { opacity: 1; pointer-events: auto; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .wnr-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 900px) {
    .wnr-hero { padding: 48px 0 36px; }
    .wnr-hero__title { font-size: 28px; letter-spacing: 2px; }
    .wnr-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .wnr-card__info { padding: 12px; }
    .wnr-card__name { font-size: 13px; }
    .wnr-card__korean { font-size: 11px; }
    .wnr-card__meta { font-size: 11px; }
    .wnr-toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
    .wnr-toolbar__right { justify-content: space-between; }
    .wnr-featured-card { flex: 0 0 160px; }
    .wnr-featured-card__img,
    .wnr-featured-card__placeholder { height: 110px; }
    /* 모바일: 국가 칩 접기/펼치기 */
    .wnr-toolbar__left-wrap::after { display: none; }
    .wnr-chip-toggle { display: flex; }
    .wnr-toolbar__left {
        flex-wrap: wrap;
        overflow-x: visible;
        padding-right: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .wnr-toolbar__left--open {
        max-height: 500px;
        margin-top: 8px;
    }
    .wnr-chip { font-size: 12px; padding: 5px 12px; }
    .wnr-toolbar__right { width: 100%; justify-content: space-between; }
}
@media (max-width: 600px) {
    .wnr-hero { padding: 40px 0 28px; }
    .wnr-hero__title { font-size: 24px; }
    .wnr-hero__stats { gap: 16px; font-size: 12px; }
    .wnr-search__input { height: 44px; font-size: 13px; }
    .wnr-container { padding: 24px 16px 60px; }
    .wnr-grid { gap: 10px; }
    .wnr-card { border-radius: 12px; }
    .wnr-card__initial { font-size: 32px; }
    .wnr-card__info { padding: 10px; }
    .wnr-card__name { font-size: 12px; }
    .wnr-back-top { width: 40px; height: 40px; bottom: 16px; right: 16px; }
}
