

:root {
  --pc-primary: #2965AD;
  --pc-accent: #2965AD;
  --pc-bg: #ffffff;
  --pc-bg-alt: #f7f8fa;
  --pc-border: #e2e5ea;
  --pc-text: #2c3e50;
  --pc-text-muted: #8895a4;
  --pc-radius: 8px;
}

.pc-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: var(--pc-primary);
  color: #fff;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.pc-bar--visible {
  transform: translateY(0);
}

.pc-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pc-bar__label {
  font-size: 15px;
  font-weight: 400;
}

.pc-bar__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
}

.pc-bar__actions {
  display: flex;
  gap: 10px;
}

.pc-bar__btn {
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  transition: all 0.2s;
}

.pc-bar__btn--open {
  background: #fff;
  color: var(--pc-primary);
}

.pc-bar__btn--open:hover {
  background: #f0f4f8;
}

.pc-bar__btn--clear {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
}

.pc-bar__btn--clear:hover {
  background: rgba(255,255,255,0.25);
}


.pc-toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--pc-text);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 11000;
  opacity: 0;
  transition: all 0.3s;
  pointer-events: none;
}

.pc-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.compare-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pc-border);
  background: var(--pc-bg);
  font-size: 13px;
  color: var(--pc-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Proxima Nova Regular';
  max-height: 26px;
  min-height: 26px;
  user-select: none;
  margin-top: 4px;
  width: 71px;
  justify-content: center;
}

.compare-btn:hover {
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}

.compare-btn.compare-active {
  background: var(--pc-accent);
  border-color: var(--pc-accent);
  color: #fff;
}

.pc-page-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pc-border);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.pc-page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--pc-text);
  margin: 0;
}

.pc-page-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.pc-diff-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--pc-text-muted);
  cursor: pointer;
  user-select: none;
}

.pc-diff-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--pc-accent);
}

.pc-clear-link {
  font-size: 14px;
  color: var(--pc-accent);
  text-decoration: none;
  cursor: pointer;
}

.pc-clear-link:hover {
  text-decoration: underline;
}

.pc-back-link {
  font-size: 14px;
  color: var(--pc-text-muted);
  text-decoration: none;
}

.pc-back-link:hover {
  color: var(--pc-text);
}

.pc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 60px; 
}

.pc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.pc-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--pc-bg);
}

.pc-cell {
  padding: 10px 16px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid var(--pc-border);
}

.pc-cell--label {
  text-align: left;
  font-weight: 600;
  color: var(--pc-text);
  min-width: 200px;
  max-width: 240px;
  white-space: nowrap;
  background: var(--pc-bg);
  font-size: 13px;
}

.pc-cell--sticky {
  position: sticky;
  left: 0;
  z-index: 5;
  border-right: 2px solid var(--pc-border);
}

.pc-cell--value {
  color: var(--pc-text);
  font-size: 14px;
  min-width: 180px;
}

.pc-cell--product {
  position: relative;
  vertical-align: bottom;
  padding: 16px 12px 10px;
  min-width: 200px;
}

.pc-table tbody .pc-row:nth-child(even) {
  background: var(--pc-bg-alt);
}
.pc-table tbody .pc-row:nth-child(even) .pc-cell--label {
  background: var(--pc-bg-alt);
}

.pc-row--same .pc-cell--value {
  color: var(--pc-text-muted);
}


.pc-product-img {
  display: block;
  max-width: 200px;
  max-height: 180px;
  margin: 0 auto 8px;
  object-fit: contain;
  border-radius: 4px;
}

.pc-product-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: var(--pc-bg-alt);
  border-radius: 4px;
  color: var(--pc-text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.pc-product-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--pc-primary);
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}

.pc-product-name:hover {
  text-decoration: underline;
}

.pc-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  font-size: 16px;
  color: var(--pc-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc-remove:hover {
  background: #e74c3c;
  color: #fff;
}

.pc-cell--empty {
  color: var(--pc-text-muted);
}


.pc-error {
  text-align: center;
  padding: 60px 20px;
  color: #e74c3c;
  font-size: 15px;
}

@media (max-width: 768px) {
  .pc-bar__inner { padding: 10px 16px; }
  .pc-bar__label { font-size: 14px; }
  .pc-page-head { padding: 12px 0; }
  .pc-page-title { font-size: 18px; }
  .pc-cell--label { min-width: 140px; font-size: 12px; }
  .pc-cell { padding: 8px 10px; font-size: 13px; }
  .pc-product-img { max-width: 120px; max-height: 100px; }
}
.pc-modal {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999;
}
.pc-modal-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.pc-modal-content {
  position: relative; margin: 40px auto; width: 90%; max-width: 1200px;
  background: #fff; border-radius: 4px; max-height: 90vh; overflow: auto;
}
.pc-modal-close {
  position: absolute; right: 15px; top: 10px; font-size: 28px;
  cursor: pointer; z-index: 1;
}
.pc-modal-body {
  padding: 20px;
}
.pc-page-head {
  cursor: move;
  user-select: none; 
}

