﻿*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;color:#1d1d1f;background:#fff;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{text-decoration:none;color:inherit}
ul{list-style:none}
img{max-width:100%;height:auto;display:block}
button{cursor:pointer}

/* Hero */
.hero{position:relative;height:100vh;display:flex;align-items:center;overflow:hidden}

/* Category Slider */
.cat-viewport::-webkit-scrollbar{display:none}
.cat-slide{width:280px;height:340px}

/* Category slider fade edges: z-index 2 (below arrows at z-10, above slides) */
.cat-fade-edge {
  z-index: 2;
}
@media(max-width:768px){.cat-slide{width:220px;height:280px}}

/* Lookbook Hotspots */
.lookbook-dot{position:absolute;width:36px;height:36px;transform:translate(-50%,-50%);background:none;border:none;cursor:pointer;z-index:10;padding:0}
.lookbook-dot__ping{position:absolute;inset:0;border-radius:50%;background:rgba(220,38,38,.3);animation:lb-ping 2s cubic-bezier(0,0,.2,1) infinite}
.lookbook-dot__core{position:absolute;top:50%;left:50%;width:14px;height:14px;transform:translate(-50%,-50%);border-radius:50%;background:#DC2626;border:2.5px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.2);transition:transform .2s}
.lookbook-dot:hover .lookbook-dot__core{transform:translate(-50%,-50%) scale(1.2)}
@keyframes lb-ping{75%,100%{transform:scale(1.8);opacity:0}}

/* Fade */
.fade-in{opacity:0;transform:translateY(20px);transition:opacity .7s ease,transform .7s ease;will-change:opacity,transform}
.fade-in.visible{opacity:1;transform:translateY(0)}

/* Custom Select Arrow */
select.appearance-none,
select[class*="appearance-none"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

/* Mobile Typography */
@media (max-width: 767px) {
  p, .text-content {
    max-width: 100%;
    line-height: 1.6;
  }
  body {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Mobile Touch Targets */
@media (max-width: 767px) {
  a, button, select, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  select {
    min-height: 48px;
  }
  /* Active state feedback */
  a:active, button:active {
    opacity: 0.7;
    transform: scale(0.97);
    transition: transform 0.1s ease, opacity 0.1s ease;
  }
}

/* ========================================
   COMPONENT STYLES
   ======================================== */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
@media (min-width: 768px) {
  .navbar-inner { padding: 0 40px; }
}
.navbar-logo { height: 40px; transition: all 0.3s; }
.navbar-menu { display: none; align-items: center; gap: 28px; }
@media (min-width: 768px) {
  .navbar-menu { display: flex; }
}
.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
@media (min-width: 768px) {
  .navbar-toggle { display: none; }
}

/* Mobile Menu Modal */
.mobile-menu-overlay {
  transition: opacity 300ms ease;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 60;
}
.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-menu-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mobile-menu-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  width: 100%;
  max-width: 340px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 350ms cubic-bezier(0.32, 0.72, 0, 1), opacity 350ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-menu-overlay.opacity-100 .mobile-menu-card {
  transform: scale(1);
  opacity: 1;
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 4px;
}
.mobile-menu-header img { height: 28px; }
.mobile-menu-close {
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  border: none;
  transition: background 0.2s;
}
.mobile-menu-close:hover { background: rgba(0,0,0,0.08); }
.mobile-menu-divider {
  margin: 8px 20px 4px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  gap: 4px;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  font-weight: 500;
  color: #1d1d1f;
  min-height: 44px;
  border-radius: 12px;
  transition: background 0.2s;
}
.mobile-menu-link:hover { background: rgba(0,0,0,0.03); }
.mobile-menu-link:active { background: rgba(0,0,0,0.06); }
.mobile-menu-link.active {
  font-weight: 600;
  color: #DC2626;
  background: #fef2f2;
}
.mobile-menu-link svg {
  width: 20px;
  height: 20px;
  color: rgba(29,29,31,0.3);
  flex-shrink: 0;
}
.mobile-menu-link.active svg { color: rgba(220,38,38,0.5); }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  background: #DC2626;
  color: #fff;
  min-height: 52px;
  transition: all 0.2s;
}
.btn-primary:hover { background: #b91c1c; box-shadow: 0 4px 12px rgba(220,38,38,0.3); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  color: #1d1d1f;
  min-height: 52px;
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(29,29,31,0.3); }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(29,29,31,0.4);
  flex-wrap: wrap;
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: #1d1d1f; }
.breadcrumb .current { color: #1d1d1f; font-weight: 500; }

/* Page Container */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px) {
  .page-container { padding-left: 40px; padding-right: 40px; }
}

/* Section Label */
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #DC2626;
  margin-bottom: 12px;
}

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 64px;
  padding-bottom: 32px;
}
.footer-logo { height: 40px; }
.footer-link {
  font-size: 14px;
  color: rgba(29,29,31,0.5);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.footer-link:hover { color: #1d1d1f; }
.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(29,29,31,0.3);
  margin-bottom: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(29,29,31,0.25);
  gap: 8px;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

/* Social Icon */
.social-icon {
  width: 44px;
  height: 44px;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(29,29,31,0.3);
  transition: all 0.2s;
}
.social-icon:hover { background: #DC2626; color: #fff; }
.social-icon svg { width: 16px; height: 16px; }

/* Product Card */
.product-card { display: block; }
.product-card .product-card-img {
  background: #f9fafb;
  border-radius: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  transition: background 0.2s;
}
.product-card:hover .product-card-img { background: #f3f4f6; }
.product-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  line-height: 1.4;
  transition: color 0.2s;
}
.product-card:hover .product-card-title { color: #DC2626; }
.product-card-category {
  font-size: 12px;
  color: rgba(29,29,31,0.4);
  margin-top: 4px;
}

/* Form Input */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  background: #fff;
  color: #1d1d1f;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: #DC2626; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(29,29,31,0.4);
  margin-bottom: 6px;
}

/* Navbar Link Styles */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #DC2626;
  border-radius: 1px;
  transition: width 0.25s ease, left 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
  left: 0;
}
.nav-link.active {
  color: #1d1d1f;
  font-weight: 600;
}

/* Mobile Menu Animations - Popup Modal */
.mobile-menu-overlay {
  transition: opacity 300ms ease;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  position: fixed !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
}
.mobile-menu-card {
  transition: transform 350ms cubic-bezier(0.32, 0.72, 0, 1), opacity 350ms cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-menu-overlay.opacity-100 .mobile-menu-card {
  transform: scale(1);
  opacity: 1;
}

/* Safe Area Support */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Mobile Category Slider - Native Scroll Snap */
@media (max-width: 767px) {
  .cat-viewport {
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 16px;
  }
  .cat-slide {
    scroll-snap-align: center;
    width: 75vw;
    height: 280px;
  }
  .cat-arrow--left, .cat-arrow--right {
    display: none !important;
  }
  .cat-fade-edge {
    display: none;
  }
}

/* Lookbook Bottom Sheet (Mobile) */
@media (max-width: 767px) {
  .lookbook-dot {
    width: 44px;
    height: 44px;
  }
  #lookbook-popup {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px 16px 0 0;
    padding: 16px 20px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 60;
    box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  }
  #lookbook-popup:not(.hidden) {
    transform: translateY(0);
  }
}

/* GPU-accelerated animasyonlar ve prefers-reduced-motion desteği */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
