:root {
    --probit-blue: #0066cc;
    --probit-blue-soft: rgba(0, 102, 204, 0.08);
    --probit-blue-dark: #004c99;
    --bg-main: #f4f6fb;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --border-subtle: #d1d5db;
    --radius-xl: 1.5rem;
    --radius-lg: 1rem;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
    background:
    radial-gradient(circle at 10% 0%, rgba(0, 102, 204, 0.08), transparent 55%),
    radial-gradient(circle at 90% 100%, rgba(15, 118, 110, 0.06), transparent 55%),
    var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    padding: 1.5rem;
}

.wrapper {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto 4rem;
}

.shell {
    background: var(--bg-card);
    border-radius: 2rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem 1.75rem 1.5rem;
    position: relative;
    overflow: hidden;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 1rem;
    background: #ffffff;
    border: 2px solid var(--probit-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brand-logo svg {
    width: 32px;
    height: 32px;
    fill: var(--probit-blue);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--probit-blue);
}

.brand-tagline {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chip {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--probit-blue-soft);
    white-space: nowrap;
}

.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--probit-blue);
}

.cart-button {
    border-radius: 999px;
    border: 1px solid var(--probit-blue);
    background: #ffffff;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: var(--probit-blue);
    transition: background 0.12s ease, transform 0.12s ease;
}

.cart-button:hover {
    background: var(--probit-blue-soft);
    transform: translateY(-1px);
}

.cart-count-pill {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--probit-blue);
    color: #ffffff;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.content {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
}

.left h1 {
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 0.8rem;
}

.left h1 span.accent {
    color: var(--probit-blue);
}

.left h1 span.highlight {
    background: linear-gradient(to right, #0066cc, #0ea5e9);
    -webkit-background-clip: text;
    color: transparent;
}

.left p.lead {
    color: var(--text-muted);
    max-width: 32rem;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.pill {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f9fafb;
}

.pill strong {
    color: var(--text-main);
    font-weight: 600;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 0.8rem;
}

.btn-primary,
.btn-ghost {
    border-radius: 999px;
    padding: 0.75rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
    will-change: transform, box-shadow;
}

.btn-primary {
    background: var(--probit-blue);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 102, 204, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--probit-blue-dark);
}

.btn-ghost {
    background: #ffffff;
    color: var(--probit-blue);
    border-color: var(--probit-blue);
}

.btn-ghost:hover {
    background: var(--probit-blue-soft);
}

.note-line {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.note-line span {
    color: var(--probit-blue);
    font-weight: 500;
}

.form-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    padding: 1.2rem 1.25rem 1.3rem;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
    radial-gradient(circle at 0 0, rgba(0, 102, 204, 0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(148, 163, 184, 0.22), transparent 70%);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

.form-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.form-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.input-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #f9fafb;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

input[type="email"]::placeholder {
    color: rgba(148, 163, 184, 0.9);
}

input[type="email"]:focus {
    border-color: var(--probit-blue);
    box-shadow: 0 0 0 1px rgba(0, 102, 204, 0.4);
    background: #ffffff;
}

.btn-submit {
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    border: 1px solid transparent;
    background: #0ea5e9;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-submit:hover {
    transform: translateY(-1px);
    background: #0284c7;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
}

.helper-line {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.helper-line span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.helper-line span strong {
    color: var(--probit-blue-dark);
}

.helper-line a {
    color: var(--probit-blue);
    text-decoration: none;
    font-weight: 500;
}

.helper-line a:hover {
    text-decoration: underline;
}

.robot-orbit {
    position: absolute;
    inset: -40px -40px auto auto;
    width: 180px;
    height: 180px;
    pointer-events: none;
    opacity: 0.25;
}

.robot-orbit svg {
    width: 100%;
    height: 100%;
}

footer {
    margin-top: 1.3rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    padding-bottom: 1px;
}

.footer-links a:hover {
    color: var(--probit-blue);
    border-bottom-color: rgba(148, 163, 184, 0.7);
}

/* ---------- Products section ---------- */

.shop-section {
    margin-top: 2.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.shop-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.shop-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 420px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

@media (max-width: 980px) {
    .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .product-grid {
    grid-template-columns: minmax(0, 1fr);
    }
}

.product-card {
    border-radius: 1.1rem;
    border: 1px solid var(--border-subtle);
    background: #f9fafb;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    border-color: rgba(0, 102, 204, 0.4);
}

.product-link {
    display: block;
    color: inherit;
    text-decoration: none;
    padding-bottom: 0.4rem;
}

.product-card:hover .product-name {
    color: var(--probit-blue);
}

.product-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.product-name {
    font-size: 0.98rem;
    font-weight: 600;
}

.product-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.difficulty-pill {
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
}

.product-price {
    font-weight: 700;
    color: var(--probit-blue-dark);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.product-actions {
    margin-top: 0.3rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.btn-add {
    border-radius: 999px;
    border: 1px solid var(--probit-blue);
    background: var(--probit-blue);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: background 0.12s ease, transform 0.12s ease;
}

.btn-add:hover {
    background: var(--probit-blue-dark);
    transform: translateY(-1px);
}

.kit-includes {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.kit-includes span {
    color: var(--text-main);
    font-weight: 500;
}

/* ---------- Cart panel ---------- */

.cart-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 30;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.2s ease-out;
    z-index: 40;
    display: flex;
    flex-direction: column;
}

.cart-open .cart-panel-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.cart-open .cart-panel {
    transform: translateX(0);
}

.cart-header {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.cart-title {
    font-size: 1rem;
    font-weight: 700;
}

.cart-close-btn {
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: #f9fafb;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
    color: var(--text-muted);
}

.cart-body {
    padding: 0.9rem 1.1rem;
    flex: 1;
    overflow-y: auto;
    font-size: 0.85rem;
}

.cart-empty {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-top: 0.8rem;
}

.cart-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.6rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
}

.cart-item-name {
    font-weight: 600;
    flex: 1;
}

.cart-item-price {
    font-weight: 600;
    color: var(--probit-blue-dark);
    white-space: nowrap;
}

.cart-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 0.15rem 0.4rem;
    background: #f9fafb;
}

.qty-btn {
    border: none;
    background: none;
    padding: 0 0.2rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
}

.qty-value {
    min-width: 18px;
    text-align: center;
    font-weight: 600;
    color: var(--text-main);
}

.cart-remove-btn {
    border: none;
    background: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.78rem;
    text-decoration: underline;
}

.cart-footer {
    border-top: 1px solid #e5e7eb;
    padding: 0.85rem 1.1rem 1.1rem;
    font-size: 0.86rem;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.cart-total {
    font-weight: 700;
    font-size: 0.94rem;
}

.btn-checkout {
    margin-top: 0.7rem;
    width: 100%;
    border-radius: 999px;
    border: 1px solid var(--probit-blue);
    background: var(--probit-blue-soft);
    color: var(--probit-blue-dark);
    padding: 0.6rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: not-allowed;
}

.checkout-note {
    margin-top: 0.4rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ---------- Responsive tweaks ---------- */

@media (max-width: 800px) {
    .shell {
    padding: 1.4rem 1.25rem 1.2rem;
    border-radius: 1.4rem;
    }

    header {
    flex-direction: column;
    align-items: flex-start;
    }

    .content {
    grid-template-columns: minmax(0, 1fr);
    }

    .form-card {
    margin-top: 0.4rem;
    }

    footer {
    flex-direction: column;
    align-items: flex-start;
    }
}

@media (max-width: 480px) {
    body {
    padding: 1rem;
    }

    .cta-row {
    flex-direction: column;
    align-items: stretch;
    }

    .input-row {
    flex-direction: column;
    }

    .brand-name {
    font-size: 1.3rem;
    }

    .shop-header {
    flex-direction: column;
    align-items: flex-start;
    }
}

/* --- Top navigation --- */

.header-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.main-nav a:hover {
  color: var(--text-main);
  border-bottom-color: rgba(0, 102, 204, 0.25);
}

.main-nav a.active {
  color: var(--probit-blue);
  border-bottom-color: var(--probit-blue);
}

/* Responsive tweaks for nav */
@media (max-width: 800px) {
  .header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 0.9rem;
  }
}