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

/* --- CUSTOM VARIABLES (FURNI THEME: FOREST GREEN, WARM YELLOW, GREY-GREEN) --- */
:root {
  --font-family: 'Inter', sans-serif;

  /* Colors */
  --bg-page: #eff2f1; /* Furni background grey-green */
  --bg-card: #ffffff;
  --bg-hover: #f3f6f5;
  
  --primary: #131921; /* Rich dark navy-black color swatch */
  --primary-light: #232f3e;
  --primary-hover: #1e2530;
  
  --accent-yellow: #f9bf29; /* Furni signature yellow highlight */
  --accent-yellow-light: #fef9c3;
  
  --border-color: #dce5e4; /* Furni signature border color */
  --border-hover: #b8c8c6;
  
  --text-main: #2f2f2f; /* Furni dark text */
  --text-muted: #6a6a6a; /* Furni muted text */
  --text-green: #3b5d50;
  --text-white: #ffffff;
  
  /* Layout & Shadows */
  --radius-xs: 4px;
  --radius-sm: 8px; /* Rounder borders for a softer look */
  --radius-md: 16px;
  
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.03);
  
  --transition-fast: all 0.3s ease;
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* --- HEADINGS --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--text-main);
}

/* --- NAVIGATION BAR (FLIPKART STYLE DEEP BLUE HEADER) --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px; /* Flipkart uses a thin header */
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 4px 0 rgba(0,0,0,0.08);
}

/* Width to width layout with exactly 20px padding (yielding 20px margin visually) */
.nav-container {
  width: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.nav-brand-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.nav-brand span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-white);
  font-style: italic;
}

.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--text-white);
  margin-left: 36px;
  font-style: italic;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-brand-sub span {
  color: var(--accent-yellow);
  font-weight: 700;
  font-size: 0.7rem;
  font-style: italic;
}

.nav-search-container {
  flex-grow: 1;
  max-width: 560px;
  position: relative;
}

.nav-search-input {
  width: 100%;
  height: 36px;
  padding: 8px 40px 8px 16px;
  border: none;
  border-radius: var(--radius-xs);
  outline: none;
  font-size: 0.9rem;
  font-family: var(--font-family);
  box-shadow: var(--shadow-sm);
  color: #000;
}

.nav-search-input::placeholder {
  color: #878787;
}

.nav-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-white);
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.65;
  transition: var(--transition-fast);
  padding-bottom: 4px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
  opacity: 1;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-yellow);
  transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-yellow);
  color: #2f2f2f;
  padding: 8px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--accent-yellow);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.nav-cta:hover {
  background: #f8b810;
  border-color: #f8b810;
  color: #2f2f2f;
}

/* Mobile menu toggle button */
.nav-menu-toggle {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 8px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}

.nav-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 2000;
  visibility: hidden;
  transition: visibility 0.3s ease;
}

.mobile-drawer.open {
  visibility: visible;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open .drawer-overlay {
  opacity: 1;
}

.drawer-content {
  position: absolute;
  top: 0;
  right: -280px; /* Slide in from right */
  width: 280px;
  max-width: 85%;
  height: 100%;
  background: var(--bg-card);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: transform 0.3s ease;
  z-index: 2001;
}

.mobile-drawer.open .drawer-content {
  transform: translateX(-280px);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-style: italic;
  font-size: 1.1rem;
}

.drawer-brand img {
  height: 28px;
  width: 28px;
  object-fit: contain;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.drawer-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 500;
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.drawer-links a:hover,
.drawer-links a.active {
  background: var(--bg-hover);
  color: var(--text-green);
  font-weight: 600;
}

.drawer-cta {
  background: var(--accent-yellow);
  color: #2f2f2f;
  padding: 12px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
  border: 1px solid var(--accent-yellow);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  margin-top: auto;
}

.drawer-cta:hover {
  background: #f8b810;
  border-color: #f8b810;
}

/* Bulk Quotation Box */
.bulk-quotation-box {
  background: #f8fafc;
  padding: 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 768px) {
  .bulk-quotation-box {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* --- MAIN CONTAINER --- */
.main-wrapper {
  margin-top: 76px; /* Offset fixed header (56px header + 20px gap) */
  padding: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.content-container {
  width: 100%;
  padding: 0 20px; /* Width to width only 20px margins */
}

/* --- HERO / BANNER SECTION (FLIPKART SLIDER STYLE) --- */
.hero-slider {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 30px 40px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--radius-sm);
}

.slider-content {
  flex-grow: 1;
  padding-right: 40px;
}

.slider-badge {
  display: inline-block;
  background: var(--accent-yellow-light);
  color: #c27803;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.slider-content h1 {
  font-size: 2.2rem;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--primary);
  font-weight: 700;
}

.slider-content p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.slider-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-secondary {
  background: var(--accent-yellow);
  color: #2f2f2f;
  border-color: var(--accent-yellow);
}

.btn-secondary:hover {
  background: #f8b810;
  border-color: #f8b810;
}

/* --- HERO APP DOWNLOAD & COUNTDOWN --- */
/* --- HERO COLLAGE BANNER (NO TEXT) --- */
/* --- BUILDERSMART-STYLE HERO BANNER --- */
.buildersmart-hero {
  width: 100%;
  min-height: 280px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 30px 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hero-left-images,
.hero-right-images {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  width: 25%;
}

.hero-left-images img,
.hero-right-images img {
  max-width: 110px;
  max-height: 140px;
  object-fit: contain;
  transition: transform 0.2s;
}

.hero-left-images img:hover,
.hero-right-images img:hover {
  transform: scale(1.08);
}

.hero-center-content {
  width: 50%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e11d48; /* Red highlight tagline like "LOOKING FOR HARDWARE?" */
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: inline-block;
}

.hero-center-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-center-content p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-center-content p strong {
  color: var(--primary-light);
}

.hero-btn-post {
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* --- APP PROMO SECTION BELOW CATALOG --- */
.app-promo-section {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 20px;
}

.app-promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 35px 40px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.app-promo-text h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.app-promo-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.app-store-buttons {
  display: flex;
  gap: 12px;
}

.app-store-buttons.flex-row {
  flex-direction: row;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  color: #ffffff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #1e293b;
  transition: var(--transition-fast);
}

.app-btn:hover {
  background: #1e293b;
}

.app-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.app-btn-text span {
  font-size: 0.6rem;
  color: #94a3b8;
}

.app-btn-text strong {
  font-size: 0.85rem;
  font-weight: 700;
}

.app-promo-countdown {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
}

.countdown-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 0;
  margin-bottom: 4px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 55px;
}

.timer-segment span:first-child {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.timer-segment span:last-child {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.timer-divider {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .main-wrapper {
    margin-top: 120px; /* Two row mobile header offset */
  }
  .navbar {
    height: auto;
    padding: 10px 0;
  }
  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 12px;
    column-gap: 16px;
    padding: 0 16px;
  }
  .nav-brand {
    grid-column: 1;
    grid-row: 1;
  }
  .nav-menu-toggle {
    display: flex; /* Show hamburger button */
    grid-column: 2;
    grid-row: 1;
  }
  .nav-search-container {
    grid-column: 1 / span 2;
    grid-row: 2;
    width: 100%;
    max-width: none;
    margin-top: 0;
  }
  .nav-links,
  .nav-cta {
    display: none !important; /* Move to mobile drawer */
  }
  .buildersmart-hero {
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
  }
  .hero-left-images,
  .hero-right-images {
    width: 100%;
    justify-content: center;
  }
  .hero-left-images img,
  .hero-right-images img {
    max-height: 90px;
  }
  .hero-center-content {
    width: 100%;
  }
  .app-promo-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .app-store-buttons {
    flex-direction: column;
  }
}

/* --- STATS STRIP --- */
.stats-strip {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.stat-box {
  text-align: center;
  border-right: 1px solid var(--border-color);
}

.stat-box:last-child {
  border-right: none;
}

.stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 600;
}

@media (max-width: 576px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .stat-box:nth-child(2) {
    border-right: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .product-card {
    padding: 12px 10px 16px !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-card) !important;
  }
  .product-card img {
    max-height: 110px !important;
  }
  .product-card h3 {
    font-size: 0.85rem !important;
  }
  .product-card .price {
    font-size: 0.9rem !important;
  }
  .product-card .btn-details {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }
}

/* --- E-COMMERCE LAYOUT (FLIPKART STYLE SIDEBAR + GRID) --- */
.store-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 992px) {
  .store-container {
    grid-template-columns: 1fr;
  }
  .sidebar-filters {
    position: static;
    margin-bottom: 16px;
  }
  /* Collapsible filter overrides on mobile */
  .filter-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    border-bottom: none !important; /* Remove border when closed */
  }
  .sidebar-filters.expanded .filter-header {
    border-bottom: 1px solid var(--border-color) !important;
  }
  .filter-header::after {
    content: "▼";
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
  }
  .sidebar-filters.expanded .filter-header::after {
    transform: rotate(180deg);
  }
  .sidebar-filters .filter-section {
    display: none;
  }
  .sidebar-filters.expanded .filter-section {
    display: block;
  }
}

/* SIDEBAR FILTER PANEL */
.sidebar-filters {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 76px;
}

.filter-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.filter-section {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
  border-bottom: none;
}

.filter-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 12px;
}

/* Vertical radio / checkbox group for categories */
.category-filters-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.category-radio-label input {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* MAIN CONTENT PANEL */
.catalog-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  min-height: 500px;
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.catalog-title-group h2 {
  font-size: 1.3rem;
  font-weight: 600;
}

.catalog-title-group span {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
  display: block;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* PRODUCT CARD (FURNI STYLE) --- */
.product-card {
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 24px 16px 30px;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.product-card:before {
  position: absolute;
  content: "";
  background: #dce5e4; /* Furni rise-up light green/blue background */
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  z-index: -1;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.product-card:hover:before {
  height: 80%;
}

.product-img-container {
  height: 160px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  margin-bottom: 20px;
  position: relative;
  top: 0;
  transition: all 0.3s ease;
  width: 100%;
}

.product-card:hover .product-img-container {
  transform: translateY(-15px);
}

.product-img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.category-badge {
  display: inline-block;
  background: #eff2f1;
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2f2f2f;
  margin-bottom: 6px;
  line-height: 1.3;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-desc {
  font-size: 0.8rem;
  color: #6a6a6a;
  margin-bottom: 15px;
  line-height: 1.4;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  width: 100%;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.8rem;
}

.rating-badge {
  background: var(--text-green);
  color: var(--text-white);
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 2px;
}

.rating-count {
  color: var(--text-muted);
}

.btn-card {
  width: auto;
  padding: 8px 20px;
  background: #2f2f2f;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  margin-top: auto;
  align-self: center;
}

.btn-card:hover {
  background: var(--primary);
  color: #ffffff;
}

/* NO RESULTS */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.no-results svg {
  width: 48px;
  height: 48px;
  fill: var(--text-muted);
  margin-bottom: 12px;
}

/* --- PRODUCT DETAIL MODAL (FLIPKART LAYOUT) --- */
dialog.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0;
  box-shadow: var(--shadow-md);
  outline: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
  overflow: hidden;
}

dialog.product-modal[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

dialog.product-modal::backdrop {
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

dialog.product-modal[open]::backdrop {
  opacity: 1;
}

.modal-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  height: 100%;
  max-height: 90vh;
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
}

.modal-gallery {
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-color);
  min-height: 300px;
}

.modal-gallery img {
  max-width: 90%;
  max-height: 320px;
  object-fit: contain;
}

.modal-details {
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #ffffff;
}

.modal-header {
  position: relative;
  margin-bottom: 16px;
  padding-right: 28px;
}

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-category {
  color: var(--primary-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: block;
}

.modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal-description {
  color: #666;
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.specs-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--primary);
  padding-bottom: 6px;
  color: var(--primary);
}

.specs-list {
  list-style: none;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.specs-list li {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.specs-list li:last-child {
  border-bottom: none;
}

.specs-list li span:first-child {
  width: 130px;
  min-width: 130px;
  padding: 6px 12px;
  background: #f9fafc;
  color: var(--text-muted);
  font-weight: 500;
  border-right: 1px solid var(--border-color);
}

.specs-list li span:last-child {
  padding: 6px 12px;
  color: var(--text-main);
  font-weight: 600;
  flex-grow: 1;
}

/* ENQUIRY FORM */
.enquiry-box {
  background: #f7f9fc;
  border: 1px solid #d0d7de;
  padding: 16px;
  border-radius: var(--radius-sm);
}

.enquiry-box h4 {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.form-group {
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.85rem;
  font-family: var(--font-family);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background: #fb641b; /* Flipkart orange button style */
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.1);
  transition: var(--transition-fast);
}

.btn-submit:hover {
  background: #e1540f;
}

.form-success-msg {
  display: none;
  text-align: center;
  color: var(--text-green);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px;
  background: rgba(56, 142, 60, 0.08);
  border: 1px solid rgba(56, 142, 60, 0.2);
  border-radius: var(--radius-sm);
}

/* --- CONTACT & ABOUT PANEL --- */
.contact-section {
  width: 100%;
  margin-top: 20px;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

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

.contact-info-panel,
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 32px 40px;
  box-shadow: var(--shadow-sm);
}

.contact-info-panel h2,
.contact-form-panel h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary);
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 10px;
}

.contact-info-panel p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-yellow-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c27803;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- FOOTER (FLIPKART STYLE DARK BLUE-GRAY) --- */
.footer {
  background: #172337;
  color: var(--text-white);
  padding: 40px 0 20px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-container {
  width: 100%;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-bottom: 1px solid #2e3e52;
  padding-bottom: 30px;
  margin-bottom: 20px;
}

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

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

.footer-col h4 {
  color: #878787;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-white);
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col p {
  font-size: 0.8rem;
  color: #aeaeae;
  line-height: 1.5;
}

.footer-bottom {
  width: 100%;
  padding: 10px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  color: #aeaeae;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  color: var(--text-white);
  font-size: 1rem;
}

/* --- FALLBACK SCROLL-REVEAL SYSTEM --- */
.scroll-reveal {
  opacity: 1; /* Default is visible to avoid layout issues in standard browsers */
}

body.no-scroll-timeline .scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

body.no-scroll-timeline .scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- AUTO SUGGEST SEARCH DROPDOWN --- */
.search-suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 10000;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 4px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f8fafc;
}

.suggestion-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.suggestion-item-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.suggestion-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.suggestion-item-category {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Custom mobile overrides for small screen devices */
@media (max-width: 480px) {
  .countdown-timer {
    gap: 6px !important;
  }
  .timer-segment {
    min-width: 45px !important;
  }
  .timer-segment span:first-child {
    font-size: 1.3rem !important;
  }
  .timer-segment span:last-child {
    font-size: 0.6rem !important;
  }
  .timer-divider {
    font-size: 1.1rem !important;
    margin-bottom: 12px !important;
  }
  .product-grid {
    grid-template-columns: 1fr !important; /* Stack to single column on extremely small screens */
    gap: 12px !important;
  }
  .product-card {
    padding: 16px 12px 20px !important;
  }
  .product-img-container {
    height: 140px !important;
  }
  .buildersmart-hero h2 {
    font-size: 1.4rem !important;
  }
  .buildersmart-hero p {
    font-size: 0.95rem !important;
  }
  /* Details specifications list layout */
  .specs-list li span:first-child {
    width: 110px !important;
    min-width: 110px !important;
    font-size: 0.78rem !important;
    padding: 6px 8px !important;
  }
  .specs-list li span:last-child {
    font-size: 0.78rem !important;
    padding: 6px 8px !important;
  }
  .details-info {
    height: auto !important;
    overflow-y: visible !important;
    padding: 16px 0 !important;
  }
}
