/* ZiraatFakultesi.com.tr - Tema 5 V2 iç sayfa uyumluluk katmanı */

.theme-subpage {
    min-height: 60vh;
    overflow: hidden;
    background: #f5f8f6;
    color: #294235;
}

.subpage-hero {
    position: relative;
    padding: 30px 0 32px;
    overflow: hidden;
    border-bottom: 1px solid #dce7df;
    background:
        radial-gradient(circle at 88% 12%, rgba(220, 173, 54, .2), transparent 30%),
        linear-gradient(135deg, #edf6f0 0%, #fffdf5 100%);
}

.subpage-hero::after {
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 310px;
    height: 310px;
    border: 52px solid rgba(39, 107, 73, .05);
    border-radius: 50%;
    content: "";
}

.subpage-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
}

.subpage-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(145deg, #26764e, #154d34);
    color: #fff;
    font-size: 25px;
    box-shadow: 0 13px 28px rgba(20, 78, 52, .22);
}

.subpage-kicker {
    display: block;
    margin-bottom: 5px;
    color: #2b7651;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.subpage-hero h1 {
    margin: 0;
    color: #123624;
    font-size: clamp(27px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.025em;
}

.subpage-hero p {
    max-width: 780px;
    margin: 7px 0 0;
    color: #61766a;
    font-size: 14px;
    line-height: 1.65;
}

.theme-subpage #breadcrumb.section {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #e1eae4;
    background: rgba(255, 255, 255, .92);
}

.theme-subpage #breadcrumb .container,
.theme-subpage #breadcrumb .row,
.theme-subpage #breadcrumb [class*="col-"] {
    min-height: 0;
}

.theme-subpage #breadcrumb .breadcrumb-tree {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 13px 0;
    overflow-x: auto;
    list-style: none;
    color: #6b7d72;
    font-size: 12px;
    white-space: nowrap;
    scrollbar-width: thin;
}

.theme-subpage #breadcrumb .breadcrumb-tree li,
.theme-subpage #breadcrumb .breadcrumb-tree a {
    display: inline-flex;
    align-items: center;
    float: none;
    color: #366b4d;
    font-weight: 700;
}

.theme-subpage #breadcrumb .breadcrumb-tree li + li::before {
    margin-right: 8px;
    color: #a8b7ae;
    content: "\f105";
    font-family: FontAwesome;
}

.theme-subpage > .section {
    margin: 0;
    padding: 34px 0 68px;
}

.theme-subpage .section + .section {
    padding-top: 0;
}

.theme-subpage .aside,
.theme-subpage #store,
.theme-subpage .product-details,
.theme-subpage #product-tab,
.theme-subpage #product-guide-tab,
.theme-subpage .panel,
.theme-subpage .section-title {
    border: 1px solid #dce7df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(13, 48, 33, .07);
}

.theme-subpage #aside {
    margin-bottom: 24px;
}

.theme-subpage .aside {
    margin: 0 0 18px;
    padding: 18px;
}

.theme-subpage .aside-title {
    margin: 0 0 14px;
    padding: 0 0 11px;
    border-bottom: 1px solid #e6eee8;
    color: #183d2b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.theme-subpage .checkbox-filter .input-checkbox {
    margin: 0;
    padding: 7px 0;
    border-bottom: 1px solid #edf2ee;
}

.theme-subpage .checkbox-filter .input-checkbox:last-child {
    border-bottom: 0;
}

.theme-subpage .checkbox-filter label {
    display: block;
    margin: 0;
    color: #4b6255;
    font-weight: 600;
}

.theme-subpage .checkbox-filter input {
    display: none;
}

.theme-subpage .checkbox-filter a {
    color: #276b49;
}

.theme-subpage .product-widget {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf2ee;
}

.theme-subpage .product-widget:last-child {
    border-bottom: 0;
}

.theme-subpage .product-widget .product-img {
    position: static;
    width: 62px;
    height: 62px;
    padding: 4px;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f5f1;
}

.theme-subpage .product-widget .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theme-subpage .product-widget .product-body {
    min-width: 0;
    padding: 0;
}

.theme-subpage .product-widget .product-name,
.theme-subpage .product-widget .product-category {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.theme-subpage .product-widget .product-price {
    display: none;
}

.theme-subpage #store {
    padding: 24px;
}

.theme-subpage #store > .row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.theme-subpage #store > .row > h1,
.theme-subpage #store > .row > h2,
.theme-subpage #store > .row > h3,
.theme-subpage #store > .row > hr,
.theme-subpage #store > .row > br {
    grid-column: 1 / -1;
}

.theme-subpage #store > .row > [class*="col-"] {
    width: auto;
    padding: 0;
    float: none;
}

.theme-subpage .product {
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dce7df;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(13, 48, 33, .06);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.theme-subpage .product:hover {
    border-color: #b8d0c0;
    box-shadow: 0 15px 32px rgba(13, 48, 33, .12);
    transform: translateY(-3px);
}

.theme-subpage .product .product-img {
    height: 205px;
    padding: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #f0f6f2, #fffaf0);
}

.theme-subpage .product .product-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.theme-subpage .product .product-label {
    top: 12px;
    right: 12px;
}

.theme-subpage .product .product-label > span {
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.theme-subpage .product .product-body {
    min-height: 118px;
    padding: 18px;
}

.theme-subpage .product .product-category {
    margin: 0 0 7px;
    color: #708277;
    font-size: 11px;
    line-height: 1.45;
}

.theme-subpage .product .product-name {
    margin: 0;
    color: #183d2b;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.theme-subpage .product .product-name a {
    color: inherit;
}

.theme-subpage .product .add-to-cart {
    position: static;
    padding: 0 18px 18px;
    opacity: 1;
    transform: none;
}

.theme-subpage .product .add-to-cart-btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: 11px;
    background: #236d49;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.theme-subpage .product .add-to-cart-btn a,
.theme-subpage .product .add-to-cart-btn .fa {
    color: #fff;
}

.theme-subpage .store-filter {
    margin: 0 0 20px;
    padding: 12px 15px;
    border: 1px solid #e1eae4;
    border-radius: 12px;
    background: #f7faf8;
    color: #596f62;
}

.theme-subpage #store > .store-filter:last-of-type {
    margin: 22px 0 0;
}

.theme-subpage .store-qty {
    display: block;
    float: none;
    font-size: 12px;
    line-height: 1.6;
}

.theme-subpage .store-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.theme-subpage .store-pagination li,
.theme-subpage .store-pagination em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 37px;
    height: 37px;
    margin: 0;
    border: 1px solid #d7e4dc;
    border-radius: 10px;
    background: #fff;
    color: #276b49;
    font-style: normal;
    font-weight: 800;
}

.theme-subpage .store-pagination em,
.theme-subpage .store-pagination > li {
    border-color: #236d49;
    background: #236d49;
    color: #fff;
}

.theme-subpage #product-main-img,
.theme-subpage #product-imgs {
    overflow: hidden;
    border: 1px solid #dce7df;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(13, 48, 33, .07);
}

.theme-subpage #product-main-img .product-preview,
.theme-subpage #product-imgs .product-preview {
    padding: 14px;
    background: linear-gradient(145deg, #f1f6f3, #fffaf1);
}

/* Galeri JavaScript'i gecikse bile büyük görsellerin alt alta dağılmasını
   önler. Slick hazır olduğunda kendi slayt düzeni otomatik olarak devralır. */
.theme-subpage #product-main-img:not(.slick-initialized) .product-preview,
.theme-subpage #product-imgs:not(.slick-initialized) .product-preview {
    display: none;
}

.theme-subpage #product-main-img:not(.slick-initialized) .product-preview:first-child,
.theme-subpage #product-imgs:not(.slick-initialized) .product-preview:first-child {
    display: block;
}

.theme-subpage #product-main-img img,
.theme-subpage #product-imgs img {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: contain;
    border-radius: 13px;
}

.theme-subpage #product-imgs img {
    height: 100px;
}

/* Legacy detail pages often print the same record four times. Keep the
   meaningful lead image and remove the duplicate thumbnail rail. */
.theme-subpage.page-legacy-detail .col-md-5.col-md-push-2 {
    left: 0;
    width: 55%;
}

.theme-subpage.page-legacy-detail .col-md-2.col-md-pull-5 {
    display: none;
}

.theme-subpage.page-legacy-detail .col-md-5.col-md-push-2 ~ .col-md-5 {
    width: 45%;
}

.theme-subpage.page-legacy-detail #product-main-img .product-preview {
    display: none;
}

.theme-subpage.page-legacy-detail #product-main-img .product-preview:first-child {
    display: block;
}

/* The weed stage page has four genuinely different images. Make them a
   native touch/swipe gallery instead of hiding three useful stages. */
.theme-subpage.page-multi-stage-gallery #product-main-img {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.theme-subpage.page-multi-stage-gallery #product-main-img .product-preview,
.theme-subpage.page-multi-stage-gallery #product-main-img .product-preview:first-child {
    display: block;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.theme-subpage .bku-detail-row {
    display: flex;
    align-items: stretch;
}

.theme-subpage .bku-detail-media-col,
.theme-subpage .bku-detail-info-col {
    display: flex;
}

.theme-subpage .bku-detail-image-card {
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid #dce7df;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(13, 48, 33, .07);
}

.theme-subpage .bku-detail-image-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    padding: 28px;
    background: linear-gradient(145deg, #edf5ef, #fffaf0);
}

.theme-subpage .bku-detail-image-frame img {
    display: block;
    width: 100%;
    height: 430px;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
}

.theme-subpage .bku-image-state {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 54, 36, .88);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.theme-subpage .bku-detail-image-card figcaption {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid #e4ece6;
    color: #64776b;
    font-size: 12px;
    font-weight: 700;
}

.theme-subpage .bku-detail-image-card figcaption .fa {
    color: #2d8057;
}

.theme-subpage .product-details {
    min-height: 100%;
    padding: 25px;
}

.theme-subpage .product-details .product-name {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e4ece6;
    color: #163b29;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.theme-subpage .product-details p {
    margin: 0;
    padding: 10px 0;
    border-bottom: 1px solid #edf2ee;
    color: #455e51;
    font-size: 13px;
    line-height: 1.65;
}

.theme-subpage .product-details a {
    color: #247148;
    font-weight: 700;
}

.theme-subpage .product-details .product-price {
    margin: 18px 0 0;
    color: #667d70;
    font-size: 13px;
}

.theme-subpage .panel,
.theme-subpage #product-tab,
.theme-subpage #product-guide-tab,
.theme-subpage .section-title {
    margin-top: 24px;
    overflow: hidden;
}

.theme-subpage .panel-heading,
.theme-subpage .section-title,
.theme-subpage #product-tab > .title,
.theme-subpage #product-guide-tab > .title {
    padding: 17px 20px;
    border: 0;
    border-bottom: 1px solid #e1eae4;
    background: #edf5f0;
    color: #173d2a;
}

.theme-subpage .panel-body,
.theme-subpage .tab-content {
    padding: 20px;
}

.theme-subpage .tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 13px 18px;
    border-bottom: 1px solid #e1eae4;
    list-style: none;
}

.theme-subpage .tab-nav li {
    float: none;
    margin: 0;
}

.theme-subpage .tab-nav li a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #d7e4dc;
    border-radius: 10px;
    background: #fff;
    color: #276b49;
    font-size: 12px;
    font-weight: 800;
}

.theme-subpage .tab-nav li.active a {
    border-color: #236d49;
    background: #236d49;
    color: #fff;
}

.theme-subpage table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #dce7df;
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.theme-subpage table thead,
.theme-subpage table tbody {
    width: 100%;
}

.theme-subpage table th,
.theme-subpage table td {
    min-width: 145px;
    padding: 12px 13px !important;
    border-color: #e2ebe5 !important;
    color: #3c5748;
    font-size: 12px;
    line-height: 1.5;
    vertical-align: top !important;
}

.theme-subpage table thead th {
    background: #eaf3ed;
    color: #183d2b;
    font-weight: 800;
}

.theme-subpage .products-slick {
    margin: 0 -8px;
}

.theme-subpage .products-slick .product {
    margin: 0 8px;
}

.theme-subpage h2,
.theme-subpage h3,
.theme-subpage h4 {
    color: #183d2b;
}

.theme-subpage a:focus-visible,
.theme-subpage button:focus-visible {
    outline: 3px solid rgba(221, 177, 59, .65);
    outline-offset: 3px;
}

.page-photo-diagnosis .diagnosis-section {
    padding: 42px 0 72px;
}

.page-photo-diagnosis .diagnosis-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 24px;
    align-items: stretch;
}

.page-photo-diagnosis .diagnosis-card,
.page-photo-diagnosis .diagnosis-tips {
    border: 1px solid #dce7df;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(13, 48, 33, .08);
}

.page-photo-diagnosis .diagnosis-card {
    padding: 34px;
}

.page-photo-diagnosis .diagnosis-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: #e8f3ec;
    color: #236d49;
    font-size: 25px;
}

.page-photo-diagnosis .diagnosis-card h2,
.page-photo-diagnosis .diagnosis-tips h2 {
    margin: 0 0 10px;
    color: #173d2b;
    font-size: 25px;
}

.page-photo-diagnosis .diagnosis-card > p {
    margin: 0 0 24px;
    color: #5a7164;
}

.page-photo-diagnosis .diagnosis-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 28px;
    border: 2px dashed #9fc4ad;
    border-radius: 18px;
    background: #f5faf7;
    color: #214a35;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.page-photo-diagnosis .diagnosis-file:hover {
    border-color: #236d49;
    background: #edf7f1;
    transform: translateY(-2px);
}

.page-photo-diagnosis .diagnosis-file > .fa {
    margin-bottom: 12px;
    color: #2c8057;
    font-size: 34px;
}

.page-photo-diagnosis .diagnosis-file strong {
    font-size: 17px;
}

.page-photo-diagnosis .diagnosis-file span {
    margin: 6px 0 16px;
    color: #698073;
    font-size: 12px;
}

.page-photo-diagnosis .diagnosis-file input {
    max-width: 100%;
}

.page-photo-diagnosis .diagnosis-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    border: 0;
    border-radius: 14px;
    background: #236d49;
    color: #fff;
    font-weight: 800;
    transition: background .2s ease, transform .2s ease;
}

.page-photo-diagnosis .diagnosis-submit:hover {
    background: #174f34;
    transform: translateY(-1px);
}

.page-photo-diagnosis .diagnosis-submit .fa {
    margin-right: 9px;
}

.page-photo-diagnosis .diagnosis-tips {
    padding: 32px;
    background: linear-gradient(145deg, #173d2b, #255f42);
    color: #fff;
}

.page-photo-diagnosis .diagnosis-tips .subpage-kicker {
    color: #f0c968;
}

.page-photo-diagnosis .diagnosis-tips h2 {
    color: #fff;
}

.page-photo-diagnosis .diagnosis-tips ul {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.page-photo-diagnosis .diagnosis-tips li {
    display: flex;
    gap: 11px;
    margin: 0 0 16px;
    color: #e5f0e9;
    line-height: 1.55;
}

.page-photo-diagnosis .diagnosis-tips li .fa {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding-top: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #f0c968;
    text-align: center;
}

.page-photo-diagnosis .diagnosis-note {
    margin: 28px 0 0;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .08);
    color: #e5f0e9;
    font-size: 12px;
    line-height: 1.6;
}

.page-photo-diagnosis .diagnosis-note .fa {
    margin-right: 6px;
    color: #f0c968;
}

@media (max-width: 991px) {
    .theme-subpage > .section {
        padding: 26px 0 54px;
    }

    .theme-subpage #aside,
    .theme-subpage #store {
        width: 100%;
        float: none;
    }

    .theme-subpage #store > .row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-subpage [class*="col-md-push-"],
    .theme-subpage [class*="col-md-pull-"] {
        left: auto;
        right: auto;
    }

    .theme-subpage #product-imgs {
        display: none;
    }

    .theme-subpage #product-main-img,
    .theme-subpage .product-details {
        margin-bottom: 20px;
    }

    .theme-subpage.page-legacy-detail .col-md-5.col-md-push-2,
    .theme-subpage.page-legacy-detail .col-md-5.col-md-push-2 ~ .col-md-5 {
        left: 0;
        width: 100%;
    }

    .theme-subpage .bku-detail-row {
        display: block;
    }

    .theme-subpage .bku-detail-media-col,
    .theme-subpage .bku-detail-info-col {
        display: block;
    }

    .theme-subpage .bku-detail-image-card {
        margin-bottom: 20px;
    }

    .page-photo-diagnosis .diagnosis-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 639px) {
    .subpage-hero {
        padding: 22px 0 24px;
    }

    .subpage-hero-inner {
        align-items: flex-start;
        gap: 13px;
    }

    .subpage-hero-icon {
        flex-basis: 47px;
        width: 47px;
        height: 47px;
        border-radius: 14px;
        font-size: 20px;
    }

    .subpage-hero h1 {
        font-size: 26px;
    }

    .subpage-hero p {
        font-size: 12px;
        line-height: 1.55;
    }

    .theme-subpage #store {
        padding: 16px;
        border-radius: 15px;
    }

    .theme-subpage #store > .row {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .theme-subpage .product .product-img {
        height: 220px;
    }

    .theme-subpage #product-main-img img {
        height: 300px;
    }

    .theme-subpage .bku-detail-image-frame {
        min-height: 330px;
        padding: 18px;
    }

    .theme-subpage .bku-detail-image-frame img {
        height: 300px;
    }

    .page-photo-diagnosis .diagnosis-section {
        padding: 24px 0 56px;
    }

    .page-photo-diagnosis .diagnosis-card,
    .page-photo-diagnosis .diagnosis-tips {
        padding: 22px;
        border-radius: 18px;
    }

    .page-photo-diagnosis .diagnosis-file {
        min-height: 200px;
        padding: 22px 16px;
    }

    .theme-subpage .bku-image-state {
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        font-size: 10px;
    }

    .theme-subpage .product-details,
    .theme-subpage .panel-body,
    .theme-subpage .tab-content {
        padding: 17px;
    }

    .theme-subpage .product-details .product-name {
        font-size: 21px;
    }

    .theme-subpage .tab-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .theme-subpage .tab-nav li {
        flex: 0 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-subpage .product {
        transition: none;
    }
}

/* Site geneli arama sayfasi */
.page-search-results .search-hero {
    background:
        radial-gradient(circle at 82% 14%, rgba(242, 204, 104, 0.19), transparent 26%),
        linear-gradient(135deg, #103a29, #1d6b48);
}

.zf-search-section {
    padding: 34px 0 76px;
}

.zf-search-page-form {
    position: relative;
    z-index: 30;
    max-width: 920px;
    margin: -66px auto 30px;
    padding: 22px;
    border: 1px solid #d9e5dc;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(14, 48, 32, 0.16);
}

.zf-search-page-form > label {
    display: block;
    margin: 0 0 9px;
    color: #173f2c;
    font-size: 14px;
    font-weight: 800;
}

.zf-search-page-form .zf-search-field input[type="search"] {
    min-height: 58px;
    padding-right: 18px;
    padding-left: 18px;
    font-size: 16px;
}

.zf-search-page-form .zf-search-field button {
    min-width: 104px;
    min-height: 58px;
    font-size: 14px;
}

.zf-search-page-form > small {
    display: block;
    margin-top: 9px;
    color: #748178;
    font-size: 12px;
}

.zf-search-welcome,
.zf-search-message {
    max-width: 820px;
    margin: 34px auto 0;
    padding: 34px;
    border: 1px solid #dce7df;
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.zf-search-welcome > .fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 15px;
    border-radius: 20px;
    background: var(--agri-green-100);
    color: var(--agri-green-700);
    font-size: 28px;
}

.zf-search-welcome h2 {
    margin: 0 0 9px;
    color: var(--agri-green-950);
    font-size: clamp(22px, 3vw, 30px);
}

.zf-search-welcome p {
    max-width: 660px;
    margin: 0 auto;
    color: var(--muted);
}

.zf-search-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: left;
}

.zf-search-message .fa {
    color: var(--agri-green-700);
    font-size: 22px;
}

.zf-search-message.is-warning {
    border-color: #ead9a9;
    background: #fffaf0;
}

.zf-search-message.is-warning .fa {
    color: #ae7b15;
}

.zf-search-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 4px 0 22px;
    padding: 0 2px;
}

.zf-search-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #718077;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.zf-search-summary h2 {
    margin: 0;
    color: var(--agri-green-950);
    font-size: clamp(24px, 4vw, 38px);
}

.zf-search-summary > strong {
    flex: 0 0 auto;
    padding: 8px 13px;
    border-radius: 999px;
    background: var(--agri-wheat-soft);
    color: #785609;
    font-size: 13px;
}

.zf-search-filters {
    display: flex;
    gap: 9px;
    margin-bottom: 28px;
    padding: 3px 2px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.zf-search-filters a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #d7e2da;
    border-radius: 999px;
    background: #fff;
    color: #375247;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(18, 53, 36, 0.04);
}

.zf-search-filters a:hover,
.zf-search-filters a:focus,
.zf-search-filters a.is-active {
    border-color: var(--agri-green-700);
    background: var(--agri-green-700);
    color: #fff;
}

.zf-search-filters b {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf5f0;
    color: var(--agri-green-800);
    font-size: 10px;
    text-align: center;
}

.zf-search-filters a.is-active b,
.zf-search-filters a:hover b,
.zf-search-filters a:focus b {
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
}

.zf-search-groups {
    display: grid;
    gap: 22px;
}

.zf-result-group {
    overflow: hidden;
    border: 1px solid #dce7df;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.zf-result-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid #e6eee8;
    background: linear-gradient(135deg, #f3faf5, #fffdf6);
}

.zf-result-group-head > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.zf-result-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--agri-green-700);
    color: #fff;
    font-size: 18px;
}

.zf-result-group-head h2 {
    margin: 0;
    color: var(--agri-green-950);
    font-size: 20px;
}

.zf-result-group-head small {
    display: block;
    margin-top: 2px;
    color: #6d7d73;
    font-size: 11px;
}

.zf-show-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--agri-green-800);
    font-size: 12px;
    font-weight: 800;
}

.zf-result-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zf-result-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 12px;
    min-height: 112px;
    padding: 16px 17px;
    border-bottom: 1px solid #edf2ee;
}

.zf-result-card:nth-child(odd) {
    border-right: 1px solid #edf2ee;
}

.zf-result-card:hover {
    background: #fbfdfb;
}

.zf-result-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--agri-green-100);
    color: var(--agri-green-700);
    font-size: 16px;
}

.zf-result-type {
    display: block;
    margin-bottom: 2px;
    color: #718077;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.zf-result-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.zf-result-card h3 a {
    color: var(--agri-green-950);
}

.zf-result-card p {
    margin: 3px 0 0;
    color: #6b7a71;
    font-size: 12px;
    line-height: 1.4;
}

.zf-result-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: #f0f6f2;
    color: var(--agri-green-700);
}

.zf-result-card:hover .zf-result-link {
    background: var(--agri-green-700);
    color: #fff;
}

.zf-search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.zf-search-pagination > div {
    display: flex;
    gap: 6px;
}

.zf-search-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 7px 11px;
    border: 1px solid #d7e2da;
    border-radius: 11px;
    background: #fff;
    color: var(--agri-green-800);
    font-size: 12px;
    font-weight: 800;
}

.zf-search-pagination a:hover,
.zf-search-pagination a:focus,
.zf-search-pagination a.is-current {
    border-color: var(--agri-green-700);
    background: var(--agri-green-700);
    color: #fff;
}

@media (max-width: 767px) {
    .zf-search-section {
        padding: 24px 0 66px;
    }

    .zf-search-page-form {
        margin-top: -48px;
        padding: 16px;
        border-radius: 17px;
    }

    .zf-search-page-form .zf-search-field input[type="search"] {
        min-height: 52px;
        font-size: 14px;
    }

    .zf-search-page-form .zf-search-field button {
        min-width: 58px;
        min-height: 52px;
        padding-right: 13px;
        padding-left: 13px;
    }

    .zf-search-page-form .zf-search-field button span {
        display: none;
    }

    .zf-search-summary {
        align-items: flex-start;
        margin-top: 0;
    }

    .zf-result-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .zf-result-card:nth-child(odd) {
        border-right: 0;
    }

    .zf-result-group-head {
        align-items: flex-start;
        padding: 15px;
    }

    .zf-show-all {
        max-width: 94px;
        justify-content: flex-end;
        text-align: right;
    }

    .zf-search-pagination {
        flex-wrap: wrap;
        gap: 9px;
    }

    .zf-page-nav {
        order: 2;
    }

    .zf-search-pagination > div {
        order: 1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 440px) {
    .zf-search-summary {
        display: block;
    }

    .zf-search-summary > strong {
        display: inline-block;
        margin-top: 9px;
    }

    .zf-result-card {
        grid-template-columns: 36px minmax(0, 1fr) 28px;
        gap: 9px;
        padding: 14px 12px;
    }

    .zf-result-card-icon {
        width: 36px;
        height: 36px;
    }
}
