/* Pazaryeri bileşenleri (derleme gerektirmez; partials/head.blade.php'de yüklenir) */

/* Ürün kartı */
.product-card { border-radius: 14px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.product-card:hover { box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08) !important; transform: translateY(-2px); }
.product-card .product-img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; padding: 1rem; background: #fff; }
.product-card .product-name { font-size: .98rem; font-weight: 600; line-height: 1.3; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #181C32; }
.product-card .product-meta { font-size: .8rem; color: #7E8299; min-height: 1.2em; }
.product-price { font-size: 1.15rem; font-weight: 700; color: #181C32; }
.product-price-old { font-size: .85rem; color: #A1A5B7; text-decoration: line-through; }
.product-price.is-discount { color: #F1416C; }
/* Dar ekranda (küçük telefon, büyütülmüş yazı) buton yazısı sığsın; kelime ortasından bölünüp buton ovale dönmesin */
@media (max-width: 575.98px) { .product-card .btn { --bs-btn-padding-x: .5rem; } }

/* Ana eylem: Sepete Ekle marka moruyla (diğer ikincil butonlar açık lila kalır) */
.btn.add-to-cart { background-color: #9F00FF; color: #FFFFFF; font-weight: 600; }
.btn.add-to-cart:hover, .btn.add-to-cart:focus-visible { background-color: #8700D9; color: #FFFFFF; }
.btn.add-to-cart:disabled, .btn.add-to-cart.disabled { background-color: #E4E6EF; color: #7E8299; opacity: 1; }

/* Rozetler */
.badge-discount { position: absolute; top: .6rem; left: .6rem; background: #F1416C; color: #fff; font-weight: 700; border-radius: 8px; padding: .3rem .5rem; font-size: .8rem; z-index: 2; }
.badge-campaign { background: #FFF5F8; color: #F1416C; border: 1px solid #FFD6E0; font-weight: 600; }
.badge-tag { background: #E8FFF3; color: #50CD89; font-weight: 600; }

/* Favori kalbi */
.fav-btn { position: absolute; top: .5rem; right: .5rem; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); display: inline-flex; align-items: center; justify-content: center; color: #A1A5B7; }
.fav-btn.is-fav, .fav-btn:hover { color: #F1416C; }
.fav-btn.static { position: static; }

/* Yıldızlar */
.stars { color: #FFC700; letter-spacing: 1px; white-space: nowrap; }
.stars .bi-star { color: #E4E6EF; }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .25rem; }
.rating-input input { display: none; }
.rating-input label { font-size: 2rem; color: #E4E6EF; cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #FFC700; }

/* Kategori / filtre çipleri */
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid #E4E6EF; border-radius: 999px; padding: .35rem .9rem; font-size: .88rem; color: #3F4254; background: #fff; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: #9F00FF; color: #9F00FF; }
.chip.active { background: #9F00FF; border-color: #9F00FF; color: #fff; }
.chip-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }

/* Vitrin */
.hero-banner { border-radius: 18px; overflow: hidden; position: relative; min-height: 180px; background: linear-gradient(120deg, #9F00FF, #5F0099); color: #fff; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-banner .hero-text { position: relative; z-index: 1; padding: 2rem; max-width: 560px; background: linear-gradient(90deg, rgba(0, 0, 0, .45), transparent); height: 100%; }
.section-title { font-weight: 700; font-size: 1.3rem; margin-bottom: 0; }

/* Market kartı */
.market-card { border-radius: 16px; transition: box-shadow .15s ease; }
.market-card:hover { box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08) !important; }
.market-avatar { width: 52px; height: 52px; border-radius: 14px; background: #F4E8FF; color: #9F00FF; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.3rem; flex-shrink: 0; }

/* Yatay kaydırmalı ürün şeridi */
.product-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
.product-strip > * { scroll-snap-align: start; }
@media (min-width: 992px) { .product-strip { grid-auto-columns: calc((100% - 3rem) / 4); } }

/* Fiyat karşılaştırma */
.offer-row.is-best { border-color: #50CD89 !important; background: #F8FFFB; }

/* Müşteri sitesi: soldan açılan menü (admin kenar menüsüyle aynı görünüm) */
.app-customer .app-header > .container-fluid { gap: 18px; }
.app-customer .header-brand { font-weight: 700; font-size: 1.2rem; color: #181C32; text-decoration: none; }
.app-customer .header-brand:hover { color: #9F00FF; }
.app-customer .menu-dot { position: absolute; top: 6px; right: -4px; width: 10px; height: 10px; border-radius: 50%; background: #F1416C; border: 2px solid #fff; }
.customer-menu { --bs-offcanvas-width: 290px; --bs-offcanvas-bg: #362E39; color: #D1B9D8; }
.customer-menu .sidebar-logo { display: flex; align-items: center; justify-content: space-between; height: 65px; padding: 0 25px; background-color: #302731; flex-shrink: 0; }
.customer-menu .sidebar-logo a { color: #D1B9D8; font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.customer-menu .sidebar-menu { padding: .75rem 0 1.25rem; }
.customer-menu .sidebar-section { padding: 1.5rem 25px .5rem; color: #D1B9D8; font-size: .8rem; text-transform: uppercase; letter-spacing: .1rem; opacity: .75; }
.customer-menu .sidebar-link { display: flex; align-items: center; gap: .25rem; padding: .75rem 25px; color: #D1B9D8; text-decoration: none; font-weight: 500; transition: color .2s ease, background-color .2s ease; }
.customer-menu .sidebar-link i { width: 2rem; font-size: 1.15rem; line-height: 1; color: #8f7f99; }
.customer-menu .sidebar-link:hover, .customer-menu .sidebar-link.active { background-color: #302731; color: #C77DFF; }
.customer-menu .sidebar-link:hover i, .customer-menu .sidebar-link.active i { color: #C77DFF; }
.customer-menu .sidebar-city { background: #2c252f; margin: .25rem 0; }
.customer-menu .sidebar-hint { font-size: .75rem; opacity: .7; }

/* Via Market logosu (partials/logo.blade.php). Boyutlar "vıa" yazısının font-size'ına göre */
.via-logo { position: relative; display: inline-block; padding: 0 .52em .34em 0; line-height: 1; font-family: Poppins, sans-serif; text-decoration: none; vertical-align: middle; }
.via-logo-word { position: relative; display: inline-block; font-weight: 800; letter-spacing: -.034em; color: #9F00FF; }
.via-logo-dark .via-logo-word { color: #FFFFFF; }
.via-logo-dot { position: absolute; left: .625em; top: -.02em; width: .216em; height: .216em; border-radius: 50%; background: #FF7A1A; }
.via-logo-tag { position: absolute; right: 0; bottom: 0; transform: rotate(-7deg); background: #FF7A1A; color: #FFFFFF; font-size: max(10px, .25em); font-weight: 700; letter-spacing: .02em; padding: .22em .8em .27em; border-radius: 999px; box-shadow: 0 .14em 0 #D95E05; white-space: nowrap; }
a:hover > .via-logo .via-logo-word, a.via-logo:hover .via-logo-word { opacity: .9; }

/* Market koşulları: küçük etiketler (market kartı, market başlığı, fiyat karşılaştırma) */
.term-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.term-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: #F5F3F7; color: #5E5566; font-size: .8rem; font-weight: 500; white-space: nowrap; }
.term-chip.is-good { background: #E3F8EC; color: #157A44; }
@media (max-width: 575.98px) {
    .market-avatar { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
    .term-chip { font-size: .75rem; padding: 2px 8px; }
}

/* Footer ve bilgi sayfaları */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-links a { color: #5E6278; font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-links a.active { color: #9F00FF; }
.page-text { line-height: 1.65; }
.page-text h1 { font-weight: 700; }
.sell-band { background: linear-gradient(120deg, #9F00FF, #5F0099); }

/* Yazdırma (fiş, hesap dökümü) */
@media print {
    .app-sidebar, .app-header, .no-print, .app-footer, footer { display: none !important; }
    .app-wrapper { margin: 0 !important; padding: 0 !important; }
    .card { box-shadow: none !important; border: 0 !important; }
    body { background: #fff !important; }
}
