/* Единая карточка товара для ТОПа, хитов и каталога (Спринты 63 и 65). */
body { cursor: auto; }
a, button, .product-cta { cursor: pointer; }

.product-grid { align-items: stretch; }
.product-card,
.top-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--podloga);
    border: 1px solid var(--kant);
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(20, 22, 26, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.product-card:hover,
.top-product-card:hover {
    transform: translateY(-3px);
    border-color: var(--vyveska);
    box-shadow: 0 10px 26px rgba(20, 22, 26, .09);
}
.product-card .product-image,
.top-product-card .product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 190px;
    margin: 0 0 16px;
    overflow: hidden;
    background: var(--podloga);
    border-radius: 10px;
}
.product-card .product-image img,
.top-product-card .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-card .product-image img.product-brand-logo,
.top-product-card .product-image img.product-brand-logo {
    width: 68%;
    height: 68%;
}
.product-card .product-vendor,
.top-product-card .product-vendor {
    margin-bottom: 6px;
    color: var(--tihiy);
    font-size: .85rem;
}
.product-card .product-name,
.top-product-card .product-name {
    display: -webkit-box;
    min-height: 2.7em;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--tekst);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.product-card .product-name a,
.top-product-card .product-name a {
    color: inherit;
    text-decoration: none;
}
.product-card .product-desc,
.top-product-card .product-desc {
    display: -webkit-box;
    min-height: 4.5em;
    margin: 0 0 16px;
    overflow: hidden;
    color: var(--tihiy);
    font-size: .9rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.product-card .product-footer,
.top-product-card .product-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
.product-card .product-price,
.top-product-card .product-price {
    color: var(--tekst);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.25;
}
.product-cta,
.top-product-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid var(--bordo);
    border-radius: 8px;
    background: var(--vyveska);
    color: var(--na-cvete, #fff);
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: filter .2s ease, transform .2s ease;
}
.product-cta:hover,
.top-product-more:hover {
    filter: brightness(.94);
    color: var(--na-cvete, #fff);
    text-decoration: none;
    transform: translateY(-1px);
}
.product-wl-btn,
.btn-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--kant);
    border-radius: 8px;
    background: var(--podloga);
    color: var(--tekst);
}
.product-wl-btn.active,
.btn-wishlist.active {
    border-color: var(--vyveska);
    color: var(--vyveska-tekst);
}

@media (hover: none) {
    .quick-view-btn { display: none; }
}
@media (max-width: 600px) {
    .product-card,
    .top-product-card { padding: 1rem; }
    .product-card .product-image,
    .top-product-card .product-image { height: 170px; }
    .product-card .product-footer,
    .top-product-card .product-footer { align-items: stretch; }
    .product-card .product-cta,
    .top-product-card .top-product-more { width: 100%; }
    .product-card .product-footer > div,
    .top-product-card .product-footer > div { max-width: 100%; }
}

.navbar { padding: 1rem 2rem; }
.logo {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.logo img {
    display: block;
    width: 172px;
    height: 44px;
}
@media (max-width: 768px) {
    .navbar { padding: .75rem 1rem; }
    .logo,
    .logo img { min-height: 38px; }
    .logo img { width: 146px; height: 38px; }
}
