/* =============================================
   iscatek.com — custom styles (Bootstrap 5 base)
   ============================================= */

@font-face {
  font-family: 'Earth Orbiter';
  src: url('earthorbiter.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --isk-bg:          #0b1623;
  --isk-bg-card:     #111e2e;
  --isk-bg-surface:  #162032;
  --isk-border:      #1e3050;
  --isk-accent:      #00c8a0;
  --isk-accent-dim:  #009e7f;
  --isk-text:        #e2eaf4;
  --isk-text-muted:  #7a9bbf;
  --isk-link:        #4db8ff;
  --font-display:    'Earth Orbiter', 'JetBrains Mono', monospace;
  --font-mono:       'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* ---- Base ---- */
html, body {
  background: var(--isk-bg);
  color: var(--isk-text);
  font-family: 'Inter', system-ui, sans-serif;
  scroll-behavior: smooth;
}

a { color: var(--isk-link); text-decoration: none; }
a:hover { color: #80cfff; text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-mono); }

/* ---- Navbar ---- */
.navbar-isk {
  background: rgba(11, 22, 35, 0.95);
  border-bottom: 1px solid var(--isk-border);
  backdrop-filter: blur(6px);
}
.navbar-isk .navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--isk-accent) !important;
  letter-spacing: 5px;
}
.navbar-isk .nav-link {
  color: var(--isk-text-muted) !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.navbar-isk .nav-link:hover,
.navbar-isk .nav-link.active {
  color: var(--isk-text) !important;
}
.navbar-toggler { display: none !important; }
.navbar-collapse { display: flex !important; flex-basis: auto; }

/* ---- Hero ---- */
.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,200,160,0.06) 0%, transparent 70%),
    var(--isk-bg);
}
.hero h1 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -1px;
  line-height: 1.15;
}
.hero h1 span { color: var(--isk-accent); }
.hero p.lead {
  color: var(--isk-text-muted);
  max-width: 520px;
  font-size: 1.05rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 200, 160, 0.12);
  border: 1px solid rgba(0, 200, 160, 0.3);
  border-radius: 2rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--isk-accent);
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

/* ---- Section headings ---- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--isk-accent);
  margin-bottom: 0.5rem;
}

/* ---- Product grid ---- */
.products-section {
  padding: 4rem 0;
}
.product-card {
  background: var(--isk-bg-card);
  border: 1px solid var(--isk-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--isk-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,200,160,0.10);
}
.product-card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .product-card-img-wrap img {
  transform: scale(1.03);
}
.product-card-img-placeholder {
  color: var(--isk-border);
  font-size: 3rem;
}
.product-card-body {
  padding: 1.25rem 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--isk-accent);
  margin-bottom: 0.4rem;
}
.product-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--isk-text);
  margin-bottom: 0.4rem;
}
.product-card-tagline {
  font-size: 0.88rem;
  color: var(--isk-text-muted);
  flex: 1;
  margin-bottom: 1rem;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--isk-border);
  background: var(--isk-bg-surface);
}
.product-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--isk-text);
}
.product-price-cents {
  font-size: 0.85rem;
  color: var(--isk-text-muted);
}
.btn-isk-primary {
  background: var(--isk-accent);
  color: #0b1623 !important;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none !important;
}
.btn-isk-primary:hover {
  background: #00e6b8;
  transform: scale(1.03);
}
.btn-isk-outline {
  background: transparent;
  color: var(--isk-accent) !important;
  border: 1px solid var(--isk-accent);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  transition: background 0.15s;
  text-decoration: none !important;
}
.btn-isk-outline:hover {
  background: rgba(0,200,160,0.12);
}
.badge-stock-low {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 180, 0, 0.15);
  color: #ffb400;
  border: 1px solid rgba(255, 180, 0, 0.3);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}
.badge-out {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(255, 80, 80, 0.1);
  color: #ff6060;
  border: 1px solid rgba(255, 80, 80, 0.25);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}
.badge-in-stock {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: rgba(0, 200, 160, 0.1);
  color: var(--isk-accent);
  border: 1px solid rgba(0, 200, 160, 0.25);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

/* ---- Product detail page ---- */
/* Wrapper handles white bg + border + nav button positioning */
.product-img-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--isk-border);
}
.product-detail-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

/* ---- Image nav buttons ---- */
.img-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 22, 35, 0.72);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 7px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.18s, background 0.15s, border-color 0.15s;
}
.product-img-wrapper:hover .img-nav-btn { opacity: 1; }
.img-nav-btn:hover {
  background: rgba(0, 200, 160, 0.25);
  border-color: var(--isk-accent);
}
.img-nav-prev { left: 10px; }
.img-nav-next { right: 10px; }
.product-thumb-strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}
.product-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
  border: 2px solid var(--isk-border);
  cursor: pointer;
  transition: border-color 0.15s;
  background: #ffffff;
}
.product-thumb.active,
.product-thumb:hover {
  border-color: var(--isk-accent);
}
.back-to-store {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--isk-text-muted);
  text-decoration: none;
  margin-bottom: 1.5rem;
}
.back-to-store:hover {
  color: var(--isk-accent);
}

.product-detail-info {
  padding-left: 0;
}
@media (min-width: 768px) {
  .product-detail-info { padding-left: 1.5rem; }
}
.product-detail-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--isk-text);
  margin: 0.75rem 0;
}
.product-detail-desc {
  color: var(--isk-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.features-list li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--isk-text);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.features-list li::before {
  content: '→';
  color: var(--isk-accent);
  font-weight: 700;
  flex-shrink: 0;
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.qty-btn {
  width: 34px; height: 34px;
  background: var(--isk-bg-surface);
  border: 1px solid var(--isk-border);
  color: var(--isk-text);
  border-radius: 6px;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
  user-select: none;
}
.qty-btn:hover { border-color: var(--isk-accent); }
.qty-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  min-width: 2ch;
  text-align: center;
}
.btn-isk-buy {
  background: var(--isk-accent);
  color: #0b1623 !important;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  width: 100%;
  transition: background 0.15s;
  cursor: pointer;
  margin-bottom: 0.75rem;
  text-align: center;
}
.btn-isk-buy:hover { background: #00e6b8; }
.btn-isk-buy:disabled {
  background: var(--isk-bg-surface);
  color: var(--isk-text-muted) !important;
  cursor: not-allowed;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 0;
}
.spec-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--isk-border);
  vertical-align: top;
  white-space: nowrap;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child {
  color: var(--isk-text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
  width: 38%;
}
.spec-table td:last-child { color: var(--isk-text); }
.spec-table th {
  color: var(--isk-text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--isk-border);
  text-align: left;
}
.spec-table--cols td:first-child { width: auto; white-space: nowrap; }
.spec-table--cols td:not(:first-child),
.spec-table--cols th:not(:first-child) { text-align: right; white-space: nowrap; }
.spec-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}
.spec-card--compact {
  width: fit-content;
  min-width: 0;
}
.spec-card {
  background: var(--isk-bg-card);
  border: 1px solid var(--isk-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.spec-card-header {
  padding: 0.75rem 1rem;
  background: var(--isk-bg-surface);
  border-bottom: 1px solid var(--isk-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--isk-accent);
}
.docs-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  color: var(--isk-link);
  border-bottom: 1px solid var(--isk-border);
  font-size: 0.9rem;
}
.docs-list li:last-child a { border-bottom: none; }
.docs-list li a:hover { background: var(--isk-bg-surface); text-decoration: none; color: #80cfff; }

/* ---- Tabs (product detail) ---- */
.nav-tabs-isk {
  border-bottom: 1px solid var(--isk-border);
  margin-bottom: 1.5rem;
}
.nav-tabs-isk .nav-link {
  color: var(--isk-text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  margin-bottom: -1px;
}
.nav-tabs-isk .nav-link:hover { color: var(--isk-text); }
.nav-tabs-isk .nav-link.active {
  color: var(--isk-accent);
  border-bottom-color: var(--isk-accent);
  background: none;
}

/* ---- About / info band ---- */
.about-band {
  background: var(--isk-bg-surface);
  border-top: 1px solid var(--isk-border);
  border-bottom: 1px solid var(--isk-border);
  padding: 3.5rem 0;
}
.about-band h2 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.about-band p {
  color: var(--isk-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 600px;
}
.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,200,160,0.09);
  border: 1px solid rgba(0,200,160,0.2);
  border-radius: 2rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: var(--isk-text-muted);
  margin: 0.25rem 0.25rem 0.25rem 0;
}
.icon-pill svg { color: var(--isk-accent); flex-shrink: 0; }

/* ---- Footer ---- */
footer {
  background: var(--isk-bg);
  border-top: 1px solid var(--isk-border);
  padding: 2.5rem 0 1.5rem;
  color: var(--isk-text-muted);
  font-size: 0.85rem;
}
footer .brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--isk-accent);
  font-size: 1.1rem;
}
footer a { color: var(--isk-text-muted); }
footer a:hover { color: var(--isk-link); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-divider {
  border-color: var(--isk-border);
  margin: 1.5rem 0 1rem;
}

/* ---- Privacy policy page ---- */
.privacy-page { padding: 3rem 0 5rem; }
.privacy-page h1 { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; margin-bottom: 0.35rem; }
.privacy-page h2 { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--isk-accent); margin: 2.25rem 0 0.6rem; }
.privacy-page p, .privacy-page li { color: var(--isk-text-muted); line-height: 1.8; font-size: 0.93rem; }
.privacy-page ul { padding-left: 1.25rem; }
.privacy-page a { color: var(--isk-link); }
.last-updated { font-family: var(--font-mono); font-size: 0.78rem; color: var(--isk-text-muted); margin-bottom: 2.5rem; }
.privacy-card {
  background: var(--isk-bg-card);
  border: 1px solid var(--isk-border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  max-width: 760px;
}

/* ---- Success / cancel / 404 pages ---- */
.status-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.status-icon {
  font-size: 4rem;
  margin-bottom: 1.25rem;
  display: block;
}
.status-page h1 { font-family: var(--font-mono); font-weight: 700; }

/* ---- Loading skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--isk-bg-card) 25%, var(--isk-bg-surface) 50%, var(--isk-bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Utilities ---- */
.text-accent { color: var(--isk-accent) !important; }
.text-muted-isk { color: var(--isk-text-muted) !important; }
.bg-surface { background: var(--isk-bg-surface) !important; }
.border-isk { border-color: var(--isk-border) !important; }
.font-mono { font-family: var(--font-mono) !important; }

/* ---- Responsive tweaks ---- */
@media (max-width: 576px) {
  .hero { padding: 3.5rem 0 2.5rem; }
}
@media (max-width: 767.98px) {
  .product-card-footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

/* ---- Navbar: mobile behaviour ---- */
@media (max-width: 767.98px) {
  /* Brand collapses to "A" in Earth Orbiter */
  .navbar-isk .navbar-brand {
    font-size: 0;
    letter-spacing: 0;
  }
  .navbar-isk .navbar-brand::after {
    content: 'A';
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: normal;
  }
  /* Hide Shop / About links; cart button stays */
  .navbar-isk .navbar-nav {
    display: none !important;
  }
}

/* =============================================
   Cart
   ============================================= */

/* Nav button */
.cart-nav-btn {
  background: none;
  border: 1px solid var(--isk-border);
  border-radius: 8px;
  color: var(--isk-text-muted);
  padding: 0.38rem 0.55rem;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  transition: border-color 0.15s, color 0.15s;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.cart-nav-btn:hover {
  border-color: var(--isk-accent);
  color: var(--isk-text);
}
.cart-count-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--isk-accent);
  color: #0b1623;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  pointer-events: none;
}

/* Overlay */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cart-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 100vw;
  background: var(--isk-bg-card);
  border-left: 1px solid var(--isk-border);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);
}
.cart-drawer.open {
  transform: translateX(0);
}
body.cart-open { overflow: hidden; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--isk-border);
  flex-shrink: 0;
}
.cart-drawer-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--isk-text);
  letter-spacing: 0.5px;
}
.cart-close-btn {
  background: none;
  border: none;
  color: var(--isk-text-muted);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.cart-close-btn:hover { color: var(--isk-text); }

/* Items list */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 220px;
  gap: 0.9rem;
  color: var(--isk-text-muted);
  font-size: 0.88rem;
}
.cart-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--isk-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--isk-bg-surface);
  border: 1px solid var(--isk-border);
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--isk-bg-surface);
}
.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--isk-text);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}
.cart-item-name:hover { color: var(--isk-link); text-decoration: none; }
.cart-item-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--isk-accent);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--isk-text-muted);
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  margin-left: auto;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.cart-item-remove:hover { color: #ff6060; }

/* Footer */
.cart-drawer-footer {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--isk-border);
  flex-shrink: 0;
  background: var(--isk-bg-surface);
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--isk-text-muted);
}
.cart-subtotal-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--isk-text);
}
.cart-secure-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--isk-text-muted);
  margin: 0.6rem 0 0;
  justify-content: center;
}
