@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&family=Momo+Trust+Display&family=Outfit:wght@100..900&family=Stack+Sans+Notch:wght@200..700&display=swap');

body {
  margin: 0;
  padding: 0;
  padding-top: 0;
  background-color: #ffffff;
  font-family: "Outfit", sans-serif;
  color: #333;
}

html { 
    color-scheme: light; /* tarayıcıya her zaman açık tema kullanmasını söyle */
}

/* Üst iletişim alanı */
.header-contact {
  background: #2727279a;
  padding: 10px 20px;   
}

.header-contact ul { 
  margin: 0;
  padding: 0;
  display: flex;           /* li’leri yan yana dizer */
  justify-content: center; /* ortalar */
  align-items: center;
  gap: 1px;
}

.header-contact ul li{ 
  list-style: none;
}

.header-contact ul li a {
    display: flex;
    align-items: center;   /* dikey ortalama */
    gap: 8px;              /* icon ve yazı arası boşluk */
    text-decoration: none;
    font-size: 16px;       /* yazı boyutu */
    line-height: 1;        /* satır yüksekliğini sıfırla */
}

.header-contact ul li a i {
    font-size: 16px;       /* icon boyutu = yazı boyutu */
    line-height: 1;
    vertical-align: middle; /* ekstra güvenlik için ortala */
}

.header-contact a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0 15px;            /* linkler arası boşluk */
  position: relative; 
  transition: color 0.2s ease;
  user-select: none;
}

.header-contact a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 80%;                 /* çizgi boyu */
  background-color: #ccc;
}

.header-contact a:hover {
  color: #000000;
}

/* Make header follow when scrolling */
.header-all {
  position: static;
  z-index: 1000;
}

.header-logo img {
    height: 80px;
    margin-right: 10px;
}

.header-logo a {
    position: relative;       /* pseudo-element için gerekli */
    text-decoration: none;
    color: rgb(12, 12, 12);
    font-family: "Outfit", sans-serif;
    font-weight: bold;   
    transition: 0.3s;
}

.header-logo a::after {
  content: "";
  position: absolute;
  left: 50%;               /* ortadan başlat */
  bottom: 0;               /* yazının altına */
  width: 0;                /* başlangıçta çizgi yok */
  height: 2px;             /* çizgi kalınlığı */
  background-color: #e65a00; /* turuncu çizgi */
  transition: all 0.3s ease;
  transform: translateX(-50%); /* ortalamak için */    
}

.header-logo a:hover::after {
  width: 100%;             /* hover’da tam genişlik */
}

/* Başlıklar (ORA ÇELİK KAPI) */
.first-h,
.second-h {
  display: inline-block;
  margin: 0 5px;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: 0px;
  user-select: none;
}

.first-h {
  color: #222;
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.second-h {
  color: #e65a00;
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.header-navbar {
  padding: 10px 20px;
  text-align: center;
}

.header-navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;           /* li’leri yan yana dizer */
  justify-content: center; /* ortalar */
  align-items: center;
  gap: 0;                  /* boşluğu border ile vereceğiz */
}

.header-navbar ul li {
  padding: 0 15px;
  border-right: 1px solid #ccc; /* dikey çizgi */
}

/* Son elemandan çizgiyi kaldır */
.header-navbar ul li:last-child {
  border-right: none;
}

.header-navbar ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-family: "Outfit", sans-serif;
  transition: color 0.2s ease;
}

.header-navbar ul li a:hover {
  color: #000000;
}

/* Dropdown submenu for Ürünler */
.header-navbar ul li {
  position: relative;
}

.header-navbar ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border-radius: 6px;
  padding: 6px 0;
  z-index: 1100;
}

.header-navbar ul li .dropdown li {
  padding: 0;
  border: none;
}

.header-navbar ul li .dropdown li a {
  display: block;
  padding: 10px 16px;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}

.header-navbar ul li .dropdown li a:hover {
  background: #f2f2f2;
  color: #e65a00;
}

.header-navbar ul li:hover .dropdown {
  display: block;
}

/* -------------------- Üst iletişim alanı -------------------- */
.header-contact ul {
  margin: 0;
  padding: 0;
  display: flex;           /* yan yana dizer */
  justify-content: center; /* yatay ortala */
  align-items: center;     /* dikey ortala */
  gap: 20px;               /* linkler arası boşluk */
}

.header-contact ul li {
  list-style: none;
}

.header-contact ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header-contact ul li a:hover {
  color: #000;
}

.header-contact ul li a i {
  font-size: 16px;
}

/* -------------------- Logo bölümü -------------------- */
.header-logo {
  padding: 10px 20px;
  display: flex;            /* yan yana diz */
  justify-content: center;  /* yatay ortala */
  align-items: center;      /* dikey ortala */
  gap: 15px;                /* logo ve yazı arası boşluk */
}

.header-logo img {
  height: 140px;
  padding: 80px 20px;
}

.header-logo .logo-text {
  display: flex;
  flex-direction: row;       /* ORA ve ÇELİK KAPI yan yana */
  align-items: center;       /* dikey ortala */
  font-family: "Momo Trust Display", sans-serif;
  font-weight: 400;
  font-size: 38px;
}

.first-h {
  color: #222;
  margin: 0 5px 0 0;
}

.second-h {
  color: #e65a00;
  margin: 0;
}

/* -------------------- Navbar -------------------- */
.header-navbar {
  background: #2727279a;
  padding: 10px 20px;
  text-align: center;
}

.header-navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;          
  justify-content: center; 
  align-items: center;
  gap: 0;
}

.header-navbar ul li {
  padding: 0 15px;
  border-right: 1px solid #ccc;
}

.header-navbar ul li:last-child {
  border-right: none;
}

.header-navbar ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-family: "Outfit", sans-serif;
  transition: color 0.2s ease;
}

.header-navbar ul li a:hover {
  color: #000000;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 1024px) {
  .header-contact ul {
    gap: 10px;
    flex-wrap: wrap; /* taşarsa alt satıra geçer */
  }

  .header-logo {
    gap: 10px;
  }

  .header-logo .logo-text {
    font-size: 28px;
  }

  .header-navbar ul li {
    padding: 8px 10px;
  }
}

@media (max-width: 600px) {
  .header-contact ul {
    gap: 5px;
  }

  .header-contact ul li a {
    font-size: 14px;
  }

  .header-logo img {
    height: 60px;
  }

  .header-logo .logo-text {
    font-size: 22px;
  }

  .header-navbar ul li {
    padding: 6px 8px;
  }
}

/* -------------------- Ürün Kartları -------------------- */
.products-section {
  padding: 40px 20px;
  background-color: #ebebeb;
}
.products-section .container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 24px;
  color: #222;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tekli kartları ortala */
.products-grid:has(> :only-child) {
  grid-template-columns: 1fr;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.product-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}
.product-image {
  width: 100%;
  height: 200px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-title {
  margin: 0;
  font-size: 18px;
  color: #111;
}
.product-price {
  margin: 0;
  font-weight: 700;
  color: #e65a00;
}
.product-desc {
  margin: 0;
  font-size: 14px;
  color: #666;
}
.product-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.btn {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.btn-primary {
  background: #2727279a;
  color: #fff;
}
.btn-primary:hover { filter: brightness(0.95); }
.btn-outline {
  background: #2727279a;
  color: #fff;
  border: 1px solid #2727279a;
}
.btn-outline:hover { background: rgba(230,90,0,0.06); }

@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-image { height: 180px; }
}


/* -------------------- Flip Card Styles -------------------- */
.product-card {
  position: relative; /* for inner absolute faces */
  perspective: 1200px;
  min-height: 360px;
}
.product-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.product-card .card-face {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.product-card .card-front {
  z-index: 2;
}

.btn.btn-primary.btn-back {
  cursor: pointer;
}
.product-card .card-back {
  transform: rotateY(180deg);
  padding: 20px;
  background: #fff;
  box-sizing: border-box;
  color: #222;
}
.product-back-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}
.product-back-content h3 { margin: 0 0 6px 0; }
.product-back-content ul { margin: 0 0 6px 18px; color:#444; }
.back-long { color: #666; font-size: 14px; margin: 0 0 8px 0; }

/* Make sure front content sits correctly inside absolute face */
.product-card .card-front .product-image { height: 180px; }
.product-card .card-front .product-body { padding: 14px; }

@media (max-width: 900px) {
  .product-card { min-height: 340px; }
}


/* -------------------- Contact Page Styles -------------------- */
.contact-main {
  padding: 40px 20px 80px 20px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-form-wrap { background: #fff; padding: 18px; border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.contact-form label { display:block; margin-top:12px; font-weight:600; color:#333; }
.contact-form input,
.contact-form textarea {
  width:100%;
  padding:10px 12px;
  margin-top:6px;
  border:1px solid #ddd;
  border-radius:6px;
  font-size:14px;
  box-sizing:border-box;
}
.contact-form textarea { resize:vertical; }
.form-actions { margin-top:12px; display:flex; gap:10px; }
.contact-info { background:#fff; padding:18px; border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.contact-info h2 { margin-top:0; }
.contact-info a { color:#e65a00; text-decoration:none; }
.map-placeholder { margin-top:12px; border-radius:8px; overflow:hidden; }
.map-placeholder img { width:100%; height:180px; object-fit:cover; display:block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* -------------------- News Page Styles -------------------- */
.news-main {
  padding: 40px 20px 80px 20px;
}
.news-main .container {
  max-width: 1100px;
  margin: 0 auto;
}
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin-bottom: 40px;
}
.featured-image {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}
.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-content
.featured-content .article-date {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.featured-title {
  margin: 12px 0;
  font-size: 28px;
  color: #111;
}
.featured-desc {
  margin: 12px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}
.subsection-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #222;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}
.news-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
}
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card:hover .news-image img {
  transform: scale(1.05);
}
.news-body {
  padding: 16px;
}
.article-date {
  display: inline-block;
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-title {
  margin: 8px 0;
  font-size: 16px;
  color: #111;
}
.news-excerpt {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #666;
}
.read-more {
  display: inline-block;
  margin-top: 8px;
  color: #e65a00;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}
.read-more:hover {
  color: #d45a00;
}

@media (max-width: 900px) {
  .featured-article { grid-template-columns: 1fr; }
  .featured-image { height: 240px; }
  .featured-title { font-size: 22px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .featured-title { font-size: 18px; }
  .featured-desc { font-size: 14px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-image { height: 160px; }
}

/* -------------------- Comments Page Styles -------------------- */
.comments-main {
  padding: 40px 20px 80px 20px;
}
.comments-main .container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 40px;
}
.comments-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.comment-form-wrap {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.comment-form-wrap h2 {
  margin-top: 0;
  font-size: 20px;
  color: #222;
}
.comment-form label {
  display: block;
  margin-top: 14px;
  font-weight: 600;
  color: #333;
}
.comment-form input,
.comment-form textarea,
.rating-select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
}
.comment-form textarea {
  resize: vertical;
}
.rating-select {
  background: #fff;
  cursor: pointer;
}
.comments-display {
  background: #fff;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.comments-display h2 {
  margin-top: 0;
  font-size: 20px;
  color: #222;
}
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-item {
  padding: 16px;
  border-left: 4px solid #e65a00;
  background: #f9f9f9;
  border-radius: 6px;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.comment-author {
  margin: 0;
  font-size: 15px;
  color: #111;
}
.comment-rating {
  font-size: 14px;
  color: #e65a00;
}
.comment-date {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #999;
}
.comment-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 900px) {
  .comments-grid { grid-template-columns: 1fr; }
}
/* -------------------- Modal Dialog -------------------- */
.article-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

/* Site layout: make footer stick to bottom when content is short */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Let main page sections expand to push footer down */
.products-section,
.contact-main,
.news-main,
.comments-main {
  flex: 1 0 auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: sticky;
  top: 0;
  right: 12px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  padding: 12px;
  float: right;
  z-index: 1001;
}

.modal-close:hover { color: #333; }

.modal-body {
  padding: 24px;
}

.modal-body h2 {
  margin-top: 0;
  font-size: 24px;
  color: #111;
}

.modal-body p {
  line-height: 1.8;
  color: #555;
  margin-bottom: 12px;
}

/* -------------------- Footer -------------------- */
footer {
  background: #2727279a;
  color: #fff;
  padding: 40px 20px 20px 20px;
  margin-top: 60px;
}
footer .container {
  max-width: 1100px;
  margin: 0 auto;
}
footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
footer h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  color: #fff;
}
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer ul li {
  margin-bottom: 10px;
}
footer ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.2s ease;
}
footer ul li a:hover {
  color: #e65a00;
}
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  text-align: center;
  color: #aaa;
  font-size: 14px;
}

.welcome-text {
  text-align: center;
  margin-top: 0;
  margin-bottom: 30px;
  background-color: #ffffff;
}

.welcome-text h2 {
  font-size: 40px;
  color: #222;
  margin-bottom: 10px;
}

.information-contain {
  max-width: 800px;
  margin: 0 auto 60px auto;
  text-align: center;
}
.information-contain h2 {
  font-size: 60px;
  color: #222;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  footer .footer-grid {
    grid-template-columns: 1fr;
  }
}