/*
Theme Name: Dnix-Furniture-Pro
Theme URI: https://dnixsystems.in/
Author: Dnix Systems
Description: Custom WordPress & WooCommerce theme built for Bharath Furniture - Kerala handcrafted wooden furniture.
Version: 1.0.0
Text Domain: bharath-furniture
*/

:root {
  --primary-color: #8b3a0f;
  --primary-hover: #6d2d0b;
  --accent-gold: #d4af37;
  --dark-text: #222222;
  --light-bg: #f9f6f0;
  --white: #ffffff;
  --border-color: #e5e0d8;
  --whatsapp-green: #25d366;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Top Notification Bar */
.top-bar {
  background-color: #1c1917;
  color: var(--white);
  font-size: 0.85rem;
  padding: 8px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-perks {
  display: flex;
  gap: 20px;
}

/* Main Navigation */
header.site-header {
  background: var(--white);
  padding: 15px 5%;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary-color);
  line-height: 1.1;
}

.brand-logo small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #666;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.whatsapp-btn {
  background: var(--whatsapp-green);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 100px 5% 80px;
  text-align: center;
}

.hero-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-section h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: 600;
}

.btn-outline {
  border: 2px solid white;
  color: white;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
}

/* Feature Grid */
.features-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 30px 5%;
  background: var(--light-bg);
  text-align: center;
}

.feature-item h4 {
  font-size: 1rem;
  color: var(--primary-color);
}

.feature-item span {
  font-size: 0.85rem;
  color: #666;
}

/* Section Title */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 5% 20px;
}

.section-header h2 {
  font-size: 1.8rem;
}

.section-header a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  padding: 0 5% 40px;
}

.category-card {
  background: var(--light-bg);
  padding: 20px 10px;
  text-align: center;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: transform 0.2s, background 0.2s;
}

.category-card:hover {
  transform: translateY(-3px);
  background: var(--primary-color);
  color: white;
}

/* WooCommerce Product Grid Overrides */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 25px !important;
  padding: 0 5% 40px !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
}

/* Footer */
footer.site-footer {
  background: #1c1917;
  color: #aaa;
  padding: 50px 5% 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.copyright-bar {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* Mobile Sticky Nav */
.mobile-sticky-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border-color);
  padding: 8px 0;
  justify-content: space-around;
  z-index: 1000;
}

.mobile-sticky-nav a {
  text-align: center;
  font-size: 0.75rem;
  color: #555;
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .top-bar-perks { display: none; }
  .mobile-sticky-nav { display: flex; }
  body { padding-bottom: 50px; }
}