:root {
  --bg-main: #0a0a0f;
  --bg-sec: #111118;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-blur: blur(18px);
  --accent-pink: #ff2e88;
  --accent-red: #ff3b3b;
  --highlight: #ff6aa6;
  --text-pri: #f5f5f7;
  --text-sec: #a1a1aa;
  --border-glass: rgba(255, 255, 255, 0.08);
  --radius-card: 20px;
  --radius-pill: 50px;
  --radius-btn: 18px;
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --section-gap-desktop: 90px;
  --section-gap-tablet: 60px;
  --section-gap-mobile: 40px;
  --card-padding: 32px;
  --grid-gap: 24px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-pri);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--text-pri);
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-pri);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-sec); margin-bottom: 16px; }

/* LAYOUT */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-gap {
  margin-top: var(--section-gap-desktop);
  margin-bottom: var(--section-gap-desktop);
}

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: var(--grid-gap);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .section-gap {
    margin-top: var(--section-gap-tablet);
    margin-bottom: var(--section-gap-tablet);
  }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .section-gap {
    margin-top: var(--section-gap-desktop);
    margin-bottom: var(--section-gap-desktop);
  }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.text-center { text-align: center; }

/* GLASSMORPHISM COMPONENTS */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
}

.glass-section {
  padding: var(--card-padding);
}

.glass-pill {
  border-radius: var(--radius-pill);
}

.glass-inner {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  padding: 24px;
}

/* HEADER & NAVBAR */
.nav-wrapper {
  position: sticky;
  top: 24px;
  z-index: 1000;
  width: 100%;
}

.navbar {
  max-width: 1000px;
  margin: 0 auto;
  padding: 12px 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--highlight);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-pri);
  letter-spacing: 0.5px;
}

.logo span {
  color: var(--accent-pink);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(var(--bg-main), var(--bg-main)) padding-box,
              linear-gradient(90deg, var(--accent-pink), var(--accent-red)) border-box;
  color: var(--text-pri);
}

.btn-primary:hover {
  background: linear-gradient(var(--bg-sec), var(--bg-sec)) padding-box,
              linear-gradient(90deg, var(--highlight), var(--accent-red)) border-box;
}

.btn-secondary {
  background: var(--glass-bg);
  border-color: var(--border-glass);
  color: var(--text-pri);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* HERO SECTION */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.hero-image {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

/* PRODUCT CARD */
.product-card {
  display: flex;
  flex-direction: column;
}

.product-img-wrapper {
  border-radius: calc(var(--radius-card) - 8px);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--bg-sec);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-info {
  flex-grow: 1;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: 16px;
}

.product-rating {
  color: #ffca28;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* TECH SECTION */
.tech-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.tech-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,46,136,0.2), rgba(255,59,59,0.2));
  border: 1px solid var(--accent-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* FORMS */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-sec);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-pri);
  font-family: var(--font-main);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-pink);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* CART TABLE */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th, .cart-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.cart-table th {
  color: var(--text-sec);
  font-weight: 500;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.qty-input {
  width: 60px;
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  color: #fff;
  border-radius: 8px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  font-weight: 600;
}

.remove-btn:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
}

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

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-actions {
    flex-direction: column;
  }
}