/* =========================================================
   Selma Butik — Siyah/Beyaz Modern Tema
   ========================================================= */

:root {
  --primary: #000000;
  --primary-dark: #1a1a1a;
  --primary-light: #f5f5f5;
  --secondary: #0a0a0a;
  --accent: #c9a96e;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-card: #ffffff;
  --text: #0a0a0a;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #e8e8e8;
  --border-strong: #1a1a1a;
  --success: #2d8a2d;
  --danger: #d32f2f;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 8px 28px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

a { color: var(--text); text-decoration: none; transition: opacity .15s; }
a:hover { color: var(--primary); opacity: .7; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  color: var(--text);
  margin-top: 0;
  letter-spacing: -0.01em;
}

/* ===== TOPBAR ===== */
.topbar {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  padding: 10px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}
.topbar a { color: #fff; opacity: .8; }
.topbar a:hover { opacity: 1; color: #fff; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 6px;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1;
}
.site-logo:hover { color: var(--primary); opacity: 1; }

.search-box {
  position: relative;
  max-width: 520px;
  width: 100%;
}
.search-box input {
  width: 100%;
  padding: 12px 48px 12px 18px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
  letter-spacing: .5px;
  border-radius: 0;
}
.search-box input:focus { border-color: var(--primary); }
.search-box button {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  background: transparent;
  color: var(--primary);
  border: none;
  width: 44px;
  cursor: pointer;
}

.header-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  color: var(--primary);
  position: relative;
  transition: opacity .15s;
}
.header-icons a:hover { opacity: .6; color: var(--primary); }
.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
}

/* ===== NAV ===== */
.main-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.main-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.main-nav li a {
  display: block;
  padding: 16px 22px;
  color: var(--text);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}
.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 8px; left: 50%;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: all .25s;
  transform: translateX(-50%);
}
.main-nav li a:hover::after,
.main-nav li.active a::after { width: calc(100% - 44px); }
.main-nav li a:hover { color: var(--primary); opacity: 1; }

/* ===== HERO ===== */
.hero {
  background: var(--primary);
  color: white;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, transparent 50%, rgba(255,255,255,.02) 100%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  margin-bottom: 24px;
  color: white;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero p {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  max-width: 540px;
  margin: 0 auto 40px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 400;
}

/* ===== BUTONLAR ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 0;
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  border: 1px solid var(--primary);
  cursor: pointer;
  transition: all .25s;
  text-align: center;
  font-family: inherit;
  line-height: 1.4;
}
.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
  opacity: 1;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
  opacity: 1;
}
.btn-dark {
  background: var(--primary);
  color: white;
}
.btn-dark:hover { background: var(--primary-dark); color: white; opacity: 1; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 18px 44px; font-size: 13px; }
.btn-sm { padding: 8px 18px; font-size: 11px; letter-spacing: 1.5px; }

/* Hero butonu beyaz */
.hero .btn-primary {
  background: white;
  color: var(--primary);
  border-color: white;
}
.hero .btn-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
}

/* ===== KATEGORİLER ===== */
.section-title {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
}
.section-title h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.section-title p {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--primary);
  margin: 20px auto 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cat-card {
  background: var(--bg-card);
  text-align: center;
  padding: 40px 16px;
  transition: all .3s;
  position: relative;
}
.cat-card:hover {
  background: var(--primary);
  color: white;
}
.cat-card:hover h3,
.cat-card:hover .ico { color: white; }
.cat-card .ico {
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--primary);
  transition: color .3s;
  display: inline-block;
}
.cat-card h3 {
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color .3s;
}

/* ===== ÜRÜN GRİDİ ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}
.product-card {
  background: var(--bg-card);
  overflow: hidden;
  transition: all .3s;
  position: relative;
}
.product-card .img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-soft);
}
.product-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.04); }
.product-card .badges {
  position: absolute;
  top: 14px; left: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge-tag {
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 0;
}
.badge-sale { background: var(--danger); }
.badge-new  { background: var(--primary); }

.product-card .info { padding: 18px 4px; }
.product-card h3 {
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  margin: 0 0 10px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  letter-spacing: .5px;
  line-height: 1.5;
}
.product-card h3 a { color: inherit; }
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.price-current {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .5px;
}
.price-old {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}

.quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: all .3s;
  background: var(--primary);
  color: white;
  padding: 14px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  border: none;
  cursor: pointer;
  text-align: center;
}
.product-card:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}
.product-card .img-wrap { position: relative; }

.wishlist-btn {
  position: absolute;
  top: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 16px;
  color: var(--primary);
  transition: all .2s;
}
.wishlist-btn:hover { transform: scale(1.08); background: var(--primary); color: white; }
.wishlist-btn.active { color: var(--danger); }
.wishlist-btn.active:hover { background: var(--danger); color: white; }

/* ===== ÖZELLİKLER BAR ===== */
.features-bar {
  background: var(--primary);
  color: white;
  padding: 40px 0;
  border: none;
}
.feature-item {
  text-align: center;
  padding: 0 16px;
}
.feature-item .ico {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 12px;
  display: inline-block;
}
.feature-item h4 {
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white;
  font-weight: 600;
}
.feature-item p {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  margin: 0;
  letter-spacing: .5px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,.6);
  padding: 70px 0 24px;
  margin-top: 0;
}
.site-footer h5 {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 22px;
  font-weight: 600;
}
.site-footer a { color: rgba(255,255,255,.6); }
.site-footer a:hover { color: white; opacity: 1; }
.site-footer ul {
  list-style: none;
  padding: 0; margin: 0;
}
.site-footer ul li { margin-bottom: 10px; font-size: 13px; letter-spacing: .5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.social-icons a {
  display: inline-flex;
  width: 40px; height: 40px;
  border-radius: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transition: all .2s;
}
.social-icons a:hover { background: white; color: var(--primary); border-color: white; }

/* ===== ÜRÜN DETAY ===== */
.product-detail .gallery-main {
  background: var(--bg-soft);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.product-detail .gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.thumbs img.active,
.thumbs img:hover { border-color: var(--primary); }

.size-options, .color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-btn, .color-btn {
  border: 1px solid var(--border-strong);
  background: white;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  min-width: 50px;
  text-align: center;
  letter-spacing: 1px;
  border-radius: 0;
  color: var(--text);
  font-family: inherit;
}
.size-btn:hover { background: var(--primary); color: white; }
.size-btn.active { background: var(--primary); color: white; }
.size-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}
.color-btn {
  width: 36px; height: 36px;
  padding: 0;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.color-btn.active::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1px solid var(--primary);
  border-radius: 50%;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  overflow: hidden;
}
.qty-selector button {
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  font-family: inherit;
}
.qty-selector button:hover { background: var(--primary); color: white; }
.qty-selector input {
  width: 50px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  -moz-appearance: textfield;
  height: 44px;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ===== SEPET / CHECKOUT ===== */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.cart-table th {
  background: var(--bg-soft);
  padding: 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cart-table .product-thumb {
  width: 70px;
}

.summary-card {
  background: var(--bg-card);
  padding: 28px;
  border: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 14px;
}
.summary-row.total {
  border-top: 1px solid var(--border-strong);
  margin-top: 14px;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .5px;
}

/* ===== FORM ===== */
.form-control, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  font-size: 14px;
  background: white;
  transition: border-color .15s;
  font-family: inherit;
  border-radius: 0;
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.form-group { margin-bottom: 18px; }

.payment-method {
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all .15s;
  border-radius: 0;
}
.payment-method:hover { border-color: var(--primary); }
.payment-method.active {
  border-color: var(--primary);
  background: var(--bg-soft);
}
.payment-method h5 {
  margin: 0 0 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
}
.payment-method p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
  background: var(--bg-card);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.breadcrumb li::after {
  content: '/';
  margin: 0 12px;
  color: var(--border);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb li:last-child { color: var(--primary); font-weight: 500; }

/* ===== ALERT ===== */
.alert {
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: 13px;
  border-left: 3px solid;
  border-radius: 0;
  letter-spacing: .3px;
}
.alert-success { background: #f0f9f0; border-color: var(--success); color: #1b5e20; }
.alert-danger  { background: #fff5f5; border-color: var(--danger); color: #5d1a1d; }
.alert-info    { background: var(--bg-soft); border-color: var(--primary); color: var(--text); }
.alert-warning { background: #fffaf0; border-color: #f57c00; color: #5d3300; }

/* ===== UYUMLULUK (legacy class names) ===== */
.text-primary-c { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 60px 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card .info { padding: 14px 0; }
  .price-current { font-size: 14px; }
  .main-nav ul { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .main-nav li a { padding: 14px 14px; white-space: nowrap; font-size: 11px; letter-spacing: 1px; }
  .site-logo { font-size: 26px; letter-spacing: 4px; }
  .quick-add { display: none; }
  .summary-card { padding: 20px; }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; }  .mt-3 { margin-top: 24px; }  .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.py-3 { padding-top: 24px; padding-bottom: 24px; }
.py-5 { padding-top: 80px; padding-bottom: 80px; }

/* Bootstrap dropdown override */
.dropdown-menu { border: 1px solid var(--border); border-radius: 0; box-shadow: var(--shadow-md); padding: 8px 0; }
.dropdown-item { font-size: 13px; padding: 10px 18px; letter-spacing: .5px; }
.dropdown-item:hover { background: var(--bg-soft); }
.dropdown-divider { margin: 4px 0; border-color: var(--border); }
.dropdown-header { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); padding: 8px 18px; }

/* Pagination */
.page-link {
  color: var(--text);
  border-radius: 0;
  border-color: var(--border);
  font-size: 13px;
  padding: 10px 16px;
}
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }
.page-link:hover { background: var(--bg-soft); color: var(--primary); }

/* Tabs */
.nav-tabs { border-bottom: 1px solid var(--border); }
.nav-tabs .nav-link {
  border: none;
  color: var(--text-muted);
  padding: 14px 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 0;
  font-weight: 500;
  position: relative;
}
.nav-tabs .nav-link.active {
  color: var(--primary);
  background: transparent;
  border: none;
}
.nav-tabs .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 20px; right: 20px;
  height: 2px;
  background: var(--primary);
}

/* Hover gold accent (alternatif vurgu) */
.gold { color: var(--accent); }

/* Modal stil */
.modal-content { border: none; border-radius: 0; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 20px 24px; }
.modal-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; }

/* Bootstrap alert close button */
.btn-close { padding: 0.6rem; }

/* Yıldız yorumlar için */
.stars { color: #1a1a1a; letter-spacing: 2px; }
