/* Yonga Tarım ürün ve teklif kartları */
.yt-shop-filters {
    padding: 22px;
    background: #f8f4f0;
    border: 1px solid #eadfd5;
    border-radius: 14px;
}

.yt-filter-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
}

.yt-filter-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 10px 8px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.yt-catalog-toolbar,
.yt-quote-toolbar,
.yt-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.yt-list-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 15px;
    color: #352116;
    background: #fff;
    border: 1px solid #dfd2c7;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.yt-list-link:hover,
.yt-list-link--primary {
    color: #fff;
    background: #cb6000;
    border-color: #cb6000;
}

.yt-list-link--primary:hover {
    color: #fff;
    background: #a94f00;
    border-color: #a94f00;
}

.yt-inline-count,
.yt-nav-quote-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    color: #382009;
    background: #f7c35f;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.yt-inline-count.is-empty,
.yt-nav-quote-count.is-empty {
    display: none;
}

.js-quote-count.is-empty {
    display: none !important;
}

.yt-nav-quote-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

/* Mağaza kartları: her satır ve düğme aynı hizada kalır. */
ul.vt-products.yt-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    margin: 0 !important;
}

.yt-product-grid .yt-product-card {
    float: none;
    width: auto !important;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.yt-product-grid .yt-product-card .product-contents {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid #eadfd5;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(64, 35, 17, .07);
}

.yt-product-grid .yt-product-card .product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 210px;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid #f1e8e0;
}

.yt-product-grid .yt-product-card .product-image > a {
    width: 100%;
    height: 100%;
}

.yt-product-grid .yt-product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yt-product-grid .yt-product-card .product-caption {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
    text-align: left;
}

.yt-product-grid .yt-product-card .product-tags {
    min-height: 17px;
    overflow: hidden;
    white-space: nowrap;
}

.yt-product-grid .yt-product-card .product-title {
    display: -webkit-box;
    min-height: 48px;
    margin: 8px 0 14px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yt-product-grid .yt-product-card .price {
    margin-top: auto;
}

.yt-product-action {
    margin-top: 14px;
}

.yt-quote-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-height: 38px;
    padding: 8px 14px;
    color: #fff;
    background: #cb6000;
    border: 1px solid #cb6000;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: none;
    transition: .2s ease;
}

.yt-quote-add-btn:hover {
    color: #fff;
    background: #a94f00;
    border-color: #a94f00;
}

.yt-quote-add-btn:disabled {
    cursor: wait;
    opacity: .75;
}

.yt-quote-add-btn.is-added {
    background: #2d7d46;
    border-color: #2d7d46;
}

.yt-grid-empty {
    grid-column: 1 / -1;
    width: 100%;
    padding: 48px 24px;
    text-align: center;
    background: #f8f4f0;
    border: 1px dashed #d8c7b8;
    border-radius: 14px;
}

.yt-grid-empty p {
    margin-bottom: 0;
}

/* Teklif kataloğu */
.yt-quote-catalog {
    background: #f8f4f0;
}

.yt-quote-toolbar {
    margin-bottom: 42px;
    padding: 26px 28px;
    background: #fff;
    border: 1px solid #eadfd5;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgba(64, 35, 17, .06);
}

.yt-quote-toolbar h2 {
    margin: 3px 0 7px;
    font-size: clamp(27px, 3vw, 38px);
}

.yt-quote-toolbar p {
    max-width: 760px;
    margin: 0;
}

.yt-eyebrow,
.yt-section-heading span {
    color: #cb6000;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
}

.yt-product-section + .yt-product-section {
    margin-top: 50px;
}

.yt-section-heading {
    margin-bottom: 20px;
    padding-bottom: 13px;
    border-bottom: 1px solid #dfd2c7;
}

.yt-section-heading h3 {
    margin: 2px 0 0;
    font-size: 28px;
}

.yt-section-heading > strong {
    color: #72594a;
    font-size: 13px;
}

.yt-quote-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.yt-quote-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eadfd5;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(64, 35, 17, .07);
}

.yt-quote-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 190px;
    padding: 18px;
    background: #fff;
    border-bottom: 1px solid #f1e8e0;
}

.yt-quote-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.yt-quote-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.yt-quote-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 23px;
    color: #755a49;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.yt-quote-card__meta span {
    padding: 4px 7px;
    color: #9b4a04;
    background: #fff1e5;
    border-radius: 5px;
}

.yt-quote-card__meta strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yt-quote-card h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 12px 0 8px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yt-quote-card p {
    display: -webkit-box;
    min-height: 60px;
    margin-bottom: 17px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.yt-quote-card__action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.yt-quote-card__action label {
    width: 58px;
    margin: 0;
}

.yt-quote-card__action .form-control {
    width: 58px;
    height: 38px;
    padding: 6px 5px;
    text-align: center;
    border-radius: 8px;
}

.yt-quote-card__action .yt-quote-add-btn {
    flex: 1;
    min-width: 0;
}

.yt-quote-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 99999;
    max-width: min(360px, calc(100vw - 32px));
    padding: 13px 17px;
    color: #fff;
    background: #2d7d46;
    border-radius: 10px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(12px);
    transition: .2s ease;
}

.yt-quote-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.yt-quote-toast.is-error {
    background: #a93333;
}

@media (max-width: 1199px) {
    ul.vt-products.yt-product-grid,
    .yt-quote-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    ul.vt-products.yt-product-grid,
    .yt-quote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .yt-quote-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .yt-filter-actions .btn {
        min-height: 44px;
    }
}

@media (max-width: 575px) {
    ul.vt-products.yt-product-grid,
    .yt-quote-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .yt-catalog-toolbar,
    .yt-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .yt-list-link,
    .yt-quote-toolbar .yt-list-link {
        width: 100%;
    }

    .yt-shop-filters,
    .yt-quote-toolbar {
        padding: 18px;
    }

    .yt-product-grid .yt-product-card .product-image,
    .yt-quote-card__image {
        height: 220px;
    }
}
.yt-quote-update-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 38px;
    margin: 0;
    padding: 8px 14px !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap;
}