/* === MODERN CSS RESET & GLOBAL STYLES === */
:root {
  --primary-color: #007bff;
  --primary-hover: #0056b3;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --success-hover: #218838;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --warning-bg: #fff3cd;
  --warning-text: #856404;
  --warning-border: #ffeeba;
  --warning-color: #f39c12;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --border-color: #dee2e6;
  --text-color: #212529;
  --text-muted: #6c757d;
  --font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-height: 70px;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-light);
  color: var(--text-color);
  line-height: 1.6;
}

/* === GLOBAL NOTIFICATION CONTAINER === */
#global-notification-container {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.global-notification {
  padding: 15px;
  border-radius: var(--border-radius);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease-in-out;
}

.global-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.global-notification.error {
  background-color: var(--danger-color);
}

.global-notification.success {
  background-color: var(--success-color);
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex-grow: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === HELPERS & ACCESSIBILITY === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* === HOMEPAGE === */
.homepage-hero {
  background-color: var(--background-white);
  text-align: center;
  padding: 80px 20px;
}

.homepage-hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.homepage-hero .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.homepage-search-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  position: relative;
}

.homepage-search-form input {
  width: 100%;
  padding: 18px 25px;
  padding-right: 60px;
  font-size: 16px;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  transition: var(--transition);
}

.homepage-search-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.15);
}

.homepage-search-form button {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  width: 48px;
  border: none;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.homepage-search-form button:hover {
  background-color: var(--primary-hover);
}

.homepage-section {
  padding: 60px 0;
}

.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
}

/* === FOOTER === */
.site-footer {
  background: var(--background-white);
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.site-footer strong {
  color: var(--text-color);
}

/* === FORMS (Login, Register etc.) === */
.form-container {
  max-width: 600px;
  margin: 60px auto;
  background: var(--background-white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-container h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 24px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 18px; 
}

.form-group {
  margin-bottom: 18px;
}

.form-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.form-container input,
.form-container select,
.form-container textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 16px;
  font-family: inherit;
  transition: var(--transition);
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-container textarea {
  resize: vertical;
  min-height: 120px;
}

.form-container button {
  width: 100%;
  padding: 14px;
  background: var(--success-color);
  color: white;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.form-container button:hover {
  background: var(--success-hover);
  transform: translateY(-2px);
}

.form-footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.form-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.form-footer-links a:hover {
    color: var(--primary-color);
}

.error-list {
  list-style-type: none;
  padding: 12px;
  margin-bottom: 20px;
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
  border-radius: var(--border-radius);
}

.message {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: var(--border-radius);
  border: 1px solid transparent;
}

.message.success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.message.error {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

/* === PRODUCT & SEARCH CARDS === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--background-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

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

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .product-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card h3 {
  font-size: 18px;
  color: var(--text-color);
  margin: 0;
}

.product-card .product-card-content p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 10px 0;
  flex-grow: 1;
  line-height: 1.5;
}

.product-card .product-card-footer {
  padding-top: 15px;
  border-top: 1px solid var(--background-light);
  margin-top: auto;
}

.product-card .btn-view {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 16px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
}

.product-card .btn-view:hover {
  background-color: var(--primary-hover);
  text-decoration: none;
}

/* === PRODUCT DETAIL PAGE === */
.product-detail {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 40px;
  align-items: start;
  background: var(--background-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.product-detail .image-wrap img {
  border-radius: var(--border-radius);
}

.product-detail h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.product-detail p {
  color: var(--text-muted);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tag {
  display: inline-block;
  background-color: var(--background-light);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease-in-out;
}

.category-tag:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  text-decoration: none;
}

.brand-tag {
  display: inline-block;
  background-color: var(--text-color);
  color: var(--background-white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--text-color);
  transition: all 0.2s ease-in-out;
}

.brand-tag:hover {
  background-color: var(--text-muted);
  border-color: var(--text-muted);
  text-decoration: none;
}

.category-description {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: -20px auto 40px;
}

/* === WARNINGS === */
.search-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  margin: 20px 0;
}

/* === PAGINATION STYLES === */
.pagination-container {
  margin-top: 30px;
  text-align: center;
}

.pagination {
  display: inline-flex;
  align-items: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 15px;
  background-color: var(--background-white);
  color: var(--primary-color);
  text-decoration: none;
  border-right: 1px solid var(--border-color);
  font-weight: 500;
  transition: var(--transition);
}

.pagination a:last-child,
.pagination span:last-child {
  border-right: none;
}

.pagination a:hover {
  background-color: var(--background-light);
}

.pagination span.active {
  background-color: var(--primary-color);
  color: white;
  cursor: default;
}

/* === YENİ: SOSYAL PAYLAŞIM BUTONLARI === */
.social-share-buttons {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.social-share-buttons h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.social-share-buttons .button-group {
    display: flex;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}
.share-btn:hover {
    opacity: 0.8;
    text-decoration: none;
}
.share-btn.facebook { background-color: #1877F2; }
.share-btn.twitter { background-color: #1DA1F2; }
.share-btn.whatsapp { background-color: #25D366; }


/* === RESPONSIVE === */
@media (max-width: 992px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .homepage-hero h1 {
    font-size: 36px;
  }
}