/* ===== PAGEBUILDER FRONTEND STYLES ===== */
/* Bu dosyayı sitenizin CSS'ine dahil edin */

* { box-sizing: border-box; }

/* ===== BANNER SECTIONS ===== */
.banner-section { margin-bottom: 20px; }
.banner-grid { display: grid; gap: 10px; }
.banner-cols-1 .banner-grid { grid-template-columns: 1fr; }
.banner-cols-2 .banner-grid { grid-template-columns: 1fr 1fr; }
.banner-cols-3 .banner-grid { grid-template-columns: 1fr 1fr 1fr; }

.banner-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.banner-cols-1 .banner-item { height: 480px; }
.banner-cols-2 .banner-item { height: 300px; }
.banner-cols-3 .banner-item { height: 250px; }

.banner-item:hover { transform: scale(1.01); }
.banner-item:hover .banner-btn { background: rgba(255,255,255,1); color: #333; }

.banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.3s;
}

.banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 40px;
}

.banner-title {
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 800;
  margin: 0 0 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.banner-sub {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  margin: 0 0 20px;
  opacity: 0.9;
  max-width: 500px;
}

.banner-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 30px;
  background: rgba(255,255,255,0.85);
  color: #333;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  border: 2px solid rgba(255,255,255,0.5);
  width: fit-content;
  cursor: pointer;
  text-decoration: none;
}

.banner-empty {
  height: 200px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 0.9rem;
  cursor: default;
}
.banner-empty:hover { transform: none; }

/* ===== SLIDER ===== */
.slider-section {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.slider-btn:hover { background: rgba(0,0,0,0.6); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.slider-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

/* ===== PRODUCT SECTIONS ===== */
.product-section { margin-bottom: 30px; }

.product-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.product-img-wrap {
  position: relative;
  padding-top: 100%;
  background: #f8f8f8;
  overflow: hidden;
}
.product-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-no-img {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ccc;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
}
.new-badge { background: #00d4aa; color: #fff; }
.discount-badge { background: #ff4757; color: #fff; top: 10px; left: auto; right: 10px; }

.product-info { padding: 14px; }
.product-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-price { margin-bottom: 10px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.old-price { font-size: 0.78rem; color: #aaa; text-decoration: line-through; }
.current-price { font-size: 1rem; font-weight: 800; color: #e74c3c; }

.add-to-cart {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  border: none;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.add-to-cart:hover { background: #6c63ff; }

.no-products {
  grid-column: 1/-1;
  text-align: center;
  padding: 40px;
  color: #999;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .banner-cols-2 .banner-grid,
  .banner-cols-3 .banner-grid { grid-template-columns: 1fr; }
  .banner-cols-1 .banner-item { height: 280px; }
  .slide { height: 280px; }
  .banner-content { padding: 20px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CONTAINER ===== */
.pb-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.pb-container .banner-section,
.pb-container .slider-section,
.pb-container .product-section {
  /* Sektörleri container içinde tut */
}
