/* Shared native product cards, extracted from shop.css. Route layout stays in its page module. */

.product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__content {
    padding: 24px;
}

.product-card__title {
    font-size: 24px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.product-card__title a {
    color: var(--color-text-main);
}

.product-card__price {
    margin-bottom: 18px;
    color: var(--color-text-main);
    font-size: 18px;
    font-weight: 700;
}

.product-card__price del {
    color: var(--color-text-muted);
    font-weight: 400;
    margin-right: 6px;
}

.product-card .btn {
    width: 100%;
    background: var(--color-accent);
    color: #ffffff !important;
    border-color: var(--color-accent);
}

.product-card .btn:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.product-card__inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.product-card__image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e7e3da;
    color: #ffffff;
}

.product-card__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2,.65,.25,1);
}

.product-card__open {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #f3f0e9;
    color: #171719;
    font-size: 15px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, background-color .25s ease;
}

.product-card__image:hover img {
    transform: scale(1.018);
}

.product-card__image:hover .product-card__open {
    opacity: 1;
    transform: translateY(0);
}

.product-card__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px 0 0;
}

.product-card__context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    min-height: 16px;
    margin-bottom: 14px;
    color: #806b41;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.product-card__context span + span {
    position: relative;
}

.product-card__context span + span::before {
    content: "·";
    position: absolute;
    left: -11px;
    color: rgba(23,23,25,.42);
}

.product-card__title a {
    color: #171719;
    text-decoration: none;
}

.product-card__meta {
    display: flex;
    flex: 1 1 auto;
    gap: 20px;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(23,23,25,.2);
}

.product-card__price {
    margin: 0;
    color: #171719;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.product-card__price del {
    display: inline-block;
    margin-right: 5px;
    color: #8a867d;
    font-weight: 400;
}

.product-card__price ins {
    display: inline-block;
    text-decoration: none;
}

.product-card__price .screen-reader-text {
    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;
}

.product-card__link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: #5f5c55;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.product-card__link span {
    color: #806b41;
    transition: transform .25s ease;
}

.product-card__link:hover {
    color: #171719;
}

.product-card__link:hover span {
    transform: translate(3px, -3px);
}

@media (max-width: 700px) {

    .product-card__image {
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 700px) {

    .product-card__open {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card__image img,
.product-card__open,
.product-card__link span {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .product-card__image:hover img,
.product-card__image:hover .product-card__open,
.product-card__link:hover span {
        transform: none;
    }
}
