/* ==========================================================================
   DENİZ MOTOR v3 — Pazaryeri tasarımı
   dm-v2.css'ten SONRA yüklenir; JS işaretleri ve sınıf adları korunur.
   İlke: sade beyaz yüzeyler, tek yazı tipi (Inter), lacivert birincil, kırmızı fiyat/indirim, ince gri çizgiler.
   ========================================================================== */

:root {
    --as-display: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mp-bg: #F4F5F7;
    --mp-line: #E6E8EC;
    --mp-ink: #1B2130;
    --mp-sub: #6B7280;
    --mp-navy: #12305F;
    --mp-red: #D7262F;
    --mp-green: #0E8A4F;
    --mp-radius: 8px;
}

body.as-body { color: var(--mp-ink); }

/* ---------- Tipografi: tek yazı tipi, normal harf ---------- */
.as-body h1, .as-body h2, .as-body h3, .dm-head-title, .as-section-title, .as-page-head h1, .as-pinfo h1, .dm-pagehero h1, .as-lhead h1, .dm-fcta h2, .dm-brands-intro h2, .as-mega-promo h4, .as-fcol h3, .as-fcol h3 button {
    font-family: var(--as-font) !important; font-style: normal !important; text-transform: none !important; letter-spacing: -.2px;
}
.as-btn { font-family: var(--as-font); text-transform: none; letter-spacing: 0; font-weight: 700; border-radius: var(--mp-radius); font-size: 14px; }
.as-btn-primary, .as-btn-dark, .as-card-cta, #addToCartBtn, .as-nav-item:first-child > .as-nav-link, .as-actions > button.as-action[onclick*="openCartDrawer"] { clip-path: none !important; }
.as-btn-primary, .as-btn-dark { background: var(--mp-navy); border-color: var(--mp-navy); }
.as-btn-primary:hover, .as-btn-dark:hover { background: #0B2246; border-color: #0B2246; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.dm-topbar { background: #fff; color: var(--mp-sub); border-bottom: 1px solid var(--mp-line); font-size: 12px; }
.dm-topbar .as-container { min-height: 32px; }
.dm-topbar-usp .as-icon { color: var(--mp-navy); }
.dm-topbar-links a { color: var(--mp-sub); }
.dm-topbar-links a:hover { color: var(--mp-navy); }
.dm-topbar-phone { background: none; color: var(--mp-navy) !important; padding: 0; height: auto; font-weight: 700; }

.as-header { box-shadow: none; border-bottom: 1px solid var(--mp-line); }
.as-header.is-scrolled { box-shadow: 0 4px 14px rgba(17, 24, 39, .06); }
@media (min-width: 1024px) { .as-header-main .as-container { height: 80px; gap: 28px; } .as-logo img { height: 58px; } }

.as-search { max-width: 820px; }
.as-search-input { height: 46px; border-radius: var(--mp-radius); background: var(--mp-bg); border: 1.5px solid transparent; padding: 0 52px 0 16px; font-size: 14px; }
.as-search-input:focus { border-color: var(--mp-navy); background: #fff; }
.as-search-btn { top: 3px; right: 4px; width: 40px; height: 40px; padding: 0; background: transparent; color: var(--mp-navy); border-radius: 6px; }
.as-search-btn:hover { background: var(--mp-navy); color: #fff; }
.as-header-main .as-search-btn::after { content: none !important; }
.as-msearch .as-search-input { padding-right: 52px; }

@media (min-width: 1024px) {
    .as-actions { gap: 4px; }
    .as-action { color: var(--mp-ink); font-size: 13px; font-weight: 600; height: 44px; padding: 0 12px; border-radius: var(--mp-radius); }
    .as-action:hover { background: var(--mp-bg); color: var(--mp-navy); }
    .as-action .as-icon { color: var(--mp-ink); width: 22px; height: 22px; }
    .as-action:hover .as-icon { color: var(--mp-navy); }
    .as-actions > button.as-action[onclick*="openCartDrawer"] { background: transparent; color: var(--mp-ink); border: 1.5px solid var(--mp-line); padding: 0 14px; margin-left: 6px; position: relative; }
    .as-actions > button.as-action[onclick*="openCartDrawer"] .as-icon { color: var(--mp-ink); }
    .as-actions > button.as-action[onclick*="openCartDrawer"]:hover { border-color: var(--mp-navy); background: #fff; color: var(--mp-navy); }
    .as-actions > button.as-action[onclick*="openCartDrawer"] .as-count { position: absolute; top: -8px; right: -8px; border: 2px solid #fff; }
}

/* Kategori menüsü: düz metin bağlantılar */
.as-nav { background: #fff; border-top: 0; border-bottom: 1px solid var(--mp-line); box-shadow: none; }
.as-nav > .as-container { height: 46px; gap: 2px; }
.as-nav-link { font-family: var(--as-font); font-size: 14px; font-weight: 600; color: var(--mp-ink); padding: 0 12px; letter-spacing: 0; }
.as-nav-link::after { left: 12px; right: 12px; height: 2px; background: var(--mp-navy); }
.as-nav-link:hover, .as-nav-item.is-open > .as-nav-link { color: var(--mp-navy); }
.as-nav-item:first-child > .as-nav-link { background: transparent; color: var(--mp-navy); margin-right: 6px; padding: 0 14px 0 4px; font-weight: 700; }
.as-nav-item:first-child > .as-nav-link:hover, .as-nav-item:first-child.is-open > .as-nav-link { background: transparent; color: var(--mp-navy); }
.as-nav-link.is-deal { color: var(--mp-red); }
.as-mega { border-top: 1px solid var(--mp-line); box-shadow: 0 18px 40px rgba(17, 24, 39, .12); }
.as-mega-promo { border-radius: var(--mp-radius); }
.as-mega-promo h4 { font-size: 20px !important; font-weight: 700; }

/* ==========================================================================
   ANA SAYFA
   ========================================================================== */
.dm-hero { padding-top: 16px; }
.dm-hero-main .as-hero-frame, .dm-hero-static, .dm-hero-card { border-radius: var(--mp-radius); }
.dm-usp { border-radius: var(--mp-radius); border-color: var(--mp-line); }
.dm-usp-ic { background: #EEF2F8; border-radius: 50%; }

.as-section { padding: 26px 0; }
.dm-head { align-items: center; margin-bottom: 14px; }
.dm-head-kicker { display: none; }
.dm-head-title { font-size: 20px !important; font-weight: 700; color: var(--mp-ink); }
@media (min-width: 1024px) { .dm-head-title { font-size: 22px !important; } }
.dm-head-more { font-family: var(--as-font); font-size: 14px; font-weight: 600; color: var(--mp-navy); border: 0; padding: 0; }
.dm-head-more:hover { color: var(--mp-red); text-decoration: underline; }
.dm-head.is-light .dm-head-title, .dm-head.is-light .dm-head-more { color: #fff; }

/* Kategori daireleri */
.dm-cats { padding-top: 18px; }
.dm-circles { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.dm-circle { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; scroll-snap-align: start; }
@media (min-width: 1024px) { .dm-circle { width: 108px; } }
.dm-circle-img { position: relative; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; padding: 3px; background: conic-gradient(var(--mp-red) 0 35%, var(--mp-navy) 35% 100%); }
@media (min-width: 1024px) { .dm-circle-img { width: 96px; height: 96px; } }
.dm-circle-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-sizing: border-box; }
.dm-circle.is-sub .dm-circle-img { background: var(--mp-line); }
.dm-circle.is-sub .dm-circle-img img { opacity: 0; }
.dm-circle.is-sub .dm-circle-img b { position: absolute; inset: 3px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 3px solid #fff; background: #EEF2F8; color: var(--mp-navy); font-size: 28px; font-weight: 800; }
.dm-circle:hover .dm-circle-img { transform: translateY(-2px); transition: transform .2s; }
.dm-circle-name { font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--mp-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Fırsat ve marka kutuları: sade */
.dm-deals-box { background: #FFF1F1; border: 1px solid #F7D4D6; border-radius: 12px; }
.dm-deals-box::before { display: none; }
.dm-deals-box .dm-head.is-light .dm-head-title { color: var(--mp-red); }
.dm-deals-box .dm-head.is-light .dm-head-more { color: var(--mp-red); }
.dm-deals-box .as-dots button { background: #F2B8BC; }
.dm-deals-box .as-dots button.is-active { background: var(--mp-red); }
.dm-brands-box { background: #fff; border: 1px solid var(--mp-line); border-radius: 12px; }
.dm-brand { border: 1px solid var(--mp-line); border-radius: var(--mp-radius); }
.dm-brand:hover { border-color: var(--mp-navy); transform: none; }
.dm-promo, .dm-cat-card, .dm-journal-lead, .dm-journal-item { border-radius: var(--mp-radius); }
.dm-journal-body h3 { font-size: 19px; font-weight: 700; }

/* Karusel okları: beyaz yuvarlak */
.as-arrow { border-radius: 50%; background: #fff; color: var(--mp-ink); border: 1px solid var(--mp-line); box-shadow: 0 4px 12px rgba(17, 24, 39, .12); }
.as-arrow:hover { background: var(--mp-navy); color: #fff; border-color: var(--mp-navy); }
.as-dots button { border-radius: 3px; }
.as-dots button.is-active { background: var(--mp-navy); }

/* ==========================================================================
   ÜRÜN KARTI
   ========================================================================== */
.dm-card { border: 1px solid var(--mp-line); border-radius: var(--mp-radius); box-shadow: none; transition: box-shadow .2s, border-color .2s; }
.dm-card:hover { border-color: #D3D7DE; box-shadow: 0 8px 24px rgba(17, 24, 39, .10); }
.dm-card .as-card-media { margin: 0; border-radius: var(--mp-radius) var(--mp-radius) 0 0; background: #fff; border-bottom: 1px solid #F0F1F3; }
.dm-card .as-card-media img { padding: 14px; mix-blend-mode: normal; }
.dm-card .as-card-badges { left: 10px; top: 10px; }
.dm-discount { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 4px; background: var(--mp-red); color: #fff; font-size: 12px; font-weight: 800; }
.dm-card .as-card-fav { right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(17, 24, 39, .12); color: var(--mp-sub); }
.dm-card .as-card-fav:hover { color: var(--mp-red); }
.dm-card .as-card-body { padding: 10px 12px 12px; gap: 6px; }
.dm-card-name { margin: 0; font: inherit; }
.dm-card .as-card-title { font-size: 13.5px; font-weight: 400; line-height: 1.4; color: var(--mp-ink); -webkit-line-clamp: 2; min-height: 38px; }
.dm-card-brand { font-weight: 700; color: var(--mp-ink); }
.dm-card .as-card-title:hover, .dm-card .as-card-title:hover .dm-card-brand { color: var(--mp-navy); }
.dm-card-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dm-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; }
.dm-tag .as-icon { width: 13px; height: 13px; }
.dm-tag.is-ship { background: #E8F6EE; color: var(--mp-green); }
.dm-tag.is-low { background: #FFF4E0; color: #9A5B00; }
.dm-card .as-card-price { padding-top: 2px; flex-direction: column; align-items: flex-start; gap: 0; }
.dm-card .as-price-old { font-size: 12px; }
.dm-card .as-price { font-family: var(--as-font); font-size: 17px; font-weight: 800; color: var(--mp-navy); }
.dm-card.is-discount .as-price { color: var(--mp-red); }
.dm-card .as-card-cta { height: 38px; font-size: 13.5px; border-radius: 6px; background: #fff !important; color: var(--mp-navy) !important; border: 1.5px solid var(--mp-navy) !important; }
.dm-card .as-card-cta:hover, .dm-card:hover .as-card-cta { background: var(--mp-navy) !important; color: #fff !important; border-color: var(--mp-navy) !important; }
.dm-card .as-card-cta.as-btn-outline { border-color: var(--mp-line) !important; color: var(--mp-sub) !important; }
.dm-soldout { display: inline-flex; padding: 6px 12px; border-radius: 4px; background: rgba(27, 33, 48, .85); color: #fff; font-size: 12.5px; font-weight: 700; }
@media (min-width: 1024px) {
    .dm-card .as-card-cta { opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
    .dm-card:hover .as-card-cta, .dm-card:focus-within .as-card-cta, .dm-card .as-card-cta.is-added { opacity: 1; transform: none; }
}

/* ==========================================================================
   LİSTE / KATEGORİ SAYFASI
   ========================================================================== */
.as-listing { gap: 24px; }
.as-filters .as-fnav, .as-filters .as-facc { background: #fff; border: 1px solid var(--mp-line); border-radius: var(--mp-radius); padding: 12px 14px; margin-bottom: 10px; }
.as-fnav-title { font-family: var(--as-font) !important; font-size: 15px; font-weight: 700; color: var(--mp-ink); }
.as-fnav-list a { border-radius: 6px; font-size: 13.5px; }
.as-fnav-list a.is-active { background: #EEF2F8; color: var(--mp-navy) !important; font-weight: 700; }
.as-fnav-list a.is-active small { background: #fff; color: var(--mp-navy); }
.as-facc > summary { font-size: 14px; font-weight: 700; }
.as-lhead { padding-bottom: 10px; border-bottom: 1px solid var(--mp-line); margin-bottom: 14px; }
.as-lhead h1 { font-size: 20px !important; font-weight: 700; color: var(--mp-ink); }
.as-lhead-count { font-size: 13px; color: var(--mp-sub); }
.as-sort-select { border: 1px solid var(--mp-line); border-radius: 6px; height: 38px; padding: 0 30px 0 10px; color: var(--mp-ink); font-weight: 600; }
.as-subcats a { border-radius: 999px; }
.as-pager a, .as-pager span { border-radius: 6px; }
.as-pager .is-current { background: var(--mp-navy); border-color: var(--mp-navy); }

/* ==========================================================================
   SEPET / ÖDEME / HESAP / KURUMSAL
   ========================================================================== */
.as-steps .is-active span { border-radius: 50%; }
.dm-pagehero { background: #fff; color: var(--mp-ink); border-bottom: 1px solid var(--mp-line); }
.dm-pagehero::after { display: none; }
.dm-pagehero-crumbs, .dm-pagehero-crumbs a, .dm-pagehero-meta { color: var(--mp-sub); }
.dm-pagehero-crumbs a:hover { color: var(--mp-navy); }
.dm-pagehero-eyebrow { color: var(--mp-red); }
.dm-pagehero h1 { color: var(--mp-ink); font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.dm-page { background: transparent; }
.dm-side-card a.is-active { background: #EEF2F8; color: var(--mp-navy); }
.dm-side-card a.is-active::after { color: var(--mp-navy); }
.dm-side-help { background: var(--mp-navy); }

/* ==========================================================================
   FOOTER: açık renkli
   ========================================================================== */
.dm-fcta { background: var(--mp-navy); }
.dm-fcta::before { display: none; }
.dm-fcta h2 { font-size: 22px; font-weight: 700; }
.dm-fcta .dm-head-kicker { display: inline-flex; color: #9FB6DA; }
.dm-fcta .dm-head-kicker::before { background: #9FB6DA; }
.as-footer { background: #fff; color: var(--mp-sub); border-top: 1px solid var(--mp-line); }
.as-footer-brand p { color: var(--mp-sub); }
.as-fcol h3, .as-fcol h3 button { color: var(--mp-ink) !important; font-size: 15px; }
.as-fcol h3::after { display: none; }
.as-fcol a { color: var(--mp-sub); }
.as-fcol a:hover { color: var(--mp-navy); }
.as-fcontact strong { color: var(--mp-ink); }
.as-fcontact .as-icon { color: var(--mp-navy); }
.as-fcol li button.as-link, .as-fcol li button { color: var(--mp-sub) !important; }
.as-social a { border-color: var(--mp-line); color: var(--mp-ink); }
.as-footer-brand .dm-wordmark b { color: var(--mp-navy); }
.as-footer-bottom { background: var(--mp-bg); border-top: 1px solid var(--mp-line); }
.as-footer-bottom .as-container { color: var(--mp-sub); }
.as-footer-bottom .as-payments img { background: transparent; padding: 0; }
@media (max-width: 1023px) { .as-footer-brand, .as-fcol { border-color: var(--mp-line) !important; } }

/* ==========================================================================
   MOBİL
   ========================================================================== */
.as-bottombar { left: 0; right: 0; bottom: 0; border-radius: 0; background: #fff; border-top: 1px solid var(--mp-line); box-shadow: 0 -4px 14px rgba(17, 24, 39, .06); padding-bottom: env(safe-area-inset-bottom); }
.as-bottombar a, .as-bottombar button { color: var(--mp-sub); }
.as-bottombar .is-active { color: var(--mp-navy); }
.as-bottombar .is-active::before { background: var(--mp-navy); }
@media (max-width: 1023px) {
    body.as-body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    .dm-topbar { display: none; }
    .as-header-main .as-container { height: 60px; }
    .dm-sticky-buy { bottom: calc(60px + env(safe-area-inset-bottom)); left: 0; right: 0; border-radius: 0; border-left: 0; border-right: 0; }
}
@media (min-width: 1280px) { .as-lgrid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 14px; } }
@media (max-width: 1023px) {
    .dm-head { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
    .dm-head > div { text-align: left; }
    .dm-head-title { font-size: 18px !important; }
    .dm-head-more { font-size: 13px; }
}

/* ==========================================================================
   HEADER v4 — Lacivert ana şerit, beyaz oval arama, kırmızı sepet
   Logo: koyu zemin için beyaz sürüm (FooterLogoUrl) kullanılır.
   ========================================================================== */
.dm-topbar { background: #0A1D3D; border-bottom: 1px solid rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .78); }
.dm-topbar-usp .as-icon { color: #FF7A80; }
.dm-topbar-links a { color: rgba(255, 255, 255, .78); }
.dm-topbar-links a:hover { color: #fff; }
.dm-topbar-phone { color: #fff !important; }

.as-header { background: transparent; border-bottom: 0; }
.as-header-main { background: linear-gradient(90deg, #0E2650 0%, #12305F 55%, #183B73 100%); position: relative; }
.as-header-main::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--mp-red) 0 18%, transparent 18% 100%); }
.as-header.is-scrolled .as-header-main { box-shadow: 0 6px 18px rgba(8, 26, 56, .25); }

.as-search-input { height: 48px; border-radius: 999px; background: #fff; border: 2px solid #fff; padding: 0 60px 0 22px; color: var(--mp-ink); }
.as-search-input:focus { border-color: #FF9AA0; box-shadow: 0 0 0 4px rgba(215, 38, 47, .18); }
.as-search-btn { top: 4px; right: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--mp-red); color: #fff; }
.as-search-btn:hover { background: #B21D25; color: #fff; }

.as-action, .as-action .as-icon { color: #fff !important; }
.as-action-menu-btn .as-icon { color: #fff !important; }
@media (min-width: 1024px) {
    .as-action:hover { background: rgba(255, 255, 255, .1); color: #fff; }
    .as-action:hover .as-icon { color: #fff; }
    .as-actions > button.as-action[onclick*="openCartDrawer"] { background: var(--mp-red); border: 0; color: #fff !important; border-radius: 999px; padding: 0 20px 0 16px; height: 46px; }
    .as-actions > button.as-action[onclick*="openCartDrawer"]:hover { background: #B21D25; color: #fff !important; }
    .as-actions > button.as-action[onclick*="openCartDrawer"] .as-icon { color: #fff !important; }
    .as-actions > button.as-action[onclick*="openCartDrawer"] .as-count { background: #fff; color: var(--mp-red); border-color: var(--mp-red); }
}
.as-count { border-color: #12305F; }

/* Mobil: arama satırı da lacivert zeminde */
.as-msearch { background: #12305F; padding-top: 2px; padding-bottom: 12px; }

/* Kategori şeridi: beyaz, ikon kutulu ilk öğe */
.as-nav { background: #fff; border-bottom: 1px solid var(--mp-line); box-shadow: 0 2px 8px rgba(17, 24, 39, .04); }
.as-nav-item:first-child > .as-nav-link { background: #EEF2F8; border-radius: 999px; height: 34px; align-self: center; padding: 0 16px; margin-right: 10px; }
.as-nav-item:first-child > .as-nav-link:hover, .as-nav-item:first-child.is-open > .as-nav-link { background: var(--mp-navy); color: #fff; }
@media (max-width: 1023px) {
    .as-header-main::after { display: none; }
    .as-msearch { position: relative; }
    .as-msearch::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--mp-red) 0 22%, transparent 22% 100%); }
}
