.ptx-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--background-page);
    color: var(--text-primary);
    border: var(--footer-border-width) solid var(--neutral-border);
    border-radius: var(--radius-s);
    transition:
        transform var(--transition-medium),
        box-shadow var(--transition-medium),
        border-color var(--transition-medium);
}

.ptx-product-card:hover,
.ptx-product-card:focus-within {
    transform: translateY(-0.3125rem);
    border-color: var(--brand-primary);
    box-shadow:
        0 12px 34px color-mix(in srgb, var(--brand-primary) 18%, transparent),
        0 4px 14px rgba(26, 26, 26, 0.05);
}

.ptx-product-card:focus-within {
    box-shadow:
        0 12px 34px color-mix(in srgb, var(--brand-primary) 18%, transparent),
        0 4px 14px rgba(26, 26, 26, 0.05),
        0 0 0 2px var(--brand-primary);
}


.ptx-product-card__overlay-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    cursor: pointer;
}

.ptx-product-card__overlay-link:focus-visible,
.ptx-product-card__wishlist:focus-visible {
    outline: none;
}

.ptx-product-card__media {
    position: relative;
    flex: 0 0 auto;
    overflow: hidden;
    background: var(--background-section);
}

.ptx-product-card--media-mode-ratio .ptx-product-card__media {
    height: auto;
    aspect-ratio: var(--ptx-product-card-media-ratio, 3 / 4);
}

.ptx-product-card--media-mode-height .ptx-product-card__media {
    height: var(--ptx-product-card-media-height, 24rem);
    aspect-ratio: auto;
}

.ptx-product-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.08), rgba(26, 26, 26, 0));
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.ptx-product-card:hover .ptx-product-card__media::after,
.ptx-product-card:focus-within .ptx-product-card__media::after {
    opacity: 1;
}

.ptx-product-card__media img,
.ptx-product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ptx-product-card:hover .ptx-product-card__image,
.ptx-product-card:focus-within .ptx-product-card__image {
    transform: scale(1.06);
}

.ptx-product-card__badges {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
    max-width: calc(100% - (var(--space-xs) * 2));
    pointer-events: none;
}

.ptx-product-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.35em 0.75em;
    background: var(--brand-primary);
    color: var(--text-inverse);
    border-radius: var(--radius-xs);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.ptx-product-card__badge--new {
    background: var(--brand-subtle);
    color: var(--brand-primary);
}

.ptx-product-card__badge--bestseller {
    background: var(--background-inverse);
    color: var(--text-inverse);
}

.ptx-product-card__badge--sale {
    background: var(--status-sale);
    color: var(--text-inverse);
}

.ptx-product-card__wishlist {
    position: absolute;
    top: var(--space-xs);
    right: var(--space-xs);
    z-index: 4;
    width: 2.375rem;
    height: 2.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--text-primary);
    background: var(--background-page);
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-m, 0 2px 6px rgba(26, 26, 26, 0.08));
    cursor: pointer;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.ptx-product-card__wishlist svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition:
        fill var(--transition-fast),
        stroke var(--transition-fast);
}

.ptx-product-card__wishlist:hover {
    background: var(--background-inverse);
    color: var(--text-inverse);
    transform: scale(1.08);
}

.ptx-product-card__wishlist[aria-pressed="true"] svg {
    fill: var(--brand-primary);
    stroke: var(--brand-primary);
}

.ptx-product-card__wishlist[aria-pressed="true"]:hover svg {
    fill: var(--text-inverse);
    stroke: var(--text-inverse);
}

.ptx-product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--space-s);
}

.ptx-product-card__category {
    margin: 0 0 var(--space-2xs);
    color: var(--brand-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.ptx-product-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 var(--space-xs);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: var(--text-l);
    font-weight: 700;
    line-height: 1.25;
    transition: color var(--transition-fast);
    overflow-wrap: anywhere;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ptx-product-card:hover .ptx-product-card__title,
.ptx-product-card:focus-within .ptx-product-card__title {
    color: var(--brand-primary);
}

.ptx-product-card__materials {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    min-width: 0;
    margin: 0 0 var(--space-s);
    color: var(--text-secondary);
    font-size: var(--text-s);
    line-height: 1.5;
}

.ptx-product-card__materials svg {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ptx-product-card__materials span {
    min-width: 0;
}

.ptx-product-card__materials strong {
    color: var(--text-primary);
    font-weight: 600;
}

.ptx-product-card__footer {
    margin-top: auto;
}

.ptx-product-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 0.45em;
    color: var(--text-secondary);
    font-size: var(--text-xs);
    line-height: 1.4;
}

.ptx-product-card__price .price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 0.45em;
}

.ptx-product-card__price-prefix,
.ptx-product-card__price .from,
.ptx-product-card__price .tax_label,
.ptx-product-card__price-suffix {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 400;
    line-height: 1.4;
}

.ptx-product-card__price .from {
    display: none;
}

.ptx-product-card__price .woocommerce-Price-amount {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: var(--text-l);
    font-weight: 700;
    line-height: 1;
}

.ptx-product-card__price del,
.ptx-product-card__price ins {
    display: inline-flex;
    align-items: baseline;
}

.ptx-product-card__price del {
    color: var(--text-secondary);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

.ptx-product-card__price del .woocommerce-Price-amount {
    color: inherit;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    line-height: 1.4;
}

.ptx-product-card__price ins {
    text-decoration: none;
}

.ptx-product-card--sale .ptx-product-card__price ins .woocommerce-Price-amount {
    color: var(--brand-primary);
}
