:root {
  --red: #D91E1A;
  --red-dark: #A81410;
  --red-light: #FCEAE9;
  --ink: #1A1A1A;
  --ink-soft: #2A2A2A;
  --bg: #FFFFFF;
  --bg-soft: #F7F7F8;
  --gray: #6B6B6B;
  --border: rgba(0,0,0,.08);
  --star: #F5A623;
  --green: #1E9E4A;
  --green-dark: #157A38;
  --green-light: #E8F7EE;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font-family: inherit; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ---------- Duyuru cubugu ---------- */
.announcement-bar { background: var(--ink); color: #fff; font-size: 13px; }
.announcement-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 16px; flex-wrap: wrap; }
.announcement-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; opacity: .85; }
.announcement-left .sep { opacity: .4; }
.announcement-right { display: flex; align-items: center; gap: 18px; }
.announcement-right a { text-decoration: none; color: #fff; opacity: .85; }
.announcement-right a:hover { opacity: 1; color: var(--red); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 28px; padding: 18px 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 52px; width: auto; }
.logo .logo-text { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: .3px; }
.logo .logo-text span { color: var(--red); }
.logo-tagline { display: flex; flex-direction: column; line-height: 1.25; }
.logo-tagline-name { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.logo-tagline-slogan { font-size: 12px; font-style: italic; font-weight: 600; color: var(--red); }

.search-form { flex: 1; display: flex; min-width: 220px; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; }
.search-form input { flex: 1; border: none; padding: 12px 16px; font-size: 14px; outline: none; }
.search-form button { border: none; background: var(--red); color: #fff; padding: 0 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search-form button:hover { background: var(--red-dark); }

.header-icons { display: flex; align-items: center; gap: 22px; }
.header-icon-link { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); font-size: 11px; font-weight: 600; white-space: nowrap; position: relative; }
.header-icon-link:hover { color: var(--red); }
.header-icon-link svg { display: block; }
.header-icon-link.cart-link { color: var(--red); cursor: pointer; }
.cart-badge { position: absolute; top: -6px; right: -10px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

/* ---------- Mini sepet (hover panel) ---------- */
.mini-cart-wrapper { position: relative; }
.mini-cart-panel {
  display: none;
  position: absolute; top: 100%; right: 0; margin-top: 14px; width: min(320px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--red);
  border-radius: 0 0 12px 12px; box-shadow: 0 16px 32px rgba(0,0,0,.16); padding: 16px; z-index: 50;
}
.mini-cart-wrapper:hover .mini-cart-panel,
.mini-cart-wrapper.mini-cart-open .mini-cart-panel { display: block; }
.mini-cart-empty { font-size: 13px; color: var(--gray); text-align: center; padding: 12px 0; }
.mini-cart-items { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; margin-bottom: 12px; }
.mini-cart-item { display: flex; gap: 10px; align-items: center; }
.mini-cart-item-thumb { width: 44px; height: 44px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; flex-shrink: 0; }
.mini-cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-cart-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-cart-item-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-cart-item-meta { font-size: 12px; color: var(--gray); }
.mini-cart-totals { border-top: 1px solid var(--border); padding-top: 10px; margin-bottom: 12px; }
.mini-cart-totals-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray); padding: 3px 0; }
.mini-cart-totals-genel { font-weight: 800; color: var(--ink); font-size: 14px; }
.mini-cart-cta { display: block; text-align: center; width: 100%; }

/* ---------- Kategori mega menu ---------- */
.category-menu { background: var(--ink); position: relative; z-index: 30; }
.category-menu-row { display: flex; gap: 8px; overflow: visible; padding: 0 16px; }
.category-menu-item { position: relative; }
.category-menu-item > a,
.category-menu-row > a {
  display: block; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500;
  white-space: nowrap; padding: 13px 14px;
}
.category-menu-item > a:hover,
.category-menu-row > a:hover { color: #fff; background: var(--red); }

.category-mega {
  display: none;
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--red);
  border-radius: 0 0 10px 10px; box-shadow: 0 12px 28px rgba(0,0,0,.14);
  padding: 10px 0; flex-direction: column;
}
.category-menu-item:hover .category-mega { display: flex; }
.category-mega a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 9px 18px; }
.category-mega a:hover { background: var(--red-light); color: var(--red-dark); }

/* ---------- Hizli erisim ikon satiri ---------- */
.quick-links-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 28px 16px 8px; }
@media (min-width: 720px) { .quick-links-row { grid-template-columns: repeat(6, 1fr); } }
.quick-link { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; }
.quick-link-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); transition: transform .15s ease, box-shadow .15s ease; }
.quick-link-icon-1 { background: var(--red); }
.quick-link-icon-2 { background: var(--ink); }
.quick-link-icon-3 { background: var(--red-dark); }
.quick-link-icon-4 { background: #444; }
.quick-link-icon-5 { background: var(--red); }
.quick-link-icon-6 { background: #25D366; }
.quick-link:hover .quick-link-icon { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.18); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; border-radius: 16px; padding: 40px; margin: 32px 16px; border-top: 4px solid var(--red); }
.hero h1 { font-size: 28px; max-width: 560px; margin: 0 0 12px; }
.hero p { max-width: 480px; opacity: .8; }
.hero .btn { display: inline-block; margin-top: 16px; background: var(--red); color: #fff; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.hero .btn:hover { background: var(--red-dark); }

/* ---------- Bolumler / urun grid ---------- */
.section { padding: 24px 16px; }
.section h2 { font-size: 20px; margin-bottom: 18px; font-weight: 800; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .product-grid { grid-template-columns: repeat(5, 1fr); } }

.product-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.product-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.1); border-color: var(--red); transform: translateY(-2px); }
.product-card-link { text-decoration: none; color: inherit; display: block; }
.product-wishlist { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; border: none; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #E0A31A; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.product-wishlist:hover { color: var(--red); }
.product-wishlist-detail { position: absolute; top: 12px; right: 12px; }
.product-wishlist-form { position: absolute; top: 14px; right: 14px; z-index: 2; margin: 0; }
.site-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.site-pagination-link { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--border, #e2e2e2); border-radius: 6px; text-decoration: none; color: var(--ink, #222); font-size: 13px; background: #fff; }
.site-pagination-link:hover { border-color: var(--red, #c0392b); color: var(--red, #c0392b); }
.site-pagination-active { background: var(--red, #c0392b); border-color: var(--red, #c0392b); color: #fff; font-weight: 600; }
.site-pagination-active:hover { color: #fff; }
.site-pagination-disabled { opacity: .4; pointer-events: none; }
.site-pagination-dots { border: none; background: none; min-width: auto; padding: 0 4px; }
.product-wishlist-form .product-wishlist { position: static; }
.product-wishlist-active { color: var(--red); }
.product-wishlist-active svg { fill: currentColor; }
.thumb { aspect-ratio: 1/1; background: var(--bg-soft); border-radius: 8px; margin-bottom: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-rating { display: flex; gap: 2px; color: #D8D8D8; margin-bottom: 4px; }
.product-card h3 { font-size: 14px; margin: 4px 0; font-weight: 500; line-height: 1.35; }
.product-card .price,
.price { font-size: 16px; font-weight: 800; color: var(--red); }
.product-card .price small,
.price small { font-size: 11px; font-weight: 600; color: var(--gray); }
.product-badge { position: absolute; top: 20px; left: 20px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 6px; z-index: 1; }
.product-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--red); margin-bottom: 6px; }
.empty-state { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; text-align: center; color: var(--gray); }

/* ---------- Miktar secici (qty stepper) ---------- */
.qty-stepper { display: flex; align-items: center; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; overflow: hidden; margin-top: 10px; width: fit-content; }
.qty-btn { background: var(--bg-soft); border: none; width: 30px; height: 32px; font-size: 16px; font-weight: 700; cursor: pointer; color: var(--ink); }
.qty-btn:hover { background: var(--red-light); color: var(--red-dark); }
.qty-input { width: 40px; border: none; border-left: 1px solid rgba(0,0,0,.1); border-right: 1px solid rgba(0,0,0,.1); text-align: center; font-size: 14px; height: 32px; -moz-appearance: textfield; }
.qty-stepper-lg .qty-btn { width: 38px; height: 40px; font-size: 18px; }
.qty-stepper-lg .qty-input { width: 54px; height: 40px; }

.btn-cart-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); padding: 9px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; }
.btn-cart-add:hover { background: var(--ink); color: #fff; }
.btn-cart-add-lg { max-width: 220px; padding: 12px; font-size: 14px; margin-top: 0; }
.product-detail-cart-form { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.product-detail-cart-form .qty-stepper { margin-top: 0; }

/* ---------- Guven seridi (footer ustu) ---------- */
.trust-strip { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 40px; }
.trust-strip-grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 32px 16px; }
@media (min-width: 800px) { .trust-strip-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-strip-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-strip-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; }
.trust-strip-item strong { display: block; margin-bottom: 4px; font-size: 14px; }
.trust-strip-item p { font-size: 13px; color: var(--gray); line-height: 1.4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.footer-newsletter-row { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 40px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 800px) { .footer-newsletter-row { grid-template-columns: 1fr 1fr; } }
.footer-social-title { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.footer-social-icons { display: flex; gap: 10px; margin-top: 14px; }
.footer-social-icons a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; text-decoration: none; color: #fff; }
.footer-social-icons a:hover { background: var(--red); }
.footer-newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.footer-newsletter-form input { flex: 1; min-width: 160px; padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 14px; }
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.footer-newsletter-form button { background: var(--red); color: #fff; border: none; padding: 11px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.footer-newsletter-form button:hover { background: var(--red-dark); }

.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 40px 16px; font-size: 14px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-title { font-weight: 700; margin-bottom: 10px; }
.footer-muted { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-grid a:hover { color: var(--red); }
.footer-copy { text-align: center; font-size: 12px; color: rgba(255,255,255,.5); border-top: 1px solid rgba(255,255,255,.1); padding: 16px; }
.footer-copy-slogan { font-style: italic; color: var(--red); margin-left: 6px; }

/* ---------- Genel bilesenler ---------- */
.alert { border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: 14px; }
.alert-success { background: var(--green-light); color: var(--green-dark); }
.alert-error { background: var(--red-light); color: var(--red-dark); }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.form-field input, .form-field textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(0,0,0,.2); border-radius: 8px; font-size: 14px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--red); }
.btn-primary { background: var(--red); color: #fff; border: none; padding: 10px 22px; border-radius: 8px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { display: inline-block; background: #fff; color: var(--ink); border: 1px solid rgba(0,0,0,.2); padding: 10px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 14px; }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }

.filters { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.page-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px 16px; }
@media (min-width: 800px) { .page-layout { grid-template-columns: 240px 1fr; } }

.product-detail { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 24px 16px; }
@media (min-width: 800px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail .image { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-detail .image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price-row { display: flex; align-items: baseline; gap: 8px; margin: 12px 0; }
.product-detail .price-row .price { font-size: 24px; font-weight: 700; color: var(--red); }

/* ---------- Sepet basari modali ---------- */
.cart-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.cart-modal-overlay:not([hidden]) { display: flex; }
.cart-modal-overlay[hidden] { display: none; }
.cart-modal { background: #fff; border-radius: 16px; padding: 32px; max-width: 360px; width: 100%; text-align: center; }
.cart-modal-icon { color: #1E9E4A; margin-bottom: 12px; }
.cart-modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.cart-modal p { font-size: 14px; color: var(--gray); margin-bottom: 20px; }
.cart-modal-actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Sepet sayfasi ---------- */
.cart-page-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
@media (min-width: 900px) { .cart-page-grid { grid-template-columns: 1fr 320px; } }
.cart-page-list { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.cart-page-list-header { display: grid; grid-template-columns: 1fr 100px 140px 100px; gap: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--gray); padding: 0 4px 12px; border-bottom: 2px solid var(--border); margin-bottom: 8px; }
.cart-page-list-header span:nth-child(1) { grid-column: 1 / span 1; margin-left: 76px; }

.cart-row { display: grid; grid-template-columns: 60px 1fr 100px 140px 100px; gap: 16px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.cart-row:last-of-type { border-bottom: none; }
.cart-row-thumb { width: 60px; height: 60px; border-radius: 8px; background: var(--bg-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cart-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cart-row-info a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.cart-row-info a:hover { color: var(--red); }
.cart-row-remove-link { background: none; border: none; color: var(--red); font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; text-align: left; }
.cart-row-remove-link:hover { color: var(--red-dark); text-decoration: underline; }
.cart-row-unit { font-size: 14px; color: var(--gray); }
.cart-row-total { font-weight: 800; color: var(--ink); white-space: nowrap; }
.cart-continue-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.cart-continue-link:hover { color: var(--red); }

.cart-summary { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--gray); }
.cart-summary-total { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; font-weight: 800; font-size: 16px; color: var(--ink); }
.cart-summary-coupon { display: flex; gap: 8px; margin-top: 16px; }
.cart-summary-coupon input { flex: 1; padding: 9px 12px; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; font-size: 13px; }

@media (max-width: 700px) {
  .cart-page-list-header { display: none; }
  .cart-row { grid-template-columns: 56px 1fr; grid-template-areas: "thumb info" "unit unit" "qty qty" "total total"; row-gap: 8px; }
  .cart-row-thumb { grid-area: thumb; }
  .cart-row-info { grid-area: info; }
  .cart-row-unit { grid-area: unit; }
  .cart-row.qty-stepper,
  .cart-row > .qty-stepper { grid-area: qty; }
  .cart-row-total { grid-area: total; text-align: right; }
}

/* ==========================================================
   Mobil / Tablet duzeltmeleri (genel gozden gecirme)
   ========================================================== */

/* Duyuru cubugu: mobilde tek satira indir */
@media (max-width: 640px) {
  .announcement-row { font-size: 11px; gap: 6px; padding: 6px 12px; }
  .announcement-right { gap: 12px; }
  .announcement-right a:not(:first-child) { display: none; }
}

/* Header: logo/arama/ikonlar mobilde sikismasin */
@media (max-width: 640px) {
  .header-row { gap: 10px 14px; padding: 12px 16px; }
  .logo img { height: 36px; }
  .logo-tagline-name { font-size: 14px; }
  .logo-tagline-slogan { display: none; }
  .search-form { order: 3; flex-basis: 100%; width: 100%; }
  .header-icons { margin-left: auto; gap: 14px; }
  .header-icon-link span { display: none; }
  .header-icon-link svg { width: 22px; height: 22px; }
  .cart-badge { top: -4px; right: -8px; }
}

/* Kategori menusu: tasmasin, yatay kaydirilsin */
@media (max-width: 900px) {
  .category-menu-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-menu-row::-webkit-scrollbar { display: none; }
  .category-menu-item,
  .category-menu-row > a { flex-shrink: 0; }
}

/* Hero mobilde daha kompakt */
@media (max-width: 640px) {
  .hero { padding: 24px 20px; margin: 20px 16px; border-radius: 12px; }
  .hero h1 { font-size: 21px; }
  .hero p { font-size: 14px; }
}

/* Urun detay: mobilde gorsel/aksiyonlar duzgun siralansin */
@media (max-width: 640px) {
  .product-detail { padding: 16px; gap: 20px; }
  .product-detail-cart-form { gap: 10px; }
  .btn-cart-add-lg { max-width: 100%; flex: 1; }
}

/* Footer form alanlari mobilde tam genislik */
@media (max-width: 480px) {
  .footer-newsletter-form input { min-width: 100%; }
  .footer-newsletter-form button { width: 100%; }
}

/* Dokunmatik hedefler: butonlar 44px altina dusmesin */
@media (max-width: 640px) {
  .qty-btn { width: 34px; height: 36px; }
  .qty-input { height: 36px; }
  .product-wishlist { width: 34px; height: 34px; }
}

/* ---------- Mobil hamburger menu ---------- */
.mobile-nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; color: var(--ink);
  padding: 6px; margin-left: -4px;
}
@media (max-width: 900px) {
  .mobile-nav-toggle { display: flex; align-items: center; justify-content: center; order: 2; }
  .search-form { order: 4; }
  .header-icons { order: 3; margin-left: auto; }
}

@media (max-width: 900px) {
  .category-menu { display: none; }
  .category-menu.mobile-nav-open { display: block; }
  .category-menu-row {
    flex-direction: column; align-items: stretch; padding: 4px 0;
  }
  .category-menu-item,
  .category-menu-row > a { width: 100%; }
  .category-menu-item > a,
  .category-menu-row > a { padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .category-mega {
    display: none !important;
    position: static; box-shadow: none; border: none; border-radius: 0;
    background: rgba(255,255,255,.04); padding: 0;
  }
  .category-menu-item.mobile-submenu-open .category-mega { display: flex !important; }
  .category-mega a { color: rgba(255,255,255,.85); padding: 11px 32px; }
  .category-mega a:hover { background: rgba(255,255,255,.06); color: #fff; }
}

/* ---------- Hukuki / bilgi sayfalari ---------- */
.legal-page { max-width: 820px; padding: 32px 16px 56px; }
.legal-page h1 { font-size: 26px; font-weight: 800; margin-bottom: 24px; }
.legal-page h2 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; color: var(--ink); }
.legal-page p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 4px; }
.legal-page ul, .legal-page ol { font-size: 14px; line-height: 1.7; color: var(--ink-soft); padding-left: 20px; margin: 8px 0; }
.legal-page li { margin-bottom: 6px; }
.legal-page .legal-note { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--gray); font-style: italic; }

/* ---------- Duyuru cubugu: kayan yazi (marquee) ---------- */
.announcement-bar { overflow: hidden; }
.announcement-left { flex: 1; overflow: hidden; min-width: 0; }
.announcement-marquee { display: flex; white-space: nowrap; animation: marquee-scroll 22s linear infinite; width: max-content; }
.announcement-marquee:hover { animation-play-state: paused; }
.announcement-marquee-item { display: flex; align-items: center; gap: 10px; padding: 8px 32px; font-size: 13px; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-marquee { animation: none; }
}

/* ---------- Auth (giris/kayit) sekmeleri ---------- */
.auth-tab-switch { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.auth-tab-btn { flex: 1; text-align: center; padding: 13px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--gray); background: var(--bg-soft); }
.auth-tab-btn.auth-tab-active { background: #fff; color: var(--ink); }
.auth-card { padding: 24px; }

/* ---------- Hesabim: sidebar duzeni ---------- */
.account-layout { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 32px 16px; align-items: start; }
@media (min-width: 900px) { .account-layout { grid-template-columns: 260px 1fr; } }

.account-sidebar { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.account-avatar-block { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.account-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.account-avatar-block strong { display: block; font-size: 14px; }
.account-avatar-block p { font-size: 12px; color: var(--gray); margin-top: 2px; }

.account-menu { display: flex; flex-direction: column; }
.account-menu-item { display: block; width: 100%; text-align: left; padding: 11px 10px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500; background: none; border: none; cursor: pointer; font-family: inherit; }
.account-menu-item:hover { background: var(--bg-soft); }
.account-menu-item.account-menu-active { background: var(--red-light); color: var(--red-dark); font-weight: 700; }
.account-menu-logout { color: var(--red); margin-top: 8px; border-top: 1px solid var(--border); padding-top: 14px; border-radius: 0; }

.account-content h1 { font-size: 22px; margin-bottom: 18px; }
.account-empty-state { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 48px 24px; text-align: center; color: var(--gray); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.account-empty-state svg { color: #ccc; }
.account-empty-state .btn-primary { margin-top: 8px; }

.settings-tab-switch { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.settings-tab-btn { padding: 10px 14px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--gray); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.settings-tab-btn.settings-tab-active { color: var(--red); border-bottom-color: var(--red); }

.notif-check { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.notif-check:last-of-type { border-bottom: none; }
.notif-check input { margin-top: 3px; width: 18px; height: 18px; }
.notif-check strong { font-size: 14px; }
.notif-check p { font-size: 13px; color: var(--gray); margin-top: 2px; }

/* ---------- Urun detay: galeri ---------- */
.product-gallery { display: flex; flex-direction: column; gap: 10px; }
.product-gallery-main { position: relative; aspect-ratio: 1/1; background: var(--bg-soft); border-radius: 12px; overflow: hidden; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: none; }
.product-gallery-main img.gallery-active { display: block; }
.product-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-gallery-thumb { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--bg-soft); padding: 0; }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-gallery-thumb.gallery-thumb-active { border-color: var(--red); }

/* ---------- Urun detay: guven rozetleri + sosyal ---------- */
.product-trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.product-trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--gray); font-weight: 600; }
.product-social-row { display: flex; gap: 8px; margin-top: 14px; }
.product-social-row a { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); text-decoration: none; }
.product-social-row a:hover { background: var(--red); color: #fff; }

.btn-buy-now { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; border: none; padding: 13px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; box-shadow: 0 6px 16px rgba(217,30,26,.25); max-width: 220px; }
.btn-buy-now:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(217,30,26,.35); }

/* ---------- Anasayfa: kompakt hero (banner yoksa) ---------- */
.hero-compact { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 20px 28px; margin: 20px 16px; }
.hero-compact h1 { font-size: 18px; margin: 0 0 4px; }
.hero-compact p { font-size: 13px; opacity: .75; margin: 0; }
.hero-compact .btn { margin-top: 0; flex-shrink: 0; }

/* ---------- Anasayfa: kampanya banner carousel ---------- */
.banner-carousel { position: relative; margin: 20px auto; padding: 0 16px; }
.banner-carousel-track { position: relative; width: 100%; aspect-ratio: 1600 / 500; max-height: 420px; border-radius: 14px; overflow: hidden; background: var(--bg-soft); }
@media (max-width: 640px) { .banner-carousel-track { aspect-ratio: 1600 / 500; max-height: none; } .banner-carousel { padding: 0 12px; margin: 14px auto; } }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.banner-slide.banner-slide-active { opacity: 1; z-index: 1; }
.banner-slide img, .banner-slide a { display: block; width: 100%; height: 100%; }
.banner-slide img { object-fit: contain; }
.banner-carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.banner-carousel-dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.banner-carousel-dot.banner-dot-active { background: #fff; width: 22px; border-radius: 5px; }

/* ---------- Hesabim: sidebar polish ---------- */
.account-sidebar { box-shadow: 0 4px 18px rgba(0,0,0,.04); }
.account-avatar { width: 52px; height: 52px; font-size: 16px; box-shadow: 0 4px 10px rgba(217,30,26,.25); }
.account-avatar-block strong { font-size: 15px; }
.account-menu-item { border-left: 3px solid transparent; transition: background .15s ease, border-color .15s ease; }
.account-menu-item.account-menu-active { border-left-color: var(--red); }
.account-empty-state { box-shadow: 0 4px 18px rgba(0,0,0,.04); }

/* ---------- Urun detay: galeri polish ---------- */
.product-gallery-main { box-shadow: 0 4px 18px rgba(0,0,0,.05); }
.product-gallery-thumb { transition: border-color .15s ease, transform .15s ease; }
.product-gallery-thumb:hover { transform: translateY(-2px); }
.product-detail-cart-form { margin-top: 22px; }
.product-detail-cart-form + form { margin-top: 12px !important; }

/* ---------- Scroll reveal animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.reveal-fade { transform: translateY(0) scale(.98); }
.reveal.revealed { opacity: 1; transform: translateY(0) scale(1); }
.product-grid .reveal:nth-child(1) { transition-delay: .05s; }
.product-grid .reveal:nth-child(2) { transition-delay: .1s; }
.product-grid .reveal:nth-child(3) { transition-delay: .15s; }
.product-grid .reveal:nth-child(4) { transition-delay: .2s; }
.product-grid .reveal:nth-child(5) { transition-delay: .25s; }
.product-grid .reveal:nth-child(n+6) { transition-delay: .3s; }
.quick-links-row .reveal:nth-child(1) { transition-delay: .05s; }
.quick-links-row .reveal:nth-child(2) { transition-delay: .1s; }
.quick-links-row .reveal:nth-child(3) { transition-delay: .15s; }
.quick-links-row .reveal:nth-child(4) { transition-delay: .2s; }
.quick-links-row .reveal:nth-child(5) { transition-delay: .25s; }
.quick-links-row .reveal:nth-child(6) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Sayfa yukleme ekrani (splash / loader) ---------- */
.page-loader {
    position: fixed; inset: 0; z-index: 9999;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 1; visibility: visible;
    animation: page-loader-autohide 0s 1.8s forwards;
}
.page-loader.page-loader-hidden {
    opacity: 0; visibility: hidden; transform: scale(.97);
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
@keyframes page-loader-autohide {
    to { opacity: 0; visibility: hidden; }
}
.page-loader-spinner {
    position: relative; width: 68px; height: 68px;
    display: flex; align-items: center; justify-content: center;
}
.page-loader-spinner::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2.5px solid var(--border);
}
.page-loader-spinner::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2.5px solid transparent; border-top-color: var(--red); border-right-color: var(--red);
    animation: page-loader-spin .8s linear infinite;
}
.page-loader-logo {
    display: block; width: 40px !important; height: 40px !important;
    max-width: 40px; max-height: 40px; object-fit: contain; border-radius: 50%;
    background: #fff;
}
.page-loader-logo-text {
    font-size: 16px; font-weight: 800; color: var(--red); letter-spacing: .5px;
}
@keyframes page-loader-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .page-loader-spinner::after { animation: none; }
}
