/* ===== INSTALACJA eSIM — LISTING + PRODUCT ===== */

/* Hero */
.inst-hero {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
  color: #fff;
  text-align: center;
  padding: 52px 20px 44px;
}
.inst-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.inst-hero p {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto;
}

/* Listing wrapper */
.inst-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* Search bar */
.inst-search-bar {
  position: relative;
  margin: -28px auto 0;
  max-width: 600px;
}
.inst-search-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.inst-search-input:focus {
  border-color: #0891b2;
}
.inst-search-count {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .85rem;
  color: #94a3b8;
}

/* Type tabs */
.inst-type-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 16px;
}
.inst-type-tab {
  padding: 10px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  transition: all .2s;
  color: #334155;
}
.inst-type-tab:hover {
  border-color: #0891b2;
  color: #0891b2;
}
.inst-type-tab.active {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}
.inst-type-count {
  font-weight: 400;
  opacity: .7;
  font-size: .85em;
}

/* Brand filter chips */
.inst-brand-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 28px;
  padding: 0 10px;
}
.inst-brand-chip {
  padding: 6px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 500;
  transition: all .2s;
  color: #475569;
  white-space: nowrap;
}
.inst-brand-chip:hover {
  border-color: #0891b2;
  color: #0891b2;
}
.inst-brand-chip.active {
  background: #0e7490;
  color: #fff;
  border-color: #0e7490;
}
.inst-brand-count {
  font-size: .75em;
  opacity: .7;
}

/* Device grid */
.inst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.inst-card {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.inst-card:hover {
  border-color: #0891b2;
  box-shadow: 0 6px 24px rgba(8,145,178,.12);
  transform: translateY(-3px);
}
.inst-card-img {
  aspect-ratio: 3/4;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}
.inst-card-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.inst-card-placeholder {
  font-size: 3.5rem;
  opacity: .3;
}
.inst-card-body {
  padding: 10px 14px 4px;
  flex: 1;
}
.inst-card-brand {
  font-size: .72rem;
  font-weight: 600;
  color: #0891b2;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.inst-card-name {
  font-size: .9rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
  line-height: 1.3;
}
.inst-card-year {
  font-size: .75rem;
  color: #94a3b8;
  margin-top: 2px;
}
.inst-card-footer {
  padding: 6px 14px 12px;
}
.inst-card-esim-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #ecfeff;
  color: #0891b2;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #cffafe;
}

/* Empty state */
.inst-empty {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}
.inst-empty h3 {
  margin: 12px 0 8px;
  color: #334155;
}

/* CTA bar */
.inst-cta-bar {
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
  border-top: 2px solid #cffafe;
  padding: 32px 20px;
}
.inst-cta-bar-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.inst-cta-bar-inner p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #155e75;
}

/* ═══════ PRODUCT PAGE ═══════ */

/* Device hero */
.inst-dev-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
  border-bottom: 2px solid #cffafe;
}
.inst-dev-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 36px;
}
.inst-breadcrumb {
  font-size: .82rem;
  color: #64748b;
  margin-bottom: 20px;
}
.inst-breadcrumb a {
  color: #0891b2;
  text-decoration: none;
}
.inst-breadcrumb a:hover {
  text-decoration: underline;
}
.inst-breadcrumb span {
  margin: 0 4px;
}
.inst-dev-hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
}
.inst-dev-photo-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.inst-dev-photo {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.inst-dev-photo-placeholder {
  font-size: 6rem;
  opacity: .25;
  padding: 40px 0;
}
.inst-dev-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #0891b2;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.inst-dev-info h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}
.inst-dev-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.inst-dev-tag {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: #475569;
}
.inst-dev-compat {
  font-size: .95rem;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 20px;
}
.inst-dev-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.inst-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
}
.inst-btn-primary {
  background: #0891b2;
  color: #fff;
  border-color: #0891b2;
}
.inst-btn-primary:hover {
  background: #0e7490;
  border-color: #0e7490;
}
.inst-btn-outline {
  background: transparent;
  color: #0891b2;
  border-color: #0891b2;
}
.inst-btn-outline:hover {
  background: #ecfeff;
}
.inst-btn-full {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Content area */
.inst-dev-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.inst-dev-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #e2e8f0;
  margin: 0 0 28px;
  padding-top: 20px;
}
.inst-dev-tab {
  padding: 12px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: #64748b;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all .2s;
}
.inst-dev-tab:hover {
  color: #0891b2;
}
.inst-dev-tab.active {
  color: #0891b2;
  border-bottom-color: #0891b2;
}
.inst-dev-tab-panel {
  display: none;
}
.inst-dev-tab-panel.active {
  display: block;
}

/* Two column layout */
.inst-dev-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: flex-start;
}
.inst-dev-main h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0e7490;
  margin: 0 0 24px;
}
.inst-dev-main h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #155e75;
  margin: 28px 0 12px;
}

/* Steps */
.inst-steps {
  counter-reset: inst-step;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.inst-steps li {
  counter-increment: inst-step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border-left: 3px solid #0891b2;
}
.inst-steps li::before {
  content: counter(inst-step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0891b2;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
}
.inst-steps li .step-content {
  flex: 1;
  font-size: .9rem;
  line-height: 1.5;
}
.inst-steps li .step-content strong {
  display: block;
  margin-bottom: 2px;
  color: #155e75;
  font-size: .92rem;
}

/* Notice */
.inst-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: .88rem;
  line-height: 1.6;
}
.inst-notice strong {
  color: #92400e;
}

/* Shop sidebar card */
.inst-shop-card {
  background: #f0fdfa;
  border: 1.5px solid #cffafe;
  border-radius: 14px;
  padding: 20px;
}
.inst-shop-card-header {
  font-weight: 700;
  font-size: 1rem;
  color: #0e7490;
  margin-bottom: 8px;
}
.inst-shop-card p {
  font-size: .88rem;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 14px;
}

/* Specs table */
.inst-specs-table {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  margin: 20px 0;
}
.inst-specs-table th,
.inst-specs-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: .9rem;
}
.inst-specs-table th {
  font-weight: 600;
  color: #64748b;
  width: 160px;
}
.inst-specs-table td {
  color: #1e293b;
  font-weight: 500;
}

/* Related devices */
.inst-related {
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
  padding: 36px 20px;
}
.inst-related-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.inst-related h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0e7490;
  margin: 0 0 20px;
  text-align: center;
}

/* ═══════ RESPONSIVE ═══════ */

@media (max-width: 900px) {
  .inst-dev-hero-grid {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }
  .inst-dev-two-col {
    grid-template-columns: 1fr;
  }
  .inst-dev-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .inst-hero h1 { font-size: 1.5rem; }
  .inst-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .inst-card-img { aspect-ratio: 3/4; padding: 8px; }
  .inst-card-body { padding: 8px 10px 4px; }
  .inst-card-name { font-size: .82rem; }
  .inst-dev-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .inst-dev-photo-wrap {
    max-width: 200px;
    margin: 0 auto;
  }
  .inst-dev-info h1 { font-size: 1.4rem; }
  .inst-dev-meta { justify-content: center; }
  .inst-dev-actions { justify-content: center; }
  .inst-dev-sidebar {
    grid-template-columns: 1fr;
  }
  .inst-type-tabs { gap: 4px; }
  .inst-type-tab { padding: 8px 12px; font-size: .82rem; }
  .inst-dev-tabs { overflow-x: auto; }
}
