@charset "UTF-8";

:root {
    --coffee-green: #123f2d;
    --coffee-green-strong: #0b3524;
    --coffee-ink: #171b18;
    --coffee-muted: #6f746f;
    --coffee-line: #e4e6e2;
    --coffee-paper: #f7f4ee;
    --coffee-soft: #fbfaf7;
    --coffee-white: #ffffff;
    --coffee-orange: #ee8b28;
    --coffee-pink: #e55b8c;
    --coffee-radius: 10px;
    --coffee-content: 1110px;
}

html {
    scroll-behavior: smooth;
}

body.home-page {
    background: var(--coffee-white);
    color: var(--coffee-ink);
    font-family: "Pretendard", sans-serif;
    letter-spacing: -0.015em;
}

body.home-page button,
body.home-page input,
body.home-page textarea {
    font: inherit;
}

body.home-page button,
body.home-page a {
    -webkit-tap-highlight-color: transparent;
}

body.home-page a:focus-visible,
body.home-page button:focus-visible,
body.home-page input:focus-visible,
body.home-page textarea:focus-visible {
    outline: 2px solid #2c7354;
    outline-offset: 3px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(20, 50, 37, 0.08);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header-inner {
    width: min(calc(100% - 48px), 1400px);
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 32px;
}

.brand,
.footer-brand {
    color: var(--coffee-green) !important;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-decoration: none;
    white-space: nowrap;
}

.primary-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 3vw, 48px);
}

.primary-navigation a,
.primary-navigation button {
    position: relative;
    padding: 22px 0 19px;
    border: 0;
    background: none;
    color: #242824;
    font-size: 0.91rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.primary-navigation a::after,
.primary-navigation button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 13px;
    left: 0;
    height: 1px;
    background: var(--coffee-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 220ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

.header-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: #252a26;
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.header-action svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    flex-shrink: 1;
    transition: none;
}

.header-search:focus-within {
    border-color: transparent;
    box-shadow: none;
}

.header-search-btn {
    display: inline-flex;
    width: auto;
    height: auto;
    padding: 0;
    margin-left: 0;
    border-radius: 0;
    color: #252a26;
    transition: color 180ms ease;
}

.header-search-btn:hover {
    color: var(--coffee-green);
    transform: none;
}

.header-search-panel {
    position: absolute;
    top: calc(100% + 17px);
    right: -12px;
    z-index: 20;
    width: 330px;
    padding: 12px;
    border: 1px solid #dfe4df;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(18, 63, 45, 0.14);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.header-search-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 34px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #dfe4df;
    border-left: 1px solid #dfe4df;
    background: #fff;
    transform: rotate(45deg);
}

.header-search.is-open .header-search-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-search-field {
    display: flex;
    align-items: center;
    height: 44px;
    padding-left: 12px;
    border: 1px solid #cfd5d1;
    border-radius: 6px;
    background: #fff;
}

.header-search-field:focus-within {
    border-color: #527963;
}

.header-search-field > svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #68716b;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-search-panel .header-search-input {
    position: static;
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--coffee-ink);
    font-size: 0.82rem;
    opacity: 1;
    outline: none;
    pointer-events: auto;
}

.header-search-input::placeholder {
    color: #9ca29e;
}

.header-search-submit {
    flex: 0 0 auto;
    height: 32px;
    margin-right: 5px;
    padding: 0 13px;
    border: 0;
    border-radius: 5px;
    background: var(--coffee-green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
}

/* Hero */
.hero-coffee {
    position: relative;
    height: 330px;
    overflow: hidden;
    background: #eee8de;
}

.main-hero-swiper,
.main-hero-swiper .swiper-wrapper,
.main-hero-swiper .swiper-slide {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100% !important;
}

.main-hero-swiper .swiper-slide {
    background-position: center;
    background-size: cover;
    cursor: pointer;
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 700ms ease;
}

.main-hero-swiper .swiper-slide-active {
    z-index: 1;
    opacity: 1 !important;
    pointer-events: auto;
}

.main-hero-swiper .hero-fallback-image {
    background-image: url('/images/coffee-hero-v5.png');
    cursor: default;
}

.hero-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(248, 245, 239, 0.98) 0%, rgba(248, 245, 239, 0.92) 31%, rgba(248, 245, 239, 0.25) 57%, rgba(248, 245, 239, 0) 74%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 48px), var(--coffee-content));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.hero-content {
    width: 470px;
    padding: 0;
    color: var(--coffee-green);
    text-align: left;
    text-shadow: none;
    pointer-events: auto;
    animation: hero-copy-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-eyebrow {
    margin: 0 0 10px;
    color: #527060;
    font-size: 0.68rem !important;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hero-content h1 {
    margin: 0;
    color: var(--coffee-green);
    font-size: clamp(2rem, 3.1vw, 2.8rem);
    font-weight: 750;
    line-height: 1.16;
    letter-spacing: -0.055em;
}

.hero-content .hero-description {
    max-width: none;
    margin: 14px 0 0;
    color: #3f4742;
    font-size: 0.9rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 21px;
}

.hero-primary-button,
.hero-secondary-button {
    height: 43px;
    padding: 0 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.hero-primary-button {
    border: 1px solid var(--coffee-green);
    background: var(--coffee-green);
    color: #fff;
}

.hero-primary-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hero-secondary-button {
    border: 1px solid #72847a;
    background: rgba(255, 255, 255, 0.6);
    color: var(--coffee-green);
}

.hero-primary-button:hover,
.hero-secondary-button:hover {
    transform: translateY(-2px);
}

.hero-primary-button:hover {
    background: #0a3222;
}

.main-hero-swiper .swiper-pagination {
    z-index: 4;
    bottom: 12px !important;
}

.main-hero-swiper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: var(--coffee-green);
    opacity: 0.3;
}

.main-hero-swiper .swiper-pagination-bullet-active {
    opacity: 0.9;
}

@keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Taste bar */
.filter-bar {
    position: relative;
    top: auto;
    z-index: 20;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(20, 50, 37, 0.06);
    border-bottom: 1px solid var(--coffee-line);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.taste-filter-inner {
    width: min(calc(100% - 48px), var(--coffee-content));
    min-height: 61px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 175px minmax(0, 1fr) 78px;
    align-items: center;
    gap: 18px;
}

.taste-filter-inner h2 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.filter-content {
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    align-items: center;
    gap: 10px;
    padding: 0;
}

.filter-content a,
.filter-content .taste-chip-wheel {
    width: 100%;
    min-width: 0;
    height: 37px;
    padding: 0 12px;
    border: 1px solid #e4e6e3;
    border-radius: 22px;
    background: #fff;
    color: #444a46;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-content a:hover,
.filter-content .taste-chip-wheel:hover {
    border-color: #6d8a79;
    color: var(--coffee-green);
    transform: translateY(-1px);
}

.taste-icon {
    width: 18px;
    color: #55a477;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
}

.taste-icon-fruit { color: var(--coffee-orange); }
.taste-icon-floral { color: var(--coffee-pink); }
.taste-icon-choco { color: #aa5331; }
.taste-icon-nut { color: #c48237; }
.taste-icon-savory { color: #80564a; }
.taste-icon-clean { color: #52a09e; }

.filter-view-all,
.home-section-heading a,
.panel-heading a {
    color: #5f6661;
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}

.filter-view-all span,
.home-section-heading a span,
.panel-heading a span {
    padding-left: 4px;
    font-size: 1.15em;
}

/* Main page */
.home-main-page .main-layout {
    display: block;
    width: min(calc(100% - 48px), var(--coffee-content));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.home-main-page .main-layout > .sidebar,
.home-main-page .main-layout > .sub-sidebar,
.home-main-page .sidebar-overlay {
    display: none !important;
}

.home-main-page .content-area {
    width: 100%;
    min-width: 0;
    padding: 0;
}

.home-dashboard {
    padding: 24px 0 20px;
}

.home-section {
    margin-bottom: 24px;
}

.home-section-heading,
.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.home-section-heading {
    margin-bottom: 13px;
}

.home-section-heading h2,
.panel-heading h2 {
    margin: 0;
    color: var(--coffee-ink);
    font-size: 1.03rem;
    font-weight: 700;
    line-height: 1.25;
}

.home-section-heading p,
.panel-heading p {
    margin: 4px 0 0;
    color: var(--coffee-muted);
    font-size: 0.71rem;
    line-height: 1.4;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-controls > a {
    margin-right: 8px;
}

.card-scroll-button {
    width: 29px;
    height: 29px;
    border: 1px solid #e0e3df;
    border-radius: 50%;
    background: #fff;
    color: #626963;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.card-scroll-button:hover {
    border-color: var(--coffee-green);
    color: var(--coffee-green);
    transform: translateY(-1px);
}

.home-bean-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 5);
    gap: 12px;
    overflow-x: auto;
    padding: 1px 1px 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.home-bean-grid::-webkit-scrollbar {
    display: none;
}

.home-card-loading {
    grid-column: 1 / -1;
    width: var(--coffee-content);
    padding: 55px 20px;
    border: 1px solid var(--coffee-line);
    border-radius: var(--coffee-radius);
    color: var(--coffee-muted);
    font-size: 0.82rem;
    text-align: center;
}

.home-bean-card {
    position: relative;
    min-width: 0;
    min-height: 195px;
    padding: 13px 12px 12px;
    border: 1px solid #e1e4e0;
    border-radius: 8px;
    background: #fff;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform 210ms ease, box-shadow 210ms ease, border-color 210ms ease;
}

.home-bean-card:hover {
    border-color: #c8d2cc;
    box-shadow: 0 12px 30px rgba(18, 63, 45, 0.09);
    transform: translateY(-3px);
}

.bean-favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 25px;
    height: 25px;
    padding: 4px;
    border: 0;
    background: rgba(255, 255, 255, 0.88);
    color: #68716b;
    cursor: pointer;
}

.bean-favorite svg {
    width: 100%;
    height: 100%;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: fill 160ms ease, color 160ms ease, transform 160ms ease;
}

.bean-favorite[aria-pressed="true"] svg {
    fill: var(--coffee-green);
    color: var(--coffee-green);
    transform: scale(1.08);
}

.home-bean-image {
    width: 70px;
    height: 96px;
    margin-top: 8px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-bean-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 260ms ease;
}

.home-bean-card:hover .home-bean-image img {
    transform: scale(1.045);
}

.home-bean-image.no-image {
    border: 1px solid #e7e2d9;
    background: var(--coffee-paper);
}

.home-bean-image.no-image span {
    color: #55705e;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-bean-body {
    min-width: 0;
    padding-top: 15px;
}

.home-bean-roastery {
    margin: 0;
    padding-right: 21px;
    overflow: hidden;
    color: #444b46;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-bean-name {
    min-height: 32px;
    margin: 4px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #1b211d;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-bean-meta {
    margin: 4px 0 0;
    overflow: hidden;
    color: #7a807b;
    font-size: 0.57rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bean-flavor-row {
    min-height: 14px;
    margin-top: 7px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.bean-flavor-row > span {
    margin-right: 2px;
    color: #747b76;
    font-size: 0.56rem;
}

.flavor-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #244c39;
}

.flavor-dot-1 { background: #617b4a; }
.flavor-dot-2 { background: #914e31; }
.flavor-dot-3 { background: #d9a04e; }
.flavor-dot-4 { background: #d8ddd9; }

.roast-badge {
    grid-column: 1 / -1;
    align-self: end;
    justify-self: start;
    margin-top: 12px;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 0.57rem;
    font-weight: 600;
    line-height: 1.2;
}

.roast-light { background: #e5f1df; color: #42683b; }
.roast-medium { background: #fde9c8; color: #9b5c19; }
.roast-dark { background: #ebe2dd; color: #64483d; }

.bean-price-row {
    grid-column: 1 / -1;
    margin-top: 7px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.bean-price-row strong {
    color: #181d19;
    font-size: 0.77rem;
    font-weight: 750;
}

.bean-price-row span {
    color: #707671;
    font-size: 0.62rem;
}

/* Discovery panels */
.home-discovery-grid {
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    gap: 14px;
    margin-top: 6px;
}

.home-panel {
    min-width: 0;
    min-height: 256px;
    padding: 16px;
    border: 1px solid #f1efeb;
    border-radius: 9px;
    background: var(--coffee-soft);
}

.panel-heading {
    margin-bottom: 13px;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.guide-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.guide-card:hover {
    box-shadow: 0 10px 25px rgba(23, 27, 24, 0.08);
    transform: translateY(-3px);
}

.guide-card-image {
    height: 81px;
    overflow: hidden;
    background: #e6e0d7;
}

.guide-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.guide-card:hover .guide-card-image img {
    transform: scale(1.04);
}

.guide-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--coffee-green);
    font-size: 1.8rem;
}

.guide-card-body {
    padding: 8px 8px 10px;
}

.guide-category {
    color: #6d746f;
    font-size: 0.55rem;
    font-weight: 600;
}

.guide-card h3 {
    min-height: 31px;
    margin: 3px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #242a25;
    font-size: 0.67rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.guide-card p {
    min-height: 29px;
    margin: 4px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #777d78;
    font-size: 0.55rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-roastery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-roastery-card {
    min-width: 0;
    padding: 0 4px;
    text-align: center;
}

.roastery-photo {
    width: 74px;
    height: 74px;
    margin: 0 auto 7px;
    border: 1px solid #e0e2de;
    border-radius: 50%;
    overflow: hidden;
    background: #e6e1d8;
    display: grid;
    place-items: center;
    color: var(--coffee-green);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.roastery-photo:hover {
    box-shadow: 0 8px 20px rgba(18, 63, 45, 0.13);
    transform: translateY(-3px);
}

.roastery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-roastery-card h3 {
    margin: 0;
    overflow: hidden;
    color: #252b27;
    font-size: 0.69rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roastery-location {
    margin: 1px 0 0;
    color: #6f756f;
    font-size: 0.56rem;
}

.roastery-description {
    min-height: 28px;
    margin: 5px 0 7px;
    display: -webkit-box;
    overflow: hidden;
    color: #777c78;
    font-size: 0.52rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.roastery-link {
    min-width: 75px;
    height: 24px;
    padding: 0 9px;
    border: 1px solid #d8ddd9;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555d57;
    font-size: 0.55rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 180ms ease, color 180ms ease;
}

.roastery-link:hover {
    border-color: var(--coffee-green);
    color: var(--coffee-green);
}

.roastery-empty {
    grid-column: 1 / -1;
    padding: 60px 20px;
    color: var(--coffee-muted);
    font-size: 0.75rem;
    text-align: center;
}

/* Value strip */
.coffee-values {
    min-height: 76px;
    margin-top: 24px;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--coffee-soft);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
}

.coffee-value-item {
    min-width: 0;
    min-height: 48px;
    padding: 0 18px;
    border-right: 1px solid #e4e4df;
    display: flex;
    align-items: center;
    gap: 16px;
}

.coffee-value-item:last-child {
    border-right: 0;
}

.coffee-value-item svg {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--coffee-green);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.coffee-value-item h3 {
    margin: 0 0 2px;
    color: #293029;
    font-size: 0.72rem;
    font-weight: 700;
}

.coffee-value-item p {
    margin: 0;
    color: #747a75;
    font-size: 0.57rem;
    line-height: 1.5;
}

/* Footer */
.site-footer {
    margin-top: 0;
    border-top: 1px solid #eceeeb;
    background: #fff;
}

.site-footer-inner {
    width: min(calc(100% - 48px), var(--coffee-content));
    min-height: 67px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 30px;
}

.site-footer .footer-brand {
    margin: 0;
    padding: 0;
    display: inline;
    font-size: 0.68rem;
}

.footer-navigation {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-navigation a,
.footer-navigation button {
    padding: 0;
    border: 0;
    background: none;
    color: #737973;
    font-size: 0.61rem;
    text-decoration: none;
    cursor: pointer;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-social a {
    width: 19px;
    height: 19px;
    color: var(--coffee-green);
}

.footer-social svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.footer-copyright {
    margin: 0;
    color: #949894;
    font-size: 0.57rem;
    text-align: right;
}

/* Existing secondary pages inherit the new shell without losing their layouts. */
.home-page:not(.home-main-page) .main-layout {
    margin-top: 30px;
    margin-bottom: 50px;
}

.home-page:not(.home-main-page) .hero-coffee {
    height: 250px;
}

/* Modal polish */
.home-page .modal-overlay,
.contact-modal-overlay {
    background: rgba(9, 25, 17, 0.56);
    backdrop-filter: blur(5px);
}

.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.contact-modal-overlay .modal-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.contact-modal-overlay .modal-header {
    background: var(--coffee-green);
}

.contact-modal-overlay .btn-send {
    background: var(--coffee-green);
}

.contact-modal-overlay .btn-send:hover {
    background: var(--coffee-green-strong);
}

@media (max-width: 1180px) {
    .site-header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 24px;
    }

    .primary-navigation {
        gap: 24px;
    }

    .header-action-secondary span {
        display: none;
    }

    .taste-filter-inner {
        grid-template-columns: 160px minmax(0, 1fr) 74px;
    }

    .filter-content {
        gap: 7px;
    }

    .filter-content a,
    .filter-content .taste-chip-wheel {
        padding: 0 8px;
        font-size: 0.72rem;
    }

    .coffee-value-item {
        padding: 0 12px;
        gap: 11px;
    }
}

@media (max-width: 960px) {
    .site-header-inner {
        width: min(calc(100% - 32px), var(--coffee-content));
        grid-template-columns: 1fr auto;
    }

    .mobile-menu-button {
        width: 36px;
        height: 36px;
        padding: 8px;
        border: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
    }

    .mobile-menu-button span {
        width: 100%;
        height: 1.5px;
        background: var(--coffee-green);
    }

    .primary-navigation {
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        padding: 14px 24px 20px;
        border-bottom: 1px solid var(--coffee-line);
        background: rgba(255, 255, 255, 0.98);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 14px 30px rgba(18, 63, 45, 0.08);
    }

    .primary-navigation.is-open {
        display: flex;
    }

    .primary-navigation a,
    .primary-navigation button {
        width: 100%;
        padding: 13px 0;
        text-align: left;
    }

    .primary-navigation a::after,
    .primary-navigation button::after {
        display: none;
    }

    .header-actions {
        display: none;
    }

    .taste-filter-inner {
        width: 100%;
        padding: 10px 16px;
        display: block;
    }

    .taste-filter-inner h2 {
        margin-bottom: 9px;
    }

    .filter-content {
        display: flex;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .filter-content::-webkit-scrollbar { display: none; }

    .filter-content a,
    .filter-content .taste-chip-wheel {
        width: auto;
        min-width: 102px;
    }

    .filter-view-all {
        display: none;
    }

    .home-main-page .main-layout {
        width: min(calc(100% - 32px), var(--coffee-content));
    }

    .home-bean-grid {
        grid-auto-columns: calc((100% - 24px) / 3);
    }

    .home-discovery-grid {
        grid-template-columns: 1fr;
    }

    .coffee-values {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 14px;
    }

    .coffee-value-item:nth-child(2) {
        border-right: 0;
    }

    .site-footer-inner {
        width: min(calc(100% - 32px), var(--coffee-content));
    }
}

@media (max-width: 640px) {
    .site-header {
        height: 58px;
    }

    .primary-navigation {
        top: 58px;
    }

    .brand {
        font-size: 0.95rem;
    }

    .hero-coffee,
    .home-page:not(.home-main-page) .hero-coffee {
        height: 430px;
    }

    .main-hero-swiper .swiper-slide {
        background-position: 68% center;
    }

    .hero-shade {
        background: linear-gradient(180deg, rgba(248, 245, 239, 0.98) 0%, rgba(248, 245, 239, 0.9) 48%, rgba(248, 245, 239, 0.2) 77%, rgba(248, 245, 239, 0) 100%);
    }

    .hero-inner {
        width: calc(100% - 32px);
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
        padding-top: 46px;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-eyebrow {
        font-size: 0.59rem !important;
    }

    .hero-actions {
        align-items: stretch;
    }

    .hero-primary-button,
    .hero-secondary-button {
        min-width: 0;
        padding: 0 16px;
        font-size: 0.76rem;
    }

    .home-dashboard {
        padding-top: 20px;
    }

    .home-section-heading {
        align-items: flex-end;
    }

    .section-controls .card-scroll-button {
        display: none;
    }

    .section-controls > a {
        margin: 0;
    }

    .home-bean-grid {
        margin-right: -16px;
        grid-auto-columns: min(78vw, 250px);
        gap: 10px;
    }

    .home-bean-card {
        min-height: 205px;
    }

    .home-panel {
        padding: 15px;
    }

    .guide-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guide-card-image {
        height: 105px;
    }

    .home-roastery-grid {
        margin-right: -15px;
        display: flex;
        overflow-x: auto;
        padding: 2px 15px 7px 0;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .home-roastery-grid::-webkit-scrollbar { display: none; }

    .home-roastery-card {
        min-width: 132px;
        scroll-snap-align: start;
    }

    .coffee-values {
        grid-template-columns: 1fr;
        padding: 9px 17px;
    }

    .coffee-value-item,
    .coffee-value-item:nth-child(2) {
        padding: 13px 0;
        border-right: 0;
        border-bottom: 1px solid #e4e4df;
    }

    .coffee-value-item:last-child {
        border-bottom: 0;
    }

    .site-footer-inner {
        padding: 20px 0;
        display: flex;
        flex-wrap: wrap;
        gap: 14px 24px;
    }

    .footer-copyright {
        width: 100%;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
