/* ==========================================================================
   Mağaza — çok sayfalı + sepet mantıklı e-ticaret şablonu
   Paylaşılan stiller (ana grid + ürün sayfaları)
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f2f5;
    color: #111b21;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 666px; margin: 0 auto; padding: 10px; }

/* ---- Üst marka çubuğu ---------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 80; background: #fff; border-bottom: 1px solid #eceef0; }
.topbar-in { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topbar .logo { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: .18em; color: #111; text-decoration: none; }
.topbar .logo .cart-count-pill { letter-spacing: normal; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: none; background: #f0f2f5; cursor: pointer; position: relative; text-decoration: none; color: #111; }
.icon-btn:hover { background: #e5e7eb; }
.icon-btn svg { width: 22px; height: 22px; }
.wa-ic { color: #25d366; }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; }
.cart-badge.show { display: inline-flex; }

/* ---- Ana grid ------------------------------------------------------------ */
.home-hero { text-align: center; padding: 26px 16px 6px; }
.home-hero h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: .16em; color: #111; }
.home-hero p { margin: 8px 0 0; color: #6b6c6c; font-size: 14px; }
.grid { max-width: 1100px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { position: relative; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; display: flex; flex-direction: column; min-height: 300px; padding: 26px 22px 0; transition: transform .15s, box-shadow .15s; box-shadow: 0 8px 24px -12px rgba(0,0,0,.35); }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); }
.tile h2 { margin: 0; font-size: 22px; font-weight: 800; text-align: center; letter-spacing: -.01em; }
.tile .t-sub { margin: 8px 0 0; text-align: center; font-size: 14px; font-weight: 500; opacity: .95; }
.tile .t-cta { margin: 12px 0 0; text-align: center; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.tile .t-img { margin-top: auto; align-self: center; max-height: 210px; width: auto; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(0,0,0,.28)); pointer-events: none; }
@media (max-width: 560px) {
    .grid { grid-template-columns: 1fr; gap: 14px; padding: 12px; }
    .tile { min-height: 260px; }
}

/* ---- Ürün sayfası kart --------------------------------------------------- */
.card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 16px -8px rgba(0,0,0,.08); }
.brand-hero { margin: -22px -22px 18px; border-radius: 14px 14px 0 0; background: #f0f2f5; overflow: hidden; display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.brand-img-tile { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-drag: none; }
.p-hero-head { text-align: center; margin: 0 0 14px; }
.p-hero-head h1 { margin: 0; font-size: 22px; font-weight: 800; color: #111; letter-spacing: -.01em; }
.p-hero-head p { margin: 6px 0 0; color: #6b6c6c; font-size: 14px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #6b6c6c; text-decoration: none; }
.back-link:hover { color: #00a884; }

/* ---- Promo şerit --------------------------------------------------------- */
.promo-strip { margin: 0 0 12px; padding: 13px 18px; background: linear-gradient(135deg, #dc2626 0%, #f97316 100%); color: #fff; border-radius: 12px; text-align: center; position: relative; overflow: hidden; box-shadow: 0 4px 14px -4px rgba(220,38,38,.4); }
.promo-shine { position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: promo-shine 3s linear infinite; pointer-events: none; }
@keyframes promo-shine { 0% { left: -50%; } 100% { left: 110%; } }
.promo-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; align-items: center; }
.promo-sub { font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; opacity: .95; }
.promo-big { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; animation: promo-pulse 2.4s ease-in-out infinite; }
@keyframes promo-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.promo-count { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11.5px; font-weight: 700; margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.promo-count b { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.05; text-shadow: 0 2px 8px rgba(0,0,0,.25); }

.top-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; justify-content: center; }
.top-badges .tb { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: #d1fae5; color: #065f46; font-weight: 700; }

/* ---- Açıklama ------------------------------------------------------------ */
.p-desc { font-size: 14px; line-height: 1.6; color: #374151; margin: 0 0 16px; }
.p-desc p { margin: 0 0 10px; }
.p-desc ul { margin: 0 0 10px; padding-left: 18px; }
.p-desc li { margin-bottom: 5px; }
.p-desc strong { color: #111; }

/* ---- Bölüm başlığı ------------------------------------------------------- */
.sec-title { font-size: 16px; font-weight: 800; color: #111; margin: 4px 0 10px; }
.sec-sub { font-size: 12.5px; color: #6b6c6c; margin: -6px 0 12px; }

/* ---- Paket seçenekleri (Sepete Ekle) ------------------------------------- */
.bundle-list { display: grid; gap: 8px; margin-bottom: 8px; }
.bundle { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #d1d7db; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.bundle.best { border-color: #00a884; box-shadow: 0 0 0 3px rgba(0,168,132,.12); }
.bundle .b-img { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; background: #f0f2f5; flex: 0 0 auto; }
.bundle .b-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bundle .b-name { font-size: 14px; font-weight: 700; color: #111; }
.bundle .b-tag { font-size: 12px; color: #ff4f00; font-weight: 700; }
.bundle .b-price { font-size: 14.5px; font-weight: 800; color: #00a884; }
.bundle .b-old { font-size: 12.5px; color: #9ca3af; text-decoration: line-through; margin-right: 6px; font-weight: 600; }
.btn-add { flex: 0 0 auto; background: #00a884; color: #fff; border: none; padding: 11px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background .15s, transform .05s; }
.btn-add:hover { background: #008069; }
.btn-add:active { transform: translateY(1px); }
.btn-add.added { background: #059669; }

/* ---- Çapraz satış -------------------------------------------------------- */
.xsell { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.xitem { border: 1px solid #eceef0; border-radius: 12px; padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 6px; text-align: center; }
.xitem img { width: 100%; height: 96px; object-fit: contain; }
.xitem .x-name { font-size: 13px; font-weight: 700; color: #111; line-height: 1.25; }
.xitem .x-sub { font-size: 11px; color: #6b6c6c; line-height: 1.3; min-height: 28px; }
.xitem .x-price { font-size: 13.5px; font-weight: 800; color: #00a884; }
.xitem .x-old { font-size: 11.5px; color: #9ca3af; text-decoration: line-through; margin-right: 5px; }
.xitem .btn-add { width: 100%; margin-top: auto; }
.xitem .x-open { font-size: 11px; color: #6b6c6c; text-decoration: none; }
.xitem .x-open:hover { color: #00a884; }

/* ---- Sepet --------------------------------------------------------------- */
.cart-box { border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 14px; margin: 8px 0 16px; background: #fbfdfc; }
.cart-box .cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cart-box .cart-head h3 { margin: 0; font-size: 15px; font-weight: 800; color: #111; }
.cart-box .cart-clear { border: none; background: transparent; color: #9ca3af; font-size: 12px; cursor: pointer; font-family: inherit; }
.cart-box .cart-clear:hover { color: #dc2626; }
.cart-empty { text-align: center; color: #6b6c6c; font-size: 13.5px; padding: 12px; }
.cart-items { display: grid; gap: 8px; }
.cart-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #eceef0; border-radius: 10px; background: #fff; }
.cart-item .ci-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #f0f2f5; flex: 0 0 auto; }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-name { font-size: 13px; font-weight: 700; color: #111; line-height: 1.25; }
.cart-item .ci-var { font-size: 11.5px; color: #6b6c6c; }
.cart-item .ci-price { font-size: 13px; font-weight: 800; color: #00a884; }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid #d1d7db; border-radius: 8px; overflow: hidden; }
.qty button { width: 28px; height: 28px; border: none; background: #f0f2f5; color: #111; font-size: 16px; cursor: pointer; line-height: 1; font-family: inherit; }
.qty button:hover { background: #e5e7eb; }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; }
.ci-remove { border: none; background: transparent; color: #cbd0d6; cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 4px; flex: 0 0 auto; }
.ci-remove:hover { color: #dc2626; }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px dashed #d1d7db; font-size: 15px; }
.cart-total b { font-size: 18px; font-weight: 800; color: #111; }

/* ---- Form ---------------------------------------------------------------- */
form { display: grid; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #111; }
label > .lbl { display: inline-flex; align-items: center; gap: 4px; }
label > .lbl .req { color: #dc2626; }
input, select, textarea {
    width: 100%; padding: 11px 13px; background: #fff; color: #111;
    font-size: 16px; font-family: inherit; font-weight: 500;
    border: 1px solid #d1d7db; border-radius: 10px; outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6c6c' stroke-width='2.5'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px;
}
textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: #00a884; box-shadow: 0 0 0 3px rgba(0,168,132,.18); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.consent { flex-direction: row; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #4b5563; font-weight: 500; }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.btn { background: #00a884; color: #fff; border: none; padding: 14px 18px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s, transform .05s; font-family: inherit; }
.btn:hover { background: #008069; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #9ca3af; cursor: not-allowed; }
.btn-block { width: 100%; }
.err { background: #fee2e2; color: #991b1b; padding: 10px 12px; border-radius: 8px; font-size: 13.5px; display: none; margin-bottom: 10px; }
.err.show { display: block; }
.wa-order-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 13px 18px; border-radius: 10px; background: #fff; color: #00a884; border: 2px solid #00a884; font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: none; font-family: inherit; }
.wa-order-btn:hover { background: #f0fdf9; }
.foot-note { margin-top: 14px; text-align: center; font-size: 12px; color: #9ca3af; }

/* ---- Yorumlar ------------------------------------------------------------ */
.reviews { display: grid; gap: 8px; margin: 0 0 14px; }
.review { background: #f7f8fa; border: 1.5px solid #eef0f2; border-radius: 10px; padding: 10px 12px; position: relative; overflow: hidden; animation: rev-in .45s ease; }
.review::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); transform: skewX(-20deg); animation: rev-shine 1s ease-out .15s 1 both; pointer-events: none; }
@keyframes rev-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes rev-shine { to { left: 120%; } }
.review .r-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.review .r-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.review .r-name { font-size: 13px; font-weight: 700; }
.review .r-stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.review .r-text { font-size: 13px; color: #374151; line-height: 1.45; margin: 0; }

/* ---- Footer -------------------------------------------------------------- */
.site-foot { max-width: 1100px; margin: 0 auto; padding: 32px 16px 90px; color: #4b5563; font-size: 13.5px; line-height: 1.55; }
.site-foot .foot-brand-desc { color: #6b6c6c; margin: 0; font-size: 12.5px; line-height: 1.5; }
.site-foot .foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 22px; }
.site-foot .foot-col h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #111; }
.site-foot .foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot .foot-col a { color: #4b5563; text-decoration: none; font-size: 13px; cursor: pointer; transition: color .15s; }
.site-foot .foot-col a:hover { color: #00a884; }
.site-foot .foot-copy { padding-top: 18px; border-top: 1px solid #e5e7eb; text-align: center; font-size: 14px; color: #000; }
@media (max-width: 600px) { .site-foot .foot-cols { grid-template-columns: 1fr 1fr; gap: 18px; } .site-foot { padding: 24px 16px 90px; } }

/* ---- Modaller ------------------------------------------------------------ */
.overlay { position: fixed; inset: 0; background: rgba(17, 27, 33, .55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.overlay.show { display: flex; }
.modal { background: #fff; border-radius: 16px; max-width: 380px; width: 100%; padding: 30px 26px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2); animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.modal-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #d1fae5; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #059669; }
.modal h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: #111; }
.modal p { margin: 0 0 22px; color: #6b6c6c; font-size: 14.5px; line-height: 1.5; }
.modal-code { display: inline-block; margin-bottom: 18px; background: #f0f2f5; color: #111; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; font-weight: 700; letter-spacing: .04em; padding: 6px 12px; border-radius: 8px; }
.modal .btn { width: 100%; }
.info-modal { max-width: 520px; text-align: left; padding: 26px 24px 22px; position: relative; max-height: 80vh; overflow-y: auto; }
.info-modal h2 { text-align: left; margin: 0 0 14px; font-size: 18px; padding-right: 30px; }
.info-modal .info-body { color: #374151; font-size: 14px; line-height: 1.65; }
.info-modal .info-body p { margin: 0 0 10px; }
.info-modal .info-body ul { padding-left: 18px; margin: 0 0 10px; }
.info-modal .info-body li { margin-bottom: 5px; }
.info-modal .info-body strong { color: #111; font-weight: 600; }
.info-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; border: none; background: #f0f2f5; color: #374151; cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.info-x:hover { background: #e5e7eb; }
.offer-modal-box { position: relative; }
.offer-badge { display: inline-block; background: #dc2626; color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; margin-bottom: 10px; }
.offer-close { position: absolute; top: 10px; right: 10px; border: none; background: #f0f2f5; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 14px; color: #54656f; }
.offer-timer-wrap b { color: #dc2626; font-variant-numeric: tabular-nums; }

/* ---- Sticky sepet çubuğu (mobil) ----------------------------------------- */
.sticky-cart { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.14); padding: 10px 14px; display: none; align-items: center; gap: 10px; z-index: 90; }
.sticky-cart.show { display: flex; }
.sticky-cart .sc-text { flex: 1; min-width: 0; display: grid; }
.sticky-cart .sc-text b { font-size: 13.5px; line-height: 1.25; }
.sticky-cart .sc-text span { font-size: 12px; color: #dc2626; font-weight: 700; font-variant-numeric: tabular-nums; }
.sticky-cart .btn { background: #dc2626; white-space: nowrap; padding: 12px 16px; }
.sticky-cart .btn:hover { background: #b91c1c; }
body.has-sticky { padding-bottom: 76px; }
