﻿/* Sepet — site genelinde: üst menüdeki sepet simgesi ve bildirim */
.nav-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.nav-cart svg { width: 20px; height: 20px; }
.cart-count {
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent-color, #b89b72); color: #000;
    font-size: .68rem; font-weight: 700; line-height: 19px; text-align: center; display: inline-block;
}
.cart-count.is-empty { display: none; }
@media (min-width: 1025px) { .nav-right { display: flex; align-items: center; gap: 22px; } }

.cart-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; z-index: 3000;
    background: #14161a; color: #fff; border: 1px solid rgba(201,160,80,.5); border-radius: 50px; padding: 12px 22px;
    display: flex; gap: 16px; align-items: center; box-shadow: 0 14px 40px rgba(0,0,0,.5); transition: all .35s ease; font-size: .92rem;
}
.cart-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cart-toast a { color: var(--accent-color, #c9a050); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Footer iletişim satırları (ikonlu) */
.footer-contact .phones .fc-item { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-muted); text-decoration: none; font-size: .9rem; line-height: 1.5; }
.footer-contact .phones a.fc-item:hover { color: var(--accent-color, #b89b72); }
.footer-contact .phones .fc-ico { display: inline-flex; flex: 0 0 auto; color: var(--accent-color, #b89b72); }
.footer-contact .phones .fc-item strong { color: #fff; font-weight: 600; }

/* ---------- Sepet sayfası ---------- */
.cart-page { position: relative; background: #000; color: #e8e8e8; min-height: 100vh; padding: 130px 5% 100px; overflow: hidden; }
.cart-page::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 60px 60px; }
.cart-inner { position: relative; max-width: 1240px; margin: 0 auto; }
.cart-head { margin-bottom: 36px; }
.cart-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 300; letter-spacing: .04em; color: #fff; margin: 0 0 10px; }
.cart-head p { color: #9aa0aa; margin: 0; max-width: 640px; line-height: 1.7; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; background: #050505; border: 1px solid #1a1a1a; border-radius: 8px; padding: 14px; }
.cart-item-img { width: 96px; height: 96px; background: #fff; border-radius: 4px; padding: 6px; display: flex; align-items: center; justify-content: center; }
.cart-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cart-item-info .code { font-size: .7rem; letter-spacing: 2px; color: var(--accent-color, #c9a050); text-transform: uppercase; font-weight: 600; }
.cart-item-info h3 { font-size: 1rem; font-weight: 400; color: #fff; margin: 4px 0 8px; line-height: 1.35; }
.cart-item-info h3 a { color: inherit; text-decoration: none; }
.cart-item-info h3 a:hover { color: var(--accent-color, #c9a050); }
.cart-item-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cart-chip { font-size: .75rem; color: #b6bbc4; background: #111; border: 1px solid #222; border-radius: 50px; padding: 4px 12px; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid #2a2a2a; border-radius: 50px; overflow: hidden; }
.cart-qty button { background: transparent; color: #fff; border: none; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; }
.cart-qty button:hover { background: #1a1a1a; }
.cart-qty span { min-width: 34px; text-align: center; font-weight: 600; }
.cart-remove { background: none; border: none; color: #8a8f98; font-size: .8rem; cursor: pointer; padding: 0; }
.cart-remove:hover { color: #ff8b8b; }
.cart-list-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px; color: #9aa0aa; font-size: .9rem; }
.cart-list-foot button { background: none; border: none; color: #9aa0aa; cursor: pointer; text-decoration: underline; }

.cart-empty { text-align: center; padding: 70px 20px; border: 1px dashed #2a2a2a; border-radius: 12px; background: #050505; }
.cart-empty h2 { font-weight: 300; color: #fff; margin: 0 0 10px; }
.cart-empty p { color: #8a8f98; margin-bottom: 26px; }

.cart-side { position: sticky; top: 110px; }
.cart-box { background: rgba(25, 27, 33, .65); border: 1px solid rgba(184, 155, 114, .2); border-radius: 12px; padding: 26px; }
.cart-box h2 { font-size: 1.1rem; font-weight: 400; letter-spacing: .06em; color: #fff; margin: 0 0 6px; }
.cart-box > p { color: #9aa0aa; font-size: .88rem; line-height: 1.6; margin: 0 0 18px; }
.cart-summary { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; margin-bottom: 18px; font-size: .92rem; }
.cart-summary b { color: #fff; }
.cart-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cart-field label { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-color, #b89b72); }
.cart-field input, .cart-field textarea { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; color: #fff; padding: 12px 14px; font: inherit; width: 100%; }
.cart-field input:focus, .cart-field textarea:focus { outline: none; border-color: var(--accent-color, #b89b72); background: rgba(255,255,255,.07); }
.cart-err { color: #ff8b8b; font-size: .8rem; }
.cart-err:empty { display: none; }
.cart-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; opacity: .85; margin: 6px 0 4px; cursor: pointer; }
.cart-consent input { margin-top: 3px; accent-color: var(--accent-color, #b89b72); width: 17px; height: 17px; flex: 0 0 auto; }
.cart-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cart-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cart-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border-radius: 50px; font-size: .9rem; letter-spacing: .08em; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: all .25s; font-family: inherit; }
.cart-btn-gold { background: #c9a050; color: #000; font-weight: 600; }
.cart-btn-gold:hover { background: #e0b862; }
.cart-btn-wa { border-color: rgba(255,255,255,.25); color: #fff; background: transparent; }
.cart-btn-wa:hover { background: #25D366; border-color: #25D366; color: #000; }
.cart-btn.disabled, .cart-btn:disabled { opacity: .4; pointer-events: none; }
.cart-alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; line-height: 1.5; font-size: .92rem; }
.cart-alert.ok { background: rgba(60,170,110,.12); border: 1px solid rgba(60,170,110,.4); color: #b8f0d0; }
.cart-alert.err { background: rgba(220,80,80,.12); border: 1px solid rgba(220,80,80,.4); color: #ffc4c4; }
.cart-success { text-align: center; padding: 60px 20px; border: 1px solid rgba(60,170,110,.35); border-radius: 12px; background: rgba(60,170,110,.07); }
.cart-success h2 { font-weight: 300; color: #fff; margin: 0 0 10px; }
.cart-success p { color: #b8f0d0; margin-bottom: 24px; }

/* Ürün detay: sepete ekle */
.pd-qty { display: inline-flex; align-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 50px; overflow: hidden; }
.pd-qty button { background: transparent; color: #fff; border: none; width: 40px; height: 46px; font-size: 1.2rem; cursor: pointer; }
.pd-qty button:hover { background: #1a1a1a; }
.pd-qty input { width: 44px; text-align: center; background: transparent; border: none; color: #fff; font-weight: 600; -moz-appearance: textfield; }
.pd-qty input::-webkit-outer-spin-button, .pd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

@media (max-width: 960px) {
    .cart-layout { grid-template-columns: 1fr; }
    .cart-side { position: static; }
}
@media (max-width: 560px) {
    .cart-item { grid-template-columns: 72px 1fr; }
    .cart-item-img { width: 72px; height: 72px; }
    .cart-item-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Menüde 6 öğe + sepet var: dar masaüstü genişliklerinde sıkıştırılmış yerleşim */
@media (min-width: 1025px) and (max-width: 1360px) {
    .nav-container { padding-left: 24px; padding-right: 24px; gap: 16px; }
    .nav-links { gap: 18px; }
    .nav-link { font-size: .74rem; letter-spacing: .06em; }
    .nav-right { gap: 14px; }
    .brand-logo { max-height: 44px; }
}
