/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: white;
}

/* ================= HEADER (UNCHANGED) ================= */
.egl-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.container {
  max-width: 1300px;
  margin: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  height: 62px;
  width: 180px;
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link,
.dropdown-btn {
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: #111827;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.3s ease;
}

.underline:hover::after {
  width: 100%;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.3s;
  padding: 10px 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #111827;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search {
  font-size: 18px;
  cursor: pointer;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #111827;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ================= MOBILE MENU ================= */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 20px;
    padding: 30px 24px;
    border-top: 1px solid #e5e7eb;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: 0.35s ease;
    z-index: 999;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 12px;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ================= HAMBURGER ANIMATION ================= */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================= MOBILE HEADER LAYOUT FIX ================= */
@media (max-width: 900px) {
  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
  }

  /* HAMBURGER → LEFT */
  .hamburger {
    order: 1;
  }

  /* LOGO → CENTER (TRUE CENTER) */
  .logo {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .logo img {
    height: 52px;
    width: auto;
  }

  /* SEARCH → RIGHT */
  .search {
    order: 3;
    font-size: 18px;
  }
}

/* ================= FOOTER ================= */
.egl-footer {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
  padding: 70px 24px 30px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.egl-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-container {
  max-width: 1300px;
  margin: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
}

.footer-section h3::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #3b82f6;
  position: absolute;
  bottom: -6px;
  left: 0;
}

.footer-section p {
  color: #cbd5f5;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section a {
  color: #cbd5f5;
  text-decoration: none;
  position: relative;
  transition: 0.3s;
}

.footer-section a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: #60a5fa;
  transition: width 0.3s;
}

.footer-section a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-section a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  transition: 0.3s;
}

.social-links a:hover {
  background: #60a5fa;
  color: #020617;
  transform: translateY(-5px);
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.legal-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.legal-links a{
      color: white;
  text-decoration: none;
}

/* LOADER WRAPPER */
#loader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* HIDE LOADER */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* IMAGE STRETCH EFFECT */
.loader-img {
  width: 120px;
  /*adjustsize*/animation: stretchImg 3s ease-in-out infinite;
  -webkit-animation: stretchImg 3s ease-in-out infinite;
}

/* STRETCH KEYFRAMES */
@keyframes stretchImg {
  0% {
    transform: scaleX(1);
    opacity: 0.7;
  }
  50% {
    transform: scaleX(1.6);
    opacity: 1;
  }
  100% {
    transform: scaleX(1);
    opacity: 0.7;
  }
}

/* TV INTRO */
.tv-category-intro {
  padding: 60px 20px;
}

.tv-intro-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.tv-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: #eee;
  font-size: 13px;
  margin-bottom: 14px;
}

.tv-intro-text h2 {
  font-size: 36px;
  margin-bottom: 14px;
}

.tv-intro-text p {
  font-size: 16px;
  color: #555;
  max-width: 500px;
}

.tv-intro-image img {
  width: 100%;
  border-radius: 16px;
}

/* PRODUCTS */
.tv-products {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.tv-products-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.tv-controls {
  display: flex;
  gap: 12px;
}

.tv-controls select {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
}

/* GRID */
.tv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tv-card {
  position: relative;
  text-align: center;
}

.tv-card img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.tv-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #111;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
}

.tv-info {
  background: #f5f5f5;
  padding: 18px;
  border-radius: 14px;
  margin-top: 12px;
  text-align: left;
}

.tv-tag {
  font-size: 12px;
  color: #777;
}

.tv-info h4 {
  font-size: 14px;
  margin: 8px 0;
}

.tv-price {
  font-weight: bold;
}

.tv-price span {
  text-decoration: line-through;
  color: #999;
  margin-left: 6px;
}

.tv-info small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: #666;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .tv-intro-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tv-intro-text p {
    margin: auto;
  }
}

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

.product-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.product-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.modal-box {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto; /* 🔥 allows scrolling */
  border-radius: 16px;
  z-index: 2;
}

.modal-content {
  display: flex;
  gap: 24px;
  padding: 24px;
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
  }
}

.modal-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  object-fit: contain;
}


.modal-details h3 {
  font-size: 22px;
  margin-bottom: 10px;
   flex: 1;
}

.modal-price {
  font-size: 18px;
  margin: 12px 0;
}

.modal-price del {
  color: #999;
  margin-left: 8px;
}

.modal-placeholder {
  margin-bottom: 24px;
  color: #555;
}

.modal-actions {
  display: flex;
  gap: 14px;
}

/* animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* mobile */
@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
  }
}
.modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* base button */
.modal-actions .btn {
  flex: 1;
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  /* 🔥 RESET LINK STYLES */
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* dark button */
.modal-actions .btn.dark {
  background: #111;
  color: #fff;
}

.modal-actions .btn.dark:hover {
  background: #000;
  transform: translateY(-2px);
}

/* light button */
.modal-actions .btn.light {
  background: #fff;
  color: #111;
  border: 1px solid #ddd;
}

.modal-actions .btn.light:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

/* active click */
.modal-actions .btn:active {
  transform: scale(0.97);
}

/* mobile */
@media (max-width: 480px) {
  .modal-actions {
    flex-direction: column;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    padding: 20px;
  }

  .modal-image img {
    max-width: 100%;
  }
}
.tv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-label {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #f2f2f2;
  color: #555;
}

.tv-brand h3 {
  font-size: 22px;
  font-weight: 600;
}


.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f5;
  border: none;
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  transition: all 0.25s ease;
  z-index: 5;
}

.modal-close:hover {
  background: #111;
  color: #fff;
  transform: rotate(90deg);
}

.modal-close:active {
  transform: scale(0.92);
}


.more-stock {
  padding: 80px 20px;
  background: #f9fafb;
  display: flex;
  justify-content: center;
}

.more-stock-box {
  max-width: 720px;
  width: 100%;
  background: #fff;
  padding: 48px 32px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
}

.more-stock-box h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #111;
}

.more-stock-box p {
  font-size: 16px;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.6;
}

.stock-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.stock-btn {
  padding: 14px 26px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}

/* WhatsApp */
.stock-btn.whatsapp {
  background: #25D366;
  color: #fff;
}

.stock-btn.whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* Email */
.stock-btn.email {
  background: #111;
  color: #fff;
}

.stock-btn.email:hover {
  background: #000;
  transform: translateY(-2px);
}

.stock-footer {
  display: block;
  margin-top: 36px;
  font-size: 13px;
  color: #999;
}

/* Mobile */
@media (max-width: 480px) {
  .more-stock-box {
    padding: 36px 20px;
  }

  .more-stock-box h2 {
    font-size: 22px;
  }

  .stock-actions {
    flex-direction: column;
  }

  .stock-btn {
    width: 100%;
    justify-content: center;
  }
}
.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-list span {
  background: #f6f6f6;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
}

.brand-list small {
  color: #777;
  font-weight: 400;
}

.chatbot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #111;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9999;
  transition: 0.3s ease;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  height: 450px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

.chatbot-window.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  background: linear-gradient(135deg, #111, #1f1f1f);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

.chat-header span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Optional Online Indicator Dot */
.chat-header span::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  display: inline-block;
}

/* Close Button */
#chatClose {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chatClose:hover {
  background: rgba(255,255,255,0.25);
  transform: rotate(90deg);
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 14px;
}

.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 75%;
}

.user {
  background: #111;
  color: #fff;
  align-self: flex-end;
}

.bot {
  background: #f1f1f1;
}

.chat-footer {
  display: flex;
  border-top: 1px solid #eee;
}

.chat-footer input {
  flex: 1;
  border: none;
  padding: 10px;
}

.chat-footer button {
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

/* Quick Buttons */
.quick-replies {
  margin-top: 5px;
}

.quick-replies button {
  margin: 3px;
  padding: 6px 10px;
  border: none;
  border-radius: 20px;
  background: #eee;
  cursor: pointer;
  font-size: 12px;
}

/* Typing Dots */
.typing span {
  height: 6px;
  width: 6px;
  background: #999;
  display: inline-block;
  border-radius: 50%;
  margin: 0 2px;
  animation: blink 1.4s infinite both;
}

.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0% { opacity: .2; }
  20% { opacity: 1; }
  100% { opacity: .2; }
}
