/* assets/style.css
   GLOBAL styles shared across:
   Home, Products, Cart, Login/Register
*/

/* ===============================
   DESIGN TOKENS
================================ */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #6b7280;
  --brand: #006FA1;
  --accent: #FEA93D;

 /* ✅ HERO IMAGE */
  --hero-url: url("/assets/images/hero-bg.jpg");
   
  /* Glass header */
  --header-bg: rgba(11, 18, 32, 0.72);

  --radius: 12px;
  --max-w: 1200px;
}

/* ===============================
   RESET / BASE
================================ */
* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===============================
   LAYOUT
================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px;
}

/* ===============================
   HEADER / NAV — GLASS (FIXED)
   ⚠️ HEIGHT UNCHANGED
================================ */
.main-header {
  background: var(--header-bg);
  color: #fff;
  width: 100%;
  padding: 10px 0; /* DO NOT CHANGE */
  position: sticky;
  top: 0;
  z-index: 80;

  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);

  border-bottom: 1px solid rgba(255,255,255,0.08);

  box-shadow:
    0 6px 24px rgba(2,6,23,0.28),
    inset 0 1px 0 rgba(255,255,255,0.06);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand .logo {
  height: 42px; /* unchanged */
  width: auto;
}

/* ===============================
   NAV LINKS
================================ */
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: #fff;
  font-weight: 600;
  opacity: 0.95;
  transition: opacity .18s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

.nav-links a:hover {
  opacity: .75;
}

/* ===============================
   PROFILE DROPDOWN (FIXED)
================================ */
.profile-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.profile-btn {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
}

.profile-btn:hover {
  background: rgba(255,255,255,0.08);
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 190px;

  display: none;
  flex-direction: column;

  background: rgba(20, 25, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);

  overflow: hidden;
  z-index: 200;
}

.profile-dropdown.show .profile-menu {
  display: flex;
}

.profile-menu a {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu a:hover {
  background: rgba(255,255,255,0.08);
}

.hidden {
  display: none !important;
}

/* ===============================
   CART BADGE
================================ */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  position: absolute;
  right: -8px;
  top: -8px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(2,6,23,0.35);
}

/* ===============================
   BUTTONS
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: #0b1220;
  border: 1px solid #e6e9ef;
}

/* ===============================
   DISCOUNT BADGE
================================ */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
}

/* ===============================
   CART PAGE BASE
================================ */
.cart-container {
  max-width: 1000px;
  margin: 28px auto;
  padding: 0 18px;
}

/* ===============================
   FOOTER
================================ */
.site-footer {
  background: transparent;
  color: var(--muted);
  padding: 18px 0;
  text-align: center;
}

/* ===============================
   ANIMATIONS
================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp .6s ease both;
}

/* ===============================
   FORMS
================================ */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}

.password-wrapper .toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #555;
  font-size: 15px;
}

.password-wrapper .toggle-pass:hover {
  color: #000;
}

.email-hint {
  font-size: 13px;
  display: block;
  margin-top: 4px;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 880px) {
  .header-inner { padding: 0 12px; }
  .brand .logo { height: 36px; }
}
