/* ==========================================================================
   Hatipoğlu Et & Şarküteri - Kurumsal E-Ticaret & Paket Servis Stili
   Renkler: Kırık Beyaz Zemin (#fbfbfa), Lacivert Header/Footer (#0a192f),
            Kırmızı Vurgular (#dc2626) & İnce Kırmızı Çizgiler
   ========================================================================== */

:root {
  --bg-body: #fbfbfa;
  --bg-card: #ffffff;
  --primary-navy: #0a192f;
  --primary-navy-dark: #071120;
  --primary-navy-light: #162a45;
  --accent-red: #dc2626;
  --accent-red-dark: #b91c1c;
  --accent-red-light: #fef2f2;
  --border-red: #fee2e2;
  --border-subtle: #e2e8f0;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(10,25,47,0.08);
  --shadow-lg: 0 10px 25px rgba(10,25,47,0.12);
  --transition: all 0.25s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* TOP INFO BAR */
.top-bar {
  background-color: var(--primary-navy-dark);
  color: #94a3b8;
  font-size: 13px;
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a:hover {
  color: #ffffff;
}
.top-bar-badge {
  background: var(--accent-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
}

/* MAIN HEADER */
.main-header {
  background-color: var(--primary-navy);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-bottom: 2px solid var(--accent-red);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo-text h1 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #ffffff;
}
.logo-text span {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background-color: var(--primary-navy-light);
  border-bottom: 2px solid var(--accent-red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-order-fast {
  background: var(--accent-red);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-order-fast:hover {
  background: var(--accent-red-dark);
  transform: translateY(-1px);
}
.cart-button {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  position: relative;
  transition: var(--transition);
}
.cart-button:hover {
  background: rgba(255,255,255,0.2);
}
.cart-count {
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 12px;
  font-weight: 800;
}

/* SUB-CATEGORY BAR (Üst Menünün Altındaki Kategori Menüsü) */
.sub-category-bar {
  background: #09121f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sub-category-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.sub-category-link {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
}
.sub-category-link:hover, .sub-category-link.active {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.25);
  border-color: var(--accent-red);
}
.sub-category-link span {
  font-size: 14px;
}

/* HERO BANNER */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #1e293b 100%);
  color: #ffffff;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--accent-red);
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid var(--accent-red);
  color: #fca5a5;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-title {
  font-size: 34px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.hero-title span {
  color: #ef4444;
}
.hero-subtitle {
  color: #cbd5e1;
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 520px;
}
.hero-features {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e2e8f0;
}
.hero-feat-item i {
  color: var(--accent-red);
}
.hero-image-wrapper {
  position: relative;
  text-align: center;
}
.hero-image {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* SECTION CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  width: 100%;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-red);
  padding-bottom: 12px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title i {
  color: var(--accent-red);
}
.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* CATEGORY BAR / PILLS */
.category-pills {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 16px 2px;
  scrollbar-width: thin;
}
.cat-pill {
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-dark);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
}
.cat-pill.active i {
  color: #ef4444;
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-red);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(220,38,38,0.3);
}
.product-thumb {
  height: 180px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 16px;
  border-bottom: 1px solid var(--border-red);
}
.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.05);
}
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.product-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.product-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

/* GRAMAJ & VARYANT SEÇİCİ */
.variant-selector-wrap {
  margin-bottom: 12px;
}
.variant-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.variant-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.variant-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}
.variant-btn:hover {
  border-color: var(--accent-red);
}
.variant-btn.selected {
  background: var(--accent-red-light);
  border-color: var(--accent-red);
  color: var(--accent-red-dark);
}

/* HAZIRLIK / KESİM SEÇENEĞİ */
.prep-select {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  background-color: #fff;
  margin-bottom: 12px;
  outline: none;
}
.prep-select:focus {
  border-color: var(--accent-red);
}

/* PRICE & ADD TO CART */
.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-red);
}
.price-display {
  display: flex;
  flex-direction: column;
}
.price-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent-red-dark);
}
.price-unit {
  font-size: 11px;
  color: var(--text-muted);
}
.btn-add-cart {
  background: var(--primary-navy);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-add-cart:hover {
  background: var(--accent-red);
  transform: translateY(-1px);
}

/* LOYALTY CALLOUT BANNER */
.loyalty-banner {
  background: linear-gradient(135deg, #1e293b, var(--primary-navy));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.5px solid var(--gold);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  gap: 20px;
}
.loyalty-info h3 {
  font-size: 20px;
  font-weight: 900;
  color: #fef3c7;
  display: flex;
  align-items: center;
  gap: 8px;
}
.loyalty-info p {
  font-size: 14px;
  color: #cbd5e1;
  margin-top: 4px;
}
.loyalty-perks {
  display: flex;
  gap: 24px;
}
.perk-item {
  text-align: center;
}
.perk-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
}
.perk-label {
  font-size: 12px;
  color: #e2e8f0;
}

/* CART DRAWER / MODAL */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(3px);
  z-index: 2000;
  display: none;
}
.cart-drawer-overlay.active {
  display: block;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg-card);
  z-index: 2001;
  box-shadow: -5px 0 25px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.active {
  right: 0;
}
.cart-header {
  background: var(--primary-navy);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent-red);
}
.cart-header h3 {
  font-size: 17px;
  font-weight: 800;
}
.btn-close-cart {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}
.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
}
.cart-item-img {
  width: 55px;
  height: 55px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  object-fit: contain;
  border: 1px solid var(--border-red);
  padding: 4px;
}
.cart-item-info {
  flex-grow: 1;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.cart-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.qty-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.qty-input {
  font-size: 13px;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-red-dark);
  text-align: right;
}
.cart-item-remove {
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  margin-left: 8px;
}
.cart-item-remove:hover {
  color: var(--accent-red);
}

.cart-footer {
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-navy);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}
.btn-checkout {
  width: 100%;
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  margin-top: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-checkout:hover {
  background: var(--accent-red-dark);
}

/* FOOTER */
.main-footer {
  background-color: var(--primary-navy);
  color: #94a3b8;
  margin-top: auto;
  border-top: 3px solid var(--accent-red);
}
.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 32px 16px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--accent-red);
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
  transition: var(--transition);
}
.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #cbd5e1;
}
.footer-contact-item i {
  color: var(--accent-red);
  margin-top: 3px;
}
.footer-bottom {
  background-color: var(--primary-navy-dark);
  padding: 16px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-subtitle {
    margin: 0 auto 20px auto;
  }
  .hero-features {
    justify-content: center;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .product-thumb {
    height: 140px;
    padding: 8px;
  }
  .product-title {
    font-size: 14px;
  }
  .price-val {
    font-size: 16px;
  }
  .btn-add-cart span {
    display: none;
  }
  .hero-title {
    font-size: 26px;
  }
}

/* ==========================================================================
   E-TİCARET ÜRÜN KARTLARI REVİZYONU & HIZLI SEÇENEKLER
   ========================================================================== */
.product-thumb {
  position: relative;
}
.thumb-hover-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 25, 47, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition);
  pointer-events: none;
}
.product-card:hover .thumb-hover-hint {
  opacity: 1;
  transform: translateY(0);
}
.price-from {
  font-size: 15px;
  font-weight: 900;
  color: var(--accent-red);
}
.btn-card-quick {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.btn-card-quick:hover {
  background: var(--accent-red-dark);
}
.btn-card-detail {
  background: #f1f5f9;
  color: var(--primary-navy);
  border: 1px solid var(--border-subtle);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-card-detail:hover {
  background: var(--primary-navy);
  color: #fff;
}

/* ==========================================================================
   KATEGORİ & HERO BAŞLIK BÖLÜMÜ
   ========================================================================== */
.category-header-banner {
  background: linear-gradient(135deg, var(--primary-navy-dark), var(--primary-navy));
  color: #fff;
  border-bottom: 3px solid var(--accent-red);
  box-shadow: var(--shadow-sm);
}
.cat-badge-pill {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.cat-main-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.cat-main-desc {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 650px;
}
.catalog-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.catalog-search-form {
  display: flex;
}
.search-input-group {
  display: flex;
  background: #fff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.search-input {
  border: none;
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  width: 220px;
}
.search-submit-btn {
  background: var(--primary-navy);
  color: #fff;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  transition: var(--transition);
}
.search-submit-btn:hover {
  background: var(--accent-red);
}

/* ==========================================================================
   HIZLI SEÇENEK & SEPETE EKLE AÇILIR MODAL PENCERESİ (Quick View Modal)
   ========================================================================== */
.quick-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 47, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.quick-modal-overlay.active {
  display: flex;
}
.quick-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  animation: modalScaleIn 0.22s ease-out;
  border: 1px solid var(--border-red);
}
@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.quick-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}
.quick-modal-close:hover {
  background: var(--accent-red);
  color: #fff;
}
.quick-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
}
.quick-modal-media {
  background: #f8fafc;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid var(--border-red);
}
.quick-modal-media img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.qm-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}
.quick-modal-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.qm-cat-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-red);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.qm-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary-navy);
  margin-bottom: 6px;
  line-height: 1.25;
}
.qm-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}
.qm-group {
  margin-bottom: 12px;
}
.qm-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.qm-pill-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.qm-pill {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}
.qm-pill .p-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}
.qm-pill .p-price {
  font-size: 11px;
  color: var(--accent-red);
  font-weight: 800;
}
.qm-pill:hover {
  border-color: var(--accent-red);
}
.qm-pill.active {
  background: #fef2f2;
  border-color: var(--accent-red);
}
.qm-select, .qm-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12.5px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}
.qm-select:focus, .qm-input:focus {
  border-color: var(--accent-red);
}
.qm-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-red);
}
.qm-bottom-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.qm-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
}
.qm-step-btn {
  background: #f8fafc;
  border: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qm-step-btn:hover {
  background: #e2e8f0;
}
#qmQtyValue {
  padding: 0 12px;
  font-weight: 800;
  font-size: 14px;
}
.qm-price-wrap {
  text-align: right;
}
.qm-price-title {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}
.qm-price-total {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-red);
}
.qm-action-btns {
  display: flex;
  gap: 10px;
}
.qm-btn-add-cart {
  flex-grow: 1;
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.qm-btn-add-cart:hover {
  background: var(--accent-red-dark);
}
.qm-btn-detail {
  background: #f1f5f9;
  color: var(--primary-navy);
  border: 1px solid var(--border-subtle);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.qm-btn-detail:hover {
  background: var(--primary-navy);
  color: #fff;
}

/* ==========================================================================
   ÜRÜN DETAY SAYFASI (urun-detay.php)
   ========================================================================== */
.detail-breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid var(--border-subtle);
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb-list a {
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumb-list a:hover {
  color: var(--accent-red);
}
.breadcrumb-list .active {
  color: var(--accent-red);
  font-weight: 700;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  margin-bottom: 40px;
}
.detail-image-box {
  background: #fff;
  border: 1px solid var(--border-red);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.detail-badge-top {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
}
.detail-main-img {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.detail-main-img:hover {
  transform: scale(1.04);
}
.detail-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.trust-item {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-item i {
  font-size: 22px;
}
.trust-item strong {
  display: block;
  font-size: 12px;
  color: var(--primary-navy);
}
.trust-item span {
  font-size: 11px;
  color: var(--text-muted);
}
.detail-cat-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-red);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.detail-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1.2;
  margin-bottom: 8px;
}
.detail-short-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}
.detail-price-box {
  background: #fff;
  border: 1px solid var(--border-red);
  border-left: 4px solid var(--accent-red);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
.detail-price-current {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1;
}
.detail-price-kg {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.detail-options-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.option-row {
  margin-bottom: 16px;
}
.option-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.variant-pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.variant-pill-btn {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition);
}
.variant-pill-btn .v-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.variant-pill-btn .v-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-red);
}
.variant-pill-btn:hover {
  border-color: var(--accent-red);
}
.variant-pill-btn.active {
  background: #fef2f2;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 1px var(--accent-red);
}
.form-select-custom, .form-input-custom {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13.5px;
  outline: none;
  background: #fff;
  transition: border-color 0.2s;
}
.form-select-custom:focus, .form-input-custom:focus {
  border-color: var(--accent-red);
}
.detail-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.qty-btn {
  background: #f8fafc;
  border: none;
  width: 42px;
  height: 48px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.qty-btn:hover {
  background: #e2e8f0;
}
.qty-stepper input {
  width: 42px;
  height: 48px;
  border: none;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
  outline: none;
}
.btn-detail-add-cart {
  flex-grow: 1;
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
  transition: var(--transition);
}
.btn-detail-add-cart:hover {
  background: var(--accent-red-dark);
  transform: translateY(-1px);
}
.btn-detail-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-detail-whatsapp:hover {
  background: #15803d;
}
.detail-loyalty-tip {
  margin-top: 14px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-tabs-container {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.detail-tab-header {
  display: flex;
  border-bottom: 2px solid var(--border-red);
  background: #f8fafc;
  overflow-x: auto;
}
.detail-tab-btn {
  background: none;
  border: none;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.detail-tab-btn:hover {
  color: var(--primary-navy);
}
.detail-tab-btn.active {
  color: var(--accent-red);
  border-bottom-color: var(--accent-red);
  background: #fff;
}
.detail-tab-body {
  padding: 28px;
}
.detail-tab-content {
  display: none;
}
.detail-tab-content.active {
  display: block;
}

@media (max-width: 800px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .quick-modal-grid {
    grid-template-columns: 1fr;
  }
  .quick-modal-media {
    border-right: none;
    border-bottom: 1px solid var(--border-red);
    padding: 16px;
  }
  .quick-modal-media img {
    max-height: 180px;
  }
}
