

/* Company logo image */
.company-logo-wrap {}
.company-logo-img { width: 120px; height: 120px; object-fit: contain; border-radius: 12px; }
.company-meta-row {align-items: center; font-size: 13px; font-weight: 600; color: var(--text-light, #68758d); }
.company-meta-product { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.company-website-link { color: var(--primary, #1358ff); margin-bottom: 5px;}
.company-website-link:hover { text-decoration: underline; }
.company-meta-sep { color: var(--border, #d5dbe7); }
.company-about { padding: 20px 24px; margin: 16px 0; }
.company-about .section-title { margin: 0 0 10px; font-size: 16px; font-weight: 750; color: var(--text-dark, #0b1430); }
.company-about-text { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-light, #4a5568); }
.company-price-chart { display: flex; align-items: flex-end; gap: 4px; height: auto; margin: 14px auto 10px; max-width: 660px; }
/* v112: company product cards carry a live cheapest–most-expensive range. */
body .popular-product-price,
body .company-media-caption-price {
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.company-price-chart span { flex: 1; height: var(--h, 8%); min-height: 6%; background: var(--primary, #1358ff); border-radius: 3px 3px 0 0; opacity: .85; }
.company-price-scale { display: flex; justify-content: space-between; text-align: center; }
.company-price-scale > div { display: flex; flex-direction: column; gap: 2px; }
.company-price-scale strong { font-size: 15px; color: var(--text-dark, #0b1430); }
.company-price-scale span { font-size: 11px; color: var(--text-light, #68758d); }
.company-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 8px 0; }


:root{--font-ecommerce:"Inter",sans-serif;--primary:#1358ff;--primary-bg:#edf3ff;--text-dark:#0b1430;--text-mid:#263044;--text-light:#66758d;--text-muted:#96a0b2;--border:#e2e8f2;--bg-page:#f5f6fa;--premium-border:#e6ebf4;--premium-border-soft:#eef2f7;--premium-bg:#f6f8fc;--premium-blue-soft:#eef4ff;--premium-green:#159447;--premium-red:#f03d57;--premium-shadow-soft:0 8px 22px rgba(15,23,42,0.045);--radius-lg:18px}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html,body{max-width:100%;overflow-x:hidden}
body{font-family:var(--font-ecommerce);color:var(--text-dark);background:radial-gradient(circle at 18% 0%, rgba(19, 88, 255, 0.045), transparent 28%), linear-gradient(180deg, var(--bg-page, #fbfcff) 0%, var(--premium-bg) 58%, var(--bg-page, #f7f8fb) 100%);line-height:1.5;font-weight:500}
a{color:inherit;text-decoration:none}
.company-page{width:100%;max-width:1240px;margin:0 auto;padding:46px 36px 42px}
.breadcrumbs{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text-light);margin-bottom:24px}
.breadcrumbs a{color:var(--text-light)}.breadcrumbs a:hover{color:var(--primary)}
.breadcrumbs .separator{color:var(--text-muted);font-size:11px}
.breadcrumbs .current{color:var(--text-dark);font-weight:700}
.card{border:1px solid var(--premium-border);border-radius:var(--radius-lg);background:var(--premium-card, #ffffff);box-shadow:var(--card-shadow, var(--premium-shadow-soft)), var(--card-edge, none)}
.company-hero{display:grid;grid-template-columns:1.35fr 1fr;gap:40px;align-items:center;padding:40px 44px;margin-bottom:20px}
.company-hero-left{display:flex;gap:28px;align-items:flex-start}
.company-logo-wrap{flex-shrink:0;width:120px;height:120px;border-radius:24px;background:var(--bg-white);border:1px solid var(--premium-border-soft); display:grid;place-items:center;overflow:hidden;}
/* Fixed plates for company logos whose own ink clashes with one colour mode:
   picked by company.js from the logo's luminance — dark logos get a white
   plate, light logos a dark one. Both stay fixed across colour modes. */
.company-logo-wrap.plate-light{background:#ffffff;border-color:#e3e8f2}
.company-logo-wrap.plate-dark{background:#10172b;border-color:#2d3a58}
.company-logo-placeholder{font-size:48px;font-weight:800;color:var(--primary)}
.company-info{flex:1;min-width:0}
.company-name-row{display:flex;align-items:center;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.company-name{font-size:clamp(28px,3vw,36px);font-weight:800;letter-spacing:-0.035em;line-height:1.1}
.company-description{color:var(--text-mid);font-size:14px;line-height:1.7;margin-bottom:25px;max-width:520px}
.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.stat-card{padding:28px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.stat-icon{width:40px;height:40px;border-radius:50%;background:var(--premium-blue-soft);color:var(--primary);display:inline-flex;align-items:center;justify-content:center}
.stat-value{font-size:clamp(22px,2vw,28px);font-weight:800;line-height:1}
.stat-label{font-size:12px;font-weight:700;color:var(--text-light)}
.popular-grid .card{padding:28px 30px}
.section-title{font-size:18px;font-weight:800;margin-bottom:18px}
.popular-list{display:flex;flex-direction:column}
.popular-product{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--premium-border-soft);border-radius:8px;margin:0 -8px;padding-left:8px;padding-right:8px}
.popular-product:last-child{border-bottom:0}
.popular-product:hover{background:var(--premium-blue-soft)}
.popular-product-thumb{position:relative;flex-shrink:0;width:48px;height:48px;border-radius:10px;background:var(--premium-border-soft);display:grid;place-items:center;overflow:hidden}
.popular-product-thumb img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover}
.popular-product-fallback{position:absolute;inset:0;display:grid;place-items:center;font-size:22px;color:#1358ff;z-index:0}
.popular-product-name{flex:1;min-width:0;font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.popular-product-price{font-size:13px;font-weight:600;color:var(--text-light);margin-right:8px}
.popular-product-arrow{color:var(--text-muted);font-size:18px}
.price-overview{padding:28px 30px;margin:0 auto 20px;max-width:840px}
.price-overview-title{font-size:18px;font-weight:800;margin-bottom:8px}
.price-slider-wrap{margin-top:32px;padding:0 8px}
.price-slider-track{position:relative;height:6px;background:linear-gradient(90deg,var(--premium-green) 0%,var(--primary) 50%,var(--premium-red) 100%);border-radius:999px}
.price-slider-thumb{position:absolute;top:50%;transform:translate(-50%,-50%);width:18px;height:18px;border-radius:50%;border:3px solid #fff}
.price-slider-thumb.min-thumb{left:0;background:var(--premium-green)}
.price-slider-thumb.max-thumb{left:100%;background:var(--premium-red)}
.price-slider-thumb.median-thumb{left:50%;background:var(--primary)}
.price-values{display:grid;grid-template-columns:1fr 1fr 1fr;margin-top:20px}
.price-value-product{text-align:left}.price-value-product:nth-child(2){text-align:center}.price-value-product:nth-child(3){text-align:right}
.price-value-amount{font-size:clamp(18px,1.6vw,22px);font-weight:800}
.price-value-product:nth-child(1) .price-value-amount{color:var(--premium-green)}
.price-value-product:nth-child(2) .price-value-amount{color:var(--primary)}
.price-value-product:nth-child(3) .price-value-amount{color:var(--premium-red)}
.price-value-label{font-size:12px;font-weight:700;color:var(--text-light);margin-top:6px}
.spinner{width:40px;height:40px;border:3px solid var(--premium-border);border-top-color:var(--primary);border-radius:50%;animation:spin 0.8s linear infinite;margin:0 auto}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1180px){.company-hero{grid-template-columns:1fr}.popular-grid{grid-template-columns:1fr}.stats-row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.company-page{padding:20px 18px}.stats-row{grid-template-columns:1fr}.price-values{grid-template-columns:1fr;gap:16px}}


/* Company hero media carousel (right of description) */
.company-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 900px) { .company-hero { grid-template-columns: 1fr; } }
.company-hero-right { display: flex; justify-content: center; min-width: 0; }
/* v67: the carousel used to be display:none below 1321px, so the product
   images and slides simply never appeared on most screens. It is visible at
   every width now, sized responsively. */
.company-media-carousel { display: flex; flex-direction: column; align-items: center; width: 100%; }
.company-media-viewport { position: relative; width: min(300px, 100%); aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--border, #e2e8f0); }
.company-media-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.company-media-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: block; padding: 30px 14px 12px; background: linear-gradient(180deg, rgba(11,20,48,0) 0%, rgba(11,20,48,0.82) 72%); color: #fff; text-decoration: none; }
.company-media-caption:hover .company-media-caption-name { text-decoration: underline; }
.company-media-caption-name { font-size: 13.5px; font-weight: 700; line-height: 1.35; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.company-media-caption-price { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 700; color: #34d399; }
.company-media-carousel .gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); background: rgba(255,255,255,0.92); display: grid; place-items: center; cursor: pointer; color: var(--text-dark, #0b1430); }
.company-media-carousel .gallery-arrow:hover { background: var(--bg-white); }
.company-media-carousel .gallery-arrow-left { left: 12px; }
.company-media-carousel .gallery-arrow-right { right: 12px; }
.company-media-dots { position: static; transform: none; left: auto; bottom: auto; display: flex; justify-content: center; gap: 6px; margin-top: 12px; z-index: auto; }
.company-media-dots .dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: #cfd7e6; cursor: pointer; padding: 0; }
.company-media-dots .dot.active { background: var(--primary, #1358ff); width: 10px; height: 10px; }
@media (min-width: 1321px) { .company-media-viewport { width: 320px; } }

/* Company specifics card */
.company-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
@media (max-width: 1180px) { .company-lower-grid { grid-template-columns: 1fr; } }
.company-specifics { padding: 24px 28px; margin: 0; min-width: 0;}
.company-specifics .section-title {margin: 0 0 16px; font-size: 17px; font-weight: 800; color: var(--text-dark, #0b1430); }
.company-specifics-trigger { display: inline-block; margin-top: 12px; }
/* v84 (issue 4): entries are plain stacked blocks (key above value) at every
   width - no side-by-side inline-block layout that could overlap. */
.company-specifics-grid { display: block; }
@media (max-width: 640px) {
    .company-specifics-grid { grid-template-columns: 1fr; }
    .company-lower-grid { grid-template-columns: 1fr; }
}
.company-specifics-grid dt {
    /* v84 (issue 4): keys and values used to sit side by side (inline-block
       20% + 75% with nowrap) - long keys/values overflowed their boxes and
       overlapped. Stack every entry: key line above value line, wrapping
       freely. This is the same layout the <=640px rules already used. */
    display: block;
    width: auto;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-light, #68758d);
    margin-bottom: 3px;
}

.company-specifics-grid dd {
    display: block;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark, #0b1430);
    white-space: normal;
    overflow-wrap: anywhere;
}

.company-lower-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

/* ============ PRICE OVERVIEW — REDESIGN (matches product page) ============ */
.price-overview{max-width:none;margin:0 0 20px;padding:22px 24px 14px;border:1px solid var(--border, #e8edf5);border-radius:18px;background:var(--premium-card, #ffffff);box-shadow:var(--card-shadow, 0 1px 2px rgba(11,20,48,.04),0 8px 24px -12px rgba(11,20,48,.08)), var(--card-edge, none)}
.price-overview-title{font-size:16px;font-weight:800;letter-spacing:-.02em;color:var(--text-dark);margin-bottom:4px}
.price-overview .distribution-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 4px}
.price-overview .chart-type-select{appearance:none;-webkit-appearance:none;border:1px solid var(--border, #e3e9f2);border-radius:999px;background:var(--auth-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%2368758d' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 12px center;padding:7px 30px 7px 14px;font-size:12.5px;font-weight:650;color:var(--text-dark, #33415c);cursor:pointer;transition:border-color .15s,box-shadow .15s}
.price-overview .chart-type-select:hover{border-color:var(--border-strong, #c9d4e6)}
.price-overview .chart-type-select:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(19,88,255,.15);border-color:var(--primary)}
/* Plot-type + "Prices from" multi-select dropdowns (match the product page) */
.price-overview .distribution-controls .marketplace-filter{margin-top:0;flex-wrap:nowrap}
.price-overview .plot-selector{display:flex;align-items:center;gap:6px}
.price-overview .filter-label{font-size:12px;font-weight:600;color:var(--text-muted,#96a0b2);margin-right:4px}
.price-overview .mp-multiselect-wrap{position:relative;display:inline-block}
.price-overview .mp-multiselect-toggle{border-radius:999px !important;appearance:none;border:1.5px solid var(--border,#e2e8f2);background:var(--bg-white);padding:9px 12px;font-family:inherit;font-size:13px;font-weight:700;color:var(--text-dark,#0b1430);cursor:pointer;display:inline-flex;align-items:center;gap:8px;min-width:140px;justify-content:space-between;transition:border-color .15s ease}
.price-overview .mp-multiselect-toggle:hover{border-color:var(--primary,#1358ff)}
.price-overview .mp-multiselect-toggle svg{flex-shrink:0;color:var(--text-light,#66758d)}
.price-overview .mp-multiselect-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:60;background:var(--bg-white);border:1px solid var(--border,#e2e8f2);border-radius:12px;box-shadow:0 12px 32px rgba(11,20,48,0.14);padding:6px;min-width:100%;max-height:280px;overflow-y:auto}
.price-overview .mp-multiselect-option{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font-size:13px;font-weight:600;color:var(--text-dark,#0b1430);cursor:pointer;user-select:none}
.price-overview .mp-multiselect-option:hover{background:var(--primary-bg,#edf3ff)}
.price-overview .mp-multiselect-option input[type="checkbox"]{accent-color:var(--primary,#1358ff);width:15px;height:15px;cursor:pointer;flex-shrink:0}
.price-overview .plot-menu-item{display:block;width:100%;padding:10px 14px;border:0;border-radius:8px;background:transparent;color:var(--text-mid, #475569);font-size:14px;font-weight:600;text-align:left;cursor:pointer;font-family:inherit}
.price-overview .plot-menu-item:hover{background:var(--primary-bg,#edf3ff);color:var(--text-dark)}
/* Chart container */
.company-price-chart{display:block;height:auto;max-width:none;margin:12px 0 0;padding:0}
.company-price-chart .price-chart-svg{width:100%;height:auto;display:block;margin-top:6px}
.pd-tick{font-size:7px;font-weight:600;fill:var(--text-muted, #9aa5b6)}
.pd-axis-title{font-size:7.5px;font-weight:700;fill:var(--text-muted, #8a94a6);letter-spacing:.08em;text-transform:uppercase}
.pd-hist rect{transition:opacity .15s}
.pd-hist rect:hover{opacity:.8}
/* Stat strip = x-axis */
.price-overview .company-price-scale{display:block;position:relative;margin-top:2px;padding:12px 0 58px;border-top:1px dashed var(--border, #e6ebf3)}
.price-overview .pd-track{display:block;position:relative;height:5px;border-radius:999px;margin:0 2.5% 0 10%;background:linear-gradient(90deg,var(--success, #22c55e) 0%,var(--primary) 50%,var(--danger, #ef4444) 100%);opacity:.9}
.price-overview .pd-dot{position:absolute;top:50%;width:11px;height:11px;border-radius:50%;transform:translate(-50%,-50%);border:2.5px solid #fff;box-shadow:0 1px 4px rgba(11,20,48,.25)}
.price-overview .pd-dot.min{background:var(--success, #22c55e)}
.price-overview .pd-dot.med{background:var(--primary);width:13px;height:13px}
.price-overview .pd-dot.max{background:var(--danger, #ef4444)}
.price-overview .pd-stat{position:absolute;top:26px;display:flex;flex-direction:column;gap:2px;max-width:34%}
.price-overview .pd-stat.min{left:10%;align-items:flex-start}
.price-overview .pd-stat.max{right:2.5%;align-items:flex-end;text-align:right}
.price-overview .pd-stat.med{transform:translateX(-50%);align-items:center;text-align:center}
.price-overview .pd-label{font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.price-overview .pd-stat.min .pd-label{color:var(--success, #16a34a)}
.price-overview .pd-stat.med .pd-label{color:var(--primary)}
.price-overview .pd-stat.max .pd-label{color:var(--danger, #ef4444)}
.price-overview .pd-stat strong{font-size:17px;font-weight:800;color:var(--text-dark);letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap}
@media (max-width:480px){
.price-overview .pd-stat strong{font-size:14px}
.price-overview .pd-label{font-size:9.5px}
}

/* === Gap + text consistency fixes === */
.price-chart-svg{margin-top:0}
.distribution-scale{margin-top:0;padding-top:10px}
.price-overview .company-price-scale{margin-top:0;padding-top:10px}

/* ==== v53: price overview + historical prices match the product page ==== */
/* product.css is loaded for the shared .c-head/.pd-chart-stats/.seg styles. */
.company-price-chart { max-width: none; margin: 0 auto; }
.company-price-grid { align-items: stretch; }
.company-price-grid > .price-overview,
.company-price-grid > .price-history-card { height: 100%; }
/* One colour for ALL chart text; x/y axis titles the same rendered size
   (SVG renders ~1.75× on both pages, so 7px SVG ≈ 12px HTML) */
.pd-tick{font-size:7px;font-weight:600;fill:var(--text-muted, #94a3b8)}
.pd-axis-title{font-size:7px;font-weight:700;fill:var(--text-muted, #94a3b8);letter-spacing:.08em;text-transform:uppercase}
.pd-x-title{font-size:12px;font-weight:700;color:var(--text-muted, #94a3b8);letter-spacing:.08em;text-transform:uppercase}

/* ==== Unified axis titles: x (PRICE) and y (DENSITY / LISTINGS / SPREAD) ==== */
/* Y-axis titles + tick values (SVG) — one shared look */
.pd-axis-title{font-size:7px;font-weight:700;letter-spacing:.08em;fill:var(--text-muted, #94a3b8);text-transform:uppercase}
.pd-tick{font-size:7px;font-weight:600;fill:var(--text-muted, #94a3b8)}

/* X-axis title (HTML caption under the min/median/max strip) — identical look */
.pd-x-title{
  position:absolute !important;
  top:auto !important;
  left:0 !important;
  right:0 !important;
  bottom:8px !important;
  margin:0 !important;
  display:block !important;
  width:auto !important;
  text-align:center !important;
  font-size:12px !important;      /* = 7 SVG units × ~1.75 render scale on both pages */
  font-weight:700 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
  color:var(--text-muted, #94a3b8) !important;       /* same grey as the SVG titles/ticks */
}

.price-chart-svg{overflow:visible}

/* ==== Axis titles: fixed-size HTML so x & y match on every page ==== */
.price-chart-wrap{position:relative}
.pd-y-title{
  position:absolute;left:2px;top:50%;
  writing-mode:vertical-rl;               /* rotated, reads bottom-to-top */
  transform:translateY(-50%) rotate(180deg);
}
.pd-y-title,.pd-x-title{
  font-size:11px !important;font-weight:700 !important;
  letter-spacing:.1em !important;text-transform:uppercase !important;
  color:var(--text-muted, #94a3b8) !important;
}
/* x-axis label sits at the very bottom of the strip, below the values */
.distribution-scale{padding-bottom:88px !important}
.pd-x-title{
  position:absolute !important;left:0 !important;right:0 !important;
  bottom:4px !important;margin:0 !important;text-align:center !important;
}

/* ==== Company page: axis titles hug the plot (match each other's spacing) ==== */
.price-overview .price-chart-wrap{position:relative}

/* Y title: anchored just left of the y tick labels.
   For the 760-unit viewBox (PL = 76, ticks end ~57 units) the ticks' left edge
   is at ~7.3% of the chart width at ANY rendered size, so this never drifts. */
.price-overview .pd-y-title{
  position:absolute;
  top:48%;
  left:7.3%;
  transform:translate(-100%,-50%) rotate(180deg);
  writing-mode:vertical-rl;
  margin:0;
}

/* X title: sit directly under the Min/Median/Max values, same ~8px gap the
   y title has from its ticks */
.price-overview .company-price-scale{padding-bottom:70px}
.price-overview .pd-x-title{
  position:absolute;
  left:0;right:0;bottom:2px;
  margin:0;
  text-align:center;
}
/* ==================== SHARE BUTTON (compare design) ==================== */
.compare-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.compare-action-btn:hover {
  background: var(--bg-page);
  border-color: var(--border-strong);
}
.compare-action-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.compare-action-btn svg {
  width: 16px;
  height: 16px;
}

/* ==================== SHARE POPUP ==================== */
.share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--font-ecommerce);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.share-popup {
  background: var(--bg-white);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  font-family: var(--font-ecommerce);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.share-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.share-popup-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}
.share-popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s ease;
}
.share-popup-close:hover {
  background: var(--bg-page);
  color: var(--text-dark);
}
.share-options {
  padding: 20px 24px;
  overflow-y: auto;
}
.share-link-preview {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.share-link-preview input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-dark);
  background: var(--bg-page);
  outline: none;
}
.share-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.share-copy-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(19, 88, 255, 0.3);
}
.share-copy-btn svg {
  width: 18px;
  height: 18px;
}
.share-platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.share-platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg-white);
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.share-platform-btn:hover {
  border-color: var(--primary);
  background: var(--bg-page);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.share-platform-btn svg {
  width: 24px;
  height: 24px;
}
@media (max-width: 640px) {
  .compare-action-btn {
    flex: 1;
    justify-content: center;
  }
}
.company-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Compare link uses the share-button design but is an anchor */
a.compare-action-btn { text-decoration: none; }


/* Share button (primary, social-style) */
.compare-action-primary {
    background: var(--primary, #1358ff) !important;
    border-color: var(--primary, #1358ff) !important;
    color: #ffffff !important;
}
.compare-action-primary:hover {
    background: var(--primary-dark, #0b3fcc) !important;
    border-color: var(--primary-dark, #0b3fcc) !important;
    color: #ffffff !important;
}
.compare-action-primary svg {
    color: #ffffff;
}

/* ==================== MOBILE COMPANY PAGE ==================== */
@media (max-width: 640px) {
    .company-page { padding: 16px 12px 28px; }
    .company-hero { padding: 20px 16px; gap: 20px; }

    /* Icon + company name on top; description and meta below. */
    .company-hero-left {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 14px;
        row-gap: 14px;
        align-items: start;
    }
    .company-info { display: contents; }
    .company-logo-wrap {
        grid-column: 1;
        grid-row: 1;
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }
    .company-logo-img { width: 68px; height: 68px; }
    .company-name-row { grid-column: 2; grid-row: 1; margin-bottom: 0; }
    .company-description { grid-column: 1 / -1; margin-bottom: 0; }
    .company-meta-row { grid-column: 1 / -1; }

    /* Specifics above popular products, stacked with no overlap. */
    .company-lower-grid { grid-template-columns: 1fr; gap: 14px; margin: 14px 0; }
    .company-specifics,
    .popular-grid .card { padding: 18px 16px; }
    .company-specifics-grid { grid-template-columns: 1fr; }
    .company-specifics-grid dt,
    .company-specifics-grid dd {
        display: block;
        width: auto;
        max-width: none;
        white-space: normal;
    }
}

/* Price overview head: title + collapsed-filters funnel icon */
.price-overview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.price-overview-head .price-overview-title{margin-bottom:0}
.price-overview .card-filters-panel{margin:10px 0 4px}


/* v32: company price overview + historical prices side by side. */
.company-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    margin: 20px 0;
}
.price-history-card { min-width: 0; }

/* v59: below the product page breakpoint the company price overview and the
   historical prices stack - history sits UNDER the overview (same rule the
   product page uses for its lower grid). */
@media (max-width: 1180px) {
    .company-price-grid { grid-template-columns: 1fr; }
}

/* v61: the company stats (Listings analysed / Products tracked / Median price /
   Views) stay in ONE horizontal row at every width - compacted on phones
   instead of collapsing into a vertical stack. */
.stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) {
    .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px; }
    .stats-row .stat-card { padding: 12px 6px; gap: 6px; }
    .stats-row .stat-icon { width: 26px; height: 26px; }
    .stats-row .stat-icon svg { width: 14px; height: 14px; }
    .stats-row .stat-value { font-size: 15px; }
    .stats-row .stat-label { font-size: 9.5px; line-height: 1.25; }
}
/* ===================== v77: brand (company) like button =====================
   Identical to the product page's like button (product.css). */
.company-like-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 48px;
  padding: 8px 10px;
  border: 1px solid var(--primary-soft-border, #C8D4FF);
  border-radius: 10px;
  background: var(--bg-white);
  color: #e0245e;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.company-like-btn:hover {
  background: var(--primary-bg, #edf3ff);
  border-color: var(--primary, #1358ff);
}
.company-like-btn svg {
  width: 20px;
  height: 20px;
}
.company-like-btn .product-social-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid, #475569);
  line-height: 1;
}
.company-like-btn.liked {
  border-color: #f9c8d4;
  background: #fef2f5;
}
.company-like-btn.liked .like-icon {
  fill: #e0245e;
  stroke: #e0245e;
}
/* v78: Compare/Share share the like button's exact box (48px wide, the same
   height and 20px icons) so the three header actions read as one set. */
.company-name-row .compare-action-btn {
  min-width: 48px;
  padding: 8px 10px;
  justify-content: center;
}
.company-name-row .compare-action-btn svg {
  width: 20px;
  height: 20px;
}
/* v114: company shell + independent section loading */
.company-shell-title { margin: 0 0 8px; font-size: clamp(24px, 3vw, 38px); line-height: 1.1; font-weight: 800; color: var(--text-dark, #0b1430); }
.company-shell-copy { min-width: 0; }
.company-open-status { margin: 12px 0 0; font-size: 13.5px; font-weight: 650; color: var(--primary, #1358ff); }
.company-open-status[data-ready="1"] { color: var(--text-muted, #68758d); font-weight: 600; }
.company-load-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 20px; }
.company-load-card { padding: 18px 20px; min-width: 0; }
.company-load-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-dark, #0b1430); }
.company-load-timer { margin-left: auto; font-size: 12px; color: var(--primary, #1358ff); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.company-load-line { height: 10px; margin-top: 13px; border-radius: 999px; background: linear-gradient(100deg, var(--surface-alt, #f3f5f9) 0%, #e8edf6 45%, var(--surface-alt, #f3f5f9) 90%); background-size: 200% 100%; animation: section-skeleton-shimmer 1.4s ease-in-out infinite; }
.company-load-line.short { width: 65%; }
@media (max-width: 820px) { .company-load-sections { grid-template-columns: 1fr; } }/* v114: [hidden] must beat the component display rules (skeleton/logo swap) */
[data-company-shell-skeleton][hidden],
#company-shell-logo[hidden],
#company-shell-logo-placeholder[hidden],
#company-shell-name[hidden] { display: none !important; }

/* ==== v120: skeleton mirrors the real page structure ==== */
/* The status/slow-note lines sit BELOW the two-column hero, spanning both
   columns (they used to be loose grid items squeezed into the hero cells). */
.company-shell-status { grid-column: 1 / -1; margin: 0; }
.company-shell-status .company-open-status { margin: 0; }
/* Stats-row skeleton icon plate. */
.sk-stat-icon { display: block; width: 42px; height: 42px; border-radius: 12px; }
