/* Homepage WooCommerce product sections */
.tk-home-products {
    position: relative;
    width: 100vw;
    max-width: none;
    margin: 0 calc(50% - 50vw) 54px;
    padding: 0 clamp(18px, 5vw, 72px);
    background: transparent;
}

.tk-home-products__inner {
    width: min(100%, 1480px);
    margin-inline: auto;
}

.tk-home-products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 18px;
}

.tk-home-products__title {
    margin: 0;
    color: #123326;
    font-size: var(--tk-font-section-title);
    line-height: var(--tk-line-title);
    letter-spacing: var(--tk-letter-section);
    font-weight: var(--tk-weight-section-title);
}

.tk-home-products__title-link {
    color: inherit;
    text-decoration: none;
}

.tk-home-products__title-link:hover,
.tk-home-products__title-link:focus-visible {
    color: #0b2118;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.tk-home-products__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: rgba(18, 51, 38, 0.72);
    background: rgba(255, 253, 248, 0.78);
    font-size: var(--tk-font-button-small);
    line-height: var(--tk-line-button);
    font-weight: var(--tk-weight-semibold);
    text-decoration: none;
    border: 1px solid rgba(18, 51, 38, 0.12);
    padding-bottom: 0;
}

.tk-home-products__all:hover,
.tk-home-products__all:focus-visible {
    color: #0b2118;
    background: rgba(255, 253, 248, 0.95);
    border-color: rgba(11, 33, 24, 0.22);
}

.tk-home-products__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(14px, 1.2vw, 20px);
    align-items: stretch;
}

.tk-home-product-card {
    position: relative;
    min-width: 0;
    min-height: 308px;
    display: flex;
    flex-direction: column;
    border-radius: var(--tk-radius-card);
    background: var(--tk-surface-panel, #FFFDF8);
    border: 1px solid var(--tk-surface-border-soft, rgba(16, 37, 28, 0.08));
    box-shadow: 0 10px 26px rgba(6, 26, 18, 0.06);
    overflow: hidden;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tk-home-product-card:hover,
.tk-home-product-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(16, 37, 28, 0.14);
    box-shadow: 0 14px 34px rgba(6, 26, 18, 0.09);
}

.tk-home-product-card__card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    text-decoration: none;
}

.tk-home-product-card__card-link:focus-visible {
    outline: 2px solid rgba(224, 173, 24, 0.8);
    outline-offset: -2px;
}

.tk-home-product-card__media {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 0.9;
    margin: 10px 10px 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--tk-surface-panel-soft, #FAF6EE);
    text-decoration: none;
}

.tk-home-product-card__image,
.tk-home-product-card__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    display: block;
    padding: 9px;
    mix-blend-mode: multiply;
    transition: transform 220ms ease;
}

.tk-home-product-card__image--placeholder,
.tk-home-product-card__media img.woocommerce-placeholder {
    opacity: 0.42;
    mix-blend-mode: normal;
}

.tk-home-product-card__image-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    border-radius: 12px;
    background: rgba(18, 51, 38, 0.055);
    color: rgba(18, 51, 38, 0.34);
    font-size: 12.5px;
    font-weight: 690;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tk-home-product-card:hover .tk-home-product-card__image,
.tk-home-product-card:hover .tk-home-product-card__media img {
    transform: scale(1.025);
}

.tk-home-product-card__sale-badge,
.tk-home-product-card .onsale {
    position: absolute;
    z-index: 4;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 28px;
    margin: 0;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #F3D774 0%, #E0AD18 100%);
    color: #10291F;
    border: 1px solid rgba(11, 33, 24, 0.16);
    font-size: 11px;
    line-height: 1;
    font-weight: 860;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(11, 33, 24, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.tk-home-product-card__body {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 12px 14px 13px;
}

.tk-home-product-card__title {
    display: -webkit-box;
    min-height: 44px;
    color: #10291f;
    font-size: var(--tk-font-product-title);
    line-height: var(--tk-line-product-title);
    font-weight: var(--tk-weight-product-title);
    letter-spacing: var(--tk-letter-product-title);
    text-decoration: none;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: normal;
    overflow-wrap: anywhere;
}

.tk-home-product-card:hover .tk-home-product-card__title,
.tk-home-product-card:focus-within .tk-home-product-card__title {
    color: #0b2118;
}

.tk-home-product-card__swatches {
    position: relative;
    z-index: 5;
    margin-top: 8px;
}

.tk-home-product-card__swatches-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(16, 37, 28, 0.72);
    font-size: 11.5px;
    line-height: 1;
    font-weight: 680;
}

.tk-home-product-card__swatch-list {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
}

.tk-home-product-card__swatch {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 9px;
    border: 1px solid rgba(16, 37, 28, 0.14);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 4px 9px rgba(11, 33, 24, 0.06);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.tk-home-product-card__swatch:hover,
.tk-home-product-card__swatch:focus-visible,
.tk-home-product-card__swatch.is-active {
    border-color: rgba(224, 173, 24, 0.9);
    box-shadow: 0 0 0 2px rgba(224, 173, 24, 0.18), 0 6px 12px rgba(11, 33, 24, 0.08);
    transform: translateY(-1px);
}

.tk-home-product-card__swatch.is-active::after {
    content: "";
    position: absolute;
    right: -4px;
    top: -4px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--tk-gold, #E0AD18);
    border: 2px solid var(--tk-surface-panel, #FFFDF8);
}

.tk-home-product-card__swatch-color {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(11, 33, 24, 0.13);
}


.tk-home-product-card__swatches--empty {
    min-height: 28px;
}

.tk-home-product-card__swatch--text {
    width: auto;
    min-width: 28px;
    padding-left: 9px;
    padding-right: 9px;
}

.tk-home-product-card__swatch-text {
    display: block;
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(16, 37, 28, 0.88);
    font-size: 11.5px;
    line-height: 1;
    font-weight: 760;
}

.tk-home-product-card__swatch-more {
    color: rgba(16, 37, 28, 0.72);
    font-size: 11.5px;
    line-height: 1;
    font-weight: 760;
}

.tk-home-product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    min-height: 34px;
    margin-top: 9px;
    color: #0b2118;
    font-size: var(--tk-font-price-card);
    line-height: 1.22;
    font-weight: var(--tk-weight-price-card);
    letter-spacing: -0.01em;
}

.tk-home-product-card__price .amount,
.tk-home-product-card__price .woocommerce-Price-amount {
    color: #0b2118;
    font-weight: 830;
}

.tk-home-product-card__price del {
    color: rgba(16, 37, 28, 0.68);
    font-size: 0.82em;
    font-weight: 500;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(16, 37, 28, 0.52);
}

.tk-home-product-card__price del .amount,
.tk-home-product-card__price del .woocommerce-Price-amount {
    color: rgba(16, 37, 28, 0.68);
    font-weight: 520;
}

.tk-home-product-card__price ins {
    color: #0b2118;
    text-decoration: none;
    font-size: 1.04em;
    font-weight: 835;
}


.tk-home-product-card__actions {
    position: relative;
    z-index: 7;
    display: grid;
    gap: 7px;
    margin-top: auto;
    padding-top: 10px;
}

.tk-home-product-card__button,
.tk-home-product-card__actions .added_to_cart {
    width: 100%;
    min-height: var(--tk-button-small-height, 38px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--tk-button-small-padding-x, 14px);
    border-radius: var(--tk-radius-button-small, 12px);
    border: 1px solid rgba(16, 37, 28, 0.16);
    background: rgba(255, 253, 248, 0.88);
    color: var(--tk-text-strong, #0B2118);
    font-size: var(--tk-font-button-small, 12.5px);
    font-weight: var(--tk-weight-button-small, 760);
    line-height: var(--tk-line-button, 1);
    letter-spacing: var(--tk-letter-button, 0.005em);
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(11, 33, 24, 0.045);
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.tk-home-product-card__button--cart {
    border-color: rgba(224, 173, 24, 0.42);
    background: linear-gradient(180deg, rgba(240, 201, 74, 0.22) 0%, rgba(255, 253, 248, 0.94) 100%);
}

.tk-home-product-card__button--options,
.tk-home-product-card__button--view {
    border-color: rgba(16, 37, 28, 0.16);
    background: rgba(255, 253, 248, 0.92);
}

.tk-home-product-card__button:hover,
.tk-home-product-card__button:focus-visible,
.tk-home-product-card__actions .added_to_cart:hover,
.tk-home-product-card__actions .added_to_cart:focus-visible {
    transform: translateY(-1px);
    background: var(--tk-green-soft, #123326);
    border-color: var(--tk-green-soft, #123326);
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(11, 33, 24, 0.12);
    outline: 0;
}

.tk-home-product-card__button--disabled,
.tk-home-product-card__button--disabled:hover,
.tk-home-product-card__button--disabled:focus-visible {
    transform: none;
    background: rgba(239, 230, 216, 0.56);
    border-color: rgba(16, 37, 28, 0.10);
    color: rgba(16, 37, 28, 0.68);
    box-shadow: none;
    cursor: not-allowed;
}

.tk-home-product-card__button.added {
    border-color: rgba(18, 51, 38, 0.30);
}

.tk-home-product-card__actions .added_to_cart {
    min-height: 32px;
    background: rgba(18, 51, 38, 0.06);
    border-color: rgba(18, 51, 38, 0.12);
    font-size: 12px;
}


.tk-home-products__empty {
    border-radius: 16px;
    background: rgba(255,253,248,0.74);
    border: 1px dashed var(--tk-surface-border, rgba(16, 37, 28, 0.12));
    padding: 20px 22px;
    color: rgba(16, 37, 28, 0.68);
    font-size: 14px;
    font-weight: 560;
}

@media (max-width: 1280px) {
    .tk-home-products__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .tk-home-products {
        margin-bottom: 38px;
        padding-inline: 18px;
    }

    .tk-home-products__header {
        margin-bottom: 15px;
    }

    .tk-home-products__all {
        display: inline-flex;
        min-height: 32px;
        padding-inline: 11px;
        font-size: 12px;
        white-space: nowrap;
    }

    .tk-home-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .tk-home-products__grid .tk-home-product-card:nth-child(n+5) {
        display: none;
    }

    .tk-home-product-card {
        min-height: 294px;
    }

    .tk-home-product-card__media {
        margin: 8px 8px 0;
        border-radius: 13px;
    }

    .tk-home-product-card__body {
        padding: 9px;
    }

    .tk-home-product-card__title {
        font-size: 12.5px;
        line-height: 1.36;
        min-height: 38px;
    }

    .tk-home-product-card__price {
        min-height: 32px;
        font-size: 13.5px;
    }

    .tk-home-product-card__button {
        min-height: 36px;
        border-radius: 10px;
    }
}


/* Mobile product section compact continuation */
@media (max-width: 767px) {
    .tk-home-products {
        margin-bottom: 32px;
        padding-inline: 14px;
    }

    .tk-home-products__header {
        margin-bottom: 12px;
    }
}


/* Tugkamp Karşılaştırma Motoru kategori kart uyumu */
.tk-home-product-card__compare {
    position: relative;
    z-index: 8;
    margin-top: 8px;
}
.tk-home-product-card__compare .tkce-card-control {
    margin-top: 0;
}

/* v1.6.4: WooCommerce appends a "Sepetim" view-cart link after AJAX add-to-cart.
 * The native header mini cart is the cart follow-up, so product cards must not render that secondary link.
 */
.tk-home-product-card__actions .added_to_cart {
    display: none;
}
