/* ===========================
   AVEN TECH – MAIN STYLESHEET
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0f;
  --bg2:      #111118;
  --bg3:      #1a1a26;
  --border:   #2a2a3a;
  --accent:   #00f5c4;
  --accent2:  #6c63ff;
  --text:     #e8e8f0;
  --muted:    #888899;
  --card-bg:  #13131e;
  --font-h:   'Syne', sans-serif;
  --font-b:   'DM Sans', sans-serif;
  --radius:   12px;
  --shadow:   0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---- LOGO ---- */
.logo { font-family: var(--font-h); font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.logo-a { color: var(--accent); }
.logo-tech { color: var(--accent2); }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 32px;
}
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  transition: color .2s; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); border-bottom-color: var(--accent); }
.nav-right { margin-left: 20px; }
.cart-btn {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  cursor: pointer; color: var(--text);
  display: flex; align-items: center; gap: 6px;
  transition: border-color .2s;
}
.cart-btn:hover { border-color: var(--accent); }
.cart-count {
  background: var(--accent); color: #000;
  font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 1px 6px; min-width: 18px; text-align: center;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #000;
  font-family: var(--font-h); font-weight: 700;
  font-size: 14px; padding: 12px 28px;
  border-radius: var(--radius); border: none;
  cursor: pointer; transition: opacity .2s, transform .15s;
  text-align: center;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline {
  display: inline-block;
  background: transparent; color: var(--accent);
  font-family: var(--font-h); font-weight: 700;
  font-size: 14px; padding: 12px 28px;
  border-radius: var(--radius); border: 2px solid var(--accent);
  cursor: pointer; transition: background .2s;
}
.btn-outline:hover { background: rgba(0,245,196,.08); }
.full-width { width: 100%; display: block; }

/* ---- HERO ---- */
.hero {
  min-height: 88vh; display: flex; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 80px 24px;
  gap: 60px; position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
  opacity: 0.3;
}
.hero-content { position: relative; z-index: 1; flex: 1; max-width: 560px; }
.hero-tag {
  display: inline-block; background: var(--bg3);
  border: 1px solid var(--border); border-radius: 99px;
  padding: 6px 16px; font-size: 13px; color: var(--muted);
  margin-bottom: 20px;
}
.hero-content h1 {
  font-family: var(--font-h); font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.1; letter-spacing: -2px;
  margin-bottom: 20px; color: var(--text);
}
.hero-accent { color: var(--accent); }
.hero-content p { color: var(--muted); font-size: 17px; line-height: 1.7; margin-bottom: 32px; max-width: 440px; }
.hero-visual { position: relative; z-index: 1; flex: 1; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.hero-orb {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(0,245,196,.25) 0%, rgba(108,99,255,.15) 60%, transparent 100%);
  border-radius: 50%; filter: blur(40px);
}
.float-card {
  position: absolute; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  white-space: nowrap; animation: floatCard 4s ease-in-out infinite;
}
.fc1 { top: 10%; left: 5%; animation-delay: 0s; }
.fc2 { top: 20%; right: 0%; animation-delay: 1s; }
.fc3 { bottom: 25%; left: 0%; animation-delay: 2s; }
.fc4 { bottom: 10%; right: 10%; animation-delay: 0.5s; }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.alt-bg { background: var(--bg2); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-family: var(--font-h); font-size: clamp(24px, 3vw, 36px);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 40px; color: var(--text);
}
.center-btn { text-align: center; margin-top: 40px; }

/* ---- CATEGORIES ---- */
.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 16px;
}
.cat-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-name { font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---- PRODUCT CARDS ---- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.product-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--accent2); transform: translateY(-4px); box-shadow: var(--shadow); }
.product-img {
  width: 100%; height: 180px; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-emoji-img { font-size: 72px; }
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent2); font-weight: 600; margin-bottom: 6px; }
.product-name { font-family: var(--font-h); font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.product-desc { font-size: 12px; color: var(--muted); line-height: 1.5; flex: 1; margin-bottom: 12px; }
.product-pricing { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.final-price { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: var(--accent); }
.old-price { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.offer-badge {
  position: absolute; top: 12px; right: 12px;
  background: #ff4466; color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 8px;
}
.add-to-cart-btn {
  width: 100%; padding: 10px; border: none;
  background: var(--accent2); color: #fff;
  border-radius: 8px; font-family: var(--font-h);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .1s;
}
.add-to-cart-btn:hover { background: #7c74ff; transform: scale(1.02); }

/* ---- WHY GRID ---- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.why-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.why-icon { font-size: 36px; margin-bottom: 14px; }
.why-card h3 { font-family: var(--font-h); font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14px; }

/* ---- FOOTER ---- */
.footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-top { display: flex; gap: 60px; margin-bottom: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.fb-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: #1877f2; color: #fff; border-radius: 8px;
  padding: 8px 16px; font-size: 13px; font-weight: 600;
  transition: opacity .2s;
}
.fb-link:hover { opacity: .85; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4 { font-family: var(--font-h); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font-size: 13px; }

/* ---- PAGE HEADER ---- */
.page-header {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 48px 0 32px;
}
.page-header h1 { font-family: var(--font-h); font-size: 36px; font-weight: 800; letter-spacing: -1px; }
.page-header p { color: var(--muted); margin-top: 6px; }

/* ---- FILTERS BAR ---- */
.filters-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.search-input {
  flex: 1; min-width: 200px; padding: 10px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 14px; outline: none;
  font-family: var(--font-b);
}
.search-input:focus { border-color: var(--accent); }
.cat-select {
  padding: 10px 14px; background: var(--bg3);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 14px; outline: none; cursor: pointer;
  font-family: var(--font-b);
}
.cat-select:focus { border-color: var(--accent); }

/* ---- CART SIDEBAR ---- */
.cart-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 200; backdrop-filter: blur(4px);
}
.cart-overlay.open { display: block; }
.cart-sidebar {
  position: fixed; top: 0; right: -420px; width: 380px; max-width: 96vw;
  height: 100vh; background: var(--bg2); border-left: 1px solid var(--border);
  z-index: 201; display: flex; flex-direction: column;
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-family: var(--font-h); font-size: 18px; font-weight: 700; }
.cart-header button { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total { font-family: var(--font-h); font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.sidebar-cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.sci-emoji { font-size: 28px; }
.sci-info { flex: 1; }
.sci-name { font-size: 13px; font-weight: 600; }
.sci-price { font-size: 12px; color: var(--muted); }
.sci-total { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---- CART PAGE ---- */
.cart-page-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
@media(max-width:900px){ .cart-page-layout { grid-template-columns: 1fr; } }
.cart-page-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.cpi-img { font-size: 40px; }
.cpi-info { flex: 1; }
.cpi-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cpi-price { color: var(--muted); font-size: 13px; }
.cpi-qty { display: flex; align-items: center; gap: 10px; }
.cpi-qty button {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 16px;
}
.cpi-qty span { font-weight: 600; min-width: 20px; text-align: center; }
.cpi-total { font-family: var(--font-h); font-size: 15px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.cpi-remove { background: none; border: none; color: #ff4466; cursor: pointer; font-size: 16px; padding: 4px; }

/* ---- ORDER FORM ---- */
.order-form-box {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; position: sticky; top: 80px;
}
.order-form-box h3 { font-family: var(--font-h); font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.order-form-box label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; margin-top: 14px; }
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px; outline: none;
  font-family: var(--font-b); resize: vertical;
}
.form-input:focus { border-color: var(--accent); }
.order-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-top: 1px solid var(--border);
  font-size: 14px; margin-top: 14px;
}
.order-summary-row:last-of-type { font-weight: 700; color: var(--accent); }
.success-box { text-align: center; padding: 24px 0; }
.success-box h3 { font-family: var(--font-h); font-size: 22px; margin: 12px 0 8px; }
.success-box p { color: var(--muted); font-size: 14px; }

/* ---- RESPONSIVE ---- */
@media(max-width:768px){
  .hero { flex-direction: column; padding: 60px 20px; min-height: auto; gap: 40px; }
  .hero-visual { width: 100%; }
  .nav-links { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
