/* Mr Fish Cake — mağaza teması. Derleme gerektirmez, doğrudan bu dosya düzenlenir. */
:root {
    /* Logodaki renkler: lacivert çerçeve, mavi balık, kırmızı yazı */
    --navy: #15174a;
    --navy-2: #1d2366;
    --sea: #0a8fc4;
    --sea-light: #e8f5fb;
    --accent: #d7262d;
    --accent-dark: #b81e25;
    --text: #1d2733;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #f6f8fa;
    --white: #fff;
    --danger: #c0392b;
    --success: #1e8449;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(11, 46, 74, .08), 0 4px 12px rgba(11, 46, 74, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.25; color: var(--navy); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Üst bant ve başlık */
.announcement { background: var(--sea); color: #fff; text-align: center; font-size: .9rem; padding: 8px 16px; }
.site-header { background: #fff; color: var(--navy); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line), 0 2px 8px rgba(21, 23, 74, .06); }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--accent); text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: .2px; }
.logo:hover { color: var(--accent-dark); }
.logo img { height: 44px; width: auto; }
.search { flex: 1 1 280px; display: flex; background: var(--bg); border: 1px solid #cbd5e1; border-radius: 999px; overflow: hidden; order: 3; }
.search input { flex: 1; border: 0; padding: 10px 16px; font-size: 1rem; min-width: 0; background: transparent; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--sea); color: #fff; padding: 0 16px; cursor: pointer; }
.search svg { width: 20px; height: 20px; }
.cart-link { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: none; font-weight: 600; position: relative; }
.cart-link:hover { color: var(--sea); }
.cart-link svg { width: 24px; height: 24px; }
.cart-link .badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: .75rem; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.category-nav { background: var(--navy); }
.category-nav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.category-nav a { color: #dbeafe; text-decoration: none; padding: 10px 12px; white-space: nowrap; font-size: .95rem; border-bottom: 3px solid transparent; }
.category-nav a:hover, .category-nav a.active { color: #fff; border-bottom-color: var(--accent); }

@media (min-width: 800px) {
    .search { order: 0; max-width: 520px; }
}

/* Uyarılar */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { background: #e8f6ee; color: #14532d; border: 1px solid #b7e1c7; }
.alert-error { background: #fdecea; color: #7f1d1d; border: 1px solid #f5c2bc; }
.info-box { background: var(--sea-light); border-radius: var(--radius); padding: 10px 14px; color: var(--navy); }

/* Düğmeler */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: 12px 22px; font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-small { padding: 8px 14px; font-size: .9rem; width: 100%; }
.btn-block { display: block; width: 100%; margin: 12px 0; }
.btn-secondary { background: var(--navy-2); }
.btn-secondary:hover { background: var(--navy); }
.btn-whatsapp { background: #25d366; margin-top: 12px; }
.btn-whatsapp:hover { background: #1da851; }
.link-button { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: .9rem; padding: 4px; }

/* Ana sayfa */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, var(--navy), var(--sea)); color: #fff; border-radius: 16px; padding: 20px 28px; margin-bottom: 8px; }
.hero h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 6px; }
.hero p { margin: 0 0 14px; color: #dbeafe; font-size: 1rem; }
.hero-logo { width: clamp(90px, 14vw, 170px); height: auto; flex: 0 0 auto; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .25)); }
.section { margin-top: 36px; }
.section-title { font-size: 1.35rem; margin: 0 0 16px; }
.page-title { font-size: 1.6rem; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.05rem; }
.empty { color: var(--muted); padding: 24px 0; }

/* Kategoriler: yuvarlak küçük görsel + altında ad */
.category-grid { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.category-card { width: 96px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .88rem; line-height: 1.3; display: flex; flex-direction: column; align-items: center; text-align: center; }
.category-card > img, .category-card > .no-image { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow); transition: border-color .15s; }
.category-card:hover > img, .category-card:hover > .no-image { border-color: var(--sea); }
.category-card span:last-child { padding-top: 6px; }

/* Ürün kartları */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.product-image { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--sea-light); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.no-image { display: flex; align-items: center; justify-content: center; background: var(--sea-light); width: 100%; height: 100%; }
/* Fotoğrafı olmayan ürünlerde soluk logo */
.no-image img { width: 55% !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; opacity: .35; }
.tag { position: absolute; top: 8px; left: 8px; border-radius: 6px; padding: 2px 8px; font-size: .75rem; font-weight: 700; color: #fff; }
.tag-out { background: var(--muted); }
.tag-sale { background: var(--danger); }
.product-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-name { font-size: .98rem; margin: 0; font-weight: 600; }
.product-name a { color: var(--text); text-decoration: none; }
.product-body form { margin-top: auto; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.price-old { color: var(--muted); font-size: .9rem; }
.price-large .price-now { font-size: 1.7rem; }

/* Liste araç çubuğu ve sayfalama */
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form select { padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
.pagination a { font-weight: 600; }
.pagination .disabled { color: #cbd5e1; }

/* Ürün detay */
.product-detail { display: grid; gap: 24px; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 40px; } }
.gallery-main { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 8px; padding: 0; background: #fff; cursor: pointer; width: 72px; height: 72px; flex: 0 0 auto; overflow: hidden; }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { margin-top: 0; font-size: 1.7rem; }
.stock { font-weight: 700; }
.stock-in { color: var(--success); }
.stock-out { color: var(--danger); }
.add-to-cart { display: flex; gap: 10px; margin: 16px 0 4px; }
.add-to-cart input { width: 80px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; }
.add-to-cart .btn { flex: 1; }
.product-info .btn-whatsapp { display: block; }
.prose { background: #fff; border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); overflow-wrap: break-word; }
.page-content .prose { box-shadow: none; padding: 0; }

/* Sepet ve sipariş */
.checkout-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 1fr 360px; align-items: start; } }
.cart-list { list-style: none; margin: 0 0 16px; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "thumb info remove" "thumb qty total"; gap: 6px 12px; padding: 14px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { grid-area: thumb; width: 64px; height: 64px; border-radius: 8px; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .no-image { font-size: 1.6rem; }
.cart-item-info { grid-area: info; display: flex; flex-direction: column; }
.cart-item-info a { color: var(--text); text-decoration: none; }
.cart-item-qty { grid-area: qty; }
.cart-item-qty input { width: 72px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.cart-item-total { grid-area: total; text-align: right; }
.cart-item form { grid-area: remove; text-align: right; }
.summary { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: sticky; top: 130px; }
.summary h2 { margin-top: 0; font-size: 1.2rem; }
.summary dl, .bank-info { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0; }
.summary dd, .bank-info dd { margin: 0; text-align: right; }
.bank-info { grid-template-columns: max-content 1fr; }
.bank-info dd { text-align: left; overflow-wrap: anywhere; }
.summary-total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.summary-lines { list-style: none; padding: 0; margin: 0 0 8px; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }

/* Formlar */
.form-card { background: #fff; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 0 0 16px; }
.form-card legend { font-weight: 800; color: var(--navy); padding: 0; margin-bottom: 12px; float: left; width: 100%; font-size: 1.1rem; }
.form-card h2 { margin-top: 0; font-size: 1.2rem; }
.form-card.narrow { max-width: 440px; }
.form-grid { display: grid; gap: 12px; clear: both; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.form-card label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.form-card input[type=text], .form-card input[type=tel], .form-card input[type=email], .form-card select, .form-card textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; font-weight: 400; background: #fff;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--sea); outline: 2px solid var(--sea-light); }
.payment-option { flex-direction: row !important; align-items: flex-start; gap: 12px !important; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; clear: both; }
.payment-option span { display: flex; flex-direction: column; }
.payment-option input { margin-top: 4px; }
.checkbox { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; clear: both; }
.checkbox input { margin-top: 5px; }

/* Sipariş sonucu ve takip */
.success-box { text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 20px; margin-bottom: 16px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success); color: #fff; font-size: 2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.error-logo { width: 160px; height: auto; margin: 0 auto 12px; }
.order-number { font-size: 1.3rem; color: var(--navy); letter-spacing: .5px; }
.status { padding: 2px 10px; border-radius: 999px; background: var(--sea-light); color: var(--navy); }
.status-teslim_edildi { background: #e8f6ee; color: #14532d; }
.status-iptal { background: #fdecea; color: #7f1d1d; }

/* Alt bilgi */
.site-footer { background: var(--navy); color: #cbd5e1; padding-top: 32px; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-title { color: #fff; display: block; margin-bottom: 8px; }
.footer-logo { width: 150px; height: auto; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 24px; padding-top: 14px; padding-bottom: 20px; font-size: .85rem; }

/* WhatsApp düğmesi */
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); z-index: 30; }
.whatsapp-float:hover { color: #fff; background: #1da851; }
.whatsapp-float svg { width: 32px; height: 32px; }

/* Dar ekranda ana sayfa başlığı: logo üstte, yazı altta */
@media (max-width: 560px) {
    .hero { flex-direction: column-reverse; text-align: center; padding: 18px 16px; gap: 10px; }
}

/* Sipariş hattı şeridi (ana sayfa) */
.order-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-top: 12px; }
.order-line-phones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.order-line-phones strong { color: var(--navy); margin-right: 4px; }
.order-line-phones a { background: var(--sea-light); color: var(--navy); text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.order-line-phones a:hover { background: var(--sea); color: #fff; }

/* Sosyal medya ikonları */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff !important; background: var(--navy); transition: transform .15s; }
.social-links a:hover { transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }
.social-youtube { background: #ff0000 !important; }
.social-instagram { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888) !important; }
.social-facebook { background: #1877f2 !important; }
.social-twitter, .social-tiktok { background: #000 !important; }
.site-footer .social-links { margin-top: 12px; }
