:root {
  --bg: #020611;
  --panel: rgba(2, 10, 24, 0.82);
  --panel-strong: rgba(0, 4, 12, 0.94);
  --line: rgba(0, 140, 255, 0.5);
  --line-soft: rgba(178, 218, 255, 0.14);
  --text: #f5f8ff;
  --muted: #b8c7d9;
  --blue: #008cff;
  --cyan: #00c8ff;
  --red: #ff4c4c;
  --green: #00ff88;
  --orange: #ffaa33;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, rgba(2,6,17,0.25), #020611 48%), url("/assets/img/background.png") center top / cover fixed;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }

.hero {
  min-height: 760px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(2,6,17,0.16), rgba(2,6,17,0.86) 58%), url("/assets/img/header.png") center / cover no-repeat;
}

.hero-home { min-height: 860px; }
.hero-shop { min-height: 500px; }
.hero-product { min-height: 400px; }

.nav, main {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.brand, .eyebrow, h1, h2, h3, .button, .nav-links {
  font-family: "Orbitron", Arial, sans-serif;
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.brand-mark {
  display: grid;
  width: 56px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  box-shadow: 0 0 28px rgba(0,140,255,0.28);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  align-items: center;
}

.nav-links a:hover { color: white; text-shadow: 0 0 16px rgba(0,200,255,0.72); }

.cart-link { position: relative; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cyan);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  font-family: "Inter", sans-serif;
  position: absolute;
  top: -8px;
  right: -12px;
}

.hero-copy {
  width: min(1440px, calc(100% - 48px));
  min-height: 650px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 28px;
  max-width: 820px;
  font-size: clamp(54px, 7vw, 118px);
  line-height: 0.95;
  text-shadow: 0 0 30px rgba(0,132,255,0.38);
}

h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 52px); letter-spacing: 0.06em; }
h3 { margin-bottom: 12px; font-size: 21px; letter-spacing: 0.07em; }
h4 { font-family: "Orbitron", Arial, sans-serif; letter-spacing: 0.06em; margin-bottom: 12px; }

.hero-copy > p:not(.eyebrow) {
  max-width: 640px;
  color: #d7e1ee;
  font-size: 21px;
  line-height: 1.7;
}

.actions, .product-meta, .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.actions { justify-content: flex-end; margin-top: 18px; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 22px;
  background: rgba(0,0,0,0.28);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  transition: all 0.2s;
}

.button:hover { background: rgba(0,140,255,0.15); color: white; }
.button.primary {
  background: linear-gradient(90deg, #006aff, #00b7ff);
  box-shadow: 0 0 28px rgba(0,132,255,0.34);
}
.button.primary:hover { box-shadow: 0 0 40px rgba(0,132,255,0.6); }
.button:disabled { opacity: 0.4; cursor: not-allowed; }

main { padding: 72px 0 100px; }

.section-title { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }

.product-grid, .grid { display: grid; gap: 24px; }

.product-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.grid-four { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }

.panel, .product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px rgba(0,132,255,0.08);
}

.panel { margin-bottom: 24px; padding: clamp(24px, 4vw, 42px); }
.panel.narrow { max-width: 560px; }

.product-card {
  min-height: 480px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.product-card::before, .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(0,200,255,0.14), transparent 34%);
}

.product-card > *, .panel > * { position: relative; }

.product-card a { display: flex; flex-direction: column; flex: 1; }

.product-image {
  height: 270px;
  margin-bottom: 22px;
  border: 1px solid rgba(0,140,255,0.28);
  background: linear-gradient(145deg, rgba(0,140,255,0.2), rgba(0,0,0,0.22)), url("/assets/img/background.png") center / cover;
  transition: transform 0.3s;
}

.product-card:hover .product-image { transform: scale(1.03); }

.product-card p, .panel p, .feature-list { color: var(--muted); line-height: 1.65; }

.product-meta { align-items: center; justify-content: space-between; margin: 20px 0; }
.product-meta strong { color: var(--cyan); font-size: 22px; }
.product-meta span, .hint { color: var(--muted); }
.original-price { text-decoration: line-through; color: var(--muted) !important; font-size: 14px; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; }

.stats { gap: 12px; }
.stats > div {
  flex: 1 1 160px;
  padding: 24px;
  border: 1px solid var(--line-soft);
  background: var(--panel-strong);
}
.stats strong { display: block; color: var(--cyan); font-family: "Orbitron", Arial, sans-serif; font-size: 32px; }
.stats span { color: var(--muted); }

.form { display: grid; gap: 16px; }

label { display: grid; gap: 8px; color: #dfe8f7; font-weight: 700; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 14px;
  background: rgba(0,0,0,0.42);
  color: white;
  font: inherit;
}
select { cursor: pointer; }
select option { background: #020611; }
textarea { min-height: 110px; resize: vertical; }

.feature-list { margin: 0; padding-left: 20px; }

.flash {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  background: rgba(0,0,0,0.62);
}
.flash.ok { border-color: var(--green); }
.flash.bad { border-color: var(--red); }

.footer {
  border-top: 1px solid var(--line);
  background: #00040c;
  padding: 60px 0 30px;
}
.footer-inner { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin-bottom: 4px; font-size: 12px; letter-spacing: 0.12em; color: var(--cyan); }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: white; }
.footer-col p { color: var(--muted); font-size: 14px; }
.footer-form { display: flex; gap: 8px; }
.footer-form input { flex: 1; padding: 10px; }
.footer-form .button { padding: 10px 16px; min-height: auto; }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-soft);
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}
.payment-icons { display: flex; gap: 8px; }
.payment-icons span {
  padding: 4px 8px;
  border: 1px solid var(--line-soft);
  font-size: 10px;
  font-family: "Orbitron", Arial, sans-serif;
  font-weight: 700;
}

/* Shop Controls */
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.shop-filters, .shop-sort { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-filters .button { padding: 8px 16px; min-height: auto; font-size: 11px; }
.inline-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; padding: 10px; }
.inline-form .button { padding: 8px 16px; min-height: auto; }

/* Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.product-gallery { position: sticky; top: 24px; align-self: start; }
.gallery-main { border: 1px solid var(--line-soft); margin-bottom: 12px; }
.gallery-main img { width: 100%; display: block; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumbs img {
  width: 80px; height: 80px; object-fit: cover;
  border: 1px solid var(--line-soft); cursor: pointer;
  opacity: 0.6; transition: opacity 0.2s;
}
.gallery-thumbs img:hover { opacity: 1; }

.product-info { display: flex; flex-direction: column; gap: 20px; }
.product-price { font-size: 32px; font-weight: 700; font-family: "Orbitron", Arial, sans-serif; }
.product-price .sale-price { color: var(--cyan); }
.product-price .original-price { font-size: 20px; }
.rating { display: flex; gap: 2px; align-items: center; color: var(--muted); font-size: 14px; }
.star { color: rgba(255,255,255,0.2); }
.star.filled { color: #ffcc00; }

.option-group { display: grid; gap: 10px; }
.option-group label { font-size: 13px; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.option-btn { display: inline-flex; cursor: pointer; }
.option-btn input { display: none; }
.option-btn span {
  display: inline-flex;
  padding: 10px 20px;
  border: 1px solid var(--line-soft);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s;
}
.option-btn input:checked + span { border-color: var(--cyan); background: rgba(0,200,255,0.15); box-shadow: 0 0 16px rgba(0,200,255,0.3); }
.option-btn span:hover { border-color: var(--line); }

.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.product-meta-info { border-top: 1px solid var(--line-soft); padding-top: 20px; }
.product-meta-info p { margin-bottom: 6px; font-size: 14px; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-item { display: flex; gap: 20px; align-items: center; padding: 20px; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 16px; margin-bottom: 4px; }
.cart-item-price { font-size: 18px; font-weight: 700; color: var(--cyan); }
.cart-item-qty form { display: flex; gap: 4px; align-items: center; }
.cart-item-qty input { width: 50px; padding: 6px; text-align: center; }
.cart-item-total { text-align: right; min-width: 100px; }
.cart-item-total strong { font-size: 18px; color: var(--cyan); display: block; margin-bottom: 8px; }
.cart-summary { position: sticky; top: 24px; }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-row.discount { color: var(--green); }
.summary-row.total { border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 16px; font-size: 20px; font-weight: 700; }
.summary-row.total span { color: var(--cyan); }
.coupon-input { display: flex; gap: 8px; }
.coupon-input input { flex: 1; padding: 10px; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.payment-methods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.payment-option { display: flex; gap: 8px; align-items: center; cursor: pointer; padding: 10px; border: 1px solid var(--line-soft); }
.payment-option input { width: auto; }
.payment-option span { font-weight: 600; font-size: 13px; }

.address-option { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-bottom: 8px; }
.address-option input { width: auto; margin-top: 4px; }
.checkout-items { margin-bottom: 16px; }
.checkout-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--muted); }
.order-item-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }

.success-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green);
  color: #000;
  font-size: 36px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Collections */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 24px; }
.collection-card { display: flex; flex-direction: column; gap: 12px; }
.collection-card.featured { min-height: 280px; }
.collection-card .count { color: var(--muted); font-size: 14px; }
.collection-card .button { align-self: flex-start; }

/* Lookbook */
.lookbook-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }
.lookbook-item { display: flex; flex-direction: column; min-height: 400px; }
.featured-look { grid-column: 1 / -1; }
.lookbook-image { height: 300px; border: 1px solid var(--line-soft); margin-bottom: 16px; }
.lookbook-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }

/* FAQ */
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.faq-nav .button { padding: 8px 16px; min-height: auto; font-size: 11px; }
.faq-item summary { cursor: pointer; }
.faq-item summary h3 { display: inline; font-size: 18px; }
.faq-item[open] { border-color: var(--line); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 24px; }
.blog-card { display: flex; flex-direction: column; }
.blog-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.blog-info .button { align-self: flex-start; }
.blog-article { max-width: 800px; }
.blog-article h2 { margin-bottom: 8px; }

/* Account */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.account-sidebar { position: sticky; top: 24px; }
.account-avatar { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.avatar-placeholder {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav a {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.account-nav a:hover, .account-nav a.active { background: rgba(0,140,255,0.12); color: var(--cyan); }

/* Notifications */
.notification-item { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.notification-item.unread { border-left: 3px solid var(--cyan); padding-left: 12px; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.admin-sidebar { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; align-self: start; padding: 16px 0 !important; scrollbar-width: thin; }
.admin-brand { padding: 4px 16px 16px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
.admin-nav { display: flex; flex-direction: column; padding-bottom: 40px; }
.nav-group { margin-bottom: 4px; }
.nav-group-title { padding: 10px 16px 4px; font-size: 10px; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.12em; font-family: "Orbitron", Arial, sans-serif; cursor: pointer; user-select: none; }
.nav-group-title::before { content: "\25BC"; font-size: 8px; margin-right: 6px; display: inline-block; transition: transform .15s; }
.nav-group-title.collapsed::before { transform: rotate(-90deg); }
.nav-item {
  display: block !important;
  padding: 5px 16px 5px 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: .12s;
}
.nav-item:hover { color: var(--text); background: rgba(0,140,255,0.04); }
.nav-item.active { color: var(--cyan); background: rgba(0,140,255,0.08); border-left-color: var(--cyan); }


/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.table th { color: var(--cyan); font-family: "Orbitron", Arial, sans-serif; font-size: 11px; letter-spacing: 0.1em; }
.table tr:hover td { background: rgba(0,140,255,0.04); }

/* Status Badges */
.status-pending { color: var(--orange); }
.status-paid, .status-active, .status-processing { color: var(--cyan); }
.status-shipped, .status-delivered { color: var(--green); }
.status-cancelled, .status-failed, .status-archived { color: var(--red); }
.status-refunded { color: #ff88aa; }
.status-draft { color: var(--muted); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--line-soft);
  font-size: 11px;
  font-family: "Orbitron", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.badge-new { color: var(--cyan); font-size: 11px; font-weight: 700; background: rgba(0,200,255,0.1); padding: 2px 8px; border: 1px solid rgba(0,200,255,0.3); }

/* Misc */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkbox-label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.checkbox-label input { width: auto; }
.new-badge { position: relative; }
.new-badge::after {
  content: "NEW";
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 10px;
  background: var(--cyan);
  color: #000;
  font-family: "Orbitron", Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  z-index: 2;
}
hr { border: none; border-top: 1px solid var(--line-soft); }
details summary { cursor: pointer; }
.cta-section { background: linear-gradient(135deg, rgba(0,140,255,0.08), transparent); }

/* Review */
.review-card { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.menu-toggle { display:none; background:none; border:none; color:var(--text); font-size:22px; cursor:pointer; padding:4px 8px; line-height:1 }
@media (max-width: 980px) {
  .menu-toggle { display:block; }
  .nav { display:none; flex-direction: column; justify-content: center; padding: 22px 0; width:100%; background:var(--panel-strong); position:absolute; top:100%; left:0; z-index:99 }
  .nav.nav-open { display:flex; }
  .header-inner { flex-wrap:wrap; }
  .nav, .hero-copy { align-items: flex-start; text-align: left; }
  .nav-links, .actions { justify-content: flex-start; }
  .product-grid, .grid.two, .grid.three, .split, .cart-layout, .checkout-layout,
  .admin-layout, .account-layout, .lookbook-grid, .product-detail { grid-template-columns: 1fr; }
  .admin-sidebar, .account-sidebar { position: static; }
  .cart-item { flex-wrap: wrap; }
  .collection-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .payment-methods-grid { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .nav, main, .hero-copy { width: min(100% - 28px, 1440px); }
  .hero { min-height: 690px; }
  .hero-copy { min-height: 540px; }
  h1 { font-size: 48px; }
  .button { width: 100%; }
  .stats > div { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .shop-controls { flex-direction: column; }
  .product-image { height: 200px; }
}
.page-title { text-align: center; padding: 40px 20px 20px; }
section.page-title h1 { font-size: 28px; max-width: 600px; margin: 0 auto 8px; line-height: 1.3; }
.page-title .hint { max-width: 500px; margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
