:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-header: #111111;
  --pink: #ff1493;
  --pink-hover: #ff4db8;
  --pink-dark: #c71585;
  --text: #f0f0f0;
  --text-muted: #a0a0a0;
  --border: #2a2a2a;
  --success: #22c55e;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

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

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pink);
}

.logo svg {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--pink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-actions button,
.header-actions a {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  position: relative;
  padding: 6px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--pink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  gap: 12px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--text-muted);
}

/* Hero */
.hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #2a0a1f 0%, #0a0a0a 70%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0512 0%, #0d0d0d 50%, #1a0a1f 100%);
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ff1493, #ff6ec7, #c71585);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(255, 20, 147, 0.3);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn:hover {
  background: var(--pink-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 20, 147, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
}

.btn-outline:hover {
  background: var(--pink);
  color: #fff;
}

/* Sections */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-title span {
  color: var(--pink);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.25s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: 0 12px 30px rgba(255, 20, 147, 0.15);
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #0d0d0d;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.06);
}

.product-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.tag.secondary {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--pink);
}

.product-info {
  padding: 16px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pink);
}

.product-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Trust badges */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  text-align: center;
  padding: 12px;
}

.trust-item .icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--pink);
}

.trust-item h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.trust-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Product Detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.detail-gallery {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.detail-info h1 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.detail-info .subtitle {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.detail-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 24px;
}

.option-group {
  margin-bottom: 20px;
}

.option-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.option-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.option-btn:hover,
.option-btn.active {
  border-color: var(--pink);
  background: rgba(255, 20, 147, 0.15);
  color: var(--pink);
}

.features-list {
  margin: 24px 0;
  list-style: none;
}

.features-list li {
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.features-list li::before {
  content: "✓ ";
  color: var(--pink);
  font-weight: 700;
}

.add-to-cart-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.qty-input {
  width: 70px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 100%;
  height: 100%;
  background: var(--bg-header);
  border-left: 1px solid var(--border);
  z-index: 200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 4px 0;
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Footer */
.footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: 48px 20px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--pink);
}

.footer a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Admin styles */
.admin-body {
  background: #0f1115;
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #161b22;
  border-right: 1px solid #30363d;
  padding: 20px 0;
  flex-shrink: 0;
}

.admin-sidebar .logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid #30363d;
  margin-bottom: 16px;
}

.admin-nav a {
  display: block;
  padding: 12px 20px;
  color: #8b949e;
  font-size: 0.95rem;
  transition: all 0.15s;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255, 20, 147, 0.1);
  color: var(--pink);
  border-right: 3px solid var(--pink);
}

.admin-main {
  flex: 1;
  padding: 28px 32px;
  overflow-x: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.admin-header h1 {
  font-size: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 20px;
}

.stat-card .label {
  font-size: 0.85rem;
  color: #8b949e;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pink);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #161b22;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #30363d;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #30363d;
  font-size: 0.9rem;
}

.admin-table th {
  background: #0d1117;
  color: #8b949e;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.admin-table tr:hover td {
  background: rgba(255, 20, 147, 0.05);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.badge-warning {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    height: 55vh;
    min-height: 380px;
  }

  .admin-sidebar {
    width: 200px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    height: 56px;
    padding: 0 14px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-info {
    padding: 12px;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .section {
    padding: 40px 14px;
  }

  .cart-drawer {
    width: 100%;
    right: -100%;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #30363d;
  }

  .admin-main {
    padding: 20px 14px;
  }
}
