.pcp-feature-table {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.pcp-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    font-family: 'yekanbakhR', sans-serif;
    background: #fff;
    text-align: center;
    direction: rtl;
    border: none !important;
}

.pcp-table th,
.pcp-table td {
    padding: 14px 10px;
    border: none !important;
    font-size: 14px;
    font-weight: 400;
    color: #23242E;
    vertical-align: middle;
}

.pcp-table thead th {
    background-color: #fafafa;
    font-weight: 600;
    font-size: 16px;
}

.pcp-table tbody tr:hover {
    background-color: #f9f9f9;
}

.pcp-table td:not(:first-child),
.pcp-table th:not(:first-child) {
    border-left: none !important;
}



.pcp-compare-container {
max-width: 100%;
    margin: auto;
    padding: 30px;
}
.pcp-columns {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}
.pcp-product-box {
    border: 1px dashed #ccc;
    width: 240px;
    min-height: 380px;
    background: #fafafa;
    position: relative;
    font-family: 'yekanbakhR', sans-serif;
    font-weight: 400;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcp-box-inner {
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 15px;
}


.pcp-box-inner img {
    max-width: 100%;
    max-height:240px;
    border-radius: 16px;
    margin-bottom: 5px;
}
.pcp-box-inner h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 8px 0 4px;
    color: #222;
    border-radius: 16px;
}

.pcp-box-inner .price {
    font-size: 14px;
    color: #0B0C17;
    font-weight: 500;
}

.pcp-add-button {
    font-size: 40px;
    color: #aaa;
    cursor: pointer;
    position: absolute;
    top: 40%;
    left: 45%;
}
.pcp-remove {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 22px;
    color: #555;
}
.pcp-feature-table {
    margin-top: 20px;
}
.pcp-compare-table {
    display: flex;
    flex-direction: column;
}
.pcp-row {
    display: flex;
}
.pcp-cell {
    flex: 1;
    padding: 8px;
    border: 1px solid #eee;
    text-align: center;
    font-size: 14px;
}

/* Modal Styling */
#pcp-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
.pcp-modal-inner {
    background: #fff;
    padding: 20px;
    width: 500px;
    max-height: 80vh;
    overflow: auto;
    border-radius: 8px;
    position: relative;

}
.pcp-modal-close {
    position: absolute;
    top: 0px; right: 5px;
    font-size: 24px;
    cursor: pointer;
}
#pcp-search-input {
    width: 100%;
    padding: 10px;
    font-family: 'yekanbakhR', sans-serif;
    margin-top:15px;
    justify-content: center;
    font-size: 12px;
    font-weight:400;
    color: #0B0C17;
    border: 1px solid #54555D;
}
#pcp-product-list {
    margin-top: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'yekanbakhR', sans-serif;
    font-size: 14px;
    font-weight:400;
}
.pcp-product-item {
    display: flex;
    gap: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    align-items: center;

}
.pcp-product-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.pcp-product-info {
    flex-grow: 1;

}
.pcp-compare-button {
    background-color: #FFFFFF;
    color: #C8B39F;
    font-size: 16px;
    font-weight: 400;
    padding: 12px 24px;
    border: 1px solid #C8B39F; /* 1px border */
    border-radius: 8px;
    cursor: pointer;
    font-family: 'yekanbakhR', sans-serif;
    transition: all 0.3s ease;
    margin-top: 20px;
    display: inline-block;
}

/* Hover: float effect */
.pcp-compare-button:hover {
    transform: translateY(-4px); /* Move up slightly */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    background-color: #FFFFFF;
    color: #C8B39F
}
.pcp-compare-button:focus,
.pcp-compare-button:active {
    outline: none !important;
    box-shadow: none !important;
    background-color: #ffffff !important;
}



/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  .pcp-columns {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .pcp-product-box {
    width: 48%;
    min-height: 320px;
    padding: 12px;
  }

  .pcp-box-inner {
    padding: 8px;
    text-align: center;
    font-size: 14px;
  }

  .pcp-box-inner img {
    max-height: 250px;
  }

  .pcp-box-inner h4 {
    font-size: 15px;
  }

  .pcp-box-inner .price {
    font-size: 13px;
  }

  .pcp-add-button {
    font-size: 32px;
    top: 40%;
    left: 45%;
  }

  .pcp-table th,
  .pcp-table td {
    font-size: 13px;
    padding: 10px 8px;
  }

      .pcp-compare-button {
        font-size: 15px;
        padding: 10px 20px;
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
  .pcp-columns {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .pcp-product-box {
    width: 100%;
    min-height: 300px;
    padding: 10px;
  }

  .pcp-box-inner {
    padding: 6px;
    font-size: 13px;
  }

  .pcp-box-inner img {
    max-height: 160px;
  }

  .pcp-box-inner h4 {
    font-size: 14px;
  }

  .pcp-box-inner .price {
    font-size: 12px;
  }

  .pcp-add-button {
    font-size: 28px;
    top: 40%;
    left: 45%;
  }

  .pcp-remove {
    font-size: 18px;
    right: 6px;
  }

  .pcp-feature-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pcp-table {
    width: 750px;
    min-width: 100%;
    table-layout: fixed;
  }

  .pcp-table th,
  .pcp-table td {
    font-size: 12px;
    padding: 8px 6px;
  }

  .pcp-modal-inner {
    width: 95%;
    padding: 12px;
  }

  #pcp-search-input {
    font-size: 12px;
  }

  .pcp-product-item {
    font-size: 12px;
    padding: 6px;
  }

  .pcp-product-item img {
    width: 36px;
    height: 36px;
  }

      .pcp-compare-button {
        font-size: 14px;
        padding: 8px 16px;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}
