.gy-wine {
    --wine-ink: #35261d;
    --wine-muted: #66574a;
    --wine-accent: #754b2a;
    --wine-border: #d9c9b4;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 32px) 60px;
    color: var(--wine-ink);
    font-family: "Noto Sans TC", sans-serif;
}
.gy-wine-panel {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(0, 2.2fr);
    border: 1px solid var(--wine-border);
    background: #fbf7ef;
}
.gy-wine-intro { padding: clamp(20px, 3vw, 34px); }
.gy-wine h1, .gy-wine h2 {
    margin: 0;
    color: var(--wine-ink);
    font-family: "Noto Serif TC", Georgia, serif;
    line-height: 1.2;
}
.gy-wine h1 { font-size: clamp(34px, 4vw, 52px); }
.gy-wine-intro p { margin: 12px 0; color: var(--wine-muted); font-size: 14px; line-height: 1.6; }
.gy-wine #gy-quote-help { font-size: 13px; }
.gy-wine-downloads { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.gy-wine-filter {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
    padding: clamp(18px, 3vw, 30px);
    margin: 0;
    border: 0;
    border-inline-start: 1px solid var(--wine-border);
    background: #f0e6d5;
}
.gy-wine-filter label { min-width: 0; font-size: 13px; font-weight: 650; }
.gy-wine-filter input, .gy-wine-filter select {
    width: 100%;
    min-height: 42px;
    margin-top: 5px;
    padding: 8px 9px;
    border: 1px solid #ab977f;
    border-radius: 3px;
    background: white;
    color: var(--wine-ink);
    font: inherit;
    font-weight: 400;
}
.gy-wine-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    grid-column: 2 / -1;
}
.gy-wine .gy-wine-filter-actions a, .gy-wine-pages a {
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--wine-accent);
    font-size: 13px;
}
.gy-wine button {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--wine-accent);
    border-radius: 3px;
    color: var(--wine-accent);
    background: #fffaf0;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
}
.gy-wine .gy-wine-filter-actions button { background: #754b2a; color: #fff; padding-inline: 20px; }
.gy-wine button:hover { box-shadow: inset 0 0 0 2px #b68961; }
.gy-wine :focus-visible { outline: 2px solid #7a4321; outline-offset: 3px; }
.gy-wine-results {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: clamp(24px, 3vw, 40px) 0 12px;
}
.gy-wine-results h2 { font-size: clamp(22px, 3vw, 30px); }
.gy-wine-results p { color: var(--wine-muted); font-size: 13px; margin: 0; }
.gy-wine-table { overflow-x: auto; border: 1px solid var(--wine-border); }
.gy-wine table { border-collapse: collapse; min-width: 930px; margin: 0; width: 100%; font-size: 14px; }
.gy-wine table td, .gy-wine table th { border: 0; padding: 14px 12px; text-align: left; }
.gy-wine thead { background: #5a3c25; color: #fff; }
.gy-wine thead th { white-space: nowrap; font-size: 13px; font-weight: 650; }
.gy-wine tbody tr { border-bottom: 1px solid #e7dfd4; background: #fff; }
.gy-wine tbody tr:nth-child(even) { background: #faf5eb; }
.gy-wine tbody tr:last-child { border-bottom: 0; }
.gy-wine tbody th { font-weight: 650; }
.gy-wine tbody td[colspan] { text-align: left; }
.gy-wine-price { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.gy-wine-pages { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin: 16px 0 0; }
.gy-wine button[hidden], .gy-wine-scroll-hint { display: none !important; }
.gy-wine tbody th[scope="row"] { min-width: 150px; }
.gy-wine .gy-wine-name-en { min-width: 190px; }
@media (max-width: 930px) {
    .gy-wine-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gy-wine-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
    .gy-wine-panel { grid-template-columns: 1fr; }
    .gy-wine-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); border-inline-start: 0; border-top: 1px solid var(--wine-border); }
    .gy-wine table { min-width: 880px; }
    .gy-wine table td, .gy-wine table th { padding: 12px 9px; }
}
@media (max-width: 680px) {
    .gy-wine-scroll-hint { display: block !important; margin: 0 0 8px; font-size: 12px; color: var(--wine-muted); }
}
.gy-wine-featured {
    width: min(100% - 40px, 1240px);
    margin: clamp(32px, 5vw, 68px) auto;
    color: #35261d;
}
.gy-wine-special { width: 100%; margin: 20px 0 0; }
.gy-wine-featured-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.gy-wine-featured-head h2 { margin: 0; color: #35261d; font-size: clamp(25px, 3vw, 35px); }
.gy-wine-featured a { color: #633e21; text-decoration: underline; text-underline-offset: 4px; font-weight: 600; }
.gy-wine-summary-table { overflow-x: auto; border: 1px solid #d9c9b4; }
.gy-wine-summary-table table { width: 100%; min-width: 520px; margin: 0; border-collapse: collapse; }
.gy-wine-summary-table table th, .gy-wine-summary-table table td {
    padding: 13px clamp(10px, 2vw, 22px);
    border: 0;
    text-align: left;
    font-size: 14px;
}
.gy-wine-summary-table thead { background: #eee1ce; color: #35261d; }
.gy-wine-summary-table tbody tr { background: white; border-top: 1px solid #e8ded0; }
.gy-wine-summary-table tbody tr:nth-child(even) { background: #fbf7ef; }
.gy-wine-summary-table del { margin-left: 7px; color: #695f53; font-size: 12px; }
.gy-wine-special .gy-wine-summary-table table { min-width: 610px; }
@media (max-width: 680px) {
    .gy-wine-featured { width: calc(100% - 32px); }
    .gy-wine-special { width: 100%; }
    .gy-wine-summary-table table { min-width: 0; }
    .gy-wine-summary-table table th, .gy-wine-summary-table table td { padding: 10px 8px; font-size: 12px; }
    .gy-wine-featured:not(.gy-wine-special) .gy-wine-summary-table tr > :nth-child(2) { display: none; }
    .gy-wine-featured .gy-wine-summary-table tr > :nth-child(3) { white-space: nowrap; }
}
@media (max-width: 680px) {
    .gy-wine-special .gy-wine-summary-table table { min-width: 0; }
    .gy-wine-special .gy-wine-summary-table tr > :nth-child(2),
    .gy-wine-special .gy-wine-summary-table tr > :nth-child(3) { display: none; }
    .gy-wine-special .gy-wine-summary-table del { display: block; margin: 2px 0 0; }
}

.gy-wine-price-range { grid-column: span 2; min-width: 0; }
.gy-wine-range-title { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 650; }
.gy-wine-price-fallback { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.gy-wine-price-fallback[hidden], .gy-wine-range-sliders[hidden] { display: none !important; }
.gy-wine-range-track {
    position: relative;
    height: 25px;
    margin: 0 8px;
    display: grid;
    align-items: center;
}
.gy-wine-range-track::before {
    content: "";
    display: block;
    height: 4px;
    border-radius: 6px;
    background: linear-gradient(to right, #b7a58c var(--range-low, 0%), #754b2a var(--range-low, 0%), #754b2a var(--range-high, 100%), #b7a58c var(--range-high, 100%));
}
.gy-wine-filter .gy-wine-range-track input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    left: -9px;
    width: calc(100% + 18px);
    height: 25px;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 15px;
    background: transparent;
    padding: 0;
    pointer-events: none;
}
.gy-wine-range-track input::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #754b2a;
    border-radius: 50%;
    background: #fffdf8;
    cursor: ew-resize;
    pointer-events: auto;
}
.gy-wine-range-track input::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 2px solid #754b2a;
    border-radius: 50%;
    background: #fffdf8;
    cursor: ew-resize;
    pointer-events: auto;
}
.gy-wine-range-values { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-variant-numeric: tabular-nums; }

.gy-wine-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 25px); }
.gy-wine-gallery-grid .gy-wine-gallery-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #decdb5;
    background: #fffaf1;
    text-decoration: none;
    color: #35261d;
}
.gy-wine-gallery-photo { height: clamp(170px, 22vw, 300px); background: #f4ede3; overflow: hidden; }
.wbg .gy-wine-gallery-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gy-wine-gallery-copy { padding: 17px clamp(13px, 2vw, 24px) 21px; }
.gy-wine-gallery-copy h3 { margin: 0 0 8px; color: #35261d; line-height: 1.25; font-size: clamp(18px, 2vw, 24px); }
.gy-wine-gallery-copy p { margin: 0; color: #615247; font-weight: 400; font-size: 14px; line-height: 1.55; }
@media (max-width: 680px) {
    .gy-wine-results { align-items: flex-start; }
    .gy-wine-gallery-grid { grid-template-columns: 1fr; }
    .gy-wine-gallery-grid .gy-wine-gallery-card { display: grid; grid-template-columns: minmax(94px, 34%) minmax(0, 1fr); }
    .gy-wine-gallery-photo { height: auto; min-height: 137px; }
    .gy-wine-gallery-photo img { min-height: 137px; }
    .gy-wine-gallery-copy { display: flex; flex-direction: column; justify-content: center; padding: 13px; }
}



