/* ================================
   ROOT VARIABLES
================================ */
:root {
  --bg: #0f1115;
  --card-bg: #171a21;
  --border: #2a2f3a;
  --accent: #1e6bff;
  --accent-hover: #1554cc;
  --text: #ffffff;
  --muted: #9aa3b2;
}

/* ================================
   GLOBAL RESET
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ================================
   HEADER
================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #11131a;
  border-bottom: 1px solid var(--border);
}

.site-header img {
  height: 42px;
  width: auto;
  display: block;
}


.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link .header-logo {
  height: 42px;          /* Desktop / default size */
  width: auto;
  display: block;
  object-fit: contain;   /* Prevents distortion */
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Search (desktop) */
.header-search {
  flex: 1;
  display: flex;
  max-width: 600px;
}

.header-search input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px 0 0 6px;
  background: var(--card-bg);
  color: var(--text);
}

.header-search button {
  padding: 8px 12px;
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

/* Cart */
.cart-icon {
  position: relative;
  font-size: 22px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 50px;
}

/* Menu Button (mobile) */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
  display: flex;
  gap: 24px;
}

.mobile-menu a {
  color: var(--muted);
  font-weight: 500;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ================================
   MOBILE HEADER
================================ */
@media (max-width: 900px) {
  .mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    width: 240px;
  }

  .mobile-menu.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .logo-link .header-logo {
    height: 38px;   /* Slightly smaller on mid-width screens */
  }
}

@media (max-width: 768px) {
  .logo-link .header-logo {
    height: 34px;   /* Mobile size – matches your original intent */
  }

  .header-search {
    display: none !important;   /* Assuming this is for desktop-only search */
  }
}

/* ================================
   MINI CART
================================ */
.mini-cart {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  transition: right 0.3s ease;
  z-index: 2000;
}

.mini-cart.active {
  right: 0;
}

@media (max-width: 900px) {
  .mini-cart {
    width: 100%;
  }
}

/* ================================
   FOOTER
================================ */
.site-footer {
  background: #11131a;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.footer-links {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}

.social-icons a {
  font-size: 18px;
}

.copyright {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 20px;
}

/* ================================
   HOMEPAGE HERO – FINAL CLEAN VERSION
================================ */

/* Make body flex so footer behaves properly */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero layout */
.homepage-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* moves content UP */
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 40px; /* reduce top space */
}

/* Logo */
.hero-logo {
  max-width: 500px; /* slightly larger desktop */
  width: 100%;
}

/* Subtitle */
.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 18px 0 22px;
}

/* Search */
.search-form {
  display: flex;
  max-width: 560px;
  width: 100%;
}

.search-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px 0 0 6px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
}

.search-form button {
  padding: 12px 18px;
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.search-form button:hover {
  background: var(--accent-hover);
}

/* MOBILE */
@media (max-width: 768px) {

  .homepage-hero {
    padding: 50px 16px 30px; /* less top gap */
  }

  .hero-logo {
    max-width: 380px;  /* larger than before */
    width: 95%;
  }

  .subtitle {
    font-size: 16px;
  }

}
