/* ============================================================
   TEE CONCEPT FURNITURES — MAIN STYLESHEET
   ============================================================ */

:root {
  --wood-50: #fbf7f2;
  --wood-100: #f3e9dc;
  --wood-200: #e6d0b3;
  --wood-300: #d6b183;
  --wood-400: #c4915a;
  --wood-500: #a9713f;
  --wood-600: #8c5a32;
  --wood-700: #6f462a;
  --wood-800: #5a3924;
  --wood-900: #3c2718;
  --cream: #faf6f0;
  --charcoal: #241f1c;
  --radius: 16px;
  --shadow: 0 10px 40px -10px rgba(60, 39, 24, 0.15);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.5;
}

h1, h2, h3, .serif {
  font-family: Georgia, Cambria, serif;
  margin: 0;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 24px;
}
@media (min-width: 768px) {
  .section { padding: 96px 48px; }
}
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}
.btn-primary {
  background: var(--wood-700);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--wood-800); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--wood-700);
  color: var(--wood-800);
}
.btn-secondary:hover { background: var(--wood-700); color: var(--cream); }

.btn-whatsapp {
  background: #16a34a;
  color: #fff;
  box-shadow: var(--shadow);
}
.btn-whatsapp:hover { background: #15803d; }

.btn-danger-outline {
  background: transparent;
  border: 1px solid #fca5a5;
  color: #dc2626;
}

.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-block { width: 100%; }

/* -------------------- Navbar -------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--wood-100);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
@media (min-width: 768px) { .navbar-inner { padding: 16px 48px; } }

.logo {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--wood-800);
}
.logo span { color: var(--wood-500); }

.nav-links {
  display: none;
  gap: 32px;
}
.nav-links a { font-weight: 500; color: rgba(36,31,28,0.8); }
.nav-links a:hover { color: var(--wood-700); }

.nav-actions { display: none; gap: 12px; }

.hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--wood-800);
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .hamburger { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 24px;
  background: var(--cream);
  border-top: 1px solid var(--wood-100);
}
.mobile-menu.open { display: flex; }

/* -------------------- Footer -------------------- */
.footer {
  background: var(--charcoal);
  color: rgba(250,246,240,0.9);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 64px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); padding: 64px 48px; }
}
.footer h4 { font-weight: 600; margin-bottom: 12px; }
.footer li, .footer p { color: rgba(250,246,240,0.65); font-size: 14px; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(250,246,240,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(250,246,240,0.5);
  padding: 16px;
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(36,31,28,0.85), rgba(36,31,28,0.5), rgba(36,31,28,0.15));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 720px;
}
@media (min-width: 768px) { .hero-content { padding: 0 48px; } }
.hero-badge {
  display: inline-block;
  color: var(--wood-200);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(250,246,240,0.3);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}
.hero h1 {
  color: var(--cream);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}
@media (min-width: 768px) { .hero h1 { font-size: 56px; } }
.hero p {
  color: rgba(250,246,240,0.85);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 28px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }

/* -------------------- Trust bar -------------------- */
.trust-bar {
  background: var(--wood-50);
  border-top: 1px solid var(--wood-100);
  border-bottom: 1px solid var(--wood-100);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
  padding: 40px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(5, 1fr); padding: 40px 48px; } }
.trust-icon {
  width: 48px; height: 48px;
  border-radius: 999px;
  background: var(--wood-700);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.trust-grid h3 { font-size: 14px; font-weight: 600; color: var(--wood-800); }
.trust-grid p { font-size: 12px; color: rgba(36,31,28,0.6); margin-top: 4px; display: none; }
@media (min-width: 768px) { .trust-grid p { display: block; } }

/* -------------------- Generic section headers -------------------- */
.eyebrow {
  color: var(--wood-500);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
}
.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 8px;
}
@media (min-width: 768px) { .section-title { font-size: 38px; } }
.section-header { text-align: center; margin-bottom: 48px; }

/* -------------------- Cards / grids -------------------- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-4px); }

.product-card-image { height: 224px; overflow: hidden; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card-image:hover img { transform: scale(1.05); }
.product-card-body { padding: 20px; }
.category-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--wood-500); font-weight: 600; }
.product-card-body h3 { font-size: 18px; margin: 6px 0; }
.product-card-body .desc { font-size: 14px; color: rgba(36,31,28,0.6); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-note { font-size: 14px; font-weight: 600; color: var(--wood-700); margin-bottom: 16px; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; padding: 10px 12px; font-size: 12px; }

/* -------------------- Two-column layout -------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }
.rounded-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rounded-image img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------- Feature list -------------------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 14px;
  color: rgba(36,31,28,0.7);
  margin: 20px 0;
}
.feature-list li { display: flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: var(--wood-500); flex-shrink: 0; }

/* -------------------- Process steps -------------------- */
.process-section { background: var(--wood-800); color: var(--cream); }
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step .step-num { font-family: Georgia, serif; font-size: 36px; font-weight: 700; color: var(--wood-400); margin-bottom: 12px; }
.process-step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: rgba(250,246,240,0.7); margin: 0; }

/* -------------------- Testimonials -------------------- */
.testimonial-stars { color: var(--wood-500); margin-bottom: 12px; }
.testimonial-text { font-size: 14px; font-style: italic; color: rgba(36,31,28,0.8); margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px; border-radius: 999px; object-fit: cover;
  background: var(--wood-200); color: var(--wood-700); font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* -------------------- Forms -------------------- */
.input-field {
  width: 100%;
  border: 1px solid var(--wood-200);
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
}
.input-field:focus { outline: 2px solid var(--wood-400); }
label.form-label { font-size: 14px; font-weight: 600; color: var(--charcoal); display: block; margin-bottom: 6px; }
.form-group { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }

/* -------------------- Page header bands -------------------- */
.page-hero {
  background: var(--wood-800);
  color: var(--cream);
  text-align: center;
  padding: 80px 24px;
}
.page-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
@media (min-width: 768px) { .page-hero h1 { font-size: 48px; } }
.page-hero p { color: rgba(250,246,240,0.8); max-width: 560px; margin: 0 auto; }

/* -------------------- Filters bar -------------------- */
.filters-bar { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.filters-bar .input-field { max-width: 260px; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.filter-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--wood-50);
  color: rgba(36,31,28,0.7);
  border: none;
  cursor: pointer;
}
.filter-pill.active { background: var(--wood-700); color: var(--cream); }

/* -------------------- Gallery masonry -------------------- */
.masonry { column-count: 2; column-gap: 16px; }
@media (min-width: 768px) { .masonry { column-count: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 16px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.masonry-caption { padding: 12px; }
.masonry-caption p { margin: 0; font-size: 13px; }
.masonry-caption .sub { color: rgba(36,31,28,0.6); font-size: 12px; }

/* -------------------- Product detail -------------------- */
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 420px; margin-bottom: 16px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; overflow-x: auto; }
.gallery-thumb {
  width: 80px; height: 80px; flex-shrink: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: none; padding: 0;
}
.gallery-thumb.active { border-color: var(--wood-700); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-fact { font-size: 14px; margin-bottom: 10px; }
.detail-fact strong { color: var(--charcoal); }
.detail-fact span { color: rgba(36,31,28,0.7); }

/* -------------------- Contact -------------------- */
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 280px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* -------------------- Admin -------------------- */
.admin-layout { display: flex; flex-direction: column; min-height: 100vh; background: var(--wood-50); }
@media (min-width: 1024px) { .admin-layout { flex-direction: row; } }

.admin-topbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--charcoal); color: var(--cream); padding: 14px 20px;
}
@media (min-width: 1024px) { .admin-topbar { display: none; } }
.admin-topbar button { background: none; border: none; color: var(--cream); cursor: pointer; }

.admin-sidebar {
  display: none;
  width: 100%;
  background: var(--charcoal);
  color: var(--cream);
}
.admin-sidebar.open { display: block; }
@media (min-width: 1024px) {
  .admin-sidebar { display: block; width: 260px; min-height: 100vh; position: sticky; top: 0; }
}
.admin-sidebar-header { padding: 24px; border-bottom: 1px solid rgba(250,246,240,0.1); display: none; }
@media (min-width: 1024px) { .admin-sidebar-header { display: block; } }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.admin-sidebar nav a, .admin-sidebar nav button {
  padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: rgba(250,246,240,0.7); text-align: left; background: none; border: none; cursor: pointer;
}
.admin-sidebar nav a.active { background: var(--wood-700); color: var(--cream); }
.admin-sidebar nav a:hover { background: rgba(250,246,240,0.08); }
.admin-sidebar nav .logout-btn { color: #fca5a5; margin-top: 12px; }

.admin-main { flex: 1; padding: 24px; }
@media (min-width: 1024px) { .admin-main { padding: 40px; } }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(5, 1fr); } }
.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.stat-card .label { font-size: 13px; color: rgba(36,31,28,0.5); }
.stat-card .value { font-family: Georgia, serif; font-size: 30px; font-weight: 700; margin-top: 4px; }

.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--wood-800); padding: 24px; }
.admin-login-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; width: 100%; max-width: 360px; }

.badge { font-size: 11px; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.badge-published { background: #dcfce7; color: #15803d; }
.badge-draft { background: #fef9c3; color: #a16207; }
.badge-featured { background: var(--wood-100); color: var(--wood-700); }
.badge-new { background: #dbeafe; color: #1d4ed8; }
.badge-contacted { background: #fef9c3; color: #a16207; }
.badge-completed { background: #dcfce7; color: #15803d; }

.status-btn { font-size: 12px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--wood-200); color: rgba(36,31,28,0.6); background: #fff; cursor: pointer; }
.status-btn.active { background: var(--wood-700); color: var(--cream); border-color: var(--wood-700); }

.uploader-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .uploader-grid { grid-template-columns: repeat(4, 1fr); } }
.uploader-thumb { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; border: 1px solid var(--wood-200); }
.uploader-thumb img, .uploader-thumb video { width: 100%; height: 100%; object-fit: cover; }
.uploader-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 999px;
  background: rgba(36,31,28,0.8); color: #fff; border: none; font-size: 11px; cursor: pointer;
}
.upload-label { display: inline-flex; cursor: pointer; }
.help-text { font-size: 12px; color: rgba(36,31,28,0.5); margin-top: 8px; }

.enquiry-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.enquiry-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 8px; }

.admin-product-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .admin-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .admin-product-grid { grid-template-columns: repeat(3, 1fr); } }

.admin-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .admin-gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.admin-gallery-card { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.admin-gallery-thumb { height: 128px; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.admin-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-product-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.admin-product-thumb { height: 140px; border-radius: 10px; overflow: hidden; background: var(--wood-100); margin-bottom: 12px; }
.admin-product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.empty-state { color: rgba(36,31,28,0.5); text-align: center; padding: 60px 0; }

.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--charcoal); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow); animation: fadeIn 0.2s ease; }
.toast.error { background: #dc2626; }
.toast.success { background: #16a34a; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
