/*
Theme Name: AgroCoop Hartmann
Theme URI: https://agrocoop.ro/
Author: Hartmann L&CS
Description: Tema dedicata AgroCoop pentru anunturi agricole.
Version: 1.0.13
Text Domain: agrocoop-hartmann
*/

:root {
    --agro-green-950: #052d1b;
    --agro-green-900: #073d24;
    --agro-green-800: #0f5a31;
    --agro-green-700: #127a35;
    --agro-green-500: #2e9f45;
    --agro-green-100: #e9f4e6;
    --agro-harvest-500: #f4bd18;
    --agro-harvest-400: #ffcf33;
    --agro-soil-600: #9a6b35;
    --agro-ink-900: #122117;
    --agro-ink-700: #26342b;
    --agro-muted-600: #6f8591;
    --agro-line-200: #dde6da;
    --agro-surface-50: #f6f8f4;
    --agro-white: #ffffff;
    --agro-font-display: "Aptos Display", "Segoe UI Variable Display", "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --agro-font-ui: "Aptos", "Segoe UI Variable Text", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --agro-radius-card: 8px;
    --agro-radius-control: 8px;
    --agro-shadow-card: 0 18px 42px rgb(7 61 36 / 0.12);
    --agro-shadow-soft: 0 10px 26px rgb(7 61 36 / 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    background: var(--agro-surface-50);
    color: var(--agro-ink-900);
    font-family: var(--agro-font-ui);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.agro-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
    vertical-align: -0.14em;
}

.site-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.utility-bar {
    background: var(--agro-green-950);
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    font-weight: 500;
}

.utility-bar__inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 0;
}

.utility-bar__links {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.utility-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--agro-green-950);
    background: var(--agro-harvest-500);
    border-radius: 50%;
}

.utility-social-link:hover {
    background: var(--agro-harvest-400);
}

.utility-social-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--agro-line-200);
    backdrop-filter: blur(12px);
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 76px;
}

.brand img {
    width: 190px;
    height: auto;
}

.primary-navigation {
    flex: 1 1 auto;
}

.primary-menu,
.primary-menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu {
    justify-content: center;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--agro-radius-control);
    font-size: 14px;
    font-weight: 600;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
    color: var(--agro-green-800);
    background: var(--agro-green-100);
}

.primary-menu ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    display: none;
    min-width: 230px;
    padding: 8px;
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-card);
}

.primary-menu li:hover > ul,
.primary-menu li:focus-within > ul {
    display: block;
}

.primary-menu ul a {
    justify-content: flex-start;
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.header-actions__login {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: var(--agro-radius-control);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    gap: 8px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.header-actions .header-actions__login {
    display: none;
}

.button--primary {
    background: var(--agro-harvest-500);
    color: var(--agro-ink-900);
    border-color: var(--agro-harvest-500);
}

.button--primary:hover {
    background: var(--agro-harvest-400);
}

.button--ghost {
    background: var(--agro-white);
    color: var(--agro-ink-900);
    border-color: var(--agro-green-800);
}

.button--search {
    min-height: 54px;
    background: var(--agro-green-800);
    color: var(--agro-white);
    border-color: var(--agro-green-800);
}

.hero {
    position: relative;
    overflow: visible;
    background:
        url("assets/img/hero-agrocoop-generated.webp") center center / cover no-repeat,
        linear-gradient(180deg, #fff7da 0%, #d6e8c7 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(246, 248, 244, 0.94) 0%, rgba(246, 248, 244, 0.86) 36%, rgba(246, 248, 244, 0.45) 56%, rgba(246, 248, 244, 0.08) 78%),
        linear-gradient(180deg, rgba(5, 45, 27, 0.08) 0%, rgba(5, 45, 27, 0.18) 100%);
    backdrop-filter: blur(2px) saturate(0.92);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 72%);
    mask-image: linear-gradient(90deg, #000 0%, #000 48%, transparent 72%);
}

.hero::after {
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(5, 45, 27, 0.12) 0%, transparent 34%, rgba(5, 45, 27, 0.16) 100%),
        linear-gradient(90deg, rgba(246, 248, 244, 0.52) 0%, transparent 44%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    min-height: 560px;
    padding: 92px 0 130px;
}

.hero__copy {
    position: relative;
    z-index: 2;
    max-width: 610px;
    padding: 8px 0;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--agro-green-700);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    max-width: 660px;
    margin: 0;
    font-family: var(--agro-font-display);
    font-size: 54px;
    line-height: 1.05;
    font-weight: 600;
}

.hero h1 {
    color: var(--agro-green-800);
}

.hero h1 br + * {
    color: var(--agro-ink-900);
}

.hero__copy p:not(.eyebrow) {
    max-width: 560px;
    margin: 22px 0 0;
    color: var(--agro-ink-700);
    font-size: 18px;
    font-weight: 400;
}

.search-panel {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: -50px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(221, 230, 218, 0.95);
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-card);
}

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.search-tab {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 16px;
    color: var(--agro-ink-700);
    border-radius: var(--agro-radius-control);
    font-size: 14px;
    font-weight: 500;
    gap: 8px;
    border: 1px solid transparent;
}

.search-tab--active {
    background: var(--agro-green-800);
    color: var(--agro-white);
    box-shadow: 0 8px 18px rgb(15 90 49 / 0.16);
}

.search-panel__fields {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr 150px;
    gap: 14px;
    align-items: end;
}

.search-panel label {
    display: grid;
    gap: 6px;
    color: var(--agro-muted-600);
    font-size: 12px;
    font-weight: 600;
}

.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    color: var(--agro-ink-900);
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-control);
    outline: none;
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--agro-green-700);
    box-shadow: 0 0 0 3px rgba(18, 122, 53, 0.12);
}

.trust-band {
    background: var(--agro-white);
    border-bottom: 1px solid var(--agro-line-200);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 86px 0 34px;
}

.trust-grid div {
    display: grid;
    gap: 5px;
    justify-items: center;
    min-height: 82px;
    padding: 14px;
    border-right: 1px solid var(--agro-line-200);
}

.trust-grid div:last-child {
    border-right: 0;
}

.trust-grid__icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 2px;
    color: var(--agro-green-800);
    background: var(--agro-green-100);
    border: 1px solid rgba(15, 90, 49, 0.13);
    border-radius: 50%;
}

.trust-grid__icon .agro-icon {
    width: 17px;
    height: 17px;
}

.trust-grid strong {
    color: var(--agro-ink-900);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.trust-grid span {
    color: var(--agro-muted-600);
    font-size: 13px;
    font-weight: 500;
}

.trust-grid .trust-grid__icon {
    color: var(--agro-green-800);
}

.site-section {
    padding: 52px 0;
}

.site-section--listings {
    padding-top: 28px;
}

.section-heading {
    margin-bottom: 28px;
    text-align: center;
}

.section-heading--row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
}

.section-heading h2 {
    margin: 0;
    font-family: var(--agro-font-display);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
}

.section-heading p {
    max-width: 620px;
    margin: 8px auto 0;
    color: var(--agro-muted-600);
    font-weight: 400;
}

.section-heading--row p {
    margin-left: 0;
}

.link-more,
.listing-section__heading a {
    color: var(--agro-green-800);
    font-weight: 600;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.category-card {
    position: relative;
    display: grid;
    gap: 11px;
    align-content: start;
    min-height: 258px;
    padding: 18px;
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-soft);
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-card:hover {
    border-color: var(--agro-green-500);
    transform: translateY(-2px);
    box-shadow: var(--agro-shadow-card);
}

.category-card__icon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--agro-green-800);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 90, 49, 0.14);
    border-radius: 50%;
    box-shadow: 0 8px 18px rgb(7 61 36 / 0.08);
}

.category-card__media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(180deg, #f9fbf7 0%, var(--agro-green-100) 100%);
    border-radius: var(--agro-radius-card);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

.category-card__media img[src$="logo-final-icon.svg"] {
    width: 96px;
    height: 96px;
}

.category-card strong {
    font-size: 18px;
    font-weight: 600;
}

.category-card__count {
    color: var(--agro-muted-600);
    font-size: 13px;
    font-weight: 500;
}

.listing-section {
    margin-top: 34px;
}

.listing-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.listing-section__heading h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
}

.listing-section__heading h3 .agro-icon {
    color: var(--agro-green-800);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.listing-grid--wide {
    grid-template-columns: repeat(3, 1fr);
}

.listing-card {
    min-width: 0;
    overflow: hidden;
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-soft);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.listing-card:hover {
    border-color: rgba(18, 122, 53, 0.38);
    box-shadow: var(--agro-shadow-card);
    transform: translateY(-2px);
}

.listing-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1.42;
    overflow: hidden;
    background: var(--agro-green-100);
}

.listing-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.listing-card__placeholder img {
    width: 92px;
    height: 92px;
    object-fit: contain;
}

.listing-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--agro-green-800);
    border: 1px solid rgba(15, 90, 49, 0.14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgb(7 61 36 / 0.10);
}

.listing-card__body {
    display: grid;
    gap: 11px;
    padding: 16px;
}

.listing-card h3 {
    min-height: 44px;
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 600;
}

.listing-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 24px;
    margin: 0;
    color: var(--agro-muted-600);
    font-size: 13px;
    font-weight: 500;
}

.listing-card__meta span,
.listing-card__foot {
    display: flex;
    align-items: center;
}

.listing-card__meta span {
    gap: 5px;
}

.listing-card__meta .agro-icon {
    color: var(--agro-green-700);
}

.listing-card__foot {
    justify-content: space-between;
    gap: 14px;
    padding-top: 2px;
}

.listing-card__price {
    margin: 0;
    color: var(--agro-green-800);
    font-size: 20px;
    font-weight: 700;
}

.listing-card__arrow {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--agro-green-800);
    background: var(--agro-green-100);
    border: 1px solid rgba(15, 90, 49, 0.12);
    border-radius: 50%;
    transition: background 0.18s ease, transform 0.18s ease;
}

.listing-card:hover .listing-card__arrow {
    background: var(--agro-harvest-500);
    transform: translateX(2px);
}

.listing-card__arrow .agro-icon {
    width: 16px;
    height: 16px;
}

.spare-strip {
    padding: 22px 0 48px;
}

.spare-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px;
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-soft);
}

.spare-strip__icon {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    color: var(--agro-green-800);
    background: var(--agro-green-100);
    border: 1px solid rgba(15, 90, 49, 0.13);
    border-radius: 50%;
}

.spare-strip h2,
.seller-cta h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.spare-strip p,
.seller-cta p {
    margin: 0;
    color: var(--agro-muted-600);
    font-weight: 400;
}

.how-it-works {
    padding: 16px 0 54px;
    background: var(--agro-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.steps-grid article {
    position: relative;
    padding: 24px;
    background: var(--agro-surface-50);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-card);
}

.steps-grid span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    background: var(--agro-green-800);
    color: var(--agro-white);
    border-radius: 50%;
}

.steps-grid span .agro-icon {
    width: 17px;
    height: 17px;
}

.steps-grid h3,
.steps-grid p {
    margin: 0;
}

.steps-grid h3 {
    margin-bottom: 6px;
    font-weight: 600;
}

.steps-grid p {
    color: var(--agro-muted-600);
    font-weight: 400;
}

.seller-cta {
    padding: 54px 0;
}

.seller-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 178px;
    padding: 32px 40px;
    color: var(--agro-white);
    background:
        linear-gradient(90deg, rgba(5, 45, 27, 0.96), rgba(7, 61, 36, 0.72), rgba(7, 61, 36, 0.22)),
        url("assets/img/hero-agrocoop-generated.webp") right center / cover no-repeat;
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-card);
}

.seller-cta p {
    color: rgba(255, 255, 255, 0.9);
}

.page-hero {
    padding: 70px 0 44px;
    color: var(--agro-white);
    background:
        linear-gradient(90deg, rgba(5, 45, 27, 0.98) 0%, rgba(15, 90, 49, 0.86) 42%, rgba(15, 90, 49, 0.44) 100%),
        url("assets/img/hero-agrocoop-generated.webp") right center / cover no-repeat;
}

.page-hero--compact {
    padding: 46px 0 34px;
}

.page-hero p {
    max-width: 690px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 400;
}

.page-hero__title-with-icon {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-hero__title-with-icon span {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    color: var(--agro-harvest-500);
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.content-page {
    max-width: 860px;
    padding: 46px 0 70px;
}

.content-page a {
    color: var(--agro-green-800);
    font-weight: 600;
}

.page-id-5 .content-page {
    max-width: 1180px;
}

.contact-page {
    display: grid;
    gap: 28px;
}

.contact-intro {
    max-width: 820px;
}

.contact-intro h2,
.contact-panel h2 {
    margin: 0;
    font-family: var(--agro-font-display);
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
}

.contact-intro p:not(.eyebrow),
.contact-panel p {
    margin: 12px 0 0;
    color: var(--agro-ink-700);
    font-weight: 400;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.contact-panel {
    padding: 28px;
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-soft);
}

.contact-page .wpcf7-form {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.contact-page .wpcf7-form p {
    margin: 0;
}

.contact-page .wpcf7 label {
    display: grid;
    gap: 7px;
    color: var(--agro-muted-600);
    font-size: 14px;
    font-weight: 600;
}

.contact-page .wpcf7-form-control-wrap {
    display: block;
}

.contact-page .wpcf7 input[type="text"],
.contact-page .wpcf7 input[type="email"],
.contact-page .wpcf7 input[type="tel"],
.contact-page .wpcf7 textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--agro-ink-900);
    background: var(--agro-surface-50);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-control);
    outline: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-page .wpcf7 textarea {
    min-height: 154px;
    resize: vertical;
}

.contact-page .wpcf7 input:focus,
.contact-page .wpcf7 textarea:focus {
    background: var(--agro-white);
    border-color: var(--agro-green-700);
    box-shadow: 0 0 0 3px rgb(46 159 69 / 0.16);
}

.contact-page .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 48px;
    padding: 0 22px;
    color: var(--agro-ink-900);
    background: var(--agro-harvest-500);
    border: 1px solid var(--agro-harvest-500);
    border-radius: var(--agro-radius-control);
    font-weight: 700;
    cursor: pointer;
}

.contact-page .wpcf7-submit:hover {
    background: var(--agro-harvest-400);
}

.contact-page .wpcf7-spinner {
    margin: 0 0 0 10px;
}

.contact-page .wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #b42318;
    font-size: 13px;
    font-weight: 500;
}

.contact-page .wpcf7-response-output {
    margin: 4px 0 0 !important;
    padding: 12px 14px !important;
    border-radius: var(--agro-radius-control);
    font-weight: 500;
}

.contact-details,
.contact-category-links {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.contact-details li {
    display: grid;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--agro-line-200);
}

.contact-details li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contact-details span {
    color: var(--agro-muted-600);
    font-size: 13px;
    font-weight: 500;
}

.contact-details strong,
.contact-details a {
    color: var(--agro-ink-900);
    font-size: 17px;
    font-weight: 600;
}

.contact-panel .contact-links-title {
    margin-top: 28px;
    font-size: 20px;
    line-height: 1.2;
}

.contact-category-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 0 14px;
    color: var(--agro-green-800);
    background: var(--agro-green-100);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-control);
    font-weight: 600;
}

.contact-category-links a:hover {
    background: var(--agro-white);
    border-color: var(--agro-green-500);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.category-pills a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: 999px;
    color: var(--agro-green-800);
    font-weight: 600;
    box-shadow: 0 6px 16px rgb(7 61 36 / 0.05);
}

.single-listing {
    padding: 52px 0 72px;
}

.single-listing__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
    gap: 34px;
    align-items: start;
}

.single-listing__main-image {
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-card);
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.gallery-strip__item {
    display: block;
    appearance: none;
    padding: 0;
    font: inherit;
    background: transparent;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--agro-radius-card);
    border: 1px solid var(--agro-line-200);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-strip__item:hover,
.gallery-strip__item:focus-visible,
.gallery-strip__item.is-active {
    border-color: var(--agro-green-700);
    box-shadow: 0 0 0 3px rgb(12 112 60 / 0.14);
}

.gallery-strip__item:hover {
    transform: translateY(-1px);
}

.gallery-strip img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-listing__content {
    padding: 28px;
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-soft);
}

.single-listing__category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--agro-green-800);
    font-weight: 600;
}

.single-listing h1 {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 700;
}

.single-listing__price {
    margin: 0 0 18px;
    color: var(--agro-green-800);
    font-size: 30px;
    font-weight: 700;
}

.listing-details {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
}

.listing-details > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--agro-line-200);
}

.listing-details > .listing-details__interest {
    grid-template-columns: 120px minmax(0, 1fr);
}

.listing-details__interest > dd,
.listing-details__interest .agro-interest {
    display: contents;
}

.listing-details__interest .agro-interest__toggle {
    grid-column: 2;
    justify-self: start;
}

.listing-details__interest .agro-interest__form {
    grid-column: 1 / -1;
    margin-top: 2px;
}

.listing-details dt {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--agro-muted-600);
    font-weight: 600;
}

.listing-details dd {
    margin: 0;
    font-weight: 400;
}

.single-listing__description {
    color: var(--agro-ink-700);
    font-size: 17px;
    font-weight: 400;
}

.empty-state {
    padding: 24px;
    background: var(--agro-white);
    border: 1px dashed var(--agro-line-200);
    border-radius: var(--agro-radius-card);
    color: var(--agro-muted-600);
    font-weight: 500;
}

.site-footer {
    color: rgba(255, 255, 255, 0.88);
    background: var(--agro-green-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
    gap: 34px;
    padding: 48px 0 34px;
}

.footer-brand img {
    width: 180px;
    margin-bottom: 16px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--agro-white);
    font-size: 16px;
    font-weight: 600;
}

.site-footer p,
.footer-list {
    margin: 0;
}

.footer-brand p {
    max-width: 310px;
}

.made-by {
    margin-top: 12px !important;
    color: var(--agro-harvest-400);
    font-weight: 600;
}

.footer-list {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.footer-list a:hover {
    color: var(--agro-harvest-400);
}

.footer-contact li {
    line-height: 1.35;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 400;
}

.cookie-bar {
    position: fixed;
    z-index: 80;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    width: min(560px, calc(100% - 40px));
    padding: 16px;
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-card);
    box-shadow: var(--agro-shadow-card);
}

.cookie-bar[hidden] {
    display: none;
}

.cookie-bar p {
    margin: 0;
    color: var(--agro-ink-700);
    font-size: 14px;
    font-weight: 400;
}

.cookie-bar__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.cookie-bar__actions a {
    color: var(--agro-green-800);
    font-size: 13px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 8px;
    margin-top: 26px;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
    background: var(--agro-white);
    border: 1px solid var(--agro-line-200);
    border-radius: var(--agro-radius-control);
    font-weight: 600;
}

.nav-links .current {
    background: var(--agro-green-800);
    color: var(--agro-white);
    border-color: var(--agro-green-800);
}

@media (max-width: 1020px) {
    .main-header {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .primary-navigation {
        order: 3;
        flex: 1 0 100%;
        overflow-x: auto;
    }

    .primary-menu {
        justify-content: flex-start;
        min-width: max-content;
    }

    .hero__inner {
        min-height: 0;
        padding-top: 56px;
        padding-bottom: 96px;
    }

    .search-panel {
        position: relative;
        bottom: auto;
        margin-top: 24px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 30px;
    }

    .category-grid,
    .listing-grid,
    .listing-grid--wide,
    .steps-grid,
    .footer-grid,
    .single-listing__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-listing__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .site-shell {
        width: min(100% - 28px, 1180px);
    }

    .utility-bar__inner,
    .header-actions,
    .section-heading--row,
    .spare-strip__inner,
    .seller-cta__inner,
    .footer-bottom,
    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .utility-bar__links {
        display: flex;
        justify-content: flex-end;
    }

    .utility-bar__inner {
        flex-direction: row;
        align-items: center;
    }

    .brand img {
        width: 160px;
    }

    .header-actions {
        flex-direction: row;
        width: 100%;
    }

    .header-actions .button {
        flex: 1 1 0;
        padding: 0 10px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero__copy p:not(.eyebrow) {
        font-size: 16px;
    }

    .search-panel__fields,
    .category-grid,
    .contact-grid,
    .listing-grid,
    .listing-grid--wide,
    .steps-grid,
    .footer-grid,
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--agro-line-200);
    }

    .trust-grid div:last-child {
        border-bottom: 0;
    }

    .seller-cta__inner {
        padding: 26px;
    }

    .listing-details > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .listing-details__interest .agro-interest__toggle,
    .listing-details__interest .agro-interest__form {
        grid-column: 1 / -1;
    }

    .gallery-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .cookie-bar {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }
}
