/* ============================================
   TOPTAN TATLICIM - Toptan Tatl�c�m K�bban tarz�
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark: #0d1a26;
  --dark2: #000000;
  --gray: #777;
  --gray-light: #fffdf8;
  --border: #e3ddd3;
  --white: #ffffff;
  --red: #dc3545;
  --red-dark: #c80020;
  --accent: #917749;
  --cream: #fffdf8;
  --font: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  font-size: 14px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--red); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ============================================
   COOKIE BAR
   ============================================ */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.92); color: #ccc;
  padding: 16px 24px; display: flex; align-items: center;
  gap: 20px; z-index: 9999; flex-wrap: wrap; font-size: 13px;
}
.cookie-bar p { flex: 1; min-width: 250px; line-height: 1.5; }
.cookie-bar a { color: var(--accent); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-outline-sm {
  padding: 8px 18px; border: 1px solid #fff; color: #fff;
  background: transparent; font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s;
}
.btn-outline-sm:hover { background: #fff; color: var(--dark); }
.btn-dark-sm {
  padding: 8px 18px; background: transparent; color: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1px solid #fff;
}

/* ============================================
   PROMO BAR
   ============================================ */
.promo-bar {
  background: var(--dark2); color: var(--white);
  text-align: center; padding: 10px 16px;
  font-size: 13px; letter-spacing: 0.2px;
}
.promo-bar strong { font-weight: 700; }

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--white);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 70px;
}
.header-center {
  display: flex; align-items: center; gap: 12px; justify-content: center;
}
.header-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.header-left {
  display: flex; align-items: center; flex-shrink: 0;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; letter-spacing: 2px;
  color: var(--accent); text-decoration: none; margin-left: 12px;
}
.site-logo:hover { color: var(--accent); }
.header-logo-img {
  height: 44px; width: auto; display: block; flex-shrink: 0;
}
.header-center {
  display: flex; align-items: center; gap: 12px; justify-content: center;
}
.header-icons {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.header-right {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}

/* Kullan�c� butonu � b�y�k ve belirgin */
.user-btn {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); background: none; border: none;
  cursor: pointer; font-family: var(--font);
  font-size: 13px; font-weight: 700; letter-spacing: 0.2px;
  transition: color 0.2s; padding: 4px 0; white-space: nowrap;
}
.user-btn svg { flex-shrink: 0; }
.user-btn:hover { color: var(--red); }
.user-label { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.header-left { display: flex; align-items: center; flex-shrink: 0; }
.hamburger {
  font-size: 22px; color: var(--accent); display: none;
  cursor: pointer; padding: 4px 8px;
}
.header-left a {
  text-decoration: none; margin-left: 12px;
}
.header-logo { flex: 1; display: flex; justify-content: center; }
.header-logo img { height: 52px; width: auto; }
/* .header-right tan�m� a�a��da ORG NOTICE b�l�m�nde */

.search-box {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; background: var(--cream);
}
.search-box input {
  border: none; outline: none; padding: 11px 14px;
  font-size: 14px; width: 272px; font-family: var(--font);
  background: var(--cream); color: var(--accent);
}
.search-box input::placeholder { color: var(--accent); opacity: 0.8; }
.search-box button {
  padding: 11px 14px; background: transparent;
  color: var(--accent); font-size: 16px;
}

.icon-btn {
  font-size: 20px; color: var(--accent);
  transition: color 0.2s; position: relative;
}
.icon-btn:hover { color: var(--red); }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--red); color: white; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* NAV */
.main-nav {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.main-nav ul {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; min-height: 52px;
}
.main-nav ul li a {
  display: block; padding: 16px 18px;
  color: var(--accent); font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: color 0.2s; border-bottom: 2px solid transparent;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--dark);
  border-bottom-color: transparent;
}

/* ============================================
   CATEGORY HERO BANNER
   ============================================ */
.category-banner {
  position: relative;
  min-height: 80px;
  background: #1a1a1a;
}
.category-banner .breadcrumb {
  position: absolute; bottom: 0; left: 0; right: 0;
  max-width: 1280px; margin: 0 auto; padding: 0 24px 22px;
  font-size: 12px; color: rgba(255, 255, 255, 0.8);
  display: flex; align-items: center; gap: 6px; z-index: 1;
}
.category-banner .breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}
.category-banner .breadcrumb a:hover { color: #fff; opacity: 1; }
.category-banner .breadcrumb span { color: rgba(255, 255, 255, 0.8); }
.category-banner .breadcrumb span:last-child { opacity: 1; color: #fff; }

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.page-layout { display: flex; gap: 32px; align-items: flex-start; margin-top: 40px; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: 220px; flex-shrink: 0;
  position: sticky; top: 160px;
}
.filter-title {
  font-size: 12px; font-weight: 600; letter-spacing: -0.28px;
  text-transform: uppercase; color: var(--accent);
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.filter-group { margin-bottom: 20px; }
.filter-group-header {
  font-size: 12px; font-weight: 600; letter-spacing: -0.24px;
  text-transform: uppercase; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  user-select: none; color: var(--dark);
}
.filter-group-header .arrow { font-size: 10px; transition: transform 0.2s; color: var(--accent); }
.filter-group-header.open .arrow { transform: rotate(180deg); }
.filter-group-body { display: none; padding: 10px 0; flex-direction: column; gap: 8px; }
.filter-group-body.visible { display: flex; }
.filter-group-body label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; cursor: pointer; color: var(--dark);
}
.filter-group-body label:hover { color: var(--accent); }
.filter-group-body input[type="checkbox"] { accent-color: var(--accent); width: 13px; height: 13px; }
.filter-apply-btn {
  width: 100%; padding: 11px; background: var(--accent); color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; cursor: pointer;
  border: 1px solid var(--accent); transition: all 0.2s; margin-top: 8px;
}
.filter-apply-btn:hover { background: var(--dark); border-color: var(--dark); }
.filter-reset-btn {
  width: 100%; padding: 9px; background: transparent; color: var(--gray);
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; cursor: pointer;
  border: 1px solid var(--border); margin-top: 6px; transition: color 0.2s;
}
.filter-reset-btn:hover { color: var(--red); border-color: var(--red); }

/* ============================================
   PRODUCTS AREA
   ============================================ */
.products-area { flex: 1; min-width: 0; }
.products-header { margin-bottom: 24px; }
.page-title {
  font-size: 22px; font-weight: 600; color: var(--accent);
  letter-spacing: -0.44px; text-transform: uppercase;
  margin: 0 0 16px;
}
.products-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: none;
}
.product-count { font-size: 13px; color: var(--gray); }
.sort-options { display: flex; align-items: center; gap: 8px; }
.sort-btn {
  width: 32px; height: 32px; border: 1px solid var(--border);
  background: var(--white); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; cursor: pointer; color: var(--accent); transition: all 0.2s;
}
.sort-btn:hover, .sort-btn.active {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}
.sort-select {
  padding: 10px 14px; border: 1px solid var(--border);
  font-size: 15px; font-family: var(--font); background: var(--white);
  color: var(--dark); cursor: pointer; outline: none; min-width: 150px;
  border-radius: 4px;
}
.sort-select:focus { border-color: var(--accent); }

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 20px;
  margin-top: 20px;
}
.products-grid.list-view { grid-template-columns: 1fr; gap: 20px; }
.products-grid.list-view .product-card {
  display: flex; flex-direction: row; align-items: stretch;
}
.products-grid.list-view .product-img-link { width: 240px; flex-shrink: 0; aspect-ratio: auto; }
.products-grid.list-view .product-img-link img { width: 240px; height: 200px; object-fit: cover; }
.products-grid.list-view .product-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* PRODUCT CARD */
.product-card {
  background: transparent; overflow: hidden;
  transition: transform 0.2s; position: relative;
  border: none;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-2px); }

.product-img-link {
  display: block; position: relative; overflow: hidden;
  background: #faf7f0;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}
.product-img-link img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
  display: block;
  padding: 8px;
}
.product-card:hover .product-img-link img { transform: scale(1.04); }

.product-overlay { display: none; }
.quick-add {
  padding: 10px 24px; background: var(--white); color: var(--dark);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  border: none; cursor: pointer; transition: all 0.2s;
}
.quick-add:hover { background: var(--accent); color: var(--white); }

.product-info {
  padding: 20px 15px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
  text-align: center;
  display: flex; flex-direction: column; flex: 1;
}
.product-category { display: none; }
.product-name {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--dark); margin-bottom: 8px; line-height: 1.21;
  letter-spacing: -0.28px; text-transform: none;
  transition: color 0.2s;
}
.product-card:hover .product-name { color: var(--red-dark); }
.product-price {
  font-size: 15px; font-weight: 700; color: var(--accent);
  margin-bottom: 0; letter-spacing: -0.3px; line-height: 1.6;
}
.product-price div {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price-gr {
  font-size: 13px; font-weight: 600; color: #111; letter-spacing: 0;
}
.price-sep {
  font-size: 13px; color: #bbb; font-weight: 400;
}

/* Kg fiyat� */
.product-kg-price {
  font-size: 15px; font-weight: 700; color: var(--accent); margin-top: 6px; letter-spacing: 0.2px;
}

/* Ana ürün kartı kg fiyatı — büyük gösterim */
.product-kg-price-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin: 8px 0 4px;
  letter-spacing: -0.3px;
}
.product-kg-price-main .price-per-kg {
  font-size: 13px;
  font-weight: 500;
  color: #888;
}

/* Gramaj se�enek etiketleri (K���k / Orta / B�y�k) */
.product-weight-opts {
  display: flex; justify-content: center; gap: 4px; margin-top: 10px; flex-wrap: wrap;
  flex: 1; align-content: flex-end; padding-bottom: 10px;
}
.wopt-tag {
  font-size: 10px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--accent); border-radius: 3px;
  padding: 3px 8px; letter-spacing: 0.3px;
  background: transparent; cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap; flex-shrink: 0;
}
.wopt-tag:hover { background: var(--accent); color: #fff; }

/* Se�ili gramaj kart� vurgusu */
.weight-option-card.wopt-active {
  border-color: var(--accent);
  background: #fffbf0;
  box-shadow: 0 0 0 2px rgba(145,119,73,0.2);
}
.add-to-cart-btn {
  display: block;
  width: 100%; padding: 11px 0;
  background: transparent; color: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: 1px;
  cursor: pointer; border: 1px solid var(--accent);
  transition: all 0.2s;
  margin-top: auto; flex-shrink: 0;
}
.products-grid.list-view .add-to-cart-btn { display: block; }
.add-to-cart-btn:hover { background: var(--accent); color: var(--white); }

/* BADGE */
.badge-featured {
  position: absolute; top: 12px; left: 12px;
  background: var(--red-dark); color: white;
  font-size: 10px; font-weight: 600; padding: 4px 10px;
  letter-spacing: 0.5px; z-index: 2;
}

/* ============================================
   CART NOTIFICATION
   ============================================ */
.cart-notification {
  position: fixed; top: 80px; right: 24px;
  background: var(--dark); color: var(--white);
  padding: 14px 22px; font-size: 13px; font-weight: 500;
  border-left: 3px solid var(--accent);
  opacity: 0; transform: translateX(100px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 8000; pointer-events: none;
}
.cart-notification.show { opacity: 1; transform: translateX(0); }

/* ============================================
   NO RESULTS / ERROR
   ============================================ */
.no-results, .fetch-error {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--gray);
}
.no-results p, .fetch-error p { font-size: 15px; margin-bottom: 16px; }
.no-results button {
  padding: 10px 24px; background: var(--accent); color: white;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; cursor: pointer;
  border: 1px solid var(--accent);
}
.no-results button:hover { background: var(--dark); border-color: var(--dark); }

/* ============================================
   SKELETON
   ============================================ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f5f0e8 25%, #ede8dc 50%, #f5f0e8 75%);
  background-size: 800px 100%; animation: shimmer 1.4s infinite linear;
}
.skeleton-img  { width: 100%; aspect-ratio: 767 / 639; }
.skeleton-text { height: 13px; margin: 8px 0; width: 100%; }
.skeleton-text.short  { width: 45%; height: 10px; }
.skeleton-text.medium { width: 65%; }
.skeleton-btn  { height: 38px; margin-top: 12px; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 4px; margin-top: 48px; flex-wrap: wrap;
}
.pagination button {
  width: 36px; height: 36px; border: 1px solid var(--border);
  background: var(--white); color: var(--dark); font-size: 13px;
  font-family: var(--font); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.pagination button:hover { background: var(--accent); color: white; border-color: var(--accent); }
.pagination button.active { background: var(--accent); color: white; border-color: var(--accent); font-weight: 700; }
.pagination span { color: var(--gray); padding: 0 4px; }

/* ============================================
   IMG ERROR FALLBACK
   ============================================ */
.product-img-link.img-error {
  background: linear-gradient(135deg, #fffdf8 0%, #f5efe0 100%);
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 767 / 639; color: var(--accent); font-size: 12px;
  font-weight: 600; letter-spacing: 1px;
}
.product-img-link.img-error::after { content: 'TOPTAN TATLICIM'; }

/* ============================================
   SEO SECTION
   ============================================ */
.seo-section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.seo-section h2 { font-size: 18px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.seo-section h3 { font-size: 15px; font-weight: 600; color: var(--dark); margin: 20px 0 8px; }
.seo-section p { font-size: 13px; color: #555; line-height: 1.8; margin-bottom: 10px; }
.seo-list { list-style: disc; padding-left: 22px; margin: 10px 0 18px; }
.seo-list li { font-size: 13px; margin-bottom: 5px; }
.seo-list li a { color: var(--accent); }
.seo-list li a:hover { color: var(--red); text-decoration: underline; }

/* ============================================
   FOOTER � stiller footer.css dosyas�ndad�r
   ============================================ */
.footer { margin-top: 0; }

/* ============================================
   ORG NOTICE (Header sa� alan)
   ============================================ */
/* .header-right tan�m� a�a��da ORG NOTICE b�l�m�nde */
.header-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}
.header-right-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.org-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbf0;
  border: 1px solid #e8d9b0;
  border-radius: 8px;
  padding: 6px 12px;
  max-width: 220px;
  flex-shrink: 1;
  min-width: 0;
}
.org-notice span { font-size: 16px; flex-shrink: 0; }
.org-notice p {
  font-size: 11px;
  color: #5a4a20;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.org-notice p a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}
.org-notice p a:hover { color: var(--red); }

@media (max-width: 900px) {
  .org-notice { display: none; }
  .header-right { display: flex; gap: 10px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .header-center { justify-content: center; }
  .user-label { display: none; }
}
/* �kon butonlar� genel */
.icon-btn {
  color: var(--accent); background: none; border: none;
  cursor: pointer; transition: color 0.2s; font-family: var(--font);
  display: inline-flex; align-items: center; position: relative;
}
.icon-btn:hover { color: var(--red); }

.fav-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--red); color: white; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* �r�n kart�ndaki favori butonu */
.fav-product-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.9); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 16px; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; transition: color 0.2s, background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.fav-product-btn:hover,
.fav-product-btn.fav-active { color: #ef4444; background: #fff; }

/* ============================================
   GRAMAJ SE��M MODAL
   ============================================ */
.modal-weight { max-width: 480px; }
.modal-weight .modal-body { padding: 16px 20px; }

.weight-option-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 10px; background: var(--cream); gap: 12px;
}
.weight-option-card:last-child { margin-bottom: 0; }

.wopt-info { flex: 1; }
.wopt-size {
  display: inline-block; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--white); background: var(--accent);
  padding: 2px 8px; border-radius: 3px; margin-bottom: 4px;
}
.wopt-gr { font-size: 15px; font-weight: 700; color: var(--dark); }
.wopt-price { font-size: 18px; font-weight: 700; color: var(--accent); margin-top: 2px; }
.wopt-sade { font-size: 12px; color: #888; margin-top: 2px; }

.wopt-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.wopt-btn-tere, .wopt-btn-sade {
  padding: 8px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; cursor: pointer; border-radius: 4px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: var(--font); white-space: nowrap;
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.wopt-btn-tere:hover,
.wopt-btn-sade:hover {
  background: var(--accent);
  color: #fff;
}
.wopt-btn-tere.btn-selected,
.wopt-btn-sade.btn-selected {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15) !important;
}

/* ============================================
   WHATSAPP
   ============================================ */
.whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 50px; height: 50px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); z-index: 7000; transition: transform 0.2s;
}
.whatsapp-btn:hover { transform: scale(1.1); }

/* ============================================
   MOBILE FILTER BAR
   ============================================ */
.mobile-filter-bar { display: none; justify-content: space-between; padding: 10px 0; margin-bottom: 16px; gap: 10px; }
.mobile-filter-btn {
  flex: 1; padding: 10px; border: 1px solid var(--border); background: var(--cream);
  font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-align: center; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--accent);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.8); z-index: 10000;
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--cream); width: 100%; max-width: 520px;
  max-height: 90vh; display: flex; flex-direction: column;
  animation: slideUp 0.22s ease; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}
.modal-large { max-width: 720px; }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.modal-header h3 { font-size: 15px; font-weight: 600; color: var(--dark); letter-spacing: -0.28px; }
.modal-close {
  width: 30px; height: 30px; background: var(--gray-light); border: none; cursor: pointer;
  font-size: 13px; color: var(--gray); display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--red); color: white; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

/* CART TABLE */
.cart-empty { text-align: center; color: var(--gray); font-size: 14px; padding: 30px 0; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cart-table th {
  text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--border);
  color: var(--gray); font-weight: 600; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase;
}
.cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table td:first-child { display: flex; align-items: center; gap: 10px; }
.cart-item-img { width: 50px; height: 50px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.qty-control { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); width: fit-content; }
.qty-control button {
  width: 28px; height: 28px; font-size: 16px; font-weight: 700;
  color: var(--dark); cursor: pointer; background: var(--cream); border: none;
  display: flex; align-items: center; justify-content: center;
}
.qty-control button:hover { background: var(--accent); color: white; }
.qty-control span { min-width: 24px; text-align: center; font-weight: 600; }
.remove-item {
  width: 26px; height: 26px; border-radius: 50%; background: var(--cream);
  color: var(--gray); font-size: 11px; cursor: pointer; border: none;
  transition: background 0.15s; display: flex; align-items: center; justify-content: center;
}
.remove-item:hover { background: var(--red); color: white; }
.cart-total {
  text-align: right; margin-top: 14px; font-size: 15px; color: var(--dark);
  padding-top: 10px; border-top: 2px solid var(--border);
}
.checkout-btn {
  display: block; width: 100%; margin-top: 16px; padding: 13px;
  background: var(--accent); color: white; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; cursor: pointer; border: 1px solid var(--accent);
  transition: background 0.2s; text-align: center;
}
.checkout-btn:hover:not(:disabled) { background: var(--dark); border-color: var(--dark); }
.checkout-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* CHECKOUT FORM */
.form-group { margin-bottom: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group label {
  display: block; font-size: 11px; font-weight: 600; color: var(--gray);
  margin-bottom: 4px; letter-spacing: 0.5px; text-transform: uppercase;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border);
  font-size: 13px; font-family: var(--font); color: var(--dark);
  background: var(--white); outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; }

/* SUCCESS MODAL */
.modal-success { text-align: center; max-width: 400px; padding-bottom: 10px; }
.success-icon {
  width: 64px; height: 64px; background: #27ae60; color: white;
  font-size: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin: 20px auto 14px; font-weight: 700;
}
.modal-success h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.modal-success p { color: var(--gray); font-size: 13px; margin-bottom: 8px; }
.modal-success p strong { color: var(--dark); font-family: monospace; font-size: 12px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .page-layout { flex-direction: column; margin-top: 24px; }
  .sidebar { width: 100%; position: static; display: none; }
  .sidebar.mobile-open { display: block; }
  .hamburger { display: block; }
  .mobile-filter-bar { display: flex; }
  .main-nav { display: none; }
  .main-nav.nav-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0; align-items: stretch; }
  .main-nav ul li a { padding: 12px 20px; border-bottom: 1px solid var(--border); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
  .category-banner { min-height: 220px; }
}

@media (max-width: 680px) {
  .search-box input { width: 120px; }
  .header-inner { padding: 0 12px; min-height: auto; grid-template-columns: auto 1fr auto; }
  .header-left a { font-size: 15px; }
  .header-right { gap: 8px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .container { padding: 0 12px 40px; }
  .category-banner .breadcrumb { padding: 0 12px 16px; }
  .product-price { font-size: 13px; }
  .product-kg-price { font-size: 11px; }
  .price-gr { font-size: 11px; }
  .product-info { padding: 14px 10px; }
  .wopt-tag { font-size: 9px; padding: 2px 6px; }
}

@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-info { padding: 16px 12px; }
  .product-name { font-size: 13px; }
  .header-logo img { height: 38px; }
  .search-box { display: none; }
  .header-inner { grid-template-columns: auto 1fr auto; padding: 0 12px; }
  .header-right { gap: 6px; }
}

@media (max-width: 480px) {
  .modal-box { max-height: 95vh; }
  .modal-header { padding: 12px 16px; }
  .modal-body { padding: 14px 16px; }
}

/* ============================================
   KULLANICI / FAVOR� BUTONLARI
   ============================================ */

/* �kon + yaz� (SVG + "Giri� Yap" / kullan�c� ad�) */
.user-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); background: none; border: none;
  cursor: pointer; font-family: var(--font);
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
  transition: color 0.2s; padding: 4px 0;
}
.user-btn svg { flex-shrink: 0; }
.user-btn:hover { color: var(--red); }
.user-label { white-space: nowrap; }

/* Favori header butonu */
.fav-btn {
  position: relative; display: inline-flex; align-items: center;
  color: var(--accent); transition: color 0.2s; text-decoration: none;
}
.fav-btn:hover { color: var(--red); }
.fav-btn svg { display: block; }

/* Favori saya� rozeti */
.fav-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--red); color: white; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* �r�n kart�ndaki favori butonu */
.fav-product-btn {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.9); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 16px; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  color: #ccc; transition: color 0.2s, background 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.fav-product-btn:hover,
.fav-product-btn.fav-active { color: #ef4444; background: #fff; }

/* Sepet SVG butonu */
.cart-btn {
  position: relative; display: inline-flex; align-items: center;
  background: none; border: none; cursor: pointer;
  color: var(--accent); transition: color 0.2s; padding: 4px 0;
}
.cart-btn:hover { color: var(--red); }
.cart-count {
  position: absolute; top: -8px; right: -8px;
  background: var(--red); color: white; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ============================================
   SUNUM SE��M� (Tepsi / Kutu)
   ============================================ */
.presentation-picker {
  margin-top: 16px;
  padding: 16px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #fffbf0;
}
.presentation-title {
  font-size: 13px; font-weight: 700; color: var(--dark);
  margin-bottom: 12px; letter-spacing: 0.2px;
}
.presentation-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.pres-option { cursor: pointer; }
.pres-option input[type="radio"] { display: none; }
.pres-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 10px; border: 2px solid var(--border);
  border-radius: 8px; background: #fff; gap: 4px;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}
.pres-option input:checked + .pres-box {
  border-color: var(--accent); background: #fffbf0;
}
.pres-box:hover { border-color: var(--accent); }
.pres-icon { font-size: 26px; }
.pres-label { font-size: 12px; font-weight: 600; color: var(--dark); }
.pres-price { font-size: 13px; font-weight: 700; color: var(--accent); }

.pres-total-row {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px; color: var(--gray); text-align: right;
}
.pres-total-row strong {
  font-size: 18px; font-weight: 700; color: var(--accent); margin-left: 6px;
}

/* Se�ili gramaj kart� */
.weight-option-card.wopt-active {
  border-color: var(--accent);
  background: #fffbf0;
  box-shadow: 0 0 0 2px rgba(145,119,73,0.25);
}

/* Se�ili ya� butonu */
.wopt-btn-tere.btn-selected,
.wopt-btn-sade.btn-selected {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15) !important;
  transform: scale(0.97);
}

/* ============================================
   SE��M VURGU (Gramaj Modal)
   ============================================ */

/* Se�ili gramaj kart� � �ok belirgin */
.weight-option-card.wopt-active {
  border: 2px solid #917749 !important;
  background: #fff8ec !important;
  box-shadow: 0 0 0 3px rgba(145,119,73,0.3) !important;
  transform: scale(1.01);
  transition: all 0.15s;
}

/* Se�ili Tereya�l� butonu */
.wopt-btn-tere.btn-selected {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15) !important;
  transform: scale(0.97);
}

/* Se�ili Sade Ya�l� butonu */
.wopt-btn-sade.btn-selected {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15) !important;
  transform: scale(0.97);
}

/* ============================================
   SEPETE EKLE ALERT MODAL
   ============================================ */
#cartAlertOverlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity 0.25s ease;
}
#cartAlertOverlay.cart-alert-show { opacity: 1; }

.cart-alert-box {
  background: #fff; border-radius: 14px;
  padding: 32px 28px 24px;
  max-width: 380px; width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: translateY(20px); transition: transform 0.25s ease;
}
#cartAlertOverlay.cart-alert-show .cart-alert-box { transform: translateY(0); }

.cart-alert-icon {
  font-size: 48px; margin-bottom: 12px; line-height: 1;
}
.cart-alert-title {
  font-size: 18px; font-weight: 700; color: var(--dark);
  margin-bottom: 8px; font-family: var(--font);
}
.cart-alert-msg {
  font-size: 13px; color: #666; margin-bottom: 24px;
  line-height: 1.5;
}
.cart-alert-btns {
  display: flex; flex-direction: column; gap: 10px;
}
.cart-alert-btn-checkout {
  width: 100%; padding: 13px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer; font-family: var(--font);
  transition: background 0.2s;
}
.cart-alert-btn-checkout:hover { background: var(--red); }
.cart-alert-btn-continue {
  width: 100%; padding: 13px;
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
  cursor: pointer; font-family: var(--font);
  transition: background 0.2s, color 0.2s;
}
.cart-alert-btn-continue:hover { background: var(--accent); color: #fff; }

@media (max-width: 480px) {
  .cart-alert-box { padding: 24px 20px 20px; }
  .cart-alert-icon { font-size: 40px; }
  .cart-alert-title { font-size: 16px; }
}
