: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;
    --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;
}
.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;
}

/* Product layout */

.product-layout {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
    gap:2rem;
    align-items:flex-start;
}

.breadcrumbs {
    font-size:0.8rem;
    color:var(--text-muted);
    margin-bottom:0.7rem;
}

.breadcrumbs a {
    color:var(--probit-blue);
    text-decoration:none;
}
.breadcrumbs a:hover { text-decoration:underline; }

.product-title { font-size:1.8rem; font-weight:700; margin-bottom:0.5rem; }
.product-tagline { font-size:0.95rem; color:var(--text-muted); margin-bottom:0.9rem; }

.product-badges {
    display:flex; flex-wrap:wrap; gap:0.5rem;
    margin-bottom:1rem;
}
.badge {
    font-size:0.75rem;
    padding:0.25rem 0.6rem;
    border-radius:999px;
    border:1px solid var(--border-subtle);
    background:#f9fafb;
    color:var(--text-muted);
}
.badge strong { color:var(--text-main); }

.price-block {
    margin-bottom:1rem;
    font-size:0.95rem;
}
.price-main {
    font-size:1.4rem;
    font-weight:700;
    color:var(--probit-blue-dark);
}
.price-note {
    font-size:0.78rem;
    color:var(--text-muted);
    margin-top:0.15rem;
}

.primary-actions {
    display:flex;
    flex-wrap:wrap;
    gap:0.7rem;
    margin-bottom:1rem;
}

.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;
}
.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); }

.summary-list {
    font-size:0.86rem;
    color:var(--text-muted);
    margin-bottom:1.2rem;
}
.summary-list li { margin-bottom:0.35rem; }

.info-section {
    margin-top:1.6rem;
    padding-top:1.3rem;
    border-top:1px solid #e5e7eb;
    font-size:0.9rem;
}

.info-section h2 {
    font-size:1.05rem;
    margin-bottom:0.7rem;
}

.info-columns {
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);
    gap:1.4rem;
}

.parts-list ul { list-style:disc; margin-left:1.2rem; font-size:0.86rem; }
.parts-list li { margin-bottom:0.25rem; }

.spec-table {
    width:100%;
    border-collapse:collapse;
    font-size:0.86rem;
}
.spec-table th, .spec-table td {
    padding:0.4rem 0.2rem;
    border-bottom:1px solid #e5e7eb;
    text-align:left;
}
.spec-table th { width:40%; color:var(--text-muted); font-weight:500; }

/* Image area */
.image-card {
    border-radius:1.3rem;
    border:1px solid var(--border-subtle);
    background:#f9fafb;
    padding:0.9rem;
    margin-bottom:1rem;
}
.image-placeholder {
    width:100%;
    height:260px;
    border-radius:1rem;
    background:linear-gradient(135deg,#e5f0ff,#f9fafb);
    display:flex; align-items:center; justify-content:center;
    color:var(--text-muted);
    font-size:0.86rem;
}
.image-note {
    font-size:0.78rem;
    color:var(--text-muted);
    margin-top:0.4rem;
}

.secondary-box {
    border-radius:1.2rem;
    border:1px solid #e5e7eb;
    background:#ffffff;
    padding:0.9rem;
    font-size:0.84rem;
    color:var(--text-muted);
}
.secondary-box strong { color:var(--text-main); }

footer {
    margin-top:1.6rem;
    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); }

/* Cart panel reused from index */
.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); }

@media (max-width:880px) {
    .shell { padding:1.4rem 1.25rem 1.2rem; border-radius:1.4rem; }
    header { flex-direction:column; align-items:flex-start; }
    .product-layout { grid-template-columns:minmax(0,1fr); }
}

@media (max-width:480px) {
    body { padding:1rem; }
    .primary-actions { flex-direction:column; align-items:stretch; }
    .info-columns { grid-template-columns:minmax(0,1fr); }
    footer { 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;
  }
}