/* ========================================
   EFLOW BATTERIES PAGE STYLING
   ======================================== */

:root {
  --eflow-primary: #4caf50;      /* green accent */
  --eflow-secondary: #2196f3;    /* blue accent */
  --eflow-accent: #15537d;       /* deep blue */
  --eflow-light: #f5f8fb;        /* soft surface */
  --eflow-white: #ffffff;
  --eflow-dark: #152a3a;
  --eflow-gray: #edf2f7;
  --eflow-button: linear-gradient(135deg, #0ea472, #1976d2); /* modern teal-to-blue energy accent */
  --eflow-button-solid: #0d8a61;
  --eflow-button-text: #ffffff;
}

/* ========================================
   EFLOW HERO SECTION
   ======================================== */

.eflow-hero {
  background: linear-gradient(125deg, #0d3b45 0%, #0e6e63 55%, #17966f 100%);
  color: #ffffff;
  padding: 50px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.eflow-hero-content h1,
.eflow-hero-content p {
  color: #ffffff;
}

.eflow-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="dots" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="1200" height="400" fill="url(%23dots)"/></svg>');
  opacity: 0.5;
}

.eflow-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.eflow-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.eflow-hero-content p {
  font-size: 1.25rem;
  opacity: 0.95;
  line-height: 1.6;
}

/* ========================================
   EFLOW SECTION
   ======================================== */

.eflow-section {
  background: var(--surface);
  padding: 60px 20px;
}

.eflow-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 35px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 1.25rem;
  color: rgba(93, 99, 108, 0.75);
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3rem;
  border: 1px solid rgba(145, 158, 171, 0.25);
  border-radius: 1rem;
  font-size: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--bg);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-input::placeholder {
  color: rgba(93, 99, 108, 0.65);
}

.filter-group {
  display: none;
}

/* ========================================
   RESULTS INFO
   ======================================== */

.results-info {
  margin-bottom: 24px;
  font-size: 0.95rem;
  color: var(--muted);
}

.results-info span {
  font-weight: 700;
  color: var(--text);
}

/* ========================================
   BATTERIES GRID
   ======================================== */

.batteries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.battery-card {
  background: var(--surface);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(145, 158, 171, 0.2);
}

.battery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(17, 38, 60, 0.12);
  border-color: rgba(145, 158, 171, 0.35);
}

.battery-card .image-wrapper {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 250, 0.96));
  overflow: hidden;
  position: relative;
}

.battery-card .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.battery-card:hover .image-wrapper img {
  transform: scale(1.08);
}

.battery-card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 0.50rem;
}

/* Footer style for eFlow page (product page theme) */
.site-footer.eflow-footer {
  background: #f8fbff;
  color: var(--text);
  padding: 3rem 1.5rem 2rem;
  border-top: none;
}

.site-footer.eflow-footer .footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

.site-footer.eflow-footer .footer-section {
  background: linear-gradient(180deg, rgba(211, 227, 226, 0.95), rgba(232, 234, 233, 0.98));
  border: 1px solid rgba(77, 111, 139, 0.12);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.site-footer.eflow-footer .footer-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.site-footer.eflow-footer .footer-section h4,
.site-footer.eflow-footer .footer-section h5,
.site-footer.eflow-footer .footer-section p,
.site-footer.eflow-footer a {
  color: var(--text);
}

.site-footer.eflow-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center; /* align text with left gap */
  padding: 0.75rem 0; /* equal spacing above and below the text */
  color: rgba(12, 12, 12, 0.85);
  min-height: 44px;
  border-top: none; /* remove double line */
  margin-top: 0;
}

.battery-card h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
}

.battery-capacity {
  font-size: 0.95rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 5px;
}

.battery-description {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 15px;
  flex-grow: 1;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 223, 219, 0.95);
}

.battery-price {
  font-size: 1.1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text);
}

.btn-specs {
  padding: 0.95rem 1.7rem;
  min-width: 140px;
  background: var(--eflow-button);
  color: var(--eflow-button-text);
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 12px 20px rgba(14, 164, 114, 0.2);
}

.btn-specs:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(25, 118, 210, 0.25);
}

/* ========================================
   EMPTY STATE
   ======================================== */

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.empty-state p {
  color: #999;
  font-size: 1.05rem;
}

/* ========================================
   SPECIFICATIONS SIDEBAR
   ======================================== */

.specs-sidebar {
  position: fixed;
  right: -450px;
  top: 0;
  width: 450px;
  height: 100vh;
  background: var(--surface);
  box-shadow: -8px 0 50px rgba(17, 38, 60, 0.08);
  transition: right 0.35s ease;
  z-index: 1000;
  overflow-y: auto;
}

.specs-sidebar.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  border-bottom: 1px solid rgba(229, 236, 242, 0.9);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
}

.sidebar-close {
  background: var(--blue);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 26px rgba(33, 150, 243, 0.18);
}

.sidebar-close:hover {
  transform: rotate(90deg) scale(1.03);
}

.sidebar-content {
  padding: 30px;
}

.sidebar-battery-info {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 1.25rem;
  margin-bottom: 20px;
  border: 3px solid rgba(14, 164, 114, 0.22);
}

.sidebar-battery-info h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
}

.sidebar-type {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-price-tag {
  display: inline-block;
  background: var(--eflow-button);
  color: white;
  padding: 12px 24px;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.sidebar-description {
  margin-bottom: 25px;
  padding: 18px 18px 16px;
  background: var(--surface-strong);
  border-left: 4px solid rgba(33, 150, 243, 0.35);
  border-radius: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.sidebar-section h3 i {
  color: var(--blue);
}

.features-list,
.applications-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li,
.applications-list li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  color: var(--muted);
  line-height: 1.5;
  border-bottom: 1px solid rgba(229, 236, 242, 0.9);
}

.features-list li:last-child,
.applications-list li:last-child {
  border-bottom: none;
}

.features-list i,
.applications-list i {
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 600;
}

.specs-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(229, 236, 242, 0.95);
  align-items: center;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.spec-value {
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-word;
}

.sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid rgba(229, 236, 242, 0.9);
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding-bottom: 30px;
}

.sidebar-actions .button {
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sidebar-actions .button-primary {
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: white;
  border: none;
  cursor: pointer;
}

.sidebar-actions .button-primary:hover {
  background: linear-gradient(135deg, var(--green), var(--blue));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
}

.sidebar-actions .button-secondary {
  background: white;
  color: var(--blue);
  border: 2px solid var(--blue);
  cursor: pointer;
}

.sidebar-actions .button-secondary:hover {
  background: var(--surface);
}

/* ========================================
   SIDEBAR OVERLAY
   ======================================== */

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
}

.sidebar-overlay.open {
  background: rgba(0, 0, 0, 0.5);
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .batteries-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .specs-sidebar {
    width: 100%;
    right: -100%;
  }

  .eflow-hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .eflow-hero {
    padding: 40px 18px;
  }

  .eflow-hero-content h1 {
    font-size: 1.8rem;
  }

  .eflow-hero-content p {
    font-size: 1rem;
  }

  .eflow-controls {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .batteries-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
  }

  .battery-card .image-wrapper {
    height: 180px;
  }

  .battery-card h3 {
    font-size: 1.1rem;
  }

  .battery-card-content {
    padding: 1.1rem;
  }

  .sidebar-content {
    padding: 20px;
  }

  .sidebar-image {
    max-width: 100%;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .specs-sidebar {
    width: 100%;
    right: -100%;
  }

  .site-footer.eflow-footer {
    padding: 2rem 1rem 1.5rem;
  }

  .site-footer.eflow-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .batteries-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .battery-card .image-wrapper {
    height: 190px;
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    padding-top: 1rem;
  }

  .battery-price {
    text-align: center;
    font-size: 1.05rem;
  }

  .btn-specs {
    width: 100%;
    min-width: 0;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .eflow-section {
    padding: 30px 15px;
  }

  .eflow-hero-content h1 {
    font-size: 1.5rem;
  }

  .battery-card-content {
    padding: 15px;
  }

  .battery-card h3 {
    font-size: 1rem;
  }

  .sidebar-content {
    padding: 15px;
  }

  .sidebar-battery-info h2 {
    font-size: 1.4rem;
  }

  .sidebar-actions {
    padding-bottom: 20px;
  }

  .site-footer.eflow-footer {
    padding: 2rem 1rem 1.5rem;
  }

  .site-footer.eflow-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.battery-card {
  animation: slideInRight 0.5s ease;
}

.section-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.container-large {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
