* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f5f5f5;
  color: #222;
}

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

.category-layout-page .category-page {
  flex: 1;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ================= NAVBAR ================= */

.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
}

.logo img {
  height: 45px;
}

.menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: 0.3s;
}

.menu a:hover {
  color: #d62828;
}

.cta-btn {
  background: #e8831b;
  color: white !important;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}

.cta-btn:hover {
  background: #a61c1c;
}

.mobile-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* ================= HERO (3 BOX) ================= */

.hero {
  position: relative;
  width: 100%;
  height: 900px; /* hero yüksekliği */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* HERO ARKA PLAN */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop kontrolü */
  z-index: 0;
}




/* Overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
 
}
/* 3'lü grid sağ üst */
.hero-grid {
  position: absolute;
  top: 250px;
  left: 19%;
  z-index: 2;
  display: flex;
  gap: 45px;
}

/* Küçük kutular */
.hero-box {
  overflow: hidden;
  background: #e8831b;
  padding: 20px 25px;
  border-radius: 12px;
  color: white;
  width: 300px;
  height: 300px;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: 0.3s ease;
}

.hero-box:hover {
  transform: translateY(-5px);
}

.hero-box h1 {
  font-size: 20px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.hero-box p {
  font-size: 15px;
  opacity: 0.95;
}
/* HERO BOX IMAGE */
.hero-box-img {
  
  width: 100%;
  height: 200px;      /* SABİT YÜKSEKLİK → taşma olmaz */
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.hero-box-img img {
  display: block;     /* inline boşluk bug fix */
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Hover’da görsel zoom */
.hero-box:hover .hero-box-img img {
  transform: scale(1.05);
}

/* ================= CATEGORIES ================= */

.categories {
  padding: 80px 0;
  text-align: center;
}


.categories h2 {
  margin-bottom: 40px;
  font-size: 28px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.category-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* ================= FOOTER ================= */

.footer {
  background: #111;
  color: #ddd;
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #bbb;
  text-decoration: none;
  transition: 0.3s;
}

.footer-col a:hover {
  color: #ff7f00;
}

.footer-col p {
  margin-bottom: 10px;
  font-size: 14px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-btn {
  display: inline-block;
  background: #ff7f00;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.footer-btn:hover {
  background: #e56f00;
}

.footer-bottom {
  margin-top: 50px;
  padding: 20px 0;
  text-align: center;
  background: #0a0a0a;
  font-size: 14px;
  color: #aaa;
}

/* Responsive */

@media(max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ================= MOBILE ================= */

@media(max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 768px) {

  .hero {
    aspect-ratio: auto;
    height: auto;
    padding: 80px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .menu {
    position: absolute;
    top: 70px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    display: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }

  .menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }
}

/* ================= CATEGORY PAGE ================= */

.category-page {
  padding: 60px 0;
}

.category-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

/* SIDEBAR */

.sidebar {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  height: fit-content;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.sidebar h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin-bottom: 12px;
}

.sidebar ul li a {
  text-decoration: none;
  color: #333;
  transition: 0.3s;
}

.sidebar ul li a:hover {
  color: #ff7f00;
}

/* PRODUCT GRID */

.product-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.product-card h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.price {
  font-weight: bold;
  color: #ff7f00;
  margin-bottom: 15px;
}

.product-card button {
  background: #ff7f00;
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.product-card button:hover {
  background: #e56f00;
}

/* RESPONSIVE */

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

@media(max-width: 768px) {

  .category-layout {
    grid-template-columns: 1fr;
  }

  .product-area {
    grid-template-columns: 1fr;
  }

}


.product-detail-page {
  padding: 60px 0;
}

.product-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.product-detail-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-detail-info h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.product-barcode {
  margin-bottom: 25px;
  font-size: 15px;
  color: #555;
}

.buy-btn {
  display: inline-block;
  background: #ff7f00;
  color: white;
  padding: 14px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.buy-btn:hover {
  background: #e56f00;
}

/* ALT AÇIKLAMA FULL WIDTH */

.product-description-full {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.product-description-full h3 {
  margin-bottom: 15px;
  font-size: 20px;
}

.product-description-full p {
  line-height: 1.6;
  color: #444;
}

/* Responsive */

@media(max-width: 768px) {
  .product-detail-top {
    grid-template-columns: 1fr;
  }
}

.mobile-only {
  display: block !important;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}
