/* Customer-selected concept 03: Farmyard. */
@font-face {
    font-family: 'Farmyard Hand';
    src: url('/yarmarka-assets/Caveat.ttf') format('truetype');
    font-weight: 400 700;
    font-display: swap;
}
.theme-farmyard {
    --farm-cream: #f5efe5;
    --farm-wine: #321126;
    --farm-green: #567657;
    background: var(--farm-cream);
    color: var(--farm-wine);
}
.theme-farmyard .preview { background: var(--farm-green); color: #fffaf0; }
.theme-farmyard .header { min-height: 96px; border-bottom: 1px solid #4d634338; }
.theme-farmyard .header nav a:hover,
.theme-farmyard .header nav a[aria-current] { border-color: var(--farm-green); }
.theme-farmyard .online { background: var(--farm-wine); border-color: var(--farm-wine); color: #fff8ee; padding: 12px 22px; }
.theme-farmyard .online:hover { background: var(--farm-green); border-color: var(--farm-green); }
/* Hours are a quiet utility under the header purchase action, not hero copy. */
.theme-farmyard .header-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.theme-farmyard .header-actions .online { display: inline-flex; align-items: center; justify-content: center; }
.theme-farmyard .header-hours { color: #4d5e47; font-size: 12px; line-height: 1.25; letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* One scene spans the available width; only the reading column stays narrow. */
.theme-farmyard .hero {
    display: block;
    position: relative;
    width: min(1920px, calc(100% - 64px));
    height: clamp(550px, calc(100svh - 140px), 940px);
    min-height: 0;
    padding: clamp(18px, 2.6svh, 32px) 0 0;
    margin: 0 auto;
    text-align: center;
    isolation: isolate;
}
.theme-farmyard .hero-copy { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.theme-farmyard .hero .eyebrow { color: var(--farm-green); margin-bottom: 14px; }
.theme-farmyard .hero h1 {
    font-size: clamp(56px, min(6.4vw, 8.3svh), 88px);
    color: var(--farm-wine);
    line-height: .98;
    letter-spacing: -.055em;
    margin: 0 auto 18px;
}
.theme-farmyard .hero .intro { color: #4d5e47; font-size: 12px; line-height: 1.8; letter-spacing: .15em; text-transform: uppercase; margin: 0 auto 16px; }
.theme-farmyard .hero .button { background: var(--farm-green); border-radius: 999px; padding: 13px 26px; min-height: 48px; }
.theme-farmyard .hero .button:hover { background: var(--farm-wine); }
.theme-farmyard .hero-image {
    position: absolute;
    z-index: 1;
    inset: auto 0 12px;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}
.theme-farmyard .hero-image > img { width: 100%; height: auto; object-fit: contain; }
/* Secondary handwritten note: legible ink with a flourish echoing the botanical artwork. */
.theme-farmyard .hero-script {
    position: absolute;
    z-index: 2;
    left: calc(50% + clamp(280px, 24vw, 380px));
    right: auto;
    top: clamp(150px, 22svh, 220px);
    width: 195px;
    margin: 0;
    color: var(--farm-wine);
    font: 600 clamp(30px, 2.25vw, 36px)/1.02 'Farmyard Hand', cursive;
    letter-spacing: .005em;
    text-align: left;
    transform: rotate(-8deg);
}
.theme-farmyard .hero-script::after {
    content: '';
    display: block;
    width: 116px;
    height: 9px;
    margin: 3px 0 0 18px;
    border-bottom: 2px solid var(--farm-green);
    border-radius: 50%;
    transform: rotate(-5deg);
}
.theme-farmyard .has-custom-hero { height: auto; padding-bottom: 24px; }
.theme-farmyard .has-custom-hero .hero-image { position: relative; inset: auto; width: min(100%, 1100px); margin: 28px auto 0; }
.theme-farmyard .has-custom-hero .hero-image > img { max-height: 540px; border-radius: 20px; }
.theme-farmyard .hero-number,
.theme-farmyard .ribbon { display: none; }

.theme-farmyard .assortment { padding-top: 45px; }
.theme-farmyard .assortment .section-heading { border-top: 1px solid #4d63433d; padding-top: 45px; }
.theme-farmyard .assortment .section-heading h2 em { color: var(--farm-green); }
.theme-farmyard .category-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; border: 0; }
.theme-farmyard .category { min-height: 170px; display: grid; grid-template-columns: 1fr 26px; align-content: end; gap: 8px 15px; padding: 24px; border: 1px solid #4d634333; border-radius: 24px 24px 6px 6px; background: #eee0c6; }
.theme-farmyard .category:nth-child(3n+2) { background: #d9e1cc; }
.theme-farmyard .category:nth-child(3n) { background: #ead7c8; }
.theme-farmyard .category:hover { padding: 24px; transform: translateY(-3px); border-color: var(--farm-green); }
.theme-farmyard .category-index { grid-column: 1 / -1; color: var(--farm-green); }
.theme-farmyard .category h3 { grid-column: 1; font-size: 27px; color: var(--farm-wine); }
.theme-farmyard .category p { grid-column: 1; margin: 0; color: #5d6558; }
.theme-farmyard .category .arrow { grid-column: 2; grid-row: 2 / 4; align-self: end; }

@media (min-width: 761px) and (max-width: 1100px) {
    .theme-farmyard .hero-script { display: none; }
}
@media (min-width: 761px) and (max-height: 740px) and (min-aspect-ratio: 2/1) {
    .theme-farmyard .hero { height: auto; min-height: 0; padding-bottom: 12px; }
    .theme-farmyard .hero-image { position: relative; inset: auto; margin-top: -90px; }
}
@media (max-width: 760px) {
    .theme-farmyard .header { min-height: 88px; }
    .theme-farmyard .online { padding: 9px 12px; }
    .theme-farmyard .header-hours { font-size: 11px; }
    .theme-farmyard .hero { width: calc(100% - 32px); height: auto; padding: 22px 0 0; gap: 0; }
    .theme-farmyard .hero h1 { font-size: clamp(38px, 12vw, 54px); }
    .theme-farmyard .hero .intro { font-size: 10px; letter-spacing: .11em; }

    .theme-farmyard .hero-image { position: relative; inset: auto; width: calc(100% + 32px); aspect-ratio: 1.5; margin: 18px -16px 0; overflow: hidden; }
    .theme-farmyard .hero-image > img { width: 200%; max-width: none; transform: translateX(-10%); }
    .theme-farmyard .hero-script { display: none; }
    .theme-farmyard .has-custom-hero .hero-image { width: 100%; aspect-ratio: auto; margin: 20px 0 0; }
    .theme-farmyard .has-custom-hero .hero-image > img { width: 100%; transform: none; }
    .theme-farmyard .assortment { padding-top: 32px; }
    .theme-farmyard .category-list { grid-template-columns: 1fr; }
    .theme-farmyard .category { min-height: 145px; }
    .theme-farmyard .category h3 { font-size: 25px; }
}
