/* Ürün kartı, kaydırma sırası ve grid (anasayfa + liste + benzer ürünler) */

.product-row { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 4px 12px; margin: -4px -4px 0; }
.product-row::-webkit-scrollbar { display: none; }
.product-row .product-card { flex: 0 0 calc(20% - .8rem); scroll-snap-align: start; }
@media (max-width: 1199px) { .product-row .product-card { flex-basis: calc(25% - .75rem); } }
@media (max-width: 991px) { .product-row .product-card { flex-basis: calc(33.333% - .67rem); } }
@media (max-width: 767px) { .product-row .product-card { flex-basis: calc(50% - .5rem); } }
@media (max-width: 480px) { .product-row .product-card { flex-basis: 80%; } }

.product-card { background: #fff; border: 1px solid var(--mh-mid-gray); border-radius: var(--mh-radius); display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, transform .2s; min-width: 0; }
.product-card:hover { box-shadow: 0 12px 30px var(--shadow-color); transform: translateY(-2px); }
.product-card-top { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; pointer-events: none; }
.product-card-top > * { pointer-events: auto; }
.badge-discount { background: #e5484d; color: #fff; font-size: .72rem; font-weight: 800; padding: .25rem .5rem; border-radius: 8px; }
.badge-deal { background: var(--mh-green); color: #1f3d0a; font-size: .72rem; font-weight: 800; padding: .25rem .55rem; border-radius: 8px; }
.btn-fav { width: 34px; height: 34px; border-radius: 50%; background: var(--mh-light-gray); border: none; color: var(--mh-gray); display: grid; place-items: center; margin-left: auto; font-size: .95rem; }
.btn-fav:hover, .btn-fav.active { background: #fde8e8; color: #e5484d; }
.product-card-img { display: block; aspect-ratio: 1 / 1; padding: 1.75rem 1.25rem 1rem; display: flex; align-items: center; justify-content: center; }
.product-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(180deg, #fafafa, #f0f0f0); border-radius: var(--mh-radius-sm); color: #b9bcc3; font-size: 3.5rem; }
.product-card-body { padding: 0 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.product-meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .72rem; margin-bottom: .3rem; }
.product-meta .oem { color: var(--mh-primary-dark); font-weight: 800; letter-spacing: .02em; }
.product-meta .mfr { color: var(--mh-gray); font-weight: 600; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .85rem; font-weight: 600; color: var(--mh-dark); line-height: 1.35; min-height: 2.7em; margin-bottom: .6rem; }
.product-name:hover { color: var(--mh-primary-dark); }
.product-price { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: .5rem; gap: .05rem; }
.price-old { color: var(--mh-gray); text-decoration: line-through; font-size: .8rem; font-weight: 600; }
.price-main { font-size: 1.25rem; font-weight: 800; color: var(--mh-dark); line-height: 1.2; }
.price-main small { font-size: .65rem; font-weight: 700; color: var(--mh-gray); }
.price-list { color: var(--mh-mid-dark-gray); }
.price-note { font-size: .75rem; color: var(--mh-green-dark); font-weight: 700; }
.price-login { color: var(--mh-primary-dark); }
.price-login:hover { text-decoration: underline; }
.product-stock { display: flex; justify-content: center; align-items: center; gap: .6rem; font-size: .75rem; margin-bottom: .75rem; }
.stock { font-weight: 700; display: inline-flex; align-items: center; gap: .3rem; }
.stock i { font-size: .5rem; }
.stock-in { color: var(--mh-green-dark); }
.stock-low { color: #b54708; }
.stock-out { color: #b42318; }
.min-qty { color: var(--mh-gray); font-weight: 600; }
.product-card .btn { margin-top: auto; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 1199px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .product-grid { grid-template-columns: 1fr; } }
.product-grid.list-view { grid-template-columns: 1fr; }
.product-grid.list-view .product-card { flex-direction: row; align-items: stretch; }
.product-grid.list-view .product-card-img { flex: 0 0 160px; aspect-ratio: auto; padding: 1rem; }
.product-grid.list-view .product-card-body { padding: 1rem 1rem 1rem 0; }
.product-grid.list-view .product-price, .product-grid.list-view .product-stock { align-items: flex-start; text-align: left; justify-content: flex-start; }
.product-grid.list-view .product-card .btn { width: auto !important; align-self: flex-start; }
