/* ============================================================
   MERVE BUTİK — E-TİCARET VİTRİN CSS
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --primary: #0a0a0a;
  --secondary: #fafafa;
  --accent: #f43f5e;
  --accent-light: #fb7185;
  --border: #e5e5e5;
  --text-main: #171717;
  --text-muted: #737373;
  --bg-light: #ffffff;
  --bg-gray: #f5f5f5;
  
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--primary); }

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 80px; background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; z-index: 1000; transition: var(--transition);
}
.navbar.scrolled { height: 70px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }

.nav-brand { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.nav-brand span { color: var(--accent); }

.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.nav-links a:hover { color: var(--accent); }

.nav-actions { display: flex; gap: 20px; align-items: center; }
.action-btn { position: relative; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--primary); }
.action-btn:hover { color: var(--accent); }
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 100px; font-size: 14px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: var(--transition);
  border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(244,63,94,0.2); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* HERO SECTION */
.hero {
  height: 100vh; min-height: 600px;
  background: url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
  display: flex; align-items: center; padding: 0 5%;
  position: relative;
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 500px; }
.hero-subtitle { font-size: 14px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 16px; display: block; }
.hero-title { font-size: 64px; line-height: 1.1; margin-bottom: 24px; }
.hero-desc { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }

/* PRODUCT GRID */
.section { padding: 80px 5%; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-title { font-size: 36px; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px;
}
.product-card { group; cursor: pointer; }
.product-img-wrap {
  position: relative; padding-top: 130%; background: var(--bg-gray);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 16px;
}
.product-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-img { transform: scale(1.05); }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: white;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; z-index: 2;
}

.product-add-btn {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(4px);
  color: var(--primary); width: calc(100% - 24px); padding: 12px;
  border-radius: 100px; border: none; font-size: 13px; font-weight: 600; text-transform: uppercase;
  opacity: 0; transition: var(--transition); cursor: pointer; z-index: 2;
}
.product-card:hover .product-add-btn { opacity: 1; transform: translateX(-50%) translateY(0); }
.product-add-btn:hover { background: var(--primary); color: white; }

.product-info { text-align: center; }
.product-cat { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.product-name { font-size: 16px; font-weight: 500; color: var(--primary); margin-bottom: 6px; }
.product-price { font-size: 16px; font-weight: 600; color: var(--accent); }

/* FOOTER */
.footer { background: var(--primary); color: white; padding: 80px 5% 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-title { font-family: 'Playfair Display', serif; font-size: 20px; color: white; margin-bottom: 24px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #a3a3a3; font-size: 14px; }
.footer-links a:hover { color: white; }
.newsletter-input {
  width: 100%; padding: 14px 20px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 100px;
  color: white; font-family: 'Outfit', sans-serif; outline: none; margin-bottom: 12px;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; color: #a3a3a3; font-size: 13px; }

/* MINI CART OVERLAY */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 2000; opacity: 0; pointer-events: none; transition: var(--transition);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: 100%; max-width: 400px;
  background: white; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
}
.cart-overlay.open .cart-drawer { transform: translateX(0); }
.cart-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; }
.close-cart { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }
.cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.cart-item { display: flex; gap: 16px; margin-bottom: 24px; }
.ci-img { width: 80px; height: 100px; object-fit: cover; border-radius: 8px; background: var(--bg-gray); }
.ci-info { flex: 1; }
.ci-name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.ci-price { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.ci-qty { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 100px; width: fit-content; }
.ci-qty-btn { width: 28px; height: 28px; background: none; border: none; cursor: pointer; }
.ci-qty-val { font-size: 13px; font-weight: 500; width: 20px; text-align: center; }
.cart-footer { padding: 24px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; margin-bottom: 20px; }

/* CHECKOUT PAGE */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; padding: 120px 5% 80px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-muted); }
.form-control { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-family: 'Outfit', sans-serif; outline: none; transition: var(--transition); }
.form-control:focus { border-color: var(--primary); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .hero-title { font-size: 40px; }
  .footer-grid { grid-template-columns: 1fr; }
}
