/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    transform: none !important;
    perspective: none !important;
    filter: none !important;
    height: 100%; /* Ensure full height for scrolling context */
    overflow-y: auto; /* Define scrolling on html/body */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f0f0f;
    color: #f0f0f0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll if content is too wide */
}

#main-content {
    padding-top: 5.5rem; /* Offset for fixed header and logo */
}

a {
    color: #00ffee;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #00ccff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
.header {
    background-color: #121212;
    padding: 0.1rem 0;
    border-bottom: 2px solid #00ffee22;
    position: fixed !important; /* Try with !important to rule out specificity issues */
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 9999;
}
/* If content is hidden behind the header, add padding-top to your main content or body. */

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ffee;
}

.nav {
    font-size: 1.15rem;
    line-height: 1.1;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #101010cc, #1c1c1ccc), url('assets/images/city-backdrop.jpg') center bottom/cover no-repeat;
    padding: 5rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #00ffee;
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover {
    background-color: #00ccff;
    color: #000;
}

/* Products Section */
.products {
    background-color: #161616;
    padding: 4rem 0;
}

.products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #00ffee;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 0 10px #00ffee33;
    transition: transform 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.95rem;
    color: #bbbbbb;
    margin-bottom: 1rem;
}

.product-card .price {
    display: block;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #00ffee;
}

.earbuds-card p {
    margin-top: 2.5rem;
}

/* Contact Section */
.contact {
    background-color: #121212;
    text-align: center;
    padding: 4rem 0;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00ffee;
}

.contact p {
    color: #cccccc;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

#cart-btn svg {
    display: inline-block;
    vertical-align: middle;
}

/* Mobile adjustments */
@media (max-width: 700px) {
  .container {
    width: 98%;
    padding: 1rem 0;
  }
  .header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav {
    display: none;
    flex-direction: column;
    background: #121212;
    position: absolute;
    top: 3.5rem;
    right: 1.5rem;
    width: 70vw;
    max-width: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 12px #0008;
    padding: 1rem 0.5rem;
    gap: 1.2rem;
    z-index: 10002;
  }
  .nav.open {
    display: flex;
  }
  #cart-btn {
    position: absolute;
    right: 0.7rem;
    top: 0.5rem;
    z-index: 10004;
  }
  #mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: #00ffee;
    position: absolute;
    right: 4.5rem;
    top: 0.7rem;
    z-index: 10003;
    cursor: pointer;
  }
  .logo {
    font-size: 1.3rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .footer .container {
    flex-direction: column !important;
    gap: 0.5rem !important;
    text-align: center;
  }
  #copy-popup {
    font-size: 0.95em;
    padding: 0.4em 0.7em;
    top: 1.5rem;
  }
  .nav-group {
    flex-direction: row;
    gap: 0;
  }
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
