/* === DEALS WIDGET === */

.deals-widget {
  background: var(--bg-card, #161a25);
  border: 1px solid rgba(245,101,101,0.2);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.deals-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.deals-fire { font-size: 1.2rem; }

.deals-title {
  font-weight: 700;
  font-size: 1rem;
  color: #e2e8f0;
}

.deals-count {
  background: linear-gradient(135deg, #f56565, #ed8936);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.deals-source {
  margin-left: auto;
  font-size: 0.72rem;
  color: #5a6478;
}

.deals-source a { color: #8892a4; }
.deals-source a:hover { color: #f56565; }

.deals-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.deal-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: #e2e8f0;
  transition: all 0.2s;
}

.deal-card:hover {
  border-color: rgba(245,101,101,0.3);
  background: rgba(255,255,255,0.04);
  color: #e2e8f0;
  transform: translateX(3px);
}

.deal-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.deal-title {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-sub {
  font-size: 0.78rem;
  color: #8892a4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.deal-price {
  font-weight: 700;
  font-size: 0.9rem;
  color: #68d391;
}

.deal-percent {
  background: rgba(104,211,145,0.15);
  color: #68d391;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.deal-code {
  background: rgba(245,101,101,0.12);
  color: #f56565;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-family: monospace;
}

.deal-ago {
  font-size: 0.7rem;
  color: #5a6478;
  white-space: nowrap;
}

.deals-updated {
  margin-top: 0.75rem;
  font-size: 0.68rem;
  color: #5a6478;
  text-align: right;
}

@media (min-width: 768px) {
  .deals-list { grid-template-columns: 1fr 1fr; }
}

/* === WHEY DB - Whey Protein Vergleich Tool === */

.whey-page {
  --whey-wpc: #63b3ed;
  --whey-wpi: #68d391;
  --whey-wph: #d69e2e;
  --whey-blend: #b794f4;
  --whey-good: #68d391;
  --whey-mid: #f6ad55;
  --whey-poor: #f56565;
}

/* --- Layout --- */
.whey-page {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.whey-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .whey-inner { padding: 0 2rem; }
}

/* --- Hero --- */
.whey-hero {
  text-align: center;
  padding: 3.5rem 1.25rem 2.5rem;
  background: radial-gradient(ellipse at center top, rgba(245,101,101,0.08) 0%, transparent 60%);
}

.whey-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.whey-hero h1 { font-size: 2.2rem; font-weight: 900; line-height: 1.15; margin-bottom: 0.75rem; color: var(--text); }
.whey-accent { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.whey-hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1rem; }
.whey-hero-meta { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-dim); }
.whey-dot { opacity: 0.5; }

/* --- Stats Dashboard --- */
.whey-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.whey-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.whey-stat:hover {
  border-color: rgba(245,101,101,0.3);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.whey-stat-img {
  width: 44px;
  height: 55px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-elevated);
}

.whey-stat-thumb {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.whey-stat-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.whey-stat-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.whey-stat-value { font-size: 1.2rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.whey-stat-product { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Toolbar --- */
.whey-toolbar-wrap {
  position: sticky;
  top: 60px;
  z-index: 95;
  background: rgba(10, 12, 16, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.whey-toolbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.whey-search {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem 0.5rem 2.2rem;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%235a6478' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.6rem center;
}

.whey-search:focus { border-color: var(--accent); }
.whey-search::placeholder { color: var(--text-dim); }

.whey-filters { display: flex; gap: 0.35rem; align-items: center; flex-wrap: wrap; }

.whey-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all var(--transition);
  user-select: none;
  white-space: nowrap;
}

.whey-pill:hover { border-color: var(--border-hover); color: var(--text); }
.whey-pill--active { border-color: transparent; color: #fff; }
.whey-pill--wpc.whey-pill--active { background: var(--whey-wpc); color: #0a0c10; }
.whey-pill--wpi.whey-pill--active { background: var(--whey-wpi); color: #0a0c10; }
.whey-pill--wph.whey-pill--active { background: var(--whey-wph); color: #0a0c10; }
.whey-pill--lactose.whey-pill--active { background: var(--gradient); }

/* View Toggle */
.whey-view-toggle { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }

.whey-view-btn {
  padding: 0.35rem 0.6rem;
  background: var(--bg-card);
  border: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}

.whey-view-btn:hover { color: var(--text); }
.whey-view-btn--active { background: var(--accent); color: #fff; }

.whey-sort {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  margin-left: auto;
}

.whey-sort:focus { border-color: var(--accent); }
.whey-sort option { background: var(--bg-card); color: var(--text); }

.whey-compare-btn {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: var(--gradient);
  color: #fff;
  transition: opacity var(--transition);
  white-space: nowrap;
  display: none;
}

.whey-compare-btn--visible { display: inline-flex; align-items: center; gap: 0.35rem; }
.whey-compare-btn:hover { opacity: 0.85; }
.whey-compare-count { background: rgba(255,255,255,0.25); border-radius: 10px; padding: 0.1rem 0.4rem; font-size: 0.68rem; }

/* Filter Chips */
.whey-chips { display: flex; gap: 0.35rem; flex-wrap: wrap; padding: 0 1.25rem; max-width: 1400px; margin: -0.75rem auto 1rem; }
.whey-chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.55rem; border-radius: 14px; font-size: 0.7rem; background: rgba(245,101,101,0.12); color: var(--accent); cursor: pointer; transition: background var(--transition); }
.whey-chip:hover { background: rgba(245,101,101,0.2); }
.whey-chip-x { font-weight: 700; }

/* Result Info */
.whey-result-info { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 1rem; }

/* --- Product Grid (Cards) --- */
.whey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

/* --- Product Card --- */
.whey-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  animation: wheyFadeIn 0.4s ease both;
}

.whey-card:hover { border-color: var(--border-hover); box-shadow: 0 2px 12px var(--accent-glow); }

.whey-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
}

/* Card Image + Hover Zoom */
.whey-card-img {
  width: 80px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  position: relative;
}

.whey-card-img img:not(.whey-zoom-img) {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.whey-card-zoom {
  display: none;
  position: absolute;
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  width: 200px;
  height: 250px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  z-index: 999;
  padding: 8px;
  align-items: center;
  justify-content: center;
}

.whey-card-img:hover .whey-card-zoom { display: flex; }

.whey-zoom-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.whey-card-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.whey-card-top { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }

.whey-type-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.whey-type-badge--wpc { background: rgba(99,179,237,0.15); color: var(--whey-wpc); }
.whey-type-badge--wpi { background: rgba(104,211,145,0.15); color: var(--whey-wpi); }
.whey-type-badge--wph { background: rgba(214,158,46,0.15); color: var(--whey-wph); }
.whey-type-badge--blend { background: rgba(183,148,244,0.15); color: var(--whey-blend); }

.whey-best-badge { font-size: 0.62rem; font-weight: 700; padding: 0.12rem 0.45rem; border-radius: 4px; background: var(--gradient); color: #fff; flex-shrink: 0; }
.whey-card-brand { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.whey-card-name { font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.3; }

.whey-card-stats { display: flex; align-items: center; gap: 1rem; margin-top: 0.2rem; flex-wrap: wrap; }
.whey-card-stat { display: flex; flex-direction: column; gap: 0.02rem; }
.whey-card-stat-val { font-size: 0.95rem; font-weight: 800; color: var(--text); }
.whey-card-stat-val--accent { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.whey-card-stat-lbl { font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

.whey-card-right { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.whey-card-rating { display: flex; flex-direction: column; align-items: center; gap: 0.05rem; }
.whey-card-rating-val { font-size: 1.3rem; font-weight: 900; }
.whey-card-rating-stars { font-size: 0.65rem; letter-spacing: 0.05em; }
.whey-card-rating-lbl { font-size: 0.58rem; color: var(--text-dim); text-transform: uppercase; }
.whey-card-actions { display: flex; gap: 0.35rem; }

.whey-card-cmp {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition);
}

.whey-card-cmp:hover { border-color: var(--accent); color: var(--accent); }
.whey-card-cmp--active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- Table View --- */
.whey-grid--table { display: block; }

.whey-table-wrap { overflow-x: auto; }

.whey-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.whey-tbl thead th {
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 600;
}

.whey-tbl-row {
  cursor: pointer;
  transition: background var(--transition);
}

.whey-tbl-row:hover { background: var(--bg-card-hover); }

.whey-tbl-row td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.whey-tbl-img { width: 40px; }

.whey-tbl-thumb {
  width: 36px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
}

/* --- Product Modal --- */
.whey-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(10,12,16,0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.whey-modal-overlay--visible { display: flex; }

.whey-modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 800px;
  animation: wheySlideUp 0.3s ease;
}

.whey-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.whey-modal-title { display: flex; align-items: center; gap: 0.75rem; font-size: 1.1rem; font-weight: 700; color: var(--text); }

.whey-modal-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.whey-modal-close:hover { border-color: var(--accent); color: var(--accent); }

.whey-modal-body { padding: 1.5rem; }

.whey-modal-top {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.whey-modal-img {
  width: 140px;
  height: 175px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.whey-modal-product-img { max-width: 100%; max-height: 100%; object-fit: contain; }
.whey-modal-img { cursor: zoom-in; position: relative; }
.whey-modal-img-hint { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); font-size: 0.6rem; color: var(--text-dim); opacity: 0; transition: opacity var(--transition); white-space: nowrap; }
.whey-modal-img:hover .whey-modal-img-hint { opacity: 1; }

.whey-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
}

.whey-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.whey-modal-key-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.75rem;
  flex: 1;
}

.whey-modal-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.whey-modal-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.whey-modal-stat-lbl { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }

/* Detail Grid (shared by modal) */
.whey-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1rem; }

.whey-nutrition h4,
.whey-ratings-detail h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 0.5rem; }

.whey-nutrition-table { width: 100%; font-size: 0.82rem; }
.whey-nutrition-table tr { border-bottom: 1px solid var(--border); }
.whey-nutrition-table td { padding: 0.35rem 0; }
.whey-nutrition-table td:first-child { color: var(--text-muted); }
.whey-nutrition-table td:last-child { text-align: right; font-weight: 600; color: var(--text); }

.whey-rating-row { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.35rem; }
.whey-rating-name { font-size: 0.78rem; color: var(--text-muted); width: 90px; flex-shrink: 0; }
.whey-rating-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.whey-rating-fill { display: block; height: 100%; min-height: 5px; border-radius: 3px; }
.whey-rating-val { font-size: 0.78rem; font-weight: 700; width: 26px; text-align: right; flex-shrink: 0; }

.whey-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.75rem; }
.whey-tag { font-size: 0.7rem; padding: 0.18rem 0.55rem; border-radius: 4px; background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border); }

.whey-verdict { margin-top: 1rem; padding: 1rem 1.25rem; background: linear-gradient(135deg, rgba(245,101,101,0.06), rgba(237,137,54,0.06)); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.88rem; color: var(--text); line-height: 1.65; font-style: italic; }
.whey-verdict-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-style: normal; font-weight: 700; margin-bottom: 0.25rem; }

.whey-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 1rem; }
.whey-pros h4 { color: var(--whey-good); }
.whey-cons h4 { color: var(--whey-poor); }
.whey-proscons ul { list-style: none; font-size: 0.82rem; }
.whey-proscons li { padding: 0.2rem 0; padding-left: 1.1rem; position: relative; color: var(--text-muted); }
.whey-pros li::before { content: '+'; position: absolute; left: 0; font-weight: 700; color: var(--whey-good); }
.whey-cons li::before { content: '\2212'; position: absolute; left: 0; font-weight: 700; color: var(--whey-poor); }

/* --- Compare Bar --- */
.whey-compare-bar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 130;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
  backdrop-filter: blur(12px);
}

.whey-compare-bar--visible { transform: translateX(-50%) translateY(0); }
.whey-compare-bar-avatars { display: flex; gap: 0.25rem; }
.whey-compare-bar-avatar { width: 26px; height: 26px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 800; color: #0a0c10; }
.whey-compare-bar-text { font-size: 0.8rem; color: var(--text-muted); }
.whey-compare-bar-open { padding: 0.35rem 0.85rem; border-radius: var(--radius-sm); border: none; background: var(--gradient); color: #fff; font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: var(--font); }
.whey-compare-bar-open:hover { opacity: 0.85; }
.whey-compare-bar-close { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 1rem; padding: 0.2rem; }
.whey-compare-bar-close:hover { color: var(--text); }

/* --- Compare Overlay --- */
.whey-compare-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: rgba(10,12,16,0.95);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.whey-compare-overlay--visible { display: flex; }
.whey-compare-header { position: sticky; top: 0; background: rgba(10,12,16,0.95); backdrop-filter: blur(12px); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); z-index: 1; }
.whey-compare-header h2 { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.whey-compare-close { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); cursor: pointer; font-size: 0.82rem; padding: 0.35rem 0.85rem; font-family: var(--font); transition: all var(--transition); }
.whey-compare-close:hover { border-color: var(--accent); color: var(--accent); }

.whey-compare-table { padding: 1.25rem; overflow-x: auto; }
.whey-compare-table table { width: 100%; border-collapse: collapse; min-width: 500px; }
.whey-compare-table th, .whey-compare-table td { padding: 0.5rem 0.85rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
.whey-compare-table th { color: var(--text-dim); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; position: sticky; left: 0; background: rgba(10,12,16,0.95); min-width: 100px; }
.whey-compare-table td { color: var(--text); }
.whey-compare-best { color: var(--whey-good) !important; font-weight: 700; }
.whey-compare-worst { color: var(--text-dim) !important; }
.whey-compare-product-header { text-align: center !important; vertical-align: top; padding: 1rem 1rem 0.75rem !important; }
.whey-compare-img-wrap { width: 70px; height: 85px; margin: 0 auto 0.5rem; display: flex; align-items: center; justify-content: center; background: var(--bg-card); border-radius: 6px; padding: 4px; }
.whey-compare-product-brand { font-size: 0.7rem; color: var(--text-muted); display: block; }
.whey-compare-product-name { font-weight: 700; font-size: 0.85rem; display: block; margin-top: 0.1rem; }
.whey-compare-thumb { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.whey-compare-remove { display: block; margin: 0.4rem auto 0; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.68rem; font-family: var(--font); }
.whey-compare-remove:hover { color: var(--accent); }

.whey-compare-winner { border-top: 2px solid var(--accent) !important; }
.whey-compare-winner th { font-weight: 800; color: var(--text); }
.whey-compare-winner-cell { text-align: center !important; }
.whey-col-winner { background: rgba(104,211,145,0.06) !important; }
.whey-compare-score { display: block; font-size: 1.2rem; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.whey-compare-trophy { display: block; font-size: 0.72rem; font-weight: 700; color: var(--whey-good); margin-top: 0.3rem; }
.whey-compare-draw { display: block; font-size: 0.72rem; font-weight: 700; color: var(--whey-mid); margin-top: 0.3rem; }

/* --- Methodology --- */
.whey-methodology { margin-top: 2rem; padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--border); }
.whey-methodology h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; padding-left: 0.75rem; border-left: 3px solid var(--accent); }
.whey-methodology p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 0.75rem; }

/* --- Empty --- */
.whey-empty { text-align: center; padding: 3rem 1rem; color: var(--text-muted); grid-column: 1 / -1; }
.whey-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.4; }
.whey-empty-text { font-size: 1rem; margin-bottom: 0.5rem; }
.whey-empty-sub { font-size: 0.82rem; color: var(--text-dim); }
.whey-empty-reset { margin-top: 1rem; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-muted); padding: 0.35rem 1rem; font-family: var(--font); font-size: 0.82rem; cursor: pointer; }
.whey-empty-reset:hover { border-color: var(--accent); color: var(--accent); }

/* --- Animations --- */
@keyframes wheyFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wheySlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- Responsive --- */
@media (min-width: 768px) {
  .whey-hero h1 { font-size: 2.8rem; }
  .whey-grid:not(.whey-grid--table) { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .whey-grid:not(.whey-grid--table) { grid-template-columns: repeat(3, 1fr); }
  .whey-hero { padding: 4rem 2rem 3rem; }
}

@media (max-width: 767px) {
  .whey-toolbar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .whey-search { max-width: 100%; }
  .whey-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.2rem; }
  .whey-sort { margin-left: 0; }
  .whey-card-header { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .whey-card-img { width: 60px; height: 75px; }
  .whey-card-right { flex-direction: row; justify-content: space-between; }
  .whey-card-stats { gap: 0.6rem; }
  .whey-detail-grid { grid-template-columns: 1fr; }
  .whey-proscons { grid-template-columns: 1fr; }
  .whey-modal-top { flex-direction: column; align-items: center; }
  .whey-modal-img { width: 120px; height: 150px; }
  .whey-card-zoom { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .whey-card, .whey-modal-content { animation: none; }
  .whey-compare-bar { transition: none; }
  .whey-rating-fill { transition: none; }
}
