/* INIBOX Matches, custom OpenCart theme
   STRICT palette from the official Pinecone logo: brand blue #2D79E9 on white.
   No violet, no gold. Blue + white + light-blue tints + dark ink text. */

:root {
  --brand: #2D79E9;
  --brand-dark: #1B5FCB;
  --brand-soft: #EAF1FD;
  --brand-tint: #D6E6FB;
  --white: #FFFFFF;
  --ink: #16243D;
  --muted: #5B6B85;
  --line: #E2E9F3;
  --bg: #F5F8FD;
  --card: #FFFFFF;
  --ok: #1c7a3a;            /* in-stock */
  --warn: #D6453E;          /* low-stock / urgency only, functional, not decorative */
  --radius: 14px;
  --shadow: 0 8px 30px rgba(45, 121, 233, .10);
  --shadow-sm: 0 2px 10px rgba(45, 121, 233, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  color: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--brand); font-weight: 800; font-size: 20px; }
.site-logo:hover { text-decoration: none; }
.site-logo img { height: 38px; width: auto; }
.site-logo .word { color: var(--brand); }
.site-search { flex: 1; max-width: 460px; }
.site-search input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; background: var(--bg);
}
.site-search input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-actions a { color: var(--ink); font-size: 14px; font-weight: 600; }
.cart-pill {
  background: var(--brand); color: #fff; font-weight: 700;
  padding: 8px 14px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center;
}
.cart-pill:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }

/* ---------- Mega menu ---------- */
.megamenu { background: var(--brand); border-bottom: 1px solid rgba(255,255,255,.12); }
.megamenu__bar { padding: 0; }
.megamenu__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.megamenu__item { position: relative; }
.megamenu__trigger {
  background: none; border: none; cursor: pointer; color: #fff; font: inherit;
  font-size: 14px; font-weight: 600; padding: 12px 16px; display: inline-flex; align-items: center; gap: 6px; opacity: .92;
}
.megamenu__trigger:hover, .megamenu__item:hover .megamenu__trigger { background: rgba(255,255,255,.15); color: #fff; opacity: 1; }
.megamenu__trigger .coin { opacity: .8; font-weight: 500; }
.megamenu__trigger .caret { font-size: 10px; }
.megamenu__panel {
  display: none;
  position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--white);
  border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: var(--shadow);
  z-index: 60;
}
.megamenu__item:hover .megamenu__panel { display: block; }
.megamenu__panel-inner { padding: 14px 16px; }
.megamenu__panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 0 0 8px; }
.megamenu__panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.megamenu__panel a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.megamenu__panel a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .05s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--brand); color: #fff; }      /* primary = brand blue */
.btn-gold:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-violet { background: var(--white); color: var(--brand); border-color: var(--brand); }  /* secondary outline */
.btn-violet:hover { background: var(--brand-soft); text-decoration: none; color: var(--brand); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--brand); }
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section--tight { padding: 28px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--brand); }
.section-title { font-size: 28px; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brand) 0%, #1b3f86 100%);
  color: #fff; padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero h1 { color: #fff; font-size: 38px; max-width: 16ch; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero p { color: #fff; font-size: 17px; max-width: 52ch; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero .cta-row { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-tint); }
.product-card__media { aspect-ratio: 1 / 1; background: var(--brand-soft); display: grid; place-items: center; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__name { font-weight: 700; font-size: 16px; color: var(--ink); }
.product-card__price { font-size: 20px; font-weight: 800; color: var(--brand); }
.product-card__foot { margin-top: auto; display: flex; gap: 8px; align-items: center; }

/* ---------- Stock + urgency ---------- */
.stock-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.stock-badge--in { background: var(--brand-soft); color: var(--brand); }
.stock-badge--low { background: #FDECEB; color: var(--warn); }
.stock-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.countdown {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-soft); border: 1px solid var(--brand-tint); color: var(--brand-dark);
  padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 13px;
}
.countdown__clock { display: inline-flex; gap: 4px; font-variant-numeric: tabular-nums; }
.countdown__unit { background: var(--brand); color: #fff; padding: 3px 7px; border-radius: 6px; min-width: 30px; text-align: center; }
.countdown__unit small { display: block; font-size: 9px; font-weight: 600; opacity: .85; text-transform: uppercase; }
.countdown--ended { background: #f0f0f4; border-color: var(--line); color: var(--muted); }

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pdp__media { background: var(--brand-soft); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.pdp__media img { width: 100%; object-fit: contain; }
.pdp__name { font-size: 30px; }
.pdp__price { font-size: 30px; font-weight: 800; color: var(--brand); margin: 8px 0; }
.pdp__buy { display: flex; gap: 12px; align-items: center; margin: 18px 0; flex-wrap: wrap; }
.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff;
}
.qty button { width: 38px; height: 44px; border: 0; background: #fff; font-size: 18px; cursor: pointer; color: var(--brand); }
.qty button:hover { background: var(--brand-soft); }
.qty input { width: 54px; height: 44px; border: 0; text-align: center; font-size: 16px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table th { color: var(--muted); font-weight: 600; width: 42%; }
.spec-table td { font-weight: 600; }
.spec-table tr th[style] { background: var(--brand-soft) !important; color: var(--brand) !important; }

/* ---------- Trust strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.trust-item .ic { font-size: 22px; }
.trust-item h4 { margin: 0 0 2px; font-size: 15px; color: var(--ink); }
.trust-item p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C7D4E8; margin-top: 56px; padding: 44px 0 24px; }
.site-footer a { color: #C7D4E8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 28px; padding-top: 16px; font-size: 13px; color: #8FA3C2; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Notice / alert ---------- */
.notice { background: var(--brand-soft); border: 1px solid var(--brand-tint); color: var(--brand-dark); padding: 12px 16px; border-radius: 10px; font-size: 14px; }

/* ---------- Sticky scam-alert banner (every page) ---------- */
.scam-banner {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand); color: #fff;
  font-size: 13px; font-weight: 700; text-align: center;
  padding: 9px 14px; letter-spacing: .01em;
}
.scam-banner a { color: #fff; text-decoration: underline; }

/* In-page warning box */
.scam-alert {
  background: var(--brand-soft);
  border: 2px solid var(--brand);
  color: var(--brand-dark);
  padding: 16px 18px;
  border-radius: 12px;
  font-size: 15px;
  margin: 18px 0;
}
.scam-alert b { color: var(--brand); text-transform: uppercase; }

/* ---------- Social links ---------- */
.social-links { display: inline-flex; gap: 10px; align-items: center; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-tint);
}
.social-links a:hover { background: var(--brand); color: #fff; text-decoration: none; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social { margin-top: 12px; }

/* ---------- Auth (signup / login) ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 56px 20px 80px; background: var(--bg); }
.auth-card { width: 100%; max-width: 460px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 32px; }
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.auth-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: var(--white); font-family: inherit; }
.auth-form input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.auth-form small { font-weight: 400; color: var(--muted); font-size: 12px; }
.auth-form .btn { margin-top: 4px; }
.auth-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.notice--err { background: #FDECEB; color: #B4231A; border: 1px solid #F6C6C1; padding: 10px 14px; border-radius: 10px; font-size: 14px; }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; overflow: hidden; border-radius: 16px; }
.hero-slides { display: flex; transition: transform .5s ease; }
.hero-slide { min-width: 100%; display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.22); border-radius: 16px; padding: 18px 20px; }
.hero-slide img.hero-slide__img { width: 110px; height: 110px; object-fit: contain; background: #fff; border-radius: 12px; padding: 8px; flex-shrink: 0; }
.hero-slide__body { color: #fff; min-width: 0; }
.hero-slide__body .xmr { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13px; }
.hero-slide__body .xmr img { width: 20px; height: 20px; }
.hero-slide__body h3 { color: #fff; font-size: 18px; margin: 6px 0 4px; }
.hero-slide__body p { color: #fff; opacity: .92; font-size: 13px; margin: 0; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: #fff; }

/* ---------- Limit rule banner ---------- */
.limit-rule { background: var(--brand-soft); border: 1px solid var(--brand-tint); color: var(--brand-dark); padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-top: 18px; }
.limit-rule b { color: var(--brand); }

/* ---------- Product card link + badges ---------- */
.product-card__link { text-decoration: none; color: inherit; display: block; }
.product-card__link:hover { text-decoration: none; }
.xmr-badge, .coin-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; background: #FFF3E0; color: #B26A00; padding: 6px 12px; border-radius: 999px; }
.xmr-badge img { width: 22px; height: 22px; }
.tag { font-size: 11px; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.link-btn { background: none; border: none; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* ---------- PDP additions ---------- */
.pdp__info h1 { font-size: 28px; margin: 6px 0 10px; }
.specs { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.specs li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: 15px; }
.specs li span { color: var(--muted); }
.specs li b { font-weight: 700; }
.pdp__buy label { font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Cart table ---------- */
.cart-table { width: 100%; margin: 18px 0; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 2px solid var(--line); padding: 10px; }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-name { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.cart-name:hover { color: var(--brand); }
.cart-thumb { width: 56px; height: 56px; object-fit: contain; background: var(--brand-soft); border-radius: 10px; padding: 4px; }
.qty-input { border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.cart-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0; flex-wrap: wrap; }
.cart-total { font-size: 20px; font-weight: 800; }
.cart-checkout { margin-top: 8px; }

/* ---------- Cart pill count ---------- */
.cart-pill { position: relative; }
.cart-count { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center; background: #fff; color: var(--brand); border-radius: 999px; font-size: 11px; font-weight: 800; margin-left: 6px; padding: 0 5px; }

/* ---------- Profitability calculator ---------- */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-sm); }
.calc__head { margin-bottom: 18px; }
.calc__sub { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 70ch; }
.calc__live { font-size: 14px; margin-top: 10px; color: var(--ink); }
.calc__live b { color: var(--brand); font-size: 16px; }
.calc__live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1DB954; margin: 0 4px; animation: livePulse 1.6s infinite; vertical-align: middle; }
.calc__live-note { font-size: 12px; color: var(--muted); }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.calc__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }
.calc__inputs { display: grid; gap: 14px; align-content: start; }
.calc__inputs label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.calc__inputs input { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: #fff; font-family: inherit; }
.calc__inputs input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.calc__results { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc__card { background: var(--brand-soft); border: 1px solid var(--brand-tint); border-radius: 12px; padding: 16px; }
.calc__card b { display: block; font-size: 24px; color: var(--brand); margin-top: 4px; }
.calc__card--profit { background: #E7F6EC; border-color: #B7E4C7; }
.calc__card--profit b { color: #1B7F3B; }
.calc__label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.calc__note { grid-column: 1 / -1; font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }

/* ---------- Trust + pools ---------- */
.trust { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-sm); }
.trust-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 8px; }
.trust-badge { display: inline-flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.trust-badge--tp .tp-stars { color: #00B67A; font-size: 22px; letter-spacing: 2px; }
.trust-badge--tp .tp-text { font-size: 14px; color: var(--ink); }
.trust-badge--tp .tp-text b { color: #00B67A; }
.trust-badge--kx .kx-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg,#1b1f2a,#3a4156); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.trust-badge--kx .tp-text { font-size: 14px; }
.trust-badge--kx .tp-text b { color: var(--brand); }
.trust-pools-label { font-size: 13px; color: var(--muted); font-weight: 600; margin: 18px 0 10px; }
.pool-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.pool-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-soft); border: 1px solid var(--brand-tint); color: var(--ink); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; }
.pool-chip .dot { width: 9px; height: 9px; border-radius: 50%; }

@media (max-width: 860px) {
  .calc__grid { grid-template-columns: 1fr; }
  .calc__results { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 30px; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .site-header__bar { flex-wrap: wrap; }
  .site-search { order: 3; max-width: none; flex-basis: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
