/* MegaVitrin — minimal product card (5 sütun) */
.mv-product-card {
    --mv-brand: #e31e24;
    --mv-ink: #1a1a1a;
    --mv-muted: #8a8f98;
    --mv-line: #eceef2;
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
    height: 100%;
    transition: opacity .15s ease;
}
.mv-product-card:hover {
    opacity: .97;
}

.mv-product-card__media-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}
.mv-product-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    overflow: hidden;
    background: #f3f4f6;
}
.mv-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform .28s ease;
}
.mv-product-card:hover .mv-product-card__media img {
    transform: scale(1.03);
}

.mv-product-card__badges {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
}
.mv-product-card__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: var(--mv-brand);
    line-height: 1;
}
.mv-product-card__pill--new { background: #111827; }
.mv-product-card__pill--discount {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: var(--mv-brand);
    line-height: 1;
    pointer-events: none;
}
.mv-product-card__pill--vip {
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}
.mv-product-card__pill--vip i {
    font-size: 8px;
    color: #fff7ed;
}

.mv-product-card__watch {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(17, 24, 39, .82);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 9px;
    padding-left: 1px;
}
.mv-product-card__watch:hover {
    background: var(--mv-brand);
    color: #fff;
}

.mv-product-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 1px 0;
    flex: 1;
}

.mv-product-card__price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
}
.mv-product-card__price-block {
    min-width: 0;
}
.mv-product-card__price-block s {
    display: block;
    color: #a1a1aa;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
}
.mv-product-card__price-block strong {
    display: block;
    color: var(--mv-ink);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
}

.mv-product-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-top: 0;
}
.mv-product-card__act {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: color .15s ease, background .15s ease;
}
.mv-product-card__act:hover,
.mv-product-card__act.is-active {
    color: var(--mv-brand);
    background: #fef2f2;
}
.mv-product-card__act.is-active i {
    font-weight: 900;
}
.mv-product-card__act--cart:hover {
    color: #fff;
    background: var(--mv-brand);
}

.mv-product-card__title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}
.mv-product-card__title a {
    color: var(--mv-ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mv-product-card__title a:hover { color: var(--mv-brand); }

.mv-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 0;
}
.mv-product-card__place {
    min-width: 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--mv-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mv-product-card__stats {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    color: var(--mv-muted);
}
.mv-product-card__stats a {
    color: #b45309;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.mv-product-card__stats a:hover { color: var(--mv-brand); }
.mv-product-card__stats span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.mv-product-card__stats i {
    font-size: 8px;
}

/* Grid: desktop 5, planşet 3, mobil 2 */
.mv-products-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 12px 10px;
    width: 100%;
}

.home-product-item,
.mv-product-grid-item {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.home-product-item > .mv-product-card,
.mv-product-grid-item > .mv-product-card {
    flex: 1;
    width: 100%;
}

.pd-related .mv-products-grid,
.home-products .mv-products-grid,
.shop-wrapper .mv-products-grid,
.shop-products .mv-products-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

@media (max-width: 1100px) {
    .mv-products-grid,
    .pd-related .mv-products-grid,
    .home-products .mv-products-grid,
    .shop-wrapper .mv-products-grid,
    .shop-products .mv-products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 12px 10px;
    }
}

@media (max-width: 900px) {
    .mv-products-grid,
    .pd-related .mv-products-grid,
    .home-products .mv-products-grid,
    .shop-wrapper .mv-products-grid,
    .shop-products .mv-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 12px 10px;
    }
}

@media (max-width: 640px) {
    .mv-products-grid,
    .pd-related .mv-products-grid,
    .home-products .mv-products-grid,
    .shop-wrapper .mv-products-grid,
    .shop-products .mv-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px 8px;
    }
    .mv-product-card__price-block strong { font-size: 12px; }
    .mv-product-card__title { font-size: 11px; }
    .mv-product-card__act { width: 20px; height: 20px; font-size: 10px; }
    .mv-product-card__stats { display: none; }
}

@media (max-width: 520px) {
    .mv-compare-bar { flex-direction: column; align-items: stretch; }
}

/* Toast + compare bar */
.mv-toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.mv-toast {
    pointer-events: auto;
    background: #111827;
    color: #fff;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(0,0,0,.2);
    animation: mvToastIn .2s ease;
}
.mv-toast--ok { background: #059669; }
.mv-toast--warn { background: #c2410c; }
@keyframes mvToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.mv-compare-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(120%);
    z-index: 99990;
    width: min(920px, calc(100% - 24px));
    background: #111827;
    color: #fff;
    border-radius: 18px;
    padding: 12px 14px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.28);
    transition: transform .25s ease;
}
.mv-compare-bar.is-open {
    display: flex !important;
    transform: translateX(-50%) translateY(0);
}
.mv-compare-bar[hidden] { display: none !important; }
.mv-compare-bar__items {
    display: flex;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
}
.mv-compare-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 6px 8px;
    min-width: 140px;
}
.mv-compare-bar__item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}
.mv-compare-bar__item span {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
.mv-compare-bar__item button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    opacity: .7;
}
.mv-compare-bar__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.mv-compare-bar__actions a,
.mv-compare-bar__actions button {
    border: 0;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    color: #111827;
    background: #fff;
}
.mv-compare-bar__actions .is-primary {
    background: var(--mv-brand, #e31e24);
    color: #fff;
}

.user-action-item__badge-fav,
.user-action-item--fav .user-action-item__badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e31e24;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
