:root {
  --primary: #0077ff;
  --gradient: linear-gradient(90deg, #5a82f7 0%, #00c6ff 100%);
  --glass: rgba(255,255,255,0.3);
  --glass-border: rgba(255,255,255,0.45);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
body {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #eef2fb;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
.bg-gradient {
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  top: 0;
  left: 0;
  background: var(--gradient);
  opacity: .12;
}
.header {
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 7vw 1.2rem 7vw;
}
.logo {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
}
.logo span { color: #00c6ff; }
nav a {
  margin-left: 2rem;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.2s;
}
nav a:hover { color: var(--primary); }
.btn-glass {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  padding: 0.5rem 1.6rem;
  border-radius: 24px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.18s;
  margin-left: 1rem;
}
.btn-glass:hover { background: var(--primary); color: #fff; }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 2rem;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 4px 20px 0 rgba(0, 123, 255, 0.15);
  cursor: pointer;
  margin-top: 1.2rem;
  transition: filter 0.17s;
}
.btn-primary:hover { filter: brightness(1.09); }
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3vw;
  padding: 3.5vw 7vw 1vw 7vw;
}
.hero > div {
  flex: 1;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.18;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-img {
  width: 360px;
  max-width: 38vw;
  border-radius: 20px;
  box-shadow: var(--shadow);
  object-fit: cover;
}
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin: 3rem 0 2rem 0;
  color: #333;
}
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.2rem;
  padding: 0 7vw 3rem 7vw;
}
.product-card {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.1rem;
  text-align: center;
  position: relative;
  transition: transform 0.13s, box-shadow 0.13s;
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-7px) scale(1.04);
  box-shadow: 0 10px 30px 0 rgba(0,123,255,0.11);
}
.product-card img {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
}
.product-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0.5rem 0;
}
.product-card .price {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
footer {
  text-align: center;
  font-size: 1rem;
  color: #888;
  margin-bottom: 1.5rem;
  margin-top: 2.7rem;
}
.login-box {
  width: 380px;
  margin: 7vh auto 0 auto;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.3rem 2.5rem 2rem 2.5rem;
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(10px);
}
.login-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.login-logo span { color: #00c6ff; }
.login-box h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 2rem;
}
.login-box form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.login-box input {
  border: none;
  border-radius: 10px;
  padding: 1rem;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 2px 14px 0 rgba(100,130,255,0.06);
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.14s;
}
.login-box input:focus {
  box-shadow: 0 4px 18px 0 rgba(0,123,255,0.12);
}
.login-desc {
  margin-top: 1.1rem;
  font-size: 1rem;
  color: #444;
}
.login-desc a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-left: 1.2rem;
  font-weight: 600;
}
.cart-icon {
  font-size: 1.3em;
  margin-right: 4px;
}
#cart-count {
  background: var(--primary);
  color: #fff;
  font-size: .85em;
  padding: 0 7px;
  border-radius: 12px;
  margin-left: 2px;
  min-width: 20px;
  text-align: center;
}
.checkout-container {
  max-width: 440px;
  margin: 2.2rem auto 0 auto;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.4rem;
  gap: 1.2rem;
}
.cart-item img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
}
.cart-info {
  flex: 1;
}
.cart-item-price {
  color: var(--primary);
  font-weight: 700;
  margin-top: 0.3rem;
}
.cart-total {
  font-size: 1.18em;
  font-weight: 700;
  margin: 2rem 0 1.2rem 0;
  text-align: right;
}

/* HAMBURGER MENU & RESPONSIVE NAV */
.hamburger {
  display: none;
  width: 34px;
  height: 34px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 110;
  margin-left: 1rem;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3.2px;
  background: #222;
  border-radius: 3px;
  margin: 4px 0;
  transition: all 0.3s;
}

/* Responsive */
@media (max-width: 800px) {
  .hero { flex-direction: column; gap: 2rem; padding: 2.5vw 3vw 1vw 3vw; }
  .products {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0 3vw 3rem 3vw;
  }
  .header { padding: 1.2rem 3vw 1rem 3vw; }
  .hero-img { width: 96vw; max-width: 98vw; }
  .login-box { width: 98vw; max-width: 420px; }

  .hamburger { display: flex; }
  nav#main-nav {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 68vw;
    max-width: 320px;
    height: 100vh;
    background: var(--glass, rgba(255,255,255,0.95));
    border-left: 2px solid var(--glass-border, #d4e0fa);
    box-shadow: -4px 0 20px rgba(30,60,130,.10);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 3.7rem 2.2rem 2rem 2.2rem;
    gap: 1.7rem;
    z-index: 100;
    transition: right 0.24s cubic-bezier(.9,.05,.22,1.1);
  }
  nav#main-nav.show {
    right: 0;
  }
  nav#main-nav a, nav#main-nav .btn-glass, nav#main-nav .user-greet {
    margin: 0 !important;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.09rem;
    border-bottom: 1px solid #ececec6b;
    color: #2a2a2a;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }
  .user-greet { margin-left: 0 !important; margin-top: .3rem; }
}
