/* ===========================
   SAYFALAR İÇİN STİLLER
   =========================== */

/* NAVIGATION */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav .logo {
  flex-shrink: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  flex: 1;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background: #f0f0f0;
  color: #0066cc;
}

/* PAGE HEADER */
.page-header {
  text-align: center;
  padding: 40px 0;
  margin-bottom: 30px;
  border-bottom: 2px solid #f0f0f0;
}

.page-header h1 {
  font-size: 36px;
  margin: 0 0 10px 0;
  color: #333;
}

.page-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  padding: 20px 0;
}

/* CATEGORIES PAGE */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.category-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.category-card h3 {
  font-size: 18px;
  margin: 15px;
  margin-bottom: 8px;
  color: #333;
}

.category-card p {
  font-size: 14px;
  color: #666;
  margin: 0 15px 15px;
}

.category-card .btn {
  margin: 15px;
  width: calc(100% - 30px);
  text-align: center;
}

/* PRODUCTS PAGE */
.filters-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filters {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  background: #f5f5f5;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image .out-of-stock {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff6b6b;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.gallery-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.product-info {
  padding: 15px;
}

.product-info h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info .description {
  font-size: 12px;
  color: #999;
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info .price {
  font-size: 18px;
  font-weight: 700;
  color: #0066cc;
  margin: 0 0 5px 0;
}

.product-info .stock {
  font-size: 12px;
  color: #666;
  margin: 0 0 10px 0;
}

.product-info .add-to-cart {
  width: 100%;
}

/* CART PAGE */
.cart-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin-top: 30px;
}

.cart-items {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-cart {
  padding: 60px 20px;
  text-align: center;
  color: #666;
}

.empty-cart p {
  font-size: 18px;
  margin-bottom: 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr 100px 100px 80px;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h3 {
  font-size: 14px;
  margin: 0 0 8px 0;
  color: #333;
}

.cart-item-info .price {
  font-size: 14px;
  color: #0066cc;
  margin: 0;
  font-weight: 600;
}

.quantity-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 14px;
}

.cart-item-total {
  text-align: right;
  font-weight: 600;
  color: #333;
}

.cart-summary {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cart-summary h2 {
  font-size: 18px;
  margin: 0 0 20px 0;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}

.summary-item.total {
  padding-top: 15px;
  border-top: 2px solid #eee;
  font-weight: 700;
  font-size: 16px;
  color: #0066cc;
}

.cart-summary .btn {
  width: 100%;
  margin-top: 15px;
  text-align: center;
}

/* AUTH PAGE */
.auth-container {
  max-width: 400px;
  margin: 40px auto;
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-form h1 {
  font-size: 24px;
  margin: 0 0 30px 0;
  text-align: center;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.btn-block {
  width: 100%;
  display: block;
}

.auth-links {
  margin-top: 20px;
  text-align: center;
}

.auth-links p {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
}

.auth-links a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* CHECKOUT PAGE */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 30px;
  margin-top: 30px;
}

.checkout-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.checkout-form h2 {
  font-size: 20px;
  margin: 0 0 20px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.payment-method {
  margin: 10px 0;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin: 10px 0;
}

.payment-option input {
  cursor: pointer;
}

.payment-info {
  background: #f0f8ff;
  padding: 15px;
  border-radius: 4px;
  margin: 20px 0;
  border-left: 4px solid #0066cc;
}

.payment-info h3 {
  font-size: 14px;
  margin: 0 0 10px 0;
  color: #0066cc;
}

.payment-info p {
  font-size: 13px;
  color: #333;
  margin: 5px 0;
}

.order-summary {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.order-summary h2 {
  font-size: 18px;
  margin: 0 0 20px 0;
}

.summary-items {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.summary-item-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 14px;
}

.item-details {
  flex: 1;
}

.item-name {
  margin: 0 0 5px 0;
  color: #333;
  font-weight: 600;
}

.item-quantity {
  margin: 0;
  color: #999;
  font-size: 12px;
}

.item-price {
  margin: 0;
  color: #0066cc;
  font-weight: 600;
}

.summary-totals {
  margin-top: 20px;
}

.summary-totals .summary-item {
  margin-bottom: 10px;
}

.summary-totals .summary-item.total {
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-weight: 700;
  color: #0066cc;
}

/* ACCOUNT PAGE */
.account-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin-top: 30px;
}

.account-sidebar {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.account-nav ul {
  list-style: none;
}

.account-nav-link {
  display: block;
  padding: 12px 15px;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.account-nav-link:hover,
.account-nav-link.active {
  background: #f0f0f0;
  color: #0066cc;
  border-left-color: #0066cc;
}

.account-content {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

.account-section h2 {
  font-size: 20px;
  margin: 0 0 20px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.info-item {
  padding: 15px;
  background: #f5f5f5;
  border-radius: 4px;
}

.info-item label {
  display: block;
  font-weight: 600;
  color: #666;
  font-size: 12px;
  margin-bottom: 5px;
}

.info-item p {
  margin: 0;
  color: #333;
  font-size: 14px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.order-item:last-child {
  border-bottom: none;
}

.order-info h3 {
  font-size: 14px;
  margin: 0 0 5px 0;
}

.order-info p {
  font-size: 12px;
  color: #999;
  margin: 0;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #e8f5e9;
  color: #2e7d32;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .nav {
    flex-direction: column;
    gap: 15px;
  }

  .nav-list {
    flex-direction: column;
    gap: 10px;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .cart-section,
  .checkout-container,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .order-summary,
  .account-sidebar {
    position: static;
  }

  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 10px;
  }

  .cart-item-quantity,
  .cart-item-total,
  .cart-item .btn {
    grid-column: 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header {
    padding: 30px 0;
  }

  .page-header h1 {
    font-size: 24px;
  }
}
