/* Custom Design System & Layout for Northstar Enterprises (northstarenterprises.online) */
:root {
  --bg: #051923;
  --card-bg: #002338;
  --text: #EBF2F7;
  --text-muted: #A0AEC0;
  --accent: #00A6FB;
  --accent-hover: #0582CA;
  --border: #006494;
  --font-heading: 'Space Mono', monospace;
  --font-body: 'Outfit', sans-serif;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(0, 166, 251, 0.15), 0 0 0 1px #006494;
}

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

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

h1, h2, h3, h4, .brand-logo {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  font-weight: 700;
}

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

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
  transition: all 0.2s ease;
}

input, select, textarea {
  font-family: var(--font-body);
}

/* Top Announcement Strip */
.top-announcement {
  background: var(--accent);
  color: #111111;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Header Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-monogram {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.brand-tagline-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

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

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--card-bg);
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cart-counter-pill {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

/* Hero Section */
.hero-section {
  padding: 70px 28px 50px;
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-badge-chip {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  background: rgba(197, 160, 89, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.hero-headline {
  font-size: 3.2rem;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #111111;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-visual-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-visual-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.hero-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #FFFFFF;
}

/* Categories Strip */
.categories-container {
  max-width: 1380px;
  margin: 10px auto 40px;
  padding: 0 28px;
}

.category-scroll-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.cat-chip {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-chip:hover, .cat-chip.active {
  background: var(--accent);
  color: #111111;
  border-color: var(--accent);
}

/* Catalogue Controls */
.catalogue-section {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px 80px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text);
}

.controls-bar {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.search-input-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
}

.filter-select {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9rem;
}

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

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}

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

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #111111;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius);
  text-transform: uppercase;
}

.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.65);
  color: #FFFFFF;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius);
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.12rem;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
  flex: 1;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: #EAB308;
  margin-bottom: 12px;
}

.card-rating-count {
  color: var(--text-muted);
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.card-original-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-discount {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10B981;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-details {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.btn-details:hover {
  background: var(--bg);
  border-color: var(--accent);
}

.btn-add-cart {
  padding: 8px 12px;
  background: var(--accent);
  color: #111111;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.btn-add-cart:hover {
  background: var(--accent-hover);
}

/* Modals & Drawers */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  position: relative;
  padding: 28px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--accent);
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  z-index: 1100;
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

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

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

.cart-item-row {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  object-fit: cover;
}

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

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-item-price {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 700;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 700;
}

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

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.cart-total-line {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 16px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.btn-checkout {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #111111;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-align: center;
}

.btn-checkout:hover {
  background: var(--accent-hover);
}

/* Legal & Static Views */
.page-view {
  max-width: 1000px;
  margin: 40px auto 80px;
  padding: 0 28px;
}

.page-view-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
}

.legal-section-block {
  margin-bottom: 30px;
}

.legal-section-block h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.legal-section-block p, .legal-section-block li {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

/* Contact Form Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin-top: 30px;
}

.contact-card-info {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
}

.consent-checkbox-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0;
}

.consent-checkbox-wrap input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.consent-text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 60px 28px 30px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  max-width: 1380px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 30px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 12px 18px;
  }
  .header-nav {
    display: none;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .cart-drawer {
    width: 100vw;
  }
}
