/* 🔒 Scoped to .electronics-page only */
/* ⭐ Electronics Header */
body.electronics-page .main-header {
  background-color: #3F51B5;
  color: white;
  padding: 16px 12px;
}

body.electronics-page .main-header .logo-text a {
  color: white;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
}
body.electronics-page .main-header .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
body.electronics-page .main-header {
  padding: 20px 0;
}

body.electronics-page {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fffdf7;
  margin: 0;
  padding: 0;
}

/* 🧢 Header */
body.electronics-page .branding-bar {
  background-color: #1A237E;
  color: white;
  text-align: center;
  padding: 16px 12px;
}

body.electronics-page .branding-bar h1 {
  margin: 0;
  font-size: 2rem;
}

body.electronics-page .branding-bar .tagline {
  margin: 4px 0 0;
  font-size: 1rem;
  font-weight: 300;
}

/* 🧭 Nav bar */
body.electronics-page .top-bar ul {
  display: flex;
  justify-content: center;
  gap: 16px;
  list-style: none;
  padding: 12px;
  background-color: #1A237E;
  margin: 0;
}

body.electronics-page .top-bar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* 🛍️ Product grid */
body.electronics-page .electronics-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 20px !important;
  padding: 20px;
}

/* 🧱 Product card */
body.electronics-page .product-card {
  background-color: white;
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100% !important;        /* ⭐ FIXED */
  max-width: none !important;
  border-radius: 10px;
  height: auto !important;       /* ⭐ FIXED */
  min-height: auto !important;   /* ⭐ FIXED */
  overflow: visible !important;  /* ⭐ FIXED */
}

body.electronics-page .product-card img {
    width: 100% !important;
    max-width: 260px;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px;
    margin: 0 auto 12px !important;
    display: block;
}



/* 🏷️ Section titles */
body.electronics-page h2,
body.electronics-page .subcategory-title {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 24px;
  text-align: center !important;
}

/* 📦 Section wrapper */
body.electronics-page .electronics-section {
  padding: 40px 20px;
  background-color: #fffdf7;
}

body.electronics-page .section-heading {
  text-align: center;
  font-size: 1.8rem;
  color: #5D4037;
  margin-bottom: 24px;
}

/* Pantry-style grid for affiliate cards */
body.electronics-page .electronics-grid,
body.electronics-page .pantry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  justify-content: center;
}

/* 🧱 Footer */
body.electronics-page .electronics-footer {
  background-color: #333;
  color: #eee;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

body.electronics-page .electronics-footer a {
  color: #D7CCC8;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

body.electronics-page .electronics-footer a:hover {
  color: #EFEBE9;
}

body.electronics-page .footer-links,
body.electronics-page .footer-social {
  margin-bottom: 12px;
}

body.electronics-page .footer-social .icon {
  margin-right: 6px;
}

body.electronics-page .affiliate-disclosure {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 12px;
}

/* 📱 Mobile tweaks */
@media (max-width: 600px) {
  body.electronics-page .top-bar ul,
  body.electronics-page .footer-links,
  body.electronics-page .footer-social {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  body.electronics-page .electronics-grid {
    grid-template-columns: 1fr !important;
  }

  body.electronics-page .product-card {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Smooth scroll + back to top */
html {
  scroll-behavior: smooth;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #1A237E;
  color: #fff8dc;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 1em;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: none;
  z-index: 1000;
}
body.electronics-page .cta-button {
  display: inline-block;
  background-color: #3F51B5; /* your Electronics blue */
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

body.electronics-page .cta-button:hover {
  background-color: #283593;
  transform: translateY(-3px);
}

