/* --- 1. VARIABLES & RESET --- */
:root {
  --bg-dark: #020c1b;
  --bg-card: #0a192f;
  --bg-footer: #050505;
  --accent: #64ffda; /* Neon Cyan */
  --accent-hover: #4cdbc0;
  --text-light: #e6f1ff;
  --text-gray: #8892b0;
  --nav-bg: rgba(10, 25, 47, 0.95);
  --border-light: rgba(100, 255, 218, 0.2);
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Scrollbar Custom */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* --- 2. HEADER & NAV --- */
.header-wrapper {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none;
}

.pill-nav {
  pointer-events: auto;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  padding: 5px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  max-width: 95%;
  overflow-x: auto;
  scrollbar-width: none;
}
.pill-nav::-webkit-scrollbar {
  display: none;
}

.nav-item {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0 20px;
  height: 40px;
  border-radius: 30px;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-item:hover {
  color: var(--accent);
}
.nav-item.active {
  background: var(--accent);
  color: #020c1b;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
}

.fixed-logo {
  position: fixed;
  top: 20px;
  left: 30px;
  z-index: 1000;
  width: 100px;
  cursor: pointer;
}
.fixed-logo img {
  width: 100%;
  filter: drop-shadow(0 0 5px var(--accent));
}

.fixed-actions {
  position: fixed;
  top: 25px;
  right: 30px;
  z-index: 1000;
  display: flex;
  gap: 15px;
}
.icon-btn {
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid var(--border-light);
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: 0.3s;
}
.icon-btn:hover {
  background: var(--accent);
  color: var(--bg-dark);
}
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff5252;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
}

/* --- 3. LAYOUT & SECTIONS --- */
.main-content {
  margin-top: 100px;
  padding: 0 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  flex: 1;
  width: 100%;
}
.section {
  margin-bottom: 5rem;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 2rem;
}
.hidden {
  display: none !important;
}
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* --- 4. HERO SLIDER --- */
.hero-container {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 450px;
  border: 1px solid var(--border-light);
  margin-bottom: 3rem;
  background: #000;
}
.slide {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.slide.active {
  display: block;
  animation: fadeSlide 1s;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}
@keyframes fadeSlide {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- 5. SEARCH (FIXED) --- */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 12, 27, 0.95);
  z-index: 2000;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  padding-top: 120px;
}
.search-box-wrapper {
  width: 90%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.search-input-group {
  position: relative;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 10px;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  color: var(--text-light);
  outline: none;
}
.close-search-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  font-size: 1.2rem;
  cursor: pointer;
  background: none;
  border: none;
}
.search-results {
  max-height: 60vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg-card);
}
.search-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 0.2s;
}
.search-item:last-child {
  border-bottom: none;
}
.search-item:hover {
  background: rgba(100, 255, 218, 0.1);
}
.search-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #000;
  border: 1px solid var(--border-light);
}
.search-item-info h4 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 4px;
}
.search-item-info p {
  color: var(--accent);
  font-weight: bold;
  font-size: 0.9rem;
}

/* --- 6. PRICE RANGE SLIDER --- */
.price-slider-container {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  background: var(--bg-card);
  border-radius: 15px;
  border: 1px solid var(--border-light);
  margin: 0 auto;
}
.slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 10px;
}
.range-slider {
  position: relative;
  width: 100%;
  height: 5px;
  background: #333;
  border-radius: 5px;
}
.range-selected {
  position: absolute;
  height: 100%;
  background: var(--accent);
  border-radius: 5px;
}
.range-input {
  position: relative;
  width: 100%;
}
.range-input input {
  position: absolute;
  width: 100%;
  height: 5px;
  top: -7px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.range-input input::-webkit-slider-thumb {
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: pointer;
}

/* --- 7. FILTERS & GRID --- */
.filters-wrapper {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  align-items: center;
}

.filter-select {
  background-color: var(--bg-card);
  color: var(--text-light);
  border: 1px solid var(--border-light);
  padding: 0.8rem 2.5rem 0.8rem 1.5rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364ffda' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.2em;
  transition: all 0.3s ease;
}
.filter-select:hover,
.filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.2);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}
.product-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: 0.3s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent);
}
.product-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #000;
}
.product-info {
  padding: 1rem;
}
.product-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-light);
}
.product-price {
  color: #fff;
  font-weight: bold;
}
.btn-add-mini {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(100, 255, 218, 0.1);
  color: var(--accent);
  border: none;
  cursor: pointer;
}
.btn-add-mini:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* --- 8. ABOUT US (UPDATED) --- */
.about-header {
  text-align: center;
  margin-bottom: 3rem;
}
.about-slogan {
  color: var(--accent);
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 10px;
}
.about-logo-center {
  display: block;
  height: 80px;
  width: auto;
  margin: 15px auto;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--accent));
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.about-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-light);
}
.about-card h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
}

.about-card-content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.about-card-content li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: left;
  color: var(--text-gray);
}
.about-card-content li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent);
  font-size: 1.1rem;
}
.about-card-content p {
  line-height: 1.8;
  text-align: left;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.founder-section {
  display: flex;
  gap: 2rem;
  background: rgba(100, 255, 218, 0.05);
  padding: 2rem;
  border-radius: 20px;
  align-items: center;
}
.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--bg-dark);
  font-weight: bold;
}

/* --- 9. AMBASSADOR & LIGHTBOX --- */
.ambassador-section {
  display: flex;
  justify-content: center;
}
.ambassador-card {
  background: linear-gradient(145deg, #0a192f, #112240);
  border: 1px solid var(--accent);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  display: flex;
  overflow: hidden;
}
.ambassador-img-box {
  width: 40%;
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
}
.ambassador-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}
.ambassador-img-box:hover img {
  transform: scale(1.05);
}
.ambassador-info {
  padding: 3rem;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ambassador-name {
  font-size: 2.5rem;
  color: var(--text-light);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 2px solid var(--accent);
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* --- 10. CONTACT PAGE --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-light);
}
.contact-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(100, 255, 218, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}
.contact-form-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-light);
}
.form-input {
  width: 100%;
  padding: 1rem;
  background: #020c1b;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 1rem;
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
}
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-submit:hover {
  opacity: 0.9;
}

/* --- 11. CART PAGE --- */
.cart-wrapper {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--border-light);
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.2s;
  cursor: pointer;
}
.cart-item-row:hover {
  background: rgba(100, 255, 218, 0.05);
}
.cart-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}
.cart-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.cart-item-info h4 {
  margin: 0;
  color: var(--text-light);
}
.cart-item-info p {
  margin: 0;
  color: var(--text-gray);
  font-size: 0.9rem;
}
.btn-remove {
  background: none;
  border: none;
  color: #ff5252;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  transition: 0.2s;
}
.btn-remove:hover {
  transform: scale(1.2);
}

/* --- 12. FOOTER --- */
.main-footer {
  background-color: var(--bg-footer);
  padding: 4rem 2rem 1rem;
  border-top: 2px solid var(--accent);
  margin-top: auto;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-col h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.8rem;
}
.footer-col ul li a {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}
.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 5px;
}
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  font-size: 1.5rem;
  color: var(--text-gray);
  transition: 0.3s;
}
.social-links a:hover {
  color: var(--accent);
  transform: scale(1.2);
}
.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #333;
  color: #555;
  font-size: 0.8rem;
}

/* --- 13. MODAL DETAIL --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: var(--bg-card);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-gray);
  cursor: pointer;
  border: none;
  background: none;
}
.btn-preview {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 30px;
  color: var(--accent);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.btn-preview:hover {
  background: rgba(100, 255, 218, 0.1);
}
.btn-cart {
  flex: 1;
  padding: 12px;
  background: var(--accent);
  border: none;
  border-radius: 30px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}
.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .header-wrapper {
    top: auto;
    bottom: 20px;
  }
  .fixed-logo {
    width: 90px;
    top: 15px;
    left: 20px;
  }
  .fixed-actions {
    top: 15px;
    right: 20px;
  }
  .main-content {
    margin-top: 80px;
    padding: 0 1rem;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .ambassador-card {
    flex-direction: column;
  }
  .ambassador-img-box,
  .ambassador-info {
    width: 100%;
  }
  .ambassador-img-box {
    height: 300px;
  }
  .modal-content {
    grid-template-columns: 1fr;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
