/* =============================================================
   SparC Equipments - shared site stylesheet
   ============================================================= */

/* ---------- Reset & base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  line-height: 1.5;
}

body.page-detail {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #0a0f1c, #05070a);
  background-attachment: fixed;
  color: #eaf9ff;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  background-color: #000;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #0ff;
  border-radius: 6px;
  color: #0ff;
  font-size: 1.4rem;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
}

.nav-links > ul {
  display: flex;
  list-style: none;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links ul {
  list-style: none;
}

.nav-links a,
.link-button {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover,
.link-button:hover {
  color: #0ff;
}

.link-button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

/* ---------- Search ---------- */
.search-container {
  display: flex;
  align-items: center;
  background: #111;
  border: 1px solid #0ff;
  border-radius: 25px;
  padding: 4px 10px;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.1);
  transition: box-shadow 0.3s ease, border 0.3s ease;
}

.search-container:focus-within {
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  border-color: #09f;
}

.search-container input {
  background: transparent;
  border: none;
  outline: none;
  color: #0ff;
  font-size: 0.9rem;
  width: 160px;
  padding: 6px;
}

.search-container input::placeholder {
  color: #666;
}

.search-container button {
  background: none;
  border: none;
  color: #0ff;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.search-container button:hover {
  color: #fff;
}

#no-results {
  text-align: center;
  color: #0ff;
  margin-top: 2rem;
  font-size: 1rem;
}

/* ---------- Dropdowns ---------- */
.dropdown-parent {
  position: relative;
}

.dropdown-content,
.dropdown-subcontent {
  display: none;
  position: absolute;
  background: #111;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.2);
  min-width: 220px;
  z-index: 999;
  flex-direction: column;
}

.dropdown-content {
  top: 100%;
  left: 0;
}

.dropdown-subcontent {
  top: 0;
  left: 100%;
}

.dropdown-parent:hover > .dropdown-content,
.dropdown-subparent:hover > .dropdown-subcontent {
  display: flex;
}

.dropdown-subparent {
  position: relative;
}

.dropdown-subparent > a::after {
  content: ' ▶';
  color: #0ff;
  font-size: 0.8rem;
}

.dropdown-content a,
.dropdown-subcontent a {
  display: block;
  margin: 0.3rem 0;
  color: #ccc;
  white-space: nowrap;
}

.dropdown-content a:hover,
.dropdown-subcontent a:hover {
  color: #0ff;
}

/* ---------- Admin banner ---------- */
.admin-banner {
  background: #000;
  color: #0ff;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-bottom: 2px solid #0ff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

/* ---------- Home hero ---------- */
.hero {
  min-height: 80vh;
  background: radial-gradient(ellipse at center, #111 0%, #000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #0ff, #0af, #09f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #aaa;
}

/* ---------- Buttons ---------- */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-glow {
  background: #0ff;
  color: #000;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px #0ff, 0 0 20px #0ff inset;
}

.btn-outline {
  background: transparent;
  color: #0ff;
  padding: 0.8rem 1.5rem;
  border: 2px solid #0ff;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-outline:hover {
  background: #0ff;
  color: #000;
}

/* "Where to Buy" / "Compare" pill buttons used on product pages */
.action-buttons {
  text-align: center;
  margin: 2rem 0;
}

.action-buttons a {
  display: inline-block;
  background: #0ff;
  color: #000;
  padding: 0.7rem 1.5rem;
  margin: 0.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.action-buttons a:hover {
  background: #09f;
  color: #fff;
}

.buy-btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(90deg, #00f5d4, #00c4ff);
  color: #041014;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.3s;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  color: #000;
}

/* ---------- Category sections (card grid) ---------- */
.product-section {
  padding: 4rem 2rem;
  text-align: center;
}

.product-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, #0ff, #0af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.product-card {
  background: #111;
  border: 2px solid transparent;
  border-image: linear-gradient(45deg, #0ff, #09f) 1;
  border-radius: 15px;
  padding: 2rem;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.product-card h3 {
  color: #0ff;
  margin-bottom: 1rem;
}

.product-card p {
  color: #ccc;
  font-size: 0.95rem;
  min-height: 60px;
}

.product-card a {
  display: inline-block;
  margin-top: 1rem;
  color: #0ff;
  text-decoration: none;
  font-weight: bold;
  border: 1px solid #0ff;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  transition: 0.3s;
}

.product-card a:hover {
  background: #0ff;
  color: #000;
}

/* ---------- Product list (one product per row, with image) ---------- */
.product-list {
  display: flex;
  flex-direction: column;
  max-width: 900px;
}

.product-list .product-card {
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #0ff;
  border-image: none;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
  cursor: default;
}

.product-list .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

.product-list .product-card img {
  width: 250px;
  height: auto;
  margin: 0 auto 1rem;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.product-list .product-card h3 {
  margin-bottom: 0.5rem;
}

.product-list .product-card p {
  min-height: 0;
  margin-bottom: 1rem;
}

.product-list .product-card a {
  margin-top: 0;
  color: #000;
  background: #0ff;
  border: none;
  padding: 0.5rem 1.2rem;
}

.product-list .product-card a:hover {
  background: #09f;
  color: #fff;
}

.coming-soon {
  width: 250px;
  height: 160px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #0ff;
  border-radius: 8px;
  background: rgba(0, 255, 255, 0.05);
  color: #0ff;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.product-features {
  text-align: left;
  color: #ddd;
  margin-top: 1.5rem;
}

.product-features h4 {
  color: #0ff;
  margin-bottom: 0.8rem;
}

.product-features ul {
  padding-left: 1.2rem;
}

.product-features li {
  margin-bottom: 0.6rem;
}

/* ---------- Product detail page (image + specs side by side) ---------- */
.product-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.product-image {
  flex: 1;
  text-align: center;
}

.product-image img {
  width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.25);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(0, 255, 255, 0.4);
}

.product-details {
  flex: 2;
  padding: 1rem 1.5rem;
}

.product-details h2 {
  font-size: 2.2rem;
  color: #00f5d4;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.product-details ul {
  color: #cdd9e5;
  margin-bottom: 1.8rem;
  padding-left: 1.2rem;
}

.product-details li {
  margin-bottom: 0.6rem;
}

/* ---------- Product hero (image beside intro text) ---------- */
.product-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  background: linear-gradient(145deg, #000, #0a0a0a);
}

.product-hero img {
  width: 350px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.product-hero-content {
  max-width: 500px;
}

.product-hero-content h1 {
  color: #0ff;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-hero-content p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
}

/* Centered hero (image above title) */
.hero-section {
  text-align: center;
  padding: 3rem 1rem;
  background: radial-gradient(circle at top, #011, #000);
}

.hero-section img {
  width: 320px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
}

.hero-section h1 {
  color: #0ff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-section p {
  color: #ccc;
  font-size: 1rem;
  max-width: 800px;
  margin: 0.5rem auto 0;
}

/* ---------- Content cards (features / objective blocks) ---------- */
.features,
.detail-card {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: #111;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
  color: #ccc;
}

.detail-card {
  margin: 2rem auto;
  border: 1px solid rgba(0, 255, 255, 0.4);
}

.features h2,
.detail-card h2 {
  color: #0ff;
  text-align: center;
  margin-bottom: 1rem;
}

.features h2 {
  margin-bottom: 1.5rem;
}

.features p,
.detail-card p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.detail-card h3 {
  color: #0ff;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.detail-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid #0ff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

.detail-card ul {
  line-height: 1.7;
  margin-left: 1.5rem;
}

.features ul,
.feature-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.features ul li,
.feature-list li {
  background: rgba(0, 255, 255, 0.05);
  margin: 0.6rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid #0ff;
  border-radius: 6px;
  color: #ddd;
}

/* Boxed spec sheet (decade resistance box) */
.detail-box {
  max-width: 1100px;
  margin: 3rem auto;
  background: #111;
  border: 1px solid #0ff;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  padding: 2rem;
}

.detail-box .title {
  text-align: center;
  color: #0ff;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.detail-box .image-section {
  text-align: center;
  margin-bottom: 2rem;
}

.detail-box .image-section img {
  width: 350px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #0ff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.detail-box .section {
  margin-bottom: 1.5rem;
}

.detail-box .section h2 {
  color: #09f;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.detail-box .section p,
.detail-box .section ul {
  color: #ccc;
  line-height: 1.7;
}

.detail-box .section ul {
  list-style-type: disc;
  margin-left: 1.5rem;
}

/* ---------- Contact page ---------- */
.contact-section {
  padding: 100px 1rem;
  background: #111;
  text-align: center;
}

.contact-section h1 {
  font-size: 2.5rem;
  color: #0ff;
  margin-bottom: 10px;
}

.contact-section .subtitle {
  color: #bbb;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-card {
  background: #1c1c1c;
  padding: 30px;
  border-radius: 10px;
  width: 280px;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

.contact-card i {
  font-size: 2rem;
  color: #0ff;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #0ff;
}

.contact-card p {
  font-size: 1rem;
  color: #ddd;
}

.copyable {
  cursor: pointer;
  border-radius: 6px;
  padding: 4px;
  display: inline-block;
  transition: background 0.2s;
}

.copyable:hover {
  background: rgba(0, 255, 255, 0.1);
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #0ff;
  color: #000;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(0, 255, 255, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* ---------- Footer ---------- */
.footer {
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
  background: #000;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer a {
  color: #0ff;
  text-decoration: none;
}

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

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .product-page {
    flex-direction: row;
    align-items: flex-start;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  .navbar.open .nav-links {
    display: block;
  }

  .nav-links > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dropdown-content,
  .dropdown-subcontent {
    position: static;
    box-shadow: none;
    padding: 0.4rem 0 0 1rem;
    min-width: 0;
  }

  .dropdown-subparent > a::after {
    content: ' ▼';
  }

  .search-container input {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .product-section h2 {
    font-size: 2rem;
  }

  .product-page,
  .detail-box,
  .detail-card,
  .features {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
  }
}
