:root {
    --ink: #15211f;
    --muted: #6a7772;
    --paper: #f5f6f1;
    --card: #ffffff;
    --line: #dce2dc;
    --accent: #c6f05a;
    --accent-dark: #789b13;
    --orange: #ff7348;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(245,246,241,.92); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 78px; }
.brand { color: var(--ink); font-size: 24px; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.brand img { display: block; width: auto; max-width: 220px; height: 42px; object-fit: contain; }
.brand span { color: var(--accent-dark); }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-header nav { display: none; }
.main-content { padding: 42px 0 56px; }
.hero { display: none; }
.eyebrow { margin: 0 0 14px; color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1 { max-width: 740px; margin: 0; font-size: clamp(42px, 7vw, 76px); line-height: .98; letter-spacing: -.075em; }
h1 span { color: var(--accent-dark); }
.hero-copy { max-width: 590px; margin: 25px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.hero-mark { color: var(--accent-dark); font-size: 120px; font-weight: 200; line-height: .7; transform: rotate(-15deg); }
.search-box { padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 18px 45px rgba(44,61,39,.06); }
.search-box label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.search-row { display: flex; gap: 12px; }
.search-row input { min-width: 0; flex: 1; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: inherit; outline: none; }
.search-row input:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(198,240,90,.3); }
button { padding: 0 29px; border: 0; border-radius: 10px; background: var(--ink); color: white; font: inherit; font-weight: 750; cursor: pointer; }
.search-hints { display: flex; gap: 20px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.search-loading { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.loading-spinner { width: 15px; height: 15px; flex: 0 0 15px; border: 2px solid rgba(120,155,19,.25); border-top-color: var(--accent-dark); border-radius: 50%; animation: search-spin .75s linear infinite; }
button.is-loading { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.is-loading::before { content: ""; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.35); border-top-color: white; border-radius: 50%; animation: search-spin .75s linear infinite; }
@keyframes search-spin { to { transform: rotate(360deg); } }
.result-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 42px 0 16px; }
h2 { margin: 0; font-size: 27px; letter-spacing: -.05em; }
.result-query { padding: 9px 12px; border-radius: 99px; background: #e7eddc; color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.product-list { display: grid; gap: 12px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.product-main { display: flex; gap: 14px; padding: 16px 20px 10px; }
.product-image { display: block; flex: 0 0 56px; width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.image-preview-trigger { display: block; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: zoom-in; }
.product-icon { display: grid; flex: 0 0 64px; width: 64px; height: 64px; place-items: center; border-radius: 10px; background: var(--accent); font-size: 19px; }
.product-meta { margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h3 { margin: 0; font-size: 18px; letter-spacing: -.04em; }
.part-numbers { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 7px; color: var(--muted); font-size: 11px; }
.part-numbers b { color: var(--ink); }
.compatibility { margin: 0 20px 14px; padding: 9px 12px; border-radius: 7px; background: var(--paper); color: var(--muted); font-size: 11px; }
.offers { border-top: 1px solid var(--line); }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 140px 1px 310px; align-items: center; gap: 14px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.offer-row:last-child { border-bottom: 0; }
.supplier { display: flex; align-items: center; gap: 8px; }
.supplier strong { font-size: 12px; }
.supplier-logo { display: block; width: 78px; max-height: 24px; object-fit: contain; object-position: left center; }
.supplier small { color: var(--muted); font-size: 10px; }
.supplier-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.stock { display: grid; gap: 3px; font-size: 12px; font-weight: 700; }
.stock small { font-size: 10px; font-weight: 600; opacity: .78; }
.stock.available { color: var(--accent-dark); }
.stock.unavailable { color: #a45c50; }
.price { white-space: nowrap; font-size: 16px; font-weight: 850; letter-spacing: -.04em; }
.go-link { visibility: hidden; pointer-events: none; color: var(--accent-dark); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.go-link-placeholder { display: block; width: 1px; height: 1px; }
.cart-form { display: flex; align-items: center; justify-content: flex-end; margin: 0; }
.quantity-control { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.quantity-control input { width: 50px; min-height: 36px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; text-align: center; }
.add-to-cart { width: 190px; min-height: 36px; padding: 0 10px; background: var(--accent); color: var(--ink); font-size: 10px; white-space: nowrap; }
.add-to-cart:disabled { cursor: not-allowed; opacity: .45; }
.cart-message { margin-top: 18px; padding: 13px 16px; border-radius: 10px; background: #e7eddc; color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.cart-counts { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 18px; color: var(--muted); font-size: 13px; }
.cart-counts span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.cart-count-link { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: inherit; text-decoration: none; }
.cart-count-link:hover { border-color: var(--accent); color: var(--ink); }
.cart-heading { margin-top: 34px; }
.back-link { color: var(--accent-dark); font-size: 12px; font-weight: 800; text-decoration: none; }
.cart-detail-list { display: grid; gap: 12px; margin-top: 24px; }
.cart-detail-card { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cart-detail-image { width: 90px; height: 90px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.image-preview-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 32px; background: rgba(10, 20, 18, .82); cursor: zoom-out; }
.image-preview-modal[hidden] { display: none; }
.image-preview-modal img { max-width: min(90vw, 900px); max-height: 88vh; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 20px 70px rgba(0, 0, 0, .35); cursor: default; }
.image-preview-close { position: absolute; top: 20px; right: 24px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.modal-open { overflow: hidden; }
.cart-detail-info h2 { margin: 0 0 8px; font-size: 16px; }
.cart-stock { display: block; margin-top: 8px; color: var(--accent-dark); font-weight: 700; }
.cart-detail-quantity { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.cart-detail-price { display: grid; gap: 4px; justify-items: end; white-space: nowrap; }
.cart-detail-price strong { font-size: 18px; }
.cart-detail-price small { color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
    .cart-detail-card { grid-template-columns: 58px 1fr; }
    .cart-detail-image { width: 58px; height: 58px; }
    .cart-detail-quantity, .cart-detail-price { grid-column: 2; justify-self: start; }
    .cart-detail-price { justify-items: start; }
}
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 80px; }
.intro-grid > div { min-height: 190px; padding: 24px; border-top: 2px solid var(--accent); background: var(--card); }
.feature-number { color: var(--accent-dark); font-size: 12px; font-weight: 800; }
.intro-grid h3 { margin-top: 34px; }
.intro-grid p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.empty-state { display: grid; gap: 7px; margin-top: 20px; padding: 35px; border: 1px dashed #bdc9bd; border-radius: 14px; color: var(--muted); }
.empty-state strong { color: var(--ink); }
.progressive-results { display: grid; gap: 12px; margin-top: 24px; }
.progressive-product-card { animation: progressive-card-in .2s ease-out; }
.progressive-loading { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--accent-dark); font-size: 12px; font-weight: 700; }
.progressive-error { padding: 14px 16px; border: 1px solid #e5c7c0; border-radius: 10px; background: #fff6f3; color: #a45c50; font-size: 12px; font-weight: 700; }
.progressive-offer-status { color: var(--muted); font-size: 11px; font-weight: 700; }
@keyframes progressive-card-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.footer { padding: 22px 0 40px; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) {
    .container { width: min(100% - 28px, 1120px); }
    .main-content { padding-top: 42px; }
    .hero-mark { display: none; }
    .search-row { flex-direction: column; }
    button { min-height: 50px; }
    .result-heading { align-items: start; flex-direction: column; margin-top: 48px; }
    .offer-row { grid-template-columns: 1fr auto; gap: 10px; }
    .stock { grid-column: 1; }
    .price { grid-column: 2; grid-row: 1 / span 2; }
    .go-link { grid-column: 1; }
    .cart-form { display: block; grid-column: 1 / -1; }
    .quantity-control { justify-content: space-between; width: 100%; margin: 0 0 8px; }
    .add-to-cart { width: 100%; }
    .intro-grid { grid-template-columns: 1fr; margin-top: 48px; }
}
