/* ===============================
   BEREAMALL CATEGORY MODULE
   =============================== */

/* === Page Header === */
.site-header {
  background-color: #1e2f1e;
  color: #fff;
  padding: 1rem;
  text-align: center;
}

.site-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.site-header p {
  font-size: 1rem;
  opacity: 0.85;
}

/* === Category Navigation === */
.category-links,
.subcategory-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.category-links a,
.subcategory-nav a {
  background-color: #339966;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.category-links a:hover,
.subcategory-nav a:hover {
  background-color: #2a8055;
  text-decoration: underline;
}

/* === Section Headings === */
h2 {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.5rem;
  color: #333;
}

/* === Product Grid === */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
}

.lighting-card {
  flex: 1 1 300px;
  max-width: 300px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}
.lighting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(30, 47, 30, 0.12);
}

.lighting-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px 8px 0 0;
}

.lighting-card .info {
  flex-grow: 1;
  padding: 0.5rem;
  text-align: center;
  overflow: hidden;
}

.lighting-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.lighting-card p {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.lighting-card .cta {
  display: inline-block;
  background-color: #339966;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lighting-card .cta:hover {
  background-color: #2a8055;
  cursor: pointer;
}
/* === Back to Top Button === */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #339966;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #2a8055;
}

/* === Smooth Scroll === */
html {
  scroll-behavior: smooth;
}
.lighting-card img {
  width: 100% !important;
  height: 100px !important;
  object-fit: cover !important;
  display: block;
  border-radius: 8px 8px 0 0;
  
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 2rem 1rem;
  justify-content: center; /* ← This centers the grid */
}
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #f9f9f9;
}

/* Center the grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 2rem;
  justify-content: center;
}

/* Product Card */
.lighting-card {
  max-width: 220px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid #cce5cc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(30, 47, 30, 0.08);
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lighting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(30, 47, 30, 0.12);
}

/* Product Image */
.lighting-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

/* Product Info */
.lighting-card .info {
  flex-grow: 1;
  padding: 0.5rem;
  text-align: center;
  overflow: hidden;
}

.lighting-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.lighting-card p {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

/* CTA Button */
.lighting-card .cta {
  display: inline-block;
  background-color: #339966;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lighting-card .cta:hover {
  background-color: #2a8055;
  cursor: pointer;
}



body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #f9f9f9;
}

/* Center the grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 2rem;
  justify-content: center;
}

/* Product Card */
.lighting-card {
  max-width: 220px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid #cce5cc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(30, 47, 30, 0.08);
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lighting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(30, 47, 30, 0.12);
}

/* Product Image */
.lighting-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

/* Product Info */
.lighting-card .info {
  flex-grow: 1;
  padding: 0.5rem;
  text-align: center;
  overflow: hidden;
}

.lighting-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.lighting-card p {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

/* CTA Button */
.lighting-card .cta {
  display: inline-block;
  background-color: #339966;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lighting-card .cta:hover {
  background-color: #2a8055;
  cursor: pointer;
}
/* === Page Reset and Wrapper === */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #f9f9f9;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
}

.page-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #1e2f1e;
}

/* === Product Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 2rem;
  justify-content: center;
}

/* === Product Card === */
.lighting-card {
  max-width: 220px;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid #cce5cc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(30, 47, 30, 0.08);
  background-color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lighting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(30, 47, 30, 0.12);
}

/* === Product Image === */
.lighting-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

/* === Product Info === */
.lighting-card .info {
  flex-grow: 1;
  padding: 0.5rem;
  text-align: center;
  overflow: hidden;
}

.lighting-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.lighting-card p {
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

/* === CTA Button === */
.lighting-card .cta {
  display: inline-block;
  background-color: #339966;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.lighting-card .cta:hover {
  background-color: #2a8055;
  cursor: pointer;
}
