@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Corporate Color Palette */
  --corp-blue: #00509e;
  --corp-blue-dark: #00366b;
  --corp-blue-light: #e6f0fa;
  --text-main: #333333;
  --text-light: #6c757d;
  --bg-main: #ffffff;
  --bg-gray: #f8f9fa;
  --border-color: #dee2e6;
  --success: #28a745;
  --danger: #dc3545;
  
  --font-main: 'Inter', sans-serif;
  --site-top: 80px;
  --container-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-main);
  background-color: var(--bg-gray);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
}
a { text-decoration: none; color: var(--corp-blue); transition: 0.2s; }
a:hover { color: var(--corp-blue-dark); }
img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; font-weight: 600; border-radius: 4px;
  transition: all 0.2s; cursor: pointer; text-align: center; border: none;
  font-size: 0.95rem; text-decoration: none;
}
.btn-primary { background: var(--corp-blue); color: #fff; }
.btn-primary:hover { background: var(--corp-blue-dark); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--corp-blue); color: var(--corp-blue); }
.btn-outline:hover { background: var(--corp-blue); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #218838; color: #fff; }
.btn-lg { padding: 12px 30px; font-size: 1.05rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.top-bar {
  background: var(--corp-blue-dark); color: #fff; padding: 8px 0; font-size: 0.85rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-contact { display: flex; gap: 20px; }
.top-contact a { color: #fff; display: flex; align-items: center; gap: 6px; }
.top-contact a:hover { opacity: 0.8; }
.top-social { display: flex; gap: 15px; }
.top-social a { color: #fff; font-weight: 500; }

.site-header {
  background: var(--bg-main); box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  display: flex; justify-content: space-between; align-items: center; height: var(--site-top);
}
.logo { font-size: 1.5rem; font-weight: 800; color: var(--corp-blue-dark); letter-spacing: -0.5px; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--corp-blue); }
.logo img { height: 40px; }

.main-nav { display: flex; gap: 30px; height: 100%; align-items: center; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
  color: var(--text-main); font-weight: 600; display: flex; align-items: center; height: 100%;
}
.nav-link:hover, .nav-item:hover .nav-link { color: var(--corp-blue); }

.dropdown-menu {
  position: absolute; top: 100%; left: 0; background: #fff;
  min-width: 220px; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  border-top: 3px solid var(--corp-blue);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: 0.2s; z-index: 100;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 12px 20px; color: var(--text-main); border-bottom: 1px solid var(--border-color); font-size: 0.9rem; font-weight: 500;
}
.dropdown-menu a:hover { background: var(--bg-gray); padding-left: 25px; color: var(--corp-blue); }
.dropdown-menu a:last-child { border-bottom: none; }

.header-actions { display: flex; gap: 15px; align-items: center; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.8rem; color: var(--text-main); cursor: pointer; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: var(--bg-gray); padding: 80px 0; border-bottom: 1px solid var(--border-color);
  position: relative; overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 2;
}
.hero-content h1 {
  font-size: 3rem; color: var(--corp-blue-dark); line-height: 1.2; margin-bottom: 20px; font-weight: 800;
}
.hero-content p {
  font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; font-weight: 500;
}
.hero-image img { max-width: 100%; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); }

/* ==========================================================================
   CATEGORIES / GRID
   ========================================================================== */
.section-padding { padding: 80px 0; }
.section-bg { background: #fff; }
.section-title {
  font-size: 2rem; color: var(--corp-blue-dark); text-align: center; margin-bottom: 50px; font-weight: 700;
}
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px;
}
.cat-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: 6px;
  padding: 30px 20px; text-align: center; transition: 0.3s; display: block; text-decoration: none;
}
.cat-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.05); transform: translateY(-5px); border-color: var(--corp-blue);
}
.cat-card img { height: 120px; margin: 0 auto 20px; object-fit: contain; }
.cat-card h3 { color: var(--corp-blue-dark); font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.cat-card p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 0; }

/* ==========================================================================
   PRODUCT PAGES
   ========================================================================== */
.page-header {
  background: #fff; padding: 30px 0; border-bottom: 1px solid var(--border-color); margin-bottom: 40px;
}
.breadcrumb {
  display: flex; gap: 8px; font-size: 0.85rem; color: var(--text-light); align-items: center;
}
.breadcrumb a { color: var(--corp-blue); font-weight: 500; }
.breadcrumb .sep { color: #ccc; }
.page-title { font-size: 2.2rem; color: var(--corp-blue-dark); font-weight: 700; margin-top: 10px; }

.product-detail-grid {
  display: grid; grid-template-columns: 45% 55%; gap: 50px; background: #fff; padding: 40px; border: 1px solid var(--border-color); border-radius: 8px; margin-bottom: 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.product-gallery { display: flex; align-items: center; justify-content: center; padding: 20px; border: 1px solid var(--border-color); border-radius: 4px; background: #fff; }
.product-gallery img { max-height: 400px; object-fit: contain; }
.product-info h1 { font-size: 2rem; color: var(--corp-blue-dark); margin-bottom: 15px; line-height: 1.3; }
.product-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 25px; color: var(--text-light); font-size: 0.9rem; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }
.product-meta span strong { color: var(--text-main); font-weight: 600; }
.product-desc { margin-bottom: 30px; font-size: 1rem; color: var(--text-main); }
.product-desc ul { margin-left: 20px; margin-top: 15px; }
.product-desc li { margin-bottom: 8px; color: var(--text-main); }
.product-actions { display: flex; gap: 15px; margin-top: 30px; }

/* Tablo Yapısı (Data Table) */
.tech-specs { background: #fff; border: 1px solid var(--border-color); border-radius: 8px; padding: 40px; margin-bottom: 60px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.tech-specs h2 { font-size: 1.5rem; color: var(--corp-blue-dark); margin-bottom: 25px; border-bottom: 2px solid var(--corp-blue); padding-bottom: 10px; display: inline-block; }
.spec-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; border: 1px solid var(--border-color); }
.spec-table th, .spec-table td { padding: 12px 15px; border-bottom: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
.spec-table th { background: var(--bg-gray); color: var(--corp-blue-dark); width: 30%; font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) td { background: #fafafa; }
.spec-table td:last-child { border-right: none; }

/* Grid Listing (for Category Pages) */
.product-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card {
  background: #fff; border: 1px solid var(--border-color); border-radius: 6px; padding: 25px;
  text-align: center; transition: 0.3s; position: relative; display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--corp-blue); box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
.product-card img { height: 180px; object-fit: contain; margin: 0 auto 20px; }
.product-card h3 { font-size: 1.1rem; color: var(--corp-blue-dark); margin-bottom: 10px; line-height: 1.4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3rem; }
.product-card .cat-tag {
  position: absolute; top: 15px; right: 15px; background: var(--bg-gray); color: var(--text-light);
  font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; font-weight: 600; border: 1px solid var(--border-color);
}
.product-card .btn { margin-top: auto; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--corp-blue-dark); color: #fff; padding: 60px 0 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px;
}
.footer-col h4 { font-size: 1.2rem; margin-bottom: 20px; font-weight: 600; border-bottom: 2px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.footer-col p { color: #aebfd1; font-size: 0.9rem; margin-bottom: 15px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: #aebfd1; font-size: 0.9rem; }
.footer-col ul a:hover { color: #fff; padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; color: #aebfd1; font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
.mobile-drop { display: none; padding: 0 10px; cursor: pointer; color: var(--text-light); }

@media (max-width: 992px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; flex-direction: column; gap: 0; border-top: 1px solid var(--border-color); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  .main-nav.active { display: flex; }
  .nav-item { height: auto; }
  .nav-link { padding: 15px 20px; border-bottom: 1px solid var(--bg-gray); height: auto; }
  .dropdown-menu { position: static; box-shadow: none; border-top: none; opacity: 1; visibility: visible; transform: none; display: none; background: var(--bg-gray); padding-left: 20px; }
  .nav-item.open .dropdown-menu { display: block; }
  .nav-item > a { display: inline-block; width: 80%; }
  .mobile-drop { display: inline-block; float: right; font-size: 1.2rem; line-height: 1; padding: 15px; }
  .mobile-toggle { display: block; }
  
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-btns { justify-content: center; }
  
  .product-detail-grid { grid-template-columns: 1fr; padding: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .top-bar { display: none; }
}

/* Aliases for PS scripts */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.page-hero { background: var(--corp-blue-dark); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { font-size: 2.5rem; margin-bottom: 15px; }
.page-hero p { font-size: 1.1rem; opacity: 0.8; max-width: 800px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.feature-card { background: #fff; padding: 25px; border: 1px solid var(--border-color); border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.feature-card h3 { color: var(--corp-blue); font-size: 1.1rem; margin-bottom: 10px; }
.filter-bar { display: flex; gap: 20px; background: #fff; padding: 20px; border: 1px solid var(--border-color); border-radius: 6px; margin-bottom: 30px; align-items: center; flex-wrap: wrap; }
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-group label { font-weight: 600; color: var(--corp-blue-dark); }
.filter-group select, .filter-group input { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-main); outline: none; }
.filter-group select:focus, .filter-group input:focus { border-color: var(--corp-blue); }
.cta-block { background: var(--corp-blue-light); padding: 60px 0; text-align: center; border-top: 1px solid var(--border-color); }
.cta-block h2 { color: var(--corp-blue-dark); font-size: 2rem; margin-bottom: 15px; }
.cta-block p { color: var(--text-main); font-size: 1.1rem; margin-bottom: 30px; }
/* ==========================================================================
   BLOG GRID
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px 30px;
  padding: 40px 0;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-main);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  color: var(--text-main);
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  color: var(--text-main);
}
.blog-card-img {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.05);
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-body .date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 500;
}
.blog-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--corp-blue-dark);
  line-height: 1.4;
}
.blog-card-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   CATALOG & CATEGORY LAYOUT
   ========================================================================== */
.catalog-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.filters-sidebar {
  flex: 0 0 280px;
  background: var(--bg-surface);
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  height: fit-content;
}
.filters-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--corp-blue-dark);
  font-weight: 700;
  margin-top: 0;
}
.filters-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filters-sidebar ul li a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s, padding-left 0.2s;
  display: block;
  padding: 4px 0;
}
.filters-sidebar ul li a:hover {
  color: var(--corp-blue);
  padding-left: 5px;
  font-weight: 500;
}
.products-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .catalog-layout {
    flex-direction: column;
  }
  .filters-sidebar {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }
}

/* ==========================================================================
   SWIPER SLIDER CUSTOMIZATION
   ========================================================================== */
.bestseller-swiper {
  padding: 20px 10px 50px 10px !important;
}
.bestseller-swiper .swiper-pagination-bullet {
  background: var(--text-muted);
}
.bestseller-swiper .swiper-pagination-bullet-active {
  background: var(--corp-blue);
}
.bestseller-swiper .swiper-button-next,
.bestseller-swiper .swiper-button-prev {
  color: var(--corp-blue);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  top: 40%;
}
.bestseller-swiper .swiper-button-next::after,
.bestseller-swiper .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: bold;
}
.bestseller-swiper .product-card {
  height: 100%;
}
