/* The minimal product tile (front.inc.items.product_tile): picture, one line of title, the shop and the price. */
/* the tile is soft grey and the picture sits whole (never cropped) in a white frame with a thin edge, so busy
   pictures, pictures full of text and white-background pictures all read as one product each */
.pt {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 5px 5px 10px; border: 1px solid transparent;
    border-radius: var(--gz-radius-lg); background: var(--gz-surface-2); color: var(--gz-ink) !important; text-decoration: none !important;
    transition: border-color var(--gz-fast), box-shadow var(--gz-fast);
}
.pt:hover { border-color: var(--gz-border); box-shadow: 0 4px 16px rgba(28, 18, 36, .06); }
.pt-media {
    position: relative; display: block; overflow: hidden; border-radius: calc(var(--gz-radius-lg) - 4px);
    background: #fff;
}
.pt-media img { display: block; width: 100%; height: auto; aspect-ratio: var(--pt-ratio, 1); object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--gz-ease); }
.pt:hover .pt-media img { transform: scale(1.03); }
/* the frame edge, drawn over the picture so it shows on white pictures too */
.pt-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(28, 18, 36, .08); pointer-events: none; }
.pt-off {
    position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: var(--gz-radius-sm);
    background: var(--gz-ink); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.7;
}
.pt-title {
    display: block; overflow: hidden; padding: 0 6px; color: var(--gz-ink-2) !important; font-size: 13px; line-height: 1.7;
    white-space: nowrap; text-overflow: ellipsis; text-decoration: none !important;
}
/* the title's link covers the whole tile */
.pt-title::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
/* + on the picture, above the tile's link: green with the quantity once in the cart */
.pt-add {
    position: absolute; bottom: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .9); color: var(--gz-brand-600); box-shadow: 0 4px 12px rgba(28, 18, 36, .16);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer;
    transition: background var(--gz-fast), color var(--gz-fast), transform var(--gz-fast);
}
.pt-add .gzi { font-size: 20px; stroke-width: 2.2; }
.pt-add:hover { background: var(--gz-brand-500); color: #fff; }
.pt-add:active { transform: scale(.9); }
.pt-add-count { font-size: 14px; font-weight: 800; }
.pt-add-count:empty { display: none; }
.pt-add.in-cart { background: var(--gz-success); color: #fff; }
.pt-add.in-cart .pt-add-plus { display: none; }
.pt-add.loading { opacity: .6; pointer-events: none; }
.pt-foot { display: flex; flex-wrap: nowrap; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; padding: 0 6px; }
.pt-shop { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--gz-ink-3); font-size: 12px; }
.pt-shop .gzi { flex-shrink: 0; font-size: 15px; }
.pt-shop span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pt-price { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; line-height: 1.3; }
.pt-price del { color: var(--gz-ink-4); font-size: 11.5px; }
.pt-now { display: inline-flex; align-items: baseline; gap: 2px; }
.pt-now small { color: var(--gz-ink-3); font-size: 11px; }
.pt-now b { font-size: 14.5px; font-weight: 800; }
.pt-toman { color: var(--gz-ink-3); font-size: 11px; }

@media (max-width: 767.98px) {
    .pt { gap: 4px; padding: 4px 4px 8px; border-radius: var(--gz-radius-md); }
    .pt-media { border-radius: calc(var(--gz-radius-md) - 3px); }
    .pt-title { font-size: 12.5px; }
    .pt-foot { gap: 6px; }
    .pt-now b { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
    .pt-media img { transition: none; }
}
