/* PriceList.css - унікальна розтановка */

.pl-price-catalog-main {
  .pl-price-list-app {
    display: flex;
    justify-content: center;
    padding-top: 80px;
    min-height: 100vh;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
  }

  .pl-main {
    padding: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
  }

  .pl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .pl-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
  }

  .pl-title-main {
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 0.5rem;
  }

  .pl-title-year {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
  }

  .pl-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .pl-banner-icon {
    color: #3b82f6;
  }

  .pl-banner-text {
    color: #cbd5e0;
    font-size: 0.95rem;
  }

  .pl-banner-text strong {
    color: #fff;
  }

  .pl-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .pl-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .pl-section:hover {
    background: rgba(255, 255, 255, 0.03);
  }

  .pl-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
  }

  .pl-section-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .pl-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pl-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
  }

  .pl-section-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .pl-section-count {
    color: #94a3b8;
    font-size: 0.9rem;
  }

  .pl-section-arrow {
    transition: transform 0.3s ease;
  }

  .pl-section-content {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .pl-price-table-header {
    display: grid;
    grid-template-columns: 80px 1fr 60px 100px 100px 80px 80px 100px;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .pl-price-row {
    display: grid;
    grid-template-columns: 80px 1fr 60px 100px 100px 80px 80px 100px;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
  }

  .pl-price-row:hover {
    background: rgba(255, 255, 255, 0.02);
  }

  .pl-price-row.popular {
    background: rgba(245, 158, 11, 0.05);
    border-left: 3px solid #f59e0b;
  }

  .pl-pos-code {
    font-family: 'Fira Code', monospace;
    color: #94a3b8;
    font-size: 0.85rem;
  }

  .pl-pos-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
  }

  .pl-pos-desc {
    font-size: 0.85rem;
    color: #94a3b8;
  }

  .pl-pos-unit {
    color: #cbd5e0;
    font-size: 0.9rem;
  }

  .pl-price-value {
    font-weight: 700;
    color: #3b82f6;
  }

  .pl-price-value.with-discount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .pl-old-price {
    color: #94a3b8;
    font-size: 0.85rem;
    text-decoration: line-through;
  }

  .pl-new-price {
    color: #10b981;
    font-weight: 800;
  }

  .pl-no-materials {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.85rem;
  }

  .pl-complexity-indicator {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
  }

  .pl-no-guarantee {
    color: #94a3b8;
    font-size: 0.85rem;
  }

  .pl-col-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .pl-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pl-action-btn:hover {
    background: #3b82f6;
    color: #fff;
    transform: scale(1.1);
  }

  .pl-discount-btn {
    position: relative;
    width: auto;
    padding: 0 0.75rem;
    gap: 0.25rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-weight: 600;
    font-size: 0.85rem;
  }

  .pl-discount-btn.active {
    background: #10b981;
    color: #fff;
  }

  .pl-discount-btn:hover {
    background: #10b981;
    color: #fff;
  }

  .pl-info-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
  }

  .pl-cart-btn {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
  }

  .pl-info {
    margin-top: 3rem;
  }

  .pl-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .pl-info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
  }

  .pl-info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.03);
    border-color: #3b82f6;
  }

  .pl-info-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
  }

  .pl-info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
  }

  .pl-info-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
  }

  /* Modal */
  .pl-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: pl-fadeIn 0.3s ease;
  }

  @keyframes pl-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  .pl-modal-content {
    background: #1a1e2c;
    border-radius: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pl-slideUp 0.3s ease;
  }

  @keyframes pl-slideUp {
    from {
      transform: translateY(50px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .pl-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .pl-modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
  }

  .pl-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pl-modal-close:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
  }

  .pl-modal-body {
    padding: 2rem;
  }

  .pl-modal-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .pl-modal-row:last-child {
    border-bottom: none;
  }

  .pl-modal-label {
    width: 140px;
    color: #94a3b8;
    font-weight: 500;
  }

  .pl-modal-value {
    flex: 1;
    color: #fff;
  }

  .pl-modal-value.price {
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.2rem;
  }

  .pl-modal-row.highlight {
    background: rgba(16, 185, 129, 0.1);
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 12px;
  }

  .pl-modal-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
  }

  .pl-modal-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
  }

  .pl-modal-btn.primary {
    background: #3b82f6;
    color: #fff;
  }

  .pl-modal-btn.primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
  }

  .pl-modal-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
  }

  .pl-modal-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  // ==========================================
  // Responsive
  // ==========================================
  @media (max-width: 1200px) {
    .pl-main {
      padding: 1.5rem;
    }

    .pl-price-table-header,
    .pl-price-row {
      grid-template-columns: 80px 1fr 60px 100px 100px 80px 80px 80px;
      font-size: 0.85rem;
    }
  }

  @media (max-width: 1000px) {
    .pl-price-table-header,
    .pl-price-row {
      grid-template-columns: 70px 1fr 50px 90px 90px 70px 70px 70px;
    }

    .pl-info-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 800px) {
    .pl-price-list-app {
      flex-direction: column;
    }

    .pl-price-table-header {
      display: none;
    }

    .pl-price-row {
      grid-template-columns: 1fr;
      gap: 0.75rem;
      padding: 1.5rem;
    }

    .pl-col-code::before {
      content: "Код:";
      color: #94a3b8;
    }

    .pl-col-unit::before {
      content: "Од.:";
      color: #94a3b8;
    }

    .pl-col-price::before {
      content: "Ціна:";
      color: #94a3b8;
    }

    .pl-col-materials::before {
      content: "Матеріали:";
      color: #94a3b8;
    }

    .pl-col-complexity::before {
      content: "Складність:";
      color: #94a3b8;
    }

    .pl-col-guarantee::before {
      content: "Гарантія:";
      color: #94a3b8;
    }

    .pl-col-actions::before {
      content: "Дії:";
      color: #94a3b8;
    }

    .pl-col-code,
    .pl-col-unit,
    .pl-col-price,
    .pl-col-materials,
    .pl-col-complexity,
    .pl-col-guarantee,
    .pl-col-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .pl-info-grid {
      grid-template-columns: 1fr;
    }

    .pl-modal-footer {
      flex-direction: column;
    }
  }

  @media (max-width: 600px) {
    .pl-header {
      flex-direction: column;
      align-items: flex-start;
    }

    .pl-title {
      font-size: 2rem;
    }

    .pl-banner {
      flex-direction: column;
      text-align: center;
    }

    .pl-section-header-left {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }

    .pl-section-header-right {
      flex-direction: column;
      gap: 0.5rem;
    }
  }
}
