/* =========================================================
   USTA MARANGOZ - Ahşap Atölye Teması
   ========================================================= */
:root {
  --wood-dark: #3e2723;
  --wood-medium: #6d4c33;
  --wood-warm: #8b5a2b;
  --wood-light: #c8985a;
  --wood-cream: #f5ede1;
  --wood-accent: #d97b29;
  --wood-accent-dark: #b5601a;
  --text-dark: #2b1e14;
  --shadow-soft: 0 10px 30px rgba(62, 39, 23, 0.15);
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--wood-cream);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(217,123,41,0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(109,76,51,0.08) 0%, transparent 45%);
}

h1, h2, h3, h4, h5, .brand-font {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--wood-dark);
}

a { color: var(--wood-accent-dark); text-decoration: none; }
a:hover { color: var(--wood-accent); }

/* ---------- Navbar ---------- */
.navbar-wood {
  background: linear-gradient(135deg, var(--wood-dark) 0%, var(--wood-medium) 100%);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.navbar-wood .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--wood-cream) !important;
  letter-spacing: 0.5px;
}
.navbar-wood .navbar-brand i { color: var(--wood-accent); margin-right: 8px; }
.navbar-wood .nav-link {
  color: rgba(245,237,225,0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all .2s ease;
}
.navbar-wood .nav-link:hover,
.navbar-wood .nav-link.active {
  color: #fff !important;
  background: rgba(217,123,41,0.25);
}
.search-form-nav .form-control {
  border-radius: 30px 0 0 30px;
  border: none;
}
.search-form-nav .btn {
  border-radius: 0 30px 30px 0;
  background: var(--wood-accent);
  border: none;
  color: #fff;
}
.search-form-nav .btn:hover { background: var(--wood-accent-dark); }

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  background: linear-gradient(120deg, rgba(62,39,23,0.92), rgba(109,76,51,0.85)),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect width="200" height="200" fill="%236d4c33"/><path d="M0 20h200M0 60h200M0 100h200M0 140h200M0 180h200" stroke="%238b5a2b" stroke-width="2" opacity="0.3"/></svg>');
  background-size: cover;
  color: #fff;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero-section h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-section p.lead { color: rgba(255,255,255,0.85); font-size: 1.2rem; }
.hero-section::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--wood-cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 75% 60%, 50% 10%, 25% 60%, 0 0);
}
.btn-wood {
  background: var(--wood-accent);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(217,123,41,0.35);
  transition: all .2s ease;
}
.btn-wood:hover { background: var(--wood-accent-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-wood {
  border: 2px solid var(--wood-cream);
  color: var(--wood-cream);
  font-weight: 600;
  border-radius: 30px;
  padding: 0.65rem 1.7rem;
  background: transparent;
}
.btn-outline-wood:hover { background: var(--wood-cream); color: var(--wood-dark); }

/* ---------- Section Titles ---------- */
.section-title {
  position: relative;
  font-weight: 700;
  margin-bottom: 2.2rem;
  padding-bottom: 0.6rem;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 60px; height: 4px;
  background: var(--wood-accent);
  border-radius: 4px;
}
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

/* ---------- Category Cards ---------- */
.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  border: 1px solid rgba(139,90,43,0.08);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(62,39,23,0.2);
}
.category-card .cat-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wood-accent), var(--wood-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.7rem;
  color: #fff;
}
.category-card h5 { margin-bottom: .3rem; }
.category-card small { color: #8a7360; }

/* ---------- Product Cards ---------- */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
  border: 1px solid rgba(139,90,43,0.08);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(62,39,23,0.22);
}
.product-card .img-wrap {
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #eee0cc, #f7f0e4);
  display: flex; align-items: center; justify-content: center;
}
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .img-wrap .placeholder-icon { font-size: 3rem; color: var(--wood-light); }
.product-card .card-body { padding: 1.2rem 1.3rem 1.4rem; }
.product-card .cat-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--wood-accent-dark);
  background: rgba(217,123,41,0.12);
  padding: .25rem .7rem;
  border-radius: 20px;
  margin-bottom: .6rem;
}
.product-card .price-tag {
  font-weight: 700;
  color: var(--wood-dark);
  font-size: 1.15rem;
}
.product-card .card-title { font-size: 1.05rem; }

.badge-featured {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--wood-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 20px;
  z-index: 2;
}
.product-card { position: relative; }

/* ---------- Product Detail ---------- */
.product-gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #fff;
  height: 420px;
  display: flex; align-items: center; justify-content: center;
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb {
  width: 100%; height: 90px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .75;
  transition: all .2s ease;
}
.product-thumb:hover, .product-thumb.active { opacity: 1; border-color: var(--wood-accent); }
.rich-content img { max-width: 100%; border-radius: 10px; height:auto; }
.rich-content { line-height: 1.8; }

/* ---------- Breadcrumb ---------- */
.wood-breadcrumb {
  background: rgba(139,90,43,0.08);
  padding: 0.9rem 0;
}
.wood-breadcrumb .breadcrumb { margin-bottom: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--wood-dark);
  color: rgba(245,237,225,0.75);
  padding: 50px 0 20px;
  margin-top: 60px;
}
footer.site-footer h5 { color: var(--wood-cream); font-family: 'Playfair Display', serif; }
footer.site-footer a { color: rgba(245,237,225,0.75); }
footer.site-footer a:hover { color: var(--wood-accent); }
footer.site-footer .footer-bottom {
  border-top: 1px solid rgba(245,237,225,0.12);
  margin-top: 30px;
  padding-top: 18px;
  font-size: .88rem;
}

/* ---------- Sidebar (kategori/filtre) ---------- */
.sidebar-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem;
}
.sidebar-card .list-group-item {
  border: none;
  border-radius: 8px !important;
  margin-bottom: 4px;
  font-weight: 500;
}
.sidebar-card .list-group-item.active {
  background: var(--wood-accent);
  color: #fff;
}
.sidebar-card .list-group-item:not(.active):hover { background: rgba(217,123,41,0.1); }

/* ---------- Admin Panel ---------- */
.admin-sidebar {
  background: linear-gradient(180deg, var(--wood-dark), var(--wood-medium));
  min-height: 100vh;
  color: var(--wood-cream);
}
.admin-sidebar .brand { padding: 1.4rem 1.2rem; font-family:'Playfair Display',serif; font-size:1.3rem; font-weight:700; }
.admin-sidebar a.nav-link {
  color: rgba(245,237,225,0.8);
  padding: .7rem 1.3rem;
  border-radius: 8px;
  margin: 2px 10px;
  font-weight: 500;
}
.admin-sidebar a.nav-link:hover, .admin-sidebar a.nav-link.active {
  background: rgba(217,123,41,0.25);
  color: #fff;
}
.admin-content { background: #f7f3ec; min-height: 100vh; padding: 2rem; }
.stat-card {
  border-radius: var(--radius);
  color: #fff;
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.stat-card.c1 { background: linear-gradient(135deg,#8b5a2b,#d97b29); }
.stat-card.c2 { background: linear-gradient(135deg,#3e2723,#6d4c33); }
.stat-card.c3 { background: linear-gradient(135deg,#6d4c33,#a97848); }
.admin-card {
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 1.6rem;
}
.login-wrapper {
  min-height: 100vh;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--wood-dark), var(--wood-medium));
}
.login-box {
  background:#fff; border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 420px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.form-control:focus, .form-select:focus {
  border-color: var(--wood-accent);
  box-shadow: 0 0 0 .2rem rgba(217,123,41,0.2);
}
.table thead { background: var(--wood-dark); color: #fff; }
.cover-preview { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }

/* ---------- Pagination ---------- */
.pagination .page-link { color: var(--wood-accent-dark); border-radius: 8px; margin: 0 3px; border: none; }
.pagination .page-item.active .page-link { background: var(--wood-accent); }

/* ---------- Empty State ---------- */
.empty-state { text-align:center; padding: 4rem 1rem; color:#8a7360; }
.empty-state i { font-size: 3.5rem; color: var(--wood-light); margin-bottom: 1rem; display:block; }

@media (max-width: 767px) {
  .hero-section { padding: 60px 0 80px; }
  .hero-section h1 { font-size: 2.1rem; }
}
