/* --- TEMEL AYARLAR --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; }
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-5 { margin-top: 3rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* --- HEADER STİLLERİ --- */
.main-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background-color: transparent;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.main-header.scrolled { background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 24px; font-weight: 800; color: #ffffff; transition: color 0.4s ease; }
.main-header.scrolled .logo { color: #222; }

.main-nav ul { list-style: none; display: flex; align-items: center; }
.main-nav ul li { margin-left: 30px; }
.main-nav ul li a { font-weight: 700; font-size: 16px; color: #ffffff; transition: color 0.4s ease; }
.main-header.scrolled .main-nav ul li a { color: #333; }

.cta-button { background-color: #007bff; color: #ffffff !important; padding: 10px 20px; border-radius: 5px; }

/* --- GENEL BÖLÜM STİLLERİ --- */
.products-section, .products-page-section, .page-section {
  padding: 80px 0;
  background-color: #ffffff;
  position: relative;
  z-index: 5;
}
.products-section, .products-page-section { margin-top: 0; }

.section-title { text-align: center; font-size: 2.8rem; font-weight: 800; color: #222; margin-bottom: 60px; }
.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: -40px auto 40px auto;
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

/* --- ANA SAYFA ÜRÜN KARTLARI --- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.product-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }

.product-image { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background-color: #f0f0f0; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-content { padding: 20px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; flex-grow: 1; }
.product-content h3 { font-size: 1.25rem; font-weight: 700; color: #333; margin-bottom: 20px; }

.product-actions { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: auto; }
.product-actions .btn-details { flex-grow: 1; }

.btn-details {
  cursor: pointer;
  display: inline-block;
  background-color: transparent;
  color: #007bff;
  border: 2px solid #007bff;
  padding: 8px 20px;
  border-radius: 5px;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
.btn-details:hover { background-color: #007bff; color: #fff; }

.btn-quick-add {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #495057;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.btn-quick-add:hover { background-color: #ced4da; }
.btn-quick-add.added { background-color: #28a745; color: white; }

/* --- KATEGORİ FİLTRELERİ (ÜRÜNLERİMİZ SAYFASI) --- */
.category-selection-container { margin-bottom: 60px; position: relative; }
.category-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.category-card-link {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  color: white;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.category-card-link:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }

.category-card-link::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
  transition: background 0.3s ease;
}
.category-card-link:hover::after {
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
}
.category-card-link img { width: 100%; height: 100%; object-fit: cover; }
.category-card-link span {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  font-size: 1.2rem; font-weight: 700;
  z-index: 2;
  transition: bottom 0.3s ease;
}
.category-card-link:hover span { bottom: 25px; }
.category-card-link.active { box-shadow: 0 0 0 4px #0d6efd; transform: translateY(-5px); }

.category-level { margin-top: 40px; padding-top: 30px; border-top: 1px solid #eee; }
.category-level-title { font-size: 1.5rem; font-weight: 700; color: #333; }
a.back-to-level-1, a.back-to-level-2 { font-weight: 600; color: #0d6efd; text-decoration: none; }
a.back-to-level-1:hover, a.back-to-level-2:hover { text-decoration: underline; }
#product-list-container { padding-top: 30px; border-top: 1px solid #eee; }

/* --- YENİ ANİMASYONLU GEÇİŞ STİLLERİ --- */
.transition-block {
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, height 0.4s ease-out;
  opacity: 0;
  transform: translateY(20px);
  height: 0;
  overflow: hidden;
  visibility: hidden;
}
.transition-block.is-visible {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  visibility: visible;
}
#level-2, #product-list-container { display: block; }

/* --- SAYFA İÇİ BÖLÜMLER (HAKKIMIZDA) --- */
.page-section.alternate-bg { background-color: #f8f9fa; }

.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.about-image img { width: 100%; border-radius: 10px; }
.about-content .section-title { text-align: left; margin-bottom: 20px; }
.about-content p { font-family: 'Lato', sans-serif; color: #555; line-height: 1.8; margin-bottom: 15px; }

/* --- İLETİŞİM (FINAL) --- */
.contact-grid{
  max-width: 1100px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  text-align: center;
  align-items: start;
}

/* Contact item link komple tıklanabilir */
.contact-item a{
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Başlık + metin */
.contact-item h3 { font-size: 1.5rem; margin-bottom: 10px; }
.contact-item p  { font-family: 'Lato', sans-serif; color: #555; }

/* İkonlar: ALTIN tema (tek yerden) */
.contact-item i{
  font-size: 3rem;
  color: #e6c76a;                 /* altın */
  margin-bottom: 20px;
  transition: transform .25s ease, color .25s ease;
}
.contact-item:hover i{
  color: #c9a24d;                 /* koyu altın */
  transform: translateY(-2px);
}

/* Tablet 2x2 */
@media (max-width: 992px){
  .contact-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* Mobil tek sütun */
@media (max-width: 520px){
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 26px;
  }
}



/* --- ÜRÜN ÇEŞİTLERİ LİSTESİ (MODAL İÇİ) --- */
.variants-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 30px;
  margin-bottom: 20px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}
.variant-list { display: flex; flex-direction: column; gap: 15px; }

.variant-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eee;
}
.variant-thumbnail {
  width: 60px; height: 45px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.variant-thumbnail.active { border-color: #007bff; box-shadow: 0 0 8px rgba(0, 123, 255, 0.5); }
.variant-name { font-weight: 700; font-family: 'Lato', sans-serif; }

.quote-actions { display: flex; gap: 10px; align-items: center; }
.quantity-input { width: 70px; text-align: center; font-size: 1rem; padding: 8px; border: 1px solid #ccc; border-radius: 5px; }
.btn-add-to-list {
  background-color: #007bff; color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-add-to-list:hover { background-color: #0056b3; }
.btn-add-to-list.added { background-color: #28a745; }
.add-to-list-feedback { margin-top: 15px; font-weight: 700; font-size: 0.9rem; }
.add-to-list-feedback .alert-success { color: #155724; }
.add-to-list-feedback .alert-danger { color: #721c24; }

/* --- ANİMASYONLAR --- */
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); background-color: #28a745; color: #fff; }
  100% { transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- RESPONSIVE GENEL --- */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-content .section-title { text-align: center; }
}
@media (max-width: 768px) {
  .modal-detail-grid { grid-template-columns: 1fr; }
  .modal-detail-grid { gap: 20px; text-align: center; }
  .modal-text-content h1 { font-size: 2rem; }
  .variant-item { grid-template-columns: 60px 1fr; }
  .variant-item .quote-actions { grid-column: 1 / -1; margin-top: 10px; }
}

/* --- HERO --- */
.hero-section { position: relative; }
.video-container { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.video-container video { width: 100%; height: 100%; object-fit: cover; display:block; }
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.35);
  color: #fff;
  text-align: center;
}
.hero-overlay h1 { font-size: 48px; font-family: 'Montserrat', sans-serif; letter-spacing: 2px; }
.hero-overlay p { font-size: 18px; margin-top: 10px; }

/* --- SABİT HEADER İÇİN SAYFA ÜST BOŞLUĞU --- */
.page-top{ padding-top: 110px; }
.scroll-anchor{ scroll-margin-top: 110px; height: 1px; }
#urunler, #hakkimizda, #iletisim { scroll-margin-top: 110px; }

@media (max-width: 768px){
  .page-top{ padding-top: 95px; }
  .scroll-anchor{ scroll-margin-top: 95px; }
}

/* --- FOOTER --- */
.site-footer{ background:#0f0f10; color:#fff; padding: 40px 0; }
.site-footer .footer-inner{
  display:flex;
  gap:30px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
.site-footer .footer-brand p{ margin-top: 8px; opacity: .85; }
.site-footer .footer-links{ display:flex; gap:16px; flex-wrap:wrap; }
.site-footer .footer-links a{ opacity:.9; }
.site-footer .footer-links a:hover{ opacity:1; text-decoration: underline; }
.site-footer .footer-copy{ margin-top: 20px; opacity: .75; font-size: 14px; }

.footer-address{
  margin-top: 10px;
  text-align: center;
}
.footer-address a{
  color: #bbb;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: none;
}
.footer-address a:hover{
  color: #fff;
  text-decoration: underline;
}

/* Altın ikon teması */
.contact-item i{
  color: #c9a24d;   /* soft gold */
  transition: transform .2s ease, color .2s ease;
}

/* İletişim ikonları: altın */
.contact-item i{
  color: #e6c76a !important;
  transition: all .25s ease;
}

/* Hover'da koyu altın */
.contact-item:hover i{
  color: #c9a24d !important;   /* daha koyu altın */
  transform: translateY(-2px);
  
}

.contact-item a{
  display: block;
  color: inherit;
  text-decoration: none;
}


/* === KARTON KUTULAR KATEGORİ POPUP === */
.category-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items:center;
  justify-content:center;
  padding: 28px 18px;
}

.category-modal.active{
  display:flex;
}

.category-modal-content{
  width: 100%;
  max-width: 980px;
  border-radius: 18px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  padding: 22px;
  position: relative;
}

.category-modal-close{
  position:absolute;
  top: 12px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.6);
  color:#fff;
  font-size: 26px;
  cursor:pointer;
}

.category-title{
  text-align:center;
  color:#fff;
  font-size: 28px;
  margin: 10px 0 18px;
}

/* Kategori popup içindeki grid */
.category-grid .card{
  border-radius: 14px;
}

/* Mobil */
@media (max-width: 600px){
  .category-modal-content{ padding: 18px; }
  .category-title{ font-size: 22px; }
}


/* === KARTON KUTULAR KATEGORİ POPUP === */
.category-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9000;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items:center;
  justify-content:center;
  padding: 28px 18px;
}
.category-modal.active{ display:flex; }

.category-modal-content{
  width: 100%;
  max-width: 980px;
  border-radius: 18px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  padding: 22px;
  position: relative;
}

.category-modal-close{
  position:absolute;
  top: 12px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.6);
  color:#fff;
  font-size: 26px;
  cursor:pointer;
}

.category-title{
  text-align:center;
  color:#fff;
  font-size: 28px;
  margin: 10px 0 18px;
}

@media (max-width: 600px){
  .category-modal-content{ padding: 18px; }
  .category-title{ font-size: 22px; }
}

.category-modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9999;
}

.category-modal.active{
  display: flex;
}

/* === Kategori Popup daha küçük ve şık === */
.category-modal{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;              /* normalde kapalı */
  align-items: center;        /* ortala */
  justify-content: center;    /* ortala */
  padding: 24px 16px;
  z-index: 9999;
}

.category-modal.active{
  display: flex;
}

/* İç kutu: daha küçük */
.category-modal-content{
  width: min(920px, 92vw);    /* max genişlik */
  max-height: 78vh;           /* ekranı kaplamasın */
  overflow: auto;             /* içerik uzarsa scroll */
  background: #fff;
  border-radius: 16px;
  padding: 22px 22px 18px;
  position: relative;
  box-shadow: 0 25px 80px rgba(0,0,0,.35);
}

/* Kapat butonu */
.category-modal-close{
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

/* Grid biraz daha kompakt */
.category-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-grid .card{
  border-radius: 14px;
  padding: 12px;
  background: #f7f7f7;
  cursor: pointer;
}

/* Mobilde 2 sütun */
@media (max-width: 700px){
  .category-modal-content{ max-height: 85vh; }
  .category-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* === KARTON POPUP: 6 kart tek ekrana sığsın === */
.category-modal-content{
  max-height: 78vh;
  overflow: hidden;            /* içerik taşmasın */
  padding: 18px 18px 14px;
}

/* grid: 3 sütun (masaüstü) */
.category-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* kartlar daha kompakt */
.category-modal .card{
  padding: 10px;
  border-radius: 12px;
}

/* görsel alanı küçült */
.category-modal .card img{
  width: 100%;
  height: 110px;               /* <-- büyüklük buradan */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

/* başlıklar kompakt */
.category-modal .card h3{
  font-size: 14px;
  margin: 0;
}

/* mobil: 2 sütun */
@media (max-width: 900px){
  .category-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-modal .card img{ height: 100px; }
}

/* küçük mobil: 1 sütun */
@media (max-width: 520px){
  .category-modal-content{ max-height: 85vh; overflow: auto; }
  .category-grid{ grid-template-columns: 1fr; }
  .category-modal .card img{ height: 120px; }
}

/* ===== POPUP GENEL PANEL ===== */
#kartonPopup .category-modal-content{
  max-width: 1050px;
  width: min(1050px, 92vw);
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

/* Başlık */
#kartonPopup .category-title{
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: .3px;
  color: #000;
}

/* Grid */
#kartonPopup .category-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Kart */
#kartonPopup .card{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);

  cursor: pointer;
  transition: all .25s ease;
}

/* Hover efekti */
#kartonPopup .card:hover{
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0,0,0,.2);
}

/* Görsel alanı */
#kartonPopup .card img{
  width: 100%;
  height: 140px;        /* biraz büyüttük */
  object-fit: contain;
  background: #f6f6f6;
  border-radius: 14px;
  padding: 10px;
  display: block;
}

/* Başlık */
#kartonPopup .card h3{
  font-size: 15px;
  margin: 0;
  text-align: center;
  font-weight: 600;
}

/* Mobil */
@media (max-width: 900px){
  #kartonPopup .category-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  #kartonPopup .card img{ height: 130px; }
}
@media (max-width: 520px){
  #kartonPopup .category-grid{ grid-template-columns: 1fr; }
  #kartonPopup .card img{ height: 150px; }
}

/* TIKLANABİLİR KART HİSSİ */
.product-card{
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.product-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  filter: brightness(1.02);
}

/* Foto da azıcık canlansın */
.product-card:hover img{
  transform: scale(1.03);
  transition: transform .18s ease;
}

.product-card:hover{
  outline: 2px solid rgba(0,0,0,.08);
  outline-offset: 2px;
}

.disabled-card {
  cursor: not-allowed !important; /* 🚫 işareti */
}