/* Hide the long WooCommerce title block shown in the current product template. */
.single-product .summary > .product_title,
.single-product .summary > h1.product_title,
.single-product .summary .product_title.entry-title,
.single-product .summary h1.elementor-heading-title,
.single-product .summary .elementor-widget-woocommerce-product-title,
.single-product .product-summary .product_title,
.single-product .product-summary h1.entry-title,
.single-product .tx-product-title,
.single-product .tx-kicker,
.single-product .tx-cta,
.single-product .tinda-layout-hidden {
    display: none !important;
}

/* Hide only the feature section directly following the four-item trust strip. */
.single-product .tinda-sync > .tx-trust + .tx-section:not(.tx-soft) {
    display: none !important;
}

/* Remove the separate Product Details block; keep the editable specs table above it. */
.single-product .tinda-sync > .tx-section.tx-soft {
    display: none !important;
}

/* Editable product specification table, inserted below the trust strip. */
.single-product .tinda-specs {
    padding: 56px 24px;
    background: #fff;
}

.single-product .tinda-specs-inner {
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(31, 44, 68, 0.08);
}

.single-product .tinda-specs-table {
    width: 100%;
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
}

.single-product .tinda-specs-row {
    display: grid;
    grid-template-columns: minmax(180px, 22%) 1fr;
    min-height: 76px;
    border-bottom: 1px solid #dfe5ee;
}

.single-product .tinda-specs-row:last-child {
    border-bottom: 0;
}

.single-product .tinda-specs-label,
.single-product .tinda-specs-value {
    display: flex;
    align-items: center;
    padding: 20px 28px;
    color: #171c26;
    font-size: 17px;
    line-height: 1.5;
}

.single-product .tinda-specs-label {
    background: #f0f3f9;
    border-right: 1px solid #dfe5ee;
    font-weight: 700;
}

.single-product .tinda-specs-value {
    background: #fff;
    font-weight: 400;
}

/* Keep the gallery compact and square without cropping the product image. */
.single-product div.product .woocommerce-product-gallery,
.single-product div.product .woocommerce-product-gallery__wrapper,
.single-product div.product .woocommerce-product-gallery__image {
    width: 100%;
}

.single-product div.product .woocommerce-product-gallery__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Keep the quote area visible, but remove excess vertical space. */
.single-product .summary .elementor-form .elementor-field-group {
    margin-bottom: 12px;
}

.single-product .summary .elementor-form .elementor-field-textual {
    min-height: 42px;
}

.single-product .summary .elementor-form textarea.elementor-field-textual {
    min-height: 92px;
}

.single-product .summary .elementor-form .elementor-button {
    min-height: 44px;
}

.single-product .summary .elementor-widget-form,
.single-product .summary .elementor-widget-wpforms,
.single-product .summary .elementor-widget-shortcode {
    margin-bottom: 12px;
}

/* Product archive: use the existing WooCommerce categories and layered-nav data. */
body.woocommerce-shop {
    --tinda-shop-pink: #ee2d7a;
    --tinda-shop-blue: #2670ff;
    --tinda-shop-blue-soft: #e6ecf7;
    --tinda-shop-peach: #fdefe1;
    --tinda-shop-yellow: #ffc343;
    --tinda-shop-ink: #232323;
    --tinda-shop-muted: #69758f;
    --tinda-shop-line: #e6ecf7;
    --tinda-shop-soft: #fdefe1;
    background: #fff;
}

body.woocommerce-shop .container:has(#secondary-left):has(#primary) {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 36px;
    width: min(1320px, calc(100% - 48px));
    max-width: none;
    margin: 0 auto;
    align-items: start;
}

/* The theme outputs the main section before the left sidebar; set the visual order explicitly. */
body.woocommerce-shop #secondary-left {
    grid-column: 1;
    grid-row: 1;
}

body.woocommerce-shop #primary {
    grid-column: 2;
    grid-row: 1;
}

body.woocommerce-shop #secondary-left {
    width: auto !important;
    margin: 0 !important;
    padding: 0;
    position: sticky;
    top: 28px;
}

body.woocommerce-shop #primary {
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0;
}

body.woocommerce-shop .woocommerce-products-header {
    display: none;
}

body.woocommerce-shop .tinda-shop-toolbar {
    margin: 0 0 28px;
    padding: 28px 30px 24px;
    border: 1px solid var(--tinda-shop-line);
    border-radius: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--tinda-shop-soft) 100%);
    box-shadow: inset 0 3px 0 var(--tinda-shop-pink);
}

body.woocommerce-shop .tinda-shop-toolbar-top {
    display: flex;
    gap: 24px;
    justify-content: space-between;
    align-items: center;
}

body.woocommerce-shop .tinda-shop-eyebrow {
    margin: 0 0 8px;
    color: var(--tinda-shop-pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.woocommerce-shop .tinda-shop-toolbar h1 {
    margin: 0;
    color: var(--tinda-shop-ink);
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
}

body.woocommerce-shop .tinda-shop-toolbar p {
    max-width: 560px;
    margin: 10px 0 0;
    color: var(--tinda-shop-muted);
    line-height: 1.6;
}

body.woocommerce-shop .tinda-shop-search {
    display: flex;
    flex: 0 1 390px;
    min-width: 270px;
    height: 68px;
    align-items: stretch;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #f8f8f8;
}

body.woocommerce-shop .tinda-shop-search input {
    min-width: 0;
    flex: 1;
    height: 68px;
    border: 0;
    padding: 20px 14px 20px 34px;
    color: var(--tinda-shop-ink);
    background: transparent;
    font-size: 18px;
    line-height: 1.2;
    outline: 0;
}

body.woocommerce-shop .tinda-shop-search input::placeholder {
    color: #272727;
    opacity: 1;
}

body.woocommerce-shop .tinda-shop-search button {
    display: inline-flex;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    appearance: none;
    background: transparent;
    color: #171717;
    cursor: pointer;
}

body.woocommerce-shop .tinda-shop-search button::before,
body.woocommerce-shop .tinda-shop-search button::after {
    display: none !important;
    content: none !important;
}

body.woocommerce-shop .tinda-shop-search button .tinda-shop-search-icon {
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
}

body.woocommerce-shop .tinda-shop-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

body.woocommerce-shop .tinda-shop-category-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid var(--tinda-shop-line);
    border-radius: 999px;
    color: var(--tinda-shop-ink);
    background: #fff;
    font-size: 13px;
    text-decoration: none;
}

body.woocommerce-shop .tinda-shop-category-links a:hover,
body.woocommerce-shop .tinda-shop-category-links a.is-active {
    border-color: var(--tinda-shop-pink);
    background: var(--tinda-shop-pink);
    color: #fff;
}

body.woocommerce-shop .tinda-shop-category-links a:focus-visible,
body.woocommerce-shop #secondary-left .widget_product_categories a:focus-visible {
    outline: 2px solid var(--tinda-shop-blue);
    outline-offset: 2px;
}

body.woocommerce-shop #secondary-left .widget {
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid var(--tinda-shop-line);
    border-radius: 8px;
    background: #fff;
}

body.woocommerce-shop #secondary-left .widgettitle {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--tinda-shop-pink);
    color: var(--tinda-shop-ink);
    font-size: 18px;
    line-height: 1.2;
}

body.woocommerce-shop #secondary-left .widget_product_categories .product-categories,
body.woocommerce-shop #secondary-left .widget_layered_nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-shop #secondary-left .widget_product_categories li,
body.woocommerce-shop #secondary-left .widget_layered_nav li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--tinda-shop-blue-soft);
}

body.woocommerce-shop #secondary-left .widget_product_categories a,
body.woocommerce-shop #secondary-left .widget_layered_nav a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    color: var(--tinda-shop-ink);
    font-size: 14px;
    text-decoration: none;
}

body.woocommerce-shop #secondary-left .widget_product_categories a:hover,
body.woocommerce-shop #secondary-left .widget_layered_nav a:hover {
    color: var(--tinda-shop-blue);
}

body.woocommerce-shop #secondary-left .widget_product_categories a.is-active {
    color: var(--tinda-shop-pink);
    font-weight: 700;
}

body.woocommerce-shop #primary.tinda-shop-filter-loading {
    pointer-events: none;
}

body.woocommerce-shop #primary.tinda-shop-filter-loading ul.products {
    opacity: .48;
    transition: opacity .15s ease;
}

body.woocommerce-shop #secondary-left .widget_price_filter,
body.woocommerce-shop #secondary-left .widget_products,
body.woocommerce-shop #secondary-left .widget_recent_reviews,
body.woocommerce-shop #secondary-left .widget_top_rated_products {
    display: none;
}

/* Keep the category directory, but remove the size and color filter blocks. */
body.woocommerce-shop #secondary-left .widget_layered_nav,
body.woocommerce-shop #secondary-left .woocommerce-widget-layered-nav {
    display: none;
}

body.woocommerce-shop .product-loop-sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 54px;
    margin-bottom: 20px;
    padding: 0;
}

body.woocommerce-shop .product-loop-sorting-item,
body.woocommerce-shop .product-display-controller,
body.woocommerce-shop .product-change-display,
body.woocommerce-shop .product-change-display li {
    display: flex;
    align-items: center;
}

body.woocommerce-shop .product-change-display {
    gap: 6px;
    margin: 0;
    padding: 0;
}

body.woocommerce-shop .product-change-display li {
    margin: 0;
    padding: 0;
    line-height: 0;
}

body.woocommerce-shop .product-change-display li span {
    display: inline-flex !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

body.woocommerce-shop .product-change-display li span::before {
    position: static !important;
    display: block !important;
    margin: 0 !important;
    transform: none !important;
    line-height: 1 !important;
}

body.woocommerce-shop .woocommerce-ordering select {
    width: 166px;
    height: 44px;
    min-height: 44px;
    border: 1px solid var(--tinda-shop-pink);
    border-radius: 999px;
    padding: 0 34px 0 12px;
    color: var(--tinda-shop-ink);
    background: #fff;
    line-height: 1.2;
}

body.woocommerce-shop .woocommerce-ordering select:focus {
    border-color: var(--tinda-shop-blue);
    outline: 2px solid rgba(38, 112, 255, 0.16);
    outline-offset: 1px;
}

body.woocommerce-shop #primary ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
}

/* The theme adds clearfix pseudo-elements; in a CSS grid they become empty first cells. */
body.woocommerce-shop #primary ul.products::before,
body.woocommerce-shop #primary ul.products::after {
    display: none !important;
    content: none !important;
}

body.woocommerce-shop #primary ul.products li.product {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    overflow: hidden;
    border: 1px solid var(--tinda-shop-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(35, 35, 35, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.woocommerce-shop #primary ul.products li.product:hover {
    border-color: var(--tinda-shop-blue);
    box-shadow: 0 12px 28px rgba(35, 35, 35, 0.1);
    transform: translateY(-3px);
}

body.woocommerce-shop #primary ul.products li.product > .dt-col {
    width: 100% !important;
    height: auto !important;
}

body.woocommerce-shop #primary ul.products li.product .product-wrapper,
body.woocommerce-shop #primary ul.products li.product .product-thumb,
body.woocommerce-shop #primary ul.products li.product .product-details {
    width: 100%;
}

body.woocommerce-shop #primary ul.products li.product .product-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto !important;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    background: #fff;
}

/* The theme's sliding secondary-image effect can leave a blank card. Keep one stable product image. */
body.woocommerce-shop #primary ul.products li.product .product-thumb .image {
    position: absolute !important;
    inset: 0;
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.woocommerce-shop #primary ul.products li.product .product-thumb .primary-image,
body.woocommerce-shop #primary ul.products li.product .product-thumb .secondary-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain !important;
}

body.woocommerce-shop #primary ul.products li.product .product-thumb .primary-image {
    z-index: 1;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

body.woocommerce-shop #primary ul.products li.product .product-thumb .secondary-image {
    display: none !important;
}

body.woocommerce-shop #primary ul.products li.product .product-thumb .product-thumb-overlay,
body.woocommerce-shop #primary ul.products li.product .product-thumb .product-labels {
    display: none !important;
}

body.woocommerce-shop #primary ul.products li.product .product-thumb-content,
body.woocommerce-shop #primary ul.products li.product .product-buttons-wrapper,
body.woocommerce-shop #primary ul.products li.product .product-thumb .read-more {
    display: none !important;
}

body.woocommerce-shop #primary ul.products li.product .product-thumb img {
    display: none !important;
}

body.woocommerce-shop #primary ul.products li.product .product-details {
    display: flex;
    min-height: 92px;
    align-items: flex-start;
    padding: 15px 16px 18px;
    text-align: left;
}

body.woocommerce-shop #primary ul.products li.product .product-title,
body.woocommerce-shop #primary ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-shop #primary ul.products li.product h5 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    color: var(--tinda-shop-ink);
    font-size: 16px;
    line-height: 1.35;
}

body.woocommerce-shop #primary ul.products li.product .product-title a,
body.woocommerce-shop #primary ul.products li.product .woocommerce-loop-product__title a,
body.woocommerce-shop #primary ul.products li.product h5 a {
    color: inherit;
    text-decoration: none;
}

body.woocommerce-shop #primary .woocommerce-no-products-found {
    margin: 0;
    padding: 56px 24px;
    border: 1px solid var(--tinda-shop-line);
    border-radius: 8px;
    color: var(--tinda-shop-muted);
    background: #fff;
    text-align: center;
}

body.woocommerce-shop .woocommerce-pagination {
    margin: 4px auto -30px;
    transform: translateY(-42px);
}

@media (max-width: 900px) {
    body.woocommerce-shop .container:has(#secondary-left):has(#primary) {
        grid-template-columns: 200px minmax(0, 1fr);
        gap: 22px;
        width: min(100% - 28px, 760px);
    }

    body.woocommerce-shop #primary ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.woocommerce-shop .tinda-shop-toolbar-top {
        display: block;
    }

    body.woocommerce-shop .tinda-shop-search {
        max-width: none;
        margin-top: 18px;
    }

    body.woocommerce-shop .tinda-shop-toolbar-top {
        align-items: stretch;
    }
}

@media (max-width: 767px) {
    .single-product div.product .woocommerce-product-gallery__image img {
        aspect-ratio: 1 / 1;
    }

    .single-product .tinda-specs {
        padding: 28px 14px;
    }

    .single-product .tinda-specs-inner {
        padding: 12px;
    }

    .single-product .tinda-specs-row {
        grid-template-columns: minmax(110px, 34%) 1fr;
        min-height: 62px;
    }

    .single-product .tinda-specs-label,
    .single-product .tinda-specs-value {
        padding: 14px;
        font-size: 14px;
    }

    body.woocommerce-shop .container:has(#secondary-left):has(#primary) {
        display: block;
        width: calc(100% - 24px);
    }

    body.woocommerce-shop #secondary-left,
    body.woocommerce-shop #primary {
        grid-column: auto;
        grid-row: auto;
    }

    body.woocommerce-shop #secondary-left {
        position: static;
        margin-bottom: 22px !important;
    }

    body.woocommerce-shop #primary ul.products {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.woocommerce-shop .product-loop-sorting {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    body.woocommerce-shop .tinda-shop-toolbar {
        padding: 22px 18px 18px;
    }
}
