/* =========================
   Global Styles
========================= */

:root{
  --bg:#0e0e0e;
  --bg-dark:#111;
  --bg-light:#1b1b1b;
  --text:#ffffff;
  --text-muted:#aaaaaa;
  --accent:#39ff14;
  --accent-secondary:#5f48ff;
}

*,
*::before,
*::after{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
}

/* =========================
   Topbar
========================= */
.topbar {
  text-align: center;
  background: black;
  padding: 8px 10px;
  font-size: 14px;
  color: white; 
}

/* =========================
   Navbar
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px; 
  background: var(--bg-dark);
  position: relative;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo{
  display:flex;
  align-items:center;
}

.logo img{
  height:50px;
  width:auto;
}

.nav-menu{
  display:flex;
  gap:32px;
  list-style:none;
}

.nav-menu a{
  text-decoration:none;
  color:var(--text);
  font-size:15px;
  transition:color .25s ease;
}

.nav-menu a:hover{
  color:var(--accent);
}

/* Dropdown */

.dropdown{
  position:relative;
}

.dropdown-menu{
  position:absolute;
  top:32px;
  left:0;
  background:#1a1a1a;
  list-style:none;
  min-width:160px;
  padding:12px 0;
  border-radius:6px;
  display:none;
}

.dropdown-menu li{
  padding:8px 18px;
}

.dropdown-menu a{
  color:white;
}

.dropdown:hover .dropdown-menu{
  display:block;
}

/* =========================
   Nav Icons
========================= */
.nav-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-icons a {
  position: relative; /* needed for badge positioning */
  color: white; /* make icons white */
  text-decoration: none;
}

.nav-icons i {
  font-size: 18px;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-icons i:hover {
  color: var(--accent);
  transform: scale(1.1);
}

/* =========================
   Cart Badge
========================= */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  pointer-events: none; /* so it doesn’t block clicks */
}

/* Mobile Toggle */

.mobile-toggle{
  display:none;
  font-size:24px;
  cursor:pointer;
}

/* =========================
   Back to Top Button
========================= */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--accent, #ff5722); /* fallback accent color */
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  z-index: 9999;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s;
}

#backToTop:hover {
  transform: translateY(-3px) scale(1.1);
}

/* Show button when active */
#backToTop.show {
  opacity: 1;
  visibility: visible;
}

.custom-link {
  color: #ff6600;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
}

.custom-link:hover {
  color: #cc5200;
  text-decoration: underline;
}

/* =========================
   Product Section
========================= */

.product{
  display:flex;
  gap:50px;
  padding:70px 60px;
}

.gallery{
  flex:1;
}

.main-img{
  width:100%;
  border-radius:12px;
}

.thumbnails{
  display:flex;
  gap:12px;
  margin-top:12px;
}

.thumbnails img{
  width:80px;
  border-radius:6px;
  cursor:pointer;
  transition:transform .2s;
}

.thumbnails img:hover{
  transform:scale(1.05);
}

/* Product Info */

.product-info{
  flex:1;
}

.tagline{
  color:var(--text-muted);
  margin:12px 0;
}

.price{
  margin:20px 0;
}

.new{
  font-size:26px;
  font-weight:600;
  color:var(--accent);
  margin-right:10px;
}

.old{
  text-decoration:line-through;
  color:#777;
}

.product-tabs{
  margin-top:40px;
  border-top:1px solid #222;
}

.tab{
  border-bottom:1px solid #222;
}

.tab-btn{
  width:100%;
  background:none;
  border:none;
  color:white;
  font-size:18px;
  padding:20px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
}

.arrow{
  transition:transform .3s;
}

.tab.active .arrow{
  transform:rotate(45deg);
}

/* Content */

.tab-content{
  max-height:0;
  overflow:hidden;
  transition:max-height .4s ease;
  color:#ccc;
}

.tab.active .tab-content{
  max-height:500px;
  padding-bottom:20px;
}

/* Reviews */

.review{
  margin-top:15px;
  padding:15px;
  background:#1a1a1a;
  border-radius:8px;
}

.review strong{
  display:block;
  margin-bottom:5px;
  color:#39ff14;
}

/* Specs */

.specs{
  display:flex;
  gap:40px;
  margin:22px 0;
  flex-wrap:wrap;
}

.spec{
  text-align:center;
  flex:1 1 100px;
}

.spec i{
  font-size:20px;
  color:var(--accent);
  margin-bottom:5px;
}

/* Buttons */

.buttons{
  display:flex;
  gap:16px;
  margin:32px 0;
  flex-wrap:wrap;
}

.btn{
  padding:12px 26px;
  border-radius:30px;
  text-decoration:none;
  font-weight:500;
  transition:all .25s ease;
  text-align:center;
  flex:1;
  min-width:120px;
}

.cart{
  background:var(--accent);
  color:black;
}

.buy{
  background:var(--accent-secondary);
  color:white;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,0.4);
}

/* =========================
   Promo Section
========================= */

.promo{
  background:url("https://www.socal10ksb.com/images/bettor365-welcome-banner.jpg") center/cover no-repeat;
  padding:120px 60px;

  display:flex;
  justify-content:flex-end;
  align-items:center;
}

.promo-content{
  max-width:450px;
  text-align:right;
}

.promo-content h2{
  font-size:36px;
  margin-bottom:15px;
}

.promo-content p{
  margin-bottom:25px;
  color:#ccc;
}

.green{
  background:var(--accent);
  color:black;
}

/* =========================
   Features
========================= */

.features{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  padding:70px 60px;
  background:var(--bg-dark);
}

.feature{
  background:var(--bg-light);
  padding:30px;
  border-radius:10px;
  text-align:center;
  transition:transform .25s ease, box-shadow .25s ease;
}

.feature i{
  font-size:24px;
  color:var(--accent);
  margin-bottom:10px;
}

.feature:hover{
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

/* =========================
   Footer
========================= */

footer{
  background:black;
  padding:70px 60px;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:40px;
}

footer a{
  color:#ccc;
  text-decoration:none;
  display:block;
  margin:6px 0;
}

footer a:hover{
  color:white;
}

.social{
  margin-top:12px;
  display:flex;
  gap:12px;
}

.social i{
  font-size:18px;
}

input{
  padding:10px;
  margin-top:10px;
  width:100%;
  border:none;
  border-radius:6px;
}

.payments{
  margin-top:20px;
  display:flex;
  gap:14px;
  font-size:28px;
  color:#ccc;
}

.payments i{
  transition:.3s;
}

.payments i:hover{
  color:#39ff14;
  transform:scale(1.1);
}

.footer-bottom{
  margin-top:40px;
  padding-top:20px;
  border-top:1px solid #222;
  text-align:center;
  color:#888;
  font-size:14px;
}

/* =========================
   Responsive
========================= */

/* =========================
   Responsive
========================= */

/* Tablet */
@media (max-width: 1024px){

  .product{
    flex-direction:column;
    padding:50px 30px;
    gap:30px;
  }

  .features{
    grid-template-columns:repeat(2,1fr);
    padding:50px 30px;
  }

  .footer-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .promo{
    padding:80px 30px;
    justify-content:center;
    text-align:center;
  }

  .promo-content{
    text-align:center;
    max-width:600px;
  }

}

/* Mobile */
@media (max-width: 768px){

  .navbar{
    padding:14px 20px;
  }

  .logo img{
    height:42px;
  }

  .mobile-toggle{
    display:block;
  }

  .nav-icons{
    display:none;
  }

  .nav-menu{
    display:none;
    flex-direction:column;
    position:absolute;
    top:65px;
    left:0;
    width:100%;
    background:#111;
    padding:20px;
    gap:16px;
  }

  .nav-menu.active{
    display:flex;
  }

  .dropdown-menu{
    position:static;
    display:none;
    background:#181818;
    padding-left:10px;
  }

  .dropdown.active .dropdown-menu{
    display:block;
  }

  /* Product */

  .product{
    flex-direction:column;
    padding:40px 20px;
  }

  .main-img{
    border-radius:8px;
  }

  .thumbnails{
    justify-content:center;
  }

  .thumbnails img{
    width:55px;
  }

  .product-info h1{
    font-size:22px;
  }

  .new{
    font-size:22px;
  }

  .specs{
    gap:20px;
  }

  .spec{
    flex:1 1 80px;
  }

  /* Buttons */

  .buttons{
    flex-direction:column;
    gap:12px;
  }

  .btn{
    width:100%;
    text-align:center;
  }

  /* Promo */

  .promo{
    padding:70px 20px;
    text-align:center;
  }

  .promo-content h2{
    font-size:26px;
  }

  .promo-content p{
    font-size:14px;
  }

  /* Features */

  .features{
    grid-template-columns:1fr;
    padding:40px 20px;
  }

  /* Footer */

  footer{
    padding:50px 20px;
  }

  .footer-grid{
    grid-template-columns:1fr;
    gap:30px;
  }

  .payments{
    justify-content:center;
  }

  .social{
    justify-content:center;
  }

}

/* Small Phones */

@media (max-width: 480px){

  body{
    font-size:14px;
  }

  .topbar{
    font-size:12px;
    padding:6px;
  }

  .promo-content h2{
    font-size:22px;
  }

  .btn{
    padding:12px 18px;
    font-size:14px;
  }

  .tab-btn{
    font-size:15px;
  }

  #backToTop{
    width:40px;
    height:40px;
    font-size:18px;
    bottom:20px;
    right:20px;
  }

}