/* Organy wholesale shop filters. Product cards remain fully owned by Elessi. */
body.organy-custom-site.woocommerce-shop #main-content,
body.organy-custom-site.tax-product_cat #main-content,
body.organy-custom-site.tax-product_tag #main-content {
    padding-top: 0;
}

.organy-shop-tools {
    padding-top: 12px;
    padding-bottom: 22px;
}

.organy-shop-search {
    position: relative;
    width: min(470px, 100%);
}

.organy-shop-search input[type="search"] {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 52px 0 17px;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    background: #fff;
    color: #17221c;
    font-size: 14px;
    box-shadow: none;
}

.organy-shop-search input[type="search"]:focus {
    border-color: #6f9a7c;
    outline: 2px solid rgba(23, 104, 56, .12);
    outline-offset: 1px;
}

.organy-shop-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #50625a;
    cursor: pointer;
}

.organy-shop-search button svg {
    width: 19px;
    height: 19px;
}

.organy-shop-active-filters {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.organy-shop-active-filters > strong {
    margin-right: 3px;
    color: #35453d;
}

.organy-shop-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #9ab8a3;
    border-radius: 999px;
    background: #f7fbf8;
    color: #176838;
    font-weight: 600;
}

.organy-shop-clear {
    margin-left: 5px;
    color: #176838;
    font-weight: 700;
    text-decoration: none;
}

.organy-shop-sidebar {
    padding-right: 22px;
}

.organy-shop-filter-form {
    overflow: hidden;
    border: 1px solid #e1e7e3;
    border-radius: 9px;
    background: #fff;
}

.organy-shop-filter-head {
    min-height: 49px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 15px;
    border-bottom: 1px solid #e8edea;
}

.organy-shop-filter-head strong {
    color: #14221a;
    font-size: 14px;
}

.organy-shop-filter-head a {
    color: #176838;
    font-size: 10px;
    font-weight: 700;
}

.organy-shop-filter-group {
    margin: 0;
    border-bottom: 1px solid #edf0ee;
}

.organy-shop-filter-group summary {
    position: relative;
    min-height: 49px;
    display: flex;
    align-items: center;
    padding: 0 34px 0 15px;
    color: #14221a;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.organy-shop-filter-group summary::-webkit-details-marker {
    display: none;
}

.organy-shop-filter-group summary::after {
    content: "⌃";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #53645b;
    font-size: 13px;
}

.organy-shop-filter-group:not([open]) summary::after {
    content: "⌄";
}

.organy-shop-filter-options {
    padding: 0 15px 14px;
    display: grid;
    gap: 8px;
}

.organy-shop-filter-options label {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #58645e;
    font-size: 11px;
    line-height: 1.35;
    cursor: pointer;
}

.organy-shop-filter-options input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #176838;
}

.organy-shop-filter-options small {
    color: #8a948f;
    font-size: 10px;
}

.organy-shop-filter-submit {
    width: calc(100% - 30px);
    min-height: 42px;
    margin: 15px;
    border: 1px solid #176838;
    border-radius: 6px;
    background: #fff;
    color: #176838;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.organy-shop-filter-submit:hover,
.organy-shop-filter-submit:focus-visible {
    background: #176838;
    color: #fff;
}

.organy-shop-services {
    clear: both;
    padding-top: 25px;
    padding-bottom: 38px;
}

@media (max-width: 1024px) {
    .organy-shop-sidebar {
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .organy-shop-tools {
        padding-top: 8px;
        padding-bottom: 15px;
    }

    .organy-shop-search {
        width: 100%;
    }

    .organy-shop-active-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .organy-shop-active-filters > strong,
    .organy-shop-chip,
    .organy-shop-clear {
        flex: 0 0 auto;
    }

    .organy-shop-sidebar .nasa-sidebar-off-canvas {
        padding: 15px;
    }

    .organy-shop-filter-form {
        border-radius: 8px;
    }

    .organy-shop-services {
        padding-top: 20px;
        padding-bottom: 28px;
    }
}

/* Shop card typography: compact and shared by native archives and the embedded catalog. */
body.organy-custom-site.woocommerce-shop .product-item .info,
body.organy-custom-site.tax-product_cat .product-item .info,
body.organy-custom-site.tax-product_tag .product-item .info,
.organy-catalog-shortcode .product-item .info {
    padding-top: 8px;
    padding-bottom: 15px;
}

body.organy-custom-site.woocommerce-shop .product-item .info .name,
body.organy-custom-site.tax-product_cat .product-item .info .name,
body.organy-custom-site.tax-product_tag .product-item .info .name,
.organy-catalog-shortcode .product-item .info .name {
    padding: 5px 0 4px;
    color: #26332c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
}

body.organy-custom-site.woocommerce-shop .product-item .info .price,
body.organy-custom-site.tax-product_cat .product-item .info .price,
body.organy-custom-site.tax-product_tag .product-item .info .price,
.organy-catalog-shortcode .product-item .info .price {
    min-height: 0;
    margin: 0 0 5px;
    color: #34473b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    gap: 2px;
}

body.organy-custom-site.woocommerce-shop .product-item .info .price del,
body.organy-custom-site.tax-product_cat .product-item .info .price del,
body.organy-custom-site.tax-product_tag .product-item .info .price del,
.organy-catalog-shortcode .product-item .info .price del {
    font-size: 88%;
}

@media (max-width: 767px) {
    body.organy-custom-site.woocommerce-shop .product-item .info .name,
    body.organy-custom-site.tax-product_cat .product-item .info .name,
    body.organy-custom-site.tax-product_tag .product-item .info .name,
    .organy-catalog-shortcode .product-item .info .name {
        font-size: 12.5px;
    }

    body.organy-custom-site.woocommerce-shop .product-item .info .price,
    body.organy-custom-site.tax-product_cat .product-item .info .price,
    body.organy-custom-site.tax-product_tag .product-item .info .price,
    .organy-catalog-shortcode .product-item .info .price {
        font-size: 12.5px;
    }
}

/* Elessi Quick View: keep WooCommerce selects in the form, expose them as buttons. */
#nasa-quickview-sidebar form.variations_form.organy-enhanced-variations table.variations select.organy-native-variation-select,
#nasa-quickview-popup form.variations_form.organy-enhanced-variations table.variations select.organy-native-variation-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#nasa-quickview-sidebar .organy-single-variation-picker,
#nasa-quickview-popup .organy-single-variation-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 5px 0 7px;
}

#nasa-quickview-sidebar .organy-single-variation-option,
#nasa-quickview-popup .organy-single-variation-option {
    min-width: 54px;
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #d4ddd7;
    border-radius: 6px;
    background: #fff;
    color: #17231d;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

#nasa-quickview-sidebar .organy-single-variation-option:hover:not(:disabled),
#nasa-quickview-sidebar .organy-single-variation-option:focus-visible,
#nasa-quickview-popup .organy-single-variation-option:hover:not(:disabled),
#nasa-quickview-popup .organy-single-variation-option:focus-visible {
    border-color: #176a38;
    box-shadow: 0 0 0 2px rgba(23, 106, 56, .1);
    outline: 0;
}

#nasa-quickview-sidebar .organy-single-variation-option.is-selected,
#nasa-quickview-popup .organy-single-variation-option.is-selected {
    border-color: #176a38;
    background: #f1f8f3;
    color: #176a38;
    box-shadow: inset 0 0 0 1px #176a38;
}

#nasa-quickview-sidebar .organy-single-variation-option.is-disabled,
#nasa-quickview-popup .organy-single-variation-option.is-disabled {
    opacity: .38;
    cursor: not-allowed;
    text-decoration: line-through;
}

#nasa-quickview-sidebar table.variations th.label,
#nasa-quickview-popup table.variations th.label {
    padding-bottom: 5px !important;
    color: #4d5b53;
    font-size: 11px;
    font-weight: 800;
}

/* --------------------------------------------------------------------------
 * 6.1.7 archive cards: carry the Organy homepage card language into shop.
 * The native Elessi loop remains in place; only the archive-scoped card shell,
 * typography is restyled while Elessi keeps its native catalog actions.
 * -------------------------------------------------------------------------- */
.organy-shop-product-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--organy-product-line, #dfe7e1);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 16px rgba(19, 59, 37, .025);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.organy-shop-product-card:hover {
    border-color: #cad9cf;
    box-shadow: 0 10px 28px rgba(19, 59, 37, .07);
    transform: translateY(-1px);
}

.organy-shop-product-card .product-img-wrap {
    position: relative;
    flex: 0 0 245px;
    width: 100%;
    height: 245px;
    min-height: 245px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, #fbfcfb);
}

.organy-shop-product-card .product-img,
.organy-shop-product-card .product-img .main-img,
.organy-shop-product-card .product-img .product-img-inner,
.organy-shop-product-card .product-img > a {
    width: 100%;
    height: 100%;
}

.organy-shop-product-card .product-img > a,
.organy-shop-product-card .product-img .product-img-inner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.organy-shop-product-card .product-img img {
    max-width: calc(100% - 30px) !important;
    max-height: 218px !important;
    width: auto !important;
    height: auto !important;
    margin: auto !important;
    object-fit: contain;
}

.organy-shop-product-card .product-info-wrap.info,
.organy-shop-product-card .info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 15px 16px 16px !important;
    text-align: left;
}

.organy-shop-product-card .nasa-list-category {
    display: none !important;
}

.organy-shop-card__category {
    display: block;
    margin: 0 0 5px;
    color: #768078;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}

.organy-shop-product-card .info .name,
.organy-shop-product-card .woocommerce-loop-product__title {
    min-height: 38px;
    margin: 0 0 9px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #17231d !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    text-overflow: initial !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.organy-shop-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0 0 10px;
    color: #3f6e4e;
    font-size: 10.5px;
    line-height: 1.3;
}

.organy-shop-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.organy-shop-card__meta svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
}

.organy-shop-product-card .info > .price,
.organy-shop-product-card .product-info-wrap > .price {
    min-height: 23px;
    margin: 0 0 4px !important;
    color: var(--organy-product-green, #176a38) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

/* Mixed standard/quote variations are selected in Elessi Quick View.
 * Keep the catalog card concise; the underlying product pricing is unchanged. */
.organy-shop-product-card .organy-mixed-price-note {
    display: none !important;
}

.organy-shop-product-card .info > .price del,
.organy-shop-product-card .product-info-wrap > .price del {
    opacity: .5;
    font-size: 88%;
}

.organy-shop-product-card .product-des-wrap,
.organy-shop-product-card .star-rating,
.organy-shop-product-card .nasa-sku {
    display: none !important;
}


/* Quick View / Seçenekler drawer: one purchasing path, like the product page.
 * Buy Now remains available elsewhere in Elessi; it is hidden only in QV.
 */
#nasa-quickview-sidebar form.cart .nasa-buy-now,
#nasa-quickview-popup form.cart .nasa-buy-now {
    display: none !important;
}

#nasa-quickview-sidebar form.cart .woocommerce-variation-add-to-cart,
#nasa-quickview-popup form.cart .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: stretch;
    gap: 9px;
    flex-wrap: nowrap;
    width: 100%;
}

#nasa-quickview-sidebar form.cart .woocommerce-variation-add-to-cart .quantity,
#nasa-quickview-popup form.cart .woocommerce-variation-add-to-cart .quantity {
    float: none !important;
    flex: 0 0 62px;
    width: 62px !important;
    min-width: 62px !important;
    margin: 0 !important;
}

#nasa-quickview-sidebar form.cart .single_add_to_cart_button,
#nasa-quickview-popup form.cart .single_add_to_cart_button {
    float: none !important;
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0 !important;
    min-height: 44px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    background: var(--organy-product-green, #176a38) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

#nasa-quickview-sidebar form.cart .single_add_to_cart_button:hover,
#nasa-quickview-sidebar form.cart .single_add_to_cart_button:focus-visible,
#nasa-quickview-popup form.cart .single_add_to_cart_button:hover,
#nasa-quickview-popup form.cart .single_add_to_cart_button:focus-visible {
    background: var(--organy-product-green-dark, #0f572d) !important;
}

/* Quote-only variation selected in Elessi Quick View. The existing product
 * experience JS marks the native form with .organy-quote-selected; only the
 * normal cart controls are hidden while the quote-cart action stays visible. */
#nasa-quickview-sidebar form.variations_form.organy-quote-selected .woocommerce-variation-add-to-cart .quantity,
#nasa-quickview-sidebar form.variations_form.organy-quote-selected .woocommerce-variation-add-to-cart .single_add_to_cart_button,
#nasa-quickview-popup form.variations_form.organy-quote-selected .woocommerce-variation-add-to-cart .quantity,
#nasa-quickview-popup form.variations_form.organy-quote-selected .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    display: none !important;
}

#nasa-quickview-sidebar .organy-variable-quote-action,
#nasa-quickview-sidebar .organy-simple-quote-action,
#nasa-quickview-popup .organy-variable-quote-action,
#nasa-quickview-popup .organy-simple-quote-action {
    width: 100%;
    margin-top: 12px;
}

#nasa-quickview-sidebar .organy-variable-quote-action[hidden],
#nasa-quickview-popup .organy-variable-quote-action[hidden] {
    display: none !important;
}

#nasa-quickview-sidebar .organy-variable-quote-action .organy-quote-add-button,
#nasa-quickview-sidebar .organy-simple-quote-action .organy-quote-add-button,
#nasa-quickview-popup .organy-variable-quote-action .organy-quote-add-button,
#nasa-quickview-popup .organy-simple-quote-action .organy-quote-add-button {
    width: 100%;
    min-height: 44px;
    margin: 0;
}

@media (max-width: 1024px) {
    .organy-shop-product-card .product-img-wrap {
        flex-basis: 220px;
        height: 220px;
        min-height: 220px;
    }

    .organy-shop-product-card .product-img img {
        max-height: 195px !important;
    }
}

@media (max-width: 767px) {
    .organy-shop-product-card {
        border-radius: 10px;
    }

    .organy-shop-product-card .product-img-wrap {
        flex-basis: 190px;
        height: 190px;
        min-height: 190px;
    }

    .organy-shop-product-card .product-img img {
        max-height: 168px !important;
    }

    .organy-shop-product-card .product-info-wrap.info,
    .organy-shop-product-card .info {
        padding: 12px 12px 13px !important;
    }

    .organy-shop-product-card .info .name,
    .organy-shop-product-card .woocommerce-loop-product__title {
        min-height: 35px;
        font-size: 13px !important;
    }

    .organy-shop-card__meta {
        gap: 5px 8px;
        font-size: 10px;
    }

    .organy-shop-product-card .info > .price,
    .organy-shop-product-card .product-info-wrap > .price {
        font-size: 13px !important;
    }
}

/* Do not disturb Elessi's optional list-view geometry. The homepage-style
 * shell is intended for the normal grid; list mode keeps the parent layout. */
.products.list .organy-shop-product-card {
    height: auto;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.products.list .organy-shop-product-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.products.list .organy-shop-product-card .product-img-wrap {
    height: auto;
    min-height: 0;
    flex: none;
    background: transparent;
}

.products.list .organy-shop-product-card .product-img img {
    max-width: 100% !important;
    max-height: none !important;
}

.products.list .organy-shop-product-card .product-info-wrap.info,
.products.list .organy-shop-product-card .info {
    display: block;
}


/* --------------------------------------------------------------------------
 * Embedded all-products catalog shortcode.
 * Reuses the archive filter/card styles without changing the page template.
 * -------------------------------------------------------------------------- */
.organy-catalog-shortcode {
    width: 100%;
    margin: 24px 0 38px;
}

.organy-catalog-shortcode__tools-row,
.organy-catalog-shortcode__layout {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.organy-catalog-shortcode__tools-row .organy-shop-tools {
    padding-left: 0;
    padding-right: 0;
}

.organy-catalog-shortcode__layout {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.organy-catalog-shortcode__sidebar {
    padding-left: 0;
}

.organy-catalog-shortcode__products {
    min-width: 0;
    padding-right: 0;
}

.organy-catalog-shortcode__toolbar {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px;
}

.organy-catalog-shortcode__toolbar .woocommerce-result-count,
.organy-catalog-shortcode__toolbar .woocommerce-ordering {
    margin: 0;
}

.organy-catalog-shortcode__toolbar .woocommerce-ordering {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.organy-catalog-shortcode__toolbar .woocommerce-ordering .sort-text {
    margin: 0;
}

/*
 * Elessi hides WooCommerce's native select on desktop and replaces it with a
 * JS-enhanced .nasa-ordering control. The embedded shortcode is not a native
 * archive, so use the reliable native select here and suppress the orphaned
 * “...” replacement without affecting real shop/category archives.
 */
.organy-catalog-shortcode__toolbar .woocommerce-ordering select.orderby {
    display: block !important;
    position: static;
    visibility: visible;
    opacity: 1;
    width: auto;
    min-width: 210px;
    min-height: 40px;
    margin: 0;
    padding: 0 34px 0 12px;
    border: 1px solid #d8dfd8;
    border-radius: 6px;
    background-color: #fff;
    color: #222;
    line-height: 38px;
}

.organy-catalog-shortcode__toolbar .woocommerce-ordering .nasa-ordering {
    display: none !important;
}

body.nasa-rtl .organy-catalog-shortcode__toolbar .woocommerce-ordering select.orderby {
    padding-right: 12px;
    padding-left: 34px;
}

.organy-catalog-shortcode .nasa-content-page-products {
    width: 100%;
}

.organy-catalog-shortcode .products {
    margin-bottom: 0;
}

.organy-catalog-shortcode__pagination {
    clear: both;
    width: 100%;
    margin-top: 28px;
}

.organy-catalog-shortcode__pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.organy-catalog-shortcode__pagination ul.page-numbers > li {
    margin: 0;
}

.organy-catalog-shortcode__notice {
    margin: 20px 0;
}

@media (max-width: 1024px) {
    .organy-catalog-shortcode__sidebar {
        padding-right: 16px;
    }
}

@media (max-width: 767px) {
    .organy-catalog-shortcode {
        margin-top: 18px;
        margin-bottom: 28px;
    }

    .organy-catalog-shortcode__layout {
        display: block;
    }

    .organy-catalog-shortcode__sidebar,
    .organy-catalog-shortcode__products {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .organy-catalog-shortcode__sidebar {
        margin-bottom: 20px;
    }

    .organy-catalog-shortcode__sidebar .nasa-sidebar-off-canvas {
        padding: 0;
    }

    .organy-catalog-shortcode__toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .organy-catalog-shortcode__toolbar .woocommerce-ordering {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        white-space: normal;
    }

    .organy-catalog-shortcode__toolbar .woocommerce-ordering select.orderby {
        flex: 1 1 220px;
        width: 100%;
        min-width: 0;
    }
}
