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

/* GENEL STİL */
html, body {
    height: 100%;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
}

/* NAVBAR GENEL (Desktop) */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 20, 20, 0.95);
    padding: 15px 25px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 1.5em;
    font-weight: bold;
}

.navbar .navbar-logo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

/* NAV MENÜ - Desktop */
.navbar .nav-links {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
}

.navbar .nav-links li a {
    position: relative;
    text-decoration: none;
    color: #ddd;
    font-weight: 500;
    font-size: 1.05em;
    letter-spacing: 1px;
    transition: 0.3s;
}

/* Altın hover çizgisi */
.navbar .nav-links li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transform: scaleX(0);
    transform-origin: center;
    transition: .3s;
}

.navbar .nav-links li a:hover::after {
    transform: scaleX(1);
}

/* Hamburger ikon (mobilde) */
.hamburger {
    display: none;
    font-size: 32px;
    cursor: pointer;
    color: #fff;
}

/* Sağdan açılan mobil menü */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -260px; /* kapalı iken sağda */
    width: 260px;
    height: 100%;
    background: rgba(15, 15, 15, 0.98);
    overflow-x: hidden;
    transition: right 0.4s ease;
    z-index: 2000;
    padding-top: 80px;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    padding: 12px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    color: #ddd;
    display: block;
    transition: 0.2s;
}

.mobile-menu a:hover {
    color: #FFD700;
}

.mobile-menu .closebtn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: #fff;
}

/* SAYFA ORTASI */
.page-wrapper {
    flex: 1 0 auto;
    padding: 40px 20px 60px;
}

/* Başlık */
.title {
    text-align: center;
    font-size: 32px;
    color: #FFD700;
    margin-bottom: 25px;
}

/* ÜRÜN LİSTESİ – FLEX GRID */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

/* Kart – MASAÜSTÜNDE 3’LÜ */
.product-card {
    background: #111;
    border-radius: 12px;
    border: 1px solid #333;
    /* 3 sütun: (100% - 2*gap)/3 */
    flex: 0 0 calc((100% - 2 * 24px) / 3);
    max-width: 340px;
    padding: 16px 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Kart içindeki linkler – mavi / altı çizgili olmasın */
.product-card a:link,
.product-card a:visited {
    color: #fff;           /* yazılar beyaz */
    text-decoration: none; /* altı çizili olmasın */
}

.product-card a:hover {
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.7);
}

/* Ürün görseli */
.product-card img {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 12px;
}

/* Ürün adı */
.product-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

/* Açıklama */
.product-card p {
    font-size: 14px;
    color: #ddd;
    line-height: 1.5;
}

/* Ürün yoksa */
.no-products {
    text-align: center;
    margin-top: 40px;
    color: #fff;
}

.no-products h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffd700;
}

.no-products p {
    margin-bottom: 15px;
}

.add-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ffd700;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.add-btn:hover {
    background: #ffb300;
}

/* Footer */
footer {
    background: #111;
    color: #666;
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    border-top: 1px solid #222;
}

/* 🔍 KATEGORİ SEÇİMİ */
.service-search {
  margin: 60px auto 35px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.select-wrapper {
  position: relative;
  width: 65%;
  max-width: 520px;
}

.select-wrapper select {
  width: 100%;
  padding: 16px 26px;
  padding-right: 55px;
  border-radius: 18px;
  border: 1px solid #444;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(6px);
  color: #f0f0f0;
  font-size: 1.1rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  box-shadow: 0 10px 35px rgba(0,0,0,0.5);
  transition: 0.2s ease;
}

.select-wrapper select:hover,
.select-wrapper select:focus {
  border-color: #FFD700;
  box-shadow: 0 10px 35px rgba(0,0,0,0.7);
}

.select-wrapper::after {
  content: "▼";
  font-size: 0.95rem;
  color: #FFD700;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.9;
  transition: 0.2s ease;
}

.select-wrapper:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

/* RESPONSIVE AYARLAR */
@media (max-width: 768px) {

    /* Menü / hamburger */
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .navbar {
        padding: 12px 16px;
    }

    .navbar .logo {
        font-size: 1.2em;
    }

    .navbar .navbar-logo {
        width: 48px;
        height: 48px;
    }

    .page-wrapper {
        padding: 25px 12px 40px;
    }

    /* ⭐ Tablet / telefon: 1 satırda 2 kart */
    .product-card {
        flex: 0 0 calc((100% - 1 * 16px) / 2);
        max-width: none;
    }

    .product-container {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 1em;
    }

    .navbar .navbar-logo {
        width: 42px;
        height: 42px;
    }

   
}
