/* Encrypted IT Shop — same design tokens as encryptedit.ae */
:root {
  --bg: #0A0C10;
  --surface: #12161F;
  --surface-2: #171C27;
  --border: #232838;
  --text: #E7EAF0;
  --text-muted: #8891A3;
  --text-faint: #545E72;
  --brass: #C9A15A;
  --brass-dim: #8A6F3E;
  --cyan: #4FB8C4;
  --cyan-dim: #2C6E76;
  --danger: #C4614F;
  --ok: #5FB37B;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'Inter', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
code { font-family: var(--font-mono); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.small { font-size: .875rem; }
.center { text-align: center; }
::selection { background: var(--brass); color: var(--bg); }

.grid-backdrop {
  position: absolute; inset: 0 0 auto 0; height: 760px; pointer-events: none; z-index: 0; opacity: .28;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Header (mirrors main site) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 12, 16, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.banner { background: var(--brass); color: var(--bg); text-align: center; font-family: var(--font-mono); font-size: 13px; padding: 7px 16px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: .3px; }
.logo b { color: var(--brass); font-weight: 600; }
.logo-mark { width: 22px; height: 28px; object-fit: contain; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--text-muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { font-family: var(--font-mono); font-size: 13px; color: var(--brass); border: 1px solid var(--brass-dim); border-radius: 2px; padding: 10px 18px; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s; }
.nav-cta:hover { background: var(--brass); color: var(--bg); }
.badge { background: var(--brass); color: var(--bg); border-radius: 2px; font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.nav-cta:hover .badge { background: var(--bg); color: var(--brass); }

main.wrap { padding-top: 72px; padding-bottom: 96px; min-height: 60vh; z-index: 1; }

/* ---------- Shared bits ---------- */
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.eyebrow::before { content: "— "; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; font-weight: 600; background: var(--brass); color: var(--bg); border: 1px solid var(--brass); border-radius: 2px; padding: 15px 26px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: #d8b26c; border-color: #d8b26c; }
.btn:disabled { background: var(--surface-2); border-color: var(--border); color: var(--text-faint); cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); font-weight: 400; }
.btn-outline:hover { background: transparent; border-color: var(--text-muted); color: var(--text); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--text-muted); cursor: pointer; font-family: var(--font-mono); font-size: 12px; }
.link-btn:hover { color: var(--danger); }
select, input[type=number], input[type=text], input[type=email], input[type=search], textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 2px; padding: 12px 14px;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--brass-dim); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238891A3' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

.alert { border: 1px solid var(--border); border-left: 3px solid var(--cyan); background: var(--surface); padding: 14px 18px; margin-bottom: 24px; font-size: 15px; border-radius: 2px; }
.alert-success { border-left-color: var(--ok); }
.alert-error { border-left-color: var(--danger); }

/* ---------- Hero ---------- */
.hero { padding: 24px 0 48px; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.01em; max-width: 880px; }
.hero p { color: var(--text-muted); font-size: 17px; max-width: 620px; margin: 0; }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.search { display: flex; flex: 0 1 380px; }
.search input { flex: 1; min-width: 0; border-right: 0; }
.search .btn { padding: 12px 18px; }

/* ---------- Toolbar / category tabs ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 2px; padding: 9px 16px; transition: all .2s; }
.cat-tab:hover { color: var(--text); border-color: var(--text-faint); }
.cat-tab.active { color: var(--bg); background: var(--brass); border-color: var(--brass); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.product-card { background: var(--surface); display: flex; flex-direction: column; transition: background .2s; position: relative; }
.product-card:hover { background: var(--surface-2); }
.product-card:hover h3 { color: var(--brass); }
.product-card.is-soldout { opacity: .55; }
.product-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--border); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-img img { transform: scale(1.03); }
.img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 20%, #1d2433 0, var(--surface-2) 60%); }
.img-fallback span { font-family: var(--font-display); font-size: 64px; font-weight: 600; color: var(--brass-dim); }
.tag { position: absolute; top: 12px; left: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; background: var(--bg); color: var(--text); border: 1px solid var(--border); padding: 4px 10px; border-radius: 2px; }
.tag-brass { background: var(--brass); color: var(--bg); border-color: var(--brass); }
.product-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-body .eyebrow { font-size: 11px; margin-bottom: 8px; }
.product-body h3 { font-size: 19px; margin: 0 0 6px; transition: color .2s; }
.product-body p { color: var(--text-muted); font-size: 14px; margin: 0 0 14px; }
.price { font-family: var(--font-mono); font-weight: 600; font-size: 16px; margin-top: auto; color: var(--text); }
.price s { color: var(--text-faint); font-weight: 400; font-size: .85em; margin-left: 8px; }
.price-lg { font-size: 28px; margin: 6px 0 2px; }

/* ---------- Product page ---------- */
.breadcrumbs { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 28px; letter-spacing: .04em; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brass); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.product-detail-img { border: 1px solid var(--border); background: var(--surface); aspect-ratio: 1 / 1; overflow: hidden; }
.product-detail-img img, .product-detail-img .img-fallback { width: 100%; height: 100%; object-fit: cover; }
.product-detail-img .img-fallback span { font-size: 140px; }
.product-detail h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.lead { color: var(--text-muted); font-size: 17px; }
.facts { list-style: none; padding: 20px 0; margin: 22px 0; display: grid; gap: 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts li { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); padding-left: 22px; position: relative; }
.facts li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); }
.add-form { display: flex; gap: 12px; align-items: flex-end; margin: 8px 0 28px; }
.qty { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); gap: 6px; }
.qty input { width: 84px; padding: 14px; }
.description { color: var(--text-muted); font-size: 15px; }
.section-title { margin: 80px 0 24px; font-size: 28px; }

/* ---------- Cart ---------- */
.page-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 28px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cart-list { width: 100%; border: 1px solid var(--border); }
.cart-row { width: 100%; display: grid; grid-template-columns: 72px 1fr 84px 130px auto; gap: 18px; align-items: center; background: var(--surface); padding: 16px; border-bottom: 1px solid var(--border); }
.cart-row:last-child { border-bottom: 0; }
.cart-row .thumb { width: 72px; height: 72px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.cart-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-row .thumb .img-fallback span { font-size: 28px; }
.cart-row-info { display: flex; flex-direction: column; gap: 2px; }
.cart-row-info a { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.cart-row-info a:hover { color: var(--brass); }
.cart-row-info span { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.cart-row-total { font-family: var(--font-mono); font-weight: 600; text-align: right; }
.qty-input { width: 84px; }
.summary, .panel { background: var(--surface); border: 1px solid var(--border); padding: 28px; }
.summary h2, .panel h2 { font-size: 20px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.sum-row span:last-child { font-family: var(--font-mono); }
.sum-total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 16px; font-weight: 600; font-size: 18px; }
.sum-total span:last-child { color: var(--brass); }
.field { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); margin: 20px 0 16px; }
.field textarea { resize: vertical; text-transform: none; letter-spacing: normal; font-family: var(--font-body); }
.secure-note { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); text-align: center; margin: 14px 0 0; }

/* ---------- Success / order ---------- */
.success-box { max-width: 620px; margin: 24px auto; text-align: center; background: var(--surface); border: 1px solid var(--border); padding: 56px 36px; }
.success-box h1 { font-size: 32px; }
.success-box p { color: var(--text-muted); }
.success-box strong { color: var(--text); font-family: var(--font-mono); }
.success-icon { width: 64px; height: 64px; border: 1px solid var(--cyan-dim); color: var(--cyan); display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.steps { list-style: none; padding: 0; display: flex; gap: 1px; margin: 24px 0 32px; background: var(--border); border: 1px solid var(--border); }
.steps li { flex: 1; text-align: center; padding: 14px 8px; background: var(--surface); color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.steps li.done { color: var(--brass); background: var(--surface-2); }
.status { display: inline-block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; padding: 5px 12px; border: 1px solid var(--border); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; padding: 12px 14px; background: var(--bg); border: 1px dashed var(--brass-dim); }
.code-box code { font-size: 17px; letter-spacing: .08em; color: var(--brass); word-break: break-all; }
.copy-btn { font-family: var(--font-mono); font-size: 12px; background: transparent; color: var(--text-muted); border: 1px solid var(--border); padding: 6px 12px; cursor: pointer; border-radius: 2px; }
.copy-btn:hover { color: var(--text); border-color: var(--text-muted); }
.notice { color: var(--brass); font-size: 14px; }
.empty { text-align: center; padding: 80px 16px; border: 1px solid var(--border); background: var(--surface); }
.empty p { color: var(--text-muted); }

/* ---------- Footer (mirrors main site) ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 70px 0 30px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.foot-brand p { color: var(--text-muted); font-size: 14px; max-width: 320px; margin-top: 16px; }
.foot-grid h4 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.foot-grid > div:not(.foot-brand) { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.foot-grid > div:not(.foot-brand) a { color: var(--text-muted); }
.foot-grid > div:not(.foot-brand) a:hover { color: var(--brass); }
.foot-grid .faint { font-size: 13px; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }

@media (max-width: 960px) {
  .nav-links { gap: 22px; }
  .product-detail, .cart-layout { grid-template-columns: 1fr; gap: 32px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .header-inner { height: 64px; }
  main.wrap { padding-top: 40px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product-body { padding: 14px 14px 18px; }
  .product-body h3 { font-size: 16px; }
  .product-body p { display: none; }
  .search { flex: 1 1 100%; }
  .cart-row { grid-template-columns: 56px 1fr 72px; gap: 12px; }
  .cart-row .thumb { width: 56px; height: 56px; }
  .cart-row-total { grid-column: 2; text-align: left; }
  .cart-row .link-btn { grid-column: 3; justify-self: end; }
  .qty-input { width: 72px; }
  .add-form { flex-direction: column; align-items: stretch; }
  .qty input { width: 100%; }
  .summary, .panel { padding: 20px; }
  .steps li { font-size: 10px; padding: 12px 4px; letter-spacing: .04em; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
