/* =============================================
   MEYDAN ELEKTRONiK — Trendyol Tarzi E-Ticaret CSS
   Light Tema | Orange Accent (#f27a1a)
   ============================================= */

/* ── 1. CSS Variables & Reset ── */
:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #fafafa;
  --bg-dark: #2c2c2c;
  --bg-darker: #212121;
  --accent: #f27a1a;
  --accent-hover: #e06a0a;
  --accent-light: #fff4e5;
  --accent-soft: rgba(242,122,26,0.08);
  --text: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-light: #ffffff;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --transition: all 0.2s ease;
  --header-h: 60px;
  --nav-h: 44px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus { outline: none; }

/* ── 2. Loading Spinner + Fade-in Animations ── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}
.spinner-sm { width: 20px; height: 20px; border-width: 2px; margin: 0; }
.spinner-lg { width: 48px; height: 48px; border-width: 4px; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeInUp 0.4s ease both;
}
.fade-in:nth-child(2) { animation-delay: 0.05s; }
.fade-in:nth-child(3) { animation-delay: 0.1s; }
.fade-in:nth-child(4) { animation-delay: 0.15s; }
.fade-in:nth-child(5) { animation-delay: 0.2s; }
.fade-in:nth-child(6) { animation-delay: 0.25s; }
.fade-in:nth-child(7) { animation-delay: 0.3s; }
.fade-in:nth-child(8) { animation-delay: 0.35s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse { animation: pulse 1.5s ease-in-out infinite; }

/* ── 3. Toast Notification ── */
.toast {
  position: fixed;
  top: 20px; left: 50%; transform: translateX(-50%);
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(-12px);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast.error {
  background: #dc3545;
}
.toast.success {
  background: #28a745;
}

/* ── 4. HEADER ── */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.logo:hover { color: var(--text); }

.search-box {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 44px 0 16px;
  border: 2px solid var(--border);
  border-radius: 24px;
  background: var(--bg-secondary);
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box button {
  position: absolute;
  right: 4px; top: 4px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.search-box button:hover { background: var(--accent-hover); }

.header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border-radius: var(--radius);
  position: relative;
  font-size: 11px;
  color: var(--text-secondary);
  transition: var(--transition);
  text-align: center;
}
.header-btn:hover {
  background: var(--bg-secondary);
  color: var(--accent);
}
.header-btn svg {
  width: 22px; height: 22px;
  fill: currentColor;
}

.cart-badge {
  position: absolute;
  top: 0; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px; height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── 5. NAVBAR ── */
.navbar {
  border-top: 1px solid var(--border-light);
  background: var(--bg);
  overflow: visible;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner > a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-inner > a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Category MEGA MENU (Trendyol tarzi) ── */
.cat-dropdown {
  position: static;
}
.cat-dropdown > a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  gap: 4px;
}
.cat-dropdown > a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  padding: 24px;
  z-index: 999;
  max-width: 1240px;
  margin: 0 auto;
  border-radius: 0 0 var(--radius) var(--radius);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.cat-dropdown:hover .mega-menu,
.cat-dropdown.open .mega-menu {
  display: grid;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-baslik {
  font-size: 14px;
  font-weight: 700;
  color: var(--text) !important;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
  display: block;
}

.mega-baslik:hover {
  color: var(--accent) !important;
}

.mega-link {
  font-size: 13px;
  color: var(--text-secondary) !important;
  padding: 3px 0;
  display: block;
}

.mega-link:hover {
  color: var(--accent) !important;
  padding-left: 4px;
}

/* Navbar'ın position relative olması lazım mega-menu için */
.navbar {
  border-top: 1px solid var(--border-light);
  background: var(--bg);
  overflow: visible;
  position: relative;
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.main-wrap {
  flex: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

/* ── 7. SLIDER (Trendyol stili) ── */
.slider-section {
  position: relative;
  margin: -20px -20px 24px;
  overflow: hidden;
}
.slider-wrap {
  position: relative;
  overflow: hidden;
}
.slider-slide {
  display: none;
  position: relative;
}
.slider-slide.active {
  display: block;
}
.slider-slide img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.s-caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  max-width: 500px;
  background: rgba(0,0,0,0.55);
  padding: 20px 28px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.s-caption h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.s-caption p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 20px;
}
.slider-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.slider-dots span.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* ── 8. SECTION ── */
.section { margin-bottom: 32px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-head::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}
.section-head h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.section-head a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.section-head a:hover { text-decoration: underline; }

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent);
}

/* ── 9. CATEGORY GRID ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-icon {
  font-size: 32px;
  line-height: 1;
  transition: var(--transition);
}
.cat-card:hover .cat-icon { transform: scale(1.1); }
.cat-name {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  transition: var(--transition);
}
.cat-card:hover .cat-name { color: var(--accent); }

/* ── 10. PRODUCT GRID ── */
.p-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.p-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.p-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border);
}
.p-img {
  position: relative;
  padding-top: 100%;
  background: var(--bg-secondary);
  overflow: hidden;
}
.p-img img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.p-card:hover .p-img img { transform: scale(1.05); }

.p-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  z-index: 2;
}

.p-info {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.p-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  transition: var(--transition);
}
.p-name:hover { color: var(--accent); }

.p-old-price {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.p-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.p-cart-btn {
  width: 100%;
  padding: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.p-cart-btn:hover { background: var(--accent-hover); }

/* ── 11. PRODUCT DETAIL ── */
.p-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}
.p-detail .gallery {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
}
.p-detail .gallery img { width: 100%; }
.p-detail .detail-info h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.p-detail .brand {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.p-detail .desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.p-detail .price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.p-detail .price-row .cur-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.p-detail .price-row .old-price {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.p-detail .qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.p-detail .qty-row label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.p-detail .qty-row input {
  width: 60px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}
.p-detail .qty-row input:focus { border-color: var(--accent); }

/* ── 12. CART ── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cart-table thead { background: var(--bg-secondary); }
.cart-table th {
  text-align: left;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.cart-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  vertical-align: middle;
}
.cart-table tbody tr:hover { background: var(--bg-tertiary); }

.cart-summary {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border-light);
  position: sticky;
  top: 120px;
}
.cart-summary h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.s-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.s-row span:last-child { font-weight: 600; color: var(--text); }
.s-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.checkout-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  margin-top: 16px;
  transition: var(--transition);
}
.checkout-btn:hover { background: var(--accent-hover); }

/* ── 13. CHECKOUT ── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.checkout-form {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border-light);
}
.checkout-form h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea {
  height: 80px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── 14. AUTH ── */
.auth-wrap {
  max-width: 420px;
  margin: 40px auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}
.auth-wrap h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.auth-btn:hover { background: var(--accent-hover); }
.auth-link {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-link a {
  color: var(--accent);
  font-weight: 600;
}
.auth-link a:hover { text-decoration: underline; }

/* ── 15. FILTER BAR ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.filter-bar label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.filter-bar select,
.filter-bar input {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
}
.filter-bar select:focus,
.filter-bar input:focus { border-color: var(--accent); }
.filter-bar .btn-filter {
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.filter-bar .btn-filter:hover { background: var(--accent-hover); }

/* ── 16. PAGINATION ── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 28px 0;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: var(--transition);
}
.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination .active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── 17. BREADCRUMB ── */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb span:last-child {
  color: var(--text);
  font-weight: 500;
}

/* ── 18. FOOTER ── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  margin-top: auto;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.footer-col a,
.footer-col p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
  display: block;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer .social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.footer .social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer .social a:hover {
  background: var(--accent);
  color: #fff;
}
.footer-bottom {
  text-align: center;
  padding: 16px 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ── 19. MOBILE BOTTOM NAV ── */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  z-index: 999;
  justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-muted);
  padding: 4px 8px;
  transition: var(--transition);
}
.mobile-bottom-nav a:hover,
.mobile-bottom-nav a.active { color: var(--accent); }
.mobile-bottom-nav a svg {
  width: 22px; height: 22px;
  fill: currentColor;
}

/* ── 20. EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ── 21. ALERTS ── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-success {
  background: rgba(40,167,69,0.1);
  color: #28a745;
  border: 1px solid rgba(40,167,69,0.2);
}
.alert-error {
  background: rgba(220,53,69,0.1);
  color: #dc3545;
  border: 1px solid rgba(220,53,69,0.2);
}
.alert-info {
  background: rgba(37,99,235,0.1);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,0.2);
}

/* ── 22. SORT BAR ── */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sort-bar label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.sort-bar select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg);
  color: var(--text);
}
.sort-bar select:focus { border-color: var(--accent); }

/* ── 23. RESPONSIVE ── */

/* Tablet: 1024px alti */
@media (max-width: 1024px) {
  .p-grid,
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: 768px alti */
@media (max-width: 768px) {
  .header-top { height: 52px; gap: 10px; }
  .search-box { max-width: 100%; }
  .search-box input { height: 36px; font-size: 13px; }
  .search-box button { width: 28px; height: 28px; font-size: 13px; }
  .logo { font-size: 18px; }
  .header-btn span:last-child { display: none; }
  .header-btn { padding: 4px 8px; }

  .hamburger { display: flex; }
  .navbar.open .nav-inner,
  .nav-inner.open { display: flex; }
  .nav-inner {
    display: none;
    flex-direction: column;
    height: auto;
    padding: 8px 16px;
    border-top: 1px solid var(--border);
  }
  .nav-inner.open { display: flex; }
  .nav-inner > a,
  .cat-dropdown > a {
    height: auto;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    border-bottom-color: var(--border-light);
  }
  .cat-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }
  .cat-dropdown.open .dropdown-menu { display: block; }

  .mobile-bottom-nav { display: flex; }
  .main-wrap { padding-bottom: 72px; }

  .slider-slide img { height: 200px; }
  .s-caption { left: 20px; bottom: 20px; padding: 12px 16px; max-width: 80%; }
  .s-caption h2 { font-size: 18px; }
  .s-caption p { font-size: 12px; }

  .p-grid,
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }

  .p-detail { grid-template-columns: 1fr; }
  .cart-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 12px;
  }
  .cart-table td { border: none; padding: 4px 0; }

  .footer-inner { grid-template-columns: repeat(2, 1fr); }

  .section-head h2 { font-size: 17px; }
  .slider-section { margin: -20px -20px 16px; }

  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar select { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
}

/* Small Mobile: 480px alti */
@media (max-width: 480px) {
  .p-grid,
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .p-price { font-size: 15px; }
  .p-info { padding: 8px 10px 10px; }
  .p-cart-btn { height: 32px; font-size: 12px; }
  .p-name { font-size: 12px; min-height: 2.5em; }
  .slider-slide img { height: 160px; }
  .s-caption { left: 12px; bottom: 12px; padding: 10px 14px; }
  .s-caption h2 { font-size: 15px; }
  .header-inner { padding: 0 10px; }
  .main-wrap { padding: 12px; }
}

/* ── 24. Loading Spinner (Tekrar - Animasyon keyframes) ── */
/* Yukarida @keyframes spin tanimli */

/* ── 25. Fade-in Stagger (Tekrar) ── */
/* Yukarida @keyframes fadeInUp + .fade-in:nth-child(2-8) tanimli */

/* ── EXTRA UTILITIES ── */

/* Page Content */
.page-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  font-size: 14px;
  line-height: 1.8;
}
.page-content h1 { font-size: 20px; margin-bottom: 12px; }
.page-content h2 { font-size: 18px; margin: 20px 0 10px; }
.page-content p { margin-bottom: 12px; color: var(--text-secondary); }
.page-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 12px 0; }

/* Page Title */
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

/* Product Detail (eski class uyumluluk) */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

/* Gallery (detay sayfasi) */
.gallery {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* Detail Info */
.detail-info h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Price Area */
.price-area {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
}
.price-area .current {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.price-area .old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.discount-badge {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 3px;
}

/* Specs */
.specs {
  margin-bottom: 20px;
}
.specs h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.specs ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.specs li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.specs li strong { color: var(--text); }

/* Quantity Selector */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.qty-selector label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.qty-selector input {
  width: 64px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
}
.qty-selector input:focus { border-color: var(--accent); }

/* Add to Cart Button */
.btn-add-cart {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-add-cart:hover { background: var(--accent-hover); }

/* Cart Item helpers */
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}
.cart-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.cart-item-name:hover { color: var(--accent); }

.qty-input {
  width: 56px;
  height: 34px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.qty-input:focus { border-color: var(--accent); }

.btn-remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Sum Row */
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  color: var(--text);
}
.sum-row span:last-child { font-weight: 600; }
.sum-row.total {
  border-top: 2px solid var(--border);
  margin-top: 8px;
  padding-top: 14px;
}
.sum-row.total .amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  height: 44px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-submit:hover { background: var(--accent-hover); }

/* Radio Group */
.radio-group {
  display: flex;
  gap: 20px;
  padding: 8px 0;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.radio-group input[type="radio"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
}

/* Auth Form (eski class uyumluluk) */
.auth-form {
  max-width: 400px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.auth-form h2 {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

/* Profile Page */
.profile-page {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}
.profile-sidebar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.profile-sidebar .user-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}
.profile-sidebar .user-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.profile-sidebar a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.profile-sidebar a:hover,
.profile-sidebar a.active {
  background: var(--accent-light);
  color: var(--accent);
}
.profile-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.profile-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Status Badges (order status etc) */
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.status-badge.pending { background: #fef3c7; color: #d97706; }
.status-badge.preparing { background: #fff7ed; color: #ea580c; }
.status-badge.shipped { background: #eff6ff; color: #2563eb; }
.status-badge.delivered { background: #ecfdf5; color: #059669; }
.status-badge.cancelled { background: #fef2f2; color: #dc2626; }

/* Responsive img fallback */
.responsive-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-small { font-size: 12px; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.hidden { display: none; }
